Problem
Phase 1 of streaming subagents is incomplete. The check_task tool for polling background task status is not implemented.
Required Implementation
Tool that allows agents to:
- Query status of a background task by ID
- Get partial results if available
- Check if task completed/failed
Files
- Create:
packages/opencode/src/tool/check_task.ts
- Update:
packages/opencode/src/tool/registry.ts
Reference
See TODO-streaming-subagents.md for full Phase 1 requirements.
Branch
claude/simplify-agentic-loop-2jRSP