context-folding
OfficialIsolate complex tasks with safe context boundaries.
Software Engineering#multi-agent#branching#task-orchestration#context-isolation#token-budget#context-folding
Authorfyrsmithlabs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Context folding addresses context bloat by creating isolated computation branches for complex sub-tasks, each with its own token budget and automatic cleanup on return.
Core Features & Use Cases
- Isolated branching: Create a dedicated context branch for a sub-task to prevent leakage into the main context.
- Budgeted execution: Each branch carries a token budget and timeout, with real-time status checks.
- Safe orchestration: Supports parallel or dependent task workflows with clear return values and memory records.
- Real-world use: Analyzing a large codebase with multiple agents while protecting the main session state.
Quick Start
- Create an isolated branch: branch_create(session_id: "main", description: "Analyze auth module (sub-task)", budget: 4096)
- Do work inside the branch, then check status: branch_status("br_abc123")
- Return results: branch_return(branch_id: "br_abc123", message: "Analysis complete", return_value: { "results": [] })
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: context-folding Download link: https://github.com/fyrsmithlabs/marketplace/archive/main.zip#context-folding Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.