Stateful memory for AI agents. Temporal awareness, error loop detection, and preventive constraints.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Vlk² gives AI agents a sense of time: what's happening now (PRESENT), what's already been tried (PAST), and what should guide future decisions (FUTURE). It runs as a single binary over MCP, backed by SQLite, and manages these temporal transitions autonomously.
The killer demo: when an agent repeats the same Rust/TS/Python/Go error 3 times, Vlk² auto-archives the loop and injects a preventive constraint so the agent stops retrying the same broken approach. But the architecture is general — the temporal state machine can track any kind of past→present→future transition across any agent framework.
error[E0277]), TypeScript/JS (TS2345, TypeError), Python (ValueError, KeyError), Go (panic: nil pointer), HTTP (503 Service Unavailable), test frameworks (expected: X, got: Y), with a timestamp-stripping fallback. When the same fingerprint appears ≥3 times, Vlk² auto-archives the loop to PAST and injects a FUTURE constraint.General memory systems (agentmemory, Hindsight, Mem0, Supermemory) store facts, preferences, and context. Vlk² does one thing they don't: detect that the same Rust compile error repeated 3 times across different files and inject a constraint so the agent stops retrying the same broken approach. It's not a replacement — it's a specialized fault-detection layer that runs alongside them.
| Capability | Vlk² | agentmemory | Hindsight | Supermemory |
|---|---|---|---|---|
| Fact/persona memory | — | ✅ 53 tools | ✅ hooks | ✅ keywords |
| Cross-language error fingerprinting | ✅ 7 strategies | — | — | — |
| Autonomous loop breaking | ✅ ≥3 repeats auto-archive | — | — | — |
| Reconsolidation on retrieval | ✅ | — | — | — |
| Token-bounded context | ✅ 8K default | — | — | — |
Any MCP client connects via stdin/stdout — JSON-RPC 2.0, one line per message.
| Tool | Purpose |
|---|---|
vlk_record_state | Push a log/error as a PRESENT slot for loop detection |
vlk_fetch_context | Clean context with reconsolidation + loop interception |
vlk_time_travel | Archive PRESENT → PAST and inject a FUTURE constraint |
vlk_get_history | Full timeline audit |
vlk_search_memory | Keyword search across logs and constraints |
vlk_summarize_session | State counts + token estimates |
vlk_revoke_future | Remove incorrectly learned constraints |
vlk_get_facts | Retrieved distilled patterns |
vlk_consolidation_status | Show consolidation agent state with token bar |
vlk_pin_memory | Protect a pattern from forgetting |
vlk_unpin_memory | Restore normal forgetting eligibility |
error[E...], TS TS..., Python TypeError:, Go panic:, HTTP 503, test assertion, or first-80-chars fallback[SYSTEM ANCHOR] preventive constraintWhat's tested: the core loop detection path is verified: 3 identical Rust errors → auto-archive to PAST + FUTURE constraint injection. All 13 MCP tools respond correctly.
Not yet tested: pin/unpin with non-existent timeline_ids, token budget enforcement under load, conflict resolution.
Loop detection smoke test — sends the same Rust error[E0277] 3 times and verifies auto-archive + constraint injection:
Add to Hermes, OpenCode, Claude Code, Codex, or any MCP host:
Compatible with any MCP client. Works alongside agentmemory, Hindsight, Supermemory, or Hermes built-in memory.
Actively developed. The core loop detection and corrective memory cycle is implemented and E2E-tested. Vlk² is a specialized complement to general memory systems — not a replacement.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/vlk-memact)<a href="https://allmcps.com/mcp/vlk-memact"><img src="https://allmcps.com/api/badge/vlk-memact?style=directory" alt="Vlk MemAct on AllMCPs" /></a>