End-to-end, nothing mocked: one feature through the whole factory
End-to-end case study with nothing mocked: an authentication token package taken from YAML spec through a live factory run on a local model — including the toolchain bugs found on the way, a 0.91 judge score on code that didn't compile, and the multi-round fix loop that followed. Every pillar of the series, exercised for real. Closes the series.
Observability, continuous improvement, and scaling beyond the individual
The observability stack for an agentic factory: metrics pipeline, log correlation, tracing, and dashboards — then the continuous improvement loop, A/B testing of factory configurations, and improvement categories. Production operations turn the factory from an experiment into infrastructure.
Designing always-on, self-sustaining Orchestrator-Worker-Validator systems
The software factory triad in Go: an Orchestrator decomposing work, a Worker pool executing it, and a Validator gating everything — with the orchestration lifecycle, task types, configuration, recovery and durability, metrics, and MCP integration. Ad-hoc agent calls become a system that runs while you sleep.
From hand work to head work: the daily developer loop
The daily developer loop on the agentic factory: spec authoring patterns and templates, prompt patterns that work, the ASF CLI workflow, and the developer toolbox — the practical shift from typing code to specifying, reviewing, and directing it.
Integrating agent workflows into team software development lifecycles
The team operating model: the shared context repository is the repo itself, ADRs and specs go through PR review because they program the agents, verification runs at the git and CI chokepoints, and the factory's real review task drafts findings for human reviewers. Agents become part of the software development lifecycle instead of a private productivity hack.
Prompt injection defense, sandbox execution, and RBAC
The real security layers in Go, with live demo output: input validation (honestly framed as a tripwire, not a wall), deny-by-default command allowlists, Docker sandboxing with no network, RBAC where the validator can't write and only the orchestrator spawns agents, and the web/MCP guard against DNS rebinding and CSRF. Agents are untrusted-input processors with execution privileges; this post treats them that way.
Calibrating agent freedom with the AEMM maturity model and Elastic Loop framework
Fixed autonomy levels are wrong in both directions. The AEMM framework: autonomy computed per task from risk, context quality, confidence, and track record — mapped honestly onto the knobs the factory implements today (judge threshold, bounded retries, capabilities, RBAC), with case-study evidence on where the human gates belong.
Integrating context, specifications, and verification loops
Context, specifications, and verification loops composed into a single Go harness with one entry point — no path through it skips a discipline. The real execution flow and a real run, plus the honest wiring diagram: where the agent actually plugs in, and the artifact-compile gap that is the system's highest-leverage missing piece.
Automated verification of agent-generated code
AI-TDD: every agent artifact runs a verification pipeline — build, test, lint — with structured findings driving bounded fix-retry loops. The real Go verification engine, plus the three bugs dogfooding found in the verifier itself: toolchain skew, a parser that reported '0 errors' while failing, and findings treated as crashes instead of verdicts.
Replacing vague English prompts with precise, machine-readable specifications
Replace prose prompts with machine-readable YAML specifications: typed inputs and outputs, error contracts, acceptance criteria, and versioning. The Go spec parser and validator, the specification lifecycle, and code generation driven from the spec — specification-driven versus English-prompt-driven, side by side.
The foundation that makes everything else work
Unconstrained agents improvise; context-engineered agents comply — demonstrated with a real A/B experiment on a live local model: the same HTTP-server prompt run with and without an ADR, both outputs compiled and compared verbatim. Plus the real context engine in Go: priority-ranked ADRs, specs, and code patterns assembled into every agent call, and the context-budget trade-off that shapes what fits.
Beyond unconstrained generation: building reliable AI-assisted development systems
Vibe coding generates code that works once; agentic engineering builds systems that work forever. This series introduces the five pillars — context engineering, specification engineering, AI-TDD verification loops, autonomy calibration, and security by design — all implemented in Go with production-ready patterns. Opens the series.
Coding agents are genuinely transformative on the right tasks and frustrating on the wrong ones, and knowing the difference is the practical skill that separates productive use from disappointment. This closing post is the honest field guide: where coding agents excel, where they struggle, how to work with them well, and where software engineering is heading. It turns the series into judgment you can apply today.
Coding agents are transformative on the right tasks and frustrating on the wrong ones. Where they shine (well-scoped, verifiable, groundable, reviewable work), where they struggle (ambiguous, weakly-verified, large/architectural), how to work with them well (scope, verify, ground, review, delegate the mechanical), and where software engineering is heading.
How good is a coding agent, really? The honest answer requires evaluation — measuring whether an agent can actually resolve real software tasks, not just produce plausible-looking code. Benchmarks like SWE-bench made coding-agent progress measurable by testing agents on real GitHub issues verified by real tests, and understanding how coding agents are evaluated (and the pitfalls) is how you cut through the hype to what agents can actually do. This post is about measuring coding-agent capability honestly.
How good is a coding agent, really? Because code is verifiable, you can measure task resolution by tests on real issues — which is what SWE-bench does. The pitfalls that inflate numbers (contamination, overfitting, weak tests, cherry-picked demos), and why your real tasks are the real benchmark.
A coding agent can produce a confident, plausible change that's subtly wrong — and the whole value collapses if you can't tell. Verification is how you know the agent's code actually works, and trust is what you build (or lose) based on it. Because code is verifiable, coding agents can check much of their own work — but the human reviewer remains the final, accountable arbiter. This post is about verifying agent-written code and the trust that makes coding agents usable.
A coding agent can produce a confident, plausible, subtly-wrong change — verification is how you know it's actually right. Why verification drives the agent's self-correction AND your trust, the layered toolkit (tests, type-checks, diff review, human review), and the rule: trust is earned through verification, and the human stays accountable.
Fixing a typo is one tool call; implementing a feature across a dozen files, with new tests and a migration, is a project. As coding tasks grow, a coding agent needs more than a tight edit-run loop — it needs to plan, decompose, track progress, and manage its own context over a long effort. This post is about how coding agents handle big, multi-step tasks, and why planning and decomposition are what let them tackle real work rather than just small edits.
Fixing a typo is one tool call; implementing a feature is a project. How coding agents handle big tasks: decompose into ordered subtasks, plan before acting, track progress, and manage context over a long effort — a hierarchical plan-plus-loop structure that scales from edits to real engineering, and benefits hugely from human direction.
An agent's reasoning is useless without the ability to act, and for a coding agent, acting means tools: editing files, running commands, executing tests, searching code, using version control. The tools define what the agent can do, and their design — what they expose, how safe they are, how reliable their feedback — shapes how well the agent works. This post is about the tools that turn a reasoning model into an agent that changes real software.
An agent's reasoning is useless without the ability to act, which means tools: read/edit files, run commands, run tests, search, version control. Tool design (reliability, clear feedback) largely determines agent quality, and because tools (the shell) can do irreversible things, safety is first-class: least privilege, sandboxing, confirmation gates, and git as the undo button.
A coding agent is only as good as its understanding of the code it's changing, and real codebases are enormous — far larger than any context window. The agent can't read everything, so it must find and load the right code for the task: navigate the repository, search for what's relevant, and build enough understanding to make correct changes. This grounding problem — understanding a large codebase through a small window — is where many coding-agent successes and failures are decided.
A coding agent is only as good as its understanding of the code it's changing, and codebases dwarf the context window. How agents find and understand the right code — search, navigation, strategic reading, repo conventions, semantic retrieval — and why most coding-agent failures are comprehension failures, so grounding is decisive.
Every coding agent, under the hood, runs the same loop: understand the situation, take an action, observe what happened, and decide the next action — repeating until the task is done. This read-edit-run-observe loop is the engine of a coding agent, and it works for code precisely because each action produces concrete, verifiable feedback. This post builds that loop and shows why closing it against real results is what separates an agent from a code generator.
Every coding agent runs the same loop: observe the state, decide an action, act through a tool, observe the result, repeat. Closing the loop against code's concrete feedback (errors as rich signals) is what makes it an agent that converges to working code, not a one-shot generator — and the loop is only as reliable as the feedback driving it.
An AI that answers coding questions is an assistant; an AI that independently reads a codebase, makes changes across many files, runs the tests, sees what broke, and fixes it is a coding agent. That shift — from suggesting code to doing the work in a real repository — is one of the most consequential developments in software engineering, and it has its own distinct engineering. This series builds coding agents from first principles, starting with what makes an agent different from autocomplete.
An AI that answers coding questions is an assistant; one that reads a codebase, edits across files, runs the tests, and fixes what broke is a coding agent. The shift from suggesting code to doing the work, why code is a near-ideal agent domain (it's verifiable), and the engineer's new role as director-reviewer.
All posts on this site are written by Pratik Dhanave, an Agentic AI Architect with 7+ years building production distributed systems, multi-agent AI platforms, and cloud-native infrastructure. About the author → Each article includes working code, architecture diagrams, and references to the specific frameworks and standards discussed. Browse the blog or explore related topics using the tag cloud above.