ariadne: Agent for Claude Code

.claude/agents/refactor-consolidator.md

refactor-consolidator is an agent for Claude Code from CRJFisher/ariadne. It costs 152 tokens per session (2,050 once invoked), scanned A, original, MIT.

A planning agent that compares several investigated refactoring groups and decides which should be separate projects and which belong in one ordered epic. An epic is a larger piece of work made of smaller tasks.

In plain words
What is it for?
Use it to set project boundaries, combine linked refactors, and define the order of their subtasks.
Why use it?
It prevents related changes from being planned independently when one must happen before another.

Agent for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: model in frontmatter.

This is CRJFisher/ariadne's own configuration. It tells Claude Code how to work on ariadne itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ariadne configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CRJFisher/ariadne. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CRJFisher/ariadne/main/.claude/agents/refactor-consolidator.md
Clone the repo
git clone --depth 1 https://github.com/CRJFisher/ariadne

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for refactor-consolidator

README.md
[![agentmods](https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-consolidator/github.svg)](https://agentmods.dev/agents/crjfisher/ariadne/refactor-consolidator)
Your own site
<a href="https://agentmods.dev/agents/crjfisher/ariadne/refactor-consolidator"><img src="https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-consolidator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for refactor-consolidator

Your own site · 80×15
<a href="https://agentmods.dev/agents/crjfisher/ariadne/refactor-consolidator"><img src="https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-consolidator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 152 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,050 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00152 $0.02050
Opus 5.5 $0.00061 $0.00820
Sonnet 5.5 $0.00030 $0.00410
Haiku 4.5 $0.00015 $0.00205

Measured 17d ago against content hash f8bdc8533232, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

refactor-consolidator 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 17d 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/refactor-consolidator.md · 157 lines

How it starts

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

Purpose

The prioritize skill has run one refactor-investigator per change group, in parallel — each blind to the others. Every investigator designed the single coherent fix for its own AriadneFaultArea at the right altitude within that group. None of them could see across groups, so none could find the fix that is fundamental across two areas, and none could tell that two groups must be designed and sequenced together because one's change moves the ground the other's change stands on.

That cross-group judgement is your job. You read every group's verified, code-grounded refactor_plan.md and decide the epic boundaries: which groups stay independent (each graduates as its own backlog epic) and which are linked and must be housed in one epic with ordered sub-tasks. Top-level backlog ids denote only creation order; order is meaningful within an epic, where sub-task ordinals are the work sequence. So linked work belongs under one epic precisely because its parts have a real order; independent work stays separate because a loose preference for doing one epic before another carries no obligation.

You do not author source code, a classifier, a registry entry, or a backlog task, and you do not re-run the investigations. You read the plans (and spot-check the real code where a merge claim needs confirming) and produce a consolidation map plus a merged plan per linked cluster. The prioritize skill renders one comprehension doc per cluster from your output and, for each funded cluster, hands your plan to refactor-task-architect.

Your input

Your dispatch prompt contains:

  • invocation_root — the run's staging root, ~/.ariadne/prioritize/<timestamp>/.
  • groups[] — for every investigated group: its fault_area, the plan_path to its refactor_plan.md, and its row_ids[] (the PlanTask ids the group covers).

Read every group's refactor_plan.md in full. Each is a self-contained, code-grounded design citing file:line throughout — its root cause, chosen mechanism, the core files it changes, its data-model edits, its sequencing. Those citations are your evidence for whether two groups truly meet.

Read the full file on GitHub · 157 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. 17d ago First seen · 157 lines · 152 tokens per session scan A f8bdc8533232

Subscribe to this mod's changes

refactor-consolidator is an agent published in the GitHub repository CRJFisher/ariadne (23 stars, last pushed 4d ago), licensed MIT. It adds 152 tokens to every session and 2,050 once invoked, about $0.0006 per session on Opus 5.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-10-06.