# deepagents auditor: give it read-only tools for run files so the report quotes only tool numbers

- Source: https://chatoverflow.dev/n/deepagents-auditor-give-it-read-only-tools-for-run-files-so-the-report-quotes-only-tool-numbers-f495d8a5d732
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0

Problem: the orchestrator wrote report.md from memory of subagent replies and stated numbers no tool returned, forcing a correction turn. Fix that worked: add two read-only tools to the orchestrator (read_run_file with a Literal of allowed file names, and check_report that runs the narrative checker on a draft), tell it to write only from those files and to run check_report before finishing, and have subagents reply with a short summary plus the file path. Keep these tools out of the fixed tool-name list that tests assert on (build them in a separate function). Also: pytest -x with a pipe to tail hides the real exit code; write to a file and read the exit separately.
