# Goldentrii/AgentRecall [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Goldentrii/AgentRecall  
**GitHub Stars:** 376  
**npm Downloads (last month):** 1275  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/goldentrii-agentrecall

## Description
Persistent, compounding memory for AI agents across sessions. Uses the Intelligent Distance Protocol to surface the most contextually relevant past memories. Five tools: sessionstart, remember, recall, check, sessionend. npx agent-recall-mcp

## Tools
Capabilities this server exposes over MCP:

- **session_start** — Default `mode: "cards"` loads the owner identity card, the HARD RULES and the project state card, nothing else; `mode: "full"` adds insights, continuity, rooms, captures and `watch_for` warnings
- **remember** — Saves one fact; auto-routes to journal / palace room / awareness
- **recall** — Ranked search across every store (RRF), with `useful` feedback that re-weights future ranking
- **check** — Records a correction (`human_correction: {rule, why, applies_when}`; staged for approval on the hosted server). With `action_description`, matches the plan against known corrections and returns `verdict: "blocked"` when one overrides it
- **session_end** — Writes the journal, promotes insights, records trajectory, rewrites the project state card (`state`), optionally opens/closes a pipeline phase

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "agentrecall": {
    "command": "npx",
    "args": ["-y","agent-recall-mcp"]
  }
}
```

## Documentation

## What Goldentrii/AgentRecall does

Goldentrii/AgentRecall gives agents persistent, local-first memory across sessions, projects, and restarts. It is built around a corrections ledger: when an agent is corrected, the fact can be saved with structured context such as severity, evidence, applicability, and later outcome. The system can then surface that correction before a similar action and record whether the agent followed it or repeated the mistake.

Memory is stored as local Markdown, including files under `~/.agent-recall/`. The project describes its export format as `corrections-export/v1` and supports scrubbed export on egress. Its design is intended for agents that need more than an unstructured chat history, particularly when owner rules, project state, and prior decisions must influence future work.

## How it works

The recommended lifecycle starts with `session_start`, before the agent acts. In its default `cards` mode, it loads the owner identity card, HARD RULES, and project state card. The optional `full` mode also returns insights, continuity, rooms, captures, and `watch_for` warnings.

During work, the agent can call `recall` to search across the memory stores. Results are ranked with reciprocal rank fusion, and the `useful` feedback option adjusts future ranking. `remember` saves a fact and routes it to the relevant journal, palace room, corrections, or awareness store.

Before a risky or irreversible operation, `check` compares the planned action with known corrections. A correction that overrides the plan produces a `blocked` verdict. At the end of a session, `session_end` writes the journal, promotes insights, records trajectory, rewrites the project state card, and can open or close a pipeline phase.

## Setup and configuration

The MCP package can be launched with npx:

```bash
npx -y agent-recall-mcp
```

For Claude Code, the documented command is:

```bash
claude mcp add --scope user agent-recall -- npx -y agent-recall-mcp
```

Other MCP clients can use a standard server entry with `npx` as the command and `-y agent-recall-mcp` as its arguments. The default installation exposes the five core tools. A full mode is available by starting the package with `--full`.

Memory is local Markdown rather than a remote service, so the setup is suited to workflows where stored context should remain on the machine. The project advises against saving secrets, tokens, or credentials.

## Tools and capabilities

- `session_start`: Loads focused startup cards by default, or expanded context in full mode.
- `remember`: Saves one fact and automatically routes it to the appropriate memory stores.
- `recall`: Searches all stores with ranked results and optional usefulness feedback.
- `check`: Tests a planned action against corrections and can return `verdict: "blocked"`.
- `session_end`: Persists the journal, session trajectory, promoted insights, and project state.
- Corrections tracking: Records retrieval and whether a correction was heeded or recurred.

## Limitations and notes

The memory loop depends on the agent calling the tools at the appropriate points. In particular, the project recommends starting every session with `session_start` and ending with `session_end`; otherwise the agent may lack orientation or fail to compound new information. `check` is most useful when the agent calls it before risky actions rather than after them.

Default startup is intentionally selective: `session_start` in `cards` mode does not load every memory store. Use full mode when the wider context, rooms, captures, or warnings are needed. Corrections remain owner-gated for rule edits, and credentials should not be placed in memory.

_Full upstream README: https://allmcps.com/mcp/goldentrii-agentrecall/readme_

