agent-beacon
CLAUDE.md1.8k starsChanged 2 months agoMITView on GitHub
Guidance for Claude Code and other coding agents working in this repository. Beacon Endpoint Agent is a local-only endpoint telemetry agent for AI runtimes. The shipping code paths are:
- Reads credentials
- Deletes or force-pushes
- Installs packages
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about Asymptote-Labs/agent-beacon
- A Hacker News story“Show HN: Beacon - The open-source layer for local AI agent visibility”Hacker News · May 18, 2026 · 21 points
- @metasynthesis.net“It's regrettable that we're all having 1:1 conversations with AI rather than contributing to a pool of …”Bluesky · Sep 30, 2026 · 2 likes
- @reponews.bsky.social“Asymptote-Labs/agent-beacon [MIT License] 複数AIエージェントのセッション履歴を統合し、再利用できる知識にします ツール横断の記憶が便利です 言語:Go, …”Bluesky · Sep 26, 2026 · 2 likes
- @beyondthecode.bsky.social“🧠 The team developed an open-source tool that provides visibility into local AI agent operations. The …”Bluesky · May 18, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.asymptote-labs.agent-beacon: 1.3.30 → 1.3.31”GitHub · Oct 5, 2026
The biggest 5 of 20 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 20
Talked about on GitHub, Bluesky and Hacker News (20 times).
On GitHub · 16
- Oct 5, 2026agent-skills.github.asymptote-labs.agent-beacon: 1.3.30 → 1.3.31 — sudosubin/agents.nix0 reactions
- Oct 5, 2026agent-skills.github.asymptote-labs.agent-beacon: 1.3.29 → 1.3.30 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-plugins.github.asymptote-labs.agent-beacon: init at 1.3.29 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.asymptote-labs.agent-beacon: 1.3.21 → 1.3.29 — sudosubin/agents.nix0 reactions
- Oct 1, 2026herdr(l3): parse Beacon Managed status correctly (#209) — RossGraeber/OAC0 reactions · 3 comments
11 more on GitHub
- Sep 29, 2026L2 — Beacon desk research: close or carry the four UNVERIFIED items at the pinned tag — RossGraeber/OAC0 reactions · 2 comments
- Sep 29, 2026L1 — Decision record: Beacon beside OAC, not inside it (pin, license, operator decisions Q1-Q5) — RossGraeber/OAC0 reactions · 3 comments
- Sep 29, 2026Epic L — Beacon (agent-beacon) as an external shared-memory layer beside OAC sessions — RossGraeber/OAC0 reactions · 10 comments
- Sep 25, 2026agent-skills.github.asymptote-labs.agent-beacon: init at 1.3.21 — sudosubin/agents.nix0 reactions
- Sep 23, 2026ATM-ORDER-053 — Zero-Cost Skill Intake + Install-Free ATM Skill Broker Expansion — simondalmasso/ATM0 reactions · 1 comment
- Sep 23, 2026Evaluate Agent Beacon as a bounded cross-harness collection adapter — joefeser/artifact-memory0 reactions
- Sep 23, 2026Practice 3: a lesson comes from a founder correction, not from an agent scoring its own runs — adriaan-wessels/solo-ai-kit0 reactions
- Sep 1, 2026sep 2026 — kimtth/azure-openai-llm-notes0 reactions
- Jul 1, 2026Asymptote-Labs/agent-beacon: 에이전트용 오픈소스 텔레메트리 레이어 — roomedia/ax-trend0 reactions · 1 comment
- May 25, 2026🔍 Weekly Discovery: 50 new tools found (2026-05-25) — heylabs-co/dev-tools-portal0 reactions
- May 19, 2026Miniflux Digest · AI 信息 · 2026-05-19 — urzz/repo_for_report0 reactions
On Bluesky · 3
- Sep 30, 2026It's regrettable that we're all having 1:1 conversations with AI rather than contributing to a pool of knowledge like we used to. It's the… — @metasynthesis.net2 likes and reposts
- Sep 26, 2026Asymptote-Labs/agent-beacon [MIT License] 複数AIエージェントのセッション履歴を統合し、再利用できる知識にします ツール横断の記憶が便利です 言語:Go, TypeScript 種類:Infra/Runtime ⭐ Star: +365… — @reponews.bsky.social2 likes and reposts
- May 18, 2026🧠 The team developed an open-source tool that provides visibility into local AI agent operations. The layer enables monitoring and… — @beyondthecode.bsky.social1 likes and repost · 1 reply
On Hacker News · 1
- May 18, 2026Show HN: Beacon - The open-source layer for local AI agent visibility21 points · 10 comments
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- beacon-sandbox/AGENTS.mdAGENTS.md
- self-verify-beacon-in-sandboxSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
39 rules. About 0 are common, 23 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Do not recreate or depend on removed asymptote mirror trees.
- Distinctive: line 32
Do not add dependency vulnerability scanning, OSV/GHSA lookups, package remediation, or other vulnerability-enforcement flows to the public …
- Distinctive: line 33
Do not add broad runtime enforcement unless explicitly requested.
- Distinctive: line 82
Run tests for the public CLI.
- Distinctive: line 92
Run hook adapter tests:
- Distinctive: line 99
Run packaging wrapper checks:
- Distinctive: line 105
Run the macOS endpoint smoke test:
- Distinctive: line 118
Run Collector exporter tests:
- Distinctive: line 125
Run the observe SDK and threat-rules conformance tests:
- Distinctive: line 132
Run the managed runtime plugin/extension checks (each verifies the checked-in copy matches its embedded twin, then runs its tests):
- Very specific: line 144
After editing a plugin or extension source, run bun run sync in its directory to update the embedded copy under …
- Very specific: line 149
Run the lens sandbox browser tests (the real dashboard plus hostile fixture lenses.
- Distinctive: line 161
Run TypeScript SDK checks:
- Very specific: line 171
Run browser extension checks.
- Very specific: line 212
Run the Asymptote Managed forwarder by hand instead (a device key from beacon-ingest/scripts/mint_test_device.py or a previous connect):
- Distinctive: line 223
Run the local dashboard during manual testing:
- Distinctive: line 230
Run local threat detection and manage rules during manual testing:
- Very specific: line 239
When adding event fields a rule can match on, regenerate the field reference: beacon rules fields --markdown > spec/threat-rules/FIELDS.md …
- Distinctive: line 246
Prefer a CI-based release workflow triggered by an annotated version tag.
- Very specific: line 273
Keep one-time Apple-side onboarding steps out of the repo and share them with the release maintainer directly.
- Very specific: line 277
Use the next semver tag requested by the maintainer, usually the next v0.0.x tag unless they explicitly decide Beacon is ready for v1.0.0.
- Distinctive: line 291
Run the release gates before publishing:
- Very specific: line 303
When building macOS .pkg artifacts, always include the Vector binary by setting BEACON_VECTOR_BIN (or VECTOR_BIN) to the release Vector …
- Very specific: line 326
Check out the tagged commit with full history (fetch-depth: 0) so GoReleaser can compute changelogs from the previous tag.
- Very specific: line 330
Run goreleaser check before publishing.
- Very specific: line 331
Run goreleaser release --clean --parallelism 1 from cli/beacon because the release pre-hook writes target-specific beacon-hooks binaries to …
- Distinctive: line 347
After the workflow succeeds, verify the GitHub release assets and the Homebrew tap:
- Distinctive: line 356
Check Homebrew on Linux with a real install, since formula changes only take effect once a release publishes them.
- Distinctive: line 399
If the workflow fails after the tag is pushed, do not create a second tag until the failure is understood.
- Distinctive: line 406
Do not publish locally from a dirty checkout unless the maintainer explicitly wants those uncommitted changes in the release archive.
- Distinctive: line 433
After GoReleaser succeeds, verify both the GitHub release and the Homebrew tap:
- Distinctive: line 478
Use these npm trusted publisher values:
- Distinctive: line 521
Verify after the run:
- Very specific: line 534
Prefer deterministic tests that use t.TempDir(), testenv.SetHome(t, ...) (cli/beacon/internal/testenv.
- Very specific: line 535
Avoid tests that require root, real launchctl service changes, Wazuh, a live collector, or external network access.
- Very specific: line 537
Keep endpoint event schema fields stable: vendor, product, schema_version, required event fields, and Wazuh-compatible JSONL output are …
- Very specific: line 543
When adding a new signal, include stable identifiers/counts/hashes alongside any retained raw content, and route raw fields through …
- Distinctive: line 544
Keep the dashboard read-only.
- Distinctive: line 547
Keep the release readiness guidance in README.md up to date when install, packaging, collector, or dashboard behavior changes.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
Guidance for Claude Code and other coding agents working in this repository.
Project Scope
Beacon Endpoint Agent is a local-only endpoint telemetry agent for AI runtimes. The shipping code paths are:
cli/beacon: publicbeaconCLI and endpoint runtime.cli/beacon-hooks: hook adapter invoked by Cursor and other supported runtimes.collector-builder: OpenTelemetry Collector distribution and Beacon JSONL exporter.packages/asymptote-sdk-js: TypeScript SDK for cloud agent telemetry that exports Beacon-compatible OpenTelemetry spans.browser-extension: optional MV3 collector (Chrome, plus a beta Firefox build target) that relays Claude.ai and ChatGPT chat telemetry into the local pipeline as OTLP.pkg/asymptoteobserve: shared Go library — event schema, harness-name normalization, provenance markers, token usage, and the threat-rules engine. Imported by the CLI, the hook adapter, and the collector exporter, so a change here reaches all three.plugins: TypeScript sources for the managed runtime plugins/extensions (opencode-beacon,cline-beacon,pi-beacon,omp-beacon,openclaw-beacon,prime-beacon,omo-beacon), each mirrored into an embedded copy undercli/beacon/internal/endpoint/hooks/assets/.agent-skills: publishable Agent Skills plugin for the traces-to-memory workflow (beacon-memory-recall,beacon-memory-distill,beacon-memory-promote) and for authoring dashboard lenses (beacon-lens-create) with manifests for Claude Code, Agent Plugins (Codex, Copilot, VS Code, Kiro, Devin), Cursor, Kimi Code, and Gemini CLI. At the repo root,.claude-plugin/marketplace.jsonis read by most harnesses,.cursor-plugin/marketplace.jsonby Cursor, andpackage.json(pi.skillsonly) makes the repo a Pi/Prime Agent package; keep that rootpackage.jsonfree of dependencies and scripts.cli/beacon/cmd/agent_skills_test.gochecks everybeaconcommand and flag the skills name against the real command tree, so rename a command and update the skills together.rulesandspec/threat-rules: the open rule corpus and the Threat Rules format it conforms to. Every rule'staxonomy.beacon_categoryis its directory name, and the six embedded baseline rules inpkg/asymptoteobserve/rulestore/baselineare byte-identical copies of their corpus rules; conformance tests enforce both.spec/lenses: the Lenses format — single-file HTML views of one trace that the local dashboard runs in a sandboxed, network-less frame and feeds once throughwindow.beacon.getTrace(). The contract types (LensManifestV1,LensDataV1) live inpkg/asymptoteobserve/lens.go, andlens_test.gopins the spec's examples and manifest schema to them. The dashboard builds the data inBuildLensData(/api/lens-data), lists lenses at/api/lenses, and serves each lens at/lenses/frame/<id>under the spec's CSP withlenses/prelude.js(which defineswindow.beacon) injected ahead of it; that route is the only one that may be framed. Built-in lenses arecli/beacon/internal/endpoint/dashboard/lenses/*.lens.html, andactivityis byte-identical to the spec example (a test enforces it). The session page (static/session.html,initLensTabsinapp.js) shows lenses as tabs fed by/api/lens-data?session=, which projects exactly the events that page lists; it is the host half of the protocol and closes a lens that errors, stalls, or navigates its own frame. Installed lenses live in the lens store (cli/beacon/internal/endpoint/lensstore,<BaseDir>/lenses/<id>.lens.html, 0600 under 0700), written only bybeacon lenses add|remove(cli/beacon/cmd/lenses.go); the dashboard rescans it per request and never writes it, and a store lens can never shadow a built-in.asymptoteobserve.CheckLensFileis the one file check every installer, server and linter uses. User docs aredocs/concepts/lenses.mdxanddocs/cli/lenses.mdx; keep them in sync with the commands and built-in lenses. The authoring loop isbeacon lenses spec(the spec carried in the binary asdashboard/lenses/SPEC.md, kept byte-identical tospec/lenses/SPEC.mdby a test),beacon lenses data(the exactLensDataV1for a session),beacon lenses lint(lensstore.Lint; built-ins must lint clean) andbeacon lenses preview(the dashboard withOptions.LensFiles, re-read per reload).beacon-sandbox: harness that runs a real Claude Code session in a disposable sandbox and checks what Beacon captured. Seebeacon-sandbox/AGENTS.md.packaging: macOS, Linux, and Windows packaging and deployment assets.docs: the published documentation site (docs.asymptotelabs.ai).
Do not recreate or depend on removed asymptote mirror trees. Keep new work focused on the Beacon paths above.
Product Posture
- Beacon is visibility-first endpoint telemetry for local AI agent runtimes, not a hosted policy service or general endpoint protection product.
- Preserve the local-only default. The public Beacon build must not require a hosted account, remote policy fetch, hosted dashboard, or external network dependency during normal hook execution, and hooks themselves never touch the network.
beacon loginis the account-identity channel for interactive users and is required by the interactivebeacon endpoint installwizard. It uses browser PKCE against beacon.sh and stores the scoped CLI token only in~/.beacon/auth/session.json(0600 under a 0700 directory). Signing in alone never starts forwarding. User-modebeacon endpoint connectmay send that token once toPOST /api/cli/enroll/accountto authorize minting a separate device ingest key, andbeacon mcp token createmay send it toPOST /api/cli/mcp/tokens(scopemcp:token:create, listed on the sign-in page) to mint a personal MCP token that is printed once to stdout and never written to a file; never copy the account token into endpoint config, Vector, hook environments, logs, or command output. System/root/package/MDM/CI/piped-stdin/dry-run installs stay noninteractive and account-free.- Beacon Cloud forwarding (
cli/beacon/internal/endpoint/asymptote,beacon endpoint connect,beacon endpoint asymptote) is Vector-shaped: Beacon writes local JSONL, Vector ships runtime lines only from the connection point forward and reads inventory from the beginning to establish the endpoint's current baseline, and thebcn_device_*key stays only in<BaseDir>/asymptote/vector-secrets.jsonvia Vector's secret backend. The onboarding wizard preselects Beacon Cloud, and confirming it connects this endpoint in the same command once the local install has succeeded; an endpoint that is already enrolled is never re-enrolled, because enrollment rotates the device key. Standard mode ships locally sanitized retained content; metadata-only uses local Vector transforms to remove prompts, responses, reasoning, tool arguments/results, command output, raw fields, diffs, inventory content, and MCP definitions before buffering/upload. Keep the ingest URLhttps://, the wire contract aligned withbeacon-ingest(/v1/ingest/{runtime,inventory}and/v1/ingest/health), and do not add another endpoint network channel. The cloud-sandbox shuttle is the bounded exception: only withBEACON_ORIGIN=cloud, it can upload new runtime lines to GCS, S3, or the same Beacon ingest contract because no Vector/service manager/browser/persistent disk exists there. beacon endpoint installhas a full-screen onboarding wizard on interactive user TTYs. It signs in, preselects Beacon Cloud, requires an explicit choice to opt out to Local, and asks Managed users to choose Standard or Metadata-only privacy. Signing in alone still moves no telemetry. Confirming Beacon Cloud does: the confirm screen states that it installs Beacon and starts forwarding, and names what the selected privacy mode sends, so that screen is the consent point. The managed destination is recorded only after enrollment succeeds, so a failed enrollment leaves a working local install, printsbeacon endpoint connectas the retry, and re-offers the question on the next install. The onboarding record is written only afterlifecycle.Installreturns, because a profile written first left a failed install looking onboarded and silently skipped the wizard on the retry. Explicitinstall --connectis unchanged. The wizard is skipped for system/root/CI/piped-stdin/dry-run orBEACON_ONBOARDING=0; those unattended paths must never gain an account or browser dependency. LegacyBEACON_ONBOARDING_EMAIL/USAGEsubmissions remain only for fleet compatibility. Implementation lives incli/beacon/internal/onboardingandcli/beacon/cmd/endpoint_onboarding.go; keepdocs/cli/endpoint-onboarding.mdxin sync.- Do not add dependency vulnerability scanning, OSV/GHSA lookups, package remediation, or other vulnerability-enforcement flows to the public hook path.
- Do not add broad runtime enforcement unless explicitly requested. Current control behavior is limited to hook-native approvals/denials exposed by supported agent runtimes.
- Keep destination support shaped like the existing local JSONL and customer-managed forwarding paths. Beacon may render supported packs or token-based endpoint forwarders, but should not add hosted SIEM dependencies or store third-party service credentials beyond the explicit supported configs. Elastic remains a file-tailing pack over local JSONL.
- Beacon writes retained prompt text, command output, raw tool inputs, raw OTLP attributes, and raw diffs to local or customer-controlled logs, subject to local redaction and size limits where supported.
- The Asymptote Observe TypeScript SDK may default to the hosted
/v1/observeendpoint as an opt-in cloud SDK contract. Beacon endpoint execution stays local-only/no-network.
Telemetry Scope
Supported runtime surfaces today:
- Claude Code and Codex CLI use local OpenTelemetry settings, and
beacon endpoint installwrites their user-level hooks alongside those settings (otlpTargetCarriesHookincli/beacon/cmd/endpoint_targets.go), because Claude's OTLP export has no session lifecycle, file activity, or subagent events and Codex's SessionStart hook supplies the OS-user context its spans lack.beacon endpoint codex syncis the offline poll backfill from~/.codex/sessions; it never reads~/.codex/auth.jsonand cannot approve, deny, or delay tool calls. - Cursor hook telemetry for sessions, prompt submission, tool use, command execution, MCP-like tool activity, approval decisions, file edits, and agent reasoning (
afterAgentThoughtthinking text recorded asagent.reasoningevents in the OTel GenAIgen_ai.output.messagesreasoning-part shape) where hook payloads expose those fields. - Cline uses a Beacon-managed plugin (
~/.cline/plugins/beacon.ts) for live capture plusbeacon endpoint cline syncfor local history backfill. Cline's own OTel export/hosted prompt storage are not used, and approvals are not exposed or synthesized. - Pi-family runtimes use Beacon-managed extensions and the shared
cli/beacon-hooks/cmd/pi_family.gomapper while keeping separate harness names and install roots: Pi (pi_cli), Oh My Pi (omp), Prime Agent (prime_agent), and Senpi/OMO (omo_senpi). Pi, Prime, and Senpi do not expose operator approval decisions, so Beacon does not synthesize them. Oh My Pi exposes real approval events and the extension carries the remembered tool input onto those approvals. - Prime Agent is the Pi-family exception with a single persistent
ipythontool: kernel cells are recorded ascommand.executed, carry Python status/output metadata, and have no invented exit code. MCP is not separately attributed because Prime exposes integrations inside the kernel.beacon endpoint prime syncis the local poll backfill from~/.prime/agent/sessionsand session artifacts. - Senpi is the standalone OMO edition. The OpenCode and Codex editions ride existing Beacon integrations, so do not alias bare
oh-my-openagentto this extension. The install target isomo; the event harness isomo_senpi; agent-directory overrides follow OMO's own order (OMO_CODING_AGENT_DIR,SENPI_CODING_AGENT_DIR, thenPI_CODING_AGENT_DIR). - OpenCode uses the managed plugin for live capture and approvals, plus
beacon endpoint opencode syncfor current SQLite and legacy file-store backfill. Poll events are markedharness.collection_method=poll, cannot hold or deny tools, and must not synthesize approvals from persisted tool results. - Muse Code uses a Beacon-owned hooks file referenced by Muse
settings.jsonviamanaged_hooks_path. Muse Spark is the model, not the runtime; do not normalize Spark spellings tomuse_code.PreLLMCall/PostLLMCallstay unsubscribed because they carry full message arrays/tool schemas and chunked responses. - OpenHands hooks are merged into the runtime's own
.openhands/hooks.json. Project scope is the practical default because the loader takes the first hooks file and the CLI/GUI agent server reads the repository file. Approvals, token usage/cost, per-call tool ids, and assistant response text are not exposed or synthesized. - Kimi Code registers in the
[[hooks]]array of the runtime's own$KIMI_CODE_HOME/config.toml(default~/.kimi-code), the same file that holds[providers.<name>].api_key. Beacon appends its block and never re-serializes the document, and every write is parsed back and compared against the intended result before it replaces the file. Detection and removal go by the hook command rather than by Beacon's comment, because Kimi Code's legacykimi-climigration re-serializes config.toml and drops every comment. There is no project scope: Kimi Code reads one user-level config file. Thirteen of its twenty events are registered;SessionHeartbeatis deliberately left out because its sixty-second timer runs only when a hook is configured for it, andInterruptbecause Beacon's closing action asserts the agent finished. Kimi Code reports real operator approval decisions overPermissionRequest/PermissionResult, soPreToolUsemust not also synthesize one. Beacon writes nothing to stdout on this runtime, becauseUserPromptSubmitstdout is appended to the model's context; the policy seam denies with exit code 2 and is inert in the permission-request phase, which Kimi Code does not allow blocking. No token usage is exposed on any hook payload. - Kiro uses one Beacon-owned hook file under
.kiro/hooksor$KIRO_HOME/~/.kiro/hooks. Its hook stdout is added to agent context onSessionStartandUserPromptSubmit, so Beacon writes nothing to stdout on Kiro; blocking is exit code 2 with the reason on stderr. Approvals are not exposed or synthesized. - goose currently has only the adapter:
cli/beacon-hooks/cmd/goose.gocan map a manually writtenhooks.jsonthat invokesbeacon-hooks --platform goose, but there is nobeacon endpoint hooks install --harness goose, noDiscoverGoose, and no automatic OTLP configuration. Keep README/docs from implying goose is generally installable until those pieces exist. goose uses HTTP OTLP (4318), its blocking hook stdout must be{"decision":"allow"}or{"decision":"block"}, and it exposes no approval decisions or tool output. - DeepSeek Harness (
dsh) is installed through two user-level files:$DSH_HOME/beacon-endpoint-hooks.jsonand a row in$DSH_HOME/cordis.patch.yml; there is no project scope. It also installs a Beacon-owned local skill at$DSH_HOME/skills/beacon-endpoint/SKILL.mdand supports native session backfill from$DSH_HOME/sessionsthroughbeacon endpoint dsh sync, which fills assistant text/reasoning, tool failures, and token usage that the hook bridge does not expose. It rides the Claude-shaped envelope on the hook path, butrun_coderemainstool.invokedbecause nested commands fire their own hooks. - fx (vercel-labs/fx) telemetry read from the session store fx commits under
~/.fx/sessions/, covering session start, prompts, tool calls, commands with exit codes and output, file reads/creates/edits with diffs, MCP tool calls, agent messages, history compaction, and per-turn token usage plus reported cost. fx exposes no third-party hook, plugin, or OTLP surface -- its lifecycle hooks are compiled into the binary -- so collection is a read of fx's own records, run bybeacon endpoint fx sync. Every event carriesharness.collection_method=poll; approvals are not synthesized (fx persists permission feedback text, not a per-call decision, matching the Cline and Pi posture) and no session-end event is invented, since fx sessions are resumable. Implementation lives incli/beacon/internal/fxsessionandcli/beacon/cmd/endpoint_fx.go. - Claude Cowork admin-configured OpenTelemetry setup guidance and local validation.
- OpenClaw Gateway uses a Beacon-managed plugin directory plus OpenClaw's own diagnostics OTLP guidance (
beacon endpoint integrations openclaw). The plugin'sbefore_tool_callhook is fail-closed, so the handler dispatches synchronously and returns without awaiting. Conversation hooks, includingllm_output, requireplugins.entries.beacon-endpoint.hooks.allowConversationAccess; without it, token and agent-message coverage is partial. Beacon reads OpenClaw JSON/JSON5 config for advice but does not rewrite it. - GitHub Copilot CLI uses MDM/customer-managed OTLP HTTP for live spans and approval-like activity, plus
beacon endpoint copilot syncto backfill local session records from~/.copilot/session-state. Poll events carry assistant text, complete tool results, command/file details, and token usage withharness.collection_method=poll; approvals still come only from the live OTLP path and are not synthesized from persisted records. - Runtimes that ride shared hook/OTLP paths without a special contract worth expanding here include Antigravity CLI, Devin CLI, Devin Desktop, Factory Droid, Gemini CLI, Grok Build, Hermes Agent, Qwen Code, and VS Code. Installed hook/endpoint support is governed by
cli/beacon/cmd/endpoint_targets.goplus the install/status switches incli/beacon/cmd/endpoint_hooks.go; discovery rows live incli/beacon/internal/endpoint/harness. - Browser chat telemetry through an optional MV3 extension (
browser-extension/; Chrome, with a beta Firefox build) covering claude.ai and chatgpt.com. A main-world interceptor tees the streamed response, a per-site adapter parses it into a normalized turn, and the service worker POSTs OTLP GenAI logs to the local collector on127.0.0.1:4318; the extension never writes files and never contacts a remote endpoint.harness.nameresolves toclaude_weborchatgpt_web(already handled byNormalizeHarnessNameinpkg/asymptoteobserve/harness.go, where the browser cases must stay above the genericclauderule) andharness.collection_methodisotlp. The one build serves every Chromium browser; each event names the browser it came from in the typeduser_agent.name/user_agent.versionfields (OTel semconv, promoted by the exporter so Metadata-only forwarding keeps them), resolved inbrowser-extension/src/shared/browser-identity.tsfrom UA Client Hints brands, with a UA-string fallback that also names Firefox. Scope is deliberately narrow: only those origins' chat streams, never other tabs or general browsing. Retention defaults tofull, so prompt and response text is retained by default; this is documented rather than defaulted down, because browser chat telemetry without content has no investigative value. Treat the adapters as experimental, since both sites' stream formats are private and undocumented. Per-browser differences live only inbrowser-extension/tools/targets.mjs(one entry per target, deriving its manifest fromsrc/manifest.json; Chrome ships that file verbatim todist/, Firefox getsdist-firefox/), and every extension API call goes through thesrc/shared/browser.tsshim (a unit test fails on directchrome.*use). The Firefox Gecko IDbrowser-collector@agent-beacon.asymptotelabs.aiis pinned and must never change. beaconjsonOpenTelemetry Collector exporter that converts OTLP logs, traces, metrics, and resource attributes into Beacon endpoint JSONL.- Endpoint inventory (
inventory.heartbeat/inventory.snapshotininventory_state.jsonl) is written by a scheduled job,com.beacon.endpoint.inventory(service.InventoryManager, user LaunchAgent or system LaunchDaemon,beacon-inventory.timeron systemd), every six hours and once at load, on by default and reconciled bylifecycle.ReconcileInventoryJobon every install, repair and package upgrade (beacon endpoint inventory install-daemon). Agent hooks do not trigger inventory any more; the hook binary's--cliflag andinventory-heartbeatsubcommand survive only as no-ops for hook commands written by older versions, andbeacon endpoint inventory heartbeat --trigger hookis likewise retired. A system-mode run inventories the active console user's home and still writes the liveness heartbeat when nobody is logged in; the scheduled scan has no working directory, so project-scoped config is only inbeacon endpoint inventory. - Beacon Cloud forwarding, the one Beacon-hosted network channel for endpoint telemetry: user-mode
beacon endpoint connectauthorizes device enrollment with the signed-in CLI account; system mode uses browser PKCE at/cli/enroll. Both store only the per-device key in<BaseDir>/asymptote/vector-secrets.json(0600, 0700 dir), render the selected privacy mode intovector.toml, validate it, and run Vector ascom.beacon.endpoint.asymptote-forwarder/beacon-asymptote-forwarder.servicethroughservice.ForwarderManager(refused in supervised mode).enrollment.jsonandconfig.json'smanaged_ingestblock carry only non-secret identity and privacy mode;beacon endpoint statusreports forwarder state and a live credential check (GET /v1/ingest/health, 3 s timeout);disconnectanduninstallremove the forwarder and credentials but never revoke server-side. - Asymptote Observe TypeScript SDK instrumentation for cloud applications, starting from OpenTelemetry/OpenLLMetry patterns and
observe()wrappers. - Elasticsearch/Filebeat content pack generation for forwarding local Beacon JSONL into customer-managed Elastic deployments or the bundled loopback-only development stack.
- A local-only dashboard served by
beacon endpoint dashboard, bound to loopback by default and backed by the runtime JSONL log. - Token usage and runtime-reported cost capture across spans, logs, and metric datapoints, normalized into
gen_ai.usage, with attribution rollups served by the dashboard token view (/api/tokens) and thebeacon token-usagereport command for local and CI logs. - Local threat detection via
beacon scan, which runs the open Threat Rules format (spec/threat-rules; CEL match conditions over the endpoint event schema, with embedded conformance fixtures) over the runtime JSONL. The engine (pkg/asymptoteobserve/threatrules) ships in the binary; the rule corpus is external data loaded from a local store (~/.beacon/endpoint/rules) managed bybeacon rules, so the corpus can grow without enlarging the binary.scanis read-only and offline; only the explicit, user-initiatedbeacon rules pull <url>reaches the network. A small frozen baseline is embedded soscanworks before any rules are installed. - Session handoff via
beacon handoff list|export|resume(cli/beacon/internal/handoff,cli/beacon/cmd/handoff*.go; docs indocs/cli/handoff.mdxanddocs/concepts/session-handoff.mdx). Every runtime is one entry in the registry incli/beacon/internal/handoff/runtimes.go: its session source, the names it answers to, and the commands that reopen it or start it from a brief;TestRegistryIsConsistentchecks the entries. Handoff reads the session stores of Claude Code, Codex CLI, OpenCode, Cline, Pi, Prime Agent, Factory Droid, GitHub Copilot CLI, Hermes Agent, DeepSeek Harness, fx, Grok Build, OpenClaw Gateway and Cursor read-only and never touches the network. Oh My Pi, Gemini CLI, Qwen Code, Kiro, Antigravity CLI, Devin CLI, Muse Code, OpenHands and goose have no store Beacon reads: their sessions come from the runtime log, and they take a brief as the target of--agent.resumereopens a session natively with its runtime's own command when it can, and otherwise writes a brief to~/.beacon/endpoint/handoffs(0700/0600) and starts a new session pointed at it. DeepSeek Harness cannot be started, and Hermes Agent and fx only reopen their own sessions, so their sessions continue in another runtime. fx, Grok Build and Cursor find a session by the directory they run in, so they are reopened natively only in the session's own directory. The brief is passed by absolute path, never inlined on a command line. Every launch keeps the runtime's approvals on: Beacon never passes a flag that turns them off, names the approval mode that asks where a CLI takes one (Cline always gets--auto-approve false, because Cline defaults to approving every tool call), and removes or overrides environment switches that would approve everything (COPILOT_ALLOW_ALL,COPILOT_PLAN_THEN_AUTOPILOT,HERMES_YOLO_MODE,GOOSE_MODE);--printshows them underenv. Briefs run every event throughSanitizeEvent, and quoted content goes in fences longer than any backtick run it contains, with inline fields reduced to one line, so quoted content cannot forge brief structure. A new session's first prompt ends with the[beacon-handoff from=<harness> session=<id>]marker (pkg/asymptoteobserve/handoff.go). The hook and plugin prompt paths and the session-store mappers record asession.handoffevent withhandoff.{source_harness,source_session_id}when they see it; that is an observed claim, not a verified identity. - Commit-to-session links via
beacon git setup|status|remove|link|notes(cli/beacon/internal/gitlink,cli/beacon/cmd/git*.go; docs indocs/cli/git.mdx). A link is abeacon:<harness>/<session-id>line in a git note underrefs/notes/beacon; it carries identifiers only, never content, because notes can be pushed. Which sessions to link is inferred from the local runtime log: a session is linked when, between the parent commit and the commit (at least two hours, at most 24), it wrote a file the commit changes (for a merge, only files that differ from every parent, so a clean merge or pull links nothing). Evidence is file write events, write-typefile.operations, plainly readable shell targets, andapply_patchenvelopes; reads never count. Note updates are a compare-and-swap on the notes ref through a privaterefs/notes/beacon-tx/working ref, and every existing note line, a teammate's or a person's, is kept verbatim.setupinstalls post-commit (links HEAD in the foreground with a 3 s budget, silent, never fails the commit, skips rebase/cherry-pick/revert) and post-rewrite (normalizes the note git concatenates on amend) as standalonebeacon-<hook>scripts called from a marked block inserted after the shebang of the repository's own hook; only shell hooks are edited,core.hooksPathis refused without--hooks-path, andnotes.rewriteRefcarries links through amend and rebase.BEACON_GIT_HOOKS=0disables the hooks for one command. Every link a run adds is also written to the runtime log as onesession.commit_linkedevent in the linked session's timeline (event.fidelity=inferred, no collection method), with commit id, branch and credential-stripped remote in the OTel-shapedvcsblock and overlap counts invcs.attribution; the event deliberately carries no file, command or tool fields so it can never become attribution evidence. Sharing is opt-in (setup --share-notes, off by default): a non-destructive fetch refspec+refs/notes/beacon:refs/notes/beacon-remotes/<remote>so git's own fetch brings teammates' links into a read-only tracking ref thatbeacon git notesunions with the local one (never force-fetch intorefs/notes/beacon: it would destroy unpushed links), and a pre-push hook that fetches, merges withcat_sort_uniqthrough the same CAS, and pushes only the notes ref with--no-verify, within a 10 s budget and never failing the push. That pre-push hook is the only Beacon git hook that touches the network, and only during a push the person started;beacon git notes push|fetchdo the same by hand. - Beacon Cloud MCP registration via
beacon mcp connect|disconnect|status(cli/beacon/internal/mcpconnect,cli/beacon/cmd/mcp_connect.go; docs indocs/cli/mcp-connect.mdx). It registers the Beacon Cloud MCP server asbeacon-managed, a different name from the local stdio serverbeacon, in the user-level config of Claude Code, Codex CLI, Cursor, VS Code, Gemini CLI and OpenCode. It prints manual steps for runtimes without confirmed MCP OAuth support. OAuth is the default and writes only the URL;--token-envwrites a reference to an environment variable in each harness's own syntax, never a value.connectnever reads or copies the account token and never writes a token; minting one is the separate, explicitbeacon mcp token create. It is explicit and interactive: never run byendpoint installor onboarding (the install only suggests it after the wizard's Managed choice), refused as root, and refused in CI or without a terminal unless--yesis given. Its one network request is the RFC 9728 resource-metadata check of the URL, which--dry-runskips. Configs are edited like the Kimi Code writer: never re-serialized, spliced as text, parsed back and compared before an atomic replace, backed up first. What was written is recorded in~/.beacon/mcp/connections.json, anddisconnectremoves only entries recorded there that still point at the recorded URL.cmd/mcp_connect_e2e_test.goruns the real harness CLIs when they are installed; re-run it when a harness changes its MCP config format. - An optional, off-by-default policy seam in the hook path (
cli/beacon-hooks/internal/policy) governed by the stable contract inpkg/asymptoteobserve/policycontract. WhenBEACON_POLICY_PROVIDERnames an executable, thepre-toolandpermission-requesthooks send it a JSON request describing the imminent tool call and honor an allow/deny response, returning the runtime's native deny shape andpolicy.enforcement=enforcetelemetry on a deny. The seam is inert when unset and fail-open on any error (timeout, non-zero exit, malformed output), so the open build ships no enforcement of its own; all audit/enforce decision logic lives in the external provider.rules/agent-control/agent-permission-bypass-spawn.rule.yamlis the open detect twin that flags the same pattern inbeacon scan.
Current non-goals unless explicitly requested:
- Kernel/process monitoring, EDR replacement, shell history scraping, cloud audit ingestion, general browser or SaaS activity monitoring beyond the supported chat surfaces, credential-use attribution, and MCP configuration inventory.
- Direct hosted integrations for Datadog, Snowflake, Chronicle, Panther, or other SIEM destinations beyond explicitly supported local/customer-managed forwarding patterns and the opt-in Asymptote Managed path.
- Dependency vulnerability scanning or package security remediation.
Common Commands
Run tests for the public CLI. Build the embedded hooks binary first — several tests require a real one and fail against the checked-in placeholder:
cd cli/beacon
make build-hooks-current
go test ./...
go test -race ./internal/endpoint/...Run hook adapter tests:
cd cli/beacon-hooks
go test ./...Run packaging wrapper checks:
sh packaging/macos/test-endpoint-scripts.shRun the macOS endpoint smoke test:
sh packaging/macos/smoke-endpoint.shBuild the CLI:
cd cli/beacon
make buildRun Collector exporter tests:
cd collector-builder/exporter/beaconjsonexporter
go test ./...Run the observe SDK and threat-rules conformance tests:
cd pkg/asymptoteobserve
go test ./...Run the managed runtime plugin/extension checks (each verifies the checked-in copy matches its embedded twin, then runs its tests):
cd plugins/opencode-beacon && bun run check && bun test
cd ../cline-beacon && bun run check && bun test
cd ../pi-beacon && bun run check && bun test
cd ../omp-beacon && bun run check && bun test
cd ../openclaw-beacon && bun run check && bun test
cd ../prime-beacon && bun run check && bun test
cd ../omo-beacon && bun run check && bun testAfter editing a plugin or extension source, run bun run sync in its directory to update the
embedded copy under cli/beacon/internal/endpoint/hooks/assets/; a Go test fails if the two drift.
openclaw-beacon syncs three files rather than one, because OpenClaw discovers a plugin as a
directory: the entry plus the two manifests it is declared in.
Run the lens sandbox browser tests (the real dashboard plus hostile fixture lenses; the hooks
binary must be built first). In a cloud session with a preinstalled Chromium, set CHROMIUM_PATH
instead of installing one:
cd cli/beacon && make build-hooks-current
cd internal/endpoint/dashboard/testdata/lens-e2e
npm ci
npx playwright install chromium # or: export CHROMIUM_PATH=/path/to/chromium
npx playwright testRun TypeScript SDK checks:
cd packages/asymptote-sdk-js
npm test
npm run check
npm run build
npm run pack:dry-runRun browser extension checks. The e2e replays recorded SSE through the real
extension in headless Chromium, so it needs openssl on PATH and a one-time
Chromium download, but no login and no network:
cd browser-extension
npm ci
npm run check
npm run test:unit
npx playwright install chromium # one-time
npm test # builds dist/, runs the replay e2eExercise the goose adapter during manual testing. There is no --harness goose installer yet (see
the goose entry under Telemetry Scope), so the hooks file and the OTLP endpoint are written by hand
and only the payload mapping can be run from the repository:
cd cli/beacon-hooks
go test ./... -run GooseCollect fx session telemetry during manual testing:
cd cli/beacon
go run . endpoint fx status # sessions fx has written and how much Beacon has read
go run . endpoint fx sync --print # map records to events without writing anythingConnect an endpoint to Asymptote Managed during manual testing (needs Vector 0.50+ on the machine;
/opt/beacon/bin/vector from the signed package works, and a browser signed in to an org that has
managed ingest enabled):
cd cli/beacon
go run . endpoint connect # browser approval → device key → forwarder service
go run . endpoint status --json | jq .managed_ingest
go run . endpoint disconnect # stop the forwarder and remove the local keyRun the Asymptote Managed forwarder by hand instead (a device key from beacon-ingest/scripts/mint_test_device.py
or a previous connect):
cd cli/beacon
go run . endpoint asymptote install-pack --output /tmp/beacon-asymptote-pack --log-path "$HOME/.beacon/endpoint/logs/runtime.jsonl"
BEACON_ASYMPTOTE_INGEST_URL=https://<ingest> BEACON_ASYMPTOTE_SECRETS_FILE=/path/to/secrets.json BEACON_ASYMPTOTE_DATA_DIR=/tmp/beacon-asymptote-data \
vector validate --skip-healthchecks /tmp/beacon-asymptote-pack/vector.toml
go run . endpoint asymptote validate # writes a validation event the forwarder shipsRun the local dashboard during manual testing:
cd cli/beacon
go run . endpoint dashboardRun local threat detection and manage rules during manual testing:
cd cli/beacon
go run . scan # run active rules over the runtime log
go run . rules list # show active rules (baseline or store)
go run . rules lint ../../rules # validate + run the repo rule pack's fixturesWhen adding event fields a rule can match on, regenerate the field reference:
beacon rules fields --markdown > spec/threat-rules/FIELDS.md (a conformance test fails if
it drifts).
Release Deployments
Homebrew releases are published by GoReleaser from cli/beacon/.goreleaser.yaml.
Prefer a CI-based release workflow triggered by an annotated version tag. Use a
local GoReleaser publish only as a fallback when CI release automation is not
available or the maintainer explicitly asks for a local release.
A pushed v* tag runs the full release end-to-end via
.github/workflows/release.yml (no local publish steps required), in three jobs:
goreleaser(ubuntu,environment: release) builds the collector dists, publishes the GitHub release + changelog and tarballs, and updates the Homebrew tap.package(macOS,needs: goreleaser,environment: release) builds the Apple Siliconbeacon/beacon-hookspackage payload plus arch-matched collector and Vector binaries fordarwin_arm64, then signs, notarizes, staples, and uploads the.pkg,.sha256, andupdate-manifest.json. GoReleaser still publishes multi-arch CLI tarballs; the signed endpoint.pkgis arm64-only so it can carry a current Vector release.windows-package(windows-2025,needs: goreleaser) builds the x64 MSI from the published archive, installs and uninstalls it on the runner to prove it works, and attaches the.msiand its.sha256. Deliberately not in thereleaseenvironment: that environment gates signing secrets, and the MSI is unsigned, so this job has none to gate.
Required release-environment secrets: HOMEBREW_TAP_TOKEN,
DEVELOPER_ID_APP_CERT_P12, DEVELOPER_ID_APP_CERT_PASSWORD,
DEVELOPER_ID_INSTALLER_CERT_P12, DEVELOPER_ID_INSTALLER_CERT_PASSWORD,
NOTARY_API_KEY_P8, NOTARY_API_KEY_ID, NOTARY_API_ISSUER; plus Variables
DEVELOPER_ID_APP_IDENTITY, DEVELOPER_ID_INSTALLER_IDENTITY, APPLE_TEAM_ID.
Keep one-time Apple-side onboarding steps out of the repo and share them with
the release maintainer directly. Never use pull_request_target or build
untrusted PR code in the signing job.
Use the next semver tag requested by the maintainer, usually the next v0.0.x
tag unless they explicitly decide Beacon is ready for v1.0.0.
Before tagging:
git fetch --tags origin
git status -sb --untracked-files=all
git tag --sort=-v:refname | sed -n '1,8p'
git log --oneline <previous-tag>..HEAD
gh release view <new-tag> --json tagName,url,isDraft,isPrerelease 2>/dev/null || true
git ls-remote --tags origin "refs/tags/<new-tag>"Run the release gates before publishing:
cd cli/beacon && go test ./...
cd ../beacon-hooks && go test ./...
cd ../../collector-builder/exporter/beaconjsonexporter && go test ./...
cd ../../../pkg/asymptoteobserve && go test ./...
cd ../../packages/asymptote-sdk-js && npm test && npm run check && npm run build && npm run pack:dry-run
cd ../..
sh packaging/macos/test-endpoint-scripts.shWhen building macOS .pkg artifacts, always include the Vector binary by
setting BEACON_VECTOR_BIN (or VECTOR_BIN) to the release Vector executable
before running packaging/macos/build-pkg.sh or
packaging/macos/build-signed-notarized-pkg.sh. The package should install
/opt/beacon/bin/vector so packaged Jamf/Fleet forwarder helpers work without a
separate Vector install.
The Linux .deb, .rpm, and release archives carry Vector too. Run
sh packaging/linux/fetch-vector.sh before GoReleaser: it downloads the static
(musl) build for both arches, checks it against Vector's published checksums and
for a program interpreter, and stages it under cli/beacon/release-vector/. The
GoReleaser before-hook fails without it. The packages install it as
/opt/beacon/bin/vector; the archives carry it as beacon-vector, which the
Homebrew formula installs on Linux. The version is pinned in that script at
0.56.0, the same as the macOS package. Vector 0.57 and 0.58 stop expanding the
${VAR} references the generated packs rely on, so bump it only together with
packaging/linux/validate-vector-packs.sh passing against the new version.
Preferred CI Release
CI release automation should:
- Trigger only on pushed tags matching
v*. - Check out the tagged commit with full history (
fetch-depth: 0) so GoReleaser can compute changelogs from the previous tag. - Build or restore the collector binaries expected by
.goreleaser.yamlundercollector-builder/dist/beacon-otelcol/<goos>_<goarch>/beacon-otelcol. - Run
goreleaser checkbefore publishing. - Run
goreleaser release --clean --parallelism 1fromcli/beaconbecause the release pre-hook writes target-specificbeacon-hooksbinaries to a shared embedded path. - Provide
GITHUB_TOKENfor the GitHub release andHOMEBREW_TAP_TOKENwith write access toasymptote-labs/homebrew-tap.
The normal deployment flow is:
git fetch --tags origin
git status -sb --untracked-files=all
git tag -a <tag> -m "<tag>"
git push origin <tag>
gh run list --workflow release.yml --limit 5After the workflow succeeds, verify the GitHub release assets and the Homebrew tap:
gh release view <tag> --json url,tagName,assets --jq '.tagName + " " + .url + " assets=" + (.assets | map(.name) | join(","))'
gh api repos/Asymptote-Labs/homebrew-tap/contents/Formula/beacon.rb --jq '.content' | base64 --decode | sed -n '1,70p'
gh api repos/Asymptote-Labs/homebrew-tap/commits/main --jq '.sha + " " + .commit.message'Check Homebrew on Linux with a real install, since formula changes only take effect once a release publishes them. It should print a Vector version:
docker run --rm --platform linux/amd64 homebrew/brew sh -c \
'brew install asymptote-labs/tap/beacon && "$(brew --prefix)/bin/beacon-vector" --version'The release should include the five GoReleaser CLI archives (four .tar.gz plus
beacon_<version>_windows_amd64.zip), checksums.txt, threat-rules.tar.gz, install.sh (the Linux one-line installer from packaging/linux/install.sh),
BeaconEndpointAgent-<version>-arm64.pkg, its .sha256, update-manifest.json,
and BeaconEndpointAgent-<version>-x64.msi with its .sha256.
The MSI is unsigned, so pkgutil/stapler/spctl have no Windows counterpart to
run. Its .sha256 is therefore the only integrity check it has, and the release
job proves the package works by installing it on a runner before attaching it —
verification by execution rather than by signature. Both change when Authenticode
signing is added. Verify the package before announcing the release:
tmpdir="$(mktemp -d)"
cd "$tmpdir"
gh release download <tag> --repo Asymptote-Labs/agent-beacon --pattern 'BeaconEndpointAgent-*-arm64.pkg*' --pattern update-manifest.json
expected="$(awk '{print $1}' BeaconEndpointAgent-*-arm64.pkg.sha256)"
actual="$(shasum -a 256 BeaconEndpointAgent-*-arm64.pkg | awk '{print $1}')"
test "$expected" = "$actual"
pkgutil --check-signature BeaconEndpointAgent-*-arm64.pkg
xcrun stapler validate BeaconEndpointAgent-*-arm64.pkg
spctl --assess --type install -vv BeaconEndpointAgent-*-arm64.pkg
jq . update-manifest.jsonFor releases that include endpoint self-update changes, validate the manual apply path from the prior installed package on an Apple Silicon Mac:
/opt/beacon/bin/beacon version
sudo /opt/beacon/bin/beacon endpoint update --apply
/opt/beacon/bin/beacon version
/opt/beacon/bin/beacon endpoint status --system
sudo tail -n 20 /var/log/beacon-agent/system.jsonlIf the workflow fails after the tag is pushed, do not create a second tag until the failure is understood. Fix the release workflow or source issue, then rerun the failed workflow for the same tag when possible. Delete and recreate a pushed tag only with maintainer approval.
Local Fallback Release
Do not publish locally from a dirty checkout unless the maintainer explicitly
wants those uncommitted changes in the release archive. If unrelated local
changes are present, create a temporary clean worktree at HEAD and copy the
prebuilt collector binaries into it before running GoReleaser:
rm -rf .tmp/release-<tag>
git worktree add .tmp/release-<tag> HEAD
mkdir -p .tmp/release-<tag>/collector-builder/dist/beacon-otelcol/{darwin_amd64,darwin_arm64,linux_amd64,linux_arm64}
cp collector-builder/dist/beacon-otelcol/darwin_amd64/beacon-otelcol .tmp/release-<tag>/collector-builder/dist/beacon-otelcol/darwin_amd64/beacon-otelcol
cp collector-builder/dist/beacon-otelcol/darwin_arm64/beacon-otelcol .tmp/release-<tag>/collector-builder/dist/beacon-otelcol/darwin_arm64/beacon-otelcol
cp collector-builder/dist/beacon-otelcol/linux_amd64/beacon-otelcol .tmp/release-<tag>/collector-builder/dist/beacon-otelcol/linux_amd64/beacon-otelcol
cp collector-builder/dist/beacon-otelcol/linux_arm64/beacon-otelcol .tmp/release-<tag>/collector-builder/dist/beacon-otelcol/linux_arm64/beacon-otelcol
sh packaging/linux/fetch-vector.sh "$PWD/.tmp/release-<tag>/cli/beacon/release-vector"Tag and publish from the clean release checkout. Prefer explicitly exported
tokens; use gh auth token only as a local fallback:
git -C .tmp/release-<tag> tag -a <tag> -m "<tag>"
git -C .tmp/release-<tag> push origin <tag>
cd .tmp/release-<tag>/cli/beacon
goreleaser check
GITHUB_TOKEN="${GITHUB_TOKEN:-$(gh auth token)}" HOMEBREW_TAP_TOKEN="${HOMEBREW_TAP_TOKEN:-$(gh auth token)}" goreleaser release --clean --parallelism 1After GoReleaser succeeds, verify both the GitHub release and the Homebrew tap:
gh release view <tag> --json url,tagName,assets --jq '.tagName + " " + .url + " assets=" + (.assets | length | tostring)'
gh api repos/Asymptote-Labs/homebrew-tap/contents/Formula/beacon.rb --jq '.content' | base64 --decode | sed -n '1,70p'
gh api repos/Asymptote-Labs/homebrew-tap/commits/main --jq '.sha + " " + .commit.message'Clean up the temporary worktree after verification:
git worktree remove --force .tmp/release-<tag>TypeScript SDK Release
Publish @asymptote/sdk from GitHub Actions instead of a local shell when
possible so npm provenance remains enabled.
Before tagging:
cd packages/asymptote-sdk-js
npm test
npm run check
npm run pack:dry-runPublish with an annotated SDK tag that matches package.json exactly:
git tag -a sdk-js-v<version> -m "sdk-js-v<version>"
git push origin sdk-js-v<version>
gh run list --workflow npm-publish-sdk.yml --limit 5The .github/workflows/npm-publish-sdk.yml workflow validates that the pushed
sdk-js-v<version> tag matches packages/asymptote-sdk-js/package.json, reruns
the SDK checks, and publishes to npm with provenance.
Trusted publishing must be configured in npm for this repository/workflow before the first CI publish. If trusted publishing is unavailable and the maintainer explicitly requests a local fallback, disable provenance for that one publish instead of changing the package defaults.
Use these npm trusted publisher values:
- Package:
@asymptote/sdk - Publisher: GitHub Actions
- Organization or owner:
asymptote-labs - Repository:
agent-beacon - Workflow filename:
npm-publish-sdk.yml - Environment: leave unset unless the workflow is updated to declare one
Browser Extension Release
The browser extension versions independently of the CLI. A pushed ext-v* tag
runs .github/workflows/release-extension.yml, which creates its own GitHub
release carrying the unpacked Chromium-family build as a zip plus a .sha256.
The zip keeps its -chrome.zip name: chrome names the Chromium extension
target family, and the same archive loads in Edge, Brave, Opera, Vivaldi and Arc.
ext-v* and the CLI's v* trigger cannot collide: GitHub tag patterns anchor at
the start, so v* does not match ext-v0.1.0.
Bump the version in both browser-extension/package.json and
browser-extension/src/manifest.json before tagging. The workflow requires the
tag and both files to agree and fails otherwise.
cd browser-extension
npm run check && npm run test:unit && npm run build
cd ../
git tag -a ext-v<version> -m "ext-v<version>"
git push origin ext-v<version>
gh run list --workflow release-extension.yml --limit 5A second job, firefox, signs the Firefox build through AMO as an unlisted
add-on and attaches agent-beacon-browser-extension-<version>-firefox.xpi plus
its .sha256. It runs only when the AMO_JWT_ISSUER and AMO_JWT_SECRET
repository secrets exist, and skips when the release already has that .xpi,
because AMO signs each version once. Without the secrets it is a no-op and the
release still succeeds with the Chrome zip alone.
The zip is unsigned, so its .sha256 is the only integrity check it has, the
same posture as the Windows MSI. The workflow proves the artifact works by
unzipping the published bytes and asserting they are a loadable MV3 extension.
Verify after the run:
gh release download ext-v<version> --repo Asymptote-Labs/agent-beacon \
--pattern 'agent-beacon-browser-extension-*-chrome.zip*'
shasum -a 256 -c agent-beacon-browser-extension-<version>-chrome.zip.sha256Chrome Web Store publication is not yet wired. Until it is, the zip is loaded unpacked through Chrome's developer mode.
Implementation Notes
- Prefer deterministic tests that use
t.TempDir(),testenv.SetHome(t, ...)(cli/beacon/internal/testenv; a baret.Setenv("HOME", ...)does not moveos.UserHomeDiron Windows), fake binaries, and free local ports. Gate Unix permission-bit assertions withtestenv.HasPOSIXFileModes()ortestenv.RequirePOSIXFileModes(t), and shell-script fixtures withtestenv.RequirePOSIXExecutableFixtures(t). - Avoid tests that require root, real
launchctlservice changes, Wazuh, a live collector, or external network access. - For macOS-only behavior, gate tests with
runtime.GOOS == "darwin"or assert the non-Darwin contract explicitly. - Keep endpoint event schema fields stable:
vendor,product,schema_version, required event fields, and Wazuh-compatible JSONL output are release contracts. - Preserve optional event fields for agent-native metadata (
session,trace,tool,file,command,mcp,approval,content,model,repository, andbranch) without changing existing required field semantics. - Reading a runtime's own on-disk session store is a
pollcollection path, not a new method: it is a pull that sees committed records after the fact, which is whatpollmeans. fx is the case that exercises it (cli/beacon/internal/fxsession); a future runtime with the same shape usespolltoo rather than adding a fifth value to a release-contract field. - Set the provenance markers on every new collection path.
harness.collection_method(hook,otlp,plugin,poll) records the mechanism;event.fidelity(observed,inferred) records whether the source named the action or Beacon derived it. Both are defined inpkg/asymptoteobserve/provenance.goand are the only sanctioned way to express that difference — do not add per-runtime confidence fields, and do not leave a derived action unmarked. A new plugin-shaped runtime must be added toCollectionMethodForPlatform, whose default ishook. An action synthesized from an adjacent observation, such as an approval built from a pre-tool notification on a runtime with no approval hook, isinferred. - Keep event identity derivable rather than asserted.
gen_ai.tool.call.idcarries the runtime's own name for one tool invocation, promoted on every capture path from the shared alias list inpkg/asymptoteobserve.ToolCallIDKeys; a new runtime adds its spelling there rather than in a mapper.event.idis a deterministic UUID derived byEventIDForLinefrom the event about to be written, so both capture paths name one action the same way. Its namespace constant and derivation are a contract: changing either renames every event ID Beacon has written, and a test pins the value. - Keep
gen_ai.usageas the single canonical token-usage representation: normalize all runtime token telemetry (span attributes, metric datapoints, legacyllm.usage.*aliases) into it, mirror OTel GenAI semconv JSON names exactly, and never add parallel or per-harness token fields.gen_ai.usage.cost_usdcarries runtime-reported cost only; do not derive cost from local pricing tables. - When adding a new signal, include stable identifiers/counts/hashes alongside any retained raw content, and route raw fields through redaction, sanitization, truncation, and event-size controls.
- Keep the dashboard read-only. It should inspect local status and JSONL events but must not mutate endpoint configuration or telemetry.
- The local trace history (
~/.beacon/endpoint/history.db,cli/beacon/internal/endpoint/dashboard/history_*.go) is opt-in: onlybeacon endpoint traces reindex, a yes to the first-run prompt, or (later)beacon mcp setupcreates it, and nothing non-interactive is ever prompted. Once it exists,list,searchandshowmust return exactly what the JSONL scan returns for the same log (TestHistoryAnswersExactlyLikeTheJSONLScan), so it stores every event and projects it with the same code. A change to the trace projection bumpshistoryDerivationVersion, which rebuilds derived data from the stored lines. The stored lines keep only the raw keys inhistoryRawKeys, and a test fails if the dashboard reads one that is missing. The line dictionary (historyLineDictionary) must never change without a new codec. - The Asymptote device key has exactly one home,
<BaseDir>/asymptote/vector-secrets.json, read by Vector'ssecretfile backend. Never copy it intoconfig.json,vector.toml, a service unit, an environment variable, a log line, or a--jsonresult;HasSecretDestinationsis unchanged because the key is not inconfig.json.internal/authis flow-agnostic (PKCE, loopback callback server with an injected exchange function, browser opener,PostJSON); new browser flows reuse it rather than adding a second callback server.connectmust fail before opening a browser when Vector or a service manager is missing, or when Vector rejects the rendered config, so no key is minted or rotated that cannot be used; enrollment rotates a connected device's key in place, so every local check runs ahead of it; the steps that can only fail after the exchange (storing the key, writing the config and unit, starting the service) are covered by theasymptote/connect-pendingmarker, written as soon as the key arrives and removed only when connect finishes, so status reports an incomplete connect instead of the previous connection. A failed first connect stops and removes any partial forwarder before returning, which keeps a later local-only onboarding choice local. - Keep the release readiness guidance in
README.mdup to date when install, packaging, collector, or dashboard behavior changes.
CI Expectations
.github/workflows/ci.yml runs these jobs on every pull request and on pushes to main:
go-test(macOS):bun run check && bun testin all sevenplugins/*directories, thenmake build-hooks-current, thengo test ./...incli/beacon,go test -race ./internal/endpoint/...,go test ./...incli/beacon-hooks,collector-builder/exporter/beaconjsonexporter, andpkg/asymptoteobserve(includes threat-rules pack conformance), then CLI help smoke checks that also assert removed commands stay unexposed.linux-test(ubuntu) andwindows-test(windows-2025) rerun the Go suites per platform. The Windows job tests a measured package list rather than./...; the excluded packages are tracked in #318, and the scope must not be widened back to./....typescript-sdk(Node 20, 22, 24):npm test,npm run check,npm run build,npm run pack:dry-run,npm run pack:smokeinpackages/asymptote-sdk-js.browser-extension(Node 22, matrix overchromiumandmsedge):npm run check,npm run test:unit,npm run build, a check that the build is a loadable MV3 extension,npm run lint:firefox(the Firefox build plusweb-ext lint --warnings-as-errors), and the Playwright replay e2e running the real extension headless in that leg's browser (BROWSER_CHANNEL) against a local HTTPS replay server; the HTML report and traces upload on failure. Brave, Opera, Vivaldi and Arc have no Playwright channel;BROWSER_EXECUTABLEruns the same e2e against their binaries for the manual checklist indocs/runtimes/browser-extension-chromium.mdx.lens-e2e(ubuntu): runs the real dashboard handler with hostile fixture lenses and the fullrules/corpus installed (cli/beacon/internal/endpoint/dashboard/e2eserver,testdata/lens-e2e) and drives the session page in headless Chromium. Every escape from the lens sandbox must be refused, and a lens that throws, stalls or navigates must give way to the full session.beacon-sandbox(ubuntu):go build,go vet, andgo testfor the verification harness. Hermetic — no Modal account, no API key, no paid resources.cross-build(ubuntu): builds all five release targets and asserts the Linux binaries are statically linked (noPT_INTERP).package-smoke(macOS):packaging/macos/test-endpoint-scripts.sh, abuild-pkg.shpayload check, andpackaging/macos/smoke-endpoint.sh.linux-systemd-smokeandlinux-package-smoke(ubuntu): the real systemd install path, and installing the built.debin a systemd container.windows-package-smoke(windows-2025):packaging/windows/test-endpoint-scripts.ps1, then building the MSI and installing it.
The Go jobs build the embedded hooks binary first (make build-hooks-current); cli/beacon tests
fail against the placeholder because InstallFactory requires a real binary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

