Understand enough to decide: keeping humans in charge of AI-written code
AI coding agents now write code that runs. What they do not hand you is a clear view of what changed, what was checked, and what is still a guess, so you can decide whether to merge. I keep three rules for that: the one
AI coding agents now write code that runs. What they do not hand you is a clear view of what changed, what was checked, and what is still a guess, so you can decide whether to merge. I keep three rules for that: the one who makes a change is not its final checker, reports separate evidence from claims, and checking stops at "enough to decide".
I built these rules into qk, a small set of open-source skills for Claude Code, Codex and omp. You do not need qk to use them. The rest of this post is the rules themselves.
The problem is not the code
A few months ago my bottleneck was writing code. Now it is reading reports like this one:
Implemented the export feature. All tests pass. The edge cases are handled.
Which tests? Did the agent run them, or does it believe they pass? Which edge cases, and who decided they were the right ones? A report like that asks me to trust it. I would rather check it, in the few minutes I have.
Most agent kits answer this by giving the AI more autonomy: longer pipelines, more subagents, more steps that run by themselves. That helps the agent do more. It does not help me decide.
Rule 1: three roles, make, check, decide
Whoever makes a change is not its final checker. Authority to commit, push, merge or publish stays with a person, and it does not carry over to the next session.
In practice:
- A small, reversible change needs no second model. A command that runs, such as the test suite, is the checker.
- A larger change gets a reviewer from a different model family. When one model writes the code, a model from another family reviews it. Independent checks earn their cost: in one of my runs the review came back clean, and a later cross-audit still found two important defects.
- A new decision, or a new kind of authority, means the agent stops and asks. "You approved the plan" does not mean "you approved the push".
Rule 2: evidence, not claims
Before starting, agree what "done" means. When reporting, separate three kinds of statement:
- Seen: commands that were run and their results, files that were read.
- Reviewed: what another party checked.
- Told: what the agent believes but did not verify.
Then say what was not checked. That last part is the one most reports leave out, and the one I need most.
Every qk report ends with the same four lines, in this order:
Done: what was produced or changed, with paths
Evidence: commands run and their results, sources read
Not verified: what was not checked, and why
Needs your decision: what waits on you
The last line is the only one you must read. If it says "none", you are done. You can paste these four labels into your own CLAUDE.md or AGENTS.md today and ask your agent to end with them; you do not need qk for that.
Rule 3: enough
The first two rules have a failure mode. Separate roles and demand evidence without a limit, and you get agents that check and recheck, spending tokens without adding understanding.
So the third rule is the brake:
- Check only what could change the decision, once, in the cheapest way that is sufficient.
- Reuse what the session already saw.
- At most one review round and one fix round. A disagreement that remains goes to you, not into a loop.
- List the rest as "not verified" and move on.
"Enough" is not "skip the checks". What could change the decision must still be seen. It is permission to stop checking what could not.
What this looks like in qk
qk is thirteen skills, about 52 KB of instructions, and nothing loads until you call a skill by name. Each skill does one job and names the next command; skills never call each other, so you decide whether to run it.
| Role | Skills |
|---|---|
| Offer options and evidence, not choose | brainstorm, research |
| Make | cook, plan, release-notes |
| Check | test, plan (audit), debug, dogfood |
| Hand over work, not authority | handoff, agent-coord |
| Carry out authority you granted | commit, prefs, morning |
When I want more automation, qk run chains the roles for one task. One agent implements the change. The runner runs the plan's own checks. A model from another family reviews. At most one fix round follows, and a pull request opens. I approve the plan at the start and merge at the end. It can automate making and checking, never deciding.
To try it with Node.js installed:
npx skills add 'dakiquang/qk#v0.12.0' -g -a claude-code codex qwen-code -y
Then, in Claude Code: /qk-brainstorm Should this service read its config from environment variables or a file?
What I do not know yet
I would be overselling if I stopped there. I have measured some of this and not all of it. On small eval tasks, qk did no better than using no kit at all, or using Superpowers. On one hard review task it was the only setup to report defects as blocker or important, where the others saw at most one of them and called it minor; it also used the most tokens. That comparison, with its limits, is the subject of the next post.
qk is a personal project, published as is. It is maintained for my own work and versioned with tags, but I make no support commitment.
Read next: the philosophy page ยท the kit comparison data ยท the repository
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.