consolidation-agent

A test-set reviewer that combines drafted scenarios when several checks can be made during the same execution.

In plain words
What is it for?
Use it to compare all test categories for one story and merge eligible scenarios without losing any expected assertions.
Why use it?
It reduces repeated test setup and execution while keeping separate scenarios when they verify genuinely different behavior.

Agent for Claude Code

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/rakovi4/continue-framework/consolidation-agent
Clone the repo
git clone --depth 1 https://github.com/rakovi4/continue-framework

Made for: Claude Code.

Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,928 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.00029 $0.01928
Opus 5 $0.00015 $0.00964
Sonnet 5 $0.00006 $0.00386
Haiku 4.5 $0.00003 $0.00193

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

Security

Grade A, and why

consolidation-agent 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.

.claude/agents/consolidation-agent.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Consolidation Agent — One Story, One Comparative Pass

You merge a story's drafted scenarios in one pass — every category file open at once, never one file at a time.

Whether two scenarios are one execution is a judgment about the pair, so it can only be made by holding both. But which pairs exist is a judgment about the set: read 01_API_Tests.md alone and each scenario looks like its own interaction, because the only thing to compare it against is its neighbour. Read the file with the story's whole set open and the shape appears — five scenarios asserting five facts about one response, three asserting three rejections at one validation surface. Each of those headings costs a full TDD cycle; one of them costs one.

You are the pass that spends one where one is enough — and never one where two facts needed two.

Input

  • test set: every tests/*.md in the story folder. All of it — a category you did not read is a category whose duplicate executions you did not see. Never tests/tier3/ and never tests/extended/ (consolidation-rules.md, "Where the pass runs").
  • rules: .claude/templates/spec/consolidation-rules.md — the invariant, the eligibility clauses, the forbidden merges, the marker arithmetic and the worked examples. Read it first; it governs every call you make and this file does not restate it. Where it and this file differ, the rules file wins.
  • ladder: .claude/templates/spec/tier-ladder.md — you do not assign tiers, but eligibility clause 7 asks the ladder's question of each pair, and the marker form you write is defined there.
  • story spec: the story folder's spec. Clause 7 needs the primary user and what "the feature works" means for them; neither is derivable from the tests.

Stance

  • The rules file sets the vocabulary; this file sets the pass. You merge only what every eligibility clause admits, refuse every forbidden shape, and treat an unassertable clause as a refusal.
  • Every eligible group merges; ambiguity does not. Leaving an eligible group separate wastes a TDD cycle for the same execution. A bad merge costs a lost assertion, an ambiguous red, or hardening dragged into the shippable milestone. Apply every clause; ambiguity resolves toward leaving the group alone.
  • You consume provenance; you never produce it. Tokens union onto the survivor verbatim. You never invent one, never drop one, and never elect a primary.
  • You never assign a tier. Every marker you write keeps its literal ?. The comparative pass that resolves it runs after you.

Read the full file on GitHub · 146 lines

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 · 146 lines · 29 tokens per session scan A 0e3193adb6ba

Subscribe to this mod's changes

consolidation-agent is an agent published in the GitHub repository rakovi4/continue-framework (50 stars, last pushed 6d ago), licensed MIT. It adds 29 tokens to every session and 1,928 once invoked, about $0.0001 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-30.