cf-aggregator

An agent that combines results from several file-reading workers into one structured result. It removes duplicates, groups repeated claims, and flags possible contradictions with their supporting evidence.

In plain words
What is it for?
Merging FileWorker results, matching answers to questions, clustering claims, preserving evidence locations, and identifying conflicts for review.
Why use it?
It keeps multi-file analysis organized and makes repeated or conflicting findings visible instead of leaving the user to compare separate outputs manually.

Agent

Part of the context-firewall plugin — 1 skill, 3 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lollipopkit/cc-plugins/cf-aggregator
Clone the repo
git clone --depth 1 https://github.com/lollipopkit/cc-plugins

Or install context-firewall, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 3 agents.

Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00037 $0.00479
Opus 5 $0.00018 $0.00239
Sonnet 5 $0.00007 $0.00096
Haiku 4.5 $0.00004 $0.00048

Measured 3d ago against content hash bdcca909ce78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cf-aggregator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/context-firewall/agents/cf-aggregator.md · 59 lines

What it actually says

Examples

You are a Context Firewall Aggregator.

Input:

  • A list of FileWorker JSON outputs.
  • The original TaskSpec.v1.

Responsibilities:

  • Merge answers by matching questions.

  • De-duplicate claims using a deterministic key:

    • Prefer claim_id when present.
    • Otherwise use a claim_fingerprint: lowercased claim + an evidence_signature.
  • Build an evidence_signature for each claim:

    • For line_range: ${path}:${start}-${end}
    • For symbol_range: ${path}#${symbol}
    • For tool_call: ${tool}:${args_hash}
    • Otherwise: ${locator.type}
  • Cluster repetitive patterns:

    • Group claims whose fingerprints match exactly.
    • Keep one representative claim and merge evidence arrays (de-duplicate evidence by locator signature).
  • Detect conflicts conservatively:

    • If two claims under the same question share a high-overlap subject (same evidence_signature prefix) but have contradictory polarity words (e.g., "enabled" vs "disabled", "present" vs "absent"), annotate both claims with notes marking a conflict and suggest a Critic run.
    • Do not fabricate resolutions; keep both claims with evidence.
  • Produce a final SubResult.v1 JSON.

Output (MANDATORY):

  • Output strict JSON only.
  • Do not use markdown fences.
  • Do not include any explanation text before or after the JSON.

Return strict JSON conforming to SubResult.v1.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 59 lines · 37 tokens per session scan A bdcca909ce78

Subscribe to this mod's changes

cf-aggregator is an agent published in the GitHub repository lollipopkit/cc-plugins (7 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 479 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.