Agent Orchestration Rules
The English summary is being prepared. Showing the original description.
Agent Context Isolation
The English summary is being prepared. Showing the original description.
See how to installReview the instructions the agent will receive before you install.
Prevent agent output from polluting the main context window.
# RIGHT - background agent writes to file, main reads file
Task(subagent_type="...", run_in_background=true, prompt="... Output to: /path/to/file.md")
# WRONG - foreground agent dumps full transcript into main context
Task(subagent_type="...", run_in_background=false)
Background agents with run_in_background=true isolate their context. Have them write results to files in .claude/cache/agents/<agent-type>/.
# WRONG - dumps entire transcript (70k+ tokens) into context
TaskOutput(task_id="<id>")
TaskOutput(task_id="<id>", block=true)
# RIGHT - check expected output files
Bash("ls -la .claude/cache/agents/<agent-type>/")
Bash("bun test") # verify with tests
TaskOutput returns the full agent transcript. Always use file-based coordination instead.
# System reminders come automatically:
# "Agent a42a16e progress: 6 new tools used, 88914 new tokens"
# To detect completion:
# - Watch for progress reminders to stop arriving
# - Poll for expected output files: find .claude/cache/agents -name "*.md" -mmin -5
# - Check task output file size growth: wc -c /tmp/claude/.../tasks/<id>.output
Stuck agent detection:
After agent work:
bun testResearch agent → .claude/cache/agents/oracle/output.md
↓
Plan agent → .claude/cache/agents/plan-agent/output.md (reads research)
↓
Validate agent → .claude/cache/agents/validate-agent/output.md (reads plan)
↓
Implement agent → src/module.ts (reads validated plan)
Each agent reads the previous agent's file output, not TaskOutput.
Agent context isolation preserves the main conversation's context budget. Reading agent outputs via TaskOutput floods context, causing:
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Agent Orchestration Rules
The English summary is being prepared. Showing the original description.
Agentic Workflow Pattern
The English summary is being prepared. Showing the original description.
Guide for integrating Agentica SDK with Claude Code CLI proxy
The English summary is being prepared. Showing the original description.
Reference guide for Agentica multi-agent infrastructure APIs
The English summary is being prepared. Showing the original description.
Write reliable prompts for Agentica/REPL agents that avoid LLM instruction ambiguity
The English summary is being prepared. Showing the original description.
Build Python agents with Agentica SDK - @agentic decorator, spawn(), persistence, MCP integration
The English summary is being prepared. Showing the original description.