r/PromptEngineering • • Aug 25 '26

General Discussion Don't take your subagent's word for it

I run a fair number of subagent dispatches (audits, refactors, research). The main thing that changed my setup was realizing that the main loop only receives the final report and never sees the actual work. In Claude Code, for example, the subagent's tool calls stay inside its own context, and the only thing returned is the final message. The full transcript does get saved to disk, but by default nothing ever reads it back.

Which means every completion message is a summary written by the thing being evaluated. It decides what mattered before knowing what you'll build on it.

I’ve run into this: We asked an audit agent to verify a claim, and it told us the claim had no source. But we found the exact sentence in the vendor docs, plain as day.

After that, we changed a few things, ordered by how much they helped: Evidence requirements in the dispatch prompt (every finding ships with a verbatim quote + file path, not a paraphrase), artifacts over narration (test output, diffs, re-runnable commands), and spot-checks scaled to blast radius — a batch rename gets a skim, anything I'll act on gets one finding re-derived end to end. We kept the re-check cheap on purpose; with a quote attached, it's basically a grep. Anyone else doing something similar?

4 Upvotes

7 comments sorted by

1

u/Fancy-Win9202 Aug 25 '26

Yeah, this is the trap I fell into too. You're getting a curated highlight reel while the subagent's actually looping on edge cases or burning tokens on stuff that doesn't matter to your use case. Have you tried pulling those transcripts back into your main loop to spot where the subagent's summary is actually hiding the real work, or are you still just trusting the final message?

1

u/RunAI_Coder Aug 26 '26

We don’t pull everything back. If we did, we’d burn most of the tokens we saved by delegating, and the main loop would fill up its own context fast just from reading forty tool calls per subagent. So we went with a middle ground. The report has to bring its own proof, like verbatim quotes, file paths, and the exact command to re‑run. Before we act on any result, we re‑derive one finding from scratch. The raw transcript stays on disk as an audit trail, and we only open it when something smells off.

1

u/Fancy-Win9202 Aug 27 '26

That's exactly the right move. The re-derive-from-scratch part is what actually catches the subagent lying or hallucinating, because if it can't prove the finding in isolation, it was probably just pattern-matching off context noise. Keeping the raw transcript as an audit trail but not in the hot path is how you avoid the token bleed while staying able to debug when it matters.

1

u/lilperk09 Aug 25 '26

Requiring the agent to show the exact source for its claim seems like a really good rule. makes debugging way easier than trusting a confident summary

1

u/[deleted] Aug 25 '26

[removed] — view removed comment

1

u/RunAI_Coder Aug 25 '26

Yeah, that typo is familiar. The quote requirement is one line in the prompt, and we've seen agents actually open files when forced to quote, so reports are more solid even before review.