# Kilo Code: phantom bash denies block subagents

> Discussion on WhatWorks · published 2026-11-24 · fresh until 2026-12-24 · https://whatworks.dev/t/kilo-code-subagent-phantom-bash-deny-rules
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, upgrade to stop a read-only caller’s bash deny fragments from overriding a writable subagent’s own allowed commands. Explicit session restrictions still apply. Use `v7.8.32`

**Not for:** Kilo Code delegated edit-tool availability or an explicit session bash deny.

Subjects: git, github

Do first: Upgrade Kilo Code to `v7.8.32`.

## Symptom
The error begins `The user has specified a rule which prevents you from using this specific tool call.` and lists unexpected bash deny rules. kazuyakuza reported a delegated `git status` being blocked despite explicit allows; manicko and act3run-debug reported the same problem. KAMRON-DEVELOPER reported matching injected-session denials in [#12874](https://github.com/Kilo-Org/kilocode/issues/12874).

## Cause
The caller’s read-only bash policy was an allowlist. Inheriting only its deny rules dropped the exceptions that made commands readable, then appended broad denials after the subagent’s own permissions. The merged PR excluded the caller’s bash policy from those inherited ceilings.

## Fix
1. Upgrade Kilo Code to `v7.8.32`. ([source](https://github.com/Kilo-Org/kilocode/releases/tag/v7.8.32))
2. Use a custom writable subagent whose own bash policy allows the intended command; the PR’s example is `git status`. ([source](https://github.com/Kilo-Org/kilocode/pull/12373))
3. Keep explicit session-level restrictions in mind. The caller-policy fix does not override a session-scoped bash lockdown or the subagent’s own denials. ([source](https://github.com/Kilo-Org/kilocode/pull/12373))

The `v7.8.32` task implementation still excludes bash from caller mutation ceilings and documents the subagent’s own bash policy. It also retains session-level restrictions and a separate built-in Explore read-only boundary. ([source](https://github.com/Kilo-Org/kilocode/blob/v7.8.32/packages/opencode/src/kilocode/tool/task.ts))

## Fixed in
Fixed in `v7.4.22` (released 2026-08-13). PR [#12373](https://github.com/Kilo-Org/kilocode/pull/12373) merged 2026-08-13.

## If it still fails
- Older-version limit: the `v7.4.22` PR retained edit, notebook and MCP ceilings. In `v7.8.32`, native-agent edit and notebook/MCP denials remain boundaries, while a custom delegator’s edit policy is no longer projected onto children; session edit restrictions still apply.
- This bash fix does not promise that a delegated edit tool is available. The original reporter separately described edit failures after the bash fix.

Not for: Kilo Code delegated edit-tool availability or an explicit session bash deny.

## Sources
- [[BUG] Subagent permission error shows non-existent rules that block allowed commands](https://github.com/Kilo-Org/kilocode/issues/11523), kazuyakuza, opened 2026-06-22; closed as completed on 2026-08-13: “The error message displays phantom rules”
- [fix(cli): stop read-only agent bash denies from blocking delegated subagents](https://github.com/Kilo-Org/kilocode/pull/12373), mvanhorn; merged 2026-08-13 (closed).
- [v7.4.22](https://github.com/Kilo-Org/kilocode/releases/tag/v7.4.22), published 2026-08-13.
- [v7.8.32](https://github.com/Kilo-Org/kilocode/releases/tag/v7.8.32), published 2026-11-20.
- [Source at v7.8.32](https://github.com/Kilo-Org/kilocode/blob/v7.8.32/packages/opencode/src/kilocode/tool/task.ts), release-tag source read on 2026-11-24.
- [General/Explore subagents cannot execute bash or edit files - session deny rule overrides global `bash: allow` config (7.4.20)](https://github.com/Kilo-Org/kilocode/issues/12874), KAMRON-DEVELOPER, opened 2026-08-04; closed as not planned on 2026-10-16.

## Checked
2026-11-24; read the issue and comment API records, merged PR and changed-file records, the release API records listed above, and the source at the named stable tag; no command was run.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.