agent-beacon: Instructions file for Claude Code

CLAUDE.md

agent-beacon CLAUDE.md is an instructions file for Claude Code from Asymptote-Labs/agent-beacon. It costs 9,221 tokens per session, scanned D, original, MIT.

Project guidance for Beacon, a local-only tool that collects activity from AI runtimes and exports telemetry. Telemetry is recorded information about what a program or service is doing.

In plain words
What is it for?
Use it to work on the command-line agent, runtime hooks, OpenTelemetry collector, JavaScript SDK, browser extension, and packaging files.
Why use it?
It defines the supported code paths and keeps changes aligned with Beacon’s local-only purpose instead of turning it into a hosted policy or endpoint-protection service.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

This is Asymptote-Labs/agent-beacon's own configuration. It tells Claude Code how to work on agent-beacon itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-beacon configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../cline-beacon && bun run check && bun test.

Reuse

Borrowing it

Nothing to install: this file belongs to Asymptote-Labs/agent-beacon. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Asymptote-Labs/agent-beacon/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Asymptote-Labs/agent-beacon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-beacon CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/asymptote-labs/agent-beacon/claude-md/github.svg)](https://agentmods.dev/instructions/asymptote-labs/agent-beacon/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/asymptote-labs/agent-beacon/claude-md"><img src="https://agentmods.dev/badge/instructions/asymptote-labs/agent-beacon/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-beacon CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/asymptote-labs/agent-beacon/claude-md"><img src="https://agentmods.dev/badge/instructions/asymptote-labs/agent-beacon/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9,221 This file is loaded in full into every session.
When invoked 9,221 The same file — it is already loaded in full.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.09221 $0.09221
Opus 5 $0.04611 $0.04611
Sonnet 5 $0.01844 $0.01844
Haiku 4.5 $0.00922 $0.00922

Measured yesterday against content hash 91eda227346c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade D, and why

agent-beacon CLAUDE.md scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo /opt/beacon/bin/beacon endpoint update --apply

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .tmp/release-<tag>
CLAUDE.md · 481 lines

How it starts

The opening of the file, as written. The whole thing — 481 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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: public beacon CLI 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 Chrome MV3 collector that relays Claude.ai and ChatGPT chat telemetry into the local pipeline as OTLP.
  • packaging: macOS packaging and deployment assets.

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.
  • Asymptote Managed forwarding (cli/beacon/internal/endpoint/asymptote, beacon endpoint asymptote) is the one destination that sends telemetry to an Asymptote-run service, and it is an explicit, opt-in, revocable Vector destination shaped like every other pack: Beacon stays the local JSONL producer, Vector does the network, and the per-device key lives in a 0600 secrets file read through Vector's secret backend, never in config.json, vector.toml, or the process environment. Nothing is forwarded until a member of the organization approves the specific device in the browser; only lines written after that are shipped (read_from = "end"); revocation from the dashboard takes effect at the ingest service within a minute. The wire contract (gzip NDJSON to /v1/ingest/{runtime,inventory}, bearer bcn_device_* key, /v1/ingest/health credential check) is owned by the beacon-ingest service in beacon-mdr; change both sides together. Do not add a second network channel, and do not let the ingest URL be anything but https://.
  • Two bounded network channels exist, both explicit. The first: beacon endpoint install asks for an email and work/personal intent once per machine and POSTs that plus install context (OS, arch, version, install method, detected runtime names, a random install ID) to an Asymptote-run signup endpoint. The same first-run prompt ends with a telemetry destination question (arrow-key picker, local first so Enter forwards nothing): keep it local, forward to the user's own infrastructure (prints the log-forwarding docs URL, nothing else changes), or forward to Asymptote Managed. BEACON_MANAGED_INGEST=0 hides the Asymptote row; install --connect skips the question and connects. Local and own-infrastructure answers are recorded in the profile and never asked again; the Asymptote answer runs connect after the install, is recorded only once that connect succeeds so a failed install or connect is asked again rather than remembered as done, and is the only way onboarding ever forwards telemetry. The answer is never sent. The second channel is that forwarder, described below. This is intentional product behavior for open-source attribution, not an oversight — do not remove it. It is strictly bounded: interactive TTY only, once per machine, never during hook execution, never on --system/root/CI/piped-stdin/--dry-run installs, and always skippable with BEACON_ONBOARDING=0. A failed submission never fails an install. No prompt text, telemetry event, file content, or command ever leaves the machine through it. Implementation lives in cli/beacon/internal/onboarding and cli/beacon/cmd/endpoint_onboarding.go; the README documents the payload field-by-field, so changing the fields means changing that table too.
  • 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 direct destination support scoped to local JSONL/Wazuh unless explicitly requested. Elastic support is a file-tailing pack over local JSONL; Beacon itself must not store Elastic credentials or require a hosted Elastic dependency.
  • 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/observe endpoint as an opt-in cloud SDK contract. Beacon endpoint execution stays local-only/no-network.

Read the full file on GitHub · 481 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines · +611 tokens per session 91eda227346c
  2. 2d ago Changed · +2 lines · +714 tokens per session 7f6e318d0821
  3. 3d ago Changed · +25 lines · +1,091 tokens per session ff017430e265
  4. 6d ago Changed · +12 lines · +651 tokens per session 32a343ef7496
  5. 9d ago First seen · 441 lines · 6,154 tokens per session scan D 3ef3ce5f19cf

Subscribe to this mod's changes

agent-beacon CLAUDE.md is an instructions file published in the GitHub repository Asymptote-Labs/agent-beacon (332 stars, last pushed yesterday), licensed MIT. It adds 9,221 tokens to every session, about $0.0461 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens