The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
name: beacon-memory-recall description: Retrieve reviewed project memory that Beacon distilled from earlier agent sessions in any harness (Claude Code, Cursor, Codex, OpenCode, and others) before starting work. Use at the start of a non-trivial task in a repository, when the user asks "have we seen this before", "what did we learn last time", or "how did we fix this in Cursor/Codex", or when a build, test, or deploy step fails in a way that may have a known fix. license: MIT compatibility: Requires the Beacon CLI (beacon) on PATH with endpoint capture installed, or a Beacon Cloud MCP connection (beacon-managed). The CLI path reads only local state and makes no network calls; the Beacon Cloud path reads memory approved through Beacon Cloud. metadata: author: asymptote-labs homepage: https://docs.beacon.sh/concepts/cross-harness-memory version: "0.1.0"
Beacon memory recall
Beacon records what agents do across every supported harness into a local log. Through
the beacon-memory-distill workflow, a person reviews selected sessions and approves the
reusable lessons into project memory. This skill reads that memory back, so you start
the task knowing what earlier agents, in this harness or any other, already learned about
this repository.
Approved memory has been reviewed by a person. Raw traces have not. Keep the two apart in everything you say.
When to recall
- Before planning a non-trivial change in a repository you have not worked in during this session.
- When a command fails in a way that could have a known fix (flaky tests, packaging, environment setup, release steps).
- When the user asks what was learned, tried, or decided before.
Skip it for trivial edits, and recall at most once per task unless the task changes direction.
Step 1: find where memory lives
Memory is kept in one of two places, and a session may have either or both:
- Local memory, approved with the Beacon CLI on this machine. Read it with the local
Beacon MCP tools (
search_memory,get_memory,get_memory_context, usually under a server calledbeacon) or the CLI. - Beacon Cloud memory, approved through Beacon Cloud MCP. Read it with
beacon_memory_searchandbeacon_memory_get, under the server calledbeacon-managed.
Use every source this session has. When it has the Beacon Cloud tools, use them even if the CLI is missing. Otherwise check for the CLI:
beacon version
If neither is available, tell the user that project memory is unavailable, point them to
https://docs.beacon.sh/get-started/overview (or beacon mcp connect for Beacon Cloud), and
continue the task without memory. Do not install anything yourself.
Step 2: retrieve memory
Search with two or three distinctive keywords from the current task (a tool name, file, error string). Terms are ANDed everywhere, so a full sentence will over-constrain the search and return nothing. Drop terms if the first attempt is empty.
Beacon Cloud MCP (beacon-managed):
- Call
beacon_memory_searchwithqueryset to the keywords. Addrepository(a substring such as the repository's name) when memory for other repositories comes back. - Call
beacon_memory_getwith amemory_idfrom that result when you need the full body and its evidence.
Local Beacon MCP (beacon):
- Call
get_memory_contextwithtaskset to the keywords. - Call
get_memorywith anidfrom that result when you need the full body and its evidence.
Without either MCP server, use the CLI from inside the repository:
# Up to five memories matching the task's key terms (every term must match)
beacon memory list --json --limit 5 -q "<two or three distinctive terms>"
# Everything approved for this project, newest first
beacon memory list --limit 25
# One memory in full, with its source traces
beacon memory show <memory-id>
--kind (or kind on beacon_memory_search) narrows to workflow, correction,
debugging_pattern, gotcha, or convention.
Local memory is scoped to the project resolved from the current directory. Run from
inside the repository, or pass --project <path>.
Step 3: use what you found
- Apply a memory only when its applicability matches the current situation. Memories are lessons from specific sessions, not project policy. If one conflicts with the user's instructions or the repository's own docs (CLAUDE.md, AGENTS.md, README), follow the user and the docs, and mention the conflict.
- When a memory changes what you do, say so in one line and cite its ID, for example:
"Using Beacon memory
memory_4f2c…: package smoke needs build-pkg.sh first." - If nothing relevant comes back, carry on. Do not report an empty result unless the user asked.
Raw history, only when asked
When the user explicitly asks what happened in an earlier session ("what did Cursor do
yesterday on the release script?"), you can search raw traces: with Beacon Cloud MCP,
beacon_search_sessions, beacon_grep, and beacon_read_session; locally:
beacon endpoint traces search "<terms>" --json --limit 10
beacon endpoint traces show <trace-id> --json --limit 200
Present that as unreviewed history, never as approved memory. Traces can contain prompts,
command output, and file contents: quote only what the user needs, and never repeat
anything that looks like a credential. If the history holds a lesson worth keeping,
suggest the beacon-memory-distill workflow so a person can review it.
Boundaries
- Read-only. Never file, approve, reject, or edit memory from this skill, locally or through Beacon Cloud MCP.
- Never run
beacon memory evaluations runhere. That step sends trace data to an evaluator over the network and belongs tobeacon-memory-distill, where the user consents to it.