AI coding tools have moved quickly from autocomplete to agents that can read a codebase, plan a change, write the code and tests, and run them. Used well, they let engineers spend more time on design, review and problems that need judgement, and less on boilerplate.
Used carelessly, they produce large amounts of plausible code that is hard to review and easy to break. The difference is mostly in how teams work with them, not which tool they choose.
Assistants and agents
- Inline assistants
- Suggest the next lines or functions as you type; helpful for routine code.
- Chat assistants
- Explain code, answer questions and draft changes on request.
- Coding agents
- Take a task, explore the repository, plan, edit files and run commands and tests, working for longer on their own.
Plan first, then build
The most reliable pattern for agents is plan-first. Ask for a written plan naming the files to change, the order of work, the tests that prove it and the risks, before any code is written. Review and correct the plan, then let the agent implement it. Correcting a plan is cheap; correcting a 2,000-line diff is not.
Repository context
Agents work far better with a short context file in the repository (such as CLAUDE.md or AGENTS.md) listing build and test commands, conventions, architecture notes and the mistakes the agent keeps making. Keep it under a page and update it whenever a correction comes up twice.
Guardrails
Instructions make good behaviour likely; automated guardrails make bad behaviour impossible. Use hooks and permissions to block edits to protected paths, keep secrets out of changes, run formatters automatically, and stop agents editing tests during a bug fix. The same CI checks and security scans apply to AI-written code as to any other code.
Parallel work
Because agents work on their own, one engineer can run several on separate tasks, each in its own branch or worktree. The practical limit is how much the engineer can review properly. Add parallel sessions only while review quality keeps up.
Choosing tools and models
Most teams standardise on one or two coding tools so prompts, context files and lessons can be shared. Evaluate them on real tasks from your own codebase, with your own tests, rather than on public benchmarks. Check data-handling terms, enterprise controls such as single sign-on and audit logs, and how well the tool works with your repositories and pipelines.
Skills still matter
AI changes what engineers spend their time on, not whether they need deep skills. Engineers who understand architecture, testing and security are the ones who can write good plans, spot flawed generated code and design the guardrails. Invest in those skills alongside the tools.
How to put it into practice
- Add a short context file to your busiest repositories.
- Make build, test and lint each a single command that agents can run.
- Adopt plan-first for any non-trivial change made by an agent.
- Add hooks that block secrets and protected-path edits.
- Pilot with one team and measure lead time, first-pass merge rate and change failure rate.
- Share prompts, context files and lessons across teams.
Common mistakes
- Prompt-and-pray: skipping the plan and reviewing huge diffs.
- Measuring lines of code or "AI usage" instead of outcomes.
- Letting agents run with broad permissions and no guardrails.
- Adopting AI coding without fast, reliable tests to check its work.
How to measure progress
- Lead time for changes and deployment frequency.
- First-pass merge rate for agent-written changes.
- Change failure rate, to make sure speed isn't costing quality.
- Developer satisfaction and time spent on review.