SuperAPIAI Directory

AgentRecall

github.com · AI agents

Persistent cross-session agent memory that surfaces the most relevant past memories using the Intelligent Distance Protocol.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

AgentRecall is a persistent memory system for AI agents, with the core goal of solving the problem of corrective forgetting across sessions. When a user tells an agent "do not upgrade versions without asking," that correction is transformed into a structured rule, persistently saved, and proactively presented in the next session, while also recording whether the error occurs again.

Purpose

AgentRecall is mainly used to provide AI agents with persistent memory across sessions and projects, with particular focus on "correction"-type memories. It is suitable for scenarios where agents need to remember user preferences, rules, decisions, and lessons, such as code development and project collaboration. Through a local-first design, all memories are stored as plain Markdown files on the user's disk (default ~/.agent-recall/) and are not uploaded to the cloud.

Main Capabilities

  • Correction Ledger: Each correction (such as "not that version," "put this section first," "ask before assuming") generates a structured record containing fields such as severity, evidence, applicable conditions, retraction, and outcome, and is persistently saved across sessions, projects, and agent restarts.
  • Measurement Tools: Each correction accumulates retrieved_count, and each time the same situation is encountered, the result is recorded as heeded (followed) or recurred (recurrence), used to measure behavior change.
  • Five-Layer Memory Model: Based on cognitive psychology classifications, mapped to ordinary files, each layer forgets at a different rate and shares naming syntax, making it easy for agents to combine retrieval paths.
  • Auditable Mathematical Mechanisms: Including RRF rank fusion, the Ebbinghaus forgetting curve, FSRS-lite spaced reinforcement, salience calculation, Beta–Bernoulli feedback learning, ACT-R associative activation, paraphrase matching, promotion voting, behavior change measurement (heed rate + Wilson interval), and calibrated confidence, among others. All formulas and constants are公开 in the source code.
  • MCP Server: Provides five tools by default, with tool descriptions written for agents, explaining when to call them. Can be viewed via npx -y agent-recall-mcp --list-tools.
  • Claude Code Skill: Provides SKILL.md, which can be integrated into Claude Code.
  • SDK: Provides a JS/TS SDK, where each instance has an independent isolated root (AsyncLocalStorage), and concurrent instances do not share state.
  • CLI: Supports terminal, CI, and hook usage.
  • Optional semantic retrieval: Uses a local ONNX model, added as an additional list to RRF fusion, must be manually enabled.
  • Experimental toolkit: experimental/harness-kit/ provides Claude Code hooks for detecting whether corrections change behavior, including SessionStart scoreboard, error classification, ghost detection, etc.

Usage

Install the MCP server: npx -y agent-recall-mcp. In Claude Code, it is recommended to configure hooks (session_start, session_end, correction hooks) so that the memory loop runs without the agent actively invoking it. It can also be integrated into JS/TS applications via the SDK, or operated in the terminal using the CLI. Memory files are local Markdown, with optional Supabase mirroring to add pgvector retrieval.

Applicable scenarios

  • Development scenarios where the agent needs to remember user corrections and avoid repeating mistakes.
  • Long-term collaboration across sessions and projects, where rules and preferences are expected to accumulate.
  • Users who are sensitive to data privacy and require memory to be stored entirely locally.
  • Research or engineering teams that need to quantify agent behavior change.

Limitations

  • Memory retrieval relies on keywords and an optional semantic model; paraphrase matching is fuzzy lexical matching, not true semantic understanding.
  • Offline migration scores 0 on sparse corpora and requires sufficient correction density to be effective.
  • Some mathematical mechanisms (such as ACT-R activation) are optional and disabled by default.
  • In behavior change measurement, the heed tool once defaulted to judging cases with no evidence as "complied," and has been reset to "unknown"; the current 0/3 is an honest starting point.
  • Does not store secrets, tokens, or credentials.
  • Some features (such as semantic retrieval) require a local model, and CI does not download it.
  • Platform support: CI runs builds, regressions, and tests on ubuntu-latest and windows-latest.
  • Fees, pricing, specific platform compatibility, etc. are not provided in the materials.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools