About AgentRecall MCP
AgentRecall MCP is an MCP server published by Goldentrii in the Communication category: correction-first agent memory. Precision KPI tracks if agents heed warnings. 5 layers, local-only. Conduid read 38 tools from its source: alignment_check, awareness_update, check, check_action, context_synthesize, digest and 32 more. It is published to npm as agent-recall-mcp and starts with npx.
The Goldentrii/AgentRecall-X monorepo this package is published from has 376 stars and 58 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v3.6.0 (28 Nov 2026). It follows v3.5.4 (21 Nov 2026), and the 5 most recent releases go back to v3.5.1 (12 Oct 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include comms.
Install
claude mcp add agentrecall-mcp -- npx -y agent-recall-mcpnpx -y agent-recall-mcpgit clone https://github.com/Goldentrii/AgentRecall-XTools (38)
alignment_checkRecord what the agent understood, its confidence, and any human correction. Measures the Intelligent Distance gap.| Parameter | Type | Description |
|---|---|---|
| assumptions | array | What agent assumed |
| category | string | |
| confidence * | string | Agent's confidence |
| delta | string | The gap, or 'none' |
| goal * | string | Agent's understanding of the goal |
| human_correction | string | Human's correction or 'confirmed' |
| unclear | string | What agent is unsure about |
awareness_updateAdd insights to the awareness system. Call at end of session. New insights are merged with existing ones (strengthening confirmed patterns) or added (demoting least-relevant if over 20). Also updates the cross-project insights index.| Parameter | Type | Description |
|---|---|---|
| blind_spots | array | What might matter but hasn't been explored? |
| identity | string | Update user identity (only on first use or major change) |
| insights | array | One-line insight title |
| trajectory | string | Where is the work heading? One line. |
checkRecords 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| Parameter | Type | Description |
|---|---|---|
| action_description | string | What you're about to DO, one sentence — pass this before publish/deploy/delete/credential/external-send/irreversible-write actions. Returns matching corrections/rules/insights on the result's `action_check` field, with `verdict: "blocked"` when an authoritative correction overrides the plan. |
| assumptions | array | Key assumptions you're making. |
| confidence | string | How confident you are. Defaults to medium. |
| decision_id | string | Link multiple check calls to the same decision. Auto-generated if not provided. |
| delta | string | The gap between your understanding and reality (or 'none'). |
| evidence | array | What was observed |
| goal | string | The goal or decision question you're checking alignment on. Required for alignment checks; optional when recording a pure decision trail (prior/posterior/evidence). |
| human_correction | any | LEGACY string form — STAGED to the pending-review store, NOT activated. Prefer the object form. |
| outcome | string | Final decision result: 'confirmed', 'rejected', 'partial', or free text. Triggers decision trail persistence. |
| posterior | number | Updated probability after considering evidence (0-1). |
| prior | number | Initial probability estimate (0-1). Start of Bayesian decision trail. |
| understanding | string | Alias for goal — use when saying 'check my understanding: X'. Provide either goal or understanding. |
check_actionCall BEFORE any non-trivial action (publish, push, deploy, schema change, file delete, send message, modify config). Pass a one-sentence description of what you're about to do. Returns matching behavior rules + active corrections + high-salience insights — a short list of memory items that would otherwise be re-derived or forgotten. Deterministic keyword match (no LLM call), runs in <50 ms. If `warning` is non-null, READ IT before acting.| Parameter | Type | Description |
|---|---|---|
| action_description * | string | What you're about to do — one sentence, specific (e.g. 'publish agent-recall-mcp@3.5.0 to npm'). |
| min_overlap | number | Minimum overlapping tokens between action and memory item. Default 2 (signal floor for relevance). Lower to 1 for permissive matching, raise to 3+ for strict. |
context_synthesizeGenerate L3 semantic synthesis from recent journals and palace rooms. Use consolidate=true to write synthesis results into palace rooms as consolidated memories.| Parameter | Type | Description |
|---|---|---|
| consolidate | boolean | Write synthesis results into palace rooms |
| entries | number | Number of recent entries to analyze |
| focus | string | |
| include_palace | boolean | Include palace room summaries in synthesis |
digestContext cache — store or recall pre-computed analysis results. Use 'store' after expensive operations (subagent explorations, code analysis) to cache the result. Use 'recall' before starting work to check if a cached result already exists (returns excerpts only, 300 chars — use 'read' with the returned id for full content). Use 'read' to get full content of a specific digest. Use 'invalidate' to mark a digest as stale.| Parameter | Type | Description |
|---|---|---|
| action * | string | Operation to perform. |
| content | string | Full digest body — markdown (store). |
| digest_id | string | Digest ID (read, invalidate). |
| global | boolean | Store as cross-project digest (store). |
| include_global | boolean | Include cross-project global digests in recall results. Default: true. |
| include_stale | boolean | Include stale results (recall). Default false. |
| limit | number | Max results (recall). Default 5. |
| query | string | What to search for (recall). |
| reason | string | Why invalidating (invalidate). |
| scope | string | What this digest covers (store). |
| source_agent | string | Agent that produced this (store). |
| source_query | string | Original query/task (store). |
| title | string | Digest title (store). |
| ttl_hours | number | Time-to-live in hours. 0 = never expires. Default 168 (7 days). |
journal_archiveMove entries older than N days to cold archive. Keeps a one-line summary per archived entry. Use after a project milestone or when journal count gets too high.| Parameter | Type | Description |
|---|---|---|
| older_than_days | number | Archive entries older than this many days |
journal_captureLayer 1: lightweight Q&A capture. Appends to today's log file without loading the full journal.| Parameter | Type | Description |
|---|---|---|
| answer * | string | The agent's key answer or decision. Simple: 1-2 sentences. Complex answer with multiple parts (architecture decision, diagnosis, multi-step resolution): 3-5 sentences. Write enough to reconstruct the reasoning, not just the outcome. |
| palace_room | string | Optional: also capture this Q&A into a palace room |
| question * | string | The human's question or request. Simple: 1 sentence. Complex technical question: 2-3 sentences is fine. |
| tags | array | Optional tags for this entry (e.g. ['decision', 'bug-fix', 'architecture']) |
journal_cold_startReturns a palace-first cold-start package. Loads curated palace context (~200 tokens) FIRST, then recent journals. HOT: today + yesterday (full state + brief). WARM: 2-7 days (count only — content already promoted to palace). COLD: older (count only). Designed for minimal context consumption on session start.journal_listList available journal entries for a project.| Parameter | Type | Description |
|---|---|---|
| limit | number | Return the N most recent entries. 0 = all. |
journal_projectsList all projects tracked by agent-recall on this machine.journal_readRead a journal entry. Returns the full file content for agent cold-start. Use date='latest' for the most recent entry.| Parameter | Type | Description |
|---|---|---|
| date | string | ISO date string YYYY-MM-DD or 'latest'. Defaults to 'latest'. Use 'latest' for most recent entry. |
| section | string | Which section to return. 'brief' returns only the cold-start summary. 'all' returns full file. |
journal_rollupCondense old daily journals into weekly summaries. Groups entries by ISO week, synthesizes a summary, archives originals. Prevents journal accumulation — after 30 days you have 4 weekly files instead of 30 daily files. Only processes complete weeks that are 7+ days old with 2+ entries. Use dry_run=true to preview.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Preview without writing or archiving |
| min_age_days | number | Only roll up weeks where ALL entries are older than this |
| min_entries | number | Minimum daily entries in a week to trigger roll-up |
journal_searchFull-text search across all journal entries for a project.| Parameter | Type | Description |
|---|---|---|
| include_palace | boolean | Also search palace rooms (slower but more comprehensive) |
| query * | string | Search term (plain text, case-insensitive) |
| section | string | Limit search to a specific section type. |
journal_stateLayer 1: structured JSON session state. Faster than markdown for cold-start. Read mode: returns today's state as JSON. Write mode: merges new data into state. Use this for agent-to-agent handoffs — no prose parsing needed.| Parameter | Type | Description |
|---|---|---|
| action * | string | 'read' returns state, 'write' merges new data |
| data | string | JSON string to merge into state (write mode only) |
| date | string | ISO date YYYY-MM-DD or 'latest' |
journal_writeAppend content to the current journal entry (creates today's file if absent). Optionally also write to a palace room for cross-referenced persistent memory.| Parameter | Type | Description |
|---|---|---|
| content * | string | Markdown content to append or write. |
| palace_room | string | Optional: also write key content to this palace room (e.g., 'goals', 'architecture') |
| section | string | Target section. If omitted, appends to end of file. 'replace_all' overwrites entire file. |
knowledge_readRead lessons from knowledge files. Used before starting work to learn from past mistakes. Can filter by project, category, and search query.| Parameter | Type | Description |
|---|---|---|
| category | string | Specific category, or omit for all categories |
| query | string | Search term to filter lessons (case-insensitive) |
knowledge_writeWrite a structured lesson to the knowledge palace room. Category is now dynamic — any string creates a topic file in the knowledge room. Also writes to legacy knowledge/ dir for backward compatibility.| Parameter | Type | Description |
|---|---|---|
| category * | string | Knowledge category (any string — creates a topic file in the knowledge room) |
| fix * | string | How to prevent/fix it |
| root_cause * | string | Why it happened |
| severity | string | Severity level of the lesson |
| title * | string | Short title of the lesson |
| what_happened * | string | What went wrong or right |
nudgeSurface a contradiction between the human's current input and a prior statement/decision. Helps the human clarify their own thinking.| Parameter | Type | Description |
|---|---|---|
| category | string | |
| current_statement * | string | What the human is saying now |
| past_statement * | string | What the human said/decided before (with date if known) |
| question * | string | The clarifying question to ask |
palace_lintHealth check: find stale memories, orphan rooms (no connections), low-salience entries, and missing cross-references. Use fix=true to auto-archive low-salience entries.| Parameter | Type | Description |
|---|---|---|
| fix | boolean | If true, auto-archive memories below salience threshold |
palace_readRead a room overview or specific topic from the Memory Palace. Returns room content with metadata. Use without room param to list all rooms.| Parameter | Type | Description |
|---|---|---|
| room | string | Room slug (e.g., 'goals', 'architecture'). Omit to list all rooms. |
| topic | string | Specific topic file within the room (e.g., 'decisions', 'active'). Omit for room README. |
palace_searchFull-text search across all palace rooms. Results are ranked by room salience. Optionally filter to a specific room.| Parameter | Type | Description |
|---|---|---|
| query * | string | Search term (case-insensitive) |
| room | string | Limit search to a specific room |
palace_walkProgressive context loading for cold-start. identity (~50 tokens) → active (~200) → relevant (~500) → full (~2000). Start at 'identity' and deepen as needed.| Parameter | Type | Description |
|---|---|---|
| depth | string | How deep to walk. Start with 'identity' or 'active'. |
| focus | string | For 'relevant' depth: focus query to match rooms (e.g., 'authentication', 'deployment') |
palace_writeWrite a memory to a palace room. Triggers fan-out: cross-references are updated in connected rooms. Use [[wikilinks]] in content to create connections, or pass explicit connections.| Parameter | Type | Description |
|---|---|---|
| auto_name | boolean | Auto-generate topic name from content when topic is omitted. Default false for backward compat. |
| connections | array | Explicit room connections (e.g., ['goals', 'blockers']) |
| content * | string | Markdown content to write. Use [[room/topic]] for cross-references. |
| importance | string | Memory importance for salience scoring |
| room * | string | Target room slug (e.g., 'goals', 'architecture'). Auto-created if doesn't exist. |
| topic | string | Topic file within the room (e.g., 'decisions'). Omit to append to README. |
pipeline_closeClose the currently active project phase with the three reflection fields: what_was_hard, how_solved, synthesis (one-sentence reusable lesson). Set status='abandoned' if the phase was given up, 'pivoted' if direction reversed.| Parameter | Type | Description |
|---|---|---|
| status | string | Final phase status. Default 'closed'. |
pipeline_currentReturn the full content of the currently active project phase, or null if none is open. Use to ground an agent in 'where the project is right now' at the start of a session.pipeline_listList all project phases (milestones) in order — the project's narrative spine. Returns order, phase name, status, opened/closed timestamps, and synthesis (when closed).pipeline_openOpen a new project phase (milestone) in the project's narrative spine. Each phase captures Goal → What was hard → How solved → Synthesis. If another phase is already active, pass close_previous_with_synthesis to chain-close it.| Parameter | Type | Description |
|---|---|---|
| auto | boolean | Mark this phase as auto-drafted (background process). Default false. |
pipeline_showRender the project's narrative spine on demand — phase count, day span, sessions, corrections, and a chronological view of all phases (closed + abandoned + active) with goal, what was hard, how solved, and synthesis for the last 3. Lazy reconstruction: reads existing pipeline files + journal stats, no writes, no LLM. Call this when you (or the user) want to see 'where is the project right now?'.| Parameter | Type | Description |
|---|---|---|
| detail_last_n | number | Render full 'what was hard' + 'how solved' for the last N phases. Default 3. |
recallRanked search across every store (RRF), with `useful` feedback that re-weights future ranking| Parameter | Type | Description |
|---|---|---|
| feedback | array | Result ID from previous recall (preferred). |
| limit | number | Max results after RRF merge. |
| query * | string | What to search for. |
| since | string | ISO date ("2026-05-01") or relative duration ("7d"). Filters journal results. |
recall_insightBefore starting a task, recall cross-project insights that apply. Matches your task description against the insights index. Also returns the current awareness summary.| Parameter | Type | Description |
|---|---|---|
| context * | string | Describe the current task or situation (1-2 sentences) |
| include_awareness | boolean | Also return the awareness.md summary |
| limit | number | Max insights to return |
register_ruleSave a permanent IF-THEN behavior commitment for the project. Unlike insights (semantic facts) and corrections (one-shot rebukes), behavior rules are surfaced at the TOP of every session_start and govern what the agent DOES, not what it knows. Use when the user teaches a permanent behavior policy mid-session — e.g. 'humans often use voice-to-text; reorganize before acting' or 'never bump version numbers unless explicitly asked'. Idempotent: same (name, when, do) tuple returns the existing rule_id.| Parameter | Type | Description |
|---|---|---|
| do * | string | Required action — what to do when triggered. |
| name * | string | Short label for the rule (e.g. 'voice-to-text reorganization'). |
| when * | string | Trigger condition — when this rule applies. |
rememberSaves one fact; auto-routes to journal / palace room / awareness| Parameter | Type | Description |
|---|---|---|
| content * | string | What to remember. |
| context | string | Routing hint. Values: 'architecture' or 'decision' → palace/architecture room. 'blocker' or 'blocked' → palace/blockers room. 'goal' → palace/goals room. 'lesson' or 'insight' → awareness. 'qa' or 'capture' → Q&A log. Omit for auto-classification. Note: bug/fix/error content previously routed to standalone knowledge/ dir now routes to journal (purity-census-2026-07-05: knowledge/ is write-only, not surfaced by recall or session_start). |
session_endWrites the journal, promotes insights, records trajectory, rewrites the project state card (`state`), optionally opens/closes a pipeline phase| Parameter | Type | Description |
|---|---|---|
| insights | array | Insights learned this session. |
| session_ref | string | Hosted only: the session_ref value from session_start's header line, to save into that same session. Optional; an unknown or expired value is ignored and the save still happens. |
| summary * | string | What happened this session. Simple session: 2-3 sentences. Multi-phase session: one paragraph per completed phase (e.g. 'Phase 1 — Name: what happened. Phase 2 — Name: what happened. Decisions: X. Blockers: Y.'). Never compress a multi-phase session to 2 sentences — it makes the journal useless. |
| trajectory | string | Where is the work heading next. |
session_startDefault `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. `format: "hook"` returns it as Claude Code hook JSON for a `type: "mcp_tool"` hook (hosted server doc)| Parameter | Type | Description |
|---|---|---|
| claim | boolean | mode='resume' only: take the task (bound to your session by your next hook event). |
| context | string | Optional context for matching cross-project insights |
| force | boolean | mode='resume' + claim only: take a task a LIVE agent holds; requires reason. Never use it without the human's say-so. |
| format | string | 'hook' = Claude Code hook JSON for a type:'mcp_tool' hook (docs/hosted-server.md). Agents never set it. |
| hookEvent | string | format='hook' only: pass '${hook_event_name}'. Default UserPromptSubmit. |
| hookSession | string | format='hook' only: pass '${session_id}'; later calls in that session return {}. |
| mode | string | Default 'cards' = owner card + HARD RULES (P0s and behaviour policies) + state card + pending-review count, nothing else; 'full' = every section (continuity, insights, rooms, captures, …) and the default when verbose=true; 'lite' = ≤500-token sketch, pull on demand; 'resume' (macOS/Linux) = continue an interrupted task (handoff protocol + VERIFY list + last state). |
| reason | string | Why you force the claim (recorded in the lease history). |
| release | boolean | mode='resume' only: drop the task you claimed (or that was tentatively claimed for you). |
| sid | string | mode='resume' only: resume the task of this interrupted session id. |
| task_id | string | mode='resume' only: the task to resume (from the candidate list). |
| verbose | boolean | Set true to get full JSON context instead of terse summary |
session_usage_report[END OF SESSION — read-only, local only] Report how many tokens a Claude Code session used: requests, input, cache write, cache read and output tokens per model and per role (the main session plus every sub-agent it spawned), the cache hit share, and peak and average requests / tokens per minute. Reads only local transcript files; stores nothing and calls no network. INPUTS for Claude Code: transcript_dir = the project's transcript folder, ~/.claude/projects/<encoded-cwd>/ (the working directory with path separators and punctuation replaced by '-'), as an absolute path: /home/me/.claude/projects/-home-me-app on Linux/macOS, C:\Users\me\.claude\projects\C--Users-me-app on Windows; it must be inside ~/.claude/projects (or AGENT_RECALL_TRANSCRIPT_ROOT); session_id = the session UUID, which is the transcript file name without '.jsonl' (e.g. 123e4567-e89b-12d3-a456-426614174000.jsonl in that folder; the newest file is the current session). Sub-agent transcripts under <session_id>/subagents/ are counted automatically, and duplicate API responses are counted once. Rates are OBSERVED from transcript timestamps (per-minute buckets, window = first to last response), not provider rate-limit counters. RETURNS JSON {success, session_id, totals, by_model, by_role_model, cache, rates, files_read, responses_counted, skipped, table, usage}; `format` picks what is included. If skipped.truncated is true the report is PARTIAL (file or depth cap hit): say so. To record it in the journal, pass the result's `usage` field unchanged as `usage` to session_end; never edit or invent it. On failure returns {success:false, error, message, agent_instruction}: follow agent_instruction. Not available on the hosted server.| Parameter | Type | Description |
|---|---|---|
| format | string | "both" (default): figures plus a readable text table; "json": figures only; "table": only the text table and `usage`. |
| session_id * | string | Session UUID = the transcript file name without .jsonl, e.g. "123e4567-e89b-12d3-a456-426614174000". |
| transcript_dir * | string | Absolute path of the Claude Code project transcript folder, e.g. /home/me/.claude/projects/-home-me-app (Linux/macOS) or C:\Users\me\.claude\projects\C--Users-me-app (Windows). Must be inside ~/.claude/projects. |
smart_recallSearch ALL memory stores at once — palace, journal, and insights. Returns unified ranked results with source attribution. Use when you want to find something but don't know which store it's in.| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum results to return. |
| query * | string | What you're looking for. Natural language or keywords. |
smart_rememberSave a memory — the system classifies your content and routes it to the right store (journal, palace, knowledge, or awareness). Just describe what you want to remember. Auto-generates a semantic name for future retrieval.| Parameter | Type | Description |
|---|---|---|
| content * | string | What you want to remember. Can be any length or format. |
| context | string | Optional hint: 'bug fix', 'architecture decision', 'insight', 'session note' |
Security checks
From the Goldentrii/AgentRecall-X monorepo, not this package alone.
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 5.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and 2 more.
- !No dynamic code executionScanned 301 source files and found 1 call to eval or shell execution, in packages/cli/src/index.ts:1304. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPpackages/mcp-server/src/index.ts:3, packages/mcp-server/src/http/serve.ts:21
- Starts other programs
- 2 callspackages/cli/src/index.ts:1304, packages/cli/src/index.ts:2037
- Outbound network calls
- 15 callsapps/tray/src-tauri/src/lib.rs:34, apps/tray/src-tauri/src/lib.rs:176, apps/tray/src-tauri/src/lib.rs:197
- Writes or deletes files
- 239 callsapps/tray/src-tauri/src/cache.rs:79, apps/tray/src-tauri/src/cache.rs:81, apps/tray/src-tauri/src/cache.rs:82
- Lockfile
- package-lock.json and 2 more
Pattern matches on the source text of 301 files: places to read, not proof of what the code does at run time.
Releases
From the Goldentrii/AgentRecall-X monorepo.
README
The repository's README runs to about 5.5K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README