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.
How 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.
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.mdnpx claudepluginhub lollipopkit/cc-plugins --plugin context-firewallGuides Claude to read at the right altitude, delegate bulk reconnaissance to subagents, avoid redundant re-reads, and externalize durable facts to preserve context window space.
Processes large files exceeding context limits by dividing them into chunks and coordinating analyst agents for parallel analysis, then synthesizing results.