SuperAPI AI Directory

statelessagent

Local agent memory with provenance tracking that detects when sources change, plus session handoffs, decision records, semantic search and a knowledge graph.

Open website

About this tool

SAME (statelessagent) is a local persistent memory tool for AI coding agents, with the core goal of solving the problem of AI "forgetting" between different sessions, so that each new session can continue from the context of the previous one. It uses a local-first design, requires no API key, is distributed as a single binary, supports Mac, Linux, Windows, and Raspberry Pi, and can also be installed globally via npm.

In terms of use, SAME provides a unified memory layer for various AI coding tools. It indexes the user's Markdown notes, automatically presents relevant context when an AI session starts, and records decisions and handoff information, enabling tools such as Claude Code, Cursor, Windsurf, Codex CLI, and Gemini CLI to share the same memory, so that context is not lost when switching between different editors.

Main capabilities include: memory persistence, where decisions, handoffs, and context can be retained across sessions; memory integrity, which tracks note provenance, detects changes to source files, and flags stale knowledge, with stale notes automatically ranked lower in search, and same health can show the trust status of the entire vault; two-layer memory, which uses an LLM to extract atomic facts from notes, and facts can be searched independently and increase the weight of source notes in search results; streaming HTTP transport, where same web --mcp provides an HTTP MCP endpoint with Bearer token authentication, connectable from Open WebUI, LobeChat, or any HTTP MCP client; 19 MCP tools, supporting direct in-editor search, saving decisions, and creating handoffs; team safety, where when multiple AI agents work on the same codebase, file claims, push protection, and attribution mechanisms prevent them from overwriting each other; instant expertise, providing 17 preset knowledge bases with more than 870 curated notes, installable with one command; connected knowledge, which can show the relationships among decisions, files, and notes, implemented on SQLite, and supports queries such as "what depends on this?".

In terms of usage, after installation, running same init automatically configures hooks and MCP tools. After installing with npm, you can run npx same@latest or update with npm update -g @sgx-labs/same. It is recommended in Claude Code; MCP clients such as Cursor and Windsurf can add SAME to MCP configurations such as .mcp.json or Cursor settings, thereby gaining 19 MCP tools. If Ollama is not installed, SAME runs using SQLite FTS5 keyword search; after installing Ollama later, it can be upgraded to semantic search via same reindex. Configuration uses .same/config.toml, generated by same init, and supported embedding models include nomic-embed-text (default), snowflake-arctic-embed2, mxbai-embed-large, all-minilm, text-embedding-3-small (OpenAI), and others. Configuration precedence is: CLI arguments > environment variables > configuration file > defaults.

Applicable scenarios include: cross-session memory management for AI coding agents, context sharing across multiple editors/tools, file protection and attribution during multi-agent collaboration in teams, and note and decision management requiring local privacy protection. Built-in PII scanning (a pre-commit hook detects emails, API keys, secrets, and personal data), push protection, audit logs, and privacy tiers (_PRIVATE/ is never indexed, research/ is indexed but never committed).

Limitations and notes: all data remains local, with no telemetry, no cloud, path traversal blocked, and configuration files written with owner-only permissions. In terms of tool compatibility, Claude Code gets fully automatic handoffs through hooks, while Cursor, Windsurf, Codex CLI, and Gemini CLI get full MCP tool access but handoffs must be triggered manually. The license is BSL 1.1, free for personal, educational, hobby, research, and evaluation use, transitioning to Apache 2.0 on 2030-02-02. Internal evaluation was completed on 105 tuned cases, with holdout validation at 93.3% Recall@5 on 30 blind test cases, and all evaluations used synthetic vault data.