context-folding

Official

Isolate complex tasks with safe context boundaries.

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

  1. Create an isolated branch: branch_create(session_id: "main", description: "Analyze auth module (sub-task)", budget: 4096)
  2. Do work inside the branch, then check status: branch_status("br_abc123")
  3. Return results: branch_return(branch_id: "br_abc123", message: "Analysis complete", return_value: { "results": [] })

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.