Beyond Faster Code: Learning to Build Reliably with Coding Agents
Reflections on speed, reliability, context, alignment, and validation.
AI speeds up coding. I love that it lets me dream bigger, work in parts of the stack where I’m not an expert, and pull off projects that would previously have required a much larger team or much more time. I don’t think I could go back to writing every single line by hand.
But I also hate parts of it.
These are the problems I keep running into:
- Loss of control. I can’t fully understand everything the AI writes, and I don’t know what I don’t know. When an issue appears, my first instinct is often to ask AI again. But did it find the real bug, or did it hallucinate another rabbit hole?
- Loss of trust. I lose trust when I see AI slop: fake round-trip unit tests, overcorrected implementations, and complicated solutions to small problems. The code may work today, but quality is a different question. At the end of a development cycle, I can spend hours asking the AI to find issues in its own work and then fall into endless iterations. Worse, dead code and bad patterns become “golden context” for the next agent to copy.
- Cognitive load. We are expected to run multiple sessions, agent teams, and automated workflows in parallel—and somehow achieve 10x productivity. Some days feel like jumping between meeting rooms while every room is talking at once. After scrolling through pages of explanations and outputs, I forget what I asked for in the first place.
- Harder reviews. We now see gigantic PRs or hundreds of fragmented ones. We might understand the problem being solved, but not the design, the implementation tradeoffs, or the bigger picture—sometimes because there is no bigger picture. AI review can find local bugs, but it is much less reliable at telling us that a design will not scale or that we are solving the wrong problem.
These frustrations are not only mine. Stack Overflow’s 2025 survey found that 46% of developers distrusted AI output, while 45% said debugging AI-generated code took more time. Productivity research is mixed too: GitHub’s controlled study found a 55% speedup on a bounded coding task, while METR’s 2025 randomized study found experienced developers took 19% longer in mature codebases. DORA’s 2024 research linked AI adoption to gains in productivity and documentation, but lower delivery stability. The setting matters: AI can make coding faster while making the overall engineering process noisier or harder to trust.
After experiencing these pains, I stepped back and asked what an ideal coding-agent workflow would look like. How do we use agents at their full potential, keep enough human steering, and still feel confident that the team is producing high-quality code—with high productivity and a manageable cognitive load?
I think we could learn from the old way, keep the parts that protect quality, and redesign them for agents.
The journey
Before AI
For most engineering projects that reach production, we moved through a familiar sequence:
- Product requirements and use cases
- Experiments and proofs of concept that explored different ideas
- Design review covering the goal, architecture, schemas, and contracts
- Rough planning and orchestration: phases, parallel components, capacity, and timeline
- Implementation, code review, and developer testing—or evaluation for ML systems
- QA in a test or staging environment
- Release, rollout, and monitoring
Every stage was slow. We needed careful alignment because a wrong decision could waste weeks of work and no one wanted to throw away a large amount of code. A project’s timeline depended not only on its size, but also on the team, the available expertise, and the capacity we could pull together.
The upside was that decisions were visible. People had time to understand the design because implementation was expensive.
AI-assisted coding
I started AI-assisted coding around 2023 with Copilot and stayed in this phase with various coding tools until late 2025. At a high level, the development process did not change very much. AI mostly changed implementation and review.
Around 2024, coding assistants became much better at understanding a codebase and its dependencies. Tools such as Windsurf, Cursor, Factory, and Augment made it possible to take on a larger scope of changes. Documentation and design also became easier as tools gained access to other systems like Google Docs via MCPs.
I enjoyed this phase. My coding productivity increased by maybe 20–30%, but I still felt in control. I knew what each line was doing. I felt confident debugging, testing, and handling production issues.
The assistant still needed me to think through the design, align with other people, and write specific instructions for what each function or class should do and how the pieces should connect. I still spent a lot of time planning, documenting, reviewing, evaluating, and reading logs. Experimentation was limited because iteration was still expensive. But I understood the system.
The token-maximization phase
Later in 2025 and early 2026, many of us went full power with AI. This was the token-maximization phase. Some companies even had leaderboards for token usage. People ran longer sessions, more sessions, and teams of agents. As more tools became accessible through MCPs, a coding agent could work end to end without the engineer leaving the terminal. Better harnesses let agents plan, reason longer, spin up subagents, and self-correct.
It was fun and anxious at the same time. My productivity seemed to vary from 30% to 300%—a magic number that could be entirely wrong.
In my second week at a new company, I built the first version of a multi-tenant agent-evaluation framework in two or three weeks, starting from almost nothing and including the problem definition and design. At first, I barely understood how the agents worked or how the pieces connected. I was amazed by how quickly the tools helped me onboard and deliver.
Then I went deeper into more complex systems and ran more projects in parallel. The pain showed up. I worked longer and spent whole days in front of my laptop, talking to coding agents and often blaming them for not doing what I expected. I suffered from constant context switching, endless iterations, and diminishing trust in both my agents and other people’s agents. I pushed agents to double-think and triple-think, then spent a long time validating the result anyway.
Reviewing other people’s work became harder too. None of us had enough time to align on the design or discuss tradeoffs. We just kept shipping.
The bottleneck had moved. Writing code—and even experimentation and PoCs—was no longer the slow part. The slow part was understanding, validating, and taking responsibility for the output.
Toward sustainable AI coding
After leading and contributing to projects of different sizes, I started to notice a pattern: the best agent sessions were not the ones with the longest prompts or the most parallel workers. They were the ones with clean context, clear alignment, and reliable validation.
1. Clean, current context
This sounds basic, but it has become one of the most important foundations for me—especially when building on an existing system. Context includes the high-level code structure, architecture, important design decisions, deployment model, and how the system interacts with other components.
I have also come to think that the most important context is the code itself. Agents naturally try things, iterate, and leave artifacts behind. Dead code, leaked test scaffolding, and bad patterns may be harmless today, but they become examples for the next agent to follow.
Keeping context current probably cannot be a one-time documentation project. In practice, it seems to work better as part of the code lifecycle. Some practices that seem to help:
- Short, scoped repository-level instructions versioned with the code
- Architecture notes kept close to the implementation through a docs-like-code workflow
- Important decisions recorded with their tradeoffs, not only the final architecture
- Explicit owners and “last reviewed” dates for important documents
- Generated references such as schemas, API docs, and dependency maps when possible
- CI checks for broken links, stale generated files, deprecated paths, and rules the team does not want an agent to violate
- Pull requests that update relevant context when behavior or architecture changes
The exact tools and formats will vary. What seems to matter is treating context as part of the system—not as a side document—and updating it whenever the system changes.
It may be unrealistic to expect either people or agents to remember this standard every time. Lightweight rules and checks can make drift visible before it becomes the next agent’s starting point.
2. Different kinds of alignment
Alignment matters in two directions: human to human and human to agent. Both are important, but they need different forms of communication.
For people, a short, concrete, high-level design often seems to work better. A small prototype can be even better. A ten-page raw AI-generated document full of investigation notes but no clear decision is harder to use. Human attention is limited.
For agents, more specificity seems to help: the goal, constraints, interfaces, schemas, invariants, important edge cases, and definition of done. If something must not change, it helps to say so. If a tradeoff has already been decided, it helps to record it. Agents can handle more detail, but that detail still needs structure.
In practice, this can mean slowing down a little before implementation. Spending time on design and planning makes it easier to translate the work into parallel tasks for agents or other people. The payoff can be faster execution, easier review, and less rework.
3. Validation as part of the loop
The old process had layers of validation: unit tests, local integration tests, regression tests, QA, staged rollouts, and production monitoring. Those layers are even more important now because agents deliver larger changes faster—and sometimes write tests that merely prove their own implementation.
More validation during development seems increasingly important, preferably deterministic validation. This might be a style check such as Ruff, a compiler, reviewed functional tests, a meta-evaluation, or a reusable skill that acts like an end user. Once these checks exist, an agent can run a longer fix-and-verify loop and return with evidence instead of just confidence.
I learned this on a relatively large feature: a set of CLIs and companion agents for configuring and customizing our agents and tuning prompts. The requirement was well specified, and the primary agent planned the work, reasoned through it, and spun up subagents for the first pass. It produced nearly 400 unit tests with what looked like good coverage.
But functional testing took forever. Every time something broke, I prompted the agent to fix it. Then I had to test again because I could not tell whether the fix had broken something else. The coding time was short; the validation time was insane and fragmented. My confidence kept dropping.
After a day or two of struggling, I stopped and built the missing foundation: deterministic validations and an end-to-end QA smoke-test skill. Then I could let the agent run in an iterative mode—validate, fix, and validate again. Sessions could run longer with fewer interruptions, the output became more reliable, and my cognitive load dropped. I could focus on other work or simply relax for a moment.
I do not think development-time checks replace review, CI/CD, QA, staged rollouts, or post-release monitoring. The point is to create feedback loops early enough that agents can correct themselves before the cost of a mistake compounds.
Closing thoughts
I am still figuring out how to make full use of coding agents while staying confident and responsible for what I deliver. I still feel a heavy cognitive load. I am still learning how to handle constant context switching and become more productive without becoming more overwhelmed.
The pattern I keep coming back to is that slowing down at the beginning may speed up the whole process.
Spending a little more time on foundations—clean context, design alignment, clear boundaries, and a validation loop—can make it easier to let agents run.
A few deliberate hours early may save days of fragmented testing, review, and patching later. Maybe the goal is not maximum token throughput, but a faster, calmer, and more trustworthy path from idea to production.
Happy to talk if you want to : )
These are my personal experiences and opinions, not a universal prescription. I may be far behind other engineers in their AI-coding journey.