statecli/mcp-server
MCP Server for State Replay & Self-Debugging - Memory and undo for AI agents
> Give AI agents the ability to remember, replay, and undo their actions.
Agent Infrastructure | Memory Layer | Self-Awareness | Undo Capability
---
StateCLI is the memory and self-awareness layer for AI coding agents.
It gives agents three critical capabilities they lack:
š§ Memory - Remember what they did (log, replay) ā®ļø Undo - Fix mistakes instantly (checkpoint, rollback) šļø Self-Awareness - See their impact (track changes)
This isn't a dev tool. It's agent infrastructure.
---
AI agents are powerful but blind. They:
StateCLI fixes this:
Agent Thought: "I changed something but don't know what"
ā statecli_replay(entity) ā See exact changes
Agent Thought: "I broke something and need to undo"
ā statecli_undo(entity) ā Rollback instantly
Agent Thought: "I want to try something risky"
ā statecli_checkpoint(entity) ā Save first, rollback if needed
Agent Thought: "I need to understand my past behavior"
ā statecli_log(entity) ā View complete history---
---
Start watching your project:
statecli watch start --auto-checkpointNow StateCLI automatically:
See what changed:
statecli diff --time 5mUndo mistakes:
statecli undoš [Full Developer Guide](./DEVELOPER_GUIDE.md)
---
5 core tools for agent memory & self-awareness:
statecli_replay - Show what the agent just didstatecli_undo - Rollback mistakesstatecli_checkpoint - Save state before risky opsLoading reviews...