Skip to content

fix: prevent orchestrator context overflow from TaskOutput polling#187

Merged
cahaseler merged 1 commit intomainfrom
feature/evaluate-async-hooks
Jan 27, 2026
Merged

fix: prevent orchestrator context overflow from TaskOutput polling#187
cahaseler merged 1 commit intomainfrom
feature/evaluate-async-hooks

Conversation

@cahaseler
Copy link
Owner

Summary

  • Updated orchestration instructions in commands/tasks.md, commands/spotless.md, and templates/tasks-template.md to stop Claude from using TaskOutput to watch subagent progress
  • Orchestrator now posts a status message and STOPs; the notification system wakes it when subagents complete
  • Prevents subagent working context from being dumped into the orchestrator's context window, which was causing rapid context overflow

Test plan

  • Run /cc-track:tasks with parallel phases and verify orchestrator posts status and waits without calling TaskOutput
  • Run /cc-track:spotless and verify investigation/validation subagents complete via notification, not polling
  • Verify foreground parallel commands (prepare-completion, spec-review) still work unchanged

🤖 Generated with Claude Code

Subagent orchestration instructions were telling Claude to poll or wait
for subagent results using TaskOutput/AgentOutputTool, which dumps the
subagent's entire working context into the orchestrator's context window.
Updated commands/tasks.md, commands/spotless.md, and templates/tasks-template.md
to instruct the orchestrator to post a status message and STOP, letting
the notification system wake it when subagents complete.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cahaseler cahaseler merged commit c8e61c6 into main Jan 27, 2026
4 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 27, 2026
## [4.1.1](v4.1.0...v4.1.1) (2026-01-27)

### Bug Fixes

* prevent orchestrator context overflow from TaskOutput polling ([#187](#187)) ([c8e61c6](c8e61c6))
@github-actions
Copy link

🎉 This PR is included in version 4.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant