Agent beacon

From akillness/jeo-skills · View interactive version

Agent beacon is an AI agent skill from the GitHub repository akillness/jeo-skills. Operate Asymptote-Labs/agent-beacon, the cross-harness coding-agent session history and self-improving memory layer. Use when users name Agent Beacon, beacon.sh, Beacon endpoint capture, trace replay, lenses, memory recall/distillation/promotion, or its CLI/MCP integration. Route setup, local/cloud

How to use this skill

Skill file

Agent Beacon

When to use this skill

Safety and approval gates

Instructions

  1. Pin and preflight offline. Verify the source pin and selected public-file hashes before runtime work:

```bash

python3 .agent-skills/agent-beacon/scripts/preflight.py --repo /absolute/path/to/upstream --json

```

From an installed skill root use python3 scripts/preflight.py --repo /absolute/path/to/upstream --json. --repo is an explicit absolute, non-symlink directory. With --repo, exit 0 means every listed file was inspected and its bytes matched; 1 means a listed file is missing or mismatched; 2 means invalid, unsafe, or unreadable input. With no --repo, it only discovers python3 and validates the local manifest and may exit 0 with source_checked: false.

  1. Inspect the intended mode and data. Decide whether the user needs local observation, local capture, Cloud forwarding, memory review, a lens, a handoff, sharing, or MCP. Identify the exact runtime log/session store, project, harness, destination, and data class. Do not broaden a local request into a Cloud request.
  2. Check the installed surface only after approval. Use the installed binary's own help (beacon --help, beacon endpoint --help, or the relevant subcommand) for exact flags. The pinned source requires Go 1.27.0 and toolchain go1.27.2 for source builds; do not infer build or runtime readiness from that requirement.
  3. Choose local-only observation first. beacon endpoint status --json reports local configuration, collector/service state, harnesses, diagnostics and destination status; it is observational, not runtime proof. beacon endpoint traces list and search and show read local JSONL/history and do not contact the network. beacon endpoint traces reindex is different: it creates or updates the opt-in history.db and may retention-prune, so treat it as a mutating local-history operation requiring explicit approval. beacon handoff list --json and beacon handoff export <session-id> --print read local session stores/logs; resume --print --json prints a plan without launching.
  4. Install or repair only with approval. beacon endpoint install --dry-run prints planned endpoint actions without changing endpoint files/services. After approval, beacon endpoint install may write collector/runtime/harness settings and start launchd, systemd, or a supervised collector. --no-start writes without starting; --harness can constrain discovery; --no-backfill (or BEACON_BACKFILL=0) skips the local session backfill. beacon endpoint repair is also mutating.
  5. Select the destination explicitly. Interactive setup preselects Beacon Cloud and offers Local as an explicit opt-out; signing in alone forwards nothing. Cloud forwarding is opt-in and revocable. beacon endpoint connect has no documented dry-run flag: inspect status first, then approve the real connect (or use --no-backfill) because it can write device credentials/config, stage a bounded last-30-day backfill, and start a forwarder. Choose --privacy-mode standard|metadata-only deliberately: metadata-only omits prompts, responses/reasoning, tool arguments/results, command output, diffs and raw payloads, but still exposes structured metadata such as command lines, file paths, tool/MCP names, ids, hashes and token usage. beacon endpoint disconnect stops local forwarding and by default removes the local enrollment/device key; use --keep-credentials only after deciding to retain those credentials for reuse. Neither disconnect nor uninstall revokes the server-side device; revoke that separately from the dashboard.
  6. Read traces locally. Use the stable scripting commands rather than starting a dashboard:

```bash

beacon endpoint traces list --limit 20

beacon endpoint traces search "npm install" --result-level event

beacon endpoint traces show <trace-id> --around-event 42 --before 5 --after 10

```

The local history database is opt-in and contains retained, redacted trace content. beacon endpoint traces reset deletes it. Preserve logs intentionally before removal with --keep-logs on uninstall.

  1. Review and promote memory deliberately. Preview without a network request:

```bash

beacon memory evaluations run --dry-run --limit 10

beacon memory list --json

beacon memory candidates list

beacon memory candidates show <candidate-id>

beacon memory skills preview <candidate-id>

```

After reading the source trace, distill a lesson into a candidate and promote it only after review:

```bash

beacon memory candidates create --trace <trace-id> --kind gotcha --title "<lesson>" --body-file lesson.md

beacon memory candidates approve <candidate-id> --reason "reviewed"

beacon memory list --json

```

Candidate creation/approval/rejection/supersession are review steps scoped to the project; use candidates reject or candidates supersede when review closes that way. A non-dry-run beacon memory evaluations run can call Jev or SubQ and requires separate approval for the provider, endpoint, cost and data; never infer authorization from a configured endpoint. beacon memory skills install <candidate-id> writes .agents/skills/<slug>/SKILL.md; preview first and approve the write.

  1. Use lenses as untrusted trace viewers. Lenses are local HTML files, but they see the full trace content shown to them. Lint before install:

```bash

beacon lenses lint ./view.lens.html --strict --json

beacon lenses preview ./view.lens.html --session <id>

```

preview runs a loopback server (default 127.0.0.1:8766) until stopped; nothing is installed. beacon lenses add asks for confirmation; use --yes only after approving that lens's code and trace access. The sandbox blocks ordinary network APIs but cannot guarantee against every browser exfiltration path.

  1. Preview sharing, then upload only on approval. beacon share --print (equivalent to --dry-run) prints the exact payload and sends nothing:

```bash

beacon share --current --print

beacon share --list --limit 20

```

Read the payload for secrets. A real beacon share uploads to the configured Beacon API; default visibility is direct, a bearer link viewable by anyone who has it (not listed), while private and public are explicit choices. Warn before handling or distributing any link; public sharing requires confirmation or --yes. Cloud Metadata-only mode constrains share content to the same metadata boundary. refresh, --follow, auto-share and git sharing are additional upload paths and need their own approval.

  1. Connect MCP deliberately. beacon mcp connect --dry-run previews harness config changes; a real connect edits detected harness files, keeps backups and records what it wrote. OAuth is the default; token mode references an environment variable and does not write the token. A Cloud OAuth connection with write access can share sessions, publish lenses, submit finding feedback, and create/review memory candidates; personal tokens are read-only. Approving integration is not blanket approval for those write actions. beacon mcp status is read-only; --check performs a URL check. For local inspection, use:

```bash

beacon mcp serve --transport stdio

beacon mcp serve --transport http --addr 127.0.0.1:8766

```

Never bind local HTTP MCP to a non-loopback interface. Do not confuse local beacon MCP with remote beacon-managed Cloud MCP.

  1. Maintain or remove with retention choices. beacon skills install|uninstall, beacon lenses remove, beacon endpoint disconnect, and beacon endpoint uninstall are mutating. Uninstall unloads services and removes managed files; --keep-logs preserves runtime logs/history and --keep-config preserves harness telemetry configuration/enrollment where supported. On macOS system installs, --keep-config also retains /Library/Application Support/Beacon/Forwarders, which may contain S3/GCS/Falcon forwarder credentials. Disconnect deletes local enrollment/device credentials by default; --keep-credentials retains them for reuse. Neither local uninstall nor disconnect revokes a server-side device; report that separate action.

Examples

Inspect local activity without starting a service

beacon endpoint status --json
beacon endpoint traces list --limit 20

Preview a share before upload

beacon share --current --print

Read the payload, confirm the destination and visibility, then obtain approval before rerunning the share without --print.

Best practices

Completion evidence

Report the selected mode (offline-selected-files, local CLI, local stdio/loopback MCP, Cloud-forwarding preview, or approved upload), exact pinned source files/evidence consumed, approvals and destinations crossed, and observed output. Say explicitly when no runtime was executed. A matching selected-file hash, tool presence, status output, or source inspection never proves runtime readiness, complete-revision integrity, privacy, or security.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.