# Spine Memory

> Persistent Markdown + YAML graph memory for AI agents—zero Docker, Neo4j, or vector DBs. Built for devs, designers, researchers, and writers (with an optional dev preset), validated on 624 live nodes & 945 reasoning steps ($7.25 for 177.3M tokens).

Spine Memory is a free AI agent skill on Agensi by Scrimal, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Scrimal](https://www.agensi.io/creators/scrimal)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.1.1
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/spine-memory
- Tags: llm-ops, ai-agents, code-review, memory, knowledge-graph, markdown, yaml, mcp

## About this skill

Every new session, your AI agent wakes up with total amnesia—forgetting past research findings, breaking established design or worldbuilding rules, or repeating rejected architecture paths while burning thousands of tokens re-reading raw notes.

**SPINE-Memory** gives your agent persistent, human-readable **Markdown + YAML** graph memory powered by a zero-dependency Python 3.10+ stdlib engine (`pip install spine-memory`)—**no Docker, no Neo4j, no vector DBs, no brittle embeddings**. Built for **devs, designers, researchers, and writers**—whether you are managing a UX/design-system spec, a multi-month research vault, a book/lore bible, or a production codebase (via `--preset dev`).

### Why Plain Markdown + YAML Beats Vector DBs
* **4-Layer Progressive Disclosure:** Agents scan 2-line `IMPULSE` headers first, drill into `SUMMARY` and `CLEANED_DATA` only when relevant, and leave raw `SOURCE_BASE` notes (`>=70%` byte floor) in cold storage so your context window stays lean and cheap.
* **Domain-Agnostic + Optional Dev Suite:** Works out of the box for general knowledge, research, design systems, and long-form writing (`spine init`), or unlocks `CODE_MEMORY` nodes (`adr`, `postmortem`, `gotcha`, `contract`, `dead_end`) and pre-edit file checks with `spine init --preset dev`.
* **Deterministic Critic (`0` LLM Tokens):** Enforces YAML contracts, section caps, anchor hygiene, and source fidelity locally via `spine critic` instead of burning API budget on LLM-vs-LLM judge loops.
* **Built-In Safety & Isolation:** Includes `<untrusted_source_base>` prompt-injection quarantine in `spine-mcp`, automatic secret scrubbing, and Git worktree support.

### Try It in 30 Seconds
1. Install the open-source CLI: `pip install spine-memory`
2. Initialize a knowledge graph (or add `--preset dev` for code repos): `spine init`
3. Build your incremental index and inspect nodes: `spine build-index`

Validated in live daily work across 624 memory nodes and a 945-step flagship reasoning run (177.3M tokens for $7.25 via 99%+ KV-cache retention).

## Requires

- Python 3.10+
- Optional: Git

100% free & open-source (MIT). Zero required external packages (stdlib only); install the companion CLI engine via pip install spine-memory.

## Known limitations

Requires installing the companion open-source CLI package (pip install spine-memory) to run local indexing, critic validation, and MCP server commands. Does not parse source-code AST symbols directly (pair with ripgrep or your IDE's LSP for code symbol lookup).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Spine Memory skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Spine Memory differ from a standard RAG or vector database setup?

Unlike vector databases that rely on probabilistic similarity, Spine Memory uses a deterministic Markdown/YAML graph that tracks 'intent' and architectural logic, making it easier to audit via Git and less prone to hallucinations.

### Which AI agents and platforms are compatible with this skill?

The skill is designed for Python 3.10+ environments and natively supports the Model Context Protocol (MCP), making it compatible with Claude Code, Cursor, Windsurf, Cline, pi, and any agent framework that supports MCP or custom Python tool calling.

### Does this skill automatically index my entire source code repository?

Spine Memory provides the framework to store and retrieve architectural decisions (ADRs) and 'gotchas,' but it relies on your existing LSP or ripgrep tools for direct source code indexing to keep the memory graph lean and performant.

### Can I version control the memory graph created by this skill?

Yes, because the graph is stored in a structured Markdown/YAML format, you can commit the memory directory to your Git repository to track how your agent's knowledge and architectural decisions evolve over time.

### What is the initial setup process like for a new project?

Setup is straightforward: install the package via pip, run 'spine init' to scaffold your directory, and the built-in 'spine critic' tool will guide you through validating your first memory nodes to ensure schema compliance.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
