agent-growth
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agent-growth
Git for Agent Memory — versioned, conflict-checked, rollback-able rules for Claude Code & Cursor. Zero extra API key.

pip install git+https://github.com/simin-yuan/agent-growth.git && growth init --target claudeYour agent remembers. But does it get better — and can you prove it?
Most "AI memory" stores facts. agent-growth stores rules learned from your corrections, versioned in Git, conflict-checked, and revertible with one command. It is the missing governance layer between "the agent remembered something" and "the agent is trustworthy enough to keep improving."
Memory is not growth. Trustworthy growth = correction → rule → reviewable, conflict-checked, revertible.
The 4 things a CLAUDE.md can't do
Capability |
| Mem0 | agent-growth |
Auto-capture from corrections | manual edit | ✅ | ✅ |
Conflict isolation (never pollutes the prompt) | ❌ rules just pile up | ❌ | ✅ |
Git rollback in one command | ❌ | ❌ | ✅ |
Zero extra API key | — | ❌ | ✅ (MCP mode) |
And it is plain local files + Git — no vector DB, no server, no lock-in.
Related MCP server: mnemo
Why
Every self-evolving agent today has the same black hole: it changes, but you can't see what changed, why, or undo it. That is not growth — that is drift.
agent-growth fixes the four things that make agent growth untrustworthy:
Problem | What this layer does |
"It forgot my correction next session" | Rules persist in a Git repo and are injected into every prompt |
"It got worse and I can't tell why" | Every rule is a commit with source + timestamp |
"Two corrections now contradict" | New rules are conflict-checked before they go active |
"I want the old behavior back" |
|
30-second demo
$ growth add "comments in Chinese"
stored 20261124-031500-a1b2c3: comments in Chinese (status=active)
$ growth add "comments must be English"
stored 20261124-031600-d4e5f6: comments must be English (status=conflict)
!! conflict: contradicts a1b2c3 (comments in Chinese)
run `growth conflicts`, then `growth resolve <id> --keep-new|--keep-old|--keep-both`
$ growth resolve 20261124-031600-d4e5f6 --keep-new
{"id": "20261124-031600-d4e5f6", "action": "keep-new", "superseded": ["20261124-031500-a1b2c3"]}
$ growth rollback 20261124-031600-d4e5f6
reverted 1f3c2a1The conflicting rule never touches the prompt until you decide. After resolve, git log shows exactly what changed and why.
Install
pip install git+https://github.com/simin-yuan/agent-growth.git
growth init --target claude # writes .mcp.json
growth init --target cursor # writes .cursor/mcp.jsonRequires Python 3.9+ and git on PATH. No other dependencies.
Zero API key (MCP mode)
Inside Claude Code / Cursor, the host model already is a strong LLM — you should not need a second key.
growth_learn accepts host-computed values:
rule— one clear sentence the host extracted from the correctionconflicts_with— ids of existing rules it contradicts ([]if none)
The host already calls growth_get_rules, so it has everything it needs. Result: full extraction + conflict interception with no GROWTH_LLM_KEY, no extra token cost.
A standalone CLI / offline mode still works; set GROWTH_LLM_KEY only if you want server-side extraction:
export GROWTH_LLM_KEY=sk-...
export GROWTH_LLM_BASE_URL=https://api.deepseek.com/v1
export GROWTH_LLM_MODEL=deepseek-chatCLI
growth add "<correction>" [--context TEXT] # extract + conflict-check + store a rule
growth rules # print the active rules block
growth conflicts # show unresolved conflict rules
growth resolve <id> --keep-new|--keep-old|--keep-both
growth log [-n 20] # rule history
growth rollback <id> # git revert a rule
growth inject [--out prompt.md] # write the rules block to a file
growth init --target claude|cursor|both [--dry-run]
growth mcp # run as an MCP server over stdioUse it from Claude Code / Cursor (MCP)
growth init --target claude # or cursor / bothThe agent then gets five tools:
growth_get_rules— pull the current rules into contextgrowth_learn— record a correction (rule+conflicts_withfor zero-key mode)growth_resolve— decide a conflict:keep-new/keep-old/keep-bothgrowth_rollback— undo a rulegrowth_log— inspect history
A minimal loop:
Agent does a task.
You correct it once.
The agent calls
growth_learnon its own, passing the extracted rule.Next session it calls
growth_get_rulesfirst — and stops making that mistake.
If a correction contradicts an existing rule, the agent gets status=conflict back, asks you which one wins, then calls growth_resolve.
How it works
correction ──▶ extract (host or LLM) ──▶ conflict check ──▶ store (Git commit)
│
prompt injection ◀── rules block ┘
│
resolve = keep-new / keep-old / keep-both
│
rollback = git revertStorage:
.growth/rules/*.md, one file per rule, frontmatter = metadata.History: the
.growth/directory is its own Git repo.git logis the audit trail.Safety: conflicting rules are stored with
status: conflictand are never injected until resolved.Integration: plain prompt block + MCP tools. No vendor lock-in.
A rule file looks like this:
---
{
"id": "20261124-031500-a1b2c3",
"created": "2026-11-24T03:15:00",
"source": "mcp",
"status": "active"
}
---
Never use emojis in code comments.Tests
python -m unittest discover -s tests -vCovers: add → active, conflict gate, keep-new / keep-old / keep-both, rollback restore, MCP surface, zero-key conflict interception.
Roadmap
Rule decay: age out stale rules, surface them for review
Team mode: shared rule repo with per-author attribution
Diff view: render a rule's full evolution
Web UI for conflict review
License
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceMCP server that gives AI coding agents a git-backed markdown wiki to read and update, enabling search, read, write, verify, ingest, promote, and lint operations on versioned knowledge documents with schema validation, staleness tracking, and contradiction detection.4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing persistent, local-first memory for AI agents via Markdown files in a git repo, with search, branching, and auditability.10 npm2MIT
- AlicenseAqualityBmaintenanceMCP server that gives coding agents persistent, verified memory of codebase decisions, conventions, and skills, with evidence-based claims that are re-checked via git hooks and human-gated review. Enables memory search, propose/approve, chat harvesting, and critique across MCP-compatible tools.21102 npm1MIT
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools that give AI agents persistent, append-only memory in a git repository, letting them record observations, decisions, and corrections while retrieving context briefs, current facts, conflicts, and traceable event history without a vector database.6 npmMIT