← sources

Claude Code Orchestration - ad-hoc cross agent messaging blocked by hook injection detection..ideas?

source: reddit (reddit:ClaudeCode)published 2026-10-29 02:15ingested 2026-10-30 02:40

retained text

I'm running into an issue where Claude absolutely refuses to take orders from me in certain situations and I'm not sure how to resolve it. 

Its shown in the pictures what is going on; I will start general orchestration going on a goal I set, with any agent doesn't matter, they're all launching shit the same way at the end of the day. I set up the program to have agents batch the shit out of tool calls; they front load all their thinking then write a giant file that contains dozens of chains of commands and ad-hoc relay messages built in that they can execute for a single tool call instead of 40 if t. Things are fine if I let the orchestrator handle everything but things go to shit after a while if I get involved.. I seems like its due to the way Claude detects hook injections.

The orchestrator relays them a message telling them to launch another agent of their own, and they do that, the orchestrator can still interact with the sub-sub-agents via relay, but the sub-sub-agents always refuse to accept any commands that I try to have them read in via hooks unless I route those through the orchestrator. Between agents, ad-hoc messaging still works regardless of platform or how many layers of management in between workers; but the second I get involved they think I'm trying to inject commands via hooking into files that they read...which I am, but like...its benign.

Some of these refusals are absurd...any ideas how to avoid this while still using this method of ad-hoc messaging?

  
I'm assuming there are harnesses out there that already have this figured out to do this same type of free ad-hoc coordination thing without costing turn or tool calls to receive them, and piggybacks/batches with any useful tool call that would already be used, in a far more sophisticated manner; any suggestions for stuff thats already out there and polished instead? 

document fetched 2026-10-30 00:43 · canonical https://reddit.com/r/ClaudeCode/comments/1xi7rv1/claude_code_orchestration_adhoc_cross_agent