
Agent Context Isolation
Keeps agent outputs from flooding your main context window by enforcing file-based coordination instead of TaskOutput calls. The core insight is that reading agent transcripts with TaskOutput can dump 70k+ tokens into your conversation, triggering compaction and losing track of the original request. Instead, run agents in background mode and have them write results to files in .claude/cache/agents, then verify completion by checking for those files or running tests directly. The skill includes patterns for chaining agents through file outputs and detecting when background agents get stuck by monitoring system reminders and file growth.
- skills.sh installs
- 514
- GitHub stars
- 3.9K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add parcadei/continuous-claude-v3 --skill agent-context-isolation --agent claude-codeInstalls into .claude/skills of the current project.
Files
Agent Context Isolation
Prevent agent output from polluting the main context window.
Rules
1. Use Background Agents with File-Based Coordination
# 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>/.
2. Never Use TaskOutput to Retrieve Results
# 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.
3. Monitor Agent Progress via System Reminders
# System reminders come automatically:
# "Agent a42a16e progress: 6 new tools used, 88914 new tokens"
Sponsors
Details
- Repository
- github.com/parcadei/continuous-claude-v3
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026
More from parcadei/continuous-claude-v3
All 108- Parallel Agents514
- Create Handoff512
- Continuity Ledger511
- Debug509
- Hooks509
- Prove508
- Compound Learnings507
- Hook Developer506
- Tldr Code506
- Commit503
- Research External503
- Test503
- Background Agent Pings502
- Debug Hooks501
- Describe Pr501
- Braintrust Tracing498
- Opc Architecture497
- Shapely Compute497
- Workflow Router497
- Math Router495
- Recall495
- Mcp Scripts494
- Help493
- Firecrawl Scrape492