state-memory-mcp

state-memory-mcp is a skill for Claude Code, Codex from putervision/spc. It costs 45 tokens per session (1,875 once invoked), scanned A, a copy of state-memory-mcp, MIT.

A persistent graph-based memory system for coding agents. It records tasks, decisions, blockers, plans, milestones, files, and how these items relate to one another.

In plain words
What is it for?
Tracking project progress, recording decisions and artifacts, checking requirement coverage, finding blockers, and tracing what tasks depend on each other.
Why use it?
It keeps workflow context available across sessions, so the agent does not have to reconstruct project state from scratch. It also helps reveal unfinished work and dependencies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Tracking project progress, recording decisions and artifacts, checking requirement coverage, finding blockers, and tracing what tasks depend on each other.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/putervision/spc/state-memory-mcp
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.

Any agent
npx skills add putervision/spc --skill state-memory-mcp
Clone the repo
git clone --depth 1 https://github.com/putervision/spc

Made for: Claude Code, Codex.

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 state-memory-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/putervision/spc/state-memory-mcp/github.svg)](https://agentmods.dev/skills/putervision/spc/state-memory-mcp)
Your own site
<a href="https://agentmods.dev/skills/putervision/spc/state-memory-mcp"><img src="https://agentmods.dev/badge/skills/putervision/spc/state-memory-mcp/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 state-memory-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/putervision/spc/state-memory-mcp"><img src="https://agentmods.dev/badge/skills/putervision/spc/state-memory-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,875 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 98% copy Near-identical to another mod 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.00045 $0.01875
Opus 5.5 $0.00018 $0.00750
Sonnet 5.5 $0.00009 $0.00375
Haiku 4.5 $0.00005 $0.00187

Measured 1mo ago against content hash 6bd8a5a5657e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

state-memory-mcp 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.

Origin

This is a copy

98% identical to state-memory-mcp — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/state-memory-mcp/SKILL.md · 98 lines

How it starts

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

State Memory (state-memory-mcp) — 13 Consolidated Tools

This project uses state-memory-mcp with project slug "spc" to provide AI agents with a structured, persistent graph for tracking workflow state.

1. Priority Order & Mandatory Checklist

Before doing any coding or investigation, you MUST run this sequence:

  1. manage_sessions(action: "start") — Start a tracking session with an agent_id for full change attribution.
  2. get_analytics(action: "summary") — Understand current project state, active branches, and overall progress.
  3. manage_specs(action: "compliance") — Check real-time requirement coverage matrix and unfulfilled criteria.
  4. manage_tasks(action: "next") — Query prioritized runnable tasks (sorted by downstream impact and age).
  5. manage_tasks(action: "find_blockers") — Identify any active blockers preventing progress.
  6. manage_nodes(action: "list") — Find pending tasks, past decisions, or milestones.
  7. query_graph(action: "trace") — Trace what depends on or blocks a task.

2. Complete 13 Consolidated MCP Tools Reference

# Tool Name Key Actions Description
1 manage_nodes create, update, get, remove, list, search, batch_create, batch_update, add_note Graph node CRUD, full-text / TF-IDF search, atomic batch operations, and quick notes.
2 manage_edges add, remove, batch_add, link_visual Manage typed graph relationships and link tasks/artifacts to visual memory state IDs.
3 manage_sessions start, end, list, bootstrap Agent tracking sessions, attribution, and single-turn context bootstrapping.
4 manage_tasks next, complete, find_blocked, find_stale, find_blockers, find_similar_blockers, auto_prune Prioritized task queue, task completion, blocker detection, and automated stale pruning.
5 manage_snapshots save, list, diff, get_state, revert, undo, get_history Graph checkpoints, visual diffs, point-in-time state reconstruction, and rollbacks.
6 manage_specs scaffold, ingest, export, compliance, verify, decompose_feature, template Spec-Driven Development (SDD), PRD parsing, acceptance verification, and FDD/RFC templates.
7 manage_database backup, restore, audit, merge, branch_diff, branch_merge SQLite maintenance, physical backups, integrity audits, and Git branch state diffs/merges.
8 manage_data export_graph, export_issues, export_trajectories, export_joint_trajectories, export_synergy_metrics, import_graph, import_issues, import_spec Bulk import/export of graph formats, GitHub/Jira issues, ML trajectories, and ROI synergy metrics.
9 query_graph subgraph, trace, raw, natural_language Graph traversal, upstream/downstream dependency tracing, raw SQL queries, and natural language search.
10 get_analytics summary, velocity, burndown, value_metrics, cognitive_load, critical_path, context_snapshot, decision_trail, find_related_decisions, contradictions Analytics suite: project overview, velocity, burndown, token ROI, cognitive load, and decision trails.
11 get_events log, changelog, post_mortem Append-only event log queries, session changelogs, and automated session post-mortems.
12 run_diagnostics validate, doctor, check_refs, audit_chain, compact, archive, prune_events, version Graph integrity validation, doctor health checks, SHA-256 hash audits, compaction, and archiving.
13 use_blackboard post, read Asynchronous multi-agent notice board for inter-agent coordination with TTL expiration.

Read the full file on GitHub · 98 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. 1mo ago First seen · 98 lines · 45 tokens per session scan A 6bd8a5a5657e

Subscribe to this mod's changes

state-memory-mcp is a skill published in the GitHub repository putervision/spc (19 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 1,875 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to state-memory-mcp, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

profiling

Profile Rubydex indexer performance — CPU flamegraphs, memory usage, phase-level timing. Use this skill whenever the user mentions profiling, performance, flamegraphs, benchmarking, "why is X slow", bottlenecks, hot paths, memory usage, or wants to understand where time is spent during indexing/resolution. Also…

Shopify/rubydex · 78 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens