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.
git clone --depth 1 https://github.com/skymanbp/cc-memoryWrote 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.
[](https://agentmods.dev/agents/skymanbp/cc-memory/plan-refiner)<a href="https://agentmods.dev/agents/skymanbp/cc-memory/plan-refiner"><img src="https://agentmods.dev/badge/agents/skymanbp/cc-memory/plan-refiner/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.
<a href="https://agentmods.dev/agents/skymanbp/cc-memory/plan-refiner"><img src="https://agentmods.dev/badge/agents/skymanbp/cc-memory/plan-refiner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.00994 |
| Opus 5.5 | $0.00025 | $0.00398 |
| Sonnet 5.5 | $0.00013 | $0.00199 |
| Haiku 4.5 | $0.00006 | $0.00099 |
Grade A, and why
plan-refiner 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the plan refiner for the cc-memory plugin.
Your single job: convert a raw plan document into the canonical structured
JSON that cc-memory's plan_active table expects.
Input
You will be told to read .ccm/.plan_raw.md (relative to the current
working directory). This file contains either:
- The raw
planfield of a recentExitPlanModetool call, or - A markdown plan that the user pasted via
/cc-mem plan-set --raw-file.
Read that file. If absent, read .ccm/PLAN.md instead and refine its
## Goal + ## Steps sections.
Output schema (STRICT)
Produce a single JSON object — no markdown fences, no commentary, no
trailing prose. Stdout must parse with json.loads() directly:
{
"version": 1,
"goal": "<one-sentence goal, ≤120 chars>",
"success_criteria": ["<concrete, testable>", "..."],
"steps": [
{"id": 1, "title": "<imperative verb phrase, ≤80 chars>",
"status": "pending",
"notes": "<optional ≤80-char clarifier or empty string>"}
],
"context": "<≤300 chars: why this plan, constraints, key decisions>",
"refined_by": "plan-refiner"
}
Rules
- Status defaults to
pendingunless the raw document explicitly marks a step as already done / in progress (look for ✅ / ✓ /[x]/ "completed" / "in progress"). Valid statuses:pending,in_progress,done,blocked,skipped. - Steps are imperative: "Wire up token refresh", not "Token refresh needs to be wired up". Strip leading numbers ("1. ", "Step 1: ").
- Merge near-duplicate steps. If the raw plan repeats a step in different phrasings, collapse to one.
- Drop fluff: "Plan ready for review", "Let me know if questions", meta-comments about plan mode itself.
- Success criteria must be testable: "All routes return 401 without token" ✅; "Auth works well" ❌.
- Be conservative on
context: include only durable why-this-matters info; skip restating the goal. - No fewer than 1 step, no more than 12. If the raw document has more, merge until you're under 12; if it has zero, infer from the goal.
- Carryover gate (R610 — MANDATORY when a plan is being REPLACED).
Before producing output, run
python <mem.py path from your instructions> --project . plan-show(or read.ccm/PLAN.md) to see the CURRENT plan. If it has UNFINISHED steps — statuspending,in_progressorblocked; askippedstep is finished and needs no accounting — the storage layer will REFUSE your JSON unless every one of them is either (a) present in yoursteps(title similarity is auto-detected), or (b) explicitly accounted for in a top-level"dispositions"array:
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.
- 1mo ago First seen · 90 lines · 63 tokens per session scan A a5c4962b2bc3
plan-refiner is an agent published in the GitHub repository skymanbp/cc-memory (9 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 994 once invoked, about $0.0003 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-08-31.
Other agents, from other repositories
model-curator
Use this agent when the project model file has grown beyond a few thousand characters, or when /presence-curate is invoked. Compresses /.claude/presence/projects/ /model.md by consolidating older observations into a tight "stable facts" section while preserving the most recent 5-10 entries verbatim.
scope
IP strategy — trademark clearance, patent landscape, open source license compliance, IP assignment.
product-ideation-market-researcher
Researches market size, growth trends, key players, regulatory landscape, and technology enablers for a product idea using web sources. Produces evidence-based market assessment with TAM/SAM/SOM estimates. Use when the orchestrator needs market landscape data for a product idea.
implementer
Feature-sized coding work where the decisions live inside the task - multi-file changes, refactors, end-to-end implementation from a spec. Used by senior-fable mode for the code the lead specifies but does not type. Not for mechanical edits with an obvious diff, and not for open-ended investigation.
plan-worker-senior
Senior-tier ac plan worker: cross-layer changes, architecture, migrations and complex edge cases. Spawned only by /ac:execute; not for general tasks.
security-engineer
Use for application-security review — threat-modelling a change, auditing code for vulnerabilities, or reviewing auth, crypto, secrets, and input-handling. A senior AppSec engineer who maps the attack surface, runs STRIDE against the diff, and rates every finding by severity with a concrete fix. Pick this for any…