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 — feat(opencode): add native dynamic subagent task support by cgasgarth · Pull Request #18588 · anomalyco/opencode

Conversation

@cgasgarth

@cgasgarth cgasgarth commented Mar 22, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This adds native support for dynamic subagent task execution in core instead of forcing plugins to replace the task tool.

The change adds optional subagent_description, model, variant, and internal agent_config inputs to the native task flow. It also persists inline agent context on the child session's user message so resumed subagent sessions can stay on the same native path without depending on a registered config agent.

This is the core piece needed to let a plugin act as a policy layer for dynamic subagents without regressing built-in task/session behavior.

How did you verify your code works?

  • Ran bun test test/tool/task.test.ts test/session/prompt.test.ts
  • Ran bun run typecheck
  • Added focused tests covering dynamic task parameters and persisted inline agent context

I also attempted a local end-to-end smoke test, but this checkout currently cannot run the local CLI end-to-end on this machine because the source runner trips over react/jsx-dev-runtime, and the local package build path is pinned to Bun 1.3.10 while this machine has 1.3.5.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

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

All reactions
@cgasgarth
Add native dynamic task agent support
2e15ec3
@github-actions github-actions Bot added the needs:title label Mar 22, 2026
@github-actions

github-actions Bot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Add native dynamic subagent task support doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Mar 22, 2026
@github-actions

github-actions Bot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found several related PRs that address similar aspects of dynamic subagent functionality. Here are the most relevant ones:

Potentially Related PRs:

  1. feat(task): add model override for subagents #18528 - feat(task): add model override for subagents

    • Directly related to the model override feature being added
  2. feat: add temperature parameter to task tool for subagent control #18382 - feat: add temperature parameter to task tool for subagent control

    • Related to task tool parameters for subagent control
  3. feat: add assign-model feature for subagent model selection #17570 - feat: add assign-model feature for subagent model selection

    • Addresses similar model selection/override functionality for subagents
  4. feat(task): pass variant to subagent so it inherits parent's thinking level #12567 - feat(task): pass variant to subagent so it inherits parent's thinking level

    • Related to variant override behavior for subagents
  5. feat: add model parameter to Task tool for dynamic subagent model selection #14961 - feat: add model parameter to Task tool for dynamic subagent model selection

    • Directly related to dynamic model selection in task tool
  6. feat(agent): implement model tier selection with variant support for subagents #11377 - feat(agent): implement model tier selection with variant support for subagents

    • Covers variant and model tier selection for subagents

Note: PR #18588 is the current PR you're checking, so it's correctly excluded from the duplicate list. The PRs above may be either related work, prior attempts at similar features, or complementary changes that should be reviewed for overlap or coordination.

All reactions

Sorry, something went wrong.

Uh oh!

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

@cgasgarth cgasgarth changed the title Add native dynamic subagent task support feat(opencode): add native dynamic subagent task support Mar 22, 2026
@github-actions github-actions Bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 22, 2026
@github-actions

github-actions Bot commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Quadina reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@cgasgarth cgasgarth closed this Mar 22, 2026
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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@cgasgarth
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.