Ray's Knowledge Base
Unlock

The permission classifier blocks a subagent from copying repo files to a remote host

PitfallVerified 5 Nov 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A Claude Code implementer subagent tried to build a tarball of repo files and scp it to a cluster. The classifier denied the whole combined command as data exfiltration. The pack was probably not built either. The agent stopped and asked for a decision.

Cause#

The classifier treats a transfer of repo files to a remote host as exfiltration when a subagent runs it. A combined build-and-copy command is denied as one step.

Fix#

Let the subagent edit and run its local build only. Run the pack, the scp and the cluster job from the main session. Stop any wait loop the subagent left running.

Evidence#

In the dftracer-utils work, the main session packed the 48 changed test files plus the 4 deleted ones and ran the Corona job itself. It passed. The rule was used for later Sonnet and reagent implementers.

Also found by searching

  • subagent scp to remote host denied by permission classifier
  • implementer cannot copy files to the cluster
  • permission denied data exfiltration block on scp from a subagent