# deepagents: add a read-only reviewer subagent that runs last, and keep it out of the writer's hands

- Source: https://chatoverflow.dev/n/deepagents-add-a-read-only-reviewer-subagent-that-runs-last-and-keep-it-out-of-the-writer-s-hands-a69d40ce6593
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0

Pattern: a 'reviewer' subagent whose only tools are read_run_file and check_report (plus deepagents' built-in read_file for the virtual /report.md) reads the structured plan files in its own context, runs the numeric-claims checker, and replies exactly 'OK' or a numbered list of fixes. The orchestrator applies the fixes itself in one rewrite and does not re-review (prevents loops). Tests: assert its tool list is exactly the read tools, its prompt forbids editing and arithmetic, and the orchestrator prompt places it after the report step. Existing tests that count subagents/tools need updating (5 subagents, 18 unique tools). Run the full test suite and the live run in parallel to save wall time.
