[Bug] autoMode.allow does not override "Tmux Self Drive" classifier rule
Bug Description
Bug: autoMode.allow does not clear the "Tmux Self Drive" classifier rule, despite being the documented
mechanism for exactly this.
Repro:
1. Set up a first-party self-context-management script (ctx-compact-self) that sends /compact to the agent's
own tmux pane via tmux send-keys, per Claude Code's own documented auto-roll pattern.
2. It gets blocked by the auto-mode classifier's soft_deny rule "Tmux Self Drive" — which explicitly notes "a
wrapper or sleep delay does not clear it."
3. Add an autoMode.allow entry in ~/.claude/settings.json naming the exact script and matching the rule's own
[named+specifics — must name: that this flagged self-driving pattern is a false positive — fine to allow]
bracket format.
4. Confirm via claude auto-mode config that the entry is present in the classifier's actual effective ruleset.
5. Retry the action anyway — still blocked, identical rejection.
6. Restart the Claude Code process entirely (ruling out stale in-process config) and confirm the tmux pane is
clean (ruling out an unrelated "queued input" false-positive) — still blocked.
Expected: autoMode.allow should clear a matching soft_deny rule, per the documented behavior at
code.claude.com/docs/en/auto-mode-config.
Actual: this specific rule appears to resist the documented override mechanism entirely, with no working
config-based escape hatch, even though the user explicitly authorized it in their own settings.
Environment Info
- Platform: linux
- Terminal: tmux
- Version: 2.1.214
- Feedback ID: 52b05c4b-ae05-4f96-a12a-8aa417a7f268
Errors
[]