Skip to content

feat(auth): deny subagent tools for ClawX desktop#1147

Merged
vcfgv merged 1 commit into
mainfrom
feat/deny-subagent-tools
Jul 7, 2026
Merged

feat(auth): deny subagent tools for ClawX desktop#1147
vcfgv merged 1 commit into
mainfrom
feat/deny-subagent-tools

Conversation

@vcfgv

@vcfgv vcfgv commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ClawX desktop does not expose the subagent workflow. Mirror the existing skill_workshop deny in sanitizeOpenClawConfig() and add sessions_spawn, sessions_yield, and subagents to both tools.deny and gateway.tools.deny so the model cannot spawn child agent sessions (runtime="subagent") even under tools.profile="full".

sessions_spawn is the only tool that creates a subagent; sessions_yield and subagents are the receive/list companions and are useless without it, so denying all three keeps the model from seeing orphaned subagent tools.

Tests updated to expect the expanded deny list.

ClawX desktop does not expose the subagent workflow. Mirror the existing
skill_workshop deny in sanitizeOpenClawConfig() and add sessions_spawn,
sessions_yield, and subagents to both tools.deny and gateway.tools.deny
so the model cannot spawn child agent sessions (runtime="subagent") even
under tools.profile="full".

sessions_spawn is the only tool that creates a subagent; sessions_yield
and subagents are the receive/list companions and are useless without it,
so denying all three keeps the model from seeing orphaned subagent tools.

Tests updated to expect the expanded deny list.
@vcfgv
vcfgv merged commit a0509b9 into main Jul 7, 2026
5 checks passed
@vcfgv
vcfgv deleted the feat/deny-subagent-tools branch July 7, 2026 07:44
@vcfgv
vcfgv restored the feat/deny-subagent-tools branch July 15, 2026 05:07
@vcfgv
vcfgv deleted the feat/deny-subagent-tools branch July 15, 2026 05:07
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.

1 participant