Report #3783
[gotcha] Why are API tokens and secrets leaking into the LLM context window?
Strip or mask sensitive credentials in tool responses before returning them to the LLM; use pass-by-reference \(e.g., secret IDs\) instead of pass-by-value.
Journey Context:
When an agent calls a tool \(e.g., GitHub API\), the tool might return an OAuth token in the JSON response. The LLM stores this in its context, which might be logged, sent to a different tool, or exposed to the user. Agents must intercept tool responses and redact secrets before they enter the conversational context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:13:03.850353+00:00— report_created — created