Skip to content
Crafthall HQ

The team as a wholeRisk · low confidence

Claude Code subagent that writes code without tests

Code changes are never verified: An agent that writes code names no test, check or review step and hands its work to no agent that tests or reviews it.

Why it matters

An agent that can edit files will report "done" as soon as the code is written. If its file names no test, build or review step, and no reviewer receives its work, nothing between the agent and you catches a broken change.

Broken changes reach the user unchecked, because nothing in the file or the handoff tests or reviews them.

An example that triggers it

A small Claude Code project. The marked lines are the ones the check cites.

Before.claude/agents/frontend-developer.md
---name: frontend-developerdescription: Builds UI components. Use when a task changes the web app.tools: Read, Write, Edit, Bashpersona: Mia---You are Mia. Build the components the task asks for and hand back a short summary.Never deploy.

What Crafthall HQ reports

The output of /crafthall-hq:open --report on this example, generated by the plugin's own check when this page was built.

claude › /crafthall-hq:open --report
1. [medium] Code changes are never verified – .claude/agents/frontend-developer.md:3
Mia writes code, but the file names no test, check or review step and hands the work to nobody who tests it. Broken changes reach the user unchecked.
Fix: Add the checks the agent runs before handing back (tests, build, lint – quote the result), or a handoff to the agent that tests or reviews its changes.
Real output on the example above.

How to fix it

Name the checks the agent runs before handing back and ask it to quote the result – or hand its work to an agent whose job is to test or review it.

After.claude/agents/frontend-developer.md
---name: frontend-developerdescription: Builds UI components. Use when a task changes the web app.tools: Read, Write, Edit, Bashpersona: Mia---You are Mia. Build the components the task asks for.Before you hand back, run npm test and npm run lint and quote the result.Never deploy.

Run on the fixed project, the check reports nothing for this rule.

How the check works

An agent that can write code was searched for any test, check or review step, or a handoff to an agent that does that (read from wording). It reads your files with text patterns, on your machine – no model, so the same files give the same result every run.

Check your own team

Install the free plugin, then run /crafthall-hq:open in your project. It runs all checks, not only this one.

claude plugin install crafthall-hq --marketplace crafthall/plugins

All 15 checks