
Linda Xie
@linda
1183 Following
255834 Followers
16 replies
50 recasts
335 reactions

✍️ New Blog Post: Building a codebase that compounds with each new AI agent
Every month a shiny new agent framework drops. I used to chase them. It didn’t make me faster.
What did help was hardening my codebase. If you spend ~20% getting the basics right, every new model/agent feels like a free upgrade instead of a week of churn. Here’s the short list I’d set up on any fresh project:
1. Strict types / hints — Turn on strict modes (TypeScript, Python, Go, Rust). Clear contracts = better suggestions and safer edits.
2. Schema validation at boundaries — Validate all external I/O (Zod, Pydantic, Serde). Fail fast so the model fixes to the contract instead of guessing. Silent shape-drift is where weekends go to die.
3. Linters and formatters in CI — ESLint/Prettier/Ruff catch drift early. One style, smaller diffs, less “why did this file change?” noise for you and the model.
4. Docs as context — Short docstrings and inline notes turn into high-signal prompts. I ask questions first, code later (see: “Ask First, Code Later”).
5. Well-known frameworks — Rails, Django, Next.js come with years of patterns. The AI has seen those patterns. You’ll both argue less about basics.
.. and lots more! read about it in my blog post below ⬇️
https://pirosb3.io/posts/best-tools-for-being-a-great-ai-engineer 2 replies
2 recasts
12 reactions
0 reply
0 recast
1 reaction
6 replies
2 recasts
51 reactions
1 reply
0 recast
1 reaction
1 reply
0 recast
1 reaction
1 reply
0 recast
1 reaction
2 replies
0 recast
15 reactions
5 replies
11 recasts
26 reactions
0 reply
2 recasts
27 reactions
6 replies
3 recasts
94 reactions
12 replies
5 recasts
161 reactions
3 replies
5 recasts
12 reactions
0 reply
3 recasts
12 reactions
1 reply
0 recast
0 reaction
1 reply
1 recast
2 reactions
1 reply
1 recast
18 reactions
5 replies
12 recasts
41 reactions
5 replies
6 recasts
33 reactions
1 reply
0 recast
1 reaction