Skip to content

Conversation

@telnet2
Copy link
Owner

@telnet2 telnet2 commented Dec 6, 2025

This change implements the full task agent system in go-opencode to match
the TypeScript implementation in packages/opencode:

  • Updated built-in agents (general, explore, plan) with proper descriptions,
    permissions, and prompts matching the TS implementation
  • Created SubagentExecutor to implement TaskExecutor interface for actually
    executing subagent tasks (creates child sessions, runs processor loop)
  • Updated tool registry with RegisterTaskTool and SetTaskExecutor methods
  • Wired up the SubagentExecutor in both serve.go and run.go commands
  • Task tool now generates dynamic descriptions based on available agents
  • Added conversion from agent.Agent to session.Agent for processing

The subagents now have full capabilities:

  • general: Full tool access for research and parallel execution
  • explore: Specialized for codebase exploration with custom prompt
  • plan: Read-only access for planning and analysis

This change implements the full task agent system in go-opencode to match
the TypeScript implementation in packages/opencode:

- Updated built-in agents (general, explore, plan) with proper descriptions,
  permissions, and prompts matching the TS implementation
- Created SubagentExecutor to implement TaskExecutor interface for actually
  executing subagent tasks (creates child sessions, runs processor loop)
- Updated tool registry with RegisterTaskTool and SetTaskExecutor methods
- Wired up the SubagentExecutor in both serve.go and run.go commands
- Task tool now generates dynamic descriptions based on available agents
- Added conversion from agent.Agent to session.Agent for processing

The subagents now have full capabilities:
- general: Full tool access for research and parallel execution
- explore: Specialized for codebase exploration with custom prompt
- plan: Read-only access for planning and analysis
Add SUBAGENT.md with detailed documentation covering:
- Available agents (general, explore, plan) and their capabilities
- Task tool usage with examples
- Parallel execution patterns and concurrency model
- Architecture diagrams and component overview
- Detailed TS vs Go implementation comparison
- Orchestration patterns for common use cases
- Future roadmap for feature parity with TS
- Agent permission reference tables
@telnet2 telnet2 merged commit b928044 into main Dec 6, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants