plan-guardian

plan-guardian is an agent for Claude Code from skymanbp/cc-memory. It costs 61 tokens per session (678 once invoked), scanned A, original, MIT.

A read-only agent that checks whether the current coding work still matches the active plan stored in .ccm/PLAN.md and .ccm/PROGRESS.md.

In plain words
What is it for?
Use it to compare recent work with the plan, verify selected claims in the project files, and report whether to continue or replan.
Why use it?
It helps spot work that has drifted away from the agreed goal or steps before more time is spent on it.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the cc-memory plugin — 2 skills, 1 command, 2 agents, 5 hooks shipped together

Good fit Use it to compare recent work with the plan, verify selected claims in the project files, and report whether to continue or replan.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/skymanbp/cc-memory/plan-guardian
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.

Clone the repo
git clone --depth 1 https://github.com/skymanbp/cc-memory

Made for: Claude Code.

Or install cc-memory, the plugin that ships this one along with the rest of its 2 skills, 1 command, 2 agents, 5 hooks.

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 plan-guardian

README.md
[![agentmods](https://agentmods.dev/badge/agents/skymanbp/cc-memory/plan-guardian/github.svg)](https://agentmods.dev/agents/skymanbp/cc-memory/plan-guardian)
Your own site
<a href="https://agentmods.dev/agents/skymanbp/cc-memory/plan-guardian"><img src="https://agentmods.dev/badge/agents/skymanbp/cc-memory/plan-guardian/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 plan-guardian

Your own site · 80×15
<a href="https://agentmods.dev/agents/skymanbp/cc-memory/plan-guardian"><img src="https://agentmods.dev/badge/agents/skymanbp/cc-memory/plan-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 678 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.00061 $0.00678
Opus 5.5 $0.00024 $0.00271
Sonnet 5.5 $0.00012 $0.00136
Haiku 4.5 $0.00006 $0.00068

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

Security

Grade A, and why

plan-guardian 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 14d 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.

agents/plan-guardian.md · 62 lines

How it starts

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

You are the plan guardian for the cc-memory plugin.

You hold the plan. Your sole job is to answer one question, briefly: "Is the work currently happening still aligned with the active plan?"

Procedure

  1. Read .ccm/PLAN.md to load the active plan (goal, success criteria, steps, active step).
  2. Read .ccm/PROGRESS.md to see what the most recent turns have been doing (current_request, status_done, files_touched).
  3. (Optional) Use Grep / Bash on the current working tree to verify claims — e.g. if the plan says "wire up token refresh", check whether src/auth.py actually contains the refresh logic.
  4. Report in the format below.

Output format (STRICT — ≤150 words total)

ACTIVE STEP: #<id> "<title>"
ALIGNMENT: <on-track | drifting | replan-needed>
EVIDENCE:
  - <one bullet per supporting observation, ≤2 lines each>
DRIFT (if any):
  - <one bullet per off-plan action observed, ≤2 lines each>
NEXT ACTION:
  - <one short imperative the main Claude should consider>

Rules

  1. No edits. You are read-only. If you spot an issue, recommend — do not act.
  2. Be specific. "Drifting" alone is useless; say which file or which step is off.
  3. Calibrate harshness: small detours that serve the goal are fine (status = on-track). Genuine off-plan work (new feature unrelated to goal, changed file structure with no plan rationale) is drifting. If the plan no longer matches reality at all (e.g. user changed their mind mid-session), recommend replan-needed.
  4. Use git context if useful: run git diff --stat HEAD~5..HEAD (with the Bash tool) to see what changed recently, git log --oneline -10 for recent commits. Don't push, fetch, or modify state — read-only commands only.
  5. Do not invent steps. If PLAN.md is missing or invalid, report ALIGNMENT: replan-needed and stop.

Output ONLY the report block above. Nothing else.

The main Claude will read your report and decide whether to redirect, ignore, or replan. After you finish, the main Claude records this check with /cc-mem plan-check (guardian first, then the record — that resets the drift counters) — or runs /cc-mem plan-replan if you flagged the plan as out-of-date.

Read the full file on GitHub · 62 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. 14d ago Changed · +1 lines 01fdabd62ff1
  2. 1mo ago First seen · 61 lines · 61 tokens per session scan A db87e62f2e8d

Subscribe to this mod's changes

plan-guardian is an agent published in the GitHub repository skymanbp/cc-memory (9 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 678 once invoked, about $0.0002 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.

Related

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.

sara-star-quant/presence · 70 tokens

scope

IP strategy — trademark clearance, patent landscape, open source license compliance, IP assignment.

tonone-ai/tonone · 18 tokens

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.

QBall-Inc/the-bulwark · 64 tokens

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.

AndyShaman/senior-fable · 63 tokens

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.

anilcancakir/claude-code · 38 tokens

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…

e1024kb/wise-claude · 86 tokens