Coding agents and generative assistants promise speed. The risk is not the tool itself, but treating it as a substitute for context: missing repo, spec, environment, and acceptance criteria produce large diffs that are hard to defend.
1. Autonomy is not the product
“Let the agent figure it out” works for disposable spikes. In production, unrestricted autonomy multiplies paths without aligning outcomes. Value comes from amplifying people who already know what must be true in the system.
A useful question before each task: what does the agent need to know to do better than a well-briefed intern? If the answer is “nothing”, the problem is not the model.
2. Verifiable context
Context is not pasting the entire README. It is a short spec, relevant files, API contracts, test examples, and explicit constraints (performance, security, compatibility). The more verifiable the input, the less plausible the hallucination.
In monorepos, bounding package and layer keeps the agent from “fixing” adjacent modules out of algorithmic empathy.
3. Operational bounds
Bounds include maximum diff size, out-of-scope folders, no new dependencies without approval, secrets out of the prompt. Agents should fail early when permission is missing, not improvise with invented credentials or endpoints.
Sandboxes, disposable branches, and feature flags lower the cost of exploration without contaminating main.
4. Review and feedback
Human review stays mandatory: problem fit, tests, security, readability. Feedback to the agent (or the next prompt) should say why something was rejected, not only “I don’t like it”.
Mature teams record rejection patterns: they become checklists or lint rules the agent learns to respect.
5. Fit in the workflow
Healthy integration: spec → agent → CI → review → merge. The agent shows up where work is repetitive or boilerplate; humans show up where product trade-offs or long-term debt live.
An honest metric is not lines generated, but time to a mergeable PR you would sign with your name.