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 — fix(task): preserve subagent self permissions by kitlangton · Pull Request #27201 · anomalyco/opencode

Conversation

@kitlangton

@kitlangton kitlangton commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Preserve Plan Mode's inherited edit restriction for subagents.
  • Stop inheriting unrelated parent-agent self-denies like read, bash, and task into delegated subagents.
  • Add regression coverage for controller/executor deny-by-default delegation and parent session deny ceilings.

Test

  • bun run test test/permission-task.test.ts test/agent/plan-mode-subagent-bypass.test.ts
  • bun typecheck
  • push hook: bun turbo typecheck

Fixes #26700
Fixes #26747
Fixes #26758
Fixes #27123

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kitlangton
fix(task): preserve subagent self permissions
08e08d2
@github-actions github-actions Bot added the contributor label May 13, 2026
@kitlangton
kitlangton enabled auto-merge (squash) May 13, 2026 01:29
@kitlangton
kitlangton merged commit c4e676b into anomalyco:dev May 13, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

This was referenced May 13, 2026
Subagent parent deny inheritance over-constrains delegated agents with explicit permissions #26700
Closed
[Bug] Subagent permissions not transitive via task tool — own bash permissions ignored #26747
Closed
Bug: Subagents no longer have access to tools (in commander+worker pattern) #26758
Closed
[FEATURE]: Insane. Add independent agents back. #27123
Closed
@OrShmuel22 OrShmuel22 mentioned this pull request May 15, 2026
fix(task): subagent explicit edit:allow overrides parent edit:deny #27654
Closed
3 tasks done
@Sewer56

Sewer56 commented May 17, 2026

Copy link
Copy Markdown
Contributor

@kitlangton This PR introduces a regression.

Parent agents with scoped edit permissions like:

edit:
  "*": deny
  "specific-pattern": allow

now break subagents that have their own scoped edit allows:

edit:
  "other-pattern": allow

other-pattern can no longer be accessed.

Merging of permissions puts parent's "*": deny last, overwriting any allow rules by child.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@public-static-void public-static-void mentioned this pull request May 25, 2026
fix(task): respect subagent explicit edit:allow over inherited parent edit:deny #29235
Closed
3 tasks done
@felixnorden felixnorden mentioned this pull request May 28, 2026
fix(opencode): granular subagent edit permission inheritance #29778
Closed
4 of 6 tasks
mugnimaestra added a commit to mugnimaestra/opencode that referenced this pull request Jun 7, 2026
@mugnimaestra
fix(agent): preserve subagent self-declared tool allows over inherite…
8ad93be
…d parent denies

deriveSubagentSessionPermission no longer forwards a parent agent's edit deny (or parent-session denies) for any permission the subagent explicitly allows, so custom subagents like general-opus-4.7 (edit: allow) spawned by edit-denying orchestrators keep edit/write access. Built-in explore/general still inherit the Plan Mode ceiling since they don't declare edit: allow. Adds regression tests and documents the recurring regression + invariant in AGENTS.md. Refs anomalyco#26514 anomalyco#27201 anomalyco#27654.
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@kitlangton
fix(task): preserve subagent self permissions (anomalyco#27201)
bf37821
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
@kitlangton
fix(task): preserve subagent self permissions (anomalyco#27201)
cb2bd9d
@marius-kilocode marius-kilocode mentioned this pull request Jun 19, 2026
fix(cli): preserve custom subagent permissions Kilo-Org/kilocode#11475
Merged
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@kitlangton
fix(task): preserve subagent self permissions (#27201)
b1afb53
@darellchua2 darellchua2 mentioned this pull request Sep 20, 2026
V2: subagent frontmatter skill allows ignored (global deny wins) #50149
Closed
@Project579 Project579 mentioned this pull request Nov 8, 2026
agents: plan-mode session can escalate to edit access by delegating to the general subagent #55814
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Insane. Add independent agents back. Bug: Subagents no longer have access to tools (in commander+worker pattern) [Bug] Subagent permissions not transitive via task tool — own bash permissions ignored Subagent parent deny inheritance over-constrains delegated agents with explicit permissions

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@kitlangton @Sewer56
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.