self-verify-beacon-in-…
Verify a Beacon change end to end by running a real Claude Code session inside a disposable Linux cloud sandbox and checking that…
Turn recorded agent sessions (Beacon traces from Claude Code, Cursor, Codex, OpenCode, and other harnesses) into reviewed, reusable project memory. Scores selected traces, reads the source trace behind each high-signal candidate, drafts a grounded lesson, and approves it only
Claude Code
$ npx -y skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill --agent claude-code
Codex
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a codex -y
Cursor
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a cursor -y
Gemini CLI
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a gemini-cli -y
GitHub Copilot
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a github-copilot -y
OpenCode
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a opencode -y
Windsurf
$ npx skills add Asymptote-Labs/agent-beacon --skill beacon-memory-distill -a windsurf -y
name: beacon-memory-distill description: Turn recorded agent sessions (Beacon traces from Claude Code, Cursor, Codex, OpenCode, and other harnesses) into reviewed, reusable project memory. Scores selected traces, reads the source trace behind each high-signal candidate, drafts a grounded lesson, and approves it only after the user confirms. Use when the user asks to "learn from", "remember", "save the lesson from", or "turn into memory" a recent session, fix, or debugging effort, or asks to review Beacon memory candidates. license: MIT compatibility: Requires the Beacon CLI (beacon) with endpoint capture, or a Beacon Cloud MCP connection (beacon-managed) with write access. CLI scoring calls the configured evaluator over the network (TypeSafe Jev with TYPESAFE_API_KEY, or SubQ with SUBQ_API_KEY); every other CLI step is local. The Beacon Cloud path reads forwarded sessions and stores memory in Beacon Cloud. metadata: author: asymptote-labs homepage: https://docs.beacon.sh/concepts/cross-harness-memory version: "0.1.0"
Beacon captures what agents do in every supported harness. This skill runs the review loop that turns a few of those sessions into **approved project memory** that any later agent can recall, whichever harness it runs in:
1. Pick traces. 2. Score them with the evaluator (the one networked step, and only with consent), or, where evaluation is not allowed, skip scoring and read the traces yourself. 3. For each candidate, read the source trace and draft the lesson. 4. The user confirms, edits, or rejects each draft. 5. Approve with the reviewed text.
The evaluator returns probabilities only. It says a trace looks reusable; it does not say what the lesson is. **You write the lesson, from the trace, and the user approves it.** Never approve a candidate with its placeholder body ("no lesson text was extracted").
When this session has the Beacon Cloud MCP tools (`beacon_memory_candidate_create` and the rest, under the `beacon-managed` server) and the sessions were forwarded to Beacon Cloud, follow [With Beacon Cloud MCP](#with-beacon-cloud-mcp) instead of the CLI steps below. Use it too when the CLI is not installed.
Commands that start from a trace (`evaluations run`, `candidates create`) file the memory under the repository the trace recorded, wherever you run them. Run every other command from inside the repository the memory is for, or pass `--project <path>`.
beacon version beacon endpoint traces status --json
session has those tools. Otherwise stop and point the user to https://docs.beacon.sh/get-started/overview. Do not install it yourself.
two of sessions are still in the runtime log. Suggest creating the history, which keeps sessions for 90 days and stays on this machine, and run it only if the user agrees: `beacon endpoint traces reindex`.
Use what the user named: a session, a date, a harness, or a topic. Otherwise list recent traces and propose a short set (up to 10) that look like finished work with a correction, a fix, or a non-obvious procedure.
beacon endpoint traces list --json --limit 20 beacon endpoint traces list --json --limit 20 -q "<topic terms>" beacon endpoint traces search "<error text or file>" --json --limit 10
Prefer traces from this repository. Skip trivial sessions (a single question, an abandoned attempt) since they cost evaluator calls and yield nothing.
Reading the list:
session, almost always OTLP metric samples such as `claude_code.active_time.total`. They arrive every few seconds and sort to the top, so a short list can be all noise; raise `--limit` or use `--page` until you have sessions, and never select them. `evaluations run` skips them on its own when it selects by `--limit`, but never pass one to `--trace`.
Leave it for next time: a lesson drafted from half a session is usually wrong about how it ended.
sessions, because not every event carries one, and then Beacon falls back to the current directory. Evaluate or create a candidate for such a session only with an explicit `--project <path>` you can justify from the paths in its commands.
The dry run is local. It shows the traces selected and the estimated cost:
beacon memory evaluations run --dry-run --trace <trace-id> beacon memory evaluations run --dry-run --limit 10 --harness <name> --since <rfc3339>
Before the real run, tell the user plainly and **wait for an explicit yes**:
`BEACON_JEV_ENDPOINT` if that is set, otherwise to the hosted TypeSafe endpoint. With `--evaluator subq` (or `BEACON_EVALUATOR=subq`) it goes to `BEACON_SUBQ_ENDPOINT`, otherwise the hosted SubQ endpoint; name whichever applies.
Check for a key without printing it:
test -n "${TYPESAFE_API_KEY:-}${BEACON_JEV_API_KEY:-}" && echo "Jev key present" || echo "no Jev key"
test -n "${SUBQ_API_KEY:-}${BEACON_SUBQ_API_KEY:-}" && echo "SubQ key present" || echo "no SubQ key"If only a SubQ key is present, add `--evaluator subq` to the dry run and the real run.
With no key, stop and tell the user to export `TYPESAFE_API_KEY` or `SUBQ_API_KEY` (or point `BEACON_JEV_ENDPOINT` at their organization's compatible evaluator). Never ask them to paste a key into the chat, and nev
The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Verify a Beacon change end to end by running a real Claude Code session inside a disposable Linux cloud sandbox and checking that…
Create, revise, debug or validate a Beacon lens, a single HTML file that renders one agent trace as a purpose-built view (a…
Install approved Beacon project memory as an Agent Skill in the repository (.agents/skills/<slug>/SKILL.md), so every…
Retrieve reviewed project memory that Beacon distilled from earlier agent sessions in any harness (Claude Code, Cursor, Codex,…
Continue the user's current or selected local agent session in another supported runtime using Beacon. Use when the user asks to…
Share the current agent session (or another local one) as a trace on beacon.sh with the Beacon CLI, and give the user the link.…
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…