R158 · Agent architecture › Self-improvement and learning loops

Beacon: cross-harness session capture distilled into reviewed agent memory

Read the original

Authors Asymptote Labs, AI Engineering (LinkedIn page) (shared)

agent-memoryself-improving-agentsobservabilityagent-skillsagent-governancedata-privacyagent-harness

Beacon (Asymptote Labs, MIT, Go, about 3.6k GitHub stars) is an endpoint agent that records every coding-agent session across 25+ harnesses into one OpenTelemetry-shaped event log, then runs a human-gated loop that turns a few good sessions into Agent Skills any harness can load. The capture layer is the real product; the "self-improving memory" is an LLM-scored, agent-drafted, human-approved lesson pipeline.

How it works

The pipeline is seven stages; only the last three touch an agent's future behavior.

  1. Capture. Per-harness collectors (OTLP exporters, lifecycle hooks, transcript polling, plugins or extensions) record sessions, prompts and responses, tool calls, commands, file activity, approvals, MCP calls and token usage. Coverage is uneven: the README's own matrix shows Codex without file events, Cursor and Gemini CLI without tokens, VS Code partial. Browser extensions also capture claude.ai and ChatGPT chats; cloud agents (Claude Code, Cursor, Devin) and CI jobs (beacon ci exec) go through sandbox hooks or API polling to S3/GCS.

  2. Normalize. Everything lands in one OpenTelemetry-based event model, written by default to ~/.beacon/endpoint/logs/runtime.jsonl. An optional indexed history keeps 90 days locally.

  3. Browse. beacon traces (terminal) and a read-only local dashboard with per-session "lenses": sandboxed single-file HTML views such as diffs per file or an itemized token bill. Agents can write new lenses.

  4. Score. beacon memory evaluations run sends a bounded, redacted projection of each chosen trace to a hosted evaluator (TypeSafe "Jev" or SubQ, API key required, endpoint overridable). It returns probabilities only. A trace becomes a candidate when task_success is at least 0.50 and the mean score is at least 0.60.

  5. Draft. The beacon-memory-distill skill has the running agent read the candidate's source trace (user messages, tool calls, commands, results, approvals, errors) and write the lesson. The evaluator never writes lesson text.

  6. Approve. The user confirms, edits or rejects each draft; the skill forbids approving a placeholder body.

  7. Promote and recall. beacon-memory-promote installs an approved memory as .agents/skills/<slug>/SKILL.md; beacon-memory-recall fetches approved memory before a task through MCP (get_memory_context) or beacon memory list. Because the output is a plain Agent Skill, any skills-capable harness can load it, which is the cross-harness claim.

What is automated and what is human

The "self-improving" label oversells it: the loop is human-curated memory with an LLM triage step. One commenter on the post made the same point. That is a reasonable design, not a flaw, but read it as "assisted curation".

StepWho does itNetwork
Capture and normalizeBeacon endpoint agent, continuouslyLocal by default
Pick tracesAgent proposes up to 10, user names or acceptsLocal
ScoreHosted evaluator, after a dry run and an explicit yesSends redacted trace projection
Draft lessonThe coding agent, reading the traceWhatever the agent's model is
ApproveThe userLocal, or Beacon Cloud MCP
Promote and recallSkills plus MCPLocal server never touches the network

There is a no-evaluator path: skip scoring and let the agent read traces directly. In practice the expensive judgment (is this lesson true, general and safe?) stays with the human at step 6.

Defaults and data flow

The on-disk default is local, but the interactive installer preselects Beacon Cloud. Choosing it signs the machine in and starts forwarding to Asymptote Labs; Local is an explicit opt-out, and beacon endpoint disconnect reverses it. The confirm screen names the operator and capture mode, and there is a metadata-only privacy tier. Package, MDM and CI installs are noninteractive and account-free.

Failure modes and tradeoffs

Review checklist before adopting

Sources

Cited in field guides

Connections

See R158 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.