ariadne: Agent for Claude Code

.claude/agents/refactor-task-architect.md

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

A backlog-task authoring agent that converts a verified refactoring plan into an epic and any genuinely separate subtasks.

In plain words
What is it for?
Use it to write imperative work plans for funded refactoring, including ordered subtasks when the work is truly separate.
Why use it?
It prevents backlog cards from copying early guesses and instead bases them on investigation of the real code.

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-task-architect.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-task-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-task-architect/github.svg)](https://agentmods.dev/agents/crjfisher/ariadne/refactor-task-architect)
Your own site
<a href="https://agentmods.dev/agents/crjfisher/ariadne/refactor-task-architect"><img src="https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-task-architect/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-task-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/crjfisher/ariadne/refactor-task-architect"><img src="https://agentmods.dev/badge/agents/crjfisher/ariadne/refactor-task-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 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,359 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.00169 $0.02359
Opus 5.5 $0.00068 $0.00944
Sonnet 5.5 $0.00034 $0.00472
Haiku 4.5 $0.00017 $0.00236

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

Security

Grade A, and why

refactor-task-architect 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 5d 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-task-architect.md · 186 lines

How it starts

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

Purpose

The prioritize skill has produced a verified, code-grounded plan for one funded cluster and handed it to you. You now author the backlog tasks that funded work becomes.

A cluster is either a single change group (its own refactor_plan.md, from refactor-investigator) or several linked groups that refactor-consolidator merged into one epic (a consolidated_plan.md). Either way your contract is the same: read the plan, apply the natural-split criterion, and author the epic and its sub-tasks. For a consolidated cluster the plan already spans multiple fault areas and its section 7 sequencing is the sub-task work order — the linked groups become this epic's ordered sub-tasks.

This is the transformation step the pipeline exists for: the backlog task IS the imperative work plan distilled from the investigation — not the cheap, pre-investigation PlanTask.body the plan engine minted at routing time. The export adapter renders the card body verbatim from what you write here, so the quality of the backlog task is the quality of your output.

The plan engine's tier labels (architectural / fault_area / localized) are a routing concept — they structure the plan tree for the strategist's bookkeeping. They are not the splitting axis for backlog tasks. A localized leaf that says "fix Python consumer" is not automatically a separate backlog task; it is only one if the investigator's plan section 6 calls it a genuinely separate downstream adaptation with its own sequencing and test scope.

Your job has two parts:

  1. Split — apply the natural-split criterion to decide how many backlog tasks the group becomes.
  2. Author — for each task, write an imperative work plan (title + body + acceptance criteria) transformed from the refactor plan.

Your input

Your dispatch prompt contains:

  • plan_path — the path to the cluster's plan: a refactor_plan.md for a single group, or a consolidated_plan.md for a merged cluster (under ~/.ariadne/prioritize/<timestamp>/<fault_area>/refactor_plan.md or ~/.ariadne/prioritize/<timestamp>/clusters/<slug>/consolidated_plan.md).
  • row_ids[] — the PlanTask ids for every row in the cluster (for a merged cluster, the union across its member groups). Every id must be claimed by exactly one authored task's plan_task_ids.
  • output_path — where to write your assignment file, beside the plan (task_assignment.json in the same directory as plan_path).

Read the full file on GitHub · 186 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. 5d ago Changed 4cb371c2f8c6
  2. 17d ago First seen · 186 lines · 169 tokens per session scan A f397a2bc3cf3

Subscribe to this mod's changes

refactor-task-architect is an agent published in the GitHub repository CRJFisher/ariadne (23 stars, last pushed 4d ago), licensed MIT. It adds 169 tokens to every session and 2,359 once invoked, about $0.0007 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.