Skip to content

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Jan 9, 2026

Issue

Task tool was overriding agent permissions via tools parameter when spawning subagents, causing agents to lose their configured permission levels. This allowed Plan mode restrictions to be bypassed.

Fix

Removed the tools parameter from SessionPrompt.prompt() call to let subagents inherit their parent's permissions properly.

Impact

Agents now maintain configured permissions as subagents, preserving the intended access control hierarchy and preventing Plan mode bypass.

Fixes anomalyco#6527

@randomm randomm closed this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security Issue/Bug] Plan mode restrictions bypassed when spawning sub-agents

2 participants