GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bug: Subagents no longer have access to tools (in commander+worker pattern) · Issue #26758 · anomalyco/opencode

Bug: Subagents no longer have access to tools (in commander+worker pattern) #26758

New issue
Copy link
New issue
Copy link
Closed
#27201
Closed
Bug: Subagents no longer have access to tools (in commander+worker pattern)#26758
#27201
Copy link
Assignees
jlongster

Description

@BurnySc2
BurnySc2
opened on May 10, 2026
Issue body actions

Description

I am using a commander + worker pattern, where the commander is the default agent.
The commander has almost no permissions (no read, no write), however it delegates tasks (or task chunks) to subagents which have specific permissions (for example a finder subagent has read permissions, but not write).

Simple example:
The commander can delegate the "code-writer" agent to modify a file.
However, since version 1.14.46 (worked in 1.14.45) my code-writer agent no longer has the read and write tools available, so it cannot read or modify files.
Prompt example: Use code-writer to modify my hello_world.py to say "Hi world" instead of "Hello world"

The tools seems to show up for the subagents again if I add permission "allow" or "ask" for the commander.

Commander:

---
description: Master orchestrator. Analyzes user intent, decomposes tasks, coordinates subagents for all pipelines.
mode: primary
permission:
  task: allow
  todowrite: allow
  todoread: allow
  question: allow
  read: deny
  write: deny
  edit: deny
  bash: deny
  webfetch: deny
  glob: deny
  grep: deny
  external_directory: deny
---

Code-writer:

---
description: Code writer. Creates new files, modifies existing files, adds features while maintaining backward compatibility.
mode: subagent
permission:
  read: allow
  write: allow
  edit: allow

Plugins

No plugins

OpenCode version

1.14.46

Steps to reproduce

Use the commander + worker pattern from the example in the description. Prompt the commander agent to use a worker agent to read or modify a file, while commander has no read/write (read: deny) permissions while the subagent has them (read: allow).

Screenshot and/or share link

No response

Operating System

ManjaroLinux

Terminal

Alacritty

Reacted by Vladimir Goshev, Gelven, Garikoitz Bergara, Conny Hansson and Ciprian Radu

Activity

  1. github-actions
    assigned
    jlongster
    on May 10, 2026
  2. github-actions commented on May 10, 2026

    @github-actions
    github-actionsBot
    on May 10, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • Subagent parent deny inheritance over-constrains delegated agents with explicit permissions #26700: Same regression in v1.14.46 — parent agent deny rules are inherited by subagents, overriding subagent explicit allows in deny-by-default commander/worker patterns. Very detailed analysis of the root cause (the deriveSubagentSessionPermission() change from PR fix(task): subagent inherits parent agent's deny rules (Plan Mode security bypass) #26597).
    • [Bug] Subagent permissions not transitive via task tool — own bash permissions ignored #26747: Same symptom in v1.14.46 — subagent bash permissions blocked because calling agent's deny rules override the subagent's own allow rules.

    Both issues describe the exact same behavior you're seeing: subagents losing access to their configured tools when the parent/commander agent has explicit deny rules.

    Reacted by BurnySc2
  3. nabilfreeman commented on May 11, 2026

    @nabilfreeman
    nabilfreeman
    on May 11, 2026
    Contributor
    More actions

    Root cause is here #26700

  4. kitlangton
    closed this as completedin #27201on May 13, 2026
  5. kitlangton commented on May 13, 2026

    @kitlangton
    kitlangton
    on May 13, 2026
    Contributor
    More actions

    This was fixed in #27201 and should be out in the next release.

    The fix keeps Plan Mode’s inherited edit restriction, but stops parent agent self-restrictions like read, bash, and task from erasing a subagent’s own explicit permissions.

    Thanks for the commander/worker repro, that was exactly the workflow the regression broke.

  6. OrShmuel22 commented on May 15, 2026

    @OrShmuel22
    OrShmuel22
    on May 15, 2026
    More actions

    For anyone still hitting this with v1.14.50+: #27201 fixed bash/read/task inheritance, but edit: deny on a parent still blocks subagents that have edit: allow. I opened #27654 which checks the subagent's own permission — if it explicitly allows edit, the parent deny doesn't override it. Plan Mode security is preserved since general and explore don't declare edit: allow.

  7. Sewer56
    added a commit that references this issue on Sep 4, 2026

    fix(task): subagent explicit edit:allow overrides parent edit:deny

    12a5349
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.