Agent Context Isolation
Rules for passing subagent results through files instead of TaskOutput so the main conversation's context stays clean.
AutomationAdvanced★ 3,894⑂ 296AI score 7/10Last updated: Jan 26, 2026
What it does
Stops the most common subagent failure mode in Claude Code: the agent's full transcript flooding the main context window.
- Launch agents with
run_in_background=trueand have them write results to.claude/cache/agents/<agent-type>/ - Never call
TaskOutput— it returns the entire transcript (70k+ tokens) - Track progress via system reminders, expected output files, and output file size growth
- Three signals for detecting a stuck agent
- Verify work by running the test suite (
bun test), not by reading logs - A file-based pipeline pattern: research → plan → validate → implement
Who it's for
- Anyone who has lost conversational context to mid-session compaction during long agent runs
- Developers designing multi-agent orchestration workflows
- Power users trying to stretch their context budget
Examples
- On a large refactor, run the research agent in the background and hand only its markdown file to the planning agent.
- When an agent goes quiet, run
find .claude/cache/agents -name "*.md" -mmin -5to see whether fresh output exists and decide if it's stuck. - After the implementation agent finishes, run the test suite immediately and report pass/fail counts instead of reading the transcript.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/HEAD/.claude/skills/agent-context-isolation/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/agent-context-isolation folder from the GitHub repo parcadei/Continuous-Claude-v3 into my ~/.claude/skills/agent-context-isolation/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/parcadei/Continuous-Claude-v3.git && mkdir -p ~/.claude/skills && cp -r Continuous-Claude-v3/.claude/skills/agent-context-isolation ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and go to your working directory.
- Clone the repo:
git clone https://github.com/parcadei/Continuous-Claude-v3.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r Continuous-Claude-v3/.claude/skills/agent-context-isolation ~/.claude/skills/ - Confirm
~/.claude/skills/agent-context-isolation/SKILL.mdexists. - Restart Claude Code. The skill is marked
user-invocable: false, so it is referenced automatically during subagent work rather than called directly. - Optionally pre-create a
.claude/cache/agents/directory in your project.
View source on GitHub ↗License: MIT