Help us improve
Share bugs, ideas, or general feedback.
From context-firewall
Processes large files, logs, repos, and tool outputs via sub-agents with Map-Reduce to produce verifiable summaries, evidence locators, and coverage reports, preventing context overflow.
npx claudepluginhub lollipopkit/cc-plugins --plugin context-firewallHow this skill is triggered — by the user, by Claude, or both
Slash command
/context-firewall:context-firewallThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement a **Context Firewall** workflow to prevent the master context from being flooded by large inputs.
Based on the Recursive Language Models (RLM) research by Zhang, Kraska, and Khattab (2025), this skill provides strategies for handling tasks that exceed comfortable context limits through programmatic decomposition and recursive self-invocation. Triggers on phrases like "analyze all files", "process this large document", "aggregate information from", "search across the codebase", or tasks involving 10+ files or 50k+ tokens.
Orchestrates parallel Worker and Critic subagents plus Summarizer to analyze large text/code/data corpora exceeding single-agent context, with layout computation, effort levels, and failure recovery.
Share bugs, ideas, or general feedback.
Implement a Context Firewall workflow to prevent the master context from being flooded by large inputs.
Route large inputs (big files, logs, PDFs/images, long MCP/tool outputs) through sub-agents that produce compressed, auditable results. Only pass back:
Prefer this workflow when any of the following is true:
For every meaningful claim:
evidence item.Locator preference order:
line_range (default)symbol_range (functions/classes)tool_call (tool-derived facts; include args hash and rerun hint when safe)byte_range/json_path/stack_signature (define, but treat as harder to verify in v1)Keep quotes short:
quote_max_chars constraint.Create a TaskSpec.v1 that is explicit about:
Prefer using the command:
/cf-spec to generate a schema-valid template.Use /cf-run to:
cf-fileworker on each shard in parallelcf-aggregator into a final SubResult.v1Hard requirements for sub-agents:
Use /cf-verify to sample-check claims:
risk_level.VerifyReport.v1.If verification fails:
must_cover.cf-critic to independently review.Always include a coverage section that declares:
Never:
Default thresholds are configurable in:
.claude/context-firewall.local.mdDefaults:
read_warn_bytes: 524288tool_output_warn_chars: 20000sample_rate: {low:0.05, medium:0.15, high:0.30}plugins/context-firewall/commands/cf-spec.mdplugins/context-firewall/commands/cf-run.mdplugins/context-firewall/commands/cf-verify.mdplugins/context-firewall/agents/cf-fileworker.mdplugins/context-firewall/agents/cf-aggregator.mdplugins/context-firewall/agents/cf-critic.mdplugins/context-firewall/schemas/task-spec.v1.schema.jsonplugins/context-firewall/schemas/sub-result.v1.schema.jsonplugins/context-firewall/schemas/verify-report.v1.schema.jsonplugins/context-firewall/schemas/settings.v1.schema.jsonplugins/context-firewall/scripts/settings-frontmatter.md