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(agent): add orchestrate subagent for task decomposition by kuro-toji · Pull Request #24450 · anomalyco/opencode

Conversation

@kuro-toji

@kuro-toji kuro-toji commented Apr 26, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Issue for this PR

Closes #24447 (partially - addresses need for better task decomposition)

Type of change

  • New feature

What does this PR do?

Add a new orchestrate subagent that breaks down complex multi-step tasks into parallel subtasks executed by specialized agents.

Problem: Large tasks require manual decomposition and coordination of multiple Task calls.

Solution: Automate task breakdown with an orchestrator that:

  1. Analyzes complex tasks
  2. Creates focused subtasks (2-5 items)
  3. Executes subtasks in parallel via Task tool
  4. Synthesizes results

Files Changed

File Change
packages/opencode/src/agent/prompt/orchestrate.txt New orchestrator prompt
packages/opencode/src/agent/agent.ts Register orchestrate agent
packages/opencode/src/tool/task.txt Document orchestrate usage

How did you verify your code works?

  • Code follows existing agent patterns (explore, general, plan)
  • Import added to agent.ts
  • Orchestrator has appropriate permissions (task, todowrite, question)
  • Task tool docs updated with orchestrate example

Checklist

  • I have not included unrelated changes in this PR
  • Follows existing agent registration patterns

Sorry, something went wrong.

Uh oh!

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

All reactions
Assistant
feat(agent): add orchestrate agent for task decomposition
b05be71
Add a new 'orchestrate' subagent type that specializes in breaking down
complex multi-step tasks into smaller, manageable subtasks that can be
executed in parallel by specialized agents.

Key changes:
- packages/opencode/src/agent/prompt/orchestrate.txt: New prompt defining
  the orchestrator's role and workflow
- packages/opencode/src/agent/agent.ts: Register the new orchestrate
  agent with task permissions
- packages/opencode/src/tool/task.txt: Document orchestrate agent usage

The orchestrate agent:
1. Analyzes complex tasks
2. Breaks them into 2-5 focused subtasks
3. Executes subtasks in parallel via Task tool calls
4. Synthesizes results into cohesive solutions

This enables efficient handling of large tasks by parallelizing work
across multiple specialized agents (explore, general, build, plan).
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Apr 26, 2026
@github-actions

github-actions Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search results, I found one potentially related PR:

Related PR:

  • PR feat(tool): add experimental team tool for parallel subagents #20152: "feat(tool): add experimental team tool for parallel subagents"
    • feat(tool): add experimental team tool for parallel subagents #20152
    • This appears related as it deals with parallel execution of subagents, which overlaps with the orchestrate agent's goal of executing subtasks in parallel.

The other results (PRs #7156, #17210, #18528) are about general subagent features but less directly related to the task decomposition and parallel execution pattern introduced in PR #24450.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Apr 26, 2026
@github-actions

github-actions Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@kuro-toji

kuro-toji commented Apr 26, 2026

Copy link
Copy Markdown
Author

Thanks for the context! I see there's related work in PR #20152 (team tool for parallel subagents).

My orchestrate agent approach is different - it's a prompt-based subagent that does task decomposition, rather than a new tool.

Should I:

  1. Close this PR and let feat(tool): add experimental team tool for parallel subagents #20152 handle parallel execution
  2. Pivot to support/complement the team tool with the orchestrate prompt approach
  3. Keep as-is for prompt-based task decomposition (which could work alongside the team tool)

Let me know which direction makes sense!

All reactions

Sorry, something went wrong.

Uh oh!

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

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 26, 2026
@Bojun-Vvibe
review: drip-78 batch 1 — sst/opencode async command_async + orchestr…
fc5786c
…ate subagent, litellm chatgpt-responses SSE non-stream output synthesis

- anomalyco/opencode#24459 merge-after-nits: 204-fast async command endpoint, drive-by import migration to split out
- anomalyco/opencode#24450 needs-discussion: orchestrate subagent semantics overlap with direct Task fanout
- BerriAI/litellm#26549 request-changes: 80-line transformation.py fix bundled with 31 _experimental/out HTML files + next bump
@github-actions

github-actions Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot closed this May 26, 2026
@github-actions github-actions Bot added the automated-pr-cleanup label May 26, 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

automated-pr-cleanup

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

@kuro-toji
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.