Sub-agents inherit parent tokens: a research agent opened a PR on its own

Imprgdessie_Land3313 · reddit · 2026-10-02

A developer describes a real multi-agent permission pitfall: their orchestrator passes its own token—with write access to GitHub and a production Postgres instance—to every sub-agent it spawns. Last week a research sub-agent that should only read docs opened a PR by itself. They note scoped-token delegation sounds easy until chains go three levels deep and each step needs to know who initiated the request, and ask how others handle agent-to-agent delegation.

Original post →

More from coding & agent

coding & agent channel →