The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
add docs
Justin D'Souzaeb433133135a
diff --git a/docs/LICENSE b/docs/LICENSEnew file mode 100644index 00000000..54113742--- /dev/null+++ b/docs/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2023 Mintlify++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.\ No newline at end of filediff --git a/docs/README.md b/docs/README.mdnew file mode 100644index 00000000..055c983a--- /dev/null+++ b/docs/README.md@@ -0,0 +1,43 @@+# Mintlify Starter Kit++Use the starter kit to get your docs deployed and ready to customize.++Click the green **Use this template** button at the top of this repo to copy the Mintlify starter kit. The starter kit contains examples with++- Guide pages+- Navigation+- Customizations+- API reference pages+- Use of popular components++**[Follow the full quickstart guide](https://starter.mintlify.com/quickstart)**++## Development++Install the [Mintlify CLI](https://www.npmjs.com/package/mint) to preview your documentation changes locally. To install, use the following command:++```+npm i -g mint+```++Run the following command at the root of your documentation, where your `docs.json` is located:++```+mint dev+```++View your local preview at `http://localhost:3000`.++## Publishing changes++Install our GitHub app from your [dashboard](https://dashboard.mintlify.com/settings/organization/github-app) to propagate changes from your repo to your deployment. Changes are deployed to production automatically after pushing to the default branch.++## Need help?++### Troubleshooting++- If your dev environment isn't running: Run `mint update` to ensure you have the most recent version of the CLI.+- If a page loads as a 404: Make sure you are running in a folder with a valid `docs.json`.++### Resources+- [Mintlify documentation](https://mintlify.com/docs)diff --git a/docs/architecture/architecture.mdx b/docs/architecture/architecture.mdxnew file mode 100644index 00000000..0e54e42d--- /dev/null+++ b/docs/architecture/architecture.mdx@@ -0,0 +1,82 @@+---+title: "Open Source Architecture"+description: "How Beacon collects, normalizes, stores, and forwards agent harness telemetry across supported runtime surfaces"+---++## Overview++Agent Beacon is the open-source telemetry layer for AI agents wherever they run: locally, in CI, or in the cloud. Supported [agent harnesses](/runtimes) emit activity through [OpenTelemetry](/concepts/core-concepts#otlp), native [hook](/concepts/core-concepts#hooks) payloads, CI wrappers, cloud sandbox hooks, or SDK instrumentation. Beacon collects those runtime-specific signals and normalizes them into a shared event model for inspection, retention, and customer-controlled forwarding.++The endpoint architecture is local-first: local endpoint telemetry can be inspected and forwarded without sending it to a hosted Beacon backend. CI and cloud-agent paths use the same normalized event model through surface-specific setup paths rather than a persistent endpoint service.++<img src="/images/beacon-architecture.png" alt="Beacon endpoint architecture showing agent harnesses sending local OTLP or hook telemetry into Beacon collection and normalization, then writing endpoint JSONL for local dashboard, Wazuh, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, Microsoft Sentinel, AWS S3, Google Cloud Storage, optional Splunk HEC and Falcon LogScale HEC export, and customer-managed forwarding." />++## Endpoint Architecture++1. **Runtime surfaces:** Supported [agent harnesses](/runtimes) expose different [telemetry surfaces](/concepts/core-concepts#runtime-surface). Beacon uses the strongest surface available for each runtime instead of forcing every tool through one adapter.+2. **Local collection:** Beacon receives OTLP gRPC, OTLP HTTP, or native hook payloads on the endpoint, depending on the runtime.+3. **Normalization:** Logs, traces, metrics, resource attributes, and hook payloads are mapped into one endpoint event model with consistent event, endpoint, harness, session, tool, command, file, approval, policy, content, and destination context.+4. **Local storage and inspection:** Beacon writes one JSON object per line to `runtime.jsonl`. The local [dashboard](/cli/dashboard) reads recent runtime logs over a loopback-only service for rollout validation and investigation.+5. **Forwarding:** External SIEM, log, and storage destinations consume the same normalized JSONL stream, or receive events directly from optional collector exporters.++## End-to-End Flow++1. A supported runtime emits activity through OTLP or hooks.+2. Beacon receives the signal locally and attaches endpoint and harness context.+3. Beacon normalizes runtime-specific payloads into the endpoint event schema.+4. Beacon writes the event to the active `runtime.jsonl` file.+5. Operators inspect local activity in the dashboard or forward the JSONL stream to their security stack.++For CI and cloud-agent setup paths, see the [runtime surface overview](/runtimes), [`beacon ci`](/cli/ci), [`beacon cloud`](/cli/cloud), and [Asymptote Observe SDK](/sdk).++## Architecture Details++Beacon writes an OpenTelemetry Collector configuration with localhost receivers:++| Receiver | Default endpoint |+|----------|------------------|+| OTLP gRPC | `127.0.0.1:4317` |+| OTLP HTTP | `127.0.0.1:4318` |++On macOS, the collector runs under `launchd` in [user mode or system mode](/concepts/core-concepts#user-mode-and-system-mode).++- The generated pipeline receives logs, traces, and metrics locally.+- It batches data, applies memory limits, and exports normalized Beacon events through the `beaconjson` exporter.+- Packaged deployments use the bundled Beacon collector distribution.+- Local installs can point at another `beacon-otelcol` binary with `--collector`.++`runtime.jsonl` is the stable handoff boundary.++- Beacon rotates the active file at 10 MiB and keeps five numbered local archives.+- Most downstream integrations read from that preserved JSONL output so the local audit trail stays intact.+- See [SIEM forwarding](/log-forwarding) for destination-specific forwarding options and setup.++### Vector forwarding++Use Vector when you want a customer-managed host agent to tail `runtime.jsonl` and forward Beacon events without storing destination secrets in Beacon endpoint configuration.++- Beacon remains the local JSONL producer.+- Vector tails the active log path, checkpoints offsets, batches events, and retries delivery.+- Each JSONL line is parsed back into the original Beacon event so downstream systems receive Beacon's event shape rather than a Vector wrapper.+- See [SIEM forwarding](/log-forwarding) for the supported Vector-based forwarding paths and destination-specific setup.++When Splunk HEC or Falcon LogScale HEC is configured, the collector can also send logs, traces, and metrics directly to that exporter while preserving the local log.++Beacon filters generic process and runtime OTLP metrics from the JSONL log by default so timelines stay focused on prompts, tools, approvals, and file activity. Use `--include-runtime-metrics` when low-level process, runtime, or harness metrics are required.++## Related++<Columns cols={2}>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Beacon discovers and configures supported agent harnesses.+ </Card>+ <Card title="Data flow and threat model" icon="shield-halved" href="/security/data-flow-threat-model">+ Review the security boundaries, local collection path, and optional forwarding behavior.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL event fields.+ </Card>+ <Card title="SIEM forwarding" icon="tower-broadcast" href="/log-forwarding">+ Configure forwarding to SIEM, log aggregation, and storage destinations.+ </Card>+</Columns>diff --git a/docs/architecture/managed-architecture.mdx b/docs/architecture/managed-architecture.mdxnew file mode 100644index 00000000..2c740c6a--- /dev/null+++ b/docs/architecture/managed-architecture.mdx@@ -0,0 +1,48 @@+---+title: "Managed Architecture"+description: "How Asymptote Managed centralizes agent telemetry, policy, detections, and investigations"+---++## Overview++Asymptote Managed builds on the open-source Agent Beacon foundation with hosted ingest, retention, search, detections, policy controls, identity mapping, approvals, and investigation workflows.++Use this architecture when agent activity needs to be visible across teams, endpoints, cloud agent applications, and security workflows from one managed control plane.++<img src="/images/asymptote-platform-diagram.png" alt="Asymptote platform architecture showing agent activity flowing into managed visibility, policy, and investigation workflows." />++## System Architecture++1. **Agent activity sources:** Endpoint agent harnesses, cloud-hosted agent applications, services, workers, serverless functions, and other execution environments produce runtime telemetry.+2. **Collection paths:** Agent Beacon collects local endpoint activity, while the Asymptote Observe SDK instruments cloud-hosted agent applications.+3. **Managed ingest:** Asymptote centralizes telemetry for managed retention, search, detections, and fleet-wide visibility.+4. **Governance layer:** Policy controls, identity mapping, approvals, SSO, RBAC, and audit trails connect runtime activity to users, teams, and security workflows.+5. **Investigation workflows:** Timelines and case workflows organize prompts, tool calls, file access, command execution, and related context for review.++## Managed Capabilities++| Capability | Purpose |+| --- | --- |+| Managed ingest and retention | Centralize runtime telemetry and preserve it according to managed retention policy |+| Fleet-wide visibility | Track agent harnesses, endpoints, users, teams, and cloud execution environments |+| Search and detections | Find risky activity and surface detection signals across the managed dataset |+| Policy and approvals | Govern agent actions and connect approvals back to identity and workflow context |+| Investigation timelines | Reconstruct agent sessions from prompts, tool calls, files, commands, and outcomes |+| Access control | Use SSO, RBAC, and audit trails for enterprise access governance |++## Related++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ Review the local-first Agent Beacon architecture.+ </Card>+ <Card title="Asymptote Managed" icon="key" href="/deployment/managed">+ Review managed ingest, governance, investigations, and rollout support.+ </Card>+ <Card title="Asymptote Observe SDK" icon="code" href="/sdk/quickstart">+ Instrument cloud-hosted agent applications with Asymptote telemetry.+ </Card>+ <Card title="Hosting Options" icon="cloud" href="/deployment/hosting-options">+ Compare Open Source, Managed, and Private Deployment paths.+ </Card>+</Columns>diff --git a/docs/architecture/system-architecture.mdx b/docs/architecture/system-architecture.mdxnew file mode 100644index 00000000..534f9d92--- /dev/null+++ b/docs/architecture/system-architecture.mdx@@ -0,0 +1,33 @@+---+title: "System Architecture"+description: "Compare the open-source Agent Beacon architecture with the managed Asymptote platform architecture"+---++Asymptote supports two architecture paths: the open-source Agent Beacon architecture for supported local, CI, and cloud telemetry paths, and the managed Asymptote architecture for centralized visibility, governance, detections, and investigations.++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ See how Agent Beacon collects, normalizes, stores, and forwards agent harness telemetry across supported runtime surfaces.+ </Card>+ <Card title="Managed Architecture" icon="cloud" href="/architecture/managed-architecture">+ See how Asymptote Managed centralizes telemetry, policy, detections, and investigation workflows.+ </Card>+</Columns>++## Choose An Architecture++| Architecture | Use when |+| --- | --- |+| Open Source Architecture | You want open-source telemetry for supported local, CI, and cloud agent surfaces, with customer-controlled records and forwarding. |+| Managed Architecture | You want managed ingest, retention, search, detections, fleet visibility, policy controls, identity mapping, approvals, SSO, RBAC, audit trails, and investigation workflows. |++## Related++<Columns cols={2}>+ <Card title="Hosting Options" icon="cloud" href="/deployment/hosting-options">+ Choose between Open Source, Managed, and Private Deployment paths.+ </Card>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts">+ Review the concepts used across Asymptote and Agent Beacon docs.+ </Card>+</Columns>diff --git a/docs/blog/agent-visibility-beyond-the-endpoint.mdx b/docs/blog/agent-visibility-beyond-the-endpoint.mdxnew file mode 100644index 00000000..e7784168--- /dev/null+++ b/docs/blog/agent-visibility-beyond-the-endpoint.mdx@@ -0,0 +1,4 @@+---+title: "Agent Visibility Beyond the Endpoint"+url: "https://justindsouza.substack.com/p/agent-visibility-beyond-the-endpoint"+---diff --git a/docs/blog/enterprises-are-counting-tokens-because.mdx b/docs/blog/enterprises-are-counting-tokens-because.mdxnew file mode 100644index 00000000..7170711e--- /dev/null+++ b/docs/blog/enterprises-are-counting-tokens-because.mdx@@ -0,0 +1,4 @@+---+title: "Enterprises Are Counting Tokens Because..."+url: "https://justindsouza.substack.com/p/enterprises-are-counting-tokens-because"+---diff --git a/docs/blog/index.mdx b/docs/blog/index.mdxnew file mode 100644index 00000000..1d5dccad--- /dev/null+++ b/docs/blog/index.mdx@@ -0,0 +1,33 @@+---+title: "Asymptote Blog"+description: "Writing from the Asymptote team on building secure, observable AI systems."+---++Browse the latest Asymptote writing below.++<CardGroup cols={2}>+ <Card+ title="Introducing Beacon Endpoint Telemetry"+ icon="satellite-dish"+ img="https://substackcdn.com/image/fetch/$s_!j9gN!,w_1200,h_675,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ca5d88a-1ba5-4bc5-801d-c59353bbffae_1574x1370.png"+ href="https://justindsouza.substack.com/p/introducing-beacon-endpoint-telemetry"+ >+ An introduction to Beacon's endpoint telemetry model and why local-first agent visibility matters.+ </Card>+ <Card+ title="Enterprises Are Counting Tokens Because..."+ icon="coins"+ img="https://substackcdn.com/image/fetch/$s_!vRqJ!,w_1200,h_675,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1a5380fc-c481-43a5-9439-ca479f23b9a6_1440x796.png"+ href="https://justindsouza.substack.com/p/enterprises-are-counting-tokens-because"+ >+ A short take on why token accounting has become an enterprise operating concern.+ </Card>+ <Card+ title="Agent Visibility Beyond the Endpoint"+ icon="binoculars"+ img="https://substackcdn.com/image/fetch/$s_!4cvt!,w_1200,h_675,c_fill,f_jpg,q_auto:good,fl_progressive:steep,g_auto/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff61aff23-e952-4245-ad16-d6f68be74975_1664x1108.png"+ href="https://justindsouza.substack.com/p/agent-visibility-beyond-the-endpoint"+ >+ A look at broader agent visibility beyond single-endpoint instrumentation alone.+ </Card>+</CardGroup>diff --git a/docs/blog/introducing-beacon-endpoint-telemetry.mdx b/docs/blog/introducing-beacon-endpoint-telemetry.mdxnew file mode 100644index 00000000..d2b734db--- /dev/null+++ b/docs/blog/introducing-beacon-endpoint-telemetry.mdx@@ -0,0 +1,4 @@+---+title: "Introducing Beacon Endpoint Telemetry"+url: "https://justindsouza.substack.com/p/introducing-beacon-endpoint-telemetry"+---diff --git a/docs/changelog/cli.mdx b/docs/changelog/cli.mdxnew file mode 100644index 00000000..e289984e--- /dev/null+++ b/docs/changelog/cli.mdx@@ -0,0 +1,441 @@+---+title: Agent Beacon CLI Changelog+description: Latest updates and improvements to the Agent Beacon CLI+---++## Latest updates++Stay up to date with the latest changes to the Agent Beacon CLI.++---++## June 2026++### v0.0.66 · June 13, 2026++- **Dashboard routing fixes** · Fixed local dashboard route handling so Log Search, Security Overview, Detections, Findings, and inventory views resolve reliably from the loopback dashboard.+- **Dedicated dashboard inventory** · Split agent inventory into its own dashboard area so runtime coverage, MCP server context, and telemetry state are easier to inspect separately from the Security Overview.+- **Threat-rule pack guidance** · Release notes now point operators at the versioned `threat-rules.tar.gz` asset for installing the full rule pack with `beacon rules pull`.++### v0.0.65 · June 13, 2026++- **Dashboard route reliability** · Continued dashboard routing fixes for the new detections, findings, and inventory screens.+- **Rule-pack release asset guidance** · Kept the published release notes aligned with the versioned `threat-rules.tar.gz` rule-pack asset.++### v0.0.64 · June 13, 2026++- **Rule-pack archive cleanup** · Ignored macOS metadata files when installing packaged threat rules, so Finder-created archive entries do not appear as rule-pack content.+- **Rule-pack release asset guidance** · Kept the full threat-rule pack available as the release-attached `threat-rules.tar.gz` archive.++### v0.0.63 · June 13, 2026++- **Comprehensive threat-rule pack** · Added the first full threat-rule pack, ported from BlastRadius-style detections, with coverage for risky agent behavior beyond the small built-in baseline.+- **Additional rule coverage** · Added invisible-character and shell-escape detection rules from ATR review.+- **External rule-pack distribution** · Ships the full threat-rule pack as a release asset instead of embedding it in the Beacon binary, so operators explicitly install it with `beacon rules pull`.++### v0.0.62 · June 13, 2026++- **Dashboard detections view** · Added a local dashboard Detections screen for browsing the active threat-rule set from the endpoint rule store or built-in baseline without using the CLI.+- **Dashboard findings view** · Added a local dashboard Findings screen that runs the active rules over the configured runtime log on demand, with severity and session filtering for focused investigations.+- **Read-only local investigation** · Dashboard detection and finding APIs mirror `beacon scan` behavior while staying offline, loopback-only, and read-only against local endpoint telemetry.+- **Finding ordering and severity helpers** · Shared severity ranking, filtering, fail-threshold counting, and stable finding sorting between `beacon scan` and the dashboard.++### v0.0.61 · June 13, 2026++- **Local threat scanning** · Added `beacon scan` to run threat-detection rules over local endpoint telemetry without network access, with JSON output, session filtering, severity filtering, and CI-friendly `--fail-on` exit behavior.+- **Threat rule management** · Added `beacon rules` for listing active rules, installing local `.rule.yaml` files, explicitly pulling rule packs, linting rules, and printing event fields available to CEL match expressions.+- **Open YAML rule format** · Added a versioned threat-rule format with CEL expressions over Beacon endpoint events, single-event and session-correlated detections, severity/status metadata, and embedded conformance fixtures.+- **Rule-pack hardening** · Hardened rule-pack extraction and install paths against archive path traversal while preserving nested rule-pack layouts.++### v0.0.60 · June 13, 2026++- **Codex token attribution** · `beacon endpoint tokens` and the dashboard token view now report Codex CLI token usage. `beacon endpoint install` configures the Codex metrics exporter, and the collector normalizes Codex's `codex.turn.token_usage` metric into the canonical `gen_ai.usage` representation alongside other runtimes.+- **Disjoint Codex cache accounting** · Codex reports prompt tokens inclusive of the cached portion. Beacon subtracts cached input so `input_tokens` and `cache_read` stay disjoint and totals are not double-counted.+- **Codex attribution limits** · Codex emits no cost signal and no conversation id on its usage metric, so `cost_usd` and per-session attribution are unavailable for Codex. Model, harness, repository, and run attribution are supported.++### v0.0.59 · June 13, 2026++- **Managed ingest commands** · Added `beacon ingest` commands for checking managed ingest status and uploading endpoint telemetry to configured Asymptote Managed destinations.+- **Endpoint token reporting** · Added `beacon endpoint tokens` for local token, cost, model, session, run, harness, and repository attribution from Beacon runtime logs.+- **Token attribution fixes** · Improved token usage normalization for Claude Code telemetry, cumulative metric batches, composite run IDs, and SDK session attributes.++### v0.0.58 · June 13, 2026++- **Token usage foundation** · Added token usage aggregation, dashboard token views, and trace identity fields so endpoint activity can report usage and cost consistently.+- **Managed ingest support** · Added the endpoint ingest plumbing that lets authenticated Beacon clients upload endpoint telemetry to Asymptote Managed when configured.+- **Telemetry schema updates** · Added trace identity, usage cost, and int64 token count fields while preserving local runtime log workflows.++### v0.0.57 · June 11, 2026++- **Beacon dashboard login** · Added `beacon login` so the Beacon CLI can authenticate with the Asymptote dashboard through a browser-based flow.+- **Credential replacement controls** · `beacon login --force` lets operators replace saved credentials when switching users or organizations.+- **Dashboard URL configuration** · Login can target a custom dashboard URL with `--dashboard-url` or `BEACON_DASHBOARD_URL`, while endpoint telemetry remains local-only unless cloud features are explicitly used.++### v0.0.56 · June 10, 2026++- **Cursor Cloud committed hooks** · Cursor Cloud telemetry now expects project hooks to be committed in `.cursor/hooks.json` before the agent starts; `beacon cloud cursor print-hooks` is the supported way to generate that file.+- **Binary-only Cursor setup** · `beacon cloud cursor print-setup` now installs Beacon binaries in the sandbox without mutating `.cursor/hooks.json`, and the removed `beacon cloud cursor install-hooks` command is no longer part of the cloud flow.+- **Cursor cloud reliability** · Generated Cursor Cloud hooks avoid broad `preToolUse` matchers and rely on Cursor's supported project hook surfaces for file, shell, tool-failure, subagent, and compaction events.++### v0.0.55 · June 10, 2026++- **Cursor Cloud run IDs** · Cursor Cloud telemetry uses Cursor's `conversation_id` as the default `run.run_id` when `BEACON_RUN_ID` is not set, so GCS object paths line up with the Cursor cloud conversation.+- **Lower-noise Cursor Cloud events** · Reduced duplicate read and shell telemetry where Cursor exposes both generic and specific hook surfaces.++### v0.0.54 · June 10, 2026++- **Cloud upload run IDs** · Cloud-agent GCS uploads now wait for a real provider run ID, such as Claude's `CLAUDE_CODE_REMOTE_SESSION_ID`, instead of creating fallback `manual-*` upload folders from early hook processes.+- **Cleaner cloud traces** · Claude Code cloud sessions now keep GCS object paths and event metadata aligned under the provider session ID.++### v0.0.53 · June 10, 2026++- **Cursor configuration support** · Added Cursor cloud-agent configuration updates used by the generated cloud setup and hook workflows.+- **Cursor hook safe mode** · Added safer Cursor hook behavior for cloud and project-hook telemetry setup.+- **README support matrices** · Updated upstream README guidance with CI and cloud-agent support matrices and refreshed links.++### v0.0.52 · June 10, 2026++- **Cursor Cloud Agents** · Added Cursor cloud agent telemetry support through sandbox-local Beacon hooks and per-session GCS upload.+- **Cursor cloud CLI helpers** · Added `beacon cloud cursor print-setup`, `beacon cloud cursor print-hooks`, and `beacon cloud cursor install-hooks` for generated setup scripts and project-level `.cursor/hooks.json` management.+- **Cursor telemetry fixes** · Fixed duplicate Cursor shell command events, preserved cloud uploads after edit failures, and improved Cursor session and subagent metadata handling.++### v0.0.51 · June 10, 2026++- **Cloud agent telemetry preview** · Added `beacon cloud` helpers for Claude Code Cloud Agents, including generated cloud setup scripts and sandbox-local hook configuration.+- **GCS upload for cloud sessions** · Claude Code cloud agent sessions can write Beacon `runtime.jsonl` in the cloud sandbox and upload one readable per-session object to customer-managed Google Cloud Storage.+- **Standalone hook packaging** · Release archives and Homebrew installs now include `beacon-hooks` alongside `beacon` and `beacon-otelcol` so cloud sandboxes can install hook telemetry without extracting embedded binaries.++### v0.0.50 · June 9, 2026++- **CI session mode** · Added `beacon ci start` and `beacon ci finish` so Beacon can capture telemetry around multi-step CI workflows and third-party agent actions, not just a single child command.+- **Codex CI telemetry** · Added Codex CI setup through a generated `CODEX_HOME`, enabling OpenAI Codex Action and other local Codex CI steps to export telemetry to Beacon's ephemeral collector.+- **CI run normalization** · Promoted GitHub Actions run context to top-level `origin` and `run` fields in CI JSONL, including decoded PR, repository, workflow, and branch metadata.++### v0.0.49 · June 8, 2026++- **CrowdStrike Falcon Vector forwarding** · Added `beacon endpoint falcon` content-pack commands for forwarding Beacon `runtime.jsonl` events to CrowdStrike Falcon HEC with Vector.+- **Hook-only Claude forwarding** · Added a managed macOS Vector forwarder for deployments where Claude Code events are written by user-level hooks instead of Beacon's local OTLP collector.+- **Jamf deployment helpers** · Added packaged Jamf scripts and inventory checks to install, repair, and monitor the Falcon Vector forwarder while keeping HEC tokens in a root-owned env file.++### v0.0.48 · June 8, 2026++- **OpenTelemetry GenAI schema support** · Beacon now preserves standard `gen_ai` request, response, usage, tool, retrieval, evaluation, message, provider, workflow, and system-instruction metadata in endpoint events.+- **Observe package rename** · Renamed the shared schema package from Asymptote Trace to Asymptote Observe while preserving the public Beacon event schema version.+- **Content handling fixes** · Improved prompt detection for empty GenAI input messages and kept `content.retention` validation backward compatible while using `content.truncated` for truncation display where available.++### v0.0.47 · June 8, 2026++- **Content handling simplification** · Deprecated the legacy content-retention flag and removed stale `content_retention` references from dashboard, Sentinel, generated pack, and packaging paths.+- **Telemetry sample upload** · Added sample upload coverage for Beacon telemetry handoff workflows.+- **Release cleanup** · Removed obsolete retention plumbing from endpoint configuration, generated assets, and MDM inventory helpers so docs and package behavior match the current full-content-with-redaction posture.++### v0.0.46 · June 7, 2026++- **CI telemetry release polish** · Continued the Agent Beacon CI telemetry release line for Claude Code telemetry captured to Beacon JSONL, workflow artifacts, and customer-managed destinations.++### v0.0.45 · June 7, 2026++- **Agent Beacon CI Telemetry** · Published the CI telemetry release for capturing Claude Code activity to Beacon JSONL, GitHub Actions artifacts, and customer-managed export destinations.+- **Action naming update** · Updated the GitHub Action presentation around Agent Beacon CI Telemetry.++### v0.0.44 · June 7, 2026++- **CI telemetry exports** · `beacon ci exec` can upload completed CI runtime JSONL to Amazon S3 or Google Cloud Storage with repeatable `--upload s3` and `--upload gcs` destinations.+- **GitHub Actions artifact controls** · The Agent Beacon action now exposes `upload`, `upload-artifact`, and `artifact-name` inputs so teams can retain CI telemetry as workflow artifacts or hand it off through object storage.+- **CI export reliability and safety** · CI uploads still run when `--require-telemetry=false` downgrades validation failures, child command exit codes remain authoritative, and common AWS and Google credential variables are stripped from the child agent process during observed runs.++### v0.0.43 · June 5, 2026++- **Doctor auto-remediation** · Added `beacon endpoint doctor --fix` and the top-level `beacon doctor --fix` alias so operators can apply safe fixes after health checks.+- **Resilient collector repair** · Doctor fixes can recreate missing runtime logs and repair macOS collector service files with config validation, readiness checks, and rollback if service repair fails.+- **Clearer health results** · Doctor now prints refreshed results after partial fixes, includes applied and skipped fix details in JSON output, and avoids suggesting automated fixes for unsafe permission or non-macOS service cases.++### v0.0.42 · June 5, 2026++- **AWS CloudWatch Logs forwarding support** · Added `beacon endpoint cloudwatch` commands for generating customer-managed CloudWatch Logs forwarding content over Beacon's local `runtime.jsonl`.+- **CloudWatch content pack** · Added generated setup guidance, a Vector `aws_cloudwatch_logs` forwarding template, and sample events for JSON log events in a customer-managed CloudWatch Logs log group.+- **CloudWatch validation guidance** · Added validation events with `destination.type=cloudwatch` and `destination.mode=aws_cloudwatch_logs`, plus AWS CLI and CloudWatch Logs Insights queries for confirming remote delivery without storing AWS credentials in Beacon endpoint configuration.++### v0.0.41 · June 5, 2026++- **Expanded endpoint inventory** · Beacon inventory now covers a broader set of endpoint configuration signals, including supported agent config files and MCP server configuration context where available.+- **Inventory filtering fixes** · JSON inventory output now applies the same default filtering as human-readable output, so config and MCP server records are omitted unless they are relevant or `--all` is set.+- **Managed-state detection fixes** · Improved Beacon-managed detection for Gemini CLI, VS Code OTLP, GitHub Copilot CLI, and Factory Droid so status and inventory output more accurately reflect customer-managed versus Beacon-managed configuration.++### v0.0.40 · June 5, 2026++- **Hermes Agent support** · Added Hermes Agent as a first-class hook harness with `beacon endpoint hooks install --harness hermes`, `status`, and `uninstall` support through Beacon-managed shell hooks.+- **Hermes telemetry coverage** · Beacon now normalizes Hermes prompts, observed tool calls, command and file activity, approval request and response events, session lifecycle, and subagent stop metadata into local endpoint events.+- **Hermes deployment controls** · Hermes hooks are installed in user-level `~/.hermes/config.yaml`, preserve existing settings and non-Beacon hooks, and document first-use hook consent options for non-interactive runs.+- **CI PR context fix** · CI run metadata now assigns pull request fields only when the GitHub ref shape contains PR context, avoiding incorrect PR numbers on non-PR events.++### v0.0.39 · June 4, 2026++- **Devin Desktop support** · Added Devin Desktop coverage through Beacon's hook adapter using Cascade/Windsurf-compatible hook configuration alongside existing Devin CLI hooks.+- **Runtime support organization** · Split agent harness documentation into coding agent harnesses and knowledge-worker agent harnesses so local coding agents and service or gateway integrations are easier to compare.+- **Output destination organization** · Split forwarding destinations into SIEM, log aggregation, object storage, and local categories, with clearer links for Google Cloud Storage forwarding and customer-managed pipeline guidance.+- **Release workflow polish** · Updated release automation and upstream documentation ordering for the latest Agent Beacon artifacts.++### v0.0.38 · June 3, 2026++- **Google Cloud Storage forwarding support** · Added `beacon endpoint gcs` commands for generating customer-managed GCS forwarding content over Beacon's local `runtime.jsonl`.+- **GCS content pack** · Added generated setup guidance, a Vector `gcp_cloud_storage` forwarding template, one-shot `gcloud storage` or `gsutil` smoke-test script, and sample events for gzip-compressed NDJSON objects with date-partitioned keys.+- **Customer-managed Google Cloud controls** · Kept Google Cloud credentials, service accounts, workload identity, bucket IAM, lifecycle, retention, and encryption settings outside Beacon endpoint configuration.++### v0.0.37 · June 3, 2026++- **AWS S3 forwarding support** · Added `beacon endpoint s3` commands for generating customer-managed AWS S3 forwarding content over Beacon's local `runtime.jsonl`.+- **S3 content pack** · Added generated setup guidance, a Vector `aws_s3` forwarding template, one-shot AWS CLI smoke-test script, and sample events for gzip-compressed NDJSON objects with date-partitioned keys.+- **Community links** · Surfaced the Agent Beacon Discord community link in upstream project documentation.++### v0.0.36 · June 1, 2026++- **Release artifact validation** · Added release checks that build and validate the bundled `beacon-otelcol` collector alongside the CLI.+- **Cross-platform release confidence** · Release validation now covers macOS and Linux archives for `amd64` and `arm64`, confirms each archive contains both `beacon` and `beacon-otelcol`, and smoke-runs the Linux archive.+- **Project documentation polish** · Added upstream README star growth visibility and release automation cleanup.++### v0.0.35 · June 1, 2026++- **Release update checks** · `beacon version check` now checks the latest published Beacon release and prints Homebrew or manual download guidance when an update is available.+- **Claude CI telemetry** · Added `beacon ci exec` and `beacon ci validate` for ephemeral Claude Code telemetry collection in CI without installing a persistent endpoint service or modifying user harness configuration.+- **CI validation reliability** · CI validation now scopes malformed-line checks to the active session window and tightens collector shutdown handling so job artifacts are easier to validate.+- **CLI usage polish** · Root command usage now routes through the Beacon banner output.++## May 2026++### v0.0.34 · May 29, 2026++- **Endpoint repair reliability** · `beacon endpoint repair` now stops the existing collector before reinstalling so unhealthy services can free their ports and complete repair cleanly.+- **Rollback preservation** · If endpoint reinstall fails during repair, Beacon restores the previous endpoint configuration instead of leaving partial rollback state behind.+- **macOS package bootstrap fix** · The package postinstall now handles transient `launchctl bootstrap` failures under `set -e` by checking whether the service is already registered before failing the package install.++### v0.0.33 · May 28, 2026++- **Claude Code hook support** · Added optional Claude Code hook telemetry through `beacon endpoint hooks install --harness claude`, complementing the existing local OTLP setup.+- **Claude hook coverage** · Beacon now records Claude Code session, prompt, pre-tool, post-tool, failed-tool, stop, subagent, permission-request, and session-end events where Claude exposes hook payloads.+- **Settings-safe hook management** · Claude Code hook install and uninstall preserve existing Claude settings and non-Beacon hooks while replacing older Beacon-managed Claude hook entries.++### v0.0.32 · May 27, 2026++- **Microsoft Sentinel support** · Added `beacon endpoint sentinel` commands for forwarding Beacon's local `runtime.jsonl` into Microsoft Sentinel through Azure Monitor Agent custom log collection.+- **Sentinel content pack** · Added generated `table-schema.json`, `dcr-template.json`, `dcr-transform.kql`, starter hunting queries, detection examples, and sample events for the `BeaconRuntime_CL` table.+- **DCR template reliability** · Fixed Sentinel validation messaging, escaped log paths and KQL correctly in the DCR template JSON, and removed duplicate transform rendering in the generated pack.++### v0.0.31 · May 27, 2026++- **VS Code Copilot telemetry** · Added VS Code Copilot Chat support through local OpenTelemetry export to Beacon's endpoint collector with normalized `vscode_copilot` prompt, model, session, and tool events.+- **Low-noise VS Code normalization** · Beacon filters noisy VS Code Copilot chat spans, embeddings, repeated session-start logs, turn summaries, and low-level metrics by default while preserving useful prompt and tool activity.+- **Optional VS Code hooks** · Added preview VS Code hook installation for teams that want extra lifecycle and cross-agent detail when `Chat: Use Hooks` is enabled by their organization.++### v0.0.30 · May 26, 2026++- **Antigravity prompt reliability** · Fixed Antigravity pre-tool handling so `prompt.submitted` is emitted after readable transcript text exists instead of being suppressed when the first pre-tool hook fires before the transcript file is written.+- **Hook release packaging** · Restored the embedded `beacon-hooks` binary in release artifacts so Antigravity hook telemetry remains available after install or upgrade.++### v0.0.29 · May 26, 2026++- **Antigravity CLI hook support** · Added Antigravity CLI endpoint telemetry through Beacon's hook adapter with user-level hooks in `~/.gemini/config/hooks.json` and project-level hooks in `./.agents/hooks.json`.+- **Antigravity event coverage** · Beacon now records Antigravity prompt, pre-tool, post-tool, invocation, stop, command, file edit, and diff telemetry where Antigravity exposes hook payloads.+- **Antigravity telemetry fixes** · Fixed duplicate prompt telemetry in metadata mode, failed edit handling, quoted path parsing, and `edit_file` diff extraction.++### v0.0.28 · May 26, 2026++- **Wazuh dashboard helper** · Added `apply-dashboard-default-columns.sh` to the generated Wazuh content pack so local Wazuh Dashboard validation can show Beacon event action, prompt text, harness, model, repository, command, file, and session fields by default.+- **Wazuh pack coverage** · Updated Wazuh content-pack tests so generated packs include the dashboard helper and avoid unmapped Wazuh display fields.++### v0.0.27 · May 25, 2026++- **CrowdStrike Falcon LogScale HEC forwarding** · Added optional Falcon LogScale HEC forwarding from Beacon's bundled collector while preserving the local `runtime.jsonl` audit log.+- **Falcon endpoint flags** · Added install and repair flags for Falcon HEC endpoint, ingest token, repository, source, parser, TLS verification, and custom CA configuration.+- **Collector packaging fix** · Fixed the Falcon collector exporter module path in the collector builder so release builds include the new Falcon HEC exporter.++### v0.0.26 · May 25, 2026++- **Vector forwarding templates** · Added generated `vector.toml` templates to the Sumo Logic and Rapid7 content packs so teams can run Vector as a customer-managed host agent for Beacon JSONL forwarding.+- **Sumo Logic Vector path** · The Sumo template tails `runtime.jsonl`, parses each Beacon JSON line, and forwards newline-delimited JSON to a Sumo HTTP Logs & Metrics Source with source category, fields, and optional auth-header token settings supplied through Vector.+- **Rapid7 Vector path** · The Rapid7 template tails the same local runtime log, preserves one Beacon event per line, and posts newline-delimited JSON to the Rapid7 InsightIDR Custom Logs webhook while keeping the webhook URL outside Beacon endpoint configuration.++### v0.0.25 · May 24, 2026++- **Rapid7 InsightIDR endpoint integration** · Added `beacon endpoint rapid7` commands for forwarding Beacon's local `runtime.jsonl` into Rapid7 InsightIDR Custom Logs through a webhook event source.+- **Rapid7 content pack** · Added generated setup guidance, a one-shot NDJSON upload smoke-test script, and sample events for managed endpoint deployments.+- **Validation workflow** · Added `beacon endpoint rapid7 validate` so teams can write a known-good Beacon event and verify Rapid7 Log Search ingestion with the expected validation query and fields.++### v0.0.24 · May 24, 2026++- **GitHub Copilot CLI support** · Added Copilot CLI discovery, status reporting, and OTLP span normalization for prompt, session, tool, and approval-like activity when Copilot exports to Beacon's local HTTP collector.+- **MDM-managed Copilot telemetry** · Beacon now validates Copilot CLI telemetry from `COPILOT_OTEL_ENABLED=true` and a localhost OTLP endpoint while making clear that Copilot launch-environment configuration stays under MDM or customer policy control.+- **Quieter operational metrics** · Copilot CLI and OpenClaw operational metrics are filtered from endpoint JSONL by default, with `--include-runtime-metrics` available when teams need low-level metrics for troubleshooting.++### v0.0.23 · May 23, 2026++- **Local MCP server** · Added `beacon mcp serve` and `beacon mcp doctor` so MCP clients can search, summarize, and retrieve compact local Beacon activity from `runtime.jsonl` over stdio or loopback HTTP JSON-RPC.+- **Activity filter fixes** · `list_activity_filters` now scans the full matching activity window for accurate facets, and HTTP MCP activity queries preserve command context.+- **Security and contribution docs** · Added upstream `SECURITY.md` and `CONTRIBUTING.md` guidance covering Beacon's local-only posture, disclosure process, validation commands, and contribution expectations.++### v0.0.22 · May 23, 2026++- **Bounded runtime logs** · Beacon now rotates the active `runtime.jsonl` file at 10 MiB and keeps five numbered local archives, preserving the stable handoff path for dashboards and external shippers.+- **Safer concurrent writes** · Runtime log writers now use a lock file during append and rotation so hook, CLI, and collector writes stay serialized.+- **Dashboard archive lookup fix** · Fixed local dashboard event detail lookup for records stored in rotated archives, including cases where older archive numbers have already been pruned.++### v0.0.21 · May 22, 2026++- **Endpoint health checks** · Fixed `beacon endpoint doctor` and `beacon doctor` so failed health checks return a failing exit code for scripts and MDM validation.+- **Inventory accuracy** · Fixed endpoint inventory config scoping, restored `--all` output for all supported targets, and corrected the `droid` hook alias lookup for Factory Droid inventory.+- **Diagnostics reliability** · Fixed `beacon endpoint test-event` writable-log checks, `beacon endpoint discover --all`, and diagnostics bundle output so missing logs still produce empty summaries without leaking the last raw event.++### v0.0.20 · May 22, 2026++- **Sumo Logic endpoint integration** · Added `beacon endpoint sumo` commands for forwarding Beacon's local `runtime.jsonl` into a Sumo Logic Hosted Collector HTTP Logs & Metrics Source.+- **Sumo Logic content pack** · Added generated setup guidance, a one-shot upload smoke-test script, and sample events for managed endpoint deployments.+- **Sumo smoke-test fix** · Removed an unused argument from the Sumo upload smoke-test template.++### v0.0.19 · May 21, 2026++- **Grok Build hook support** · Added Grok Build endpoint telemetry through Beacon's hook adapter with user-level and project-level managed hook files.+- **Grok event coverage** · Beacon now records Grok session, prompt, pre-tool, post-tool, stop, and session-end activity, including command and file-operation context where Grok exposes it.+- **Grok failure severity fix** · Grok post-tool failures now normalize to `tool.failed` with high severity instead of being logged as successful info-level tool events.++### v0.0.18 · May 20, 2026++- **Datadog endpoint integration** · Added `beacon endpoint datadog` commands for Datadog Agent custom log collection over Beacon's local `runtime.jsonl`.+- **Datadog content pack** · Added generated Datadog Agent `conf.yaml`, setup guidance, and sample events for managed endpoint deployments.+- **Datadog validation event** · Added `beacon endpoint datadog validate` so teams can write a known-good Beacon event and verify Log Explorer ingestion with `service:beacon-endpoint-agent`.++### v0.0.17 · May 20, 2026++- **OpenClaw Gateway support** · Added OpenClaw Gateway endpoint integration commands for printing OTLP/HTTP configuration, checking status, and validating observed events.+- **Gateway telemetry guidance** · Documented OpenClaw's Gateway-configured diagnostics export path alongside other supported runtime surfaces.++### v0.0.16 · May 20, 2026++- **Quieter Codex telemetry** · Beacon now keeps Codex endpoint timelines focused on semantic session, prompt, approval, and tool-result events while suppressing high-volume Codex startup, turn, transport, metric, and duplicate trace records by default.+- **Codex span troubleshooting opt-in** · Added `--include-codex-spans` for `beacon endpoint install` and `beacon endpoint repair` when teams need raw Codex OTLP spans for debugging.+- **Metadata retention fix** · Codex prompt text is no longer copied into the event `message` field when `--content-retention metadata` is configured.+- **Elastic prompt visibility** · The generated Kibana saved search now includes `beacon.prompt.text`, so prompt content is visible in Elastic when retention allows it.++### v0.0.15 · May 20, 2026++- **Devin hook support** · Added Devin hook installation, status, uninstall, discovery, and normalization through the `devin` hook harness.+- **Devin hook paths** · Beacon can manage user-level Devin hooks in `~/.config/devin/config.json` or project-level hooks in `./.devin/hooks.v1.json` while preserving unrelated settings and non-Beacon hooks.+- **Devin event coverage** · Devin hooks cover session start, prompt submission, pre-tool and post-tool activity, permission requests, stop events, session-end events, approvals, and file telemetry where payloads are available.+- **Dependency maintenance** · Updated OpenTelemetry dependencies and removed an unreachable pre-tool observation branch.++### v0.0.14 · May 19, 2026++- **Gemini CLI support** · Added opt-in Gemini CLI local OpenTelemetry configuration through the `gemini` endpoint harness.+- **Gemini discovery and status** · `beacon endpoint discover` and `beacon endpoint status` now report Gemini CLI telemetry state from `~/.gemini/settings.json`.+- **Gemini event normalization** · Beacon normalizes Gemini CLI prompts, tool calls, MCP tool activity, file operations, and approval-related events into the endpoint event schema.+- **Deployment guidance** · MDM deployments can include Gemini CLI by adding `gemini` to the endpoint harness list, for example `claude,codex,gemini`.++### v0.0.13 · May 18, 2026++- **Collector startup fix** · Beacon now omits the `include_runtime_metrics` collector-exporter option unless explicitly enabled, so the bundled `beacon-otelcol` starts cleanly after Homebrew installs and upgrades.+- **Apple Silicon hook fix** · Release builds now serialize target packaging around the embedded `beacon-hooks` adapter, preventing arm64 Homebrew releases from embedding an amd64 hook binary.+- **Elastic validation polish** · Updated Elastic content-pack assets and docs to use ingested `beacon.*` fields and the `Beacon Endpoint Events` Kibana data view name.+- **Release validation runbook** · Added an end-to-end Beacon release validation runbook for Homebrew install, endpoint setup, runtime telemetry, and local Elastic ingestion checks.++### v0.0.12 · May 18, 2026++- **Hook binary validation** · Beacon now validates that the embedded `beacon-hooks` binary matches the host architecture before installing Cursor, Factory, or OpenCode hooks.+- **Clearer hook failures** · Hook installation now fails early with an actionable architecture error instead of writing a hook configuration that points at an unusable binary.+- **README support overview** · Expanded the upstream Beacon README with supported agent harnesses, SIEM/output destinations, MDM deployment paths, architecture notes, dashboard guidance, and quickstart links.+- **Release guidance** · Added maintainer release instructions for tag-based GoReleaser deployments and pre-release test gates.++### v0.0.11 · May 18, 2026++- **Elastic content pack** · Added `beacon endpoint elastic install-pack` to generate Filebeat, standalone Elastic Agent, Elasticsearch template, ingest pipeline, ILM, Kibana, and sample event assets for Beacon endpoint events.+- **Local Elastic validation** · Added `beacon endpoint elastic up` and `beacon endpoint elastic down` for a loopback-only macOS development stack with Elasticsearch, Kibana, and Filebeat.+- **Elastic CLI config** · Added `beacon endpoint elastic print-config` for quickly printing Filebeat configuration that tails Beacon's local `runtime.jsonl`.+- **SIEM forwarding docs** · Documented local, Elastic Cloud, and self-managed Elastic setup while keeping Elastic hosts and credentials outside Beacon endpoint configuration.++### v0.0.10 · May 18, 2026++- **OpenCode plugin support** · Added OpenCode discovery and hook/plugin support through `beacon endpoint discover` and `beacon endpoint hooks`.+- **Managed OpenCode plugin** · Beacon now installs an owned local OpenCode plugin at `~/.config/opencode/plugins/beacon.ts` or `./.opencode/plugins/beacon.ts`, forwarding supported chat, session, command, permission, diff, and error events through Beacon's local hook adapter.+- **Local retention and normalization** · OpenCode hook payloads use the same local normalization, redaction, retention, and JSONL output path as other Beacon endpoint events.+- **Release polish** · Updated upstream README links and OpenCode casing in release documentation.++### v0.0.9 · May 18, 2026++- **Endpoint dashboard visibility** · Improved the local dashboard and runtime visibility with the latest main-branch investigation updates.+- **Claude Code prompt content** · Enabled Claude Code prompt content export when endpoint retention is set to `full` or `redacted`.+- **Runtime metric filtering** · Filtered noisy generic process and runtime OTLP metrics from Beacon JSONL by default, with `--include-runtime-metrics` available when those low-level metrics are needed.+- **Collector release build** · Fixed collector release builds by pinning generated collector log modules consistently.++### v0.0.8 · May 18, 2026++- **Dashboard views** · Refactored the local dashboard into separate **Log Search** and **Security Overview** views for investigation and posture review.+- **Model-aware investigation** · Added model filtering and model summary data so teams can search and summarize local activity by agent model.+- **Dashboard usability** · Improved dashboard layout, including clearer investigation columns, quick filters, top harnesses, top models, top repositories, and MCP server summaries.+- **Documentation references** · Streamlined the upstream README and added clearer links into the Agent Beacon CLI docs.+- **Dependency maintenance** · Updated the bundled collector exporter dependency on `google.golang.org/grpc`.++### v0.0.7 · May 16, 2026++- **Factory Droid telemetry** · Added Factory Droid discovery, OTLP endpoint validation, and local telemetry collection support.+- **Factory hooks** · Added Factory hook install, status, and uninstall support for prompt, session, tool, file, stop, and session-end telemetry.+- **Hook preservation** · Improved Factory hook management so install and uninstall preserve non-Beacon hooks in mixed Factory settings groups and handle `hooks: null` safely.+- **Metric normalization** · Fixed metric event naming after category inference so metric events can fall back to the message field when needed.++### v0.0.6 · May 15, 2026++- **Splunk HEC exporter** · Added optional Splunk HEC forwarding from the bundled collector while preserving Beacon's local JSONL audit log.+- **Endpoint forwarding flags** · Added install and repair flags for Splunk HEC endpoint, token, index, source, sourcetype, and TLS configuration.+- **MDM forwarding support** · Added Jamf and Fleet package support, scripts, and inventory signals for Splunk HEC forwarding state.++### v0.0.5 · May 15, 2026++- **Factory Droid support** · Added Factory Droid discovery and OTLP validation, with guidance for managing `OTEL_TELEMETRY_ENDPOINT` through Droid's launch environment.+- **Factory hooks** · Added Beacon endpoint hooks for Factory prompt, session, write/edit/create tool, stop, and session-end telemetry.+- **Agent harness integrations** · Added an agent harness support matrix covering collection paths, hook support, MDM support, telemetry coverage, and local JSONL/dashboard output.+- **Splunk HEC forwarding** · Documented optional Splunk HEC collector forwarding while preserving the local Beacon JSONL audit log.++### v0.0.4 · May 14, 2026++- **Cursor hook reliability** · Fixed Cursor hook handling so prompt submission and hook-emitted events are captured more consistently.+- **Prompt events** · Improved prompt event normalization so local timelines better reflect what users asked supported agents to do.+- **Release artifacts** · Published macOS and Linux archives for `amd64` and `arm64`, plus SHA-256 checksums for release verification.++### v0.0.3 · May 14, 2026++- **Codex discovery** · Fixed Codex CLI detection so `beacon endpoint discover` and `beacon endpoint status` report Codex telemetry state more accurately.+- **Release packaging** · Packaged target-specific `beacon-otelcol` collector binaries with each platform archive.+- **Hook distribution** · Cleaned up release packaging for embedded hook assets and Homebrew distribution.++### v0.0.2 · May 14, 2026++- **Release artifacts** · Beacon now publishes platform archives for macOS and Linux on `amd64` and `arm64`, plus SHA-256 checksums for release verification.+- **Default local install** · Endpoint commands now use per-user paths by default, with `--system` reserved for root-managed package and MDM deployments.+- **Runtime log visibility** · Status output and the local dashboard now surface warnings when a system collector may be writing OTLP events to a different runtime log than the selected user-mode view.+- **Jamf-ready packaging** · macOS packaging now includes system-mode install and uninstall helpers for Jamf, Kandji, or generic MDM command runners.++### Codex++- **Telemetry defaults** · Beacon now writes structured Codex OTEL exporter configuration for logs, traces, and metrics while setting `log_user_prompt = false`.+- **Noisy trace filtering** · Beacon filters noisy internal Codex transport traces so endpoint timelines focus on meaningful Codex activity instead of HTTP/2 framing and flow-control churn.++### Beacon Endpoint++- **Endpoint telemetry** · Beacon now configures local agent harness telemetry and writes normalized endpoint events to local JSONL logs.+- **Runtime discovery** · Beacon discovers supported local agent harnesses, including Claude Code, Codex CLI, Cursor, and Claude Cowork.+- **Local dashboard** · Inspect Beacon runtime logs from a local-only endpoint dashboard.++### Wazuh++- **Wazuh content pack** · Generate localfile configuration, rules, and validation content for Beacon endpoint events.+- **Validation event** · Write a Beacon validation event to confirm Wazuh ingestion paths are configured correctly.++### Hooks++- **Cursor hooks** · Install, inspect, and remove Beacon endpoint hooks for supported harnesses.++### v0.0.1 · May 13, 2026++- **Endpoint telemetry** · Introduced the open-source Beacon Endpoint Agent for local agent harness telemetry.+- **Collector exporter** · Added the `beaconjson` OpenTelemetry Collector exporter for normalized Beacon endpoint JSONL.+- **Runtime integrations** · Added support for Claude Code, Codex CLI, Cursor hooks, and Claude Cowork telemetry validation.+- **Local dashboard** · Added a loopback-only dashboard for inspecting local runtime inventory, event timelines, filters, and event details.+- **Wazuh output** · Added Wazuh localfile configuration, rules, sample content, and validation events for Beacon endpoint logs.+- **Release distribution** · Established Homebrew and manual archive distribution for macOS and Linux.diff --git a/docs/changelog/sdk.mdx b/docs/changelog/sdk.mdxnew file mode 100644index 00000000..d2c153e3--- /dev/null+++ b/docs/changelog/sdk.mdx@@ -0,0 +1,20 @@+---+title: Asymptote SDK Release Notes+description: Latest updates and improvements to the Asymptote Observe SDK+---++## Latest updates++Stay up to date with the latest changes to the Asymptote Observe SDK.++---++## June 2026++### v0.1.0 · June 10, 2026++- **Initial TypeScript SDK release** · Published `@asymptote/sdk` for instrumenting cloud-hosted agent applications with OpenTelemetry spans compatible with Beacon's normalized event model.+- **Hosted and customer-managed export** · Added hosted Asymptote Observe export through `ASYMPTOTE_API_KEY` and customer-managed OTLP export through `OTEL_EXPORTER_OTLP_ENDPOINT` or `Observe.initialize({ otlpEndpoint })`.+- **AI SDK instrumentation** · Enabled OpenAI and Anthropic OpenLLMetry instrumentation by default, with configuration hooks for disabling or tuning provider instrumentation.+- **Agent integration helpers** · Added `Observe.observe()`, `Observe.getTracer()`, `Observe.wrapClaudeAgentQuery()`, `Observe.flush()`, and `Observe.shutdown()` for custom agent steps, Vercel AI SDK telemetry, Claude Agent SDK query wrapping, and process lifecycle handling.+- **Beacon compatibility attributes** · Exported constants for Beacon-compatible fields such as `beacon.origin`, `beacon.harness.name`, `beacon.event.action`, and `beacon.prompt.text`.diff --git a/docs/cli/ci-exec.mdx b/docs/cli/ci-exec.mdxnew file mode 100644index 00000000..d16e805a--- /dev/null+++ b/docs/cli/ci-exec.mdx@@ -0,0 +1,88 @@+---+title: "beacon ci exec"+description: "Run a command with Beacon telemetry captured for a CI job"+---++## Command Overview++`beacon ci exec` starts a temporary Beacon collector, runs the child command after `--`, stops the collector, validates the runtime log, and prints the artifact paths. The child command's exit code is preserved.++```bash title="Command syntax"+beacon ci exec -- <command>+```++When `GITHUB_ACTIONS=true`, Beacon records GitHub Actions run metadata such as workflow, run ID, commit, ref, and actor in the CI session result. Other CI environments are marked as ephemeral CI runs when `CI` is set.++## Flags++| Flag | Description |+|------|-------------|+| `--harness <harness>` | CI harness to configure. Defaults to `claude`; supported values include `claude`, `codex`, or comma-separated aliases |+| `--log-path <path>` | CI runtime JSONL log path |+| `--json` | Print the execution and validation result as JSON |+| `--min-events <count>` | Minimum matching events required during validation. Defaults to `1` |+| `--keep-artifacts` | Keep CI runtime log and collector config after exit. Enabled by default |+| `--forward <destination>` | Optionally forward CI events to a customer-managed SIEM. Supported values are `splunk` and `falcon` |+| `--forward-endpoint <url>` | SIEM HEC endpoint URL for the selected `--forward` provider. Tokens are read from `BEACON_CI_SPLUNK_HEC_TOKEN` or `BEACON_CI_FALCON_HEC_TOKEN` |+| `--require-telemetry <bool>` | Fail when telemetry validation fails. Defaults to `true`; set `false` to warn without gating the child command result |+| `--upload <destination>` | Upload the completed CI runtime JSONL after validation. Supported values are `s3` and `gcs`; repeat for multiple destinations |++Hidden operational flags are available for custom runners and tests, including `--base-dir`, `--work-dir`, `--collector`, `--otlp-grpc-port`, and `--otlp-http-port`.++`--upload s3` reads `BEACON_CI_S3_BUCKET` and optional `BEACON_CI_S3_PREFIX`. `--upload gcs` reads `BEACON_CI_GCS_BUCKET` and optional `BEACON_CI_GCS_PREFIX`.++<Note>+ `--content-retention` is deprecated and hidden. Beacon now captures supported CI content subject to redaction, sanitization, truncation, and event-size limits; the flag is accepted as a no-op for compatibility.+</Note>++## Examples++Wrap an agent command in GitHub Actions:++```bash title="Wrap an agent command in GitHub Actions"+beacon ci exec -- claude -p "Run the repository test suite and summarize failures"+```++Write CI telemetry to a known artifact path:++```bash title="Write CI telemetry to a known artifact path"+beacon ci exec \+ --log-path "$RUNNER_TEMP/beacon/runtime.jsonl" \+ -- claude -p "Review this pull request"+```++Run with telemetry validation as a warning instead of a hard gate:++```bash title="Run with telemetry validation as a warning instead of a hard gate"+beacon ci exec \+ --require-telemetry=false \+ -- claude -p "Inspect the changed files"+```++Print machine-readable output:++```bash title="Print machine-readable output"+beacon ci exec --json -- claude -p "Check release readiness"+```++Upload the completed CI runtime log to S3:++```bash title="Upload the completed CI runtime log to S3"+BEACON_CI_S3_BUCKET="my-beacon-telemetry" \+BEACON_CI_S3_PREFIX="github-actions" \+beacon ci exec --upload s3 -- claude -p "Review this pull request"+```++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Review CI artifact paths and command group behavior.+ </Card>+ <Card title="beacon ci validate" icon="check" href="/cli/ci-validate">+ Validate CI runtime telemetry artifacts after a job step.+ </Card>+ <Card title="CI Telemetry Exports" icon="file-export" href="/log-forwarding/ci-telemetry-exports">+ Export CI runtime JSONL through workflow artifacts, S3, GCS, or downstream pipelines.+ </Card>+</Columns>diff --git a/docs/cli/ci-finish.mdx b/docs/cli/ci-finish.mdxnew file mode 100644index 00000000..57670125--- /dev/null+++ b/docs/cli/ci-finish.mdx@@ -0,0 +1,77 @@+---+title: "beacon ci finish"+description: "Stop, validate, and export a detached Beacon CI telemetry session"+---++## Command Overview++`beacon ci finish` loads the state file from `beacon ci start`, stops the collector, validates the runtime log, and optionally uploads the completed JSONL artifact.++```bash title="Command syntax"+beacon ci finish+```++Run this command in an `always()` or equivalent cleanup step so Beacon can stop the detached collector even when earlier CI steps fail.++## Flags++| Flag | Description |+|------|-------------|+| `--state-path <path>` | CI session state path |+| `--min-events <count>` | Minimum matching events required during validation. Defaults to `1` |+| `--require-telemetry <bool>` | Fail when telemetry validation fails. Defaults to `true`; set `false` to warn |+| `--upload <destination>` | Upload the completed CI runtime JSONL after validation. Supported values are `s3` and `gcs`; repeat for multiple destinations |++## Examples++Stop and validate a detached session:++```bash title="Stop and validate a detached session"+beacon ci finish --min-events 1+```++Upload the completed CI runtime log to GCS:++```bash title="Upload the completed CI runtime log to GCS"+BEACON_CI_GCS_BUCKET="my-beacon-telemetry" \+BEACON_CI_GCS_PREFIX="github-actions" \+beacon ci finish --upload gcs+```++## GitHub Actions Session++```yaml+- name: Start Beacon telemetry+ id: beacon+ uses: asymptote-labs/[email protected]+ with:+ mode: start+ harnesses: codex++- uses: openai/codex-action@main+ with:+ openai-api-key: ${{ secrets.OPENAI_API_KEY }}+ codex-home: ${{ steps.beacon.outputs.codex-home }}+ prompt: "Review this pull request"++- name: Finish Beacon telemetry+ if: always()+ uses: asymptote-labs/[email protected]+ with:+ mode: finish+ min-events: "1"+```++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Review CI artifact paths and command group behavior.+ </Card>+ <Card title="beacon ci start" icon="play" href="/cli/ci-start">+ Start detached telemetry across workflow steps.+ </Card>+ <Card title="beacon ci validate" icon="check" href="/cli/ci-validate">+ Validate an existing CI runtime log.+ </Card>+</Columns>diff --git a/docs/cli/ci-start.mdx b/docs/cli/ci-start.mdxnew file mode 100644index 00000000..64585a78--- /dev/null+++ b/docs/cli/ci-start.mdx@@ -0,0 +1,55 @@+---+title: "beacon ci start"+description: "Start a detached Beacon CI telemetry session"+---++## Command Overview++`beacon ci start` starts a local collector, writes a session state file, and prints or exports telemetry environment variables for later workflow steps.++```bash title="Command syntax"+beacon ci start+```++In the GitHub Action, these variables are written to `$GITHUB_ENV` so later `run:` or `uses:` steps can inherit them. Claude Code uses environment variables; Codex uses a generated `CODEX_HOME` with Beacon OTLP configuration.++## Flags++| Flag | Description |+|------|-------------|+| `--harness <harnesses>` | Harnesses to configure. Defaults to `claude,codex` when omitted |+| `--log-path <path>` | CI runtime JSONL log path |+| `--state-path <path>` | CI session state path |+| `--github-env <path>` | Optional GitHub Actions environment file to append exports to |+| `--forward <destination>` | Optionally forward CI events to a customer-managed SIEM. Supported values are `splunk` and `falcon` |+| `--forward-endpoint <url>` | SIEM HEC endpoint URL for the selected `--forward` provider |++## Examples++Start a detached Beacon CI telemetry session:++```bash title="Start a detached Beacon CI telemetry session"+beacon ci start --harness claude,codex+```++Start a session with a stable runtime log path:++```bash title="Start with a stable runtime log path"+beacon ci start \+ --harness codex \+ --log-path "$RUNNER_TEMP/beacon/runtime.jsonl"+```++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Review CI artifact paths and command group behavior.+ </Card>+ <Card title="beacon ci finish" icon="stop" href="/cli/ci-finish">+ Stop, validate, and export a detached telemetry session.+ </Card>+ <Card title="CI Telemetry Exports" icon="file-export" href="/log-forwarding/ci-telemetry-exports">+ Export CI runtime JSONL through workflow artifacts, S3, GCS, or downstream pipelines.+ </Card>+</Columns>diff --git a/docs/cli/ci-validate.mdx b/docs/cli/ci-validate.mdxnew file mode 100644index 00000000..97cb6682--- /dev/null+++ b/docs/cli/ci-validate.mdx@@ -0,0 +1,63 @@+---+title: "beacon ci validate"+description: "Validate Beacon CI runtime telemetry artifacts"+---++## Command Overview++`beacon ci validate` checks that the runtime log exists, parses as Beacon JSONL, and contains at least the required number of matching harness events.++```bash title="Command syntax"+beacon ci validate+```++Use validation after a job step when telemetry collection and agent execution are managed separately.++## Flags++| Flag | Description |+|------|-------------|+| `--harness <harness>` | Required harness to validate. Defaults to `claude` |+| `--log-path <path>` | CI runtime JSONL log path. Defaults to `$RUNNER_TEMP/beacon/runtime.jsonl` or the system temp path |+| `--json` | Print validation results as JSON |+| `--min-events <count>` | Minimum matching events required. Defaults to `1` |++## Examples++Validate the default CI artifact path:++```bash title="Validate the default CI artifact path"+beacon ci validate+```++Validate a custom runtime log:++```bash title="Validate a custom runtime log"+beacon ci validate --log-path "$RUNNER_TEMP/beacon/runtime.jsonl"+```++Require at least three Claude events:++```bash title="Require at least three Claude events"+beacon ci validate --min-events 3+```++Print machine-readable validation results:++```bash title="Print machine-readable validation results"+beacon ci validate --json+```++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Review CI artifact paths and command group behavior.+ </Card>+ <Card title="beacon ci exec" icon="terminal" href="/cli/ci-exec">+ Run a single command with ephemeral CI telemetry.+ </Card>+ <Card title="beacon ci finish" icon="stop" href="/cli/ci-finish">+ Stop and validate a detached telemetry session.+ </Card>+</Columns>diff --git a/docs/cli/ci.mdx b/docs/cli/ci.mdxnew file mode 100644index 00000000..d6de3e86--- /dev/null+++ b/docs/cli/ci.mdx@@ -0,0 +1,134 @@+---+title: "CI Agent Telemetry"+description: "Wrap agent commands and CI actions with ephemeral Beacon telemetry"+---++## Command Overview++`beacon ci` wraps supported agent commands and agent-launching CI steps with ephemeral Beacon telemetry. It runs for a single CI job without installing a persistent endpoint service or modifying runner-wide harness configuration.++```bash title="Command syntax"+beacon ci [command]+```++Use `beacon ci exec` when the workflow runs an agent command directly. For multi-step CI workflows or third-party GitHub Actions that launch agents internally, use `beacon ci start` and `beacon ci finish`.++<Note>+ `beacon ci` is designed for ephemeral CI jobs. For managed endpoint rollout on laptops or workstations, use [`beacon endpoint install`](/cli/endpoint-install).+</Note>++For artifact upload, object storage export, and downstream SIEM handoff patterns, see [CI Telemetry Exports](/log-forwarding/ci-telemetry-exports).++## Wrap Agent Runs++`beacon ci exec` starts a temporary local collector, injects supported telemetry configuration into one child process, writes normalized endpoint events to a CI runtime log, then validates that matching events were captured.++```bash title="Wrap one agent command"+beacon ci exec -- <agent command>+```++For example, wrap a Claude Code prompt in a GitHub Actions step:++```bash title="Wrap Claude Code"+beacon ci exec -- claude -p "Review this pull request"+```++## Wrap Agent Actions++Some workflows call a third-party action that launches the agent internally. In those cases, start a detached Beacon session before the action and finish it in a cleanup step.++```yaml title="Wrap a CI action that launches an agent"+- name: Start Beacon telemetry+ uses: asymptote-labs/[email protected]+ with:+ mode: start+ harnesses: claude++- name: Run Claude Code Security Review+ uses: anthropics/claude-code-security-review@main+ with:+ claude-api-key: ${{ secrets.CLAUDE_API_KEY }}+ comment-pr: false+ upload-results: true+ claudecode-timeout: "10"++- name: Finish Beacon telemetry+ if: always()+ uses: asymptote-labs/[email protected]+ with:+ mode: finish+ min-events: "1"+ upload-artifact: "true"+ artifact-name: beacon-claude-security-review-runtime-log+```++See the [Claude Code Security Review session workflow](https://github.com/Asymptote-Labs/agent-beacon/blob/main/examples/github-actions/claude-security-review-session.yml) for the full GitHub Actions example.++## Commands++<span id="beacon-ci-exec" />+<span id="beacon-ci-start" />+<span id="beacon-ci-finish" />+<span id="beacon-ci-validate" />++<Columns cols={2}>+ <Card title="beacon ci exec" icon="terminal" href="/cli/ci-exec">+ Run a command with agent telemetry captured for the CI job.+ </Card>+ <Card title="beacon ci start" icon="play" href="/cli/ci-start">+ Start a detached telemetry session for later CI steps.+ </Card>+ <Card title="beacon ci finish" icon="stop" href="/cli/ci-finish">+ Stop, validate, and export a detached telemetry session.+ </Card>+ <Card title="beacon ci validate" icon="check" href="/cli/ci-validate">+ Validate Beacon CI telemetry artifacts after a job step.+ </Card>+</Columns>++## Artifact paths++By default, Beacon writes CI artifacts under `$RUNNER_TEMP/beacon` when `RUNNER_TEMP` is set. Otherwise it uses the system temp directory.++| Artifact | Default path |+|----------|--------------|+| Runtime log | `$RUNNER_TEMP/beacon/runtime.jsonl` |+| Collector config | `$RUNNER_TEMP/beacon/otelcol.yaml` |+| Collector spool | `$RUNNER_TEMP/beacon/spool/otlp.jsonl` |++Use `--log-path` when your workflow needs a stable artifact path.++## Related++<Columns cols={2}>+ <Card title="beacon ci exec" icon="terminal" href="/cli/ci-exec">+ Run a single command with ephemeral CI telemetry.+ </Card>+ <Card title="beacon ci start" icon="play" href="/cli/ci-start">+ Start detached telemetry across workflow steps.+ </Card>+ <Card title="beacon ci finish" icon="stop" href="/cli/ci-finish">+ Stop and validate a detached telemetry session.+ </Card>+ <Card title="beacon ci validate" icon="check" href="/cli/ci-validate">+ Validate an existing CI runtime log.+ </Card>+ <Card title="CI Telemetry Exports" icon="file-export" href="/log-forwarding/ci-telemetry-exports">+ Export CI runtime JSONL through workflow artifacts, S3, GCS, or downstream pipelines.+ </Card>+ <Card title="CI Agent Telemetry" icon="terminal" href="/runtimes/claude-code-ci">+ Capture supported agent telemetry in CI workflows.+ </Card>+ <Card title="Codex CLI" icon="terminal" href="/runtimes/codex-cli">+ Review Beacon support for Codex endpoint and CI telemetry.+ </Card>+ <Card title="Local testing" icon="flask-vial" href="/guides/local-testing">+ Validate Beacon runtime logs, events, dashboards, and MCP access locally.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install persistent endpoint telemetry for managed devices.+ </Card>+ <Card title="Command reference" icon="book" href="/cli">+ Browse Beacon commands by hierarchy.+ </Card>+</Columns>diff --git a/docs/cli/claude-cowork.mdx b/docs/cli/claude-cowork.mdxnew file mode 100644index 00000000..7d4fa295--- /dev/null+++ b/docs/cli/claude-cowork.mdx@@ -0,0 +1,209 @@+---+title: "beacon endpoint integrations claude-cowork"+description: "Set up Claude Cowork OpenTelemetry export for Beacon"+---++## Integration Command++Claude Cowork exports telemetry from Anthropic's service, so its OTLP endpoint must be reachable from the public internet. Beacon can print the settings you need for the Claude admin console and validate whether Cowork events are arriving in the local runtime log.++```bash title="Command syntax"+beacon endpoint integrations claude-cowork [command]+```++## Commands++<Columns cols={2}>+ <Card title="print-config" icon="file-lines" href="#beacon-endpoint-integrations-claude-cowork-print-config">+ Print Claude Cowork OTLP setup guidance.+ </Card>+ <Card title="setup" icon="gear" href="#beacon-endpoint-integrations-claude-cowork-setup">+ Print or create Claude Cowork OTLP admin settings.+ </Card>+ <Card title="status" icon="circle-info" href="#beacon-endpoint-integrations-claude-cowork-status">+ Show Claude Cowork endpoint integration status.+ </Card>+ <Card title="validate" icon="check" href="#beacon-endpoint-integrations-claude-cowork-validate">+ Validate whether Claude Cowork events are arriving.+ </Card>+</Columns>++## Production setup++For ongoing use, run a customer-managed HTTPS OpenTelemetry Collector endpoint:++```text+https://otel.example.com+```++Generate Claude Cowork setup values:++```bash title="Generate Claude Cowork setup values"+beacon endpoint integrations claude-cowork setup \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>" \+ --open+```++Copy the generated values into the Claude Cowork monitoring settings:++| Claude setting | Value |+|----------------|-------|+| OTLP endpoint | Your public HTTPS collector endpoint |+| OTLP protocol | `HTTP/protobuf` |+| OTLP headers | Optional, commonly `Authorization=Bearer <token>` |+| Resource attributes | Defaults to `deployment.environment=prod,service.name=claude-cowork` |++Recommended production shape:++- Use a real DNS name with TLS, such as `https://otel.company.com`+- Require authentication at the public edge+- Terminate TLS at a hardened reverse proxy or load balancer+- Forward OTLP HTTP paths such as `/v1/logs`, `/v1/metrics`, and `/v1/traces` to the Collector's local `4318` receiver+- Treat Cowork telemetry as sensitive because prompt text, tool parameters, file paths, user email addresses, model usage, and errors may be present before Beacon redaction or export++## Local testing with ngrok++For demos, validation, or local development only, Beacon can create a temporary authenticated ngrok tunnel to the local OTLP HTTP receiver:++```bash title="Create a temporary ngrok tunnel"+beacon endpoint install+beacon endpoint integrations claude-cowork setup --ngrok --open+```++Do not use an ngrok URL, `127.0.0.1`, or a laptop endpoint for production monitoring.++## Flags++| Flag | Description |+|------|-------------|+| `--endpoint <url>` | Public OTLP HTTPS endpoint reachable by Claude Cowork |+| `--headers <headers>` | Optional OTLP headers for Claude admin settings |+| `--resource-attributes <attrs>` | Optional Claude Cowork resource attributes |+| `--ngrok` | Create a temporary authenticated ngrok tunnel to the local OTLP HTTP receiver |+| `--open` | Open Claude Cowork admin settings in a browser |+| `--since <duration>` | Require a Cowork event within this duration, such as `10m`. Validate only |+| `--json` | Print status as JSON. Status only |++## beacon endpoint integrations claude-cowork print-config++`beacon endpoint integrations claude-cowork print-config` prints Claude Cowork OTLP setup guidance without creating a tunnel or opening the admin console.++```bash title="Print the configuration"+beacon endpoint integrations claude-cowork print-config \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>"+```++### Examples++Print guidance for a production collector:++```bash title="Print guidance for a production collector"+beacon endpoint integrations claude-cowork print-config \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>" \+ --resource-attributes "deployment.environment=prod,service.name=claude-cowork"+```++Print guidance using the local OTLP HTTP receiver from the Beacon config:++```bash title="Print guidance using the local OTLP HTTP receiver from the Beacon config"+beacon endpoint integrations claude-cowork print-config+```++## beacon endpoint integrations claude-cowork setup++`beacon endpoint integrations claude-cowork setup` prints the OTLP values to copy into Claude Cowork monitoring settings. It can also open the Claude admin console or create a temporary authenticated ngrok tunnel for local testing.++```bash title="Set up the integration"+beacon endpoint integrations claude-cowork setup \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>" \+ --open+```++### Production setup++For ongoing monitoring, use a durable public HTTPS OpenTelemetry Collector endpoint:++```bash title="Set up a production OTLP endpoint"+beacon endpoint integrations claude-cowork setup \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>" \+ --resource-attributes "deployment.environment=prod,service.name=claude-cowork"+```++### Local testing with ngrok++For demos, validation, or local development only, create a temporary authenticated ngrok tunnel to the local OTLP HTTP receiver:++```bash title="Create a temporary ngrok tunnel"+beacon endpoint install+beacon endpoint integrations claude-cowork setup --ngrok --open+```++Do not use `127.0.0.1`, a laptop endpoint, or an ngrok URL for production monitoring.++## beacon endpoint integrations claude-cowork status++`beacon endpoint integrations claude-cowork status` reports whether Claude Cowork is detected and whether Cowork events have been observed in the endpoint runtime log.++```bash title="Check status"+beacon endpoint integrations claude-cowork status+```++### Examples++Show status:++```bash title="Show status"+beacon endpoint integrations claude-cowork status+```++Print status as JSON:++```bash title="Print status as JSON"+beacon endpoint integrations claude-cowork status --json+```++Check a custom runtime log:++```bash title="Check a custom runtime log"+beacon endpoint integrations claude-cowork status \+ --log-path /path/to/runtime.jsonl+```++## beacon endpoint integrations claude-cowork validate++`beacon endpoint integrations claude-cowork validate` checks whether Claude Cowork events have arrived in the endpoint runtime log.++```bash title="Run the validation check"+beacon endpoint integrations claude-cowork validate --since 10m+```++If validation fails, Beacon prints setup guidance using any endpoint, headers, or resource attributes you provide.++### Examples++Require a Cowork event in the last 10 minutes:++```bash title="Require a Cowork event in the last 10 minutes"+beacon endpoint integrations claude-cowork validate --since 10m+```++Validate and include production setup guidance if no event is found:++```bash title="Validate and include production setup guidance if no event is found"+beacon endpoint integrations claude-cowork validate \+ --since 10m \+ --endpoint https://otel.example.com \+ --headers "Authorization=Bearer <token>"+```++Validate a custom runtime log:++```bash title="Validate a custom runtime log"+beacon endpoint integrations claude-cowork validate \+ --log-path /path/to/runtime.jsonl+```diff --git a/docs/cli/cloud-claude-web-print-hooks.mdx b/docs/cli/cloud-claude-web-print-hooks.mdxnew file mode 100644index 00000000..9b38efdb--- /dev/null+++ b/docs/cli/cloud-claude-web-print-hooks.mdx@@ -0,0 +1,38 @@+---+title: "beacon cloud claude-web print-hooks"+description: "Print Claude Code cloud hook settings"+---++## Command Overview++`beacon cloud claude-web print-hooks` prints the Claude hook settings used by the setup script.++```bash title="Command syntax"+beacon cloud claude-web print-hooks+```++This command is mostly useful for debugging or custom setup scripts.++## Examples++Print hook settings for a cloud sandbox:++```bash title="Print hook settings for a cloud sandbox"+beacon cloud claude-web print-hooks \+ --binary-path /tmp/beacon/bin/beacon-hooks \+ --log-path /tmp/beacon/runtime.jsonl+```++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Review cloud command group behavior.+ </Card>+ <Card title="beacon cloud claude-web print-setup" icon="cloud" href="/cli/cloud-claude-web-print-setup">+ Print a Claude Code cloud environment setup script.+ </Card>+ <Card title="Claude Code Cloud Agents" icon="cloud" href="/runtimes/claude-code-cloud-agents">+ Configure Claude Code cloud agent telemetry and GCS upload end to end.+ </Card>+</Columns>diff --git a/docs/cli/cloud-claude-web-print-setup.mdx b/docs/cli/cloud-claude-web-print-setup.mdxnew file mode 100644index 00000000..a851c04a--- /dev/null+++ b/docs/cli/cloud-claude-web-print-setup.mdx@@ -0,0 +1,36 @@+---+title: "beacon cloud claude-web print-setup"+description: "Print a Claude Code cloud environment setup script"+---++## Command Overview++`beacon cloud claude-web print-setup` prints a Claude Code cloud environment setup script for a Beacon release.++```bash title="Command syntax"+beacon cloud claude-web print-setup+```++Paste the generated script into the Claude Code cloud environment setup field. It installs `beacon` and `beacon-hooks` into `/tmp/beacon/bin`, discovers the cloud sandbox repository root, and writes `.claude/settings.local.json` inside the sandbox clone.++## Examples++Print setup for a specific Beacon release:++```bash title="Print setup for a specific Beacon release"+beacon cloud claude-web print-setup --version v0.0.66+```++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Review cloud command group behavior.+ </Card>+ <Card title="beacon cloud claude-web print-hooks" icon="plug" href="/cli/cloud-claude-web-print-hooks">+ Print the Claude hook settings used by the setup script.+ </Card>+ <Card title="Claude Code Cloud Agents" icon="cloud" href="/runtimes/claude-code-cloud-agents">+ Configure Claude Code cloud agent telemetry and GCS upload end to end.+ </Card>+</Columns>diff --git a/docs/cli/cloud-cursor-print-hooks.mdx b/docs/cli/cloud-cursor-print-hooks.mdxnew file mode 100644index 00000000..ed452cc3--- /dev/null+++ b/docs/cli/cloud-cursor-print-hooks.mdx@@ -0,0 +1,52 @@+---+title: "beacon cloud cursor print-hooks"+description: "Print Cursor cloud hook settings"+---++## Command Overview++`beacon cloud cursor print-hooks` prints project-level Cursor hook settings for+a cloud sandbox. Commit the rendered JSON to `.cursor/hooks.json` before+starting Cursor Cloud Agents.++```bash title="Command syntax"+beacon cloud cursor print-hooks+```++The rendered hooks set `BEACON_ORIGIN=cloud`, `BEACON_RUN_PROVIDER=cursor_cloud`, and `BEACON_RUN_EPHEMERAL=true` for Cursor cloud hook events.++Cursor Cloud only runs command-based project hooks after the cloud VM starts.+The generated hook set uses supported Cursor Cloud hooks such as+`beforeReadFile`, `beforeShellExecution`, `afterShellExecution`,+`afterFileEdit`, `postToolUse`, `postToolUseFailure`, `subagentStart`,+`subagentStop`, and `preCompact`. It does not include broad `preToolUse`,+`beforeSubmitPrompt`, `sessionStart`, `sessionEnd`, or `stop` because Cursor+does not run those hooks in cloud agents. See+[Cursor's Cloud Agent hook support matrix](https://cursor.com/docs/hooks#cloud-agent-support)+for the current platform support list.++Beacon uses Cursor's `conversation_id` hook payload as the default+`run.run_id` for Cursor Cloud telemetry unless `BEACON_RUN_ID` is already set.++## Examples++Print hook settings for a cloud sandbox:++```bash title="Print hook settings for a cloud sandbox"+mkdir -p .cursor+beacon cloud cursor print-hooks \+ --binary-path /tmp/beacon/bin/beacon-hooks \+ --log-path /tmp/beacon/runtime.jsonl > .cursor/hooks.json+git add .cursor/hooks.json+```++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Review cloud command group behavior.+ </Card>+ <Card title="beacon cloud cursor print-setup" icon="cloud" href="/cli/cloud-cursor-print-setup">+ Print a Cursor cloud agent binary setup script.+ </Card>+</Columns>diff --git a/docs/cli/cloud-cursor-print-setup.mdx b/docs/cli/cloud-cursor-print-setup.mdxnew file mode 100644index 00000000..e11de7e6--- /dev/null+++ b/docs/cli/cloud-cursor-print-setup.mdx@@ -0,0 +1,49 @@+---+title: "beacon cloud cursor print-setup"+description: "Print a Cursor cloud agent binary setup script"+---++## Command Overview++`beacon cloud cursor print-setup` prints a Cursor cloud agent setup script for+installing Beacon binaries in the cloud sandbox.++```bash title="Command syntax"+beacon cloud cursor print-setup+```++Paste the generated script into the Cursor cloud environment setup step. It+installs `beacon` and `beacon-hooks` into `/tmp/beacon/bin`.++The generated script does not write or merge `.cursor/hooks.json`. Generate+project hooks with [`beacon cloud cursor print-hooks`](/cli/cloud-cursor-print-hooks),+commit `.cursor/hooks.json` to the repository, then start Cursor Cloud Agents+from a commit that contains that file.++Cursor cloud agents do not run prompt or session lifecycle hooks such as+`beforeSubmitPrompt`, `sessionStart`, `sessionEnd`, and `stop`. Beacon refreshes+the uploaded `runtime.jsonl` object as supported hook events run. See+[Cursor's Cloud Agent hook support matrix](https://cursor.com/docs/hooks#cloud-agent-support)+for the current platform support list.++## Examples++Print setup for a specific Beacon release:++```bash title="Print setup for a specific Beacon release"+beacon cloud cursor print-setup --version v0.0.66+```++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Review cloud command group behavior.+ </Card>+ <Card title="beacon cloud cursor print-hooks" icon="plug" href="/cli/cloud-cursor-print-hooks">+ Print project-level Cursor hook settings for a cloud sandbox.+ </Card>+ <Card title="Cursor Cloud Agents" icon="cloud" href="/runtimes/cursor-cloud-agents">+ Configure Cursor cloud agent telemetry and GCS upload end to end.+ </Card>+</Columns>diff --git a/docs/cli/cloud-gcs-setup.mdx b/docs/cli/cloud-gcs-setup.mdxnew file mode 100644index 00000000..d6cfea7e--- /dev/null+++ b/docs/cli/cloud-gcs-setup.mdx@@ -0,0 +1,58 @@+---+title: "beacon cloud gcs setup"+description: "Create or print GCS setup commands for cloud-agent telemetry"+---++## Command Overview++`beacon cloud gcs setup` creates or prints self-serve Google Cloud Storage setup commands for cloud-agent telemetry.++```bash title="Command syntax"+beacon cloud gcs setup+```++The helper creates or validates a bucket, creates a dedicated uploader service account, grants object upload access, creates a service-account key, and prints the `BEACON_CLOUD_GCS_*` environment variables for cloud agents.++<Warning>+ This self-serve flow passes a scoped Google service-account key into the provider-managed cloud agent environment. Use it for proof-of-concept testing and prototyping. For production enterprise deployments, use [Asymptote Managed](/deployment/managed) or contact Asymptote about secure forwarding in customer-managed infrastructure.+</Warning>++## Examples++Create GCS resources and print cloud-agent environment variables:++```bash title="Create GCS resources and print environment variables"+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_CLOUD_GCS_BUCKET" \+ --prefix "$BEACON_CLOUD_GCS_PREFIX" \+ --service-account beacon-cloud-trace-uploader \+ --apply \+ --print-env+```++Print the setup commands without applying them:++```bash title="Print GCS setup commands"+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_CLOUD_GCS_BUCKET" \+ --prefix "$BEACON_CLOUD_GCS_PREFIX"+```++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Review cloud command group behavior.+ </Card>+ <Card title="Claude Code Cloud Agents" icon="cloud" href="/runtimes/claude-code-cloud-agents">+ Configure Claude Code cloud agent telemetry and GCS upload end to end.+ </Card>+ <Card title="Cursor Cloud Agents" icon="cloud" href="/runtimes/cursor-cloud-agents">+ Configure Cursor cloud agent telemetry and GCS upload end to end.+ </Card>+ <Card title="Google Cloud Storage forwarding" icon="database" href="/log-forwarding/gcs">+ Review local endpoint GCS forwarding for persistent endpoint deployments.+ </Card>+</Columns>diff --git a/docs/cli/cloud.mdx b/docs/cli/cloud.mdxnew file mode 100644index 00000000..8985c47b--- /dev/null+++ b/docs/cli/cloud.mdx@@ -0,0 +1,71 @@+---+title: "beacon cloud"+description: "Configure Beacon telemetry for provider-managed cloud agents"+---++## Overview++`beacon cloud` prints setup helpers for provider-managed cloud agent+environments. Supported flows capture Claude Code or Cursor cloud agent+telemetry and upload the cloud session's `runtime.jsonl` to customer-managed+Google Cloud Storage.++For complete walkthroughs, see [Claude Code Cloud Agents](/runtimes/claude-code-cloud-agents)+and [Cursor Cloud Agents](/runtimes/cursor-cloud-agents).++## Commands++<span id="beacon-cloud-claude-web-print-setup" />+<span id="beacon-cloud-claude-web-print-hooks" />+<span id="beacon-cloud-cursor-print-setup" />+<span id="beacon-cloud-cursor-print-hooks" />+<span id="beacon-cloud-gcs-setup" />++<Columns cols={2}>+ <Card title="beacon cloud claude-web print-setup" icon="cloud" href="/cli/cloud-claude-web-print-setup">+ Print a Claude Code cloud environment setup script.+ </Card>+ <Card title="beacon cloud claude-web print-hooks" icon="plug" href="/cli/cloud-claude-web-print-hooks">+ Print Claude hook settings for a cloud sandbox.+ </Card>+ <Card title="beacon cloud cursor print-setup" icon="cloud" href="/cli/cloud-cursor-print-setup">+ Print a Cursor cloud agent binary setup script.+ </Card>+ <Card title="beacon cloud cursor print-hooks" icon="plug" href="/cli/cloud-cursor-print-hooks">+ Print Cursor project hook settings to commit for cloud agents.+ </Card>+ <Card title="beacon cloud gcs setup" icon="database" href="/cli/cloud-gcs-setup">+ Create or print self-serve GCS setup commands for cloud-agent telemetry.+ </Card>+</Columns>++## GCS Setup Note++The helper creates or validates a bucket, creates a dedicated uploader service+account, grants object upload access, creates a service-account key, and prints+the `BEACON_CLOUD_GCS_*` environment variables for cloud agents.++<Warning>+ This self-serve flow passes a scoped Google service-account key into the+ provider-managed cloud agent environment. Use it for proof-of-concept testing+ and prototyping. For production enterprise deployments, use+ [Asymptote Managed](/deployment/managed) or contact Asymptote about secure+ forwarding in customer-managed infrastructure.+</Warning>++## Related++<Columns cols={2}>+ <Card title="beacon cloud gcs setup" icon="database" href="/cli/cloud-gcs-setup">+ Create or print self-serve GCS setup commands for cloud-agent telemetry.+ </Card>+ <Card title="Claude Code Cloud Agents" icon="cloud" href="/runtimes/claude-code-cloud-agents">+ Configure Claude Code cloud agent telemetry and GCS upload end to end.+ </Card>+ <Card title="Cursor Cloud Agents" icon="cloud" href="/runtimes/cursor-cloud-agents">+ Configure Cursor cloud agent telemetry and GCS upload end to end.+ </Card>+ <Card title="Google Cloud Storage forwarding" icon="database" href="/log-forwarding/gcs">+ Review local endpoint GCS forwarding for persistent endpoint deployments.+ </Card>+</Columns>diff --git a/docs/cli/cloudwatch.mdx b/docs/cli/cloudwatch.mdxnew file mode 100644index 00000000..84a30ee9--- /dev/null+++ b/docs/cli/cloudwatch.mdx@@ -0,0 +1,190 @@+---+title: "beacon endpoint cloudwatch"+description: "Generate AWS CloudWatch Logs forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint cloudwatch` to generate AWS CloudWatch Logs forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps your customer-managed Vector agent ship `runtime.jsonl` to a CloudWatch Logs log group.++Beacon does not store AWS credentials, profiles, IAM roles, log group retention settings, stream names, or encryption settings. Keep those values in AWS, Vector, endpoint-management policy, or deployment tooling.++```bash title="Command syntax"+beacon endpoint cloudwatch [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint cloudwatch print-config" icon="file-lines" href="#beacon-endpoint-cloudwatch-print-config">+ Print the Vector AWS CloudWatch Logs forwarding template for the configured runtime log.+ </Card>+ <Card title="beacon endpoint cloudwatch install-pack" icon="box-archive" href="#beacon-endpoint-cloudwatch-install-pack">+ Write AWS CloudWatch Logs forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint cloudwatch validate" icon="check" href="#beacon-endpoint-cloudwatch-validate">+ Write and describe a Beacon AWS CloudWatch Logs validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint cloudwatch print-config++`beacon endpoint cloudwatch print-config` prints a Vector configuration that tails the selected Beacon runtime JSONL log and writes parsed Beacon events to AWS CloudWatch Logs.++```bash title="Print the configuration"+beacon endpoint cloudwatch print-config+```++Use this command when you want to inspect or copy the Vector template into an existing endpoint forwarding workflow.++### Examples++Print Vector config for the default per-user Beacon install:++```bash title="Print Vector config for the default per-user Beacon install"+beacon endpoint cloudwatch print-config+```++Print Vector config for a system-mode MDM deployment:++```bash title="Print Vector config for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint cloudwatch print-config --system+```++Print Vector config for a custom runtime log:++```bash title="Print Vector config for a custom runtime log"+beacon endpoint cloudwatch print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint cloudwatch install-pack++`beacon endpoint cloudwatch install-pack` writes AWS CloudWatch Logs forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint cloudwatch install-pack --output ./beacon-cloudwatch-pack+```++The pack includes setup instructions, a Vector `aws_cloudwatch_logs` forwarding template, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint cloudwatch install-pack --output ./beacon-cloudwatch-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint cloudwatch install-pack \+ --system \+ --output ./beacon-cloudwatch-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint cloudwatch install-pack \+ --output ./beacon-cloudwatch-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the AWS CloudWatch Logs content pack. Defaults to `beacon-cloudwatch-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint cloudwatch validate++`beacon endpoint cloudwatch validate` writes a Beacon validation event to the runtime JSONL log and prints the expected CloudWatch validation fields and follow-up AWS checks.++```bash title="Run the validation check"+beacon endpoint cloudwatch validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint cloudwatch validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint cloudwatch validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint cloudwatch validate --log-path /path/to/runtime.jsonl+```++The validation command writes the local event only. Confirm remote delivery with AWS tooling:++```text+aws logs filter-log-events --log-group-name "$BEACON_CLOUDWATCH_LOG_GROUP" --filter-pattern '"Beacon endpoint AWS CloudWatch Logs validation event"' --region "$AWS_REGION"+```++CloudWatch Logs Insights query:++```sql+fields @timestamp, vendor, product, destination.type, destination.mode, message+| filter message like /Beacon endpoint AWS CloudWatch Logs validation event/+| sort @timestamp desc+| limit 20+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=cloudwatch destination.mode=aws_cloudwatch_logs+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="AWS CloudWatch Logs forwarding" icon="chart-line" href="/log-forwarding/cloudwatch">+ Configure Vector forwarding from Beacon JSONL into AWS CloudWatch Logs.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/dashboard.mdx b/docs/cli/dashboard.mdxnew file mode 100644index 00000000..47a8742f--- /dev/null+++ b/docs/cli/dashboard.mdx@@ -0,0 +1,106 @@+---+title: "beacon endpoint dashboard"+description: "Run the local Beacon endpoint dashboard"+---++## Command Overview++Beacon includes a local-only dashboard for investigating the runtime JSONL log. The dashboard binds to loopback by default, has no external network dependency during normal use, and is intended for local investigation rather than remote administration.++<Frame caption="Log Search helps investigate Beacon endpoint events by harness, model, severity, category, quick filter, and free-text query.">+ <img src="/images/dashboard-log-search.png" alt="Beacon endpoint Log Search view showing investigation filters, quick filters, event rows, and model-aware search controls." />+</Frame>++<Frame caption="Security Overview summarizes local AI agent activity, risk signals, harnesses, models, repositories, MCP servers, and runtime inventory.">+ <img src="/images/dashboard-overview.png" alt="Beacon endpoint Security Overview showing security posture metrics, top harnesses, top models, top repositories, MCP servers, and runtime inventory." />+</Frame>++```bash title="Command syntax"+beacon endpoint dashboard+```++<Card title="beacon endpoint dashboard" icon="terminal" href="#beacon-endpoint-dashboard">+ Start the local dashboard, open it in a browser, or bind it to a custom local address.+</Card>++## What it shows++The dashboard reads the configured runtime JSONL log and provides a read-only view of local Beacon events. It follows Beacon's local rotation pattern, so Log Search can include the active file and numbered archives such as `runtime.jsonl.1`. In the default CLI setup, it reads the same per-user log used by Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode hooks, Claude Code OTLP, Codex OTLP, optional Gemini CLI OTLP, Factory Droid OTLP, and OpenClaw Gateway OTLP telemetry.++- **Log Search:** investigate event rows with free-text search, harness, model, severity, and category filters.+- **Detections:** browse the active [threat-rule](/detections) set that Beacon would use for local scans, including rules installed in the local store or the built-in baseline when no store is installed.+- **Findings:** run the active rules over the configured runtime log on demand and review matching evidence with severity and session filters.+- **Quick filters:** focus on high-severity events, failures, approvals, MCP activity, file changes, commands, and events that may need review.+- **Security Overview:** review event totals, needs-review counts, high or critical activity, denied or blocked activity, failed tools, sessions, top harnesses, top models, top repositories, and MCP servers.+- **Runtime inventory:** inspect [Inventory Local Agent Runtimes](/guides/inventory) for detected harnesses and telemetry status across supported local runtimes.+- **Runtime-log source:** see source details and warnings when a system collector may be writing OTLP events to a different log.+- **Rotated archives:** open event details from active or archived runtime logs, even when older archive numbers have already been pruned.++The Detections and Findings screens mirror the same local rule resolution and scan behavior used by [`beacon scan`](/cli/scan). They do not fetch rule packs, mutate telemetry, or require a hosted Beacon account.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--addr <host:port>` | Local dashboard listen address |+| `--open` | Open the dashboard in a browser |++## beacon endpoint dashboard++`beacon endpoint dashboard` starts a local-only dashboard for inspecting Beacon runtime JSONL events.++```bash title="Open the local dashboard"+beacon endpoint dashboard+```++The dashboard binds to loopback by default and reads the configured runtime log and its local rotated archives. It is intended for local investigation, not remote administration.++### Examples++Start the dashboard:++```bash title="Start the dashboard"+beacon endpoint dashboard+```++Open the dashboard in your browser:++```bash title="Open the dashboard in your browser"+beacon endpoint dashboard --open+```++Use a custom local address:++```bash title="Use a custom local address"+beacon endpoint dashboard --addr 127.0.0.1:8765+```++Inspect a custom runtime log:++```bash title="Inspect a custom runtime log"+beacon endpoint dashboard --log-path /path/to/runtime.jsonl+```++<Note>+ During normal use, the dashboard has no external network dependency. It reads local Beacon logs and serves a local read-only UI from a loopback address.+</Note>++## Related++<Columns cols={2}>+ <Card title="Detections" icon="shield-halved" href="/detections">+ Understand the rule format, detection flow, and findings model.+ </Card>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run the same active rules from the command line.+ </Card>+ <Card title="Inventory Local Agent Runtimes" icon="clipboard-list" href="/guides/inventory">+ Understand configured, detected, and observed local runtime coverage.+ </Card>+ <Card title="beacon endpoint inventory" icon="terminal" href="/cli/endpoint-inventory">+ Print endpoint inventory from the command line or as JSON.+ </Card>+</Columns>diff --git a/docs/cli/datadog.mdx b/docs/cli/datadog.mdxnew file mode 100644index 00000000..1d793280--- /dev/null+++ b/docs/cli/datadog.mdx@@ -0,0 +1,175 @@+---+title: "beacon endpoint datadog"+description: "Generate Datadog Agent custom log collection content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint datadog` to generate Datadog Agent custom log collection content for Beacon endpoint events. The generated pack tails Beacon's local `runtime.jsonl` file with the Datadog Agent and tags events with `service:beacon-endpoint-agent`, `source:beacon`, `vendor:beacon`, and `product:endpoint-agent`.++Beacon does not store Datadog API keys or site configuration. Keep Datadog credentials, site settings, and transport in the Datadog Agent or your endpoint-management secret store.++```bash title="Command syntax"+beacon endpoint datadog [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint datadog print-config" icon="file-lines" href="#beacon-endpoint-datadog-print-config">+ Print a Datadog Agent custom log config for the configured runtime log.+ </Card>+ <Card title="beacon endpoint datadog install-pack" icon="box-archive" href="#beacon-endpoint-datadog-install-pack">+ Write Datadog Agent custom log integration content to a directory.+ </Card>+ <Card title="beacon endpoint datadog validate" icon="check" href="#beacon-endpoint-datadog-validate">+ Write and describe a Beacon Datadog validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint datadog print-config++`beacon endpoint datadog print-config` prints a Datadog Agent custom log config for the configured Beacon runtime JSONL log.++```bash title="Print the configuration"+beacon endpoint datadog print-config+```++Use this command when you want to copy the custom log configuration into an existing Datadog Agent configuration workflow.++### Examples++Print config for the default per-user Beacon install:++```bash title="Print config for the default per-user Beacon install"+beacon endpoint datadog print-config+```++Print config for a system-mode MDM deployment:++```bash title="Print config for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint datadog print-config --system+```++Print config for a custom runtime log:++```bash title="Print config for a custom runtime log"+beacon endpoint datadog print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint datadog install-pack++`beacon endpoint datadog install-pack` writes Datadog Agent custom log integration content to a directory.++```bash title="Generate the integration pack"+beacon endpoint datadog install-pack --output ./beacon-datadog-pack+```++The pack includes Datadog Agent `conf.yaml`, setup instructions, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint datadog install-pack --output ./beacon-datadog-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint datadog install-pack \+ --system \+ --output ./beacon-datadog-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint datadog install-pack \+ --output ./beacon-datadog-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Datadog content pack. Defaults to `beacon-datadog-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint datadog validate++`beacon endpoint datadog validate` writes a Beacon validation event to the runtime JSONL log and prints the expected Datadog fields and validation query.++```bash title="Run the validation check"+beacon endpoint datadog validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint datadog validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint datadog validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint datadog validate --log-path /path/to/runtime.jsonl+```++The validation command prints a Datadog Log Explorer query:++```text+service:beacon-endpoint-agent "Beacon endpoint datadog validation event"+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Datadog forwarding" icon="chart-line" href="/log-forwarding/datadog">+ Configure Datadog Agent custom log collection for Beacon events.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/elastic.mdx b/docs/cli/elastic.mdxnew file mode 100644index 00000000..5300bc86--- /dev/null+++ b/docs/cli/elastic.mdx@@ -0,0 +1,221 @@+---+title: "beacon endpoint elastic"+description: "Generate Elastic content and run a local Elasticsearch, Kibana, and Filebeat validation stack for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint elastic` to generate Elastic integration content for Beacon endpoint events. The generated pack tails Beacon's local `runtime.jsonl` file with Filebeat or standalone Elastic Agent and installs Elasticsearch/Kibana assets around the `logs-beacon.endpoint-*` data stream pattern.++Beacon does not store Elastic cluster URLs or credentials. Keep `ES_HOSTS`, `ES_API_KEY`, usernames, passwords, and TLS settings in Filebeat, Elastic Agent, or your endpoint-management secret store.++```bash title="Command syntax"+beacon endpoint elastic [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint elastic print-config" icon="file-lines" href="#beacon-endpoint-elastic-print-config">+ Print a Filebeat config for the configured runtime log.+ </Card>+ <Card title="beacon endpoint elastic install-pack" icon="box-archive" href="#beacon-endpoint-elastic-install-pack">+ Write Elasticsearch, Kibana, Filebeat, and Elastic Agent content to a directory.+ </Card>+ <Card title="beacon endpoint elastic up" icon="play" href="#beacon-endpoint-elastic-up">+ Start a local Elasticsearch, Kibana, and Filebeat validation stack.+ </Card>+ <Card title="beacon endpoint elastic down" icon="stop" href="#beacon-endpoint-elastic-down">+ Stop the local Elastic validation stack.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint elastic print-config++`beacon endpoint elastic print-config` prints a Filebeat filestream config for the configured Beacon runtime JSONL log.++```bash title="Print the configuration"+beacon endpoint elastic print-config+```++Use this command when you want to copy the Filebeat input into an existing endpoint shipper configuration.++### Examples++Print config for the default per-user Beacon install:++```bash title="Print config for the default per-user Beacon install"+beacon endpoint elastic print-config+```++Print config for a system-mode MDM deployment:++```bash title="Print config for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint elastic print-config --system+```++Print config for a custom runtime log:++```bash title="Print config for a custom runtime log"+beacon endpoint elastic print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint elastic install-pack++`beacon endpoint elastic install-pack` writes an Elastic content pack to a directory.++```bash title="Generate the integration pack"+beacon endpoint elastic install-pack --output ./beacon-elastic-pack+```++The pack includes Filebeat and standalone Elastic Agent configuration, Elasticsearch ILM, component templates, an index template, an ingest pipeline, starter Kibana saved objects, a sample event, and a local Docker Compose validation stack.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint elastic install-pack --output ./beacon-elastic-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint elastic install-pack \+ --system \+ --output ./beacon-elastic-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint elastic install-pack \+ --output ./beacon-elastic-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Elastic content pack. Defaults to `beacon-elastic-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint elastic up++`beacon endpoint elastic up` starts a loopback-only local Elasticsearch, Kibana, and Filebeat stack for validating Beacon event ingestion.++```bash title="Command example"+beacon endpoint elastic up --pack-dir ./beacon-elastic-pack+```++The command creates the pack if it does not exist, ensures the runtime log exists, mounts the runtime log directory into Filebeat, loads Elasticsearch and Kibana assets, and starts the stack with Docker Compose.++When the stack is healthy, Beacon events are searchable in the `logs-beacon.endpoint-*` data stream using the `beacon.*` fields produced by the ingest pipeline:++```bash title="When the stack is healthy, Beacon events are searchable in the logs-beacon.endpoint-* data stream using the beacon.* fields produced by the ingest pipeline"+curl "http://localhost:9200/logs-beacon.endpoint-*/_search?q=beacon.product:endpoint-agent"+curl "http://localhost:9200/logs-beacon.endpoint-*/_search?q=beacon.prompt.text:%22Beacon%20E2E%22"+curl "http://localhost:9200/logs-beacon.endpoint-*/_search?q=beacon.harness.name:cursor"+```++### Examples++Start the local validation stack with the default pack directory:++```bash title="Start the local validation stack with the default pack directory"+beacon endpoint elastic up+```++Start with a generated pack directory:++```bash title="Start with a generated pack directory"+beacon endpoint elastic install-pack --output ./beacon-elastic-pack+beacon endpoint elastic up --pack-dir ./beacon-elastic-pack+```++Use alternate local ports:++```bash title="Use alternate local ports"+BEACON_ELASTIC_ES_PORT=19200 \+BEACON_ELASTIC_KIBANA_PORT=15601 \+beacon endpoint elastic up+```++### Flags++| Flag | Description |+|------|-------------|+| `--pack-dir <dir>` | Elastic pack directory. Defaults to `beacon-elastic-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++<Note>+ `elastic up` is a macOS local validation helper that expects Docker Desktop or Docker Compose. For production, run Filebeat or standalone Elastic Agent through your endpoint-management system instead.+</Note>++## beacon endpoint elastic down++`beacon endpoint elastic down` stops the local Elastic validation stack for a generated pack directory.++```bash title="Command example"+beacon endpoint elastic down --pack-dir ./beacon-elastic-pack+```++### Examples++Stop the local validation stack:++```bash title="Stop the local validation stack"+beacon endpoint elastic down+```++Stop a stack that uses a custom pack directory:++```bash title="Stop a stack that uses a custom pack directory"+beacon endpoint elastic down --pack-dir ./beacon-elastic-pack+```++### Flags++| Flag | Description |+|------|-------------|+| `--pack-dir <dir>` | Elastic pack directory. Defaults to `beacon-elastic-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Elastic forwarding" icon="magnifying-glass" href="/log-forwarding/elastic">+ Set up local, Elastic Cloud, or self-managed Elastic forwarding.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-bundle-diagnostics.mdx b/docs/cli/endpoint-bundle-diagnostics.mdxnew file mode 100644index 00000000..dcfa0fff--- /dev/null+++ b/docs/cli/endpoint-bundle-diagnostics.mdx@@ -0,0 +1,85 @@+---+title: "beacon endpoint bundle-diagnostics"+description: "Write a redacted local diagnostics bundle for Beacon endpoint support"+---++## Command Overview++`beacon endpoint bundle-diagnostics` writes a redacted local diagnostics bundle for Beacon endpoint support and troubleshooting.++```bash title="Command syntax"+beacon endpoint bundle-diagnostics --output ./beacon-diagnostics+```++The bundle is designed for support workflows where an operator needs endpoint configuration, health, inventory, and runtime-log context without exposing secrets by default. Beacon redacts sensitive destination values and only includes runtime event data when explicitly requested.++## Bundle Contents++The diagnostics bundle can include:++- Endpoint status and doctor output+- Endpoint configuration with secrets redacted+- Runtime inventory+- Local path and service metadata+- Optional redacted event summaries+- Optional raw runtime JSONL events++If the runtime log does not exist yet, Beacon still writes an empty summary file for requested event summaries so bundle structure remains predictable.++<Warning>+ `--include-raw-events` can include prompt, tool, file, and command telemetry from the endpoint runtime log. Review the bundle before sharing it outside your organization.+</Warning>++## Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the diagnostics bundle |+| `--include-event-summaries` | Include redacted event summaries |+| `--include-raw-events` | Include raw runtime JSONL events |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Examples++Write a basic diagnostics bundle:++```bash title="Write a basic diagnostics bundle"+beacon endpoint bundle-diagnostics --output ./beacon-diagnostics+```++Include redacted event summaries:++```bash title="Include redacted event summaries"+beacon endpoint bundle-diagnostics \+ --output ./beacon-diagnostics \+ --include-event-summaries+```++Include raw runtime events for local troubleshooting:++```bash title="Include raw runtime events for local troubleshooting"+beacon endpoint bundle-diagnostics \+ --output ./beacon-diagnostics \+ --include-raw-events+```++Bundle diagnostics for a system-mode deployment:++```bash title="Bundle diagnostics for a system-mode deployment"+sudo beacon endpoint bundle-diagnostics \+ --system \+ --output ./beacon-diagnostics+```++## Related++<Columns cols={2}>+ <Card title="Endpoint doctor" icon="stethoscope" href="/cli/endpoint-doctor">+ Run local endpoint health checks with pass/fail exit behavior.+ </Card>+ <Card title="Endpoint config" icon="gear" href="/cli/endpoint-config">+ Inspect and validate endpoint configuration with secrets redacted.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-config.mdx b/docs/cli/endpoint-config.mdxnew file mode 100644index 00000000..4903bc7a--- /dev/null+++ b/docs/cli/endpoint-config.mdx@@ -0,0 +1,92 @@+---+title: "beacon endpoint config"+description: "Inspect, validate, and update Beacon endpoint configuration"+---++## Command Overview++`beacon endpoint config` inspects and safely updates the local Beacon endpoint configuration.++```bash title="Command syntax"+beacon endpoint config [command]+```++Use this command group when you need to review the effective endpoint configuration or validate config file contents without reinstalling the endpoint agent.++## Commands++<Columns cols={2}>+ <Card title="show" icon="eye" href="#beacon-endpoint-config-show">+ Print endpoint configuration with secrets redacted.+ </Card>+ <Card title="validate" icon="check" href="#beacon-endpoint-config-validate">+ Validate endpoint configuration and destination settings.+ </Card>+</Columns>++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint config show++`beacon endpoint config show` prints the endpoint configuration with secrets redacted.++```bash title="Manage endpoint configuration"+beacon endpoint config show+```++Splunk HEC tokens and other secret destination values are not printed. Use this command before support handoffs or diagnostics collection when you need to confirm paths, ports, harnesses, and destination settings.++### Examples++Show per-user endpoint config:++```bash title="Show per-user endpoint config"+beacon endpoint config show+```++Show system endpoint config:++```bash title="Show system endpoint config"+sudo beacon endpoint config show --system+```++## beacon endpoint config validate++`beacon endpoint config validate` validates the endpoint configuration file.++```bash title="Run the validation check"+beacon endpoint config validate+```++Validation checks endpoint and destination configuration. For example, Splunk HEC and Falcon LogScale HEC forwarding require both an endpoint URL and token when configured.++### Examples++Validate per-user endpoint config:++```bash title="Validate per-user endpoint config"+beacon endpoint config validate+```++Validate system endpoint config:++```bash title="Validate system endpoint config"+sudo beacon endpoint config validate --system+```++## Related++<Columns cols={2}>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Configure endpoint telemetry and collector service files.+ </Card>+ <Card title="Diagnostics bundle" icon="file-zipper" href="/cli/endpoint-bundle-diagnostics">+ Collect redacted endpoint support artifacts.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-discover.mdx b/docs/cli/endpoint-discover.mdxnew file mode 100644index 00000000..b421d0b9--- /dev/null+++ b/docs/cli/endpoint-discover.mdx@@ -0,0 +1,63 @@+---+title: "beacon endpoint discover"+description: "Discover supported local agent harnesses and their Beacon telemetry state"+---++## Command Overview++`beacon endpoint discover` lists supported [agent harnesses](/runtimes) detected on the local host.++```bash title="Command syntax"+beacon endpoint discover+```++Beacon discovers local runtime surfaces and reports their telemetry configuration state, including whether supported configuration appears Beacon-managed or customer-managed. By default, discover prints detected targets. Add `--all` to include every supported runtime target, including runtimes that are not detected on the host. OpenClaw Gateway is validated through the `beacon endpoint integrations openclaw` commands after Gateway diagnostics export is configured.++Gemini CLI discovery looks for the `gemini` executable and `~/.gemini/settings.json`, then checks whether local OTLP telemetry is enabled for Beacon. VS Code discovery checks Copilot Chat OpenTelemetry configuration and reports Beacon-managed state when the OTLP endpoint points at Beacon's local receiver. GitHub Copilot CLI discovery looks for the `copilot` executable or `~/.copilot/config.json`, then validates that `COPILOT_OTEL_ENABLED=true` and the effective OTLP endpoint points at Beacon's local HTTP receiver, usually `http://127.0.0.1:4318`. Claude Code discovery looks for the `claude` executable and Claude settings paths; optional Claude hook status is available through `beacon endpoint hooks status --harness claude`. Antigravity CLI discovery looks for the `antigravity` or `antigravity-cli` executable, `~/.gemini/config`, or `./.agents`, then checks whether Beacon endpoint hooks are installed in `~/.gemini/config/hooks.json` or `./.agents/hooks.json`. Grok Build discovery checks whether Beacon's managed hook file is installed at `~/.grok/hooks/beacon-endpoint.json` or `./.grok/hooks/beacon-endpoint.json`. Hermes Agent discovery looks for the `hermes` executable or `~/.hermes`, then checks `~/.hermes/config.yaml` for Beacon shell hooks with `BEACON_ENDPOINT_MODE=1` and `--platform hermes`. OpenCode discovery looks for the `opencode` executable or `~/.config/opencode`, then checks whether Beacon's managed plugin is installed at `~/.config/opencode/plugins/beacon.ts`. Devin CLI discovery looks for the `devin` executable, `~/.config/devin`, or `./.devin`, then checks whether Beacon endpoint hooks are installed in `~/.config/devin/config.json` or `./.devin/hooks.v1.json`; `devin` remains a legacy alias for `devin-cli`. Devin Desktop discovery checks Cascade/Windsurf hook files at `~/.codeium/windsurf/hooks.json` or `./.windsurf/hooks.json`. Factory Droid discovery looks for the `droid` executable and validates the effective `OTEL_TELEMETRY_ENDPOINT` launch environment without treating customer-managed shell export values as Beacon-owned configuration. Set MDM-managed launch environments to Beacon's local OTLP HTTP receiver through MDM or another customer-owned launch policy.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print discovery as JSON |+| `--all` | Discover all supported runtime targets, not only detected targets |++## Examples++Show detected runtimes:++```bash title="Show detected runtimes"+beacon endpoint discover+```++Print discovery results as JSON:++```bash title="Print discovery results as JSON"+beacon endpoint discover --json+```++Show all supported runtime targets:++```bash title="Show all supported runtime targets"+beacon endpoint discover --all+```++Use system endpoint paths while discovering:++```bash title="Use system endpoint paths while discovering"+sudo beacon endpoint discover --system+```++## Related++<Columns cols={2}>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Compare supported runtimes and telemetry modes.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install and inspect hook-based endpoint telemetry.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-doctor.mdx b/docs/cli/endpoint-doctor.mdxnew file mode 100644index 00000000..80753e80--- /dev/null+++ b/docs/cli/endpoint-doctor.mdx@@ -0,0 +1,103 @@+---+title: "beacon endpoint doctor"+description: "Run local Beacon endpoint health checks"+---++## Command Overview++`beacon endpoint doctor` runs local health checks for the Beacon endpoint agent and exits non-zero when any hard check fails. Add `--fix` to apply safe remediations for supported findings.++```bash title="Command syntax"+beacon endpoint doctor+```++Use doctor when rollout automation, support scripts, or an operator needs a pass/fail health signal. For a broader status view that includes collector readiness, service state, discovered harnesses, and last-event state, use [`beacon endpoint status`](/cli/endpoint-status).++`beacon doctor` is a top-level alias for `beacon endpoint doctor`.++## Checks++Doctor verifies:++- Endpoint configuration file+- Endpoint configuration validity+- Collector configuration file+- Runtime JSONL log path+- Runtime log permissions+- launchd plist on macOS+- Configured harness telemetry and recent observed events++The runtime log itself can be missing before the first event is written. In that case, doctor reports a warning instead of a hard failure.++## Fix mode++`beacon endpoint doctor --fix` plans and applies safe remediations for supported findings. It can create a missing runtime log and, on macOS, recreate managed collector configuration and launchd service files when the endpoint configuration is valid.++Fix mode deliberately skips cases that need operator intent, such as invalid endpoint configuration, missing harness setup, missing observed runtime events, unsafe runtime log permissions, or non-macOS service repair. If a collector service repair fails, Beacon rolls back the files and service state it changed where possible, then refreshes doctor results so the printed checks reflect any partial fixes that succeeded.++JSON output includes applied and skipped fix details so deployment scripts can distinguish remediated checks from findings that still need manual action.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--fix` | Apply safe remediations for supported failed or warning checks |+| `--json` | Print doctor results as JSON |++## Examples++Run health checks with the default per-user paths:++```bash title="Run health checks with the default per-user paths"+beacon endpoint doctor+```++Run health checks and apply supported fixes:++```bash title="Run health checks and apply supported fixes"+beacon endpoint doctor --fix+```++Check a root-managed endpoint deployment:++```bash title="Check a root-managed endpoint deployment"+sudo beacon endpoint doctor --system+```++Repair supported root-managed findings:++```bash title="Repair supported root-managed findings"+sudo beacon endpoint doctor --system --fix+```++Print machine-readable check results:++```bash title="Print machine-readable check results"+beacon endpoint doctor --json+```++Print machine-readable results with applied and skipped fix details:++```bash title="Print machine-readable results with applied and skipped fix details"+beacon endpoint doctor --fix --json+```++Use the top-level alias:++```bash title="Use the top-level alias"+beacon doctor+```++## Related++<Columns cols={2}>+ <Card title="Endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Inspect collector, service, harness, diagnostics, and runtime-log state.+ </Card>+ <Card title="Endpoint inventory" icon="clipboard-list" href="/cli/endpoint-inventory">+ Show configured, detected, and observed endpoint inventory.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-install.mdx b/docs/cli/endpoint-install.mdxnew file mode 100644index 00000000..763f7e72--- /dev/null+++ b/docs/cli/endpoint-install.mdx@@ -0,0 +1,170 @@+---+title: "beacon endpoint install"+description: "Install or update the local Beacon endpoint collector and runtime telemetry"+---++## Command Overview++`beacon endpoint install` configures the local endpoint agent, writes the OpenTelemetry Collector configuration, installs the launchd service, configures selected agent harnesses, and optionally adds Splunk HEC or Falcon LogScale HEC collector destinations.++```bash title="Command syntax"+beacon endpoint install+```++By default, Beacon configures Claude Code and Codex CLI telemetry for local or customer-controlled runtime JSONL logs. Gemini CLI and VS Code Copilot telemetry are opt-in with the `gemini` and `vscode` harnesses. Claude Code can also use optional hook telemetry for richer lifecycle, subagent, permission, and tool detail; install the endpoint agent first, then add Claude hooks with `beacon endpoint hooks install --harness claude`. Beacon applies redaction, sanitization, truncation, and event-size limits before writing supported content fields. GitHub Copilot CLI and Factory Droid OTLP are managed through their launch environments, so Beacon validates their telemetry state but does not mutate shell profiles during install.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon. Requires root |+| `--log-path <path>` | Runtime JSONL log path |+| `--harness <list>` | Comma-separated harnesses to configure. Defaults to `claude,codex`; include `gemini` for Gemini CLI, `vscode` for VS Code Copilot telemetry, `devin-cli` for Devin CLI hooks, or `devin-desktop` for Devin Desktop hooks. Claude Code, Grok Build, Hermes Agent, Cursor, Factory, OpenCode, and optional VS Code hook telemetry are managed with `beacon endpoint hooks`. GitHub Copilot CLI and Factory Droid OTLP endpoints are managed through their launch environments |+| `--otlp-grpc-port <port>` | Local OTLP gRPC port. Defaults to `4317` |+| `--otlp-http-port <port>` | Local OTLP HTTP port. Defaults to `4318` |+| `--collector <path>` | Path to a `beacon-otelcol` binary |+| `--no-start` | Write files without starting the launchd service |+| `--include-runtime-metrics` | Include generic process, runtime, and harness operational OTLP metrics in Beacon JSONL. By default, low-signal metrics such as process CPU, memory, Node.js event loop, V8 heap, GitHub Copilot CLI, and OpenClaw operational metrics are filtered out |+| `--include-codex-spans` | Include high-volume Codex OTLP spans for troubleshooting. By default, Beacon records Codex semantic logs and suppresses raw Codex spans |+| `--splunk-hec-endpoint <url>` | Splunk HEC endpoint URL |+| `--splunk-hec-token <token>` | Splunk HEC token |+| `--splunk-index <index>` | Optional Splunk index |+| `--splunk-source <source>` | Optional Splunk source |+| `--splunk-sourcetype <type>` | Optional Splunk sourcetype |+| `--splunk-insecure-skip-verify` | Skip Splunk HEC TLS certificate verification |+| `--splunk-ca-file <path>` | Optional CA certificate path for Splunk HEC TLS verification |+| `--falcon-hec-endpoint <url>` | Falcon LogScale HEC endpoint URL |+| `--falcon-hec-token <token>` | Falcon LogScale ingest token |+| `--falcon-index <repository>` | Optional Falcon LogScale repository for multi-repository tokens |+| `--falcon-source <source>` | Optional Falcon LogScale source |+| `--falcon-sourcetype <type>` | Optional Falcon LogScale parser or sourcetype |+| `--falcon-insecure-skip-verify` | Skip Falcon LogScale HEC TLS certificate verification |+| `--falcon-ca-file <path>` | Optional CA certificate path for Falcon LogScale HEC TLS verification |++## Examples++Install with the default per-user paths:++```bash title="Install with the default per-user paths"+beacon endpoint install+```++Install without starting the launchd service:++```bash title="Install without starting the launchd service"+beacon endpoint install --no-start+```++Configure only one harness:++```bash title="Configure only one harness"+beacon endpoint install --harness claude+```++Opt in Gemini CLI telemetry alongside the defaults:++```bash title="Opt in Gemini CLI telemetry alongside the defaults"+beacon endpoint install --harness claude,codex,gemini+```++Configure VS Code Copilot telemetry:++```bash title="Configure VS Code Copilot telemetry"+beacon endpoint install --harness vscode+```++Configure Devin CLI and Devin Desktop hooks alongside the default OTLP harnesses:++```bash title="Configure Devin CLI and Devin Desktop hooks alongside the default OTLP harnesses"+beacon endpoint install --harness claude,codex,devin-cli,devin-desktop+```++Include low-level runtime OTLP metrics that are filtered from JSONL by default:++```bash title="Include low-level runtime OTLP metrics that are filtered from JSONL by default"+beacon endpoint install --include-runtime-metrics+```++Include raw Codex spans for troubleshooting:++```bash title="Include raw Codex spans for troubleshooting"+beacon endpoint install --include-codex-spans+```++Install with system paths for a root-managed package or MDM deployment:++```bash title="Install with system paths for a root-managed package or MDM deployment"+sudo beacon endpoint install --system --harness claude,codex+```++Install and forward to CrowdStrike Falcon LogScale HEC:++```bash title="Install and forward to CrowdStrike Falcon LogScale HEC"+sudo beacon endpoint install \+ --system \+ --falcon-hec-endpoint https://cloud.<region>.humio.com/api/v1/ingest/hec \+ --falcon-hec-token "$FALCON_HEC_TOKEN" \+ --falcon-index beacon+```++Configure Factory Droid's OTLP endpoint through MDM or another customer-owned launch policy:++```bash title="Configure Factory Droid's OTLP endpoint through MDM or another customer-owned launch policy"+export OTEL_TELEMETRY_ENDPOINT="http://127.0.0.1:4318"+droid exec "review this repository"+```++Configure GitHub Copilot CLI's OTLP endpoint through MDM or another customer-owned launch policy:++```bash title="Configure GitHub Copilot CLI's OTLP endpoint through MDM or another customer-owned launch policy"+export COPILOT_OTEL_ENABLED="true"+export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318"+```++For richer hook telemetry, install runtime hooks after the endpoint configuration exists:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness antigravity,claude,cursor,devin-cli,devin-desktop,factory,grok,hermes,opencode+```++Install Claude Code hooks at the user level:++```bash title="Install Claude Code hooks at the user level"+beacon endpoint hooks install --harness claude+```++Install Grok Build hooks at the user level:++```bash title="Install Grok Build hooks at the user level"+beacon endpoint hooks install --harness grok+```++Install Hermes Agent hooks at the user level:++```bash title="Install Hermes Agent hooks at the user level"+beacon endpoint hooks install --harness hermes+```++Hermes hooks write `~/.hermes/config.yaml` and support user-level installs only.++Project-level Grok Build hooks write `./.grok/hooks/beacon-endpoint.json` and require `/hooks-trust` in Grok before they execute:++```bash title="Install project-level Grok Build hooks"+beacon endpoint hooks install --harness grok --level project+```++<Note>+ Production endpoint install is currently supported on macOS. Omit `--system` for the default non-root local install. GitHub Copilot CLI and Factory Droid OTLP use launch-environment settings rather than Beacon-managed shell-profile edits.+</Note>++## Related++<Columns cols={2}>+ <Card title="Endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Inspect collector health, runtime log state, harnesses, diagnostics, and forwarding readiness.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install hook-based telemetry after the endpoint collector is configured.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-inventory.mdx b/docs/cli/endpoint-inventory.mdxnew file mode 100644index 00000000..6d0841ea--- /dev/null+++ b/docs/cli/endpoint-inventory.mdx@@ -0,0 +1,85 @@+---+title: "beacon endpoint inventory"+description: "Show installed, configured, and observed Beacon endpoint inventory"+---++## Command Overview++`beacon endpoint inventory` shows Beacon endpoint inventory across configured harnesses, detected local runtimes, hook integrations, and observed runtime events.++```bash title="Command syntax"+beacon endpoint inventory+```++Use inventory when you need a fleet-friendly view of what Beacon is configured to monitor and what the endpoint has actually observed. By default, inventory focuses on configured, detected, or observed targets. Add `--all` to include every supported target, including runtimes and configuration files that are not detected on the host.++`beacon inventory` is a top-level alias for `beacon endpoint inventory`.++## Inventory Data++Inventory can include:++- Endpoint config path, runtime log path, and configured OTLP harnesses+- Detected supported runtimes and telemetry status, including MDM-managed launch-environment state for GitHub Copilot CLI and Factory Droid+- Hook integration status for Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory Droid, Grok Build, Hermes Agent, and OpenCode+- Supported agent configuration files and MCP server configuration context where Beacon can inspect them locally+- Recently observed Beacon runtime events when the runtime log exists+- Admin-configured integration observations such as Claude Cowork and OpenClaw Gateway events++Human-readable and JSON inventory use the same default filtering: configuration records and MCP server context are shown when they are relevant to the local endpoint state. Use `--all` with `--json` when you need the complete supported inventory surface for fleet comparison or troubleshooting.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print inventory as JSON |+| `--all` | Include all supported targets, not only configured, detected, or observed targets |++## Examples++Show endpoint inventory:++```bash title="Show endpoint inventory"+beacon endpoint inventory+```++Include all supported targets:++```bash title="Include all supported targets"+beacon endpoint inventory --all+```++Print machine-readable inventory:++```bash title="Print machine-readable inventory"+beacon endpoint inventory --json+```++Inventory a system-mode endpoint:++```bash title="Inventory a system-mode endpoint"+sudo beacon endpoint inventory --system --all+```++Use the top-level alias:++```bash title="Use the top-level alias"+beacon inventory --json+```++## Related++<Columns cols={2}>+ <Card title="Inventory Local Agent Runtimes" icon="clipboard-list" href="/guides/inventory">+ Understand dashboard Inventory and common runtime coverage workflows.+ </Card>+ <Card title="Endpoint discover" icon="magnifying-glass" href="/cli/endpoint-discover">+ Discover supported local agent harnesses and telemetry state.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install and inspect hook-based endpoint telemetry.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-paths.mdx b/docs/cli/endpoint-paths.mdxnew file mode 100644index 00000000..c0c22d2f--- /dev/null+++ b/docs/cli/endpoint-paths.mdx@@ -0,0 +1,44 @@+---+title: "Endpoint Paths and Ports"+description: "Review Beacon user-mode and system-mode paths, ports, and hook locations"+---++## File Locations++Beacon manages different paths depending on whether you install in user mode or system mode. The active runtime log stays at `runtime.jsonl` and rotates at 10 MiB, retaining five numbered local archives by default.++| Item | User mode | System mode |+|------|-----------|-------------|+| Config | `~/.beacon/endpoint/config.json` | `/Library/Application Support/Beacon/Endpoint/config.json` |+| Base directory | `~/.beacon/endpoint` | `/Library/Application Support/Beacon/Endpoint` |+| Runtime log | `~/.beacon/endpoint/logs/runtime.jsonl` | `/var/log/beacon-agent/runtime.jsonl` |+| Rotated runtime archives | `~/.beacon/endpoint/logs/runtime.jsonl.1` through `.5` | `/var/log/beacon-agent/runtime.jsonl.1` through `.5` |+| Threat rule store | `~/.beacon/endpoint/rules` | `/Library/Application Support/Beacon/Endpoint/rules` |+| Collector config | `~/.beacon/endpoint/otelcol.yaml` | `/Library/Application Support/Beacon/Endpoint/otelcol.yaml` |+| OTLP gRPC | `127.0.0.1:4317` | `127.0.0.1:4317` |+| OTLP HTTP | `127.0.0.1:4318` | `127.0.0.1:4318` |++Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode hooks install an embedded `beacon-hooks` adapter under the Beacon endpoint base directory.++Hook and plugin configuration is written to:++- Antigravity CLI: `~/.gemini/config/hooks.json` or `./.agents/hooks.json`+- Claude Code: `~/.claude/settings.json` or `./.claude/settings.json`+- Cursor: `~/.cursor/hooks.json` or `./.cursor/hooks.json`+- Devin CLI: `~/.config/devin/config.json` or `./.devin/hooks.v1.json`+- Devin Desktop: `~/.codeium/windsurf/hooks.json` or `./.windsurf/hooks.json`+- Factory: `~/.factory/settings.json` or `./.factory/settings.json`+- Grok Build: `~/.grok/hooks/beacon-endpoint.json` or `./.grok/hooks/beacon-endpoint.json`+- Hermes Agent: `~/.hermes/config.yaml`+- OpenCode: `~/.config/opencode/plugins/beacon.ts` or `./.opencode/plugins/beacon.ts`++## Related++<Columns cols={2}>+ <Card title="Endpoint telemetry" icon="satellite-dish" href="/deployment/open-source#configure-endpoint-telemetry">+ Configure the local endpoint agent and harnesses.+ </Card>+ <Card title="beacon endpoint" icon="terminal" href="/cli/endpoint">+ Review endpoint command behavior and common paths.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-repair.mdx b/docs/cli/endpoint-repair.mdxnew file mode 100644index 00000000..c9c3df8b--- /dev/null+++ b/docs/cli/endpoint-repair.mdx@@ -0,0 +1,120 @@+---+title: "beacon endpoint repair"+description: "Repair Beacon endpoint service files, collector configuration, and telemetry settings"+---++## Command Overview++`beacon endpoint repair` reapplies Beacon endpoint service files, collector configuration, harness telemetry configuration, and optional destinations such as Splunk HEC or Falcon LogScale HEC. It is useful after upgrading Beacon, changing ports, changing SIEM settings, or correcting local configuration drift.++```bash title="Command syntax"+beacon endpoint repair+```++Repair preserves runtime logs and harness telemetry configuration while reinstalling managed endpoint files. GitHub Copilot CLI and Factory Droid launch-environment settings remain customer-managed; repair validates their telemetry state but does not write those environment settings.++During repair, Beacon removes the existing managed service before reinstalling it so an unhealthy collector can release local OTLP ports. If reinstall cannot complete, Beacon restores the previous endpoint configuration so local state is not left partially rolled back.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--harness <list>` | Comma-separated harnesses to configure. Defaults to `claude,codex`; include `gemini` to opt in Gemini CLI telemetry, `vscode` for VS Code Copilot telemetry, `devin-cli` for Devin CLI hooks, or `devin-desktop` for Devin Desktop hooks. Claude Code, Grok Build, Cursor, Factory, and OpenCode hook telemetry are managed with `beacon endpoint hooks`. GitHub Copilot CLI and Factory Droid OTLP endpoints are managed through their launch environments |+| `--otlp-grpc-port <port>` | Local OTLP gRPC port. Defaults to `4317` |+| `--otlp-http-port <port>` | Local OTLP HTTP port. Defaults to `4318` |+| `--collector <path>` | Path to a `beacon-otelcol` binary |+| `--no-start` | Write files without starting the launchd service |+| `--include-runtime-metrics` | Include generic process, runtime, and harness operational OTLP metrics in Beacon JSONL. By default, low-signal metrics such as process CPU, memory, Node.js event loop, V8 heap, GitHub Copilot CLI, and OpenClaw operational metrics are filtered out |+| `--include-codex-spans` | Include high-volume Codex OTLP spans for troubleshooting. By default, Beacon records Codex semantic logs and suppresses raw Codex spans |+| `--splunk-hec-endpoint <url>` | Splunk HEC endpoint URL |+| `--splunk-hec-token <token>` | Splunk HEC token |+| `--splunk-index <index>` | Optional Splunk index |+| `--splunk-source <source>` | Optional Splunk source |+| `--splunk-sourcetype <type>` | Optional Splunk sourcetype |+| `--splunk-insecure-skip-verify` | Skip Splunk HEC TLS certificate verification |+| `--splunk-ca-file <path>` | Optional CA certificate path for Splunk HEC TLS verification |+| `--falcon-hec-endpoint <url>` | Falcon LogScale HEC endpoint URL |+| `--falcon-hec-token <token>` | Falcon LogScale ingest token |+| `--falcon-index <repository>` | Optional Falcon LogScale repository for multi-repository tokens |+| `--falcon-source <source>` | Optional Falcon LogScale source |+| `--falcon-sourcetype <type>` | Optional Falcon LogScale parser or sourcetype |+| `--falcon-insecure-skip-verify` | Skip Falcon LogScale HEC TLS certificate verification |+| `--falcon-ca-file <path>` | Optional CA certificate path for Falcon LogScale HEC TLS verification |++## Examples++Repair a default per-user install:++```bash title="Repair a default per-user install"+beacon endpoint repair+```++Repair and opt into low-level runtime OTLP metrics:++```bash title="Repair and opt into low-level runtime OTLP metrics"+beacon endpoint repair --include-runtime-metrics+```++Repair after changing Copilot CLI's customer-managed launch environment:++```bash title="Repair after changing Copilot CLI's customer-managed launch environment"+export COPILOT_OTEL_ENABLED="true"+export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318"+beacon endpoint repair+```++Repair and opt into raw Codex spans for troubleshooting:++```bash title="Repair and opt into raw Codex spans for troubleshooting"+beacon endpoint repair --include-codex-spans+```++Repair and configure Devin CLI and Devin Desktop hooks:++```bash title="Repair and configure Devin CLI and Devin Desktop hooks"+beacon endpoint repair --harness claude,codex,devin-cli,devin-desktop+```++Repair with custom OTLP ports:++```bash title="Repair with custom OTLP ports"+beacon endpoint repair --otlp-grpc-port 14317 --otlp-http-port 14318+```++Repair a system-mode deployment:++```bash title="Repair a system-mode deployment"+sudo beacon endpoint repair --system+```++Repair and add or update Splunk HEC export:++```bash title="Repair and add or update Splunk HEC export"+beacon endpoint repair \+ --splunk-hec-endpoint https://splunk.example:8088/services/collector \+ --splunk-hec-token "$SPLUNK_HEC_TOKEN" \+ --splunk-index beacon+```++Repair and add or update Falcon LogScale HEC export:++```bash title="Repair and add or update Falcon LogScale HEC export"+beacon endpoint repair \+ --falcon-hec-endpoint https://cloud.<region>.humio.com/api/v1/ingest/hec \+ --falcon-hec-token "$FALCON_HEC_TOKEN" \+ --falcon-index beacon+```++## Related++<Columns cols={2}>+ <Card title="Endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Check collector health and runtime telemetry state after repair.+ </Card>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Review install options and endpoint configuration defaults.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-status.mdx b/docs/cli/endpoint-status.mdxnew file mode 100644index 00000000..d21808a4--- /dev/null+++ b/docs/cli/endpoint-status.mdx@@ -0,0 +1,80 @@+---+title: "beacon endpoint status"+description: "Inspect local Beacon endpoint health, diagnostics, and runtime log state"+---++## Command Overview++`beacon endpoint status` reports the current local endpoint configuration, collector status, launchd service state, discovered harnesses, diagnostics, destination status, and the last observed Beacon event.++```bash title="Command syntax"+beacon endpoint status+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print status as JSON |++## Examples++Show endpoint status with the default per-user paths:++```bash title="Show endpoint status with the default per-user paths"+beacon endpoint status+```++Print machine-readable status:++```bash title="Print machine-readable status"+beacon endpoint status --json+```++Check a custom runtime log path:++```bash title="Check a custom runtime log path"+beacon endpoint status --log-path /path/to/runtime.jsonl+```++Check system-mode status for a root-managed deployment:++```bash title="Check system-mode status for a root-managed deployment"+sudo beacon endpoint status --system+```++## Output++Status includes:++- Agent Beacon CLI version+- Config path and runtime log path+- Runtime-log source warnings if a system collector may be writing OTLP events to a different log+- Collector health and configured OTLP ports+- launchd service status+- Discovered agent harnesses, including Beacon-managed or customer-managed telemetry state for Gemini CLI, VS Code Copilot, GitHub Copilot CLI, and Factory Droid when present+- Endpoint diagnostics+- Destination configuration in JSON output, including Splunk HEC or Falcon LogScale HEC endpoint, index, source, and sourcetype when configured+- Last Beacon event in the runtime log, when present++When Splunk HEC is configured, `--json` includes a `destinations.splunk_hec` object with `configured: true` and the non-secret destination settings. When Falcon LogScale HEC is configured, `--json` includes `destinations.falcon_hec` with the same non-secret fields. HEC tokens are not printed. File-based destinations such as Wazuh, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, and AWS S3 validate against the configured runtime log path and their generated shipper configuration.++## Related++<Columns cols={2}>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Configure the local collector and supported runtime telemetry.+ </Card>+ <Card title="Endpoint doctor" icon="stethoscope" href="/cli/endpoint-doctor">+ Run local health checks with pass/fail exit behavior.+ </Card>+ <Card title="Endpoint inventory" icon="clipboard-list" href="/cli/endpoint-inventory">+ Show configured, detected, and observed endpoint inventory.+ </Card>+ <Card title="Endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect Beacon runtime logs in a local dashboard.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-test-event.mdx b/docs/cli/endpoint-test-event.mdxnew file mode 100644index 00000000..b8abb83e--- /dev/null+++ b/docs/cli/endpoint-test-event.mdx@@ -0,0 +1,68 @@+---+title: "beacon endpoint test-event"+description: "Write a synthetic Beacon endpoint validation event"+---++## Command Overview++`beacon endpoint test-event` writes a synthetic validation event to the Beacon runtime JSONL log.++```bash title="Command syntax"+beacon endpoint test-event+```++Use a test event to validate local write permissions and downstream file-tail pipelines before relying on real agent activity. The command checks that the configured runtime log is writable, appends a known-good Beacon endpoint event, and reports the validation stages. `beacon endpoint validate-pipeline` is an alias.++For destination-specific validation guidance, use the SIEM commands such as [`beacon endpoint wazuh validate`](/cli/wazuh#beacon-endpoint-wazuh-validate), [`beacon endpoint datadog validate`](/cli/datadog#beacon-endpoint-datadog-validate), [`beacon endpoint sumo validate`](/cli/sumo#beacon-endpoint-sumo-validate), or [`beacon endpoint rapid7 validate`](/cli/rapid7#beacon-endpoint-rapid7-validate).++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print validation stages as JSON |++## Examples++Write a validation event to the default per-user runtime log:++```bash title="Write a validation event to the default per-user runtime log"+beacon endpoint test-event+```++Validate a custom runtime log:++```bash title="Validate a custom runtime log"+beacon endpoint test-event --log-path /path/to/runtime.jsonl+```++Print validation stages as JSON:++```bash title="Print validation stages as JSON"+beacon endpoint test-event --json+```++Use the pipeline-validation alias:++```bash title="Use the pipeline-validation alias"+beacon endpoint validate-pipeline+```++Validate a system-mode runtime log:++```bash title="Validate a system-mode runtime log"+sudo beacon endpoint test-event --system+```++## Related++<Columns cols={2}>+ <Card title="Endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Inspect endpoint health and last-event state.+ </Card>+ <Card title="Log forwarding" icon="share-nodes" href="/log-forwarding">+ Forward Beacon runtime JSONL to customer-managed destinations.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-tokens.mdx b/docs/cli/endpoint-tokens.mdxnew file mode 100644index 00000000..9a9a8642--- /dev/null+++ b/docs/cli/endpoint-tokens.mdx@@ -0,0 +1,104 @@+---+title: "beacon endpoint tokens"+description: "Report token usage and attribution from the Beacon endpoint runtime log"+---++## Command Overview++`beacon endpoint tokens` reads Beacon endpoint events from the runtime JSONL log and summarizes token usage, cost, models, sessions, runs, harnesses, and repositories.++```bash title="Command syntax"+beacon endpoint tokens [flags]+```++Use this command when you need a local report before opening the dashboard, sending diagnostics, or validating token attribution for a specific agent session.++## How token attribution works++Beacon normalizes token telemetry from every runtime into one canonical [`gen_ai.usage`](/telemetry-schema/normalization#usage-metadata) representation, then aggregates it locally from the runtime JSONL log. There are no per-harness token fields — a report over mixed runtimes uses the same vocabulary throughout.++A few rules shape how the numbers read:++- **Counts are kept disjoint.** `input_tokens`, `output_tokens`, `cache_read`, and `cache_creation` do not overlap, so a total is `input + output + cache_read + cache_creation` without double-counting. When a runtime reports prompt tokens inclusive of cache (Codex), Beacon subtracts the cached portion so the disjoint model holds.+- **Cost is runtime-reported only.** `cost_usd` reflects what the runtime emits. Beacon never derives cost from local pricing tables, so cost appears only for runtimes that report it.+- **Attribution depends on the metadata a runtime attaches.** Model, harness, repository, and run grouping work whenever those fields are present. Per-session grouping (`--session`, the session step tree) requires a session or conversation id on the usage signal.+- **Duplicate channels are de-duplicated.** When a runtime emits the same usage on more than one signal (Claude Code reports it on both logs and metrics), Beacon counts it once.++### Per-runtime coverage++| Runtime | Tokens | Cost | Per-session |+|---------|--------|------|-------------|+| Claude Code | input, output, cache read, cache creation, reasoning | Reported (`cost_usd`) | Yes |+| Codex CLI | input, output, cache read, reasoning | Not emitted by Codex | No (metric carries no conversation id) |++`cost_usd` and `--session` detail are empty for Codex because Codex does not emit a cost signal or a conversation id on its usage metric — not a Beacon limitation. See the [Codex CLI](/runtimes/codex-cli#token-usage-and-cost) and [Claude Code](/runtimes/claude-code) runtime pages for details.++## Examples++Show token usage from the default per-user endpoint log:++```bash title="Show local token usage"+beacon endpoint tokens+```++Print a machine-readable report:++```bash title="Print JSON"+beacon endpoint tokens --json+```++Filter to one session and include per-step detail:++```bash title="Filter by session"+beacon endpoint tokens --session claude-session-123+```++Group usage into hourly time buckets:++```bash title="Bucket usage over time"+beacon endpoint tokens --bucket 1h+```++Inspect a CI runtime log and filter to a run:++```bash title="Inspect a CI run"+beacon endpoint tokens --log-path ./beacon-runtime.jsonl --run-id github/123456 --json+```++## Filters++Filters can be combined to narrow the report to a time range, model, agent harness, repository, session, or CI run.++| Flag | Description |+|------|-------------|+| `--since <timestamp>` | Only include events at or after this RFC3339 timestamp |+| `--until <timestamp>` | Only include events at or before this RFC3339 timestamp |+| `--session <id>` | Filter to one session and include per-step detail |+| `--model <name>` | Filter by model name |+| `--harness <name>` | Filter by harness name |+| `--repository <path-or-url>` | Filter by repository |+| `--run-id <id>` | Filter by CI run ID. Bare run IDs and composite provider/run keys are accepted |+| `--bucket <duration>` | Time-series bucket size, such as `1h` or `15m` |+| `--top <count>` | Limit each grouping to the top N entries. `0` keeps all entries |++## Runtime Log Selection++By default, the command reads the per-user endpoint runtime log. Use `--system` for a system-mode endpoint, or `--log-path` when reading a copied runtime log or a CI session artifact.++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--log-path <path>` | Runtime JSONL log path. In CI, point this at the session log |+| `--json` | Print the token usage report as JSON |++## Related++<Columns cols={2}>+ <Card title="Endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Explore endpoint runtime logs locally in a browser.+ </Card>+ <Card title="Endpoint inventory" icon="clipboard-list" href="/cli/endpoint-inventory">+ See configured, detected, hook, and observed endpoint inventory.+ </Card>+</Columns>diff --git a/docs/cli/endpoint-uninstall.mdx b/docs/cli/endpoint-uninstall.mdxnew file mode 100644index 00000000..46e01e53--- /dev/null+++ b/docs/cli/endpoint-uninstall.mdx@@ -0,0 +1,71 @@+---+title: "beacon endpoint uninstall"+description: "Remove Beacon endpoint service files while optionally preserving logs or runtime configuration"+---++## Command Overview++`beacon endpoint uninstall` unloads the local Beacon service and removes managed endpoint files.++```bash title="Command syntax"+beacon endpoint uninstall+```++Use retention flags when you want to keep local evidence or preserve harness telemetry configuration.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--keep-logs` | Keep runtime logs during uninstall |+| `--keep-config` | Keep harness telemetry configuration during uninstall |++## Examples++Remove the default per-user install:++```bash title="Remove the default per-user install"+beacon endpoint uninstall+```++Remove Beacon but keep runtime logs:++```bash title="Remove Beacon but keep runtime logs"+beacon endpoint uninstall --keep-logs+```++Remove Beacon but keep harness telemetry configuration:++```bash title="Remove Beacon but keep harness telemetry configuration"+beacon endpoint uninstall --keep-config+```++Keep both logs and harness configuration:++```bash title="Keep both logs and harness configuration"+beacon endpoint uninstall --keep-logs --keep-config+```++Remove a system-mode deployment:++```bash title="Remove a system-mode deployment"+sudo beacon endpoint uninstall --system --keep-logs+```++## Removed paths++Beacon removes files listed in its install manifest, including managed config, collector config, and service files. Unless `--keep-logs` is set, it also removes the configured runtime JSONL log.++## Related++<Columns cols={2}>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Reinstall the local endpoint collector and runtime telemetry.+ </Card>+ <Card title="Endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Check endpoint state before or after uninstalling.+ </Card>+</Columns>diff --git a/docs/cli/endpoint.mdx b/docs/cli/endpoint.mdxnew file mode 100644index 00000000..1af163b4--- /dev/null+++ b/docs/cli/endpoint.mdx@@ -0,0 +1,88 @@+---+title: "beacon endpoint"+description: "Install, inspect, repair, and remove the Beacon endpoint agent"+---++## Command Overview++The `beacon endpoint` command group manages the local Beacon [endpoint agent](/concepts/core-concepts#endpoint-agent). It configures agent harness telemetry, runs a [local OpenTelemetry Collector](/concepts/core-concepts#local-collector), writes Beacon [endpoint events](/concepts/core-concepts#endpoint-event) to JSONL, and exposes subcommands for local inspection and integrations. Endpoint commands use per-user paths by default; pass `--system` for root-managed package or MDM deployments.++```bash title="Command syntax"+beacon endpoint [command]+```++## Commands++<span id="beacon-endpoint-install" />+<span id="beacon-endpoint-status" />+<span id="beacon-endpoint-doctor" />+<span id="beacon-endpoint-inventory" />+<span id="beacon-endpoint-discover" />+<span id="beacon-endpoint-test-event" />+<span id="beacon-endpoint-bundle-diagnostics" />+<span id="beacon-endpoint-repair" />+<span id="beacon-endpoint-uninstall" />+<span id="beacon-endpoint-config" />++<Columns cols={2}>+ <Card title="beacon endpoint install" icon="download" href="/cli/endpoint-install">+ Configure endpoint telemetry, collector service files, and harness telemetry.+ </Card>+ <Card title="beacon endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Show collector, service, harness, diagnostic, and runtime log status.+ </Card>+ <Card title="beacon endpoint doctor" icon="stethoscope" href="/cli/endpoint-doctor">+ Run local endpoint health checks with pass/fail exit behavior.+ </Card>+ <Card title="beacon endpoint repair" icon="wrench" href="/cli/endpoint-repair">+ Reapply service files and telemetry configuration.+ </Card>+ <Card title="beacon endpoint uninstall" icon="trash" href="/cli/endpoint-uninstall">+ Stop services and remove managed endpoint files.+ </Card>+ <Card title="beacon endpoint config" icon="gear" href="/cli/endpoint-config">+ Inspect, validate, and update endpoint configuration.+ </Card>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run threat-detection rules over local endpoint telemetry.+ </Card>+ <Card title="beacon rules" icon="shield-halved" href="/cli/rules">+ Manage local threat-detection rules used by scans.+ </Card>+</Columns>++Additional endpoint commands: [`inventory`](/cli/endpoint-inventory), [`discover`](/cli/endpoint-discover), [`test-event`](/cli/endpoint-test-event), and [`bundle-diagnostics`](/cli/endpoint-bundle-diagnostics).++## Common Paths++| Item | User mode | System mode |+|------|-----------|-------------|+| Config | `~/.beacon/endpoint/config.json` | `/Library/Application Support/Beacon/Endpoint/config.json` |+| Base directory | `~/.beacon/endpoint` | `/Library/Application Support/Beacon/Endpoint` |+| Runtime log | `~/.beacon/endpoint/logs/runtime.jsonl` | `/var/log/beacon-agent/runtime.jsonl` |+| Collector config | `~/.beacon/endpoint/otelcol.yaml` | `/Library/Application Support/Beacon/Endpoint/otelcol.yaml` |++## Related Groups++<Columns cols={2}>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts">+ Review endpoint agent, collector, harness, and runtime log terminology.+ </Card>+ <Card title="Dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect Beacon runtime logs in a local dashboard.+ </Card>+ <Card title="Wazuh" icon="shield" href="/cli/wazuh">+ Manage Wazuh localfile, rule, and validation content.+ </Card>+ <Card title="Datadog" icon="chart-line" href="/cli/datadog">+ Manage Datadog Agent custom log collection content.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Manage supported hook-based endpoint integrations.+ </Card>+ <Card title="OpenClaw Gateway" icon="network-wired" href="/cli/openclaw">+ Manage OpenClaw Gateway OpenTelemetry export.+ </Card>+</Columns>++Other related guides: [Claude Cowork](/cli/claude-cowork), [Rapid7 InsightIDR](/cli/rapid7), [AWS S3](/cli/s3), and [Google Cloud Storage](/cli/gcs).diff --git a/docs/cli/gcs.mdx b/docs/cli/gcs.mdxnew file mode 100644index 00000000..91146221--- /dev/null+++ b/docs/cli/gcs.mdx@@ -0,0 +1,182 @@+---+title: "beacon endpoint gcs"+description: "Generate Google Cloud Storage forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint gcs` to generate Google Cloud Storage forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps your customer-managed Vector agent upload `runtime.jsonl` to a GCS bucket as gzip-compressed NDJSON.++Beacon does not store Google Cloud credentials, service accounts, workload identity settings, bucket IAM, lifecycle rules, retention policies, or encryption settings. Keep those values in Google Cloud, Vector, endpoint-management policy, or deployment tooling.++```bash title="Command syntax"+beacon endpoint gcs [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint gcs print-config" icon="file-lines" href="#beacon-endpoint-gcs-print-config">+ Print the Vector Google Cloud Storage forwarding template for the configured runtime log.+ </Card>+ <Card title="beacon endpoint gcs install-pack" icon="box-archive" href="#beacon-endpoint-gcs-install-pack">+ Write Google Cloud Storage forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint gcs validate" icon="check" href="#beacon-endpoint-gcs-validate">+ Write and describe a Beacon Google Cloud Storage validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint gcs print-config++`beacon endpoint gcs print-config` prints a Vector configuration that tails the selected Beacon runtime JSONL log and writes gzip-compressed NDJSON objects to Google Cloud Storage.++```bash title="Print the configuration"+beacon endpoint gcs print-config+```++Use this command when you want to inspect or copy the Vector template into an existing endpoint forwarding workflow.++### Examples++Print Vector config for the default per-user Beacon install:++```bash title="Print Vector config for the default per-user Beacon install"+beacon endpoint gcs print-config+```++Print Vector config for a system-mode MDM deployment:++```bash title="Print Vector config for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint gcs print-config --system+```++Print Vector config for a custom runtime log:++```bash title="Print Vector config for a custom runtime log"+beacon endpoint gcs print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint gcs install-pack++`beacon endpoint gcs install-pack` writes Google Cloud Storage forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint gcs install-pack --output ./beacon-gcs-pack+```++The pack includes setup instructions, a one-shot GCS upload smoke-test script, a Vector `gcp_cloud_storage` forwarding template, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint gcs install-pack --output ./beacon-gcs-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint gcs install-pack \+ --system \+ --output ./beacon-gcs-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint gcs install-pack \+ --output ./beacon-gcs-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Google Cloud Storage content pack. Defaults to `beacon-gcs-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint gcs validate++`beacon endpoint gcs validate` writes a Beacon validation event to the runtime JSONL log and prints the expected GCS validation fields and follow-up Google Cloud checks.++```bash title="Run the validation check"+beacon endpoint gcs validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint gcs validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint gcs validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint gcs validate --log-path /path/to/runtime.jsonl+```++The validation command writes the local event only. Confirm remote delivery with Google Cloud tooling:++```text+gcloud storage ls "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/**"+gcloud storage cat "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/date=<date>/<object>.jsonl.gz" | gzip -dc | grep "Beacon endpoint GCS validation event"+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=gcs destination.mode=google_cloud_storage_jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Google Cloud Storage forwarding" icon="chart-line" href="/log-forwarding/gcs">+ Configure Vector forwarding from Beacon JSONL into Google Cloud Storage.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/hooks.mdx b/docs/cli/hooks.mdxnew file mode 100644index 00000000..0334dc72--- /dev/null+++ b/docs/cli/hooks.mdx@@ -0,0 +1,402 @@+---+title: "beacon endpoint hooks"+description: "Install and manage Beacon endpoint hooks for supported agent harnesses"+---++## Command Overview++Beacon can install [hook-based endpoint telemetry](/concepts/core-concepts#hooks) for supported [agent harnesses](/runtimes). The hook adapter emits local Beacon [endpoint events](/concepts/core-concepts#endpoint-event) for sessions, prompt submission, tool use, command execution, MCP-like tool activity, approval decisions, permissions, diffs, and file edits where each runtime exposes those hook payloads.++```bash title="Command syntax"+beacon endpoint hooks [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint hooks install" icon="download" href="#beacon-endpoint-hooks-install">+ Install endpoint hooks for supported hook runtimes.+ </Card>+ <Card title="beacon endpoint hooks status" icon="circle-info" href="#beacon-endpoint-hooks-status">+ Show endpoint hook integration status.+ </Card>+ <Card title="beacon endpoint hooks uninstall" icon="trash" href="#beacon-endpoint-hooks-uninstall">+ Remove Beacon hook entries while preserving non-Beacon hooks.+ </Card>+</Columns>++## Paths++| Runtime | User-level config | Project-level config | Hook binary | Runtime log |+|---------|-------------------|----------------------|-------------|-------------|+| Antigravity CLI | `~/.gemini/config/hooks.json` | `./.agents/hooks.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Claude Code | `~/.claude/settings.json` | `./.claude/settings.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Cursor | `~/.cursor/hooks.json` | `./.cursor/hooks.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Devin CLI | `~/.config/devin/config.json` | `./.devin/hooks.v1.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Devin Desktop | `~/.codeium/windsurf/hooks.json` | `./.windsurf/hooks.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Factory Droid | `~/.factory/settings.json` | `./.factory/settings.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Grok Build | `~/.grok/hooks/beacon-endpoint.json` | `./.grok/hooks/beacon-endpoint.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Hermes Agent | `~/.hermes/config.yaml` | Not supported | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| OpenCode | `~/.config/opencode/plugins/beacon.ts` | `./.opencode/plugins/beacon.ts` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |++In system mode, the hook binary is written under `/Library/Application Support/Beacon/Endpoint/hooks/` and the default runtime log is `/var/log/beacon-agent/runtime.jsonl`.++## Flags++| Flag | Description |+|------|-------------|+| `--harness <list>` | Comma-separated hook harnesses, such as `antigravity`, `claude`, `cursor`, `devin-cli`, `devin-desktop`, `factory`, `grok`, `hermes`, `opencode`, or `antigravity,claude,cursor,devin-cli,devin-desktop,factory,grok,hermes,opencode`. `devin` remains a legacy alias for `devin-cli`; `hermes-agent` maps to `hermes`. Defaults to `cursor` |+| `--level <level>` | Hook install level: `user` or `project` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print status as JSON. Status only |+| `--all` | Target or show all supported hook harnesses |+| `--dry-run` | Print planned install or uninstall actions without changing hook files. Install and uninstall only |++<Note>+ Restart Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory Droid, Grok Build, Hermes Agent, or OpenCode after installing or removing hooks so the updated hook configuration is picked up by new sessions.+</Note>++Beacon validates the embedded `beacon-hooks` binary before writing hook configuration. If install fails with an architecture validation error, upgrade Beacon or reinstall the platform-specific release archive for the host, then run the hook install command again.++## beacon endpoint hooks install++`beacon endpoint hooks install` installs hook-based Beacon telemetry for supported harnesses.++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness cursor+```++ The hook adapter records local endpoint events for sessions, prompt submission, tool use, command execution, MCP-like tool activity, approval decisions, permissions, diffs, and file edits where the selected runtime exposes those hook payloads. Antigravity hooks cover `PreInvocation`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostInvocation`, and `Stop`. Claude Code hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, `SubagentStart`, `SubagentStop`, `PermissionRequest`, and `SessionEnd`. Devin CLI hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PermissionRequest`, `PostToolUse`, `Stop`, and `SessionEnd`. Devin Desktop hooks use Cascade/Windsurf payloads for prompt submission, file writes, command execution, MCP tool use, and file reads. Factory hooks cover `SessionStart`, `UserPromptSubmit`, `PostToolUse` for write/edit/create operations, `Stop`, and `SessionEnd`. Grok Build hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, and `SessionEnd`. Hermes Agent hooks cover session lifecycle, `pre_llm_call`, `pre_tool_call`, `post_tool_call`, approval request and response, and subagent stop events. OpenCode hooks use Beacon's managed local plugin to forward `chat.message`, session, command, permission, diff, and error events.++### Examples++Install Cursor hooks at the user level:++```bash title="Install Cursor hooks at the user level"+beacon endpoint hooks install --harness cursor+```++Install Antigravity hooks at the user level:++```bash title="Install Antigravity hooks at the user level"+beacon endpoint hooks install --harness antigravity+```++Install Claude Code hooks at the user level:++```bash title="Install Claude Code hooks at the user level"+beacon endpoint hooks install --harness claude+```++Install Antigravity hooks at the project level:++```bash title="Install Antigravity hooks at the project level"+beacon endpoint hooks install --harness antigravity --level project+```++Install Cursor hooks at the project level:++```bash title="Install Cursor hooks at the project level"+beacon endpoint hooks install --harness cursor --level project+```++Install Devin CLI hooks at the user level:++```bash title="Install Devin CLI hooks at the user level"+beacon endpoint hooks install --harness devin-cli+```++Install Devin CLI hooks at the project level:++```bash title="Install Devin CLI hooks at the project level"+beacon endpoint hooks install --harness devin-cli --level project+```++Install Devin Desktop hooks at the user level:++```bash title="Install Devin Desktop hooks at the user level"+beacon endpoint hooks install --harness devin-desktop+```++Install Devin Desktop hooks at the project level:++```bash title="Install Devin Desktop hooks at the project level"+beacon endpoint hooks install --harness devin-desktop --level project+```++Install Factory hooks at the user level:++```bash title="Install Factory hooks at the user level"+beacon endpoint hooks install --harness factory+```++Install OpenCode hooks at the user level:++```bash title="Install OpenCode hooks at the user level"+beacon endpoint hooks install --harness opencode+```++Install Grok Build hooks at the user level:++```bash title="Install Grok Build hooks at the user level"+beacon endpoint hooks install --harness grok+```++Install Hermes Agent hooks at the user level:++```bash title="Install Hermes Agent hooks at the user level"+beacon endpoint hooks install --harness hermes+```++Install Grok Build hooks at the project level:++```bash title="Install Grok Build hooks at the project level"+beacon endpoint hooks install --harness grok --level project+```++Project-level Grok Build hooks require `/hooks-trust` in Grok before they execute.++Hermes Agent hooks support user-level config only. `beacon endpoint hooks install --harness hermes --level project` returns an error instead of writing project files.++Install all supported hook integrations:++```bash title="Install all supported hook integrations"+beacon endpoint hooks install --all+```++When `--all` is used with `--level project`, Beacon skips Hermes Agent because Hermes shell hooks are user-level only.++Install Antigravity, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode hooks with the same runtime log:++```bash title="Install Antigravity, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode hooks with the same runtime log"+beacon endpoint hooks install --harness antigravity,claude,cursor,devin-cli,devin-desktop,factory,grok,hermes,opencode+```++Use a custom runtime log:++```bash title="Use a custom runtime log"+beacon endpoint hooks install \+ --harness cursor \+ --log-path /path/to/runtime.jsonl+```++## beacon endpoint hooks status++`beacon endpoint hooks status` checks whether Beacon hook integrations are installed for the selected harnesses.++```bash title="Check hook status"+beacon endpoint hooks status --harness cursor+```++### Examples++Check Cursor hook status:++```bash title="Check Cursor hook status"+beacon endpoint hooks status --harness cursor+```++Check Antigravity hook status:++```bash title="Check Antigravity hook status"+beacon endpoint hooks status --harness antigravity+```++Check Claude Code hook status:++```bash title="Check Claude Code hook status"+beacon endpoint hooks status --harness claude+```++Check Factory hook status:++```bash title="Check Factory hook status"+beacon endpoint hooks status --harness factory+```++Check Devin CLI hook status:++```bash title="Check Devin CLI hook status"+beacon endpoint hooks status --harness devin-cli+```++Check Devin Desktop hook status:++```bash title="Check Devin Desktop hook status"+beacon endpoint hooks status --harness devin-desktop+```++Check OpenCode plugin status:++```bash title="Check OpenCode plugin status"+beacon endpoint hooks status --harness opencode+```++Check Grok Build hook status:++```bash title="Check Grok Build hook status"+beacon endpoint hooks status --harness grok+```++Check Hermes Agent hook status:++```bash title="Check Hermes Agent hook status"+beacon endpoint hooks status --harness hermes+```++Print hook status as JSON:++```bash title="Print hook status as JSON"+beacon endpoint hooks status --harness cursor --json+```++Show every supported hook integration:++```bash title="Show every supported hook integration"+beacon endpoint hooks status --all+```++Check project-level hooks:++```bash title="Check project-level hooks"+beacon endpoint hooks status --harness cursor --level project+```++## beacon endpoint hooks uninstall++`beacon endpoint hooks uninstall` removes Beacon hook entries for supported harnesses. Existing non-Beacon hooks are preserved.++```bash title="Remove runtime hooks"+beacon endpoint hooks uninstall --harness cursor+```++### Examples++Remove user-level Cursor hooks:++```bash title="Remove user-level Cursor hooks"+beacon endpoint hooks uninstall --harness cursor+```++Remove user-level Antigravity hooks:++```bash title="Remove user-level Antigravity hooks"+beacon endpoint hooks uninstall --harness antigravity+```++Remove user-level Claude Code hooks:++```bash title="Remove user-level Claude Code hooks"+beacon endpoint hooks uninstall --harness claude+```++Remove project-level Antigravity hooks:++```bash title="Remove project-level Antigravity hooks"+beacon endpoint hooks uninstall --harness antigravity --level project+```++Remove project-level Cursor hooks:++```bash title="Remove project-level Cursor hooks"+beacon endpoint hooks uninstall --harness cursor --level project+```++Remove user-level Devin CLI hooks:++```bash title="Remove user-level Devin CLI hooks"+beacon endpoint hooks uninstall --harness devin-cli+```++Remove project-level Devin CLI hooks:++```bash title="Remove project-level Devin CLI hooks"+beacon endpoint hooks uninstall --harness devin-cli --level project+```++Remove user-level Devin Desktop hooks:++```bash title="Remove user-level Devin Desktop hooks"+beacon endpoint hooks uninstall --harness devin-desktop+```++Remove project-level Devin Desktop hooks:++```bash title="Remove project-level Devin Desktop hooks"+beacon endpoint hooks uninstall --harness devin-desktop --level project+```++Remove user-level Factory hooks:++```bash title="Remove user-level Factory hooks"+beacon endpoint hooks uninstall --harness factory+```++Remove user-level OpenCode hooks:++```bash title="Remove user-level OpenCode hooks"+beacon endpoint hooks uninstall --harness opencode+```++Remove user-level Grok Build hooks:++```bash title="Remove user-level Grok Build hooks"+beacon endpoint hooks uninstall --harness grok+```++Remove user-level Hermes Agent hooks:++```bash title="Remove user-level Hermes Agent hooks"+beacon endpoint hooks uninstall --harness hermes+```++Remove project-level Grok Build hooks:++```bash title="Remove project-level Grok Build hooks"+beacon endpoint hooks uninstall --harness grok --level project+```++## Antigravity troubleshooting++Beacon writes Antigravity user-level hooks to `~/.gemini/config/hooks.json`. Project-level installs write `./.agents/hooks.json`. Beacon owns only the `beacon-endpoint` hook block and leaves other Antigravity hook blocks in place.++If Antigravity telemetry is missing, check the selected level, confirm the hook file contains commands with `--platform antigravity`, and restart Antigravity so new sessions pick up the updated hook configuration.++## Grok Build troubleshooting++Beacon writes Grok Build user-level hooks to `~/.grok/hooks/beacon-endpoint.json`. Project-level installs write `./.grok/hooks/beacon-endpoint.json` and require `/hooks-trust` in Grok before those hooks execute. Beacon owns only the `beacon-endpoint.json` hook file and leaves other Grok hook files in place.++If Grok telemetry is missing, check the selected level, confirm the hook file contains commands with `--platform grok`, run `/hooks-trust` for project-level hooks, and restart Grok so new sessions pick up the updated hook configuration.++## Hermes Agent troubleshooting++Beacon merges Hermes Agent hooks into `~/.hermes/config.yaml`. Hermes hooks are user-level only; project-level install, status, or uninstall requests return a clear error. Beacon preserves existing Hermes settings and non-Beacon hooks, and replaces only Beacon-managed commands with `BEACON_ENDPOINT_MODE=1` and `--platform hermes`.++If Hermes telemetry is missing, confirm `~/.hermes/config.yaml` contains commands with `--platform hermes`, restart Hermes, and verify hook consent. Hermes prompts for first-use consent for each `(event, command)` pair; for non-interactive gateway, cron, or CI runs, set `HERMES_ACCEPT_HOOKS=1`, start Hermes with `--accept-hooks`, or configure `hooks_auto_accept: true`.++## OpenCode troubleshooting++Beacon installs an owned OpenCode plugin at `~/.config/opencode/plugins/beacon.ts` for user-level hooks or `./.opencode/plugins/beacon.ts` for project-level hooks. The plugin is a thin local adapter: it forwards supported OpenCode hook payloads to Beacon's Go hook binary, and Beacon handles normalization, redaction, retention, and JSONL output.++For local troubleshooting, set `BEACON_OPENCODE_DEBUG=1` in the environment that launches OpenCode to emit best-effort plugin debug logs. Beacon telemetry should not interrupt OpenCode execution if the hook command fails.++## Devin troubleshooting++Beacon writes Devin CLI user-level hooks under the `hooks` key in `~/.config/devin/config.json`. Devin CLI project-level installs write the standalone hook map to `./.devin/hooks.v1.json`. The legacy `devin` harness name maps to `devin-cli`.++Beacon writes Devin Desktop user-level hooks to `~/.codeium/windsurf/hooks.json`. Project-level installs write `.windsurf/hooks.json`, which may also affect Windsurf/Cascade in that workspace. Install and uninstall preserve unrelated settings and non-Beacon hook commands.++If Devin CLI hook telemetry is missing, check the selected level, confirm the hook file contains commands with `--platform devin-cli`, and restart Devin CLI so new sessions pick up the updated hook configuration. If Devin Desktop telemetry is missing, confirm the hook file contains commands with `--platform devin-desktop`, generate a Desktop event, and then check the Beacon runtime log.++## Related++<Columns cols={2}>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts">+ Review hook, harness, endpoint event, and runtime log terminology.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Compare hook and OTLP support across Beacon runtimes.+ </Card>+</Columns>diff --git a/docs/cli/index.mdx b/docs/cli/index.mdxnew file mode 100644index 00000000..33974547--- /dev/null+++ b/docs/cli/index.mdx@@ -0,0 +1,366 @@+---+title: "Command Reference"+description: "Agent Beacon CLI command manual organized by command group"+---++## Commands++Use this reference to browse Beacon commands by hierarchy. Each command links to the consolidated guide section with examples, flags, and operational notes.++## Install and Upgrade++Install the Beacon CLI, check for released updates, and repair endpoint configuration after upgrades:++<Columns cols={2}>+ <Card title="Install Beacon" icon="download" href="/cli/install">+ Install Beacon with Homebrew or platform archives.+ </Card>+ <Card title="Upgrade Beacon" icon="arrow-up" href="/cli/upgrade">+ Check for updates and upgrade the Beacon CLI.+ </Card>+ <Card title="Manual CLI Installation" icon="file-zipper" href="/cli/manual-install">+ Install from platform archives or build Beacon from source.+ </Card>+</Columns>++## beacon++```bash title="Command syntax"+beacon [command]+```++Top-level Agent Beacon CLI commands.++| Command | Description |+|---------|-------------|+| [`beacon version`](/cli/version) | Display the installed Agent Beacon CLI version. |+| [`beacon login`](/cli/login) | Log in to the Asymptote dashboard from the Beacon CLI. |+| [`beacon scan`](/cli/scan) | Run threat-detection rules over local endpoint telemetry. |+| [`beacon rules`](/cli/rules) | Manage and author Beacon threat-detection rules. |+| [`beacon ci`](/cli/ci) | Run ephemeral AI runtime telemetry collection in CI. |+| [`beacon cloud`](/cli/cloud) | Configure provider-managed cloud agent telemetry setup helpers. |+| [`beacon mcp`](/cli/mcp) | Expose local Beacon activity to MCP clients. |+| [`beacon ingest`](/cli/ingest) | Upload Beacon telemetry to configured ingest destinations. |+| [`beacon endpoint`](/cli/endpoint) | Manage local endpoint telemetry, runtime logs, and integrations. |+| [`beacon status`](/cli/endpoint-status) | Alias for `beacon endpoint status`. |+| [`beacon doctor`](/cli/endpoint-doctor) | Alias for `beacon endpoint doctor`. |+| [`beacon inventory`](/cli/endpoint-inventory) | Alias for `beacon endpoint inventory`. |++## beacon version++```bash title="Command syntax"+beacon version [command]+```++Display the installed Beacon version or check for released updates.++| Command | Description |+|---------|-------------|+| [`beacon version check`](/cli/version#beacon-version-check) | Check whether a newer Beacon CLI release is available. |++## beacon scan++```bash title="Command syntax"+beacon scan [flags]+```++Run threat-detection rules over local endpoint telemetry without network access.++| Page | Description |+|------|-------------|+| [`beacon scan`](/cli/scan) | Scan the runtime JSONL log with active rules and report findings. |+| [`Run local scans`](/cli/scan-local) | Choose logs, rules, sessions, and output formats. |+| [`Use scan gates`](/cli/scan-ci-gates) | Fail automation when findings meet a severity threshold. |++## beacon rules++```bash title="Command syntax"+beacon rules [command]+```++Manage local threat-detection rules and author rule packs.++| Command | Description |+|---------|-------------|+| [`beacon rules list`](/cli/rules-list) | List the active threat-detection rules. |+| [`beacon rules add`](/cli/rules-add) | Install local rule files into the store. |+| [`beacon rules remove`](/cli/rules-remove) | Remove a rule from the store by id. |+| [`beacon rules pull`](/cli/rules-pull) | Fetch an explicit rule pack URL into the store. |+| [`beacon rules lint`](/cli/rules-lint) | Validate rule files and run embedded conformance fixtures. |+| [`beacon rules fields`](/cli/rules-fields) | Print event fields available to rule CEL expressions. |++## beacon ci++```bash title="Command syntax"+beacon ci [command]+```++Run ephemeral Beacon telemetry collection for CI jobs without installing a persistent endpoint service.++| Command | Description |+|---------|-------------|+| [`beacon ci exec`](/cli/ci-exec) | Run a command with agent telemetry captured for CI. |+| [`beacon ci start`](/cli/ci-start) | Start a detached telemetry session for later CI steps. |+| [`beacon ci finish`](/cli/ci-finish) | Stop, validate, and export a detached telemetry session. |+| [`beacon ci validate`](/cli/ci-validate) | Validate CI runtime telemetry artifacts. |++## beacon cloud++```bash title="Command syntax"+beacon cloud [command]+```++Configure provider-managed cloud agent telemetry setup helpers.++| Command | Description |+|---------|-------------|+| [`beacon cloud claude-web print-setup`](/cli/cloud-claude-web-print-setup) | Print a Claude Code cloud environment setup script. |+| [`beacon cloud claude-web print-hooks`](/cli/cloud-claude-web-print-hooks) | Print Claude hook settings for a cloud sandbox. |+| [`beacon cloud cursor print-setup`](/cli/cloud-cursor-print-setup) | Print a Cursor cloud agent binary setup script. |+| [`beacon cloud cursor print-hooks`](/cli/cloud-cursor-print-hooks) | Print Cursor project hook settings to commit for cloud agents. |+| [`beacon cloud gcs setup`](/cli/cloud-gcs-setup) | Create or print GCS setup commands for cloud-agent telemetry. |++## beacon mcp++```bash title="Command syntax"+beacon mcp [command]+```++Expose local Beacon runtime activity through MCP.++| Command | Description |+|---------|-------------|+| [`beacon mcp serve`](/cli/mcp-serve) | Run the local Beacon MCP server over stdio or loopback HTTP JSON-RPC. |+| [`beacon mcp doctor`](/cli/mcp-doctor) | Validate local Beacon MCP setup and print client configuration. |++## beacon ingest++```bash title="Command syntax"+beacon ingest [command]+```++Upload Beacon telemetry to configured ingest destinations.++| Command | Description |+|---------|-------------|+| [`beacon ingest status`](/cli/ingest#beacon-ingest-status) | Show configured ingest status. |+| [`beacon ingest endpoint status`](/cli/ingest-endpoint#beacon-ingest-endpoint-status) | Show endpoint telemetry upload status. |+| [`beacon ingest endpoint upload`](/cli/ingest-endpoint#beacon-ingest-endpoint-upload) | Upload endpoint telemetry to managed ingest. |++## beacon endpoint++```bash title="Command syntax"+beacon endpoint [command]+```++Manage the local endpoint agent and inspect supported agent harness telemetry.++| Command | Description |+|---------|-------------|+| [`beacon endpoint install`](/cli/endpoint-install) | Install or update the local endpoint collector, runtime telemetry configuration, and optional Splunk HEC or Falcon LogScale HEC forwarding. |+| [`beacon endpoint status`](/cli/endpoint-status) | Inspect collector health, runtime log state, configured harnesses, diagnostics, and forwarding readiness. |+| [`beacon endpoint doctor`](/cli/endpoint-doctor) | Run local endpoint health checks with pass/fail exit behavior and optional safe remediation. |+| [`beacon endpoint inventory`](/cli/endpoint-inventory) | Show configured, detected, hook, and observed endpoint inventory. |+| [`beacon endpoint discover`](/cli/endpoint-discover) | Discover supported local [agent harnesses](/runtimes) and their telemetry configuration state. |+| [`beacon endpoint test-event`](/cli/endpoint-test-event) | Write a synthetic endpoint validation event to the runtime JSONL log. |+| [`beacon endpoint bundle-diagnostics`](/cli/endpoint-bundle-diagnostics) | Write a redacted local diagnostics bundle for support and troubleshooting. |+| [`beacon endpoint repair`](/cli/endpoint-repair) | Repair Beacon endpoint service files, telemetry configuration, and optional collector forwarding destinations. |+| [`beacon endpoint uninstall`](/cli/endpoint-uninstall) | Remove Beacon endpoint service files, with an option to keep local logs. |+| [`beacon endpoint config`](/cli/endpoint-config) | Inspect, validate, and update endpoint configuration. |+| [`beacon endpoint tokens`](/cli/endpoint-tokens) | Report token usage and attribution from the endpoint runtime log. |+| [`beacon endpoint dashboard`](/cli/dashboard#beacon-endpoint-dashboard) | Run the local dashboard over Beacon runtime logs for endpoint inspection. |+| [`beacon endpoint wazuh`](/cli/wazuh) | Configure Wazuh ingestion for Beacon endpoint events. |+| [`beacon endpoint elastic`](/cli/elastic) | Generate Elastic content and run a local Elasticsearch, Kibana, and Filebeat validation stack. |+| [`beacon endpoint datadog`](/cli/datadog) | Generate Datadog Agent custom log collection content for Beacon endpoint events. |+| [`beacon endpoint sumo`](/cli/sumo) | Generate Sumo Logic HTTP Source forwarding content for Beacon endpoint events. |+| [`beacon endpoint rapid7`](/cli/rapid7) | Generate Rapid7 InsightIDR Custom Logs forwarding content for Beacon endpoint events. |+| [`beacon endpoint sentinel`](/cli/sentinel) | Generate Microsoft Sentinel Azure Monitor Agent forwarding content for Beacon endpoint events. |+| [`beacon endpoint cloudwatch`](/cli/cloudwatch) | Generate AWS CloudWatch Logs forwarding content for Beacon endpoint events. |+| [`beacon endpoint s3`](/cli/s3) | Generate AWS S3 forwarding content for Beacon endpoint events. |+| [`beacon endpoint gcs`](/cli/gcs) | Generate Google Cloud Storage forwarding content for Beacon endpoint events. |+| [`beacon endpoint hooks`](/cli/hooks) | Manage supported hook-based endpoint telemetry. |+| [`beacon endpoint integrations openclaw`](/cli/openclaw) | Set up and validate OpenClaw Gateway OTLP export. |+| [`beacon endpoint integrations claude-cowork`](/cli/claude-cowork) | Set up and validate Claude Cowork OTLP export. |++## beacon endpoint config++```bash title="Command syntax"+beacon endpoint config [command]+```++Inspect, validate, and update endpoint configuration.++| Command | Description |+|---------|-------------|+| [`beacon endpoint config show`](/cli/endpoint-config#beacon-endpoint-config-show) | Print endpoint configuration with secrets redacted. |+| [`beacon endpoint config validate`](/cli/endpoint-config#beacon-endpoint-config-validate) | Validate endpoint configuration and destination settings. |++## beacon endpoint wazuh++```bash title="Command syntax"+beacon endpoint wazuh [command]+```++Generate Wazuh configuration, content packs, and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint wazuh print-config`](/cli/wazuh#beacon-endpoint-wazuh-print-config) | Print a Wazuh `localfile` snippet for Beacon endpoint events. |+| [`beacon endpoint wazuh install-pack`](/cli/wazuh#beacon-endpoint-wazuh-install-pack) | Generate Beacon Wazuh rules, sample events, and config snippets into a directory. |+| [`beacon endpoint wazuh validate`](/cli/wazuh#beacon-endpoint-wazuh-validate) | Write and describe a known-good Beacon Wazuh validation event. |++## beacon endpoint elastic++```bash title="Command syntax"+beacon endpoint elastic [command]+```++Generate Elastic configuration, content packs, and local validation stacks for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint elastic print-config`](/cli/elastic#beacon-endpoint-elastic-print-config) | Print a Filebeat config for Beacon endpoint events. |+| [`beacon endpoint elastic install-pack`](/cli/elastic#beacon-endpoint-elastic-install-pack) | Generate Elasticsearch, Kibana, Filebeat, and Elastic Agent content into a directory. |+| [`beacon endpoint elastic up`](/cli/elastic#beacon-endpoint-elastic-up) | Start a local Elasticsearch, Kibana, and Filebeat validation stack. |+| [`beacon endpoint elastic down`](/cli/elastic#beacon-endpoint-elastic-down) | Stop the local Elastic validation stack. |++## beacon endpoint datadog++```bash title="Command syntax"+beacon endpoint datadog [command]+```++Generate Datadog Agent custom log collection content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint datadog print-config`](/cli/datadog#beacon-endpoint-datadog-print-config) | Print a Datadog Agent custom log config for Beacon endpoint events. |+| [`beacon endpoint datadog install-pack`](/cli/datadog#beacon-endpoint-datadog-install-pack) | Generate Datadog Agent custom log integration content into a directory. |+| [`beacon endpoint datadog validate`](/cli/datadog#beacon-endpoint-datadog-validate) | Write and describe a known-good Beacon Datadog validation event. |++## beacon endpoint sumo++```bash title="Command syntax"+beacon endpoint sumo [command]+```++Generate Sumo Logic HTTP Source forwarding content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint sumo print-config`](/cli/sumo#beacon-endpoint-sumo-print-config) | Print a Sumo HTTP Source smoke-test uploader for Beacon endpoint events. |+| [`beacon endpoint sumo install-pack`](/cli/sumo#beacon-endpoint-sumo-install-pack) | Generate Sumo Logic HTTP Source forwarding content into a directory. |+| [`beacon endpoint sumo validate`](/cli/sumo#beacon-endpoint-sumo-validate) | Write and describe a known-good Beacon Sumo Logic validation event. |++## beacon endpoint rapid7++```bash title="Command syntax"+beacon endpoint rapid7 [command]+```++Generate Rapid7 InsightIDR Custom Logs forwarding content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint rapid7 print-config`](/cli/rapid7#beacon-endpoint-rapid7-print-config) | Print a Rapid7 Custom Logs webhook smoke-test uploader for Beacon endpoint events. |+| [`beacon endpoint rapid7 install-pack`](/cli/rapid7#beacon-endpoint-rapid7-install-pack) | Generate Rapid7 InsightIDR Custom Logs forwarding content into a directory. |+| [`beacon endpoint rapid7 validate`](/cli/rapid7#beacon-endpoint-rapid7-validate) | Write and describe a known-good Beacon Rapid7 validation event. |++## beacon endpoint sentinel++```bash title="Command syntax"+beacon endpoint sentinel [command]+```++Generate Microsoft Sentinel Azure Monitor Agent forwarding content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint sentinel print-config`](/cli/sentinel#beacon-endpoint-sentinel-print-config) | Print a Sentinel DCR transform for Beacon endpoint events. |+| [`beacon endpoint sentinel install-pack`](/cli/sentinel#beacon-endpoint-sentinel-install-pack) | Generate Microsoft Sentinel forwarding content into a directory. |+| [`beacon endpoint sentinel validate`](/cli/sentinel#beacon-endpoint-sentinel-validate) | Write and describe a known-good Beacon Microsoft Sentinel validation event. |++## beacon endpoint cloudwatch++```bash title="Command syntax"+beacon endpoint cloudwatch [command]+```++Generate AWS CloudWatch Logs forwarding content and validation events for Beacon endpoint events.++| Command | Description |+|---------|-------------|+| [`beacon endpoint cloudwatch print-config`](/cli/cloudwatch#beacon-endpoint-cloudwatch-print-config) | Print a Vector AWS CloudWatch Logs forwarding template for Beacon endpoint events. |+| [`beacon endpoint cloudwatch install-pack`](/cli/cloudwatch#beacon-endpoint-cloudwatch-install-pack) | Generate AWS CloudWatch Logs forwarding content into a directory. |+| [`beacon endpoint cloudwatch validate`](/cli/cloudwatch#beacon-endpoint-cloudwatch-validate) | Write and describe a known-good Beacon AWS CloudWatch Logs validation event. |++## beacon endpoint s3++```bash title="Command syntax"+beacon endpoint s3 [command]+```++Generate AWS S3 forwarding content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint s3 print-config`](/cli/s3#beacon-endpoint-s3-print-config) | Print a Vector AWS S3 forwarding template for Beacon endpoint events. |+| [`beacon endpoint s3 install-pack`](/cli/s3#beacon-endpoint-s3-install-pack) | Generate AWS S3 forwarding content into a directory. |+| [`beacon endpoint s3 validate`](/cli/s3#beacon-endpoint-s3-validate) | Write and describe a known-good Beacon AWS S3 validation event. |++## beacon endpoint gcs++```bash title="Command syntax"+beacon endpoint gcs [command]+```++Generate Google Cloud Storage forwarding content and validation events for Beacon endpoint logs.++| Command | Description |+|---------|-------------|+| [`beacon endpoint gcs print-config`](/cli/gcs#beacon-endpoint-gcs-print-config) | Print a Vector Google Cloud Storage forwarding template for Beacon endpoint events. |+| [`beacon endpoint gcs install-pack`](/cli/gcs#beacon-endpoint-gcs-install-pack) | Generate Google Cloud Storage forwarding content into a directory. |+| [`beacon endpoint gcs validate`](/cli/gcs#beacon-endpoint-gcs-validate) | Write and describe a known-good Beacon Google Cloud Storage validation event. |++## beacon endpoint hooks++```bash title="Command syntax"+beacon endpoint hooks [command]+```++Install, inspect, and remove hook-based telemetry for supported local runtimes.++| Command | Description |+|---------|-------------|+| [`beacon endpoint hooks install`](/cli/hooks#beacon-endpoint-hooks-install) | Install Beacon endpoint hooks for supported hook harnesses. |+| [`beacon endpoint hooks status`](/cli/hooks#beacon-endpoint-hooks-status) | Show Beacon endpoint hook integration status for a supported harness. |+| [`beacon endpoint hooks uninstall`](/cli/hooks#beacon-endpoint-hooks-uninstall) | Remove Beacon endpoint hooks for supported harnesses. |++## beacon endpoint integrations claude-cowork++```bash title="Command syntax"+beacon endpoint integrations claude-cowork [command]+```++Configure and validate Claude Cowork OpenTelemetry export.++| Command | Description |+|---------|-------------|+| [`beacon endpoint integrations claude-cowork print-config`](/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-print-config) | Print Claude Cowork OTLP setup guidance for organization administrators. |+| [`beacon endpoint integrations claude-cowork setup`](/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-setup) | Print or create Claude Cowork OTLP admin settings. |+| [`beacon endpoint integrations claude-cowork status`](/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-status) | Show Claude Cowork endpoint integration status. |+| [`beacon endpoint integrations claude-cowork validate`](/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-validate) | Validate whether Claude Cowork events are arriving at the configured collector. |++## beacon endpoint integrations openclaw++```bash title="Command syntax"+beacon endpoint integrations openclaw [command]+```++Configure and validate OpenClaw Gateway OpenTelemetry export.++| Command | Description |+|---------|-------------|+| [`beacon endpoint integrations openclaw print-config`](/cli/openclaw#beacon-endpoint-integrations-openclaw-print-config) | Print OpenClaw Gateway OTLP setup guidance. |+| [`beacon endpoint integrations openclaw status`](/cli/openclaw#beacon-endpoint-integrations-openclaw-status) | Show OpenClaw Gateway endpoint integration status. |+| [`beacon endpoint integrations openclaw validate`](/cli/openclaw#beacon-endpoint-integrations-openclaw-validate) | Validate whether OpenClaw OTLP-derived events are arriving. |diff --git a/docs/cli/ingest-endpoint.mdx b/docs/cli/ingest-endpoint.mdxnew file mode 100644index 00000000..7e8e9964--- /dev/null+++ b/docs/cli/ingest-endpoint.mdx@@ -0,0 +1,85 @@+---+title: "beacon ingest endpoint"+description: "Check and upload endpoint telemetry for managed ingest"+---++## Command Overview++`beacon ingest endpoint` manages endpoint telemetry uploads to Asymptote Managed ingest.++```bash title="Command syntax"+beacon ingest endpoint [command]+```++Use this command group when endpoint ingest is configured and you need to inspect upload state or trigger an upload from the local runtime log.++<Note>+ Endpoint ingest requires dashboard credentials from `beacon login` and endpoint ingest configuration. Beacon endpoint collection remains local-only unless managed ingest is configured and endpoint upload commands are used.+</Note>++## Commands++<Columns cols={2}>+ <Card title="status" icon="circle-info" href="#beacon-ingest-endpoint-status">+ Show endpoint telemetry upload status.+ </Card>+ <Card title="upload" icon="cloud-arrow-up" href="#beacon-ingest-endpoint-upload">+ Upload endpoint telemetry to managed ingest.+ </Card>+</Columns>++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print output as JSON |++## beacon ingest endpoint status++`beacon ingest endpoint status` prints endpoint telemetry upload status, including whether ingest is enabled, whether it is managed, whether the CLI is logged in, upload cursor position, accepted and rejected counts, and the last upload error when present.++```bash title="Show endpoint ingest status"+beacon ingest endpoint status+```++Check status for a system-mode endpoint:++```bash title="Show system endpoint ingest status"+sudo beacon ingest endpoint status --system+```++Print machine-readable endpoint ingest status:++```bash title="Print JSON"+beacon ingest endpoint status --json+```++## beacon ingest endpoint upload++`beacon ingest endpoint upload` uploads endpoint telemetry from the runtime log to managed ingest.++```bash title="Upload endpoint telemetry"+beacon ingest endpoint upload+```++Upload from an explicit runtime log:++```bash title="Upload from a runtime log"+beacon ingest endpoint upload --log-path /var/log/beacon-agent/runtime.jsonl+```++When the upload completes, Beacon prints the updated ingest state. If managed ingest is enabled and the upload is rejected or fails, the command exits with an error and includes the latest ingest error in the status output.++## Related++<Columns cols={2}>+ <Card title="beacon ingest" icon="cloud-arrow-up" href="/cli/ingest">+ Review the managed ingest command group.+ </Card>+ <Card title="Endpoint config" icon="gear" href="/cli/endpoint-config">+ Inspect and validate local endpoint configuration.+ </Card>+</Columns>diff --git a/docs/cli/ingest.mdx b/docs/cli/ingest.mdxnew file mode 100644index 00000000..f7a0d85b--- /dev/null+++ b/docs/cli/ingest.mdx@@ -0,0 +1,73 @@+---+title: "beacon ingest"+description: "Upload Beacon telemetry to configured ingest destinations"+tag: "Enterprise"+---++## Command Overview++`beacon ingest` shows managed ingest status and uploads endpoint telemetry to configured Asymptote Managed destinations.++```bash title="Command syntax"+beacon ingest [command]+```++Use these commands when an endpoint is configured for managed ingest and you need to verify upload state or trigger an upload from the local runtime log.++<Note>+ Managed ingest requires dashboard credentials from `beacon login` and endpoint ingest configuration. Local endpoint collection remains local-only unless managed ingest is configured and upload commands are used.+</Note>++## Commands++<Columns cols={2}>+ <Card title="status" icon="circle-info" href="#beacon-ingest-status">+ Show configured ingest status across ingest sources.+ </Card>+ <Card title="endpoint" icon="desktop" href="/cli/ingest-endpoint">+ Check and upload endpoint telemetry for managed ingest.+ </Card>+</Columns>++## Shared Flags++`beacon ingest status`, `beacon ingest endpoint status`, and `beacon ingest endpoint upload` accept the same endpoint selection and output flags.++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |+| `--json` | Print output as JSON |++## beacon ingest status++`beacon ingest status` prints configured ingest status across ingest sources.++```bash title="Show ingest status"+beacon ingest status+```++Example output:++```bash title="Example output"+Beacon ingest+Endpoint: enabled=true managed=true logged_in=true accepted=0 rejected=0+```++Print machine-readable status:++```bash title="Print JSON"+beacon ingest status --json+```++## Related++<Columns cols={2}>+ <Card title="Endpoint ingest" icon="desktop" href="/cli/ingest-endpoint">+ Check endpoint upload status and upload local runtime events.+ </Card>+ <Card title="beacon login" icon="key" href="/cli/login">+ Authenticate the Beacon CLI with your Asymptote dashboard account.+ </Card>+</Columns>diff --git a/docs/cli/install.mdx b/docs/cli/install.mdxnew file mode 100644index 00000000..c8a8eac5--- /dev/null+++ b/docs/cli/install.mdx@@ -0,0 +1,44 @@+---+title: "Install Beacon"+description: "Install the Beacon CLI with Homebrew or platform archives"+---++## Homebrew++Install the Beacon CLI with Homebrew:++```bash title="Install Beacon"+brew tap asymptote-labs/tap+brew install beacon+beacon version+```++<Accordion title="Example output">+```bash title="beacon version output"+$ beacon version+beacon version 0.0.66+```+</Accordion>++## Other install methods++Beacon releases publish macOS and Linux archives for `amd64` and `arm64` alongside Homebrew builds. For archive-based installs or source builds, see [Manual CLI Installation](/cli/manual-install).++## Next steps++After installing Beacon, configure the workflow you need:++<Columns cols={2}>+ <Card title="Endpoint telemetry" icon="satellite-dish" href="/cli/endpoint-install">+ Configure local agent harness telemetry.+ </Card>+ <Card title="Cloud agent telemetry" icon="cloud" href="/cli/cloud">+ Configure provider-managed cloud agent telemetry setup helpers.+ </Card>+ <Card title="CI telemetry" icon="terminal" href="/cli/ci">+ Run ephemeral AI runtime telemetry collection in CI.+ </Card>+ <Card title="Upgrade Beacon" icon="arrow-up" href="/cli/upgrade">+ Keep the Beacon CLI up to date.+ </Card>+</Columns>diff --git a/docs/cli/login.mdx b/docs/cli/login.mdxnew file mode 100644index 00000000..eb3a9290--- /dev/null+++ b/docs/cli/login.mdx@@ -0,0 +1,67 @@+---+title: "beacon login"+description: "Log in to the Asymptote dashboard from the Beacon CLI"+tag: "Enterprise"+---++## Command Overview++Authenticate the Beacon CLI with your Asymptote dashboard account. The command opens a browser-based authorization flow and saves credentials for Beacon features that need dashboard access.++```bash title="Command syntax"+beacon login [flags]+```++<Accordion title="Example output">+```bash title="Example output"+$ beacon login++Opening browser to https://asymptotelabs.ai/cli/auth...+Waiting for authentication...++Success! Logged in as [email protected]+Organization: Acme Corp++Beacon endpoint telemetry remains local-only unless you explicitly use cloud features.+```+</Accordion>++If the browser cannot be opened automatically, Beacon prints the authorization URL so you can open it manually.++Credentials are stored in `~/.beacon/auth/credentials.json` with user-only file permissions.++<Note>+ Logging in does not change local endpoint telemetry collection. Beacon endpoint telemetry remains local-only unless you explicitly configure cloud features.+</Note>++## Existing sessions++When valid credentials already exist, `beacon login` prints the saved account and organization instead of replacing them:++```bash title="Existing session"+$ beacon login+Already logged in as [email protected]+Organization: Acme Corp+Run 'beacon login --force' to log in as a different user.+```++Use `--force` when you need to replace saved credentials.++## Flags++| Flag | Description |+|------|-------------|+| `--dashboard-url <url>` | Asymptote dashboard URL. Defaults to `https://asymptotelabs.ai`, or the value of `BEACON_DASHBOARD_URL`. |+| `--force` | Replace existing saved credentials. |+| `-h, --help` | Help for login |++## Related++<Columns cols={2}>+ <Card title="beacon cloud" icon="cloud" href="/cli/cloud">+ Configure cloud-agent telemetry features that may use dashboard authentication.+ </Card>+ <Card title="beacon version" icon="code-branch" href="/cli/version">+ Check your installed Beacon CLI version.+ </Card>+</Columns>diff --git a/docs/cli/manual-install.mdx b/docs/cli/manual-install.mdxnew file mode 100644index 00000000..ab493bf2--- /dev/null+++ b/docs/cli/manual-install.mdx@@ -0,0 +1,29 @@+---+title: "Manual CLI Installation"+description: "Install the Beacon CLI from platform archives or build it from source"+---++## Archive Collection++Beacon releases publish platform archives for macOS and Linux on `amd64` and `arm64`. Each archive includes the `beacon` CLI and the matching `beacon-otelcol` collector binary, with SHA-256 checksums published alongside the release.++## Build from source++To build the CLI directly from the Beacon repository:++```bash title="Build Beacon from source"+git clone https://github.com/Asymptote-Labs/agent-beacon.git+cd agent-beacon/cli/beacon+make build+```++## Related++<Columns cols={2}>+ <Card title="Install Beacon" icon="download" href="/cli/install">+ Install Beacon with Homebrew.+ </Card>+ <Card title="Endpoint telemetry" icon="satellite-dish" href="/cli/endpoint-install">+ Configure local agent harness telemetry after installing the CLI.+ </Card>+</Columns>diff --git a/docs/cli/mcp-doctor.mdx b/docs/cli/mcp-doctor.mdxnew file mode 100644index 00000000..243b7259--- /dev/null+++ b/docs/cli/mcp-doctor.mdx@@ -0,0 +1,83 @@+---+title: "beacon mcp doctor"+description: "Validate local Beacon MCP setup"+---++## Command Overview++`beacon mcp doctor` validates local Beacon MCP setup before you connect an MCP client.++```bash title="Command syntax"+beacon mcp doctor+```++Doctor resolves the effective runtime log path, checks transport settings, samples readable events and archives, and confirms that the expected MCP tools are registered.++## Checks++Doctor reports:++- MCP transport+- Loopback HTTP address and bind check, when `--transport http` is used+- Runtime log path and source+- Runtime log warnings, when present+- Content handling and readable event samples+- Sampled event count+- Malformed line count+- Readable runtime archives+- Registered MCP tools++If the runtime log does not exist yet, doctor reports that Beacon MCP can still start, but activity answers will be empty until endpoint telemetry writes events.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--log-path PATH` | Runtime JSONL log path |+| `--transport stdio\|http` | MCP transport. Defaults to `stdio` |+| `--addr ADDR` | Loopback HTTP JSON-RPC listen address for `--transport http`. Defaults to `127.0.0.1:8766` |++## Examples++Validate stdio MCP setup:++```bash title="Validate stdio MCP setup"+beacon mcp doctor+```++Validate loopback HTTP setup:++```bash title="Validate loopback HTTP setup"+beacon mcp doctor --transport http --addr 127.0.0.1:8766+```++Validate a specific runtime log:++```bash title="Validate a specific runtime log"+beacon mcp doctor --log-path /path/to/runtime.jsonl+```++Validate system-mode paths:++```bash title="Validate system-mode paths"+sudo beacon mcp doctor --system+```++## Related++<Columns cols={2}>+ <Card title="beacon mcp" icon="server" href="/cli/mcp">+ Review MCP tools, filters, and command group behavior.+ </Card>+ <Card title="beacon mcp serve" icon="server" href="/cli/mcp-serve">+ Run the local Beacon MCP server after validation.+ </Card>+ <Card title="Test MCP Access" icon="server" href="/guides/local-testing/mcp">+ Understand Beacon MCP and test local client access.+ </Card>+ <Card title="Connect Cursor and Claude Code" icon="plug" href="/guides/local-testing/mcp#connect-cursor-and-claude-code">+ Install Beacon MCP in local assistant clients.+ </Card>+</Columns>diff --git a/docs/cli/mcp-serve.mdx b/docs/cli/mcp-serve.mdxnew file mode 100644index 00000000..b903521b--- /dev/null+++ b/docs/cli/mcp-serve.mdx@@ -0,0 +1,82 @@+---+title: "beacon mcp serve"+description: "Run the local Beacon MCP server"+---++## Command Overview++`beacon mcp serve` starts the local Beacon MCP server over stdio or loopback HTTP JSON-RPC.++```bash title="Command syntax"+beacon mcp serve+```++The server reads the configured Beacon runtime JSONL log and exposes compact activity tools to MCP clients. Use stdio for clients that launch Beacon as a subprocess. Use HTTP only for local loopback testing or local tools that connect to a running server.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--log-path PATH` | Runtime JSONL log path |+| `--transport stdio\|http` | MCP transport. Defaults to `stdio` |+| `--addr ADDR` | Loopback HTTP JSON-RPC listen address for `--transport http`. Defaults to `127.0.0.1:8766` |++## Examples++Run over stdio for desktop MCP clients:++```bash title="Run over stdio for desktop MCP clients"+beacon mcp serve --transport stdio+```++Example stdio client configuration:++```json+{+ "mcpServers": {+ "beacon": {+ "command": "beacon",+ "args": ["mcp", "serve", "--transport", "stdio"]+ }+ }+}+```++Run over loopback HTTP JSON-RPC:++```bash title="Run over loopback HTTP JSON-RPC"+beacon mcp serve --transport http --addr 127.0.0.1:8766+```++Use a specific runtime log:++```bash title="Use a specific runtime log"+beacon mcp serve --log-path /path/to/runtime.jsonl+```++## HTTP endpoints++| Path | Description |+|------|-------------|+| `/mcp` | MCP JSON-RPC endpoint |+| `/health` | Local health check endpoint |++<Warning>+ Do not bind HTTP transport to a non-loopback interface. Beacon MCP is designed for local activity inspection, not remote administration.+</Warning>++## Related++<Columns cols={2}>+ <Card title="beacon mcp" icon="server" href="/cli/mcp">+ Review MCP tools, filters, and command group behavior.+ </Card>+ <Card title="beacon mcp doctor" icon="stethoscope" href="/cli/mcp-doctor">+ Validate local Beacon MCP setup before connecting a client.+ </Card>+ <Card title="Connect Cursor and Claude Code" icon="plug" href="/guides/local-testing/mcp#connect-cursor-and-claude-code">+ Install Beacon MCP in local assistant clients.+ </Card>+</Columns>diff --git a/docs/cli/mcp.mdx b/docs/cli/mcp.mdxnew file mode 100644index 00000000..045bb0cf--- /dev/null+++ b/docs/cli/mcp.mdx@@ -0,0 +1,75 @@+---+title: "beacon mcp"+description: "Expose local Beacon activity to MCP clients"+---++## Command Overview++The `beacon mcp` command group exposes local Beacon endpoint activity to MCP clients so an assistant can search, summarize, and retrieve compact event records from the local `runtime.jsonl` log.++```bash title="Command syntax"+beacon mcp [command]+```++The server reads the same local runtime log used by the [dashboard](/cli/dashboard). It supports stdio for desktop MCP clients and loopback HTTP JSON-RPC for local tools that connect to a running server.++## Commands++<span id="beacon-mcp-serve" />+<span id="beacon-mcp-doctor" />++<Columns cols={2}>+ <Card title="beacon mcp serve" icon="server" href="/cli/mcp-serve">+ Run the local Beacon MCP server.+ </Card>+ <Card title="beacon mcp doctor" icon="stethoscope" href="/cli/mcp-doctor">+ Validate local Beacon MCP setup and print client configuration.+ </Card>+</Columns>++## MCP tools++Beacon exposes these MCP tools:++| Tool | Description |+|------|-------------|+| `search_activity` | Search local Beacon activity logs and return compact event summaries. |+| `summarize_activity` | Summarize local Beacon activity over a time window and optional filters. |+| `get_activity_event` | Fetch one compact event by an ID returned from `search_activity`. |+| `list_activity_filters` | List common filter values found in local Beacon activity logs. |++Search and summary tools accept filters such as `since`, `until`, `limit`, `q`, `harness`, `model`, `action`, `severity`, `category`, `repository`, `session`, `file`, `command`, `mcp`, `approval`, `decision`, `policy`, `review`, and `wazuh_level`.++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--log-path PATH` | Runtime JSONL log path |+| `--transport stdio\|http` | MCP transport. Defaults to `stdio` |+| `--addr ADDR` | Loopback HTTP JSON-RPC listen address for `--transport http`. Defaults to `127.0.0.1:8766` |++<Note>+ `beacon mcp` only reads local Beacon runtime logs. It does not require a hosted Beacon account, and HTTP transport should remain bound to loopback.+</Note>++## Related++<Columns cols={2}>+ <Card title="beacon mcp serve" icon="server" href="/cli/mcp-serve">+ Run the local Beacon MCP server.+ </Card>+ <Card title="beacon mcp doctor" icon="stethoscope" href="/cli/mcp-doctor">+ Validate local Beacon MCP setup.+ </Card>+ <Card title="Connect Cursor and Claude Code" icon="plug" href="/guides/local-testing/mcp#connect-cursor-and-claude-code">+ Install Beacon MCP in local assistant clients.+ </Card>+ <Card title="Dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect the same local activity log in a browser.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review the normalized JSONL fields behind MCP activity results.+ </Card>+</Columns>diff --git a/docs/cli/openclaw.mdx b/docs/cli/openclaw.mdxnew file mode 100644index 00000000..6d930b50--- /dev/null+++ b/docs/cli/openclaw.mdx@@ -0,0 +1,166 @@+---+title: "beacon endpoint integrations openclaw"+description: "Set up OpenClaw Gateway OpenTelemetry export for Beacon"+---++## Integration Command++OpenClaw Gateway can export diagnostics through the `diagnostics-otel` plugin. Beacon can print a local OTLP/HTTP Gateway configuration and validate whether OpenClaw-derived events are arriving in the endpoint runtime log.++```bash title="Command syntax"+beacon endpoint integrations openclaw [command]+```++## Commands++<Columns cols={2}>+ <Card title="print-config" icon="file-lines" href="#beacon-endpoint-integrations-openclaw-print-config">+ Print OpenClaw Gateway OTLP setup guidance.+ </Card>+ <Card title="status" icon="circle-info" href="#beacon-endpoint-integrations-openclaw-status">+ Show OpenClaw Gateway endpoint integration status.+ </Card>+ <Card title="validate" icon="check" href="#beacon-endpoint-integrations-openclaw-validate">+ Validate whether OpenClaw OTLP-derived events are arriving.+ </Card>+</Columns>++## Gateway setup++Start Beacon's local endpoint collector:++```bash title="Start Beacon's local endpoint collector"+beacon endpoint install+```++Install and enable the OpenClaw diagnostics plugin:++```bash title="Install and enable the OpenClaw diagnostics plugin"+openclaw plugins install clawhub:@openclaw/diagnostics-otel+openclaw plugins enable diagnostics-otel+```++Print the Gateway config values that point OpenClaw at Beacon's local OTLP HTTP receiver:++```bash title="Print the Gateway config values that point OpenClaw at Beacon's local OTLP HTTP receiver"+beacon endpoint integrations openclaw print-config+```++By default, Beacon prints an endpoint of `http://127.0.0.1:4318`, protocol `http/protobuf`, and service name `openclaw-gateway`.++<Note>+ OpenClaw does not export raw prompt, response, tool, or system-prompt content unless `diagnostics.otel.captureContent.*` is explicitly enabled in the Gateway config. Beacon validation confirms at least one OpenClaw OTLP-derived event reached the runtime log; it does not prove logs, traces, and metrics are each flowing.+</Note>++## Flags++| Flag | Description |+|------|-------------|+| `--endpoint <url>` | OTLP HTTP endpoint to show in setup guidance. Defaults to Beacon's configured local OTLP HTTP receiver |+| `--since <duration>` | Require an OpenClaw event within this duration, such as `10m`. Validate only |+| `--json` | Print status as JSON. Status only |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint integrations openclaw print-config++`beacon endpoint integrations openclaw print-config` prints OpenClaw Gateway OTLP setup guidance.++```bash title="Print the configuration"+beacon endpoint integrations openclaw print-config+```++### Examples++Print guidance using the local OTLP HTTP receiver from the Beacon config:++```bash title="Print guidance using the local OTLP HTTP receiver from the Beacon config"+beacon endpoint integrations openclaw print-config+```++Print guidance for a custom local collector endpoint:++```bash title="Print guidance for a custom local collector endpoint"+beacon endpoint integrations openclaw print-config \+ --endpoint http://127.0.0.1:14318+```++## beacon endpoint integrations openclaw status++`beacon endpoint integrations openclaw status` reports whether OpenClaw OTLP-derived events have been observed in the endpoint runtime log.++```bash title="Check status"+beacon endpoint integrations openclaw status+```++### Examples++Show status:++```bash title="Show status"+beacon endpoint integrations openclaw status+```++Print status as JSON:++```bash title="Print status as JSON"+beacon endpoint integrations openclaw status --json+```++Check a custom runtime log:++```bash title="Check a custom runtime log"+beacon endpoint integrations openclaw status \+ --log-path /path/to/runtime.jsonl+```++## beacon endpoint integrations openclaw validate++`beacon endpoint integrations openclaw validate` checks whether OpenClaw OTLP-derived events have arrived in the endpoint runtime log.++```bash title="Run the validation check"+beacon endpoint integrations openclaw validate --since 10m+```++If validation fails, Beacon prints OpenClaw setup guidance using any endpoint you provide.++### Examples++Require an OpenClaw event in the last 10 minutes:++```bash title="Require an OpenClaw event in the last 10 minutes"+beacon endpoint integrations openclaw validate --since 10m+```++Validate and include custom setup guidance if no event is found:++```bash title="Validate and include custom setup guidance if no event is found"+beacon endpoint integrations openclaw validate \+ --since 10m \+ --endpoint http://127.0.0.1:14318+```++Validate a custom runtime log:++```bash title="Validate a custom runtime log"+beacon endpoint integrations openclaw validate \+ --log-path /path/to/runtime.jsonl+```++## Related++<Columns cols={2}>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Beacon discovers and configures supported runtime surfaces.+ </Card>+ <Card title="Supported runtimes" icon="list-check" href="/runtimes">+ Compare agent harness support across local OTLP, hooks, and admin-configured integrations.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install, repair, inspect, and uninstall the local endpoint agent.+ </Card>+ <Card title="Claude Cowork" icon="robot" href="/cli/claude-cowork">+ Manage Claude Cowork OTLP export.+ </Card>+</Columns>diff --git a/docs/cli/rapid7.mdx b/docs/cli/rapid7.mdxnew file mode 100644index 00000000..729485f6--- /dev/null+++ b/docs/cli/rapid7.mdx@@ -0,0 +1,181 @@+---+title: "beacon endpoint rapid7"+description: "Generate Rapid7 InsightIDR Custom Logs forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint rapid7` to generate Rapid7 InsightIDR Custom Logs forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps your customer-managed shipper upload `runtime.jsonl` to a Rapid7 Custom Logs webhook event source.++Beacon does not store Rapid7 webhook URLs or tokens. Keep those values in your shipper configuration, endpoint-management secret store, or deployment tooling.++```bash title="Command syntax"+beacon endpoint rapid7 [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint rapid7 print-config" icon="file-lines" href="#beacon-endpoint-rapid7-print-config">+ Print a Rapid7 Custom Logs webhook smoke-test uploader for the configured runtime log.+ </Card>+ <Card title="beacon endpoint rapid7 install-pack" icon="box-archive" href="#beacon-endpoint-rapid7-install-pack">+ Write Rapid7 InsightIDR Custom Logs forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint rapid7 validate" icon="check" href="#beacon-endpoint-rapid7-validate">+ Write and describe a Beacon Rapid7 validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint rapid7 print-config++`beacon endpoint rapid7 print-config` prints a Rapid7 Custom Logs webhook smoke-test uploader for the configured Beacon runtime JSONL log.++```bash title="Print the configuration"+beacon endpoint rapid7 print-config+```++Use this command when you want to copy the one-shot upload script into an existing validation workflow. For production forwarding, use a tailing forwarder that checkpoints offsets instead of repeatedly uploading the whole file.++### Examples++Print a smoke-test uploader for the default per-user Beacon install:++```bash title="Print a smoke-test uploader for the default per-user Beacon install"+beacon endpoint rapid7 print-config+```++Print a smoke-test uploader for a system-mode MDM deployment:++```bash title="Print a smoke-test uploader for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint rapid7 print-config --system+```++Print a smoke-test uploader for a custom runtime log:++```bash title="Print a smoke-test uploader for a custom runtime log"+beacon endpoint rapid7 print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint rapid7 install-pack++`beacon endpoint rapid7 install-pack` writes Rapid7 InsightIDR Custom Logs forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint rapid7 install-pack --output ./beacon-rapid7-pack+```++The pack includes setup instructions, a one-shot NDJSON upload smoke-test script, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint rapid7 install-pack --output ./beacon-rapid7-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint rapid7 install-pack \+ --system \+ --output ./beacon-rapid7-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint rapid7 install-pack \+ --output ./beacon-rapid7-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Rapid7 InsightIDR content pack. Defaults to `beacon-rapid7-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint rapid7 validate++`beacon endpoint rapid7 validate` writes a Beacon validation event to the runtime JSONL log and prints the expected Rapid7 fields and validation query.++```bash title="Run the validation check"+beacon endpoint rapid7 validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint rapid7 validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint rapid7 validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint rapid7 validate --log-path /path/to/runtime.jsonl+```++The validation command prints a Rapid7 Log Search query:++```text+"Beacon endpoint Rapid7 validation event"+```++It also prints the expected fields:++```text+vendor=beacon product=endpoint-agent destination.type=rapid7+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Rapid7 forwarding" icon="chart-line" href="/log-forwarding/rapid7">+ Configure Rapid7 InsightIDR Custom Logs webhook forwarding for Beacon events.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/rules-add.mdx b/docs/cli/rules-add.mdxnew file mode 100644index 00000000..428a7584--- /dev/null+++ b/docs/cli/rules-add.mdx@@ -0,0 +1,59 @@+---+title: "beacon rules add"+description: "Install local Beacon threat-detection rule files into the store"+---++## Command Overview++`beacon rules add` installs a local `.rule.yaml` file or a directory of rule files into the local threat-rule store.++```bash title="Command syntax"+beacon rules add <path> [flags]+```++Beacon validates rules before installing them. Installed rules become active for future [`beacon scan`](/cli/scan) runs.++## Examples++Install all rules from a local directory:++```bash title="Install local rules"+beacon rules add ./rules+```++Install one rule file:++```bash title="Install one rule"+beacon rules add ./rules/suspicious-egress-command.rule.yaml+```++Overwrite an existing rule with the same id:++```bash title="Overwrite an existing rule"+beacon rules add ./rules --force+```++Install into the system-mode rule store:++```bash title="Install system-mode rules"+sudo beacon rules add ./rules --system+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--force` | Overwrite an existing rule with the same id |++## Related++<Columns cols={2}>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Validate rules and fixtures before installing.+ </Card>+ <Card title="beacon rules list" icon="list" href="/cli/rules-list">+ Confirm which rules are active.+ </Card>+</Columns>diff --git a/docs/cli/rules-fields.mdx b/docs/cli/rules-fields.mdxnew file mode 100644index 00000000..c89717ac--- /dev/null+++ b/docs/cli/rules-fields.mdx@@ -0,0 +1,57 @@+---+title: "beacon rules fields"+description: "Print Beacon endpoint event fields available to threat-rule CEL expressions"+---++## Command Overview++`beacon rules fields` prints the endpoint event fields that threat-rule CEL expressions can match on.++```bash title="Command syntax"+beacon rules fields [flags]+```++Use this command while authoring rules to confirm field paths and value types.++## CEL field paths++Threat-rule expressions bind each Beacon event as `e`. Field paths mirror the event JSON shape, such as:++| Field path | Example use |+|------------|-------------|+| `e.event.action` | Match event type, such as `command.executed` or `file.read` |+| `e.command.command` | Match executed command text |+| `e.file.path` | Match a file path |+| `e.prompt.text` | Match prompt text when retained |+| `e.gen_ai.usage.input_tokens` | Match normalized token usage fields |++## Examples++Print the field list:++```bash title="List rule fields"+beacon rules fields+```++Render the field reference as markdown:++```bash title="Render fields as markdown"+beacon rules fields --markdown+```++## Flags++| Flag | Description |+|------|-------------|+| `--markdown` | Render as a markdown reference table |++## Related++<Columns cols={2}>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Validate CEL expressions and embedded fixtures.+ </Card>+ <Card title="Endpoint Event Schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon endpoint events.+ </Card>+</Columns>diff --git a/docs/cli/rules-lint.mdx b/docs/cli/rules-lint.mdxnew file mode 100644index 00000000..12a228ea--- /dev/null+++ b/docs/cli/rules-lint.mdx@@ -0,0 +1,75 @@+---+title: "beacon rules lint"+description: "Validate Beacon threat-rule files and run embedded conformance fixtures"+---++## Command Overview++`beacon rules lint` validates rule files and runs their embedded conformance fixtures.++```bash title="Command syntax"+beacon rules lint [path]+```++Use this command while authoring rules or before installing or publishing a rule pack.++## What lint checks++`beacon rules lint`:++- loads one `.rule.yaml` file or every `.rule.yaml` file under a directory+- validates rule structure+- compiles CEL expressions against the Beacon endpoint event schema+- enforces maturity gates for `experimental`, `stable`, and `deprecated` rules+- runs every embedded fixture and checks the declared verdict++Stable rules must include at least one `match` fixture and at least one `no_match` fixture.++## Examples++Lint the default `./rules` directory:++```bash title="Lint default rules directory"+beacon rules lint+```++Lint a specific directory:++```bash title="Lint a rule directory"+beacon rules lint ./rules+```++Lint one rule file:++```bash title="Lint one rule"+beacon rules lint ./rules/suspicious-egress-command.rule.yaml+```++## Rule fixture shape++Each fixture declares the expected `verdict` and an ordered list of partial Beacon events.++```yaml title="Fixture example"+tests:+ - name: positive_basic+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "curl https://example.com" }+ - name: unrelated+ verdict: no_match+ events:+ - event: { action: command.executed }+ command: { command: "ls -la" }+```++## Related++<Columns cols={2}>+ <Card title="beacon rules fields" icon="table-list" href="/cli/rules-fields">+ Print event fields available to CEL expressions.+ </Card>+ <Card title="beacon rules add" icon="plus" href="/cli/rules-add">+ Install validated rules into the local store.+ </Card>+</Columns>diff --git a/docs/cli/rules-list.mdx b/docs/cli/rules-list.mdxnew file mode 100644index 00000000..be869d8c--- /dev/null+++ b/docs/cli/rules-list.mdx@@ -0,0 +1,46 @@+---+title: "beacon rules list"+description: "List active Beacon threat-detection rules"+---++## Command Overview++`beacon rules list` prints the active threat-detection rules used by [`beacon scan`](/cli/scan).++```bash title="Command syntax"+beacon rules list [flags]+```++The output includes each rule id, severity, maturity status, and source. The source shows whether Beacon loaded the rule from the local store or the built-in baseline.++## Examples++List active user-mode rules:++```bash title="List active rules"+beacon rules list+```++List active system-mode rules:++```bash title="List system-mode rules"+sudo beacon rules list --system+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |++## Related++<Columns cols={2}>+ <Card title="beacon rules add" icon="plus" href="/cli/rules-add">+ Install local rule files into the store.+ </Card>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run active rules over local telemetry.+ </Card>+</Columns>diff --git a/docs/cli/rules-pull.mdx b/docs/cli/rules-pull.mdxnew file mode 100644index 00000000..18a008eb--- /dev/null+++ b/docs/cli/rules-pull.mdx@@ -0,0 +1,71 @@+---+title: "beacon rules pull"+description: "Fetch an explicit Beacon threat-rule pack into the local store"+---++## Command Overview++`beacon rules pull` downloads a rule file or rule pack from an explicit URL and installs valid rules into the local store.++```bash title="Command syntax"+beacon rules pull <url> [flags]+```++This is the only `beacon rules` command that reaches the network, and only when you run it. Beacon never fetches rules on its own. The full Asymptote threat-rule pack is published as a versioned `threat-rules.tar.gz` asset on each Agent Beacon GitHub release.++## Supported inputs++`beacon rules pull` accepts:++| Input | Description |+|-------|-------------|+| `.rule.yaml` | One rule file |+| `.tar.gz` | Gzipped tarball containing `.rule.yaml` files |+| `.tgz` | Gzipped tarball containing `.rule.yaml` files |++Downloaded tarballs only install `.rule.yaml` entries. Archive entries containing path traversal elements are rejected before install.++## Examples++Pull a rule pack:++```bash title="Pull a rule pack"+beacon rules pull https://github.com/asymptote-labs/agent-beacon/releases/download/v0.0.66/threat-rules.tar.gz+```++Pull one rule file:++```bash title="Pull one rule file"+beacon rules pull https://example.com/rules/suspicious-egress-command.rule.yaml+```++Overwrite an existing rule with the same id:++```bash title="Overwrite existing rules"+beacon rules pull https://github.com/asymptote-labs/agent-beacon/releases/download/v0.0.66/threat-rules.tar.gz --force+```++Install into the system-mode rule store:++```bash title="Pull system-mode rules"+sudo beacon rules pull https://github.com/asymptote-labs/agent-beacon/releases/download/v0.0.66/threat-rules.tar.gz --system+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--force` | Overwrite an existing rule with the same id |++## Related++<Columns cols={2}>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Validate a rule pack before publishing or installing.+ </Card>+ <Card title="beacon rules list" icon="list" href="/cli/rules-list">+ Confirm the installed active rules.+ </Card>+</Columns>diff --git a/docs/cli/rules-remove.mdx b/docs/cli/rules-remove.mdxnew file mode 100644index 00000000..b312234d--- /dev/null+++ b/docs/cli/rules-remove.mdx@@ -0,0 +1,46 @@+---+title: "beacon rules remove"+description: "Remove a Beacon threat-detection rule from the local store"+---++## Command Overview++`beacon rules remove` removes one installed threat-detection rule from the local store by rule id.++```bash title="Command syntax"+beacon rules remove <id> [flags]+```++Use [`beacon rules list`](/cli/rules-list) first when you need to confirm the active rule ids.++## Examples++Remove one rule from the user-mode store:++```bash title="Remove a rule"+beacon rules remove suspicious-egress-command+```++Remove one rule from the system-mode store:++```bash title="Remove a system-mode rule"+sudo beacon rules remove suspicious-egress-command --system+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |++## Related++<Columns cols={2}>+ <Card title="beacon rules list" icon="list" href="/cli/rules-list">+ List active rules and rule ids.+ </Card>+ <Card title="beacon rules add" icon="plus" href="/cli/rules-add">+ Install local rules into the store.+ </Card>+</Columns>diff --git a/docs/cli/rules.mdx b/docs/cli/rules.mdxnew file mode 100644index 00000000..8ad706d5--- /dev/null+++ b/docs/cli/rules.mdx@@ -0,0 +1,162 @@+---+title: "beacon rules"+description: "Manage and author Beacon threat-detection rules"+---++## Command Overview++`beacon rules` manages the local threat-rule store used by [`beacon scan`](/cli/scan) and provides authoring helpers for validating rule packs.++```bash title="Command syntax"+beacon rules [command]+```++The detection engine ships in the Beacon binary, but rules are external data loaded from the local store. A small baseline is built in and used until you install your own rules. Beacon publishes the full threat-rule pack as a versioned `threat-rules.tar.gz` asset on each GitHub release.++<Note>+ Beacon never fetches rules on its own. `beacon rules pull` is the only rules command that reaches the network, and only for the explicit URL you provide.+</Note>++## Commands++<Columns cols={2}>+ <Card title="list" icon="list" href="/cli/rules-list">+ List the active threat-detection rules.+ </Card>+ <Card title="add" icon="plus" href="/cli/rules-add">+ Install local rule files into the store.+ </Card>+ <Card title="remove" icon="trash" href="/cli/rules-remove">+ Remove a rule from the store by id.+ </Card>+ <Card title="pull" icon="cloud-arrow-down" href="/cli/rules-pull">+ Fetch an explicit rule pack URL into the store.+ </Card>+ <Card title="lint" icon="check" href="/cli/rules-lint">+ Validate rule files and run embedded fixtures.+ </Card>+ <Card title="fields" icon="table-list" href="/cli/rules-fields">+ Print event fields available to CEL match expressions.+ </Card>+</Columns>++## Rule format++Threat rules are YAML documents whose match conditions are CEL expressions over Beacon endpoint events. A single-event rule uses a top-level `match`; a correlated rule uses ordered `correlation.steps` scoped to a session window.++Rules include severity, maturity status, posture, an emitted reason, and embedded conformance fixtures. Stable rules must include at least one matching and one non-matching fixture.++```yaml title="Example rule shape"+id: suspicious-egress-command+version: 1+title: Suspicious network egress command+severity: high+status: stable+posture: detect+match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("\\b(curl|wget|nc)\\b")+emit:+ reason: "Agent executed a command commonly used for network egress"+tests:+ - name: positive_basic+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "curl https://example.com" }+ - name: unrelated+ verdict: no_match+ events:+ - event: { action: command.executed }+ command: { command: "ls -la" }+```++## beacon rules list++List the active rules and show whether each rule came from the store or the built-in baseline.++```bash title="List active rules"+beacon rules list+```++Use `--system` to inspect the system-mode rule store.++## beacon rules add++Install a local `.rule.yaml` file or a directory of rule files into the store. Rules are validated before install.++```bash title="Install local rules"+beacon rules add ./rules+```++Overwrite an existing rule with the same id:++```bash title="Overwrite an existing rule"+beacon rules add ./rules --force+```++## beacon rules remove++Remove one rule from the store by id.++```bash title="Remove a rule"+beacon rules remove suspicious-egress-command+```++## beacon rules pull++Fetch a `.rule.yaml`, `.tar.gz`, or `.tgz` rule pack from an explicit URL and install valid rules into the store.++```bash title="Pull a rule pack"+beacon rules pull https://github.com/asymptote-labs/agent-beacon/releases/download/v0.0.66/threat-rules.tar.gz+```++Downloaded tarballs only install `.rule.yaml` entries. Archive entries containing path traversal elements are rejected before install.++## beacon rules lint++Validate a rule file or directory, compile CEL expressions against the endpoint event schema, enforce maturity gates, and run embedded conformance fixtures.++```bash title="Lint a rule directory"+beacon rules lint ./rules+```++With no path, Beacon lints `./rules`.++## beacon rules fields++Print the event fields a rule can reference from CEL expressions.++```bash title="List rule fields"+beacon rules fields+```++Render a markdown field reference:++```bash title="Render fields as markdown"+beacon rules fields --markdown+```++## Shared Store Flags++`beacon rules list`, `add`, `remove`, and `pull` accept endpoint mode flags:++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--force` | Overwrite an existing rule with the same id. Available on `add` and `pull` |++## Related++<Columns cols={2}>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run active rules over local endpoint telemetry.+ </Card>+ <Card title="Detections" icon="shield-halved" href="/detections">+ Understand the detection model behind Beacon threat rules.+ </Card>+ <Card title="Endpoint Event Schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized event fields available to rules.+ </Card>+</Columns>diff --git a/docs/cli/s3.mdx b/docs/cli/s3.mdxnew file mode 100644index 00000000..5cc00a91--- /dev/null+++ b/docs/cli/s3.mdx@@ -0,0 +1,182 @@+---+title: "beacon endpoint s3"+description: "Generate AWS S3 forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint s3` to generate AWS S3 forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps your customer-managed Vector agent upload `runtime.jsonl` to an S3 bucket as gzip-compressed NDJSON.++Beacon does not store AWS credentials, profiles, IAM roles, bucket policies, lifecycle rules, or encryption settings. Keep those values in AWS, Vector, endpoint-management policy, or deployment tooling.++```bash title="Command syntax"+beacon endpoint s3 [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint s3 print-config" icon="file-lines" href="#beacon-endpoint-s3-print-config">+ Print the Vector AWS S3 forwarding template for the configured runtime log.+ </Card>+ <Card title="beacon endpoint s3 install-pack" icon="box-archive" href="#beacon-endpoint-s3-install-pack">+ Write AWS S3 forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint s3 validate" icon="check" href="#beacon-endpoint-s3-validate">+ Write and describe a Beacon AWS S3 validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint s3 print-config++`beacon endpoint s3 print-config` prints a Vector configuration that tails the selected Beacon runtime JSONL log and writes gzip-compressed NDJSON objects to AWS S3.++```bash title="Print the configuration"+beacon endpoint s3 print-config+```++Use this command when you want to inspect or copy the Vector template into an existing endpoint forwarding workflow.++### Examples++Print Vector config for the default per-user Beacon install:++```bash title="Print Vector config for the default per-user Beacon install"+beacon endpoint s3 print-config+```++Print Vector config for a system-mode MDM deployment:++```bash title="Print Vector config for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint s3 print-config --system+```++Print Vector config for a custom runtime log:++```bash title="Print Vector config for a custom runtime log"+beacon endpoint s3 print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint s3 install-pack++`beacon endpoint s3 install-pack` writes AWS S3 forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint s3 install-pack --output ./beacon-s3-pack+```++The pack includes setup instructions, a one-shot AWS CLI smoke-test script, a Vector `aws_s3` forwarding template, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint s3 install-pack --output ./beacon-s3-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint s3 install-pack \+ --system \+ --output ./beacon-s3-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint s3 install-pack \+ --output ./beacon-s3-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the AWS S3 content pack. Defaults to `beacon-s3-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint s3 validate++`beacon endpoint s3 validate` writes a Beacon validation event to the runtime JSONL log and prints the expected AWS S3 validation fields and follow-up AWS CLI checks.++```bash title="Run the validation check"+beacon endpoint s3 validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint s3 validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint s3 validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint s3 validate --log-path /path/to/runtime.jsonl+```++The validation command writes the local event only. Confirm remote delivery with AWS tooling:++```text+aws s3 ls "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/" --recursive --region "$AWS_REGION"+aws s3 cp "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/date=<date>/<object>.jsonl.gz" - --region "$AWS_REGION" | gzip -dc | grep "Beacon endpoint S3 validation event"+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=s3 destination.mode=aws_s3_jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="AWS S3 forwarding" icon="chart-line" href="/log-forwarding/s3">+ Configure Vector forwarding from Beacon JSONL into AWS S3.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/scan-ci-gates.mdx b/docs/cli/scan-ci-gates.mdxnew file mode 100644index 00000000..1d5b3691--- /dev/null+++ b/docs/cli/scan-ci-gates.mdx@@ -0,0 +1,63 @@+---+title: "Use scan gates"+description: "Filter Beacon scan findings and fail automation on severity thresholds"+---++## Command Overview++`beacon scan` can filter displayed findings and return a non-zero exit code when findings meet a severity threshold.++Use these flags when you want a local check in rollout scripts, CI validation jobs, or support workflows that should stop on high-risk telemetry.++## Filter displayed findings++Only print findings at or above a minimum severity:++```bash title="Only show high and critical findings"+beacon scan --min-severity high+```++Accepted severity values are:++| Severity |+|----------|+| `info` |+| `low` |+| `medium` |+| `high` |+| `critical` |++## Fail on findings++Exit non-zero if any finding is at or above a severity threshold:++```bash title="Fail on high-severity findings"+beacon scan --fail-on high+```++The `--fail-on` check evaluates every finding from the scan before `--min-severity` filters display output. This keeps the exit code accurate even when the printed output is narrowed.++## JSON output++Combine JSON output with severity gates for automation:++```bash title="JSON output with a severity gate"+beacon scan --json --fail-on high+```++For copied runtime logs or artifacts, point the scan at the file explicitly:++```bash title="Scan an exported runtime log"+beacon scan --log-path ./beacon-runtime.jsonl --json --fail-on high+```++## Related++<Columns cols={2}>+ <Card title="Run local scans" icon="magnifying-glass" href="/cli/scan-local">+ Choose logs, rules, sessions, and output formats.+ </Card>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Validate rule packs before using them in automation.+ </Card>+</Columns>diff --git a/docs/cli/scan-local.mdx b/docs/cli/scan-local.mdxnew file mode 100644index 00000000..3fddcc17--- /dev/null+++ b/docs/cli/scan-local.mdx@@ -0,0 +1,75 @@+---+title: "Run local scans"+description: "Scan local Beacon endpoint telemetry with active threat-detection rules"+---++## Command Overview++Run `beacon scan` after endpoint telemetry is flowing to evaluate the runtime log with active threat-detection rules.++```bash title="Run a local scan"+beacon scan+```++Scanning is read-only. It loads local telemetry from the resolved runtime JSONL log, evaluates rules in memory, and prints findings without contacting the network.++## Rule selection++Beacon chooses rules in this order:++1. Rules in the local rule store.+2. The built-in baseline rules when no store is installed.+3. The directory passed with `--rules`, when you want an explicit rule pack for one scan.++```bash title="Scan with an explicit rule directory"+beacon scan --rules ./rules+```++## Runtime log selection++Use per-user endpoint paths by default:++```bash title="Scan user-mode telemetry"+beacon scan --user+```++Scan system-mode telemetry:++```bash title="Scan system-mode telemetry"+sudo beacon scan --system+```++Scan a copied or exported runtime log:++```bash title="Scan a specific runtime log"+beacon scan --log-path ./runtime.jsonl+```++## Session filtering++Filter to one session id substring when you are investigating a known agent run:++```bash title="Scan one session"+beacon scan --session claude-session-123+```++## Output++Human-readable output summarizes each finding, its severity, rule id, reason, session, and matched events.++For JSON output, use:++```bash title="Print JSON findings"+beacon scan --json+```++## Related++<Columns cols={2}>+ <Card title="Use scan gates" icon="circle-exclamation" href="/cli/scan-ci-gates">+ Filter findings and fail automation on severity thresholds.+ </Card>+ <Card title="beacon rules" icon="shield-halved" href="/cli/rules">+ Manage the rules used by local scans.+ </Card>+</Columns>diff --git a/docs/cli/scan.mdx b/docs/cli/scan.mdxnew file mode 100644index 00000000..84765e9b--- /dev/null+++ b/docs/cli/scan.mdx@@ -0,0 +1,96 @@+---+title: "beacon scan"+description: "Run threat-detection rules over local Beacon endpoint telemetry"+---++## Command Overview++`beacon scan` runs active threat-detection rules over the local Beacon runtime log and reports findings. The scan is read-only and never touches the network.++```bash title="Command syntax"+beacon scan [flags]+```++Use this command after endpoint telemetry is flowing when you want a local risk check before forwarding events, sharing diagnostics, or gating a CI-like validation workflow.++## How scanning works++Beacon loads rules from the local rule store when present. If no store is installed, Beacon uses the built-in baseline rules. You can also point a scan at an explicit rule directory with `--rules`.++Rules are YAML documents with CEL expressions over the Beacon [Endpoint Event Schema](/telemetry-schema/event-schema). Rules can match one event or correlate multiple ordered events within one session window.++## Workflows++<Columns cols={2}>+ <Card title="Run local scans" icon="magnifying-glass" href="/cli/scan-local">+ Choose runtime logs, rule directories, sessions, and output formats.+ </Card>+ <Card title="Use scan gates" icon="circle-exclamation" href="/cli/scan-ci-gates">+ Filter findings and fail automation on severity thresholds.+ </Card>+</Columns>++## Examples++Run the active rules over the default per-user endpoint log:++```bash title="Run a local scan"+beacon scan+```++Print machine-readable findings:++```bash title="Print JSON findings"+beacon scan --json+```++Only report high and critical findings:++```bash title="Filter by severity"+beacon scan --min-severity high+```++Fail the command when any high or critical finding is present:++```bash title="Fail on high-severity findings"+beacon scan --fail-on high+```++Scan a copied runtime log with a local rule pack:++```bash title="Scan an explicit log and rules directory"+beacon scan --log-path ./runtime.jsonl --rules ./rules+```++Filter to one session id substring:++```bash title="Scan one session"+beacon scan --session claude-session-123+```++## Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths |+| `--log-path <path>` | Runtime JSONL log path. Defaults to the path resolved from endpoint config |+| `--rules <dir>` | Rule directory to scan with. Defaults to the local store, then the built-in baseline |+| `--json` | Output findings as JSON |+| `--min-severity <level>` | Only report findings at or above `info`, `low`, `medium`, `high`, or `critical` |+| `--session <id>` | Only scan events whose session id contains this value |+| `--fail-on <level>` | Exit non-zero if any finding is at or above `info`, `low`, `medium`, `high`, or `critical` |++## Related++<Columns cols={2}>+ <Card title="beacon rules" icon="shield-halved" href="/cli/rules">+ Manage, pull, and author threat-detection rules.+ </Card>+ <Card title="Detections" icon="book-open" href="/detections">+ Learn how detection rules, fixtures, and findings work.+ </Card>+ <Card title="Endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect the same runtime logs locally before or after scanning.+ </Card>+</Columns>diff --git a/docs/cli/sentinel.mdx b/docs/cli/sentinel.mdxnew file mode 100644index 00000000..0f769906--- /dev/null+++ b/docs/cli/sentinel.mdx@@ -0,0 +1,176 @@+---+title: "beacon endpoint sentinel"+description: "Generate Microsoft Sentinel Azure Monitor Agent forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint sentinel` to generate Microsoft Sentinel forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps Azure Monitor Agent tail `runtime.jsonl` into a Log Analytics custom table through a Data Collection Rule.++Beacon does not store Azure tenant IDs, client secrets, workspace IDs, DCR identifiers, ingestion endpoints, or Azure Monitor Agent configuration. Keep those values in Azure, endpoint-management policy, or deployment tooling.++```bash title="Command syntax"+beacon endpoint sentinel [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint sentinel print-config" icon="file-lines" href="#beacon-endpoint-sentinel-print-config">+ Print the Sentinel DCR transform for Beacon endpoint events.+ </Card>+ <Card title="beacon endpoint sentinel install-pack" icon="box-archive" href="#beacon-endpoint-sentinel-install-pack">+ Write Microsoft Sentinel forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint sentinel validate" icon="check" href="#beacon-endpoint-sentinel-validate">+ Write and describe a Beacon Microsoft Sentinel validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint sentinel print-config++`beacon endpoint sentinel print-config` prints the KQL transform used by the Microsoft Sentinel Data Collection Rule. The output starts with the Azure Monitor Agent file pattern selected from the active Beacon runtime log path.++```bash title="Print the configuration"+beacon endpoint sentinel print-config+```++Use this command when you want to inspect or copy the transform into an existing DCR workflow.++### Examples++Print the DCR transform for the default per-user Beacon install:++```bash title="Print the DCR transform for the default per-user Beacon install"+beacon endpoint sentinel print-config+```++Print the DCR transform for a system-mode MDM deployment:++```bash title="Print the DCR transform for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint sentinel print-config --system+```++Print the DCR transform for a custom runtime log:++```bash title="Print the DCR transform for a custom runtime log"+beacon endpoint sentinel print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint sentinel install-pack++`beacon endpoint sentinel install-pack` writes Microsoft Sentinel forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint sentinel install-pack --output ./beacon-sentinel-pack+```++The pack includes setup instructions, the `BeaconRuntime_CL` table schema, a DCR template, the DCR transform, starter hunting queries, example detection logic, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint sentinel install-pack --output ./beacon-sentinel-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sentinel install-pack \+ --system \+ --output ./beacon-sentinel-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint sentinel install-pack \+ --output ./beacon-sentinel-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Microsoft Sentinel content pack. Defaults to `beacon-sentinel-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint sentinel validate++`beacon endpoint sentinel validate` writes a Beacon validation event to the runtime JSONL log and prints the expected Microsoft Sentinel table and validation query.++```bash title="Run the validation check"+beacon endpoint sentinel validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint sentinel validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sentinel validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint sentinel validate --log-path /path/to/runtime.jsonl+```++The validation command prints the expected Sentinel table and query:++```text+Expected Sentinel table: BeaconRuntime_CL+Expected validation query: BeaconRuntime_CL | where Message has "Beacon endpoint Sentinel validation event"+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Microsoft Sentinel forwarding" icon="chart-line" href="/log-forwarding/microsoft-sentinel">+ Configure Azure Monitor Agent and Data Collection Rules for Beacon events.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/sumo.mdx b/docs/cli/sumo.mdxnew file mode 100644index 00000000..15614be8--- /dev/null+++ b/docs/cli/sumo.mdx@@ -0,0 +1,175 @@+---+title: "beacon endpoint sumo"+description: "Generate Sumo Logic HTTP Source forwarding content and validation events for Beacon endpoint events."+---++## Forwarding Command++Use `beacon endpoint sumo` to generate Sumo Logic HTTP Source forwarding content for Beacon endpoint events. The generated pack keeps Beacon as a local JSONL producer and helps your customer-managed shipper upload `runtime.jsonl` to a Sumo Logic Hosted Collector HTTP Logs & Metrics Source.++Beacon does not store Sumo Source URLs, tokens, or collector configuration. Keep those values in your shipper configuration, endpoint-management secret store, or deployment tooling.++```bash title="Command syntax"+beacon endpoint sumo [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint sumo print-config" icon="file-lines" href="#beacon-endpoint-sumo-print-config">+ Print a Sumo HTTP Source smoke-test uploader for the configured runtime log.+ </Card>+ <Card title="beacon endpoint sumo install-pack" icon="box-archive" href="#beacon-endpoint-sumo-install-pack">+ Write Sumo Logic HTTP Source forwarding content to a directory.+ </Card>+ <Card title="beacon endpoint sumo validate" icon="check" href="#beacon-endpoint-sumo-validate">+ Write and describe a Beacon Sumo Logic validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++## beacon endpoint sumo print-config++`beacon endpoint sumo print-config` prints a Sumo Logic HTTP Source smoke-test uploader for the configured Beacon runtime JSONL log.++```bash title="Print the configuration"+beacon endpoint sumo print-config+```++Use this command when you want to copy the one-shot upload script into an existing validation workflow. For production forwarding, use a tailing forwarder that checkpoints offsets instead of repeatedly uploading the whole file.++### Examples++Print a smoke-test uploader for the default per-user Beacon install:++```bash title="Print a smoke-test uploader for the default per-user Beacon install"+beacon endpoint sumo print-config+```++Print a smoke-test uploader for a system-mode MDM deployment:++```bash title="Print a smoke-test uploader for a system-mode MDM deployment"+sudo /opt/beacon/bin/beacon endpoint sumo print-config --system+```++Print a smoke-test uploader for a custom runtime log:++```bash title="Print a smoke-test uploader for a custom runtime log"+beacon endpoint sumo print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint sumo install-pack++`beacon endpoint sumo install-pack` writes Sumo Logic HTTP Source forwarding content to a directory.++```bash title="Generate the integration pack"+beacon endpoint sumo install-pack --output ./beacon-sumo-pack+```++The pack includes setup instructions, a one-shot upload smoke-test script, and sample Beacon endpoint events.++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint sumo install-pack --output ./beacon-sumo-pack+```++Generate a content pack for a system-mode deployment:++```bash title="Generate a content pack for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sumo install-pack \+ --system \+ --output ./beacon-sumo-pack+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint sumo install-pack \+ --output ./beacon-sumo-pack \+ --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Sumo Logic content pack. Defaults to `beacon-sumo-pack` |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint sumo validate++`beacon endpoint sumo validate` writes a Beacon validation event to the runtime JSONL log and prints the expected Sumo Logic fields and validation query.++```bash title="Run the validation check"+beacon endpoint sumo validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint sumo validate+```++Write a validation event for a system-mode deployment:++```bash title="Write a validation event for a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sumo validate --system+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint sumo validate --log-path /path/to/runtime.jsonl+```++The validation command prints a Sumo Logic query:++```text+_sourceCategory=security/agentbeacon "Beacon endpoint Sumo validation event"+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Related++<Columns cols={2}>+ <Card title="Sumo Logic forwarding" icon="chart-line" href="/log-forwarding/sumo">+ Configure Sumo Logic Hosted Collector HTTP Source forwarding for Beacon events.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/cli/upgrade.mdx b/docs/cli/upgrade.mdxnew file mode 100644index 00000000..40c2280b--- /dev/null+++ b/docs/cli/upgrade.mdx@@ -0,0 +1,56 @@+---+title: "Upgrade Beacon"+description: "Check for Beacon CLI updates and upgrade safely"+---++## Check for updates++Use `beacon version check` before upgrading to confirm whether a newer release is available:++```bash title="Check for updates"+beacon version check+```++When an update is available, Beacon prints the latest version, the installed version, Homebrew upgrade guidance, and a release download URL.++## Upgrade with Homebrew++Upgrade Beacon with the standard Homebrew flow:++```bash title="Upgrade Beacon"+brew update+brew upgrade beacon+beacon version+```++## Repair endpoint configuration++If you run Beacon as a local endpoint service, reapply managed service files and telemetry configuration after upgrading:++```bash title="Repair endpoint configuration after upgrade"+beacon endpoint repair+beacon endpoint status+```++`beacon endpoint repair` preserves runtime logs while reapplying service files, collector configuration, harness telemetry settings, and forwarding destinations.++<Note>+ On v0.0.43 or newer, use `beacon endpoint doctor --fix` when you only need supported health-check drift remediated without a full repair.+</Note>++## Related++<Columns cols={2}>+ <Card title="Install Beacon" icon="download" href="/cli/install">+ Install the Beacon CLI with Homebrew or platform archives.+ </Card>+ <Card title="beacon version" icon="code-branch" href="/cli/version">+ Display the installed version and check for released updates.+ </Card>+ <Card title="Endpoint repair" icon="wrench" href="/cli/endpoint-repair">+ Reapply service files and telemetry configuration.+ </Card>+ <Card title="Endpoint health checks" icon="stethoscope" href="/cli/endpoint-doctor">+ Validate endpoint health and apply supported fixes.+ </Card>+</Columns>diff --git a/docs/cli/version.mdx b/docs/cli/version.mdxnew file mode 100644index 00000000..238ac885--- /dev/null+++ b/docs/cli/version.mdx@@ -0,0 +1,70 @@+---+title: "beacon version"+description: "Display the Agent Beacon CLI version and check for updates"+---++## Command Overview++Display the version number, git commit, and build date of the Agent Beacon CLI, or check whether a newer released version is available.++```bash title="Command syntax"+beacon version+```++<Accordion title="Example output">+```bash title="Example output"+$ beacon version++beacon version 0.0.66 (c618237) built on 2026-06-13T23:01:46Z+```+</Accordion>++## beacon version check++Check GitHub releases for the latest published Beacon CLI version:++```bash title="Check GitHub releases for the latest published Beacon CLI version"+beacon version check+```++When an update is available, Beacon prints the latest version, the installed version, Homebrew upgrade guidance, and a release download URL.++<Accordion title="Example output">+```bash title="Example output"+$ beacon version check++Beacon v0.0.66 is available. Current version: v0.0.65+If installed with Homebrew: brew upgrade beacon+Download: https://github.com/Asymptote-Labs/agent-beacon/releases/tag/v0.0.66+```+</Accordion>++For development builds or versions that cannot be compared with published releases, Beacon prints an informational message and exits successfully.++## Flags++| Flag | Description |+|------|-------------|+| `-h, --help` | Help for version |+| `-v, --version` | Also available as `beacon -v` at the top level |++## Upgrade++Use `beacon version check` before upgrading to confirm whether a newer release is available:++```bash title="Use beacon version check before upgrading to confirm whether a newer release is available"+beacon version check+brew update+brew upgrade beacon+```++## Related++<Columns cols={2}>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install, repair, and inspect the endpoint agent.+ </Card>+ <Card title="Upgrade Beacon" icon="arrow-up" href="/cli/upgrade">+ Check for updates and upgrade the Beacon CLI.+ </Card>+</Columns>diff --git a/docs/cli/vscode.mdx b/docs/cli/vscode.mdxnew file mode 100644index 00000000..f845ea36--- /dev/null+++ b/docs/cli/vscode.mdx@@ -0,0 +1,126 @@+---+title: "beacon endpoint integrations vscode"+description: "Set up VS Code Copilot OpenTelemetry export for Beacon"+---++## Integration Command++VS Code Copilot Chat can export OpenTelemetry to Beacon's local collector. Beacon can configure VS Code user settings, show integration status, and validate whether VS Code-derived events are arriving in the runtime log.++```bash title="Command syntax"+beacon endpoint integrations vscode [command]+```++## Commands++<Columns cols={2}>+ <Card title="print-config" icon="file-lines" href="#beacon-endpoint-integrations-vscode-print-config">+ Print VS Code Copilot OTel setup guidance.+ </Card>+ <Card title="setup" icon="gear" href="#beacon-endpoint-integrations-vscode-setup">+ Configure VS Code Copilot OTel settings.+ </Card>+ <Card title="status" icon="circle-info" href="#beacon-endpoint-integrations-vscode-status">+ Show VS Code endpoint integration status.+ </Card>+ <Card title="validate" icon="check" href="#beacon-endpoint-integrations-vscode-validate">+ Validate whether VS Code events are arriving.+ </Card>+</Columns>++## Recommended setup++Use the endpoint harness path for first-time setup:++```bash title="Use the endpoint harness path for first-time setup"+beacon endpoint install --harness vscode+```++This starts Beacon's local collector and configures VS Code Copilot Chat to export OTLP/HTTP to `http://127.0.0.1:4318`. Reload VS Code after setup.++Validate recent events:++```bash title="Validate recent events"+beacon endpoint integrations vscode validate --since 10m+```++OTel is the preferred VS Code collection path. It provides Copilot session, prompt, model, and tool activity without requiring VS Code's preview hook feature.++## Optional hooks++VS Code hooks are currently in preview and may be disabled by organization policy. Use hooks only when you want additional lifecycle/tool detail or cross-agent coverage beyond Copilot's OTel stream.++Before installing hooks, confirm `Chat: Use Hooks` is enabled in VS Code settings. `Chat: Use Claude Hooks` is not enough for Copilot-format `.github/hooks/*.json` files. If `Chat: Use Hooks` is unchecked and managed by your organization, VS Code will not execute Beacon's VS Code hook file.++<img src="/images/vscode-chat-use-hooks-setting.png" alt="VS Code settings showing Chat: Use Hooks disabled and managed by organization, while Chat: Use Claude Hooks is enabled." />++```bash title="Install runtime hooks"+cd /path/to/workspace+beacon endpoint hooks install --harness vscode --level project+```++Hook-derived events use `harness.name=vscode`. OTel-derived events use `harness.name=vscode_copilot`.++## Flags++| Flag | Description |+|------|-------------|+| `--endpoint <url>` | OTLP HTTP endpoint for VS Code Copilot. Defaults to Beacon's configured local OTLP HTTP receiver |+| `--workspace <path>` | Workspace path for `.vscode/settings.json` instead of user settings |+| `--capture-content` | Enable full Copilot prompt, response, tool argument, and tool result capture |+| `--since <duration>` | Require a VS Code event within this duration, such as `10m`. Validate only |+| `--json` | Print status as JSON. Status only |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint integrations vscode setup++`beacon endpoint integrations vscode setup` writes VS Code Copilot OTel settings without reinstalling the endpoint collector.++```bash title="Set up the integration"+beacon endpoint integrations vscode setup+```++Prefer `beacon endpoint install --harness vscode` for first-time setup because it configures both the collector and VS Code settings.++## beacon endpoint integrations vscode status++`beacon endpoint integrations vscode status` reports whether VS Code is detected, whether Copilot OTel settings point to Beacon, and whether VS Code events have been observed.++```bash title="Check status"+beacon endpoint integrations vscode status+```++Print status as JSON:++```bash title="Print status as JSON"+beacon endpoint integrations vscode status --json+```++## beacon endpoint integrations vscode validate++`beacon endpoint integrations vscode validate` checks whether VS Code OTel or hook-derived events have arrived in the endpoint runtime log.++```bash title="Run the validation check"+beacon endpoint integrations vscode validate --since 10m+```++If validation fails, Beacon prints VS Code setup guidance using any endpoint or workspace path you provide.++## Related++<Columns cols={2}>+ <Card title="VS Code runtime support" icon="code" href="/runtimes/vscode">+ Review collection paths and telemetry coverage.+ </Card>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Install and configure the local endpoint collector.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install optional hook-based telemetry where supported.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Beacon discovers and configures supported runtimes.+ </Card>+</Columns>diff --git a/docs/cli/wazuh.mdx b/docs/cli/wazuh.mdxnew file mode 100644index 00000000..b59dbbf1--- /dev/null+++ b/docs/cli/wazuh.mdx@@ -0,0 +1,219 @@+---+title: "beacon endpoint wazuh"+description: "Configure Wazuh ingestion for Beacon endpoint events"+---++## Forwarding Command++Beacon writes Wazuh-compatible JSONL endpoint events to the local runtime log. The `beacon endpoint wazuh` commands help security and IT teams connect that log to Wazuh localfile ingestion, install Beacon-specific Wazuh rules, and write validation events.++Beacon does not require Wazuh credentials and does not call the Wazuh API during normal endpoint operation. Wazuh tails the runtime log from disk and stores decoded Beacon fields under `data.*` in Wazuh alerts.++```bash title="Command syntax"+beacon endpoint wazuh [command]+```++## Commands++<Columns cols={2}>+ <Card title="beacon endpoint wazuh print-config" icon="file-lines" href="#beacon-endpoint-wazuh-print-config">+ Print a Wazuh localfile snippet for the configured runtime log.+ </Card>+ <Card title="beacon endpoint wazuh install-pack" icon="box-archive" href="#beacon-endpoint-wazuh-install-pack">+ Write Wazuh rules and config snippets to a directory.+ </Card>+ <Card title="beacon endpoint wazuh validate" icon="check" href="#beacon-endpoint-wazuh-validate">+ Write and describe a Beacon validation event.+ </Card>+</Columns>++## Runtime log paths++| Mode | Path |+|------|------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use user mode for local workstation testing. Use system mode for managed endpoint deployments so Wazuh can read a shared, predictable path.++## beacon endpoint wazuh print-config++`beacon endpoint wazuh print-config` prints a Wazuh localfile snippet for the configured Beacon runtime JSONL log.++```bash title="Print the configuration"+beacon endpoint wazuh print-config+```++Use this command when you want to copy the localfile configuration into an existing Wazuh agent configuration.++The output looks like:++```xml+<localfile>+ <location>/var/log/beacon-agent/runtime.jsonl</location>+ <log_format>json</log_format>+</localfile>+```++Install this snippet in the Wazuh agent or manager configuration that can read the Beacon runtime log. For Docker-based Wazuh tests, the `<location>` must be the container-side path, not the macOS host path.++### Examples++Print config for the default per-user Beacon install:++```bash title="Print config for the default per-user Beacon install"+beacon endpoint wazuh print-config+```++Print config for a custom runtime log:++```bash title="Print config for a custom runtime log"+beacon endpoint wazuh print-config --log-path /path/to/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint wazuh install-pack++`beacon endpoint wazuh install-pack` writes Beacon Wazuh rules and configuration snippets to an output directory.++```bash title="Generate the integration pack"+beacon endpoint wazuh install-pack --output ./beacon-wazuh+```++Use the generated content pack when you want a file-based bundle of Wazuh integration artifacts instead of copying only the localfile snippet.++The generated pack includes:++| File | Purpose |+|------|---------|+| `ossec-localfile.xml` | Wazuh `localfile` snippet for the configured Beacon runtime log |+| `beacon-rules.xml` | Wazuh rules for Beacon endpoint runtime events |+| `sample-event.jsonl` | Sample Beacon endpoint event content |+| `apply-dashboard-default-columns.sh` | Optional helper that sets Wazuh Dashboard event columns for Beacon fields |+| `README.md` | Pack install notes |++### Examples++Generate a content pack for the default per-user install:++```bash title="Generate a content pack for the default per-user install"+beacon endpoint wazuh install-pack --output ./beacon-wazuh+```++Generate a content pack for a custom runtime log:++```bash title="Generate a content pack for a custom runtime log"+beacon endpoint wazuh install-pack \+ --output ./beacon-wazuh \+ --log-path /path/to/runtime.jsonl+```++For local Docker validation, generate the pack with the path Wazuh sees inside the container:++```bash title="Generate the pack for Docker validation"+beacon endpoint wazuh install-pack \+ --output ./beacon-wazuh \+ --log-path /var/log/beacon-agent/runtime.jsonl+```++### Flags++| Flag | Description |+|------|-------------|+| `--output <dir>` | Output directory for the Wazuh content pack. Required |+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## beacon endpoint wazuh validate++`beacon endpoint wazuh validate` writes a Beacon validation event to the runtime JSONL log and describes it, so you can verify localfile ingestion in Wazuh.++```bash title="Run the validation check"+beacon endpoint wazuh validate+```++### Examples++Write a validation event for the default per-user install:++```bash title="Write a validation event for the default per-user install"+beacon endpoint wazuh validate+```++Write a validation event to a custom runtime log:++```bash title="Write a validation event to a custom runtime log"+beacon endpoint wazuh validate --log-path /path/to/runtime.jsonl+```++For local Wazuh Docker testing, the `--log-path` used in `print-config` or `install-pack` should usually be the path Wazuh sees inside the container, such as `/var/log/beacon-agent/runtime.jsonl`. The `validate` command should write to the host Beacon log path, such as `~/.beacon/endpoint/logs/runtime.jsonl`, when that directory is bind-mounted into the Wazuh manager container.++The validation event should produce Wazuh rule `100500` with:++```text+data.vendor: beacon+data.product: endpoint-agent+data.event.kind: agent_runtime+data.event.action: agent.detected+data.message: Beacon endpoint Wazuh validation event+```++### Flags++| Flag | Description |+|------|-------------|+| `--user` | Use per-user endpoint paths. Enabled by default |+| `--system` | Use system endpoint paths and launch daemon |+| `--log-path <path>` | Runtime JSONL log path |++## Wazuh Dashboard fields++In Wazuh Dashboard, Beacon event details appear under `data.*` fields. Useful columns include:++```text+data.event.action+data.prompt.text+data.message+data.harness.name+data.model+data.repository+data.command+data.file+data.session.id+data.session.working_directory+```++Useful Wazuh Dashboard filters:++```text+data.vendor: beacon+```++```text+data.vendor: beacon AND data.event.action: prompt.submitted+```++```text+data.vendor: beacon AND data.harness.name: cursor+```++The generated `apply-dashboard-default-columns.sh` helper can set the recommended OpenSearch Dashboards columns for local Wazuh validation. See [Wazuh forwarding](/log-forwarding/wazuh#local-docker-test) for the full Docker setup.++## Related++<Columns cols={2}>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install and inspect the local endpoint agent.+ </Card>+ <Card title="Dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect Beacon events locally before forwarding.+ </Card>+</Columns>diff --git a/docs/concepts/core-concepts.mdx b/docs/concepts/core-concepts.mdxnew file mode 100644index 00000000..87cc2a21--- /dev/null+++ b/docs/concepts/core-concepts.mdx@@ -0,0 +1,123 @@+---+title: "Core Concepts"+description: "Core concepts for Asymptote, Agent Beacon, and agent runtime telemetry"+---++Beacon observes agent harness activity across supported local, CI, and cloud surfaces, normalizes it into a shared event model, and gives security teams records they can inspect, retain, or forward into existing pipelines.++Use this page as a quick reference for the concepts used across Asymptote and Agent Beacon docs.++## Endpoint Agent++The **endpoint agent** is the local Beacon service and configuration managed by `beacon endpoint`. It is Beacon's local collection path: it configures supported agent harnesses, runs the local collector, writes endpoint events to JSONL, and supports inspection, repair, dashboard, Wazuh, hooks, and forwarding commands.++## Runtime Surface++A **runtime surface** is the telemetry interface exposed by an agent harness. Beacon supports different surfaces because each [agent harness](/runtimes) exposes activity differently, including local OpenTelemetry configuration, hook adapters, CI wrappers, cloud sandbox hooks, SDK instrumentation, admin-configured OpenTelemetry, and gateway-configured OTLP/HTTP export.++## Agent Harness++An **agent harness** is the runtime or integration that produced an event. It can be a local coding agent, a CI job, a cloud-agent surface, an SDK-instrumented application, an admin-configured service integration, or a gateway-managed runtime surface. Examples include `claude`, `codex`, `gemini_cli`, `grok`, `opencode`, `devin-cli`, `devin-desktop`, `factory`, `cursor`, `claude_cowork`, and `openclaw_gateway`. Beacon stores harness context in normalized events so investigators can filter by the source that generated the activity.++## Local Collector++The **local collector** is Beacon's OpenTelemetry Collector pipeline on the endpoint. It receives OTLP from supported agent harnesses, batches and processes telemetry, writes normalized Beacon JSONL through the `beaconjson` exporter, and can optionally send collector signals to Splunk HEC or Falcon LogScale HEC.++## OTLP++**OTLP** is the OpenTelemetry Protocol used by runtimes to send logs, traces, metrics, and resource attributes to Beacon. Local installs commonly use `127.0.0.1:4317` for OTLP gRPC and `127.0.0.1:4318` for OTLP HTTP.++## Hooks++**Hooks** are runtime-managed integration points that invoke Beacon's `beacon-hooks` adapter. Supported hook runtimes capture session, prompt, tool, command, approval, MCP-like, permission, and file edit events where those runtimes expose payloads.++## Endpoint Event++An **endpoint event** is one normalized Beacon JSON object describing runtime activity on a local machine. Endpoint events include a stable `event` action, endpoint context, harness context, severity, and any optional entities the source provides. CI and cloud telemetry paths use the same Beacon-compatible event model where their collection path emits normalized records.++## Entity Model++The **entity model** is Beacon's shared shape for runtime-specific payloads. Each event has an action plus typed context such as `endpoint`, `user`, `harness`, `origin`, `run`, `session`, `tool`, `file`, `command`, `mcp`, `approval`, `policy`, `prompt`, `content`, `gen_ai`, `destination`, and `health`.++## Runtime JSONL Log++The **runtime JSONL log** is Beacon's local audit log for endpoint collection. User-mode installs write to `~/.beacon/endpoint/logs/runtime.jsonl`; system-mode installs write to `/var/log/beacon-agent/runtime.jsonl`. Each line is a complete Beacon endpoint event. Beacon keeps that active `runtime.jsonl` path stable for dashboards and shippers, and rotates it at 10 MiB with five numbered local archives such as `runtime.jsonl.1`.++## Wazuh Localfile++**Wazuh localfile** ingestion reads Beacon's runtime JSONL log from disk. Beacon can print localfile configuration, generate rule packs and sample events, and write validation events for Wazuh ingestion tests.++## Splunk HEC++**Splunk HEC** is Splunk HTTP Event Collector. Beacon can optionally configure a collector exporter that forwards OTLP logs, traces, and metrics to a customer-managed Splunk HEC endpoint while preserving the local JSONL audit log.++## Falcon LogScale HEC++**Falcon LogScale HEC** is CrowdStrike Falcon LogScale's HTTP Event Collector ingest path. Beacon can optionally configure a collector exporter that forwards normalized OTLP logs, traces, and metrics to a customer-managed Falcon LogScale HEC endpoint while preserving the local JSONL audit log.++## Elastic Content Pack++The **Elastic content pack** is Beacon's generated Filebeat, standalone Elastic Agent, Elasticsearch, and Kibana content for shipping local Beacon JSONL into Elastic. The pack reads the runtime log; Beacon itself does not store Elastic cluster URLs or credentials.++## Datadog Content Pack++The **Datadog content pack** is Beacon's generated Datadog Agent custom log collection content for shipping local Beacon JSONL into Datadog Logs. The pack reads the runtime log; Beacon itself does not store Datadog API keys or site configuration.++## Sumo Logic Content Pack++The **Sumo Logic content pack** is Beacon's generated setup guidance, upload smoke-test script, Vector forwarding template, and sample events for shipping local Beacon JSONL into a Sumo Logic Hosted Collector HTTP Logs & Metrics Source. The pack reads the runtime log; Beacon itself does not store Sumo Source URLs, tokens, or collector configuration.++## Rapid7 Content Pack++The **Rapid7 content pack** is Beacon's generated setup guidance, NDJSON upload smoke-test script, Vector forwarding template, and sample events for shipping local Beacon JSONL into a Rapid7 InsightIDR Custom Logs webhook event source. The pack reads the runtime log; Beacon itself does not store Rapid7 webhook URLs or tokens.++## AWS S3 Content Pack++The **AWS S3 content pack** is Beacon's generated setup guidance, AWS CLI smoke-test script, Vector `aws_s3` forwarding template, and sample events for shipping local Beacon JSONL into an S3 bucket. The pack reads the runtime log; Beacon itself does not store AWS credentials, bucket policies, lifecycle rules, or encryption settings.++## Google Cloud Storage Content Pack++The **Google Cloud Storage content pack** is Beacon's generated setup guidance, GCS upload smoke-test script, Vector `gcp_cloud_storage` forwarding template, and sample events for shipping local Beacon JSONL into a GCS bucket. The pack reads the runtime log; Beacon itself does not store Google Cloud credentials, service accounts, workload identity settings, bucket IAM, lifecycle rules, retention policies, or encryption settings.++## Customer-Managed Forwarding++**Customer-managed forwarding** means an existing shipper, agent, Vector host agent, or SIEM pipeline reads Beacon's runtime JSONL log and routes each line to a downstream destination.++## Dashboard++The **dashboard** is a loopback-only local view over Beacon runtime logs. It includes Log Search for investigating events, Detections and Findings for reviewing local threat-rule matches, and Security Overview for summarizing local activity, risk signals, harnesses, models, repositories, MCP servers, and runtime inventory without requiring a hosted Beacon account.++## Agent Runtime Inventory++**Agent Runtime Inventory** is Beacon's local view of configured, detected, and observed runtime coverage. It helps operators confirm which supported agent harnesses are present, which telemetry surfaces Beacon manages, which MCP servers are referenced by local configs, and which runtimes have recently produced events in the configured runtime log.++## Content Handling++**Content handling** describes how Beacon treats supported prompt, command, attribute, and diff content before writing endpoint events. Beacon applies redaction, sanitization, truncation, and event-size limits before local storage or configured forwarding.++## User Mode And System Mode++**User mode** uses per-user paths under `~/.beacon/endpoint` and is the default for local evaluation. **System mode** uses root-managed paths under `/Library/Application Support/Beacon/Endpoint` and `/var/log/beacon-agent`, which is the preferred mode for packaged or MDM deployments.++## Related++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ See how runtime telemetry flows through collection, normalization, and local outputs.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Detections" icon="shield-halved" href="/detections">+ Learn how threat rules turn endpoint events into findings.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Compare supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+ <Card title="Inventory Local Agent Runtimes" icon="clipboard-list" href="/guides/inventory">+ Understand configured, detected, and observed local runtime coverage.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events into Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, Microsoft Sentinel, AWS S3, Google Cloud Storage, or customer-managed pipelines.+ </Card>+</Columns>diff --git a/docs/contributing/development.mdx b/docs/contributing/development.mdxnew file mode 100644index 00000000..ac633bad--- /dev/null+++ b/docs/contributing/development.mdx@@ -0,0 +1,94 @@+---+title: 'Development'+description: 'Preview changes locally to update your docs'+---++<Info>+ **Prerequisites**:+ - Node.js version 19 or higher+ - A docs repository with a `docs.json` file+</Info>++Follow these steps to install and run Mintlify on your operating system.++<Steps>+<Step title="Install the Mintlify CLI">++```bash+npm i -g mint+```+</Step>++<Step title="Preview locally">++Navigate to your docs directory where your `docs.json` file is located, and run the following command:++```bash+mint dev+```++A local preview of your documentation will be available at `http://localhost:3000`.++</Step>+</Steps>++## Custom ports++By default, Mintlify uses port 3000. You can customize the port Mintlify runs on by using the `--port` flag. For example, to run Mintlify on port 3333, use this command:++```bash+mint dev --port 3333+```++If you attempt to run Mintlify on a port that's already in use, it will use the next available port:++```md+Port 3000 is already in use. Trying 3001 instead.+```++## Mintlify versions++Please note that each CLI release is associated with a specific version of Mintlify. If your local preview does not align with the production version, please update the CLI:++```bash+npm mint update+```++## Validating links++The CLI can assist with validating links in your documentation. To identify any broken links, use the following command:++```bash+mint broken-links+```++## Deployment++If the deployment is successful, you should see the following:++<Frame>+ <img src="/images/checks-passed.png" alt="Screenshot of a deployment confirmation message that says All checks have passed." style={{ borderRadius: '0.5rem' }} />+</Frame>++## Code formatting++We suggest using extensions on your IDE to recognize and format MDX. If you're a VSCode user, consider the [MDX VSCode extension](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx) for syntax highlighting, and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for code formatting.++## Troubleshooting++<AccordionGroup>+ <Accordion title='Error: Could not load the "sharp" module using the darwin-arm64 runtime'>++ This may be due to an outdated version of node. Try the following:+ 1. Remove the currently-installed version of the CLI: `npm remove -g mint`+ 2. Upgrade to Node v19 or higher.+ 3. Reinstall the CLI: `npm i -g mint`+ </Accordion>++ <Accordion title="Issue: Encountering an unknown error">++ Solution: Go to the root of your device and delete the `~/.mintlify` folder. Then run `mint dev` again.+ </Accordion>+</AccordionGroup>++Curious about what changed in the latest CLI version? Check out the [CLI changelog](https://www.npmjs.com/package/mintlify?activeTab=versions).diff --git a/docs/deployment/hosting-options.mdx b/docs/deployment/hosting-options.mdxnew file mode 100644index 00000000..0102b634--- /dev/null+++ b/docs/deployment/hosting-options.mdx@@ -0,0 +1,95 @@+---+title: "Hosting Options"+description: "Choose between Open Source, Managed, and Private Deployment paths"+---++Asymptote can start local-first with the open-source Agent Beacon endpoint agent, run as Managed Asymptote Cloud, or deploy privately for teams with stricter infrastructure requirements.++| Hosting Option | Use it when | Data and operations model |+| -------------- | ----------- | ------------------------- |+| Asymptote Open Source | You want endpoint telemetry, local JSONL, and customer-managed forwarding. | Beacon runs on the endpoint and writes local logs by default. |+| Asymptote Managed | You need centralized visibility, policy controls, investigations, SSO/RBAC, audit trails, and rollout support. | Asymptote provides managed ingest, retention, search, detections, and enterprise operations. |+| Asymptote Private Deployment | You want Managed capabilities with stronger isolation, residency, or infrastructure ownership requirements. | Asymptote works with you on dedicated infrastructure and custom deployment boundaries. |++## Asymptote Open Source++Use the open-source local path when you want endpoint telemetry without a hosted Asymptote backend. Agent Beacon runs on the endpoint, writes normalized events to local JSONL, and can forward events into customer-managed security workflows.++```bash title="Install Beacon"+brew tap asymptote-labs/tap+brew install beacon+beacon version+```++```bash title="Configure local endpoint telemetry"+beacon endpoint install+beacon endpoint status+```++Open the local dashboard to inspect runtime inventory, timelines, filters, and event details:++```bash title="Open the local dashboard"+beacon endpoint dashboard --open+```++The local path preserves `runtime.jsonl` on the endpoint and supports optional forwarding to supported SIEM, observability, object-storage, local JSONL, and customer-managed destinations.++See [Asymptote Open Source](/deployment/open-source) for setup details and [Security & IT Rollout Guide](/security) for managed endpoint deployment.++## Asymptote Managed++Use Managed when you want hosted visibility, governance, and enterprise rollout support for agent activity.++1. Request access at [asymptotelabs.ai/contact](https://asymptotelabs.ai/contact).+2. Configure your workspace with the runtimes and teams you want to observe.+3. Use the Asymptote Observe SDK for cloud-hosted agents, services, workers, and serverless functions.+4. Deploy Agent Beacon on endpoints when you also need local harness visibility.++Managed adds centralized ingest, retention, search, detections, fleet-wide visibility, policy controls, identity mapping, approvals, investigation workflows, SSO, RBAC, audit trails, and enterprise onboarding on top of the open-source Agent Beacon foundation.++For cloud-hosted agent applications, install the SDK and initialize hosted export with an Asymptote API key:++```bash title="Set the hosted Observe API key"+export ASYMPTOTE_API_KEY=...+```++```typescript title="Initialize hosted Observe"+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});+```++See [Asymptote Managed](/deployment/managed) for managed platform capabilities and [SDK Quickstart](/sdk/quickstart) for cloud instrumentation details.++## Asymptote Private Deployment++Use Private Deployment when Managed is the right operating model, but your organization needs dedicated infrastructure, stricter data boundaries, custom retention, or residency requirements.++Private Deployment can include customer-controlled or private-cloud deployment options, custom forwarding architecture, coverage across endpoints and execution environments, and dedicated deployment engineering.++[Contact us](https://asymptotelabs.ai/contact) to discuss Managed or Private Deployment requirements.++## Related++<Columns cols={2}>+ <Card title="Asymptote Managed" icon="key" href="/deployment/managed">+ Review managed ingest, governance, investigations, access control, and rollout support.+ </Card>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install Beacon, configure endpoint telemetry, and keep the CLI up to date.+ </Card>+ <Card title="Quickstart" icon="rocket" href="/get-started/quickstart">+ Choose the right path for a local, managed, or private rollout.+ </Card>+ <Card title="Asymptote Observe SDK" icon="code" href="/sdk/quickstart">+ Instrument cloud-hosted agent applications with hosted or customer-managed export.+ </Card>+ <Card title="Asymptote Overview" icon="diagram-project" href="/get-started/overview">+ See how the open-source Beacon foundation fits into managed and private deployment paths.+ </Card>+ <Card title="Log Forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward local Beacon events into security and observability platforms.+ </Card>+</Columns>diff --git a/docs/deployment/managed.mdx b/docs/deployment/managed.mdxnew file mode 100644index 00000000..4db2c66b--- /dev/null+++ b/docs/deployment/managed.mdx@@ -0,0 +1,77 @@+---+title: "Asymptote Managed"+description: "Managed visibility, governance, and investigations for agent activity at scale"+---++Asymptote Managed builds on the open-source Agent Beacon foundation for teams that need centralized operations, policy controls, and investigation workflows across a fleet.++Use this path when local JSONL and customer-managed forwarding are not enough on their own, or when agent adoption has moved beyond a small local pilot.++## What Managed Adds++Asymptote Managed includes the open-source capture and forwarding paths, then adds the managed services needed to operate agent security at company scale.++| Capability | What managed adds beyond open source |+| --- | --- |+| Managed ingest and retention | Centralized collection, retention, search, and detections for agent activity |+| Fleet-wide visibility | Inventory across endpoints, agent harnesses, users, and teams |+| Policy controls | Policy enforcement workflows, identity mapping, and approval visibility |+| Investigations | Timelines and case workflows for reviewing prompts, tools, file access, and agent actions |+| Access control | SSO, role-based access control, and audit trails |+| Operations support | Priority support, onboarding, and rollout guidance |++## Core Managed Workflows++### Centralize Runtime Visibility++Managed ingest turns endpoint and cloud-agent telemetry into searchable fleet-wide visibility. Security teams can review which agents are running, which tools they use, and what sensitive files or data are involved in agent activity.++For provider-managed cloud agents, Managed avoids proof-of-concept patterns such+as placing storage service-account keys directly into cloud sandbox environment+variables. Asymptote can operate the secure ingest and retention layer for you,+or work with your team on a production-grade forwarding design in+customer-managed infrastructure.++### Govern Agent Activity++Policy, identity mapping, and approvals help teams connect runtime actions back to users and workflows. Use this when you need governance beyond a local audit log or SIEM-forwarded event stream.++### Investigate Agent Behavior++Investigation timelines and case workflows organize prompts, tool calls, file access, command execution, and related context so security teams can reconstruct what happened during an agent session.++### Support Enterprise Rollout++Managed deployments include rollout planning, onboarding, and support for teams deploying across endpoints and execution environments.++## Private Deployment++For regulated teams that need dedicated infrastructure or stricter data boundaries, Asymptote supports private cloud or customer-controlled deployment options.++Private deployment can include:++- complete data isolation and residency options+- custom retention and forwarding architecture+- coverage across endpoints and execution environments+- dedicated deployment engineering and rollout planning++## Get Access++Request access or discuss deployment requirements at [asymptotelabs.ai/contact](https://asymptotelabs.ai/contact). For plan details, see [Asymptote pricing](https://asymptotelabs.ai/pricing).++## Related++<Columns cols={2}>+ <Card title="Hosting Options" icon="cloud" href="/deployment/hosting-options">+ Compare Open Source, Managed, and Private Deployment paths.+ </Card>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install Beacon locally and configure endpoint telemetry.+ </Card>+ <Card title="Security & IT Rollout Guide" icon="building-shield" href="/security">+ Plan endpoint inventory, MDM rollout, validation, retention, and forwarding.+ </Card>+ <Card title="Asymptote Observe SDK" icon="code" href="/sdk/quickstart">+ Instrument cloud-hosted agent applications with Asymptote telemetry.+ </Card>+</Columns>diff --git a/docs/deployment/open-source.mdx b/docs/deployment/open-source.mdxnew file mode 100644index 00000000..d13c9977--- /dev/null+++ b/docs/deployment/open-source.mdx@@ -0,0 +1,86 @@+---+title: "Asymptote Open Source"+description: "Install Beacon, configure open-source telemetry, and keep the CLI up to date"+---++Install Beacon with Homebrew, configure the local endpoint telemetry path, and use the repair workflow when you need to reapply configuration after an upgrade. For CI, cloud-agent, and SDK setup paths, see [Agent harness integrations](/runtimes).++<Frame>+ <iframe+ src="https://www.loom.com/embed/b39038879dc24b10af9e603ad4e03fb6?t=0s"+ title="Asymptote Open Source installation walkthrough"+ allowFullScreen+ style={{ aspectRatio: "16 / 9", width: "100%", border: 0 }}+ />+</Frame>++## Install Beacon++```bash title="Install Beacon"+brew tap asymptote-labs/tap+brew install beacon+beacon version+```++<Accordion title="Example output">+```bash title="beacon version output"+$ beacon version+beacon version 0.0.48+```+</Accordion>++## Configure endpoint telemetry++For most individual developer setups, continue with the default per-user endpoint install:++```bash title="Configure endpoint telemetry"+beacon endpoint install+beacon endpoint status+```++By default, Beacon configures Claude Code and Codex CLI to export telemetry to a local OpenTelemetry Collector on `127.0.0.1`. Add Gemini when you want Beacon to manage Gemini OTLP settings too:++```bash title="Include Gemini telemetry"+beacon endpoint install --harness claude,codex,gemini+```++<Note>+ Production endpoint install is currently supported on macOS. The default mode uses per-user paths; use `--system` as root for package or MDM deployments.+</Note>++Beacon records supported prompt, tool, command, file, approval, policy, and runtime context when the source runtime emits it. Before events are written to `runtime.jsonl` or sent through configured destinations, Beacon applies redaction, sanitization, truncation, and event-size limits.++Beacon filters generic process/runtime OTLP metrics, Copilot CLI and OpenClaw operational metrics, and high-volume Codex spans out of the local JSONL log by default. Use `--include-runtime-metrics` or `--include-codex-spans` only when troubleshooting.++## Upgrade Beacon++Use the standard Homebrew upgrade flow, then reapply endpoint configuration if needed:++```bash title="Upgrade Beacon"+beacon version check+brew update+brew upgrade beacon+beacon endpoint repair+```++`beacon endpoint repair` reapplies managed service files, collector configuration, harness telemetry settings, and forwarding destinations while preserving runtime logs. On v0.0.43 or newer, use `beacon endpoint doctor --fix` when you only need supported health-check drift remediated without a full repair.++## Related++<Columns cols={2}>+ <Card title="Hosting Options" icon="cloud" href="/deployment/hosting-options">+ Choose between Asymptote Cloud and the open-source Agent Beacon path.+ </Card>+ <Card title="Endpoint paths and ports" icon="folder-tree" href="/cli/endpoint-paths">+ Review files, logs, collector config, ports, and hook locations.+ </Card>+ <Card title="Endpoint command reference" icon="terminal" href="/cli/endpoint">+ Review install, status, repair, and uninstall commands.+ </Card>+ <Card title="Endpoint repair" icon="wrench" href="/cli/endpoint-repair">+ Reapply service files and telemetry configuration.+ </Card>+ <Card title="Manual CLI installation" icon="file-zipper" href="/cli/manual-install">+ Install from platform archives or build the CLI from source.+ </Card>+</Columns>diff --git a/docs/detections/engine.mdx b/docs/detections/engine.mdxnew file mode 100644index 00000000..3e7471b4--- /dev/null+++ b/docs/detections/engine.mdx@@ -0,0 +1,140 @@+---+title: "Detection Engine"+description: "How Beacon loads, validates, evaluates, and reports detections"+---++## Engine Overview++The Beacon detection engine runs threat rules over ordered endpoint events. The engine ships in the Beacon CLI, while the rule corpus is external data loaded from a directory, the local rule store, or a small embedded baseline.++Local scanning is read-only and does not contact the network.++## Active Rule Resolution++When `beacon scan` runs, Beacon resolves the active rules in this order:++1. If `--rules <dir>` is provided, load `.rule.yaml` files from that directory.+2. Otherwise, load installed rules from the endpoint rule store.+3. If the store is absent or empty, load the built-in baseline rules embedded in the binary.++The per-user store is under the endpoint base directory, commonly `~/.beacon/endpoint/rules`. System-mode installs use the system endpoint base directory.++## Load-Time Validation++Rules are checked before any event scanning begins.++Beacon:++- decodes rule YAML strictly+- rejects unknown structural fields+- enforces required fields and `match` versus `correlation` exclusivity+- validates rule IDs and duplicate IDs in a pack+- compiles CEL expressions against Beacon event fields+- ensures expressions evaluate to booleans+- enforces maturity gates for `experimental`, `stable`, and `deprecated`+- runs embedded fixtures for linting and install workflows++Invalid rules fail early so scans do not produce ambiguous results.++## Event Input++`beacon scan` reads the resolved `runtime.jsonl` endpoint log unless a different path is supplied with `--log-path`.++Each line is parsed as a Beacon endpoint event. The scan keeps the ordered event stream because correlation rules need event order and timestamps to evaluate windows.++Use `--session` to scan only events whose `session.id` contains a given value.++## Single-Event Matching++A single-event rule has a top-level `match` expression. The engine evaluates that expression independently against each event.++```yaml title="Single-event match"+match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("\\b(curl|wget|nc)\\b")+```++If any event satisfies the expression, the rule produces a finding with that event as evidence.++## Correlation Matching++A correlation rule describes ordered steps inside a session window.++```yaml title="Ordered session correlation"+correlation:+ scope: session+ window: 120s+ steps:+ - id: read_secret+ match: >+ e.event.action == "file.read" &&+ e.file.path.matches("(\\.env|credentials|id_rsa|\\.aws/)")+ - id: egress+ match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("curl\\s+.*https?://")+```++For `threat-rules/v1`, correlation scope is `session`. Beacon groups events by `e.session.id`, then looks for each step in order. A later step must occur at or after the prior matched step, and the final step must occur within the configured `window` from the first matched step.++Correlation is useful when no single event is suspicious enough on its own, but the sequence is meaningful.++## Findings++When a rule fires, Beacon emits a finding. Findings include:++- rule ID and rule title+- severity+- emitted reason from `emit.reason`+- session ID when available+- evidence events that matched the rule+- policy metadata derived from the rule, such as `policy.id`, `policy.name`, and `policy.reason`++Human output summarizes findings by severity, rule, session, reason, and evidence lines. JSON output emits machine-readable finding objects for automation.++## Filtering And Gates++`beacon scan` supports two severity controls:++- `--min-severity` filters displayed findings.+- `--fail-on` exits non-zero if any finding at or above the threshold exists.++The fail gate is evaluated before display filtering, so automation can fail on all matching detections even when output is narrowed for readability.++## Operational Boundaries++Scanning does not mutate endpoint telemetry, change rule files, or fetch remote content. Rule installation and remote rule pack retrieval are explicit `beacon rules` workflows.++Use the CLI pages for operational details:++<Columns cols={2}>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run detections over local endpoint telemetry.+ </Card>+ <Card title="Run local scans" icon="terminal" href="/cli/scan-local">+ Choose logs, rule directories, sessions, and output formats.+ </Card>+ <Card title="Use scan gates" icon="circle-exclamation" href="/cli/scan-ci-gates">+ Fail automation based on severity thresholds.+ </Card>+ <Card title="beacon rules" icon="list-check" href="/cli/rules">+ Manage the active rule store.+ </Card>+</Columns>++## Related++<Columns cols={2}>+ <Card title="Detections" icon="shield-halved" href="/detections">+ Return to the detections overview.+ </Card>+ <Card title="Detection YAML Schema" icon="code" href="/detections/yaml-schema">+ Review the rule document fields the engine loads.+ </Card>+ <Card title="Detection Standard" icon="book-open" href="/detections/standard">+ Understand conformance, maturity, and CEL requirements.+ </Card>+ <Card title="Endpoint Event Schema" icon="table-list" href="/telemetry-schema/event-schema">+ Review the event stream evaluated by detections.+ </Card>+</Columns>diff --git a/docs/detections/index.mdx b/docs/detections/index.mdxnew file mode 100644index 00000000..9ac6aac8--- /dev/null+++ b/docs/detections/index.mdx@@ -0,0 +1,111 @@+---+title: "Detections"+description: "How Beacon detections turn agent runtime telemetry into security findings"+---++## Overview++Beacon detections are threat rules for AI-agent telemetry. They read normalized [endpoint events](/telemetry-schema/event-schema), evaluate rule conditions over those events, and emit findings that explain which rule fired, why it fired, and which events were involved.++The detection format is open and lives in the Agent Beacon repository. Rules are YAML documents with CEL match expressions, metadata, and embedded test fixtures. The detection engine ships with the Beacon CLI, while rule packs can be managed separately from the binary.++## What Detections Look For++Detections focus on risky agent behavior that is hard to understand from one raw log line alone:++- commands that suggest network egress, credential access, or destructive activity+- file reads or edits involving sensitive paths+- MCP and tool activity that crosses expected boundaries+- approval, policy, or enforcement outcomes that should be reviewed+- sequences of events within the same agent session, such as reading a secret and then making an outbound request++Because rules run over the shared Beacon event model, the same rule vocabulary can apply across supported harnesses when those harnesses emit the required fields.++## Detection Flow++1. A supported agent harness emits runtime telemetry.+2. Beacon normalizes that telemetry into endpoint events and writes `runtime.jsonl`.+3. `beacon scan` loads the active rule set from an explicit rules directory, the local rule store, or the built-in baseline.+4. Each rule is decoded, validated, and compiled before it runs.+5. The scan evaluates rules against the ordered event stream.+6. Matching rules produce findings with rule metadata, severity, reason, session context, and evidence events.++You can run the same local detection flow from the command line with [`beacon scan`](/cli/scan) or inspect it in the loopback-only [endpoint dashboard](/cli/dashboard). The dashboard Detections view lists active rules, while the Findings view runs those rules over the configured runtime log on demand.++## Rules And Findings++A rule is the durable detection definition. It contains an `id`, `title`, `severity`, CEL logic, and test fixtures that prove the expected behavior.++A finding is the runtime result of a rule firing. Findings include the rule identity, severity, emitted reason, matched session when available, and the event evidence that caused the match.++```yaml title="Single-event rule shape"+id: suspicious-egress-command+version: 1+title: Suspicious network egress command+severity: high+status: stable+posture: detect+match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("\\b(curl|wget|nc)\\b")+emit:+ reason: "Agent executed a command commonly used for network egress"+tests:+ - name: positive_basic+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "curl https://example.com" }+ - name: unrelated+ verdict: no_match+ events:+ - event: { action: command.executed }+ command: { command: "ls -la" }+```++## Rule Sources++Beacon can run detections from three sources:++- an explicit directory passed to `beacon scan --rules`+- the local endpoint rule store managed by `beacon rules`+- the built-in baseline when no local store is installed++The built-in baseline is intentionally small. Install the full Asymptote threat-rule pack from the current Agent Beacon release when you want the broader maintained rule set:++```bash title="Install the full threat-rule pack"+beacon rules pull https://github.com/asymptote-labs/agent-beacon/releases/download/v0.0.66/threat-rules.tar.gz+```++Beacon does not fetch rules automatically during scans. Pulling a remote rule pack is an explicit `beacon rules pull` action.++## Read Next++<Columns cols={2}>+ <Card title="YAML Schema" icon="code" href="/detections/yaml-schema">+ Learn the fields used by Beacon threat-rule YAML files.+ </Card>+ <Card title="Detection Standard" icon="shield-halved" href="/detections/standard">+ Understand the threat-rules/v1 standard, maturity ladder, and conformance model.+ </Card>+ <Card title="Detection Engine" icon="gears" href="/detections/engine">+ See how rules are loaded, compiled, evaluated, and turned into findings.+ </Card>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run active rules over local endpoint telemetry.+ </Card>+ <Card title="Endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Browse active detections and findings in the local dashboard.+ </Card>+</Columns>++## Related++<Columns cols={2}>+ <Card title="Endpoint Event Schema" icon="code" href="/telemetry-schema/event-schema">+ Review the normalized JSON fields that detections evaluate.+ </Card>+ <Card title="beacon rules" icon="list-check" href="/cli/rules">+ Manage, install, lint, and inspect local detection rules.+ </Card>+</Columns>diff --git a/docs/detections/standard.mdx b/docs/detections/standard.mdxnew file mode 100644index 00000000..8e15871b--- /dev/null+++ b/docs/detections/standard.mdx@@ -0,0 +1,117 @@+---+title: "Detection Standard"+description: "The threat-rules/v1 standard for portable AI-agent security detections"+---++## Standard Overview++Beacon threat rules are an open detection-rule format for AI-agent security threats. The standard is intentionally small: rules are YAML, match logic is CEL, input data is the Beacon endpoint event schema, and every rule carries fixtures that prove its expected behavior.++This makes the format portable. Any engine that loads the same rule pack and produces the declared fixture verdicts conforms to the standard.++## Version++The current rule format is `threat-rules/v1`.++The version covers the rule document shape, required metadata, CEL contract, correlation model, and fixture semantics. Rule files also include their own integer `version` field, which is the content revision for that individual rule.++## Design Goals++The standard is designed to be:++- human-readable enough for security review+- strict enough for automated validation+- native to Beacon endpoint events+- testable without a live endpoint+- portable across engines that implement the same conformance checks++## CEL Contract++Rules express detection logic in CEL. The current event is bound as `e`.++```yaml title="CEL over a Beacon event"+match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("\\bwget\\s")+```++The CEL contract has a few important requirements:++- Expressions must type-check to `bool`.+- Field paths must exist in the Beacon endpoint event schema.+- Missing fields evaluate as empty or zero values rather than crashing a scan.+- Regular expressions use RE2 semantics through CEL `.matches(...)`.+- Invalid CEL is rejected when the rule loads, before scanning begins.++## Maturity Ladder++The `status` field communicates how much evidence supports a rule.++| Status | Requirement |+| --- | --- |+| `experimental` | The rule is structurally valid, CEL compiles, and at least one fixture exists. |+| `stable` | The rule is valid, includes at least one `match` fixture and one `no_match` fixture, and every fixture produces the declared verdict. |+| `deprecated` | The rule still parses and validates, but fixtures are optional. |++Use `experimental` for new or narrow rules that need field testing. Use `stable` when the rule has both positive and negative examples and is suitable for a shared corpus.++## Verdict Model++Rule evaluation produces one of two verdicts:++- `match`: the rule fired for the supplied event sequence.+- `no_match`: the rule did not fire.++Fixtures are the conformance boundary. A rule says what should happen, and an engine proves it by running each fixture and comparing the actual verdict to the declared one.++## Severity And Posture++`severity` describes the importance of a finding when the rule fires. It uses the same severity values as Beacon endpoint events: `info`, `low`, `medium`, `high`, and `critical`.++`posture` describes how the rule should be used:++- `detect`: observe-only detection logic.+- `enforce-capable`: detection logic that is designed to support enforcement workflows.++The current local scan path reports findings. Enforcement behavior, when present in a broader deployment, should be explicit in the consuming system rather than inferred from a scan alone.++## Taxonomy++The optional `taxonomy` map lets a rule attach external references without runtime lookups.++```yaml title="Taxonomy references"+taxonomy:+ owasp_llm: LLM06+ mitre_atlas: AML.T0024+```++Use taxonomy fields to make a rule easier to map into security programs, not as part of detection logic.++## Publishable Rule Checklist++A publishable rule should:++- have a stable, unique `id`+- use a clear `title` and `description`+- choose severity based on the likely impact of the matched behavior+- keep CEL focused on fields in the Beacon event schema+- include a plain-language `emit.reason`+- include fixtures that prove both true positives and important false-positive boundaries+- pass `beacon rules lint`++## Related++<Columns cols={2}>+ <Card title="Detection YAML Schema" icon="code" href="/detections/yaml-schema">+ Review the rule fields and examples.+ </Card>+ <Card title="Detection Engine" icon="gears" href="/detections/engine">+ Learn how conformant rules run against local telemetry.+ </Card>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Run structural, CEL, maturity, and fixture checks.+ </Card>+ <Card title="Endpoint Event Schema" icon="table-list" href="/telemetry-schema/event-schema">+ Understand the data model that rules evaluate.+ </Card>+</Columns>diff --git a/docs/detections/yaml-schema.mdx b/docs/detections/yaml-schema.mdxnew file mode 100644index 00000000..0ea0142b--- /dev/null+++ b/docs/detections/yaml-schema.mdx@@ -0,0 +1,147 @@+---+title: "Detection YAML Schema"+description: "Human-readable reference for Beacon threat-rule YAML files"+---++## Schema Overview++Beacon detection rules are YAML documents ending in `.rule.yaml`. Each rule describes one security condition over Beacon endpoint events and includes enough metadata and tests for the rule to be validated before it runs.++The structural schema is the `threat-rules/v1` JSON Schema in the Agent Beacon repository. The runtime engine also compiles CEL expressions and checks rule fixtures, because those checks cannot be fully represented by JSON Schema alone.++## Minimal Rule++A rule must define its identity, maturity, detection logic, emitted reason, and at least one fixture.++```yaml title="Minimal single-event rule"+id: suspicious-egress-command+version: 1+title: Suspicious network egress command+severity: high+status: experimental+posture: detect+match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("\\b(curl|wget|nc)\\b")+emit:+ reason: "Agent executed a command commonly used for network egress"+tests:+ - name: positive_basic+ verdict: match+ events:+ - event: { action: command.executed }+ command: { command: "curl https://example.com" }+```++## Top-Level Fields++| Field | Required | Meaning |+| --- | --- | --- |+| `id` | Yes | Stable rule identity. Use lowercase letters, numbers, and hyphens. |+| `version` | Yes | Integer rule revision. Increase it when rule logic changes. |+| `title` | Yes | Human-readable rule name. |+| `description` | No | Longer explanation for readers. It is not evaluated. |+| `severity` | Yes | One of `info`, `low`, `medium`, `high`, or `critical`. |+| `status` | Yes | One of `experimental`, `stable`, or `deprecated`. |+| `posture` | Yes | `detect` for observe-only rules or `enforce-capable` for rules designed to support enforcement. |+| `taxonomy` | No | External references such as OWASP, MITRE ATLAS, or CVEs. |+| `match` | One of `match` or `correlation` | CEL boolean expression for a single event. |+| `correlation` | One of `match` or `correlation` | Ordered multi-event sequence definition. |+| `emit.reason` | Yes | Human-readable finding reason. |+| `tests` | Yes | Embedded conformance fixtures. |++Exactly one of `match` or `correlation` must be present.++## Match Rules++A `match` rule evaluates one event at a time. The event is available as `e`, and field paths mirror the endpoint event JSON shape.++```yaml title="Match expression"+match: >+ e.event.action == "file.read" &&+ e.file.path.matches("(\\.env|credentials|id_rsa|\\.aws/)")+```++Use `match` when one event is enough to explain the behavior, such as a command, file read, approval decision, or MCP tool call.++## Correlation Rules++A `correlation` rule evaluates an ordered sequence of events. In `threat-rules/v1`, correlations are scoped to a single session and must complete inside a duration window.++```yaml title="Session correlation"+correlation:+ scope: session+ window: 120s+ steps:+ - id: read_secret+ match: >+ e.event.action == "file.read" &&+ e.file.path.matches("(\\.env|credentials|id_rsa|\\.aws/)")+ - id: egress+ match: >+ e.event.action == "command.executed" &&+ e.command.command.matches("curl\\s+.*https?://")+```++Use `correlation` when the risk comes from a sequence, such as a secret-bearing file read followed by network egress in the same agent session.++## Tests++Each rule carries test fixtures that define expected verdicts. Fixtures use partial Beacon events, so a test only needs the fields that matter for the rule.++```yaml title="Fixture shape"+tests:+ - name: read_env_then_curl+ verdict: match+ events:+ - timestamp: "2026-06-13T10:00:00Z"+ event: { action: file.read }+ file: { path: ".env" }+ session: { id: s1 }+ - timestamp: "2026-06-13T10:00:30Z"+ event: { action: command.executed }+ command: { command: "curl https://example.com" }+ session: { id: s1 }+ - name: benign_read_then_local_command+ verdict: no_match+ events:+ - event: { action: file.read }+ file: { path: "README.md" }+ session: { id: s1 }+```++Fixtures keep rules reviewable. They show what the author intended to detect and what should stay out of scope.++## Field Paths++CEL expressions use `e.<field>` paths that match the Beacon event schema. Common paths include:++| Field path | Common use |+| --- | --- |+| `e.event.action` | Match the normalized event action. |+| `e.command.command` | Match shell or process command text. |+| `e.file.path` | Match file paths. |+| `e.prompt.text` | Match prompt text when retained. |+| `e.session.id` | Correlate activity within one session. |+| `e.mcp.server` | Match MCP-like server context. |+| `e.approval.decision` | Match approval or policy outcomes. |+| `e.gen_ai.usage.input_tokens` | Match GenAI usage fields. |++Use [`beacon rules fields`](/cli/rules-fields) or the generated upstream field reference to confirm available paths.++## Related++<Columns cols={2}>+ <Card title="Detection Standard" icon="shield-halved" href="/detections/standard">+ Review maturity, conformance, and CEL requirements.+ </Card>+ <Card title="Detection Engine" icon="gears" href="/detections/engine">+ See how YAML rules are loaded and evaluated.+ </Card>+ <Card title="beacon rules lint" icon="check" href="/cli/rules-lint">+ Validate rule files and run embedded fixtures.+ </Card>+ <Card title="Endpoint schema fields" icon="table-list" href="/telemetry-schema/fields">+ Review the event entities rules can match.+ </Card>+</Columns>diff --git a/docs/docs.json b/docs/docs.jsonnew file mode 100644index 00000000..415ffd1b--- /dev/null+++ b/docs/docs.json@@ -0,0 +1,1293 @@+{+ "$schema": "https://mintlify.com/docs.json",+ "theme": "mint",+ "name": "Asymptote",+ "colors": {+ "primary": "#3080FF",+ "light": "#54A2FF",+ "dark": "#155DFC"+ },+ "favicon": "/images/favicon.ico",+ "navigation": {+ "style": "sidebar",+ "global": {+ "anchors": [+ {+ "anchor": "Community",+ "icon": "discord",+ "iconType": "brands",+ "href": "https://discord.com/invite/zdNChS2fBu",+ "color": {+ "light": "#5865F2",+ "dark": "#5865F2"+ }+ },+ {+ "anchor": "GitHub",+ "icon": "github",+ "iconType": "brands",+ "href": "https://github.com/Asymptote-Labs/agent-beacon",+ "color": {+ "light": "#24292F",+ "dark": "#FFFFFF"+ }+ }+ ]+ },+ "tabs": [+ {+ "tab": "Documentation",+ "icon": "book-open",+ "groups": [+ {+ "group": "Get Started",+ "icon": "rocket",+ "pages": [+ "index",+ "get-started/overview",+ {+ "group": "Quickstart",+ "root": "get-started/quickstart",+ "pages": [+ "get-started/quickstart-security-it",+ "get-started/quickstart-developers"+ ]+ }+ ]+ },+ {+ "group": "Deploy Asymptote",+ "icon": "cloud-arrow-up",+ "pages": [+ "deployment/hosting-options",+ "deployment/managed",+ "deployment/open-source"+ ]+ },+ {+ "group": "How Asymptote Works",+ "icon": "book-open",+ "pages": [+ "concepts/core-concepts",+ {+ "group": "System Architecture",+ "root": "architecture/system-architecture",+ "pages": [+ "architecture/architecture",+ "architecture/managed-architecture"+ ]+ },+ {+ "group": "Unified Telemetry Schema",+ "root": "telemetry-schema/event-schema",+ "pages": [+ "telemetry-schema/normalization",+ "telemetry-schema/fields",+ "telemetry-schema/examples"+ ]+ }+ ]+ },+ {+ "group": "Manage Asymptote",+ "icon": "sliders",+ "pages": [+ {+ "group": "Detections",+ "root": "detections/index",+ "pages": [+ "detections/yaml-schema",+ "detections/standard",+ "detections/engine"+ ]+ }+ ]+ },+ {+ "group": "Agent Harness Integrations",+ "icon": "list-check",+ "pages": [+ "runtimes/index",+ "runtimes/integration-model",+ {+ "group": "Local Agents",+ "pages": [+ {+ "group": "Coding",+ "pages": [+ "runtimes/antigravity-cli",+ "runtimes/claude-code",+ "runtimes/codex-cli",+ "runtimes/cursor",+ "runtimes/devin",+ "runtimes/devin-desktop",+ "runtimes/factory-droid",+ "runtimes/gemini-cli",+ "runtimes/github-copilot-cli",+ "runtimes/grok-build",+ "runtimes/opencode",+ "runtimes/vscode"+ ]+ },+ {+ "group": "Knowledge Worker",+ "pages": [+ "runtimes/claude-cowork",+ "runtimes/hermes-agent",+ "runtimes/openclaw-gateway"+ ]+ }+ ]+ },+ {+ "group": "CI Agents",+ "pages": [+ "runtimes/claude-code-ci"+ ]+ },+ {+ "group": "Cloud Agents",+ "pages": [+ "sdk/integrations-anthropic",+ "sdk/integrations-claude-agent-sdk",+ "runtimes/claude-code-cloud-agents",+ "runtimes/cursor-cloud-agents",+ "sdk/integrations-openai",+ "sdk/integrations-vercel-ai-sdk"+ ]+ }+ ]+ },+ {+ "group": "For Security & IT Teams",+ "icon": "building-shield",+ "pages": [+ "security/index",+ {+ "group": "Security Overview",+ "root": "security/review",+ "pages": [+ "security/data-flow-threat-model",+ "security/data-inventory",+ "security/retention-redaction",+ "security/endpoint-operations",+ "security/policy"+ ]+ },+ {+ "group": "MDM Deployment",+ "root": "mdm/index",+ "pages": [+ "mdm/jamf",+ "mdm/fleet"+ ]+ },+ {+ "group": "Log Forwarding",+ "root": "log-forwarding/index",+ "pages": [+ "log-forwarding/ci-telemetry-exports",+ {+ "group": "Security Information and Event Management (SIEM)",+ "pages": [+ "log-forwarding/falcon",+ "log-forwarding/microsoft-sentinel",+ "log-forwarding/rapid7",+ "log-forwarding/splunk",+ "log-forwarding/sumo",+ "log-forwarding/wazuh"+ ]+ },+ {+ "group": "Log Aggregation",+ "pages": [+ "log-forwarding/cloudwatch",+ "log-forwarding/customer-managed",+ "log-forwarding/datadog",+ "log-forwarding/elastic"+ ]+ },+ {+ "group": "Object Storage",+ "pages": [+ "log-forwarding/s3",+ "log-forwarding/gcs"+ ]+ },+ {+ "group": "Local",+ "pages": [+ "log-forwarding/local-jsonl"+ ]+ }+ ]+ }+ ]+ }+ ]+ },+ {+ "tab": "CLI",+ "icon": "terminal",+ "groups": [+ {+ "group": "Install and Upgrade",+ "icon": "download",+ "pages": [+ "cli/install",+ "cli/upgrade",+ "cli/manual-install"+ ]+ },+ {+ "group": "Command Manual",+ "icon": "terminal",+ "pages": [+ "cli/index",+ "cli/version",+ "cli/login",+ "cli/scan",+ {+ "group": "beacon rules",+ "root": "cli/rules",+ "pages": [+ "cli/rules-list",+ "cli/rules-add",+ "cli/rules-remove",+ "cli/rules-pull",+ "cli/rules-lint",+ "cli/rules-fields"+ ]+ },+ {+ "group": "beacon ci",+ "root": "cli/ci",+ "pages": [+ "cli/ci-exec",+ "cli/ci-start",+ "cli/ci-finish",+ "cli/ci-validate"+ ]+ },+ {+ "group": "beacon cloud",+ "root": "cli/cloud",+ "pages": [+ "cli/cloud-claude-web-print-setup",+ "cli/cloud-claude-web-print-hooks",+ "cli/cloud-cursor-print-setup",+ "cli/cloud-cursor-print-hooks",+ "cli/cloud-gcs-setup"+ ]+ },+ {+ "group": "beacon mcp",+ "root": "cli/mcp",+ "pages": [+ "cli/mcp-serve",+ "cli/mcp-doctor"+ ]+ },+ {+ "group": "beacon ingest",+ "root": "cli/ingest",+ "tag": "Enterprise",+ "pages": [+ "cli/ingest-endpoint"+ ]+ },+ {+ "group": "beacon endpoint",+ "root": "cli/endpoint",+ "pages": [+ "cli/endpoint-install",+ "cli/endpoint-status",+ "cli/endpoint-doctor",+ "cli/endpoint-inventory",+ "cli/endpoint-discover",+ "cli/endpoint-test-event",+ "cli/endpoint-bundle-diagnostics",+ "cli/endpoint-repair",+ "cli/endpoint-uninstall",+ "cli/endpoint-config",+ "cli/endpoint-tokens",+ "cli/dashboard",+ "cli/wazuh",+ "cli/elastic",+ "cli/datadog",+ "cli/sumo",+ "cli/rapid7",+ "cli/sentinel",+ "cli/cloudwatch",+ "cli/s3",+ "cli/gcs",+ "cli/hooks",+ {+ "group": "integrations",+ "pages": [+ "cli/claude-cowork",+ "cli/openclaw",+ "cli/vscode"+ ]+ }+ ]+ }+ ]+ },+ {+ "group": "CLI Resources",+ "icon": "folder-open",+ "pages": [+ "cli/endpoint-paths"+ ]+ }+ ]+ },+ {+ "tab": "SDK",+ "icon": "code",+ "groups": [+ {+ "group": "Asymptote Observe SDK",+ "icon": "code",+ "pages": [+ "sdk/index",+ "sdk/quickstart",+ {+ "group": "Tracing Structure",+ "pages": [+ "sdk/instrumentation",+ "sdk/observe",+ "sdk/lifecycle",+ "sdk/integrations-nextjs-serverless"+ ]+ },+ {+ "group": "Agent SDK Integrations",+ "root": "sdk/integrations",+ "pages": [+ "sdk/integrations-openai",+ "sdk/integrations-anthropic",+ "sdk/integrations-claude-agent-sdk",+ "sdk/integrations-vercel-ai-sdk",+ "sdk/integrations-custom-agent-steps"+ ]+ },+ "sdk/reference"+ ]+ }+ ]+ },+ {+ "tab": "Guides",+ "icon": "map",+ "groups": [+ {+ "group": "Agent Activity Guides",+ "icon": "clipboard-list",+ "root": "guides/use-cases",+ "pages": [+ "guides/inventory",+ "guides/agent-runtime-telemetry"+ ]+ },+ {+ "group": "Local Testing Guides",+ "icon": "flask-vial",+ "root": "guides/local-testing/index",+ "pages": [+ {+ "group": "Validate Endpoint Telemetry",+ "root": "guides/local-testing/endpoint-validation",+ "pages": [+ "guides/local-testing/health",+ "guides/local-testing/events",+ "guides/local-testing/logs"+ ]+ },+ "guides/local-testing/dashboard",+ "guides/local-testing/mcp"+ ]+ }+ ]+ },+ {+ "tab": "Asymptote Blog",+ "icon": "newspaper",+ "pages": [+ "blog/index",+ "blog/introducing-beacon-endpoint-telemetry",+ "blog/enterprises-are-counting-tokens-because",+ "blog/agent-visibility-beyond-the-endpoint"+ ]+ },+ {+ "tab": "Changelog",+ "icon": "clock",+ "groups": [+ {+ "group": "Changelog",+ "icon": "clock",+ "pages": [+ "changelog/cli",+ "changelog/sdk"+ ]+ }+ ]+ }+ ]+ },+ "logo": {+ "light": "/logo/logo_with_text.png",+ "dark": "/logo/logo_with_text_dark.png",+ "href": "https://asymptotelabs.ai/",+ "height": 100+ },+ "navbar": {+ "links": [+ {+ "label": "Status",+ "href": "https://status.asymptotelabs.ai/"+ },+ {+ "label": "Trust Center",+ "href": "https://trust.asymptotelabs.ai/"+ },+ {+ "label": "Book Demo",+ "href": "https://asymptotelabs.ai/contact"+ }+ ],+ "primary": {+ "type": "button",+ "label": "Sign In",+ "href": "https://asymptotelabs.ai/login"+ }+ },+ "contextual": {+ "options": [+ "copy",+ "view",+ "chatgpt",+ "claude",+ "perplexity",+ "mcp",+ "cursor",+ "vscode"+ ]+ },+ "redirects": [+ {+ "source": "/product-changelog",+ "destination": "/changelog/cli"+ },+ {+ "source": "/cli/agent-runtime-telemetry",+ "destination": "/guides/agent-runtime-telemetry"+ },+ {+ "source": "/cli/architecture",+ "destination": "/architecture/architecture"+ },+ {+ "source": "/cli/architecture-runtime-integrations",+ "destination": "/runtimes/integration-model"+ },+ {+ "source": "/architecture-runtime-integrations",+ "destination": "/runtimes/integration-model"+ },+ {+ "source": "/cli/architecture-telemetry-pipeline",+ "destination": "/architecture/architecture"+ },+ {+ "source": "/architecture-telemetry-pipeline",+ "destination": "/architecture/architecture"+ },+ {+ "source": "/cli/ci-telemetry-exports",+ "destination": "/log-forwarding/ci-telemetry-exports"+ },+ {+ "source": "/cli/concepts",+ "destination": "/concepts/core-concepts"+ },+ {+ "source": "/concepts",+ "destination": "/concepts/core-concepts"+ },+ {+ "source": "/glossary",+ "destination": "/concepts/core-concepts"+ },+ {+ "source": "/cli/glossary",+ "destination": "/concepts/core-concepts"+ },+ {+ "source": "/cli/endpoint-telemetry",+ "destination": "/deployment/open-source#configure-endpoint-telemetry"+ },+ {+ "source": "/endpoint-telemetry",+ "destination": "/deployment/open-source#configure-endpoint-telemetry"+ },+ {+ "source": "/cli/event-schema",+ "destination": "/telemetry-schema/event-schema"+ },+ {+ "source": "/cli/event-schema-examples",+ "destination": "/telemetry-schema/examples"+ },+ {+ "source": "/cli/event-schema-fields",+ "destination": "/telemetry-schema/fields"+ },+ {+ "source": "/cli/event-schema-normalization",+ "destination": "/telemetry-schema/normalization"+ },+ {+ "source": "/cli/fleet",+ "destination": "/mdm/fleet"+ },+ {+ "source": "/cli/installation",+ "destination": "/cli/install"+ },+ {+ "source": "/installation",+ "destination": "/cli/install"+ },+ {+ "source": "/cli/inventory",+ "destination": "/guides/inventory"+ },+ {+ "source": "/cli/jamf",+ "destination": "/mdm/jamf"+ },+ {+ "source": "/cli/local-testing",+ "destination": "/guides/local-testing"+ },+ {+ "source": "/cli/local-testing-dashboard",+ "destination": "/guides/local-testing/dashboard"+ },+ {+ "source": "/cli/local-testing-endpoint-validation",+ "destination": "/guides/local-testing/endpoint-validation"+ },+ {+ "source": "/cli/local-testing-events",+ "destination": "/guides/local-testing/events"+ },+ {+ "source": "/cli/local-testing-health",+ "destination": "/guides/local-testing/health"+ },+ {+ "source": "/cli/local-testing-logs",+ "destination": "/guides/local-testing/logs"+ },+ {+ "source": "/cli/local-testing-mcp",+ "destination": "/guides/local-testing/mcp"+ },+ {+ "source": "/manual-archives",+ "destination": "/cli/manual-install"+ },+ {+ "source": "/cli/manual-archives",+ "destination": "/cli/manual-install"+ },+ {+ "source": "/cli/mdm-deployment",+ "destination": "/mdm"+ },+ {+ "source": "/cli/overview",+ "destination": "/get-started/overview"+ },+ {+ "source": "/overview",+ "destination": "/get-started/overview"+ },+ {+ "source": "/agent-beacon",+ "destination": "/get-started/overview"+ },+ {+ "source": "/paths",+ "destination": "/cli/endpoint-paths"+ },+ {+ "source": "/cli/paths",+ "destination": "/cli/endpoint-paths"+ },+ {+ "source": "/cli/quickstart",+ "destination": "/get-started/quickstart"+ },+ {+ "source": "/cli/quickstart-developers",+ "destination": "/get-started/quickstart-developers"+ },+ {+ "source": "/cli/quickstart-security-it",+ "destination": "/get-started/quickstart-security-it"+ },+ {+ "source": "/cli/security-it-teams",+ "destination": "/security"+ },+ {+ "source": "/cli/security-review",+ "destination": "/security/review"+ },+ {+ "source": "/cli/security-review-data-flow-threat-model",+ "destination": "/security/data-flow-threat-model"+ },+ {+ "source": "/cli/security-review-data-inventory",+ "destination": "/security/data-inventory"+ },+ {+ "source": "/cli/security-review-endpoint-operations",+ "destination": "/security/endpoint-operations"+ },+ {+ "source": "/cli/security-review-policy",+ "destination": "/security/policy"+ },+ {+ "source": "/cli/security-review-retention-redaction",+ "destination": "/security/retention-redaction"+ },+ {+ "source": "/cli/siem-forwarding",+ "destination": "/log-forwarding"+ },+ {+ "source": "/cli/siem-forwarding-cloudwatch",+ "destination": "/log-forwarding/cloudwatch"+ },+ {+ "source": "/cli/siem-forwarding-customer-managed",+ "destination": "/log-forwarding/customer-managed"+ },+ {+ "source": "/cli/siem-forwarding-datadog",+ "destination": "/log-forwarding/datadog"+ },+ {+ "source": "/cli/siem-forwarding-elastic",+ "destination": "/log-forwarding/elastic"+ },+ {+ "source": "/cli/siem-forwarding-falcon",+ "destination": "/log-forwarding/falcon"+ },+ {+ "source": "/cli/siem-forwarding-gcs",+ "destination": "/log-forwarding/gcs"+ },+ {+ "source": "/cli/siem-forwarding-local-jsonl",+ "destination": "/log-forwarding/local-jsonl"+ },+ {+ "source": "/cli/siem-forwarding-microsoft-sentinel",+ "destination": "/log-forwarding/microsoft-sentinel"+ },+ {+ "source": "/cli/siem-forwarding-rapid7",+ "destination": "/log-forwarding/rapid7"+ },+ {+ "source": "/cli/siem-forwarding-s3",+ "destination": "/log-forwarding/s3"+ },+ {+ "source": "/cli/siem-forwarding-splunk",+ "destination": "/log-forwarding/splunk"+ },+ {+ "source": "/cli/siem-forwarding-sumo",+ "destination": "/log-forwarding/sumo"+ },+ {+ "source": "/cli/siem-forwarding-wazuh",+ "destination": "/log-forwarding/wazuh"+ },+ {+ "source": "/cli/supported-runtimes",+ "destination": "/runtimes"+ },+ {+ "source": "/cli/supported-runtimes-antigravity-cli",+ "destination": "/runtimes/antigravity-cli"+ },+ {+ "source": "/cli/supported-runtimes-claude-code",+ "destination": "/runtimes/claude-code"+ },+ {+ "source": "/cli/supported-runtimes-claude-code-ci",+ "destination": "/runtimes/claude-code-ci"+ },+ {+ "source": "/cli/supported-runtimes-claude-cowork",+ "destination": "/runtimes/claude-cowork"+ },+ {+ "source": "/cli/supported-runtimes-codex-cli",+ "destination": "/runtimes/codex-cli"+ },+ {+ "source": "/cli/supported-runtimes-cursor",+ "destination": "/runtimes/cursor"+ },+ {+ "source": "/cli/supported-runtimes-devin",+ "destination": "/runtimes/devin"+ },+ {+ "source": "/cli/supported-runtimes-devin-desktop",+ "destination": "/runtimes/devin-desktop"+ },+ {+ "source": "/cli/supported-runtimes-factory-droid",+ "destination": "/runtimes/factory-droid"+ },+ {+ "source": "/cli/supported-runtimes-gemini-cli",+ "destination": "/runtimes/gemini-cli"+ },+ {+ "source": "/cli/supported-runtimes-github-copilot-cli",+ "destination": "/runtimes/github-copilot-cli"+ },+ {+ "source": "/cli/supported-runtimes-grok-build",+ "destination": "/runtimes/grok-build"+ },+ {+ "source": "/cli/supported-runtimes-hermes-agent",+ "destination": "/runtimes/hermes-agent"+ },+ {+ "source": "/cli/supported-runtimes-openclaw-gateway",+ "destination": "/runtimes/openclaw-gateway"+ },+ {+ "source": "/cli/supported-runtimes-opencode",+ "destination": "/runtimes/opencode"+ },+ {+ "source": "/cli/supported-runtimes-vscode",+ "destination": "/runtimes/vscode"+ },+ {+ "source": "/cli/upgrading",+ "destination": "/cli/upgrade"+ },+ {+ "source": "/upgrading",+ "destination": "/cli/upgrade"+ },+ {+ "source": "/cli/use-cases",+ "destination": "/guides/use-cases"+ },+ {+ "source": "/cli/command-reference",+ "destination": "/cli"+ },+ {+ "source": "/cli/beacon-mcp",+ "destination": "/cli/mcp"+ },+ {+ "source": "/cli/ci#beacon-ci-exec",+ "destination": "/cli/ci-exec"+ },+ {+ "source": "/cli/ci#beacon-ci-start",+ "destination": "/cli/ci-start"+ },+ {+ "source": "/cli/ci#beacon-ci-finish",+ "destination": "/cli/ci-finish"+ },+ {+ "source": "/cli/ci#beacon-ci-validate",+ "destination": "/cli/ci-validate"+ },+ {+ "source": "/cli/cloud#beacon-cloud-claude-web-print-setup",+ "destination": "/cli/cloud-claude-web-print-setup"+ },+ {+ "source": "/cli/cloud#beacon-cloud-claude-web-print-hooks",+ "destination": "/cli/cloud-claude-web-print-hooks"+ },+ {+ "source": "/cli/cloud#beacon-cloud-cursor-print-setup",+ "destination": "/cli/cloud-cursor-print-setup"+ },+ {+ "source": "/cli/cloud#beacon-cloud-cursor-print-hooks",+ "destination": "/cli/cloud-cursor-print-hooks"+ },+ {+ "source": "/cli/cloud#beacon-cloud-gcs-setup",+ "destination": "/cli/cloud-gcs-setup"+ },+ {+ "source": "/cli/endpoint-dashboard",+ "destination": "/cli/dashboard#beacon-endpoint-dashboard"+ },+ {+ "source": "/cli/wazuh-print-config",+ "destination": "/cli/wazuh#beacon-endpoint-wazuh-print-config"+ },+ {+ "source": "/cli/wazuh-install-pack",+ "destination": "/cli/wazuh#beacon-endpoint-wazuh-install-pack"+ },+ {+ "source": "/cli/wazuh-validate",+ "destination": "/cli/wazuh#beacon-endpoint-wazuh-validate"+ },+ {+ "source": "/cli/hooks-install",+ "destination": "/cli/hooks#beacon-endpoint-hooks-install"+ },+ {+ "source": "/cli/hooks-status",+ "destination": "/cli/hooks#beacon-endpoint-hooks-status"+ },+ {+ "source": "/cli/hooks-uninstall",+ "destination": "/cli/hooks#beacon-endpoint-hooks-uninstall"+ },+ {+ "source": "/cli/claude-cowork-print-config",+ "destination": "/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-print-config"+ },+ {+ "source": "/cli/claude-cowork-setup",+ "destination": "/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-setup"+ },+ {+ "source": "/cli/claude-cowork-status",+ "destination": "/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-status"+ },+ {+ "source": "/cli/claude-cowork-validate",+ "destination": "/cli/claude-cowork#beacon-endpoint-integrations-claude-cowork-validate"+ },+ {+ "source": "/cli/openclaw-print-config",+ "destination": "/cli/openclaw#beacon-endpoint-integrations-openclaw-print-config"+ },+ {+ "source": "/cli/openclaw-status",+ "destination": "/cli/openclaw#beacon-endpoint-integrations-openclaw-status"+ },+ {+ "source": "/cli/openclaw-validate",+ "destination": "/cli/openclaw#beacon-endpoint-integrations-openclaw-validate"+ },+ {+ "source": "/agent-harness-integration-model",+ "destination": "/runtimes/integration-model"+ },+ {+ "source": "/agent-runtime-telemetry",+ "destination": "/guides/agent-runtime-telemetry"+ },+ {+ "source": "/architecture",+ "destination": "/architecture/architecture"+ },+ {+ "source": "/asymptote-managed",+ "destination": "/deployment/managed"+ },+ {+ "source": "/asymptote-open-source",+ "destination": "/deployment/open-source"+ },+ {+ "source": "/asymptote-overview",+ "destination": "/get-started/overview"+ },+ {+ "source": "/ci-telemetry-exports",+ "destination": "/log-forwarding/ci-telemetry-exports"+ },+ {+ "source": "/claude-code-cloud-agents",+ "destination": "/runtimes/claude-code-cloud-agents"+ },+ {+ "source": "/cli-changelog",+ "destination": "/changelog/cli"+ },+ {+ "source": "/core-concepts",+ "destination": "/concepts/core-concepts"+ },+ {+ "source": "/cursor-cloud-agents",+ "destination": "/runtimes/cursor-cloud-agents"+ },+ {+ "source": "/detections",+ "destination": "/detections"+ },+ {+ "source": "/detections-engine",+ "destination": "/detections/engine"+ },+ {+ "source": "/detections-standard",+ "destination": "/detections/standard"+ },+ {+ "source": "/detections-yaml-schema",+ "destination": "/detections/yaml-schema"+ },+ {+ "source": "/development",+ "destination": "/contributing/development"+ },+ {+ "source": "/event-schema",+ "destination": "/telemetry-schema/event-schema"+ },+ {+ "source": "/event-schema-examples",+ "destination": "/telemetry-schema/examples"+ },+ {+ "source": "/event-schema-fields",+ "destination": "/telemetry-schema/fields"+ },+ {+ "source": "/event-schema-normalization",+ "destination": "/telemetry-schema/normalization"+ },+ {+ "source": "/fleet",+ "destination": "/mdm/fleet"+ },+ {+ "source": "/hosting-options",+ "destination": "/deployment/hosting-options"+ },+ {+ "source": "/inventory",+ "destination": "/guides/inventory"+ },+ {+ "source": "/jamf",+ "destination": "/mdm/jamf"+ },+ {+ "source": "/local-testing",+ "destination": "/guides/local-testing"+ },+ {+ "source": "/local-testing-dashboard",+ "destination": "/guides/local-testing/dashboard"+ },+ {+ "source": "/local-testing-endpoint-validation",+ "destination": "/guides/local-testing/endpoint-validation"+ },+ {+ "source": "/local-testing-events",+ "destination": "/guides/local-testing/events"+ },+ {+ "source": "/local-testing-health",+ "destination": "/guides/local-testing/health"+ },+ {+ "source": "/local-testing-logs",+ "destination": "/guides/local-testing/logs"+ },+ {+ "source": "/local-testing-mcp",+ "destination": "/guides/local-testing/mcp"+ },+ {+ "source": "/managed-architecture",+ "destination": "/architecture/managed-architecture"+ },+ {+ "source": "/mdm-deployment",+ "destination": "/mdm"+ },+ {+ "source": "/quickstart",+ "destination": "/get-started/quickstart"+ },+ {+ "source": "/quickstart-developers",+ "destination": "/get-started/quickstart-developers"+ },+ {+ "source": "/quickstart-security-it",+ "destination": "/get-started/quickstart-security-it"+ },+ {+ "source": "/sdk-changelog",+ "destination": "/changelog/sdk"+ },+ {+ "source": "/security-it-teams",+ "destination": "/security"+ },+ {+ "source": "/security-review",+ "destination": "/security/review"+ },+ {+ "source": "/security-review-data-flow-threat-model",+ "destination": "/security/data-flow-threat-model"+ },+ {+ "source": "/security-review-data-inventory",+ "destination": "/security/data-inventory"+ },+ {+ "source": "/security-review-endpoint-operations",+ "destination": "/security/endpoint-operations"+ },+ {+ "source": "/security-review-policy",+ "destination": "/security/policy"+ },+ {+ "source": "/security-review-retention-redaction",+ "destination": "/security/retention-redaction"+ },+ {+ "source": "/siem-forwarding",+ "destination": "/log-forwarding"+ },+ {+ "source": "/siem-forwarding-cloudwatch",+ "destination": "/log-forwarding/cloudwatch"+ },+ {+ "source": "/siem-forwarding-customer-managed",+ "destination": "/log-forwarding/customer-managed"+ },+ {+ "source": "/siem-forwarding-datadog",+ "destination": "/log-forwarding/datadog"+ },+ {+ "source": "/siem-forwarding-elastic",+ "destination": "/log-forwarding/elastic"+ },+ {+ "source": "/siem-forwarding-falcon",+ "destination": "/log-forwarding/falcon"+ },+ {+ "source": "/siem-forwarding-gcs",+ "destination": "/log-forwarding/gcs"+ },+ {+ "source": "/siem-forwarding-local-jsonl",+ "destination": "/log-forwarding/local-jsonl"+ },+ {+ "source": "/siem-forwarding-microsoft-sentinel",+ "destination": "/log-forwarding/microsoft-sentinel"+ },+ {+ "source": "/siem-forwarding-rapid7",+ "destination": "/log-forwarding/rapid7"+ },+ {+ "source": "/siem-forwarding-s3",+ "destination": "/log-forwarding/s3"+ },+ {+ "source": "/siem-forwarding-splunk",+ "destination": "/log-forwarding/splunk"+ },+ {+ "source": "/siem-forwarding-sumo",+ "destination": "/log-forwarding/sumo"+ },+ {+ "source": "/siem-forwarding-wazuh",+ "destination": "/log-forwarding/wazuh"+ },+ {+ "source": "/supported-runtimes",+ "destination": "/runtimes"+ },+ {+ "source": "/supported-runtimes-antigravity-cli",+ "destination": "/runtimes/antigravity-cli"+ },+ {+ "source": "/supported-runtimes-claude-code",+ "destination": "/runtimes/claude-code"+ },+ {+ "source": "/supported-runtimes-claude-code-ci",+ "destination": "/runtimes/claude-code-ci"+ },+ {+ "source": "/supported-runtimes-claude-cowork",+ "destination": "/runtimes/claude-cowork"+ },+ {+ "source": "/supported-runtimes-codex-cli",+ "destination": "/runtimes/codex-cli"+ },+ {+ "source": "/supported-runtimes-cursor",+ "destination": "/runtimes/cursor"+ },+ {+ "source": "/supported-runtimes-devin",+ "destination": "/runtimes/devin"+ },+ {+ "source": "/supported-runtimes-devin-desktop",+ "destination": "/runtimes/devin-desktop"+ },+ {+ "source": "/supported-runtimes-factory-droid",+ "destination": "/runtimes/factory-droid"+ },+ {+ "source": "/supported-runtimes-gemini-cli",+ "destination": "/runtimes/gemini-cli"+ },+ {+ "source": "/supported-runtimes-github-copilot-cli",+ "destination": "/runtimes/github-copilot-cli"+ },+ {+ "source": "/supported-runtimes-grok-build",+ "destination": "/runtimes/grok-build"+ },+ {+ "source": "/supported-runtimes-hermes-agent",+ "destination": "/runtimes/hermes-agent"+ },+ {+ "source": "/supported-runtimes-openclaw-gateway",+ "destination": "/runtimes/openclaw-gateway"+ },+ {+ "source": "/supported-runtimes-opencode",+ "destination": "/runtimes/opencode"+ },+ {+ "source": "/supported-runtimes-vscode",+ "destination": "/runtimes/vscode"+ },+ {+ "source": "/system-architecture",+ "destination": "/architecture/system-architecture"+ },+ {+ "source": "/troubleshooting",+ "destination": "/support/troubleshooting"+ },+ {+ "source": "/use-cases",+ "destination": "/guides/use-cases"+ }+ ],+ "footer": {+ "socials": {+ "x": "https://x.com/asymptotelabs",+ "github": "https://github.com/Asymptote-Labs",+ "linkedin": "https://www.linkedin.com/company/asymptotelabs/"+ },+ "links": [+ {+ "title": "Product",+ "items": [+ {+ "label": "Platform",+ "href": "https://asymptotelabs.ai/"+ },+ {+ "label": "Security",+ "href": "https://trust.asymptotelabs.ai/"+ },+ {+ "label": "Pricing",+ "href": "https://asymptotelabs.ai/pricing"+ }+ ]+ },+ {+ "title": "Company",+ "items": [+ {+ "label": "About",+ "href": "https://asymptotelabs.ai/about"+ },+ {+ "label": "Blog",+ "href": "https://asymptotelabs.ai/blog"+ },+ {+ "label": "Careers",+ "href": "https://asymptotelabs.ai/careers"+ },+ {+ "label": "Status",+ "href": "https://status.asymptotelabs.ai/"+ },+ {+ "label": "Contact",+ "href": "mailto:[email protected]"+ }+ ]+ },+ {+ "title": "Legal",+ "items": [+ {+ "label": "Privacy Policy",+ "href": "https://asymptotelabs.ai/privacy"+ },+ {+ "label": "Terms of Service",+ "href": "https://asymptotelabs.ai/terms"+ },+ {+ "label": "Trust Center",+ "href": "https://trust.asymptotelabs.ai/"+ }+ ]+ }+ ],+ "content": "\u00a9 2025 Asymptote Labs Inc. All rights reserved."+ },+ "appearance": {+ "hidePoweredBy": true+ }+}diff --git a/docs/get-started/overview.mdx b/docs/get-started/overview.mdxnew file mode 100644index 00000000..4b302889--- /dev/null+++ b/docs/get-started/overview.mdx@@ -0,0 +1,123 @@+---+title: "Asymptote Overview"+description: "Why AI agent security needs a new control layer, and how Asymptote moves teams from local visibility to enterprise control"+---++Asymptote helps security and IT teams understand what AI agents are doing at runtime and add controls as adoption grows.++You can start with open-source telemetry across the agent surfaces you already run, then move into centralized visibility, policy controls, and investigations when a small pilot turns into a broader rollout.++## Why Teams Need This++AI agents create a visibility gap that most security tools do not cover well. Traditional endpoint and application logs can usually tell you that something happened, but not enough about the agent session that caused it.++In practice, teams usually run into a few problems:++### Unknown Agents, Unknown Risk++- Teams often do not have a reliable inventory of which agent tools are in use.+- Ownership is unclear once agents spread across individual laptops and teams.+- It becomes hard to answer basic questions such as which harness is running, what it can access, and where activity should be monitored.++### Runtime Moves Faster Than Review++- Agents can read files, call tools, write code, and trigger actions very quickly.+- Manual review works for a small pilot, but it does not scale once many users or teams depend on agents.+- Security teams need a way to observe and govern activity while it is happening, not only after the fact.++### Logs Without Runtime Context++- Standard logs may show a process, file write, or network connection.+- They usually do not show the prompt, tool call, file context, or session flow behind that action.+- That makes investigations harder and weakens policy decisions.++## How Asymptote Fits Together++Asymptote is built as a progression rather than a single all-or-nothing product.++- **Asymptote Open Source** is the open-source foundation, built on Agent Beacon. It captures supported agent activity across local endpoints, CI jobs, and cloud-agent surfaces, then normalizes prompts, tool calls, file edits, commands, and related session events into records teams can inspect or forward into their own security tools.+- **Asymptote Managed** builds on that foundation with centralized ingest, retention, detections, fleet-wide visibility, policy controls, identity mapping, approvals, and investigation workflows.+- **Private Deployment** is for teams that need dedicated infrastructure, tighter data boundaries, or residency controls.++That gives teams a practical path:++- start with open-source telemetry on the surfaces you already run+- validate what agents are doing across local, CI, and cloud paths+- centralize and govern that activity as usage expands+- move into private deployment when compliance or infrastructure requirements demand it++## Choosing a Deployment Path++Use these rules of thumb:++- Choose **Asymptote Open Source** if you want open-source telemetry across supported local, CI, and cloud agent surfaces, normalized records you control, and customer-managed forwarding into your SIEM or observability stack.+- Choose **Asymptote Managed** if you need centralized operations across endpoints, users, and teams.+- Choose **Private Deployment** if managed capabilities are right, but you need stronger infrastructure ownership or data-isolation requirements.++| Capability | Asymptote Open Source | Asymptote Managed | Private Deployment |+| --- | --- | --- | --- |+| Open-source runtime telemetry | ✓ | ✓ | ✓ |+| Capture from supported local agent harnesses | ✓ | ✓ | ✓ |+| Capture from supported CI jobs and cloud-agent surfaces | ✓ | ✓ | ✓ |+| Customer-managed SIEM forwarding | ✓ | ✓ | ✓ |+| MDM-friendly endpoint rollout | ✓ | ✓ | ✓ |+| Managed ingest, retention, search, and detections | - | ✓ | ✓ |+| Fleet-wide inventory and centralized visibility | - | ✓ | ✓ |+| Policy controls, identity mapping, and approvals | - | ✓ | ✓ |+| Investigation timelines and case workflows | - | ✓ | ✓ |+| SSO, RBAC, and audit trails | - | ✓ | ✓ |+| Dedicated deployment and data isolation options | - | - | ✓ |++## Asymptote Open Source++Asymptote Open Source is built on the `agent-beacon` repository.++<a href="https://github.com/Asymptote-Labs/agent-beacon">+ <img+ src="https://api.star-history.com/svg?repos=asymptote-labs/agent-beacon&type=Date"+ alt="Agent Beacon GitHub star growth"+ width="860"+ />+</a>++If you are starting with Asymptote Open Source, these pages are the most useful next steps:++<Columns cols={2}>+ <Card title="Quickstart" icon="rocket" href="/get-started/quickstart">+ Choose the right setup path for a managed rollout or local developer evaluation.+ </Card>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ Learn how Beacon collects, normalizes, stores, and forwards telemetry across supported runtime surfaces.+ </Card>+ <Card title="Local testing" icon="flask-vial" href="/guides/local-testing">+ Validate endpoint health, events, dashboard access, MCP access, and logs.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ See supported agent harnesses, deployment modes, destinations, and boundaries.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review Asymptote Open Source JSONL fields, normalization behavior, and example events.+ </Card>+ <Card title="Security & IT Rollout Guide" icon="building-shield" href="/security">+ Plan endpoint inventory, MDM rollout, retention policy, validation, and log forwarding.+ </Card>+</Columns>++Additional references: [Core Concepts](/concepts/core-concepts), [Command reference](/cli), and [MCP server](/cli/mcp).++## Related++<Columns cols={2}>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install the open-source CLI and configure Agent Beacon telemetry.+ </Card>+ <Card title="Asymptote Managed" icon="key" href="/deployment/managed">+ Review managed visibility, policy controls, investigations, and rollout support.+ </Card>+ <Card title="Hosting Options" icon="cloud" href="/deployment/hosting-options">+ Compare the open-source local path with managed and enterprise deployment options.+ </Card>+ <Card title="Pricing" icon="tag" href="https://asymptotelabs.ai/pricing">+ See plan positioning for open-source, managed enterprise, and private deployment.+ </Card>+</Columns>diff --git a/docs/get-started/quickstart-developers.mdx b/docs/get-started/quickstart-developers.mdxnew file mode 100644index 00000000..2808e058--- /dev/null+++ b/docs/get-started/quickstart-developers.mdx@@ -0,0 +1,73 @@+---+title: "For Individual Developers"+description: "Validate a local Beacon setup and inspect AI agent activity on your own machine"+---++Use this path when you want to try Asymptote Open Source on your own machine before a team rollout.++The developer setup uses per-user paths and writes endpoint events to `~/.beacon/endpoint/logs/runtime.jsonl`.++## 1. Install Beacon++```bash+brew tap asymptote-labs/tap+brew install beacon+beacon endpoint install+```++See [Asymptote Open Source](/deployment/open-source) for install details and runtime-specific notes.++## 2. Confirm collection health++```bash+beacon endpoint status+beacon endpoint discover+```++`status` confirms the local collector is running. `discover` shows the supported [agent harnesses](/runtimes) Beacon can see on your machine.++## 3. Inspect local activity++Open the dashboard to review runtime inventory, timelines, filters, and event details from local Beacon logs.++```bash+beacon endpoint dashboard --open+```++Beacon writes supported prompt, tool, command, file, approval, and runtime context when source runtimes emit it. See [Endpoint event schema](/telemetry-schema/event-schema) for event fields and examples.++## 4. Add hooks if needed++Some runtimes need user- or project-scoped hooks for richer telemetry.++```bash+beacon endpoint hooks install --harness cursor+beacon endpoint hooks status --harness cursor+```++Restart the selected runtime after installing or removing hooks. See [Runtime hooks](/cli/hooks) for supported harnesses, setup, status checks, and uninstall steps.++## 5. Clean up++Remove endpoint service files when you are done testing. Use `--keep-logs` if you want to preserve local runtime logs.++```bash+beacon endpoint uninstall --keep-logs+```++## Related++<Columns cols={2}>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install Beacon and understand the files it manages.+ </Card>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Install, repair, inspect, and uninstall the local endpoint agent.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install, check, and remove supported hook-based endpoint telemetry.+ </Card>+ <Card title="Local testing" icon="flask-vial" href="/guides/local-testing">+ Validate endpoint health, events, dashboard access, MCP access, and logs.+ </Card>+</Columns>diff --git a/docs/get-started/quickstart-security-it.mdx b/docs/get-started/quickstart-security-it.mdxnew file mode 100644index 00000000..47fc68a0--- /dev/null+++ b/docs/get-started/quickstart-security-it.mdx@@ -0,0 +1,76 @@+---+title: "For Security & IT Teams"+description: "Choose a rollout path for open-source telemetry, managed visibility, or private deployment"+---++Use this path when you are evaluating Asymptote for a security operations, IT, or endpoint-management rollout.++## 1. Choose your path++Start with the deployment model that matches your review and operating needs.++| Hosting Option | Best for | Where to go |+| -------------- | -------- | ----------- |+| Asymptote Open Source | Small pilots across supported local, CI, and cloud-agent surfaces, with local JSONL and customer-managed forwarding where applicable. | Continue below. |+| Asymptote Managed | Centralized visibility, policy controls, investigations, SSO/RBAC, and rollout support. | See [Asymptote Managed](/deployment/managed). |+| Asymptote Private Deployment | Managed capabilities with stricter data isolation, residency, or infrastructure ownership requirements. | [Contact us](https://asymptotelabs.ai/contact). |++For the full comparison, see [Hosting Options](/deployment/hosting-options).++## 2. Run a small open-source pilot++If you are starting local-first, pilot Beacon on a small macOS group before broad MDM deployment.++Decide three things up front:++- which [agent harnesses](/runtimes) are in scope+- whether events should stay local at first or forward into a security workflow+- which MDM group will receive the first system-mode package rollout++Beacon is local-only by default. It writes normalized endpoint events to JSONL and does not require a Beacon-hosted account, remote policy fetch, or external network dependency during normal collection.++## 3. Deploy and validate++```bash+sudo beacon endpoint install --system+beacon endpoint status+```++After deployment, confirm collector health, runtime log freshness, harness scope, and forwarding readiness.++```bash+beacon endpoint status --json+beacon endpoint discover --json+beacon scan --min-severity high+```++For package rollout details, see [MDM Deployment](/mdm), [Jamf](/mdm/jamf), and [Fleet](/mdm/fleet). For the deeper operational checklist, see the [Security & IT Rollout Guide](/security).++## 4. Expand or centralize++If the pilot is healthy, expand through MDM and add forwarding only where it matches your security workflow. Beacon preserves local JSONL even when you forward events downstream.++Use [Log Forwarding](/log-forwarding) for Wazuh, Splunk HEC, Falcon LogScale HEC, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, Microsoft Sentinel, object storage, local JSONL, and customer-managed pipelines.++Use [`beacon scan`](/cli/scan) and [`beacon rules`](/cli/rules) when you want local threat-detection checks over endpoint telemetry before or alongside downstream forwarding.++Move to [Asymptote Managed](/deployment/managed) when you need centralized retention, search, detections, fleet-wide visibility, governance, investigations, SSO/RBAC, audit trails, or rollout support.++[Contact us](https://asymptotelabs.ai/contact) if you want Managed or Private Deployment guidance.++## Related++<Columns cols={2}>+ <Card title="MDM Deployment" icon="laptop-mobile" href="/mdm">+ Plan managed macOS rollout with the packaged system agent.+ </Card>+ <Card title="Log Forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events into security and observability platforms.+ </Card>+ <Card title="Security Review" icon="shield-halved" href="/security/review">+ Review local collection, data inventory, content handling, endpoint behavior, and disclosure policy.+ </Card>+ <Card title="Asymptote Managed" icon="key" href="/deployment/managed">+ Review managed visibility, policy controls, investigations, and rollout support.+ </Card>+</Columns>diff --git a/docs/get-started/quickstart.mdx b/docs/get-started/quickstart.mdxnew file mode 100644index 00000000..c2229226--- /dev/null+++ b/docs/get-started/quickstart.mdx@@ -0,0 +1,64 @@+---+title: "Quickstart"+description: "Choose the right Asymptote path for a local, managed, or private rollout"+---++Start here if you are deciding how to introduce Asymptote across a team. Asymptote can begin as open-source Agent Beacon telemetry across supported local, CI, and cloud surfaces, move into managed visibility and governance, or run in a private deployment for stricter infrastructure requirements.++## Choose a Deployment Path++| Hosting Option | Use it when | Next step |+| -------------- | ----------- | --------- |+| Asymptote Open Source | You want open-source telemetry across supported agent surfaces, local JSONL where applicable, and customer-managed forwarding into your SIEM or observability stack. | Start with the [Security & IT quickstart](/get-started/quickstart-security-it) or [developer quickstart](/get-started/quickstart-developers). |+| Asymptote Managed | You need centralized ingest, fleet-wide visibility, policy controls, investigations, SSO/RBAC, audit trails, and rollout support. | Review [Asymptote Managed](/deployment/managed) or [contact us](https://asymptotelabs.ai/contact). |+| Asymptote Private Deployment | You want managed capabilities with dedicated infrastructure, stricter data boundaries, or residency requirements. | [Contact us](https://asymptotelabs.ai/contact) to discuss deployment requirements. |++See [Hosting Options](/deployment/hosting-options) for the full comparison.++## Open Source Rollout Strategy++For most Security and IT teams, the safest open-source path is staged. Local endpoint collection is usually the first evaluation path, then teams can add CI and cloud-agent surfaces where those agents run:++1. **Evaluate locally** with a small pilot group using supported [agent harnesses](/runtimes).+2. **Validate health and visibility** with endpoint status, runtime log freshness, and expected event coverage.+3. **Add CI or cloud surfaces** with the relevant Beacon setup paths when agent activity also runs in build jobs or hosted sandboxes.+4. **Decide where events should live**: local JSONL only, Wazuh localfile, a supported SIEM/log destination, object storage, or a customer-managed pipeline.+5. **Expand through MDM** once install coverage, collector health, and forwarding checks are stable.++The open-source path is local-only by default. The endpoint agent does not require a Beacon-hosted account, remote policy fetch, or external network dependency during normal collection.++## Managed or Private Path++Move to Managed when a small pilot becomes an operating program: multiple teams, centralized search, governance, investigations, access control, and rollout support.++Private Deployment is the path for regulated teams that need managed capabilities with dedicated infrastructure, stronger isolation, custom retention, or residency requirements.++[Contact us](https://asymptotelabs.ai/contact) to discuss Managed or Private Deployment.++## Pick Your Quickstart++<Columns cols={2}>+ <Card title="For Security & IT Teams" icon="building-shield" href="/get-started/quickstart-security-it">+ Plan an open-source pilot, validate endpoint telemetry, and decide when to centralize or move to Managed.+ </Card>+ <Card title="For Individual Developers" icon="user" href="/get-started/quickstart-developers">+ Install Beacon locally, confirm collection health, and inspect agent activity on your machine.+ </Card>+</Columns>++## Deeper Guides++<Columns cols={2}>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install Beacon and configure the open-source telemetry path.+ </Card>+ <Card title="Security & IT Rollout Guide" icon="building-shield" href="/security">+ Expand from pilot to managed endpoint rollout, validation, and forwarding.+ </Card>+ <Card title="Asymptote Managed" icon="key" href="/deployment/managed">+ Review managed visibility, policy controls, investigations, and rollout support.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ See supported runtimes, deployment modes, destinations, and boundaries.+ </Card>+</Columns>diff --git a/docs/guides/agent-runtime-telemetry.mdx b/docs/guides/agent-runtime-telemetry.mdxnew file mode 100644index 00000000..a51cf795--- /dev/null+++ b/docs/guides/agent-runtime-telemetry.mdx@@ -0,0 +1,145 @@+---+title: "Investigate Agent Runtime Activity"+description: "Collect and inspect normalized telemetry from local AI agent runtimes"+---++## Overview++This guide shows how to confirm local telemetry collection, generate or find activity, inspect runtime events in the dashboard, and decide whether events are ready to forward for detection.++Use it when you want to see what supported AI agent runtimes actually did: prompts, tools, commands, approvals, MCP-like activity, file changes, and runtime health signals.++## Setup++Configure endpoint telemetry:++```bash title="Configure collection"+beacon endpoint install+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint status++Collector: running+Runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Configured harnesses: claude,codex+Last event: 2026-06-10T04:24:11Z+```+</Accordion>++If the status output has no recent runtime event, write a controlled validation event before testing real agent activity:++```bash title="Write a validation event"+beacon endpoint test-event+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint test-event++checked runtime log: ok+wrote validation event: ok+event action: endpoint.validation+```+</Accordion>++## 1. Generate Or Find Activity++Run a supported local agent harness, then check that Beacon has observed activity:++```bash title="Check observed runtime coverage"+beacon endpoint inventory+```++If the validation event appears but runtime activity does not, check [Inventory Local Agent Runtimes](/guides/inventory) for installed, configured, managed, and observed state.++## 2. Open The Local Dashboard++Open Log Search and Security Overview:++```bash title="Open the dashboard"+beacon endpoint dashboard --open+```++## 3. Inspect Key Fields++| Signal | Why it matters |+|--------|----------------|+| Harness | Identifies the agent runtime that produced the event. |+| User and endpoint | Ties activity to the local account and host. |+| Session and repository | Reconstructs where work happened. |+| Tool, command, file | Shows actions taken by the agent. |+| MCP-like activity | Highlights external tool or server interactions. |+| Approval and policy | Shows prompts for permission, denial, blocking, or enforcement context. |+| Severity and needs-review | Helps analysts prioritize. |+| Content handling | Explains whether prompt, command, or diff content is present, redacted, or truncated. |++Beacon normalizes runtime-specific signals into the [Endpoint Event Schema](/telemetry-schema/event-schema), so analysts can search across runtimes with the same core fields.++## 4. Investigate Activity++In Log Search, start with:++- Harness or model+- Severity or needs-review+- Commands and file changes+- Approval or blocked activity+- MCP-like activity+- Repository or working directory++## 5. Scan Locally++Run the active threat-detection rules over the runtime log:++```bash title="Scan local telemetry"+beacon scan+```++Use JSON output or severity gates when you want automation-friendly results:++```bash title="Scan with a severity gate"+beacon scan --json --fail-on high+```++Manage the active rule store with [`beacon rules`](/cli/rules). Scanning is read-only and does not reach the network.++## 6. Forward For Detection++Beacon writes normalized JSONL locally first. Forward it into Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, Microsoft Sentinel, AWS S3, Google Cloud Storage, or a customer-managed shipper with [Log Forwarding](/log-forwarding).++## Key Features Demonstrated++- Local collection health and last-event freshness.+- Runtime coverage from installed/configured/observed inventory state.+- Cross-runtime event review through the normalized endpoint schema.+- Local threat scanning before SIEM or log forwarding.+- Dashboard-based triage before SIEM or log forwarding.++## Troubleshooting++- If `beacon endpoint status` has no recent event, run `beacon endpoint test-event`.+- If test events appear but runtime activity does not, confirm the runtime is supported and configured in [Inventory Local Agent Runtimes](/guides/inventory).+- If the dashboard is empty, confirm it is reading the same user-mode, system-mode, or custom runtime log you validated.+- If forwarded events are missing downstream, validate local JSONL first before debugging destination configuration.++## Related++<Columns cols={2}>+ <Card title="Inventory Local Agent Runtimes" icon="clipboard-list" href="/guides/inventory">+ Discover local runtimes, MCP servers, configs, hooks, and observed coverage.+ </Card>+ <Card title="Endpoint Telemetry" icon="gear" href="/deployment/open-source#configure-endpoint-telemetry">+ Configure endpoint telemetry and harnesses.+ </Card>+ <Card title="Endpoint Event Schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and event entities.+ </Card>+ <Card title="beacon scan" icon="magnifying-glass" href="/cli/scan">+ Run local threat-detection rules over endpoint telemetry.+ </Card>+ <Card title="Log Forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon endpoint events into customer-managed destinations.+ </Card>+</Columns>diff --git a/docs/guides/inventory.mdx b/docs/guides/inventory.mdxnew file mode 100644index 00000000..252c8c5c--- /dev/null+++ b/docs/guides/inventory.mdx@@ -0,0 +1,174 @@+---+title: "Inventory Local Agent Runtimes"+description: "Inventory local agent runtimes, MCP servers, and Beacon-observable configuration"+---++## Overview++This guide shows how to inventory the AI agent footprint on an endpoint: installed runtimes, MCP servers, local config files, telemetry hooks, OTLP settings, and recent observed activity.++Use it when you need to answer what is installed, what an agent may be able to access, and whether Beacon has recently observed activity from each runtime.++## Setup++Install Beacon and configure endpoint telemetry before running inventory checks:++```bash+beacon endpoint install+beacon endpoint status+```++## 1. Run A Basic Inventory++Start with the default inventory view:++```bash title="Inventory local runtimes"+beacon endpoint inventory+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint inventory++Runtime inventory+Claude Code installed configured observed+Codex CLI installed managed observed+Cursor installed hooks: not installed+MCP servers 3 configured+Runtime log ~/.beacon/endpoint/logs/runtime.jsonl+```+</Accordion>++## 2. Include All Local Signals++Use `--all` when you want local config files, MCP servers, hooks, OTLP settings, and observed runtime coverage in one report:++```bash title="Show full local inventory"+beacon endpoint inventory --all+```++Use `--system` for packaged or MDM-managed installs:++```bash title="Check a system-mode install"+sudo beacon endpoint inventory --system --all+```++## 3. Export JSON For Review++Use JSON output for support bundles, scripts, or fleet comparison:++```bash title="Export inventory as JSON"+beacon endpoint inventory --json+```++<Accordion title="Sample JSON output">+```json title="Sample JSON output"+{+ "runtimes": [+ {+ "name": "codex",+ "installed": true,+ "configured": true,+ "managed": true,+ "observed": true+ }+ ],+ "mcpServers": [+ {+ "name": "filesystem",+ "source": "~/.cursor/mcp.json"+ }+ ]+}+```+</Accordion>++## Key Questions Answered++- Which supported agent runtimes are installed or configured on this machine?+- Which MCP servers are referenced by local agent configuration?+- Which runtime config files can Beacon inspect locally?+- Which hooks, OTLP settings, or launch environment entries are present?+- Which detected runtimes have recently produced Beacon events?++## What To Look For++| Signal | Why it matters |+|--------|----------------|+| Installed runtimes | Shows the local AI tools present on the endpoint. |+| Config files | Identifies where runtime behavior and integrations are defined. |+| MCP servers | Shows external tools an agent may be able to call. |+| Hooks and OTLP settings | Confirms whether Beacon can collect telemetry. |+| Managed state | Distinguishes Beacon-managed collection from customer-managed config. |+| Observed events | Confirms the runtime has recently emitted Beacon telemetry. |++Inventory reads local endpoint state only. It does not authenticate to remote SaaS accounts or MCP servers.++## View Results++### Runtime Coverage States++- **Installed:** the runtime or executable appears to be present locally.+- **Configured:** Beacon can see telemetry settings, hooks, launch environment entries, or other local config for the runtime.+- **Managed:** the detected telemetry surface appears to be configured by Beacon.+- **Observed:** recent Beacon events in the runtime log reference the runtime.++A runtime can be installed but not configured, configured but not observed, or observed only in a different user-mode or system-mode log.++### MCP Servers And Configs++Use MCP inventory to spot tool exposure from local agent configs:++- Expected MCP servers missing after deployment+- Unexpected MCP servers on sensitive endpoints+- Server references introduced by a specific runtime config+- User-mode versus system-mode config differences++## 4. Open Dashboard Inventory++Open the dashboard for a quick visual check alongside top harnesses, models, repositories, MCP servers, and risk signals:++```bash title="Open the dashboard"+beacon endpoint dashboard --open+```++## Key Features Demonstrated++- Local runtime discovery without remote SaaS authentication.+- MCP server and config inventory from supported local paths.+- Coverage state comparison across installed, configured, managed, and observed runtimes.+- Dashboard handoff for visual review.++## Troubleshooting++Check whether:++- The runtime is installed on the endpoint+- Beacon can detect the runtime or its configuration file+- The MCP server is defined in a supported local config path+- Hooks, OTLP settings, or launch environment entries are configured for that runtime+- User mode or system mode is reading the config and runtime log you expect+- Recent events exist in the active runtime log or a rotated archive++## Related++<Columns cols={2}>+ <Card title="Agent Activity Guides" icon="bullseye" href="/guides/use-cases">+ Review common Beacon workflows for local agent runtime visibility.+ </Card>+ <Card title="Investigate Agent Runtime Activity" icon="tower-broadcast" href="/guides/agent-runtime-telemetry">+ Collect, inspect, and forward normalized telemetry from local agent runtimes.+ </Card>+ <Card title="beacon endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Open the local dashboard and review Security Overview.+ </Card>+ <Card title="beacon endpoint inventory" icon="clipboard-list" href="/cli/endpoint-inventory">+ Review flags, examples, and JSON output behavior.+ </Card>+ <Card title="Endpoint discover" icon="magnifying-glass" href="/cli/endpoint-discover">+ Discover supported local agent harnesses and telemetry state.+ </Card>+ <Card title="Data inventory" icon="table-list" href="/security/data-inventory">+ Review runtime coverage and endpoint event fields Beacon can write.+ </Card>+</Columns>diff --git a/docs/guides/local-testing/dashboard.mdx b/docs/guides/local-testing/dashboard.mdxnew file mode 100644index 00000000..fcd42d7b--- /dev/null+++ b/docs/guides/local-testing/dashboard.mdx@@ -0,0 +1,110 @@+---+title: "Test the Local Dashboard"+description: "Use the local Beacon dashboard to validate endpoint events and security summaries"+---++## Overview++The Beacon endpoint dashboard is a local-only, read-only UI for inspecting the runtime JSONL log. Use it after health checks and validation events to confirm that local events are visible to an analyst.++This guide shows how to open the dashboard, write a known event, verify Log Search, and review Security Overview.++## Setup++Confirm endpoint health and write a validation event:++```bash title="Prepare dashboard test data"+beacon endpoint status+beacon endpoint test-event+```++## 1. Open The Dashboard++Start the dashboard and open it in your browser:++```bash title="Open the local dashboard"+beacon endpoint dashboard --open+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint dashboard --open++Reading runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Dashboard listening on http://127.0.0.1:8765+Opened browser window+```+</Accordion>++By default, the dashboard binds to a loopback address and reads the configured runtime log plus its numbered local archives. It is intended for local investigation, not remote administration.++To use a custom local address:++```bash title="Use a custom dashboard address"+beacon endpoint dashboard --addr 127.0.0.1:8765+```++To inspect a specific runtime log:++```bash title="Read a specific runtime log"+beacon endpoint dashboard --log-path /path/to/runtime.jsonl+```++## 2. Test Log Search++Write a validation event, then open Log Search and confirm the event appears in the table.++```bash title="Create data for Log Search"+beacon endpoint test-event+beacon endpoint dashboard --open+```++Use filters and quick filters to narrow the view by harness, model, severity, category, failures, approvals, MCP activity, file changes, commands, or events that may need review. Event details should open for rows from either the active log or a rotated archive.++<Frame caption="Log Search helps investigate Beacon endpoint events by harness, model, severity, category, quick filter, and free-text query.">+ <img src="/images/dashboard-log-search.png" alt="Beacon endpoint Log Search view showing investigation filters, quick filters, event rows, and model-aware search controls." />+</Frame>++## 3. Test Security Overview++Open Security Overview after writing test events or generating local agent activity. Confirm the summary cards and inventory panels reflect the local runtime log you are testing.++<Frame caption="Security Overview summarizes local AI agent activity, risk signals, harnesses, models, repositories, MCP servers, and runtime inventory.">+ <img src="/images/dashboard-overview.png" alt="Beacon endpoint Security Overview showing security posture metrics, top harnesses, top models, top repositories, MCP servers, and runtime inventory." />+</Frame>++Security Overview is useful for confirming event totals, needs-review counts, high or critical activity, denied or blocked activity, failed tools, sessions, top harnesses, top models, top repositories, MCP servers, and runtime inventory.++## Key Features Demonstrated++- Dashboard startup against the expected runtime log.+- Log Search visibility for a controlled validation event.+- Security Overview summaries for local runtime activity.+- Loopback-only inspection without a hosted Beacon account.++## Troubleshooting++If the dashboard opens but does not show expected events, check:++- The runtime log path shown by `beacon endpoint status`.+- Whether the validation event was written with `beacon endpoint test-event`.+- Whether you are testing user mode or system mode.+- Whether `--log-path` points at the same file you validated.+- Whether the expected event is in the active log or one of the numbered archives next to it.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Review all dashboard flags and command examples.+ </Card>+ <Card title="Write Validation Events" icon="vial" href="/guides/local-testing/events">+ Write a synthetic event before testing dashboard visibility.+ </Card>+ <Card title="Run Endpoint Health Checks" icon="stethoscope" href="/guides/local-testing/health">+ Confirm endpoint readiness before opening the dashboard.+ </Card>+ <Card title="Inspect Runtime Logs" icon="file-lines" href="/guides/local-testing/logs">+ Confirm the dashboard is reading the intended runtime JSONL log.+ </Card>+</Columns>diff --git a/docs/guides/local-testing/endpoint-validation.mdx b/docs/guides/local-testing/endpoint-validation.mdxnew file mode 100644index 00000000..6240e686--- /dev/null+++ b/docs/guides/local-testing/endpoint-validation.mdx@@ -0,0 +1,86 @@+---+title: "Validate Endpoint Telemetry"+description: "Confirm local Beacon endpoint health, event writes, and runtime log state"+---++## Overview++Use endpoint validation to prove the local Beacon install can find its configuration, write endpoint events, and read the expected runtime JSONL log.++Start here when you are evaluating Beacon locally, preparing a pilot, or collecting support evidence before managed deployment.++## Setup++Run validation after Beacon has installed endpoint telemetry:++```bash title="Configure endpoint telemetry"+beacon endpoint install+beacon endpoint status+```++## Validation Workflow++<Steps>+ <Step title="Check health">+ Run status and doctor checks to confirm local configuration, collector state, diagnostics, and discovered harnesses.+ </Step>+ <Step title="Write a validation event">+ Append a known-good synthetic event so later checks have a controlled record to find.+ </Step>+ <Step title="Confirm the runtime log">+ Verify user or system mode, runtime path, freshness, rotation behavior, and any custom log path used for testing.+ </Step>+</Steps>++## Run The Validation Path++```bash title="Validate local endpoint telemetry"+beacon endpoint status+beacon endpoint doctor+beacon endpoint test-event+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint doctor++endpoint config: pass+collector config: pass+runtime log: pass+launchd service: pass+harness telemetry: pass++$ beacon endpoint test-event+checked runtime log: ok+wrote validation event: ok+```+</Accordion>++## View Results++The final status check should show a recent last Beacon event. If you open the dashboard, Log Search should include the synthetic validation event.++```bash title="Open dashboard"+beacon endpoint dashboard --open+```++## Detailed Guides++<Columns cols={2}>+ <Card title="Run Endpoint Health Checks" icon="stethoscope" href="/guides/local-testing/health">+ Validate endpoint status, doctor checks, discovered harnesses, and local collector readiness.+ </Card>+ <Card title="Write Validation Events" icon="vial" href="/guides/local-testing/events">+ Write synthetic Beacon events and confirm the runtime log accepts endpoint telemetry.+ </Card>+ <Card title="Inspect Runtime Logs" icon="file-lines" href="/guides/local-testing/logs">+ Inspect runtime JSONL paths, last-event state, and user versus system mode behavior.+ </Card>+</Columns>++## Troubleshooting++- If doctor fails before writing an event, fix endpoint configuration or collector health first.+- If `test-event` fails, check runtime log path and permissions.+- If status shows no recent event after a successful write, confirm you are checking the same user-mode, system-mode, or custom log path.diff --git a/docs/guides/local-testing/events.mdx b/docs/guides/local-testing/events.mdxnew file mode 100644index 00000000..c8ca6d8d--- /dev/null+++ b/docs/guides/local-testing/events.mdx@@ -0,0 +1,131 @@+---+title: "Write Validation Events"+description: "Write synthetic Beacon endpoint events to validate local runtime logging"+---++## Overview++Use a validation event to prove Beacon can write a known-good endpoint event to the local runtime JSONL log before you rely on real agent activity.++This guide covers the default validation event, JSON output for automation, custom log paths, and system-mode validation.++## Setup++Confirm endpoint telemetry is configured:++```bash title="Check endpoint status"+beacon endpoint status+```++## 1. Write A Test Event++Run `beacon endpoint test-event` with the default per-user endpoint paths:++```bash title="Write a validation event"+beacon endpoint test-event+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint test-event++checking runtime log: ok+writing validation event: ok+event action: endpoint.validation+runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+```+</Accordion>++The command checks that the configured runtime log is writable, appends a synthetic Beacon endpoint event, and reports validation stages. `beacon endpoint validate-pipeline` is an alias for the same local validation path.++```bash title="Alias for the same validation path"+beacon endpoint validate-pipeline+```++## 2. Print Validation Stages As JSON++Use JSON output when capturing evidence for support, scripts, or rollout checks:++```bash title="Print validation event result as JSON"+beacon endpoint test-event --json+```++<Accordion title="Sample JSON output">+```json title="Sample JSON output"+{+ "runtimeLogWritable": true,+ "eventWritten": true,+ "eventAction": "endpoint.validation",+ "logPath": "~/.beacon/endpoint/logs/runtime.jsonl"+}+```+</Accordion>++## 3. Validate A Specific Log Path++If you are testing a non-default runtime log, pass the path explicitly:++```bash title="Write to a custom runtime log"+beacon endpoint test-event --log-path /path/to/runtime.jsonl+```++For a system-mode deployment, use the system endpoint paths:++```bash title="Write a system-mode validation event"+sudo beacon endpoint test-event --system+```++## 4. Test GitHub Copilot CLI Telemetry++After `beacon endpoint install` has started the local collector, run a real Copilot CLI prompt with OTLP export enabled:++```bash title="Generate Copilot CLI telemetry"+COPILOT_OTEL_ENABLED=true \+OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318 \+OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true \+copilot -p "Tell me about this repo."+```++Use `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true` only when prompt content capture is intended for the test.++Confirm the Copilot event with status or the local dashboard:++```bash title="Confirm telemetry"+beacon endpoint status+beacon endpoint dashboard --open+```++## Verify Results++After writing the event, confirm it with status or the local dashboard:++```bash title="Verify validation event"+beacon endpoint status+beacon endpoint dashboard --open+```++The status output should include a recent last Beacon event when the runtime log has been written successfully. The dashboard should show the validation event in Log Search.++## Troubleshooting++- If the write fails, check runtime log path and permissions.+- If JSON output shows the log is not writable, run `beacon endpoint doctor --fix` when safe.+- If system-mode writes work but user-mode checks look empty, confirm the dashboard is pointed at the system log.+- If Copilot telemetry is missing, confirm the OTLP endpoint and environment variables are set for the Copilot process.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint test-event" icon="vial" href="/cli/endpoint-test-event">+ Review all flags and examples for synthetic validation events.+ </Card>+ <Card title="Test the Local Dashboard" icon="chart-line" href="/guides/local-testing/dashboard">+ Confirm validation events through the local read-only dashboard.+ </Card>+ <Card title="Inspect Runtime Logs" icon="file-lines" href="/guides/local-testing/logs">+ Inspect runtime JSONL paths and last-event freshness.+ </Card>+ <Card title="Log forwarding" icon="share-nodes" href="/log-forwarding">+ Move from local validation to destination-specific forwarding checks.+ </Card>+</Columns>diff --git a/docs/guides/local-testing/health.mdx b/docs/guides/local-testing/health.mdxnew file mode 100644index 00000000..ce3a0d55--- /dev/null+++ b/docs/guides/local-testing/health.mdx@@ -0,0 +1,116 @@+---+title: "Run Endpoint Health Checks"+description: "Validate local Beacon endpoint health, diagnostics, and runtime readiness"+---++## Overview++Start local testing by confirming Beacon can find its endpoint configuration, collector, runtime log, and supported harnesses.++This guide covers status checks, doctor diagnostics, and harness discovery before you test real agent activity.++## Setup++Run these checks after `beacon endpoint install` has configured the local endpoint agent.++## 1. Run Status++`beacon endpoint status` gives the broadest local view. It reports the Agent Beacon CLI version, config path, runtime log path, collector health, service state, discovered harnesses, diagnostics, destinations, and last observed event.++```bash title="Check endpoint status"+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint status++Beacon version: 0.0.66+Endpoint config: ~/.beacon/endpoint/config.yaml+Runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Collector: running+Diagnostics: passing+Last event: 2026-06-10T04:31:02Z+```+</Accordion>++For automation or support collection, use JSON output:++```bash title="Print status as JSON"+beacon endpoint status --json+```++If you are validating a system-mode install from a managed package, check system paths with elevated privileges:++```bash title="Check system-mode status"+sudo beacon endpoint status --system+```++## 2. Run Doctor++`beacon endpoint doctor` runs pass/fail health checks and exits non-zero when a hard check fails. Add `--fix` when you want Beacon to apply supported safe remediations, such as creating a missing runtime log or repairing managed macOS collector service files.++```bash title="Run endpoint doctor"+beacon endpoint doctor+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint doctor++endpoint config: pass+collector config: pass+runtime log: pass+launchd service: pass+configured harnesses: pass+```+</Accordion>++Doctor verifies the endpoint configuration file, config validity, collector configuration file, runtime JSONL path, runtime log permissions, the macOS launchd plist, and configured harness telemetry. If the runtime log has not been created because no event has been written yet, doctor reports a warning rather than a hard failure.++```bash title="Apply supported fixes"+beacon endpoint doctor --fix+```++Fix mode reports any applied and skipped remediations. Skipped findings need operator review, such as invalid endpoint configuration, missing harness setup, missing observed events, unsafe log permissions, or service repair on non-macOS hosts.++## 3. Discover Harnesses++Use discovery to compare configured and detected local runtimes before testing real agent activity.++```bash title="Discover local harnesses"+beacon endpoint discover --json+```++Confirm that discovered harnesses match the local test scope. Hook-based runtimes such as Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode may require user or project scoped hook installation before real activity appears.++## Key Signals++- Collector is running and bound to local OTLP endpoints.+- Runtime log path exists and is writable.+- Diagnostics are passing or have actionable warnings.+- Discovered harnesses match your expected local test scope.++## Troubleshooting++- If the collector is stopped, run `beacon endpoint repair` or `beacon endpoint doctor --fix`.+- If the runtime log is missing before any event exists, write a validation event.+- If a harness is installed but not configured, review [Agent harness integrations](/runtimes).+- If system-mode checks differ from user-mode checks, confirm which install mode you are validating.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint status" icon="circle-info" href="/cli/endpoint-status">+ Inspect endpoint health, diagnostics, destinations, and last-event state.+ </Card>+ <Card title="beacon endpoint doctor" icon="stethoscope" href="/cli/endpoint-doctor">+ Run local health checks with pass/fail exit behavior.+ </Card>+ <Card title="beacon endpoint discover" icon="magnifying-glass" href="/cli/endpoint-discover">+ Show detected and configured local agent harnesses.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install and inspect hook telemetry for supported harnesses.+ </Card>+</Columns>diff --git a/docs/guides/local-testing/index.mdx b/docs/guides/local-testing/index.mdxnew file mode 100644index 00000000..36a9ce6e--- /dev/null+++ b/docs/guides/local-testing/index.mdx@@ -0,0 +1,76 @@+---+title: "Local Testing Guides"+description: "Validate Beacon endpoint telemetry locally before managed rollout or log forwarding"+---++## Overview++Use local testing to confirm Beacon is installed, writing endpoint events, and readable through local review tools before you move into managed deployment or log forwarding.++Beacon runs locally by default. These checks use the endpoint runtime JSONL log and local-only commands, so you can validate collection without a Beacon-hosted account or external network dependency.++## Setup++Install Beacon and configure endpoint telemetry before testing:++```bash title="Configure endpoint telemetry"+beacon endpoint install+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint status++Collector: running+Runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Diagnostics: passing+```+</Accordion>++## Validation Workflow++<Steps>+ <Step title="Check endpoint health">+ Run `beacon endpoint status` and `beacon endpoint doctor` to confirm the endpoint configuration, collector, runtime log, and local service state.+ </Step>+ <Step title="Write a validation event">+ Use `beacon endpoint test-event` to append a known-good synthetic event to the runtime JSONL log.+ </Step>+ <Step title="Review the dashboard">+ Start `beacon endpoint dashboard --open` and confirm the validation event appears in Log Search and summary views.+ </Step>+ <Step title="Validate MCP access">+ Run `beacon mcp doctor`, then test an MCP query path against the same runtime log to confirm local assistants only receive the intended compact activity summaries.+ </Step>+ <Step title="Inspect local logs">+ Confirm the runtime JSONL path, last-event freshness, and user or system mode paths match your test scope.+ </Step>+</Steps>++## Guides In This Section++<Columns cols={2}>+ <Card title="Validate Endpoint Telemetry" icon="stethoscope" href="/guides/local-testing/endpoint-validation">+ Confirm endpoint health, write validation events, and inspect the runtime JSONL log.+ </Card>+ <Card title="Test the Local Dashboard" icon="chart-line" href="/guides/local-testing/dashboard">+ Review Log Search, Security Overview, and runtime inventory from the local dashboard.+ </Card>+ <Card title="Test MCP Access" icon="server" href="/guides/local-testing/mcp">+ Test local MCP tools and connect Cursor or Claude Code to Beacon activity.+ </Card>+</Columns>++For ephemeral agent telemetry in CI jobs, see [CI Telemetry](/cli/ci).++## Key Features Demonstrated++- Verify local endpoint health before a rollout.+- Write a synthetic endpoint event to prove the runtime log is writable.+- Confirm the dashboard and MCP tools read the same local log.+- Separate user-mode, system-mode, and custom log-path checks.++## When To Use Local Testing++Local testing is useful for developer evaluation, support triage, security review demos, and pilot preparation. For managed rollout guidance, see [Security & IT Rollout Guide](/security), [MDM Deployment](/mdm), and [Log Forwarding](/log-forwarding).diff --git a/docs/guides/local-testing/logs.mdx b/docs/guides/local-testing/logs.mdxnew file mode 100644index 00000000..a34fc857--- /dev/null+++ b/docs/guides/local-testing/logs.mdx@@ -0,0 +1,126 @@+---+title: "Inspect Runtime Logs"+description: "Inspect Beacon runtime JSONL paths and last-event state during local testing"+---++## Overview++Beacon writes endpoint telemetry to a local runtime JSONL log. Local log checks help confirm that commands, the dashboard, and any downstream forwarding are reading the same file.++This guide shows how to find the active log, keep user-mode and system-mode checks separate, test a custom log path, and understand local rotation behavior.++## Setup++Write a validation event first so the runtime log has a known record:++```bash title="Write a validation event"+beacon endpoint test-event+```++## 1. Find The Active Runtime Log++Use status to print the configured runtime log path and last observed event:++```bash title="Print runtime log path"+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint status++Runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Last event: 2026-06-10T04:37:14Z+Runtime log source: user+```+</Accordion>++For machine-readable output:++```bash title="Print status as JSON"+beacon endpoint status --json+```++Status also reports runtime-log source warnings when a system collector may be writing OTLP events to a different log than the one you are inspecting.++## 2. Compare User And System Paths++Default local evaluation uses per-user endpoint paths:++```bash title="Check user-mode paths"+beacon endpoint status --user+beacon endpoint test-event --user+```++Managed package deployments usually use system mode and write endpoint events to `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Check system-mode paths"+sudo beacon endpoint status --system+sudo beacon endpoint test-event --system+```++Keep user-mode and system-mode checks separate. A dashboard opened against a user log will not show events written only to the system log, and a system-mode status check may report a different collector or launchd service state.++## 3. Understand Log Rotation++Beacon keeps the active `runtime.jsonl` path stable and rotates it when the next write would exceed 10 MiB. By default, it keeps five numbered local archives next to the active file:++```text+runtime.jsonl+runtime.jsonl.1+runtime.jsonl.2+runtime.jsonl.3+runtime.jsonl.4+runtime.jsonl.5+```++External shippers should continue tailing the active `runtime.jsonl` path and use their normal file-rotation handling to checkpoint offsets. The local dashboard can inspect the active log and numbered archives when you need to review recent rotated events.++## 4. Test A Custom Log Path++Use `--log-path` when testing a temporary runtime log or a support reproduction:++```bash title="Use a custom runtime log"+beacon endpoint test-event --log-path /path/to/runtime.jsonl+beacon endpoint status --log-path /path/to/runtime.jsonl+beacon endpoint dashboard --log-path /path/to/runtime.jsonl+```++The same path should be used across the write, status, and dashboard checks.++When a custom log rotates, archives use the same path plus a numeric suffix. For example, `/tmp/beacon/runtime.jsonl` rotates to `/tmp/beacon/runtime.jsonl.1`.++## Verify Results++| Area | Expected result |+|------|-----------------|+| Runtime path | Status shows the log path you intend to test |+| Writability | `beacon endpoint test-event` can append a validation event |+| Freshness | Status reports a recent last Beacon event |+| Rotation | The active log remains at `runtime.jsonl` and older local data moves to numbered archives |+| Dashboard source | Dashboard `--log-path` matches the tested runtime log |+| Deployment mode | User or system mode matches the installation you are validating |++## Troubleshooting++- If status points at a different log than the dashboard, pass the same `--log-path` to both commands.+- If the system collector is running but the user log is empty, validate with `--system`.+- If a shipper misses records after rotation, confirm it tails the active `runtime.jsonl` path and handles numbered archives normally.+- If `test-event` cannot write, check parent directory permissions and run doctor checks.++## Related++<Columns cols={2}>+ <Card title="Run Endpoint Health Checks" icon="stethoscope" href="/guides/local-testing/health">+ Confirm endpoint configuration, collector health, and local diagnostics.+ </Card>+ <Card title="Write Validation Events" icon="vial" href="/guides/local-testing/events">+ Append a known-good event to the runtime JSONL log.+ </Card>+ <Card title="Test the Local Dashboard" icon="chart-line" href="/guides/local-testing/dashboard">+ Confirm the dashboard is reading and summarizing the expected log.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review the normalized JSONL contract used for endpoint events.+ </Card>+</Columns>diff --git a/docs/guides/local-testing/mcp.mdx b/docs/guides/local-testing/mcp.mdxnew file mode 100644index 00000000..4b479453--- /dev/null+++ b/docs/guides/local-testing/mcp.mdx@@ -0,0 +1,218 @@+---+title: "Test MCP Access"+description: "Understand how Beacon exposes local endpoint activity to MCP clients and how to test it"+---++## Overview++Model Context Protocol (MCP) lets local assistants connect to tools and data sources through a standard interface. Beacon uses MCP to make local endpoint activity searchable from an MCP client without requiring a hosted Beacon account.++This guide shows how to validate Beacon MCP locally, connect Cursor or Claude Code, and test that MCP query results match the same runtime log used by the dashboard.++## What Beacon MCP Exposes++`beacon mcp` exposes compact activity tools over MCP so an assistant can search, summarize, and fetch events from the local Beacon runtime log.++Beacon exposes these MCP tools:++| Tool | Description |+|------|-------------|+| `search_activity` | Search local Beacon activity logs and return compact event summaries. |+| `summarize_activity` | Summarize local Beacon activity over a time window and optional filters. |+| `get_activity_event` | Fetch one compact event by an ID returned from `search_activity`. |+| `list_activity_filters` | List common filter values found in local Beacon activity logs. |++## Setup++Write a known event and confirm Beacon can read the runtime log:++```bash title="Prepare MCP test data"+beacon endpoint test-event+beacon endpoint status+```++## 1. Run MCP Doctor++Validate runtime log access, transport settings, readable event samples, and registered MCP tools:++```bash title="Run MCP doctor"+beacon mcp doctor+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon mcp doctor++runtime log: readable+transport: stdio+tools: search_activity, summarize_activity, get_activity_event, list_activity_filters+sample events: found+```+</Accordion>++## 2. Understand Transport Options++Beacon reads the same local `runtime.jsonl` used by the [dashboard](/cli/dashboard). MCP clients can launch Beacon over stdio, or local tools can connect to a running loopback HTTP JSON-RPC server.++```bash title="Serve Beacon MCP over stdio"+beacon mcp serve+```++Use stdio for desktop MCP clients that launch Beacon as a subprocess. Use HTTP only for local loopback testing or local tools that connect to a running server.++<Warning>+ Do not expose `beacon mcp serve --transport http` on a non-loopback interface. Beacon MCP is designed for local activity inspection, not remote administration.+</Warning>++## Security Use Cases++MCP is useful when an analyst wants to ask a local assistant targeted questions about Beacon activity without opening the raw runtime log.++- Find recent high-severity activity, failed tools, denied approvals, or events that need review.+- Summarize activity by harness, model, repository, category, or MCP server over a time window.+- Pull one event by ID and compare it with the same event in the dashboard.+- List available filters before narrowing an investigation to a specific command, file, session, or repository.++## 3. Test MCP End To End++<Steps>+ <Step title="Write a known event">+ Append a synthetic endpoint event so MCP queries have a controlled record to find.++ ```bash+ beacon endpoint test-event+ ```+ </Step>+ <Step title="Run MCP doctor">+ Confirm Beacon resolves the expected runtime log, transport, readable event samples, and registered MCP tools.++ ```bash+ beacon mcp doctor+ ```+ </Step>+ <Step title="Connect an MCP client">+ Follow [Connect Cursor and Claude Code](#connect-cursor-and-claude-code) below, then ask the client to search recent Beacon activity or summarize activity from the last hour.+ </Step>+ <Step title="Test loopback HTTP if needed">+ If your local tool uses HTTP JSON-RPC, validate the loopback transport before connecting.++ ```bash+ beacon mcp doctor --transport http --addr 127.0.0.1:8766+ ```+ </Step>+ <Step title="Compare with the dashboard">+ Open Log Search and confirm MCP query results match the same event window and event IDs shown by the dashboard.++ ```bash+ beacon endpoint dashboard --open+ ```+ </Step>+</Steps>++## 4. Connect Cursor And Claude Code++Before connecting a client, confirm Beacon is installed and resolve the absolute CLI path:++```bash title="Resolve Beacon path"+which beacon+beacon mcp doctor+```++`beacon mcp doctor` validates the runtime log, transport, readable event samples, and registered MCP tools. Use the absolute path from `which beacon` in client configuration so the client does not depend on your shell `PATH`.++### Cursor++Open or create the global Cursor MCP config:++```text+~/.cursor/mcp.json+```++Add `beacon` under `mcpServers`, merging it with any existing servers:++```json+{+ "mcpServers": {+ "beacon": {+ "command": "/opt/homebrew/bin/beacon",+ "args": ["mcp", "serve", "--transport", "stdio"]+ }+ }+}+```++Restart Cursor or run **Developer: Reload Window**, then verify the server in **Cursor Settings → MCP**. Beacon should connect with four tools: `search_activity`, `summarize_activity`, `get_activity_event`, and `list_activity_filters`.++<Note>+ Replace `/opt/homebrew/bin/beacon` with the path from `which beacon`. Do not rely on `"command": "beacon"` because Cursor's subprocess environment may not include Homebrew or shell `PATH` entries.+</Note>++<Accordion title="Use project-level Cursor config">+ To share the setup with a team, use `.cursor/mcp.json` in a repository root instead of `~/.cursor/mcp.json`. The JSON shape is the same, but the server only loads for that workspace.+</Accordion>++### Claude Code++Use `claude mcp add` for the scope you want:++```bash+# Available in all projects for your user+claude mcp add --transport stdio --scope user beacon -- /opt/homebrew/bin/beacon mcp serve --transport stdio++# Shared with a project through .mcp.json+claude mcp add --transport stdio --scope project beacon -- /opt/homebrew/bin/beacon mcp serve --transport stdio+```++Replace `/opt/homebrew/bin/beacon` with the path from `which beacon`.++To configure Claude Code manually, add the same `beacon` entry to the top-level `mcpServers` object in `~/.claude.json` for user scope or `.mcp.json` for project scope:++```json+{+ "mcpServers": {+ "beacon": {+ "command": "/opt/homebrew/bin/beacon",+ "args": ["mcp", "serve", "--transport", "stdio"]+ }+ }+}+```++Verify the server:++```bash+claude mcp list+claude mcp get beacon+```++Inside a Claude Code session, run `/mcp` and confirm Beacon is connected. Project-scoped `.mcp.json` servers require approval the first time Claude Code loads them.++## Troubleshooting++- Server fails to start: use the absolute path from `which beacon` in `command`.+- Tools connect but return empty results: run `beacon endpoint status`; the runtime log may not have events yet.+- Claude Code ignores project config: approve the `.mcp.json` server when prompted or check project-scope MCP settings.++## Key Features Demonstrated++- Local MCP access to the same runtime log used by the dashboard.+- Compact activity search, summary, event fetch, and filter discovery tools.+- Cursor and Claude Code client configuration using an absolute Beacon path.+- Loopback-only HTTP testing when stdio is not the right local transport.++## Related++<Columns cols={2}>+ <Card title="beacon mcp" icon="server" href="/cli/mcp">+ Review MCP commands, tools, transports, and flags.+ </Card>+ <Card title="beacon mcp doctor" icon="stethoscope" href="/cli/mcp-doctor">+ Validate local MCP setup and print client configuration.+ </Card>+ <Card title="Test the Local Dashboard" icon="chart-line" href="/guides/local-testing/dashboard">+ Compare MCP results against the local dashboard.+ </Card>+ <Card title="Write Validation Events" icon="vial" href="/guides/local-testing/events">+ Write a known-good event before testing MCP queries.+ </Card>+</Columns>diff --git a/docs/guides/use-cases.mdx b/docs/guides/use-cases.mdxnew file mode 100644index 00000000..8dd5b06c--- /dev/null+++ b/docs/guides/use-cases.mdx@@ -0,0 +1,57 @@+---+title: "Agent Activity Guides"+description: "Common Beacon CLI workflows for inventorying and monitoring local agent runtimes"+---++## Overview++Use these guides when you need practical steps for understanding local AI agent usage on an endpoint. They focus on inventorying what is present, confirming what Beacon can observe, and investigating runtime activity once events are flowing.++## Which Guide Should I Use?++<Columns cols={2}>+ <Card title="Inventory Local Agent Runtimes" icon="clipboard-list" href="/guides/inventory">+ Find installed runtimes, MCP servers, local configs, hooks, OTLP settings, and observed coverage.+ </Card>+ <Card title="Investigate Agent Runtime Activity" icon="tower-broadcast" href="/guides/agent-runtime-telemetry">+ Inspect prompts, tools, commands, approvals, MCP activity, file changes, and forwarding readiness.+ </Card>+</Columns>++## Fast Triage++Use these pages to answer:++- **What is installed?** Use [Inventory Local Agent Runtimes](/guides/inventory).+- **What can the agent access?** Check MCP server and config inventory.+- **What happened?** Use [Investigate Agent Runtime Activity](/guides/agent-runtime-telemetry).+- **Can I forward this?** Validate the runtime log, then use [Log Forwarding](/log-forwarding).++## Setup++Before following these guides, install Beacon and configure endpoint telemetry:++```bash title="Configure endpoint telemetry"+beacon endpoint install+beacon endpoint status+```++<Accordion title="Sample output">+```bash title="Sample output"+$ beacon endpoint status++Endpoint config: ~/.beacon/endpoint/config.yaml+Runtime log: ~/.beacon/endpoint/logs/runtime.jsonl+Collector: running+Last event: 2026-06-10T04:18:22Z+```+</Accordion>++## Key Features Demonstrated++- Discover installed and configured local agent runtimes.+- Inspect MCP servers, hooks, OTLP settings, and runtime config files.+- Confirm whether supported runtimes have produced Beacon events.+- Move from local investigation to forwarding-ready event streams.++For full command syntax and flags, use the [Command Reference](/cli).diff --git a/docs/images/asymptote-platform-diagram.png b/docs/images/asymptote-platform-diagram.pngnew file mode 100644index 00000000..e1e7b9f0Binary files /dev/null and b/docs/images/asymptote-platform-diagram.png differdiff --git a/docs/images/asymptote-sdlc.png b/docs/images/asymptote-sdlc.pngnew file mode 100644index 00000000..8cdc432bBinary files /dev/null and b/docs/images/asymptote-sdlc.png differdiff --git a/docs/images/beacon-architecture.png b/docs/images/beacon-architecture.pngnew file mode 100644index 00000000..42e5312aBinary files /dev/null and b/docs/images/beacon-architecture.png differdiff --git a/docs/images/checks-passed.png b/docs/images/checks-passed.pngnew file mode 100644index 00000000..3303c773Binary files /dev/null and b/docs/images/checks-passed.png differdiff --git a/docs/images/claude-code-on-the-web/add-cloud-environment-selector.png b/docs/images/claude-code-on-the-web/add-cloud-environment-selector.pngnew file mode 100644index 00000000..68cd3ebeBinary files /dev/null and b/docs/images/claude-code-on-the-web/add-cloud-environment-selector.png differdiff --git a/docs/images/claude-code-on-the-web/beacon-cloud-setup-print-env.png b/docs/images/claude-code-on-the-web/beacon-cloud-setup-print-env.pngnew file mode 100644index 00000000..6d40971bBinary files /dev/null and b/docs/images/claude-code-on-the-web/beacon-cloud-setup-print-env.png differdiff --git a/docs/images/claude-code-on-the-web/beacon-cloud-setup-print.png b/docs/images/claude-code-on-the-web/beacon-cloud-setup-print.pngnew file mode 100644index 00000000..de3efeceBinary files /dev/null and b/docs/images/claude-code-on-the-web/beacon-cloud-setup-print.png differdiff --git a/docs/images/claude-code-on-the-web/claude-env-settings.png b/docs/images/claude-code-on-the-web/claude-env-settings.pngnew file mode 100644index 00000000..084d4024Binary files /dev/null and b/docs/images/claude-code-on-the-web/claude-env-settings.png differdiff --git a/docs/images/claude-code-on-the-web/gcs-object-browser.png b/docs/images/claude-code-on-the-web/gcs-object-browser.pngnew file mode 100644index 00000000..89efd158Binary files /dev/null and b/docs/images/claude-code-on-the-web/gcs-object-browser.png differdiff --git a/docs/images/claude-code-on-the-web/session-init-and-task-output.png b/docs/images/claude-code-on-the-web/session-init-and-task-output.pngnew file mode 100644index 00000000..9bcd65b8Binary files /dev/null and b/docs/images/claude-code-on-the-web/session-init-and-task-output.png differdiff --git a/docs/images/claude-logo.svg b/docs/images/claude-logo.svgnew file mode 100644index 00000000..88dc7450--- /dev/null+++ b/docs/images/claude-logo.svg@@ -0,0 +1 @@+<svg fill="#191919" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"/></svg>\ No newline at end of filediff --git a/docs/images/crowdstrike_create_parser.png b/docs/images/crowdstrike_create_parser.pngnew file mode 100644index 00000000..f55bc932Binary files /dev/null and b/docs/images/crowdstrike_create_parser.png differdiff --git a/docs/images/crowdstrike_data_onboarding.png b/docs/images/crowdstrike_data_onboarding.pngnew file mode 100644index 00000000..65a7368fBinary files /dev/null and b/docs/images/crowdstrike_data_onboarding.png differdiff --git a/docs/images/crowdstrike_event.png b/docs/images/crowdstrike_event.pngnew file mode 100644index 00000000..666e1384Binary files /dev/null and b/docs/images/crowdstrike_event.png differdiff --git a/docs/images/crowdstrike_generate_api_key.png b/docs/images/crowdstrike_generate_api_key.pngnew file mode 100644index 00000000..7acfa55cBinary files /dev/null and b/docs/images/crowdstrike_generate_api_key.png differdiff --git a/docs/images/crowdstrike_logscale_connector.png b/docs/images/crowdstrike_logscale_connector.pngnew file mode 100644index 00000000..58abb719Binary files /dev/null and b/docs/images/crowdstrike_logscale_connector.png differdiff --git a/docs/images/crowdstrike_new_connection_details.png b/docs/images/crowdstrike_new_connection_details.pngnew file mode 100644index 00000000..6324507fBinary files /dev/null and b/docs/images/crowdstrike_new_connection_details.png differdiff --git a/docs/images/crowdstrike_new_parser.png b/docs/images/crowdstrike_new_parser.pngnew file mode 100644index 00000000..6f5d55b5Binary files /dev/null and b/docs/images/crowdstrike_new_parser.png differdiff --git a/docs/images/cursor-cloud-agents/beacon-cloud-setup-print-env.png b/docs/images/cursor-cloud-agents/beacon-cloud-setup-print-env.pngnew file mode 100644index 00000000..6d40971bBinary files /dev/null and b/docs/images/cursor-cloud-agents/beacon-cloud-setup-print-env.png differdiff --git a/docs/images/cursor-cloud-agents/beacon-cloud-setup-print.png b/docs/images/cursor-cloud-agents/beacon-cloud-setup-print.pngnew file mode 100644index 00000000..de3efeceBinary files /dev/null and b/docs/images/cursor-cloud-agents/beacon-cloud-setup-print.png differdiff --git a/docs/images/cursor-cloud-agents/cursor-cloud-agent-config.png b/docs/images/cursor-cloud-agents/cursor-cloud-agent-config.pngnew file mode 100644index 00000000..5d8668caBinary files /dev/null and b/docs/images/cursor-cloud-agents/cursor-cloud-agent-config.png differdiff --git a/docs/images/cursor-cloud-agents/cursor-environment-script.png b/docs/images/cursor-cloud-agents/cursor-environment-script.pngnew file mode 100644index 00000000..0cf84d8fBinary files /dev/null and b/docs/images/cursor-cloud-agents/cursor-environment-script.png differdiff --git a/docs/images/cursor-cloud-agents/gcs-object-browser.png b/docs/images/cursor-cloud-agents/gcs-object-browser.pngnew file mode 100644index 00000000..89efd158Binary files /dev/null and b/docs/images/cursor-cloud-agents/gcs-object-browser.png differdiff --git a/docs/images/cursor-logo.svg b/docs/images/cursor-logo.svgnew file mode 100644index 00000000..f814fdcc--- /dev/null+++ b/docs/images/cursor-logo.svg@@ -0,0 +1 @@+<svg fill="none" height="512" viewBox="0 0 512 512" width="512" xmlns="http://www.w3.org/2000/svg"><path d="m512 325.5c0 7.124 0 14.24-.041 21.364-.034 5.999-.103 11.998-.268 17.99-.356 13.068-1.124 26.245-3.448 39.169-2.359 13.109-6.205 25.306-12.266 37.222-5.958 11.703-13.746 22.419-23.029 31.709-9.29 9.29-20 17.072-31.71 23.03-11.909 6.061-24.113 9.907-37.222 12.266-12.923 2.324-26.101 3.092-39.169 3.448-5.999.165-11.991.233-17.99.268-7.123.048-14.24.041-21.364.041h-139c-7.124 0-14.24 0-21.364-.041-5.999-.035-11.998-.103-17.99-.268-13.068-.356-26.245-1.124-39.169-3.448-13.109-2.359-25.306-6.205-37.2219-12.266-11.7033-5.958-22.4194-13.746-31.7095-23.03-9.29-9.29-17.0717-19.999-23.0296-31.709-6.0608-11.909-9.90707-24.113-12.26557-37.222-2.32422-12.924-3.0921-26.101-3.448618-39.169-.164546-5.999-.2331071-11.991-.2673876-17.99-.0274244-7.124-.0274244-14.24-.0274244-21.364v-139c0-7.124 0-14.24.0411366-21.364.0342805-5.999.1028414-11.998.2673884-17.99.356517-13.068 1.124405-26.245 3.448615-39.169 2.3585-13.1091 6.20478-25.3061 12.26556-37.222 5.958-11.7034 13.7465-22.4195 23.0297-31.7095 9.29-9.29 19.9992-17.0717 31.7094-23.0296 11.9091-6.06084 24.1129-9.90711 37.2222-12.26561 12.923-2.32422 26.101-3.092104 39.169-3.448622 5.999-.164546 11.991-.233107 17.99-.2673875 7.117-.0342805 14.233-.0342805 21.357-.0342805h139c7.124 0 14.24 0 21.364.0411366 5.999.0342805 11.998.1028414 17.99.2673884 13.068.356517 26.245 1.124405 39.169 3.448615 13.109 2.3585 25.306 6.20478 37.222 12.26556 11.703 5.958 22.419 13.7465 31.709 23.0297 9.29 9.29 17.072 19.9992 23.03 31.7094 6.061 11.9091 9.907 24.1129 12.266 37.2222 2.324 12.923 3.092 26.101 3.448 39.169.165 5.999.233 11.991.268 17.99.048 7.123.041 14.24.041 21.364v139z" fill="#14120b"/><path d="m186.5 4h139c7.125 0 14.231-.00004 21.341.04102 5.985.0342 11.952.10221 17.903.26562h.001c13.003.35475 25.943 1.11709 38.569 3.3877 12.775 2.29827 24.592 6.03146 36.118 11.89356v-.001c10.974 5.5867 21.052 12.8384 29.848 21.457l.847.8379c8.993 8.993 16.525 19.3594 22.292 30.6934v.001c5.678 11.1575 9.36 22.6023 11.674 34.9208l.219 1.195c2.129 11.837 2.932 23.95 3.316 36.132l.072 2.438c.164 5.958.232 11.919.266 17.904v.004c.048 7.107.041 14.207.041 21.337v129.344l-.007-.007v9.656c0 7.125 0 14.231-.041 21.341-.034 5.985-.102 11.952-.266 17.903v.001c-.354 13.003-1.117 25.943-3.387 38.569-2.227 12.376-5.8 23.853-11.351 35.037l-.543 1.08c-5.766 11.327-13.306 21.701-22.293 30.695-8.993 8.993-19.361 16.526-30.695 22.293-11.518 5.861-23.342 9.595-36.116 11.893-11.837 2.129-23.95 2.932-36.132 3.316l-2.438.072c-5.958.164-11.919.232-17.904.266h-.004c-7.107.048-14.207.041-21.337.041h-139c-7.125 0-14.231 0-21.341-.041-5.985-.034-11.952-.102-17.903-.266h-.001c-13.003-.355-25.944-1.117-38.57-3.388-12.7742-2.298-24.5914-6.031-36.1165-11.893h.001c-10.974-5.587-21.0534-12.837-29.8496-21.456l-.8467-.838c-8.7118-8.712-16.0531-18.713-21.7461-29.634l-.5459-1.06-.5439-1.081c-5.371-10.816-8.8905-21.919-11.12991-33.84l-.21973-1.196c-2.27061-12.626-3.03294-25.566-3.38769-38.569v-.001c-.16341-5.958-.23142-11.918-.26563-17.903-.02736-7.112-.02734-14.219-.02734-21.341v-139c0-7.125-.00004-14.231.04102-21.341.0342-5.985.10221-11.952.26562-17.903v-.001c.35476-13.003 1.117-25.944 3.3877-38.57 2.29828-12.7744 6.03156-24.5916 11.89356-36.1166l-.001-.001c5.7666-11.327 13.3073-21.6999 22.294-30.6934 8.9933-8.9933 19.3607-16.5261 30.6953-22.2929 11.5173-5.8615 23.3406-9.59619 36.1148-11.89458 11.837-2.12877 23.951-2.93016 36.133-3.31445l2.438-.07227c5.958-.16342 11.919-.23142 17.904-.26562l-.001-.00098c7.104-.03421 14.211-.0332 21.335-.0332z" stroke="#edecec" stroke-opacity=".2" stroke-width="8"/><path d="m415.035 156.35-151.503-87.4695c-4.865-2.8094-10.868-2.8094-15.733 0l-151.4969 87.4695c-4.0897 2.362-6.6146 6.729-6.6146 11.459v176.383c0 4.73 2.5249 9.097 6.6146 11.458l151.5039 87.47c4.865 2.809 10.868 2.809 15.733 0l151.504-87.47c4.089-2.361 6.614-6.728 6.614-11.458v-176.383c0-4.73-2.525-9.097-6.614-11.459zm-9.516 18.528-146.255 253.32c-.988 1.707-3.599 1.01-3.599-.967v-165.872c0-3.314-1.771-6.379-4.644-8.044l-143.645-82.932c-1.707-.988-1.01-3.599.968-3.599h292.509c4.154 0 6.75 4.503 4.673 8.101h-.007z" fill="#edecec"/></svg>\ No newline at end of filediff --git a/docs/images/dashboard-log-search.png b/docs/images/dashboard-log-search.pngnew file mode 100644index 00000000..0bf0f5c1Binary files /dev/null and b/docs/images/dashboard-log-search.png differdiff --git a/docs/images/dashboard-overview.png b/docs/images/dashboard-overview.pngnew file mode 100644index 00000000..e2ad5296Binary files /dev/null and b/docs/images/dashboard-overview.png differdiff --git a/docs/images/datadog-agent-status.png b/docs/images/datadog-agent-status.pngnew file mode 100644index 00000000..6deaffebBinary files /dev/null and b/docs/images/datadog-agent-status.png differdiff --git a/docs/images/datadog-configure-custom-log-source.png b/docs/images/datadog-configure-custom-log-source.pngnew file mode 100644index 00000000..dc014c7aBinary files /dev/null and b/docs/images/datadog-configure-custom-log-source.png differdiff --git a/docs/images/datadog-full-results.png b/docs/images/datadog-full-results.pngnew file mode 100644index 00000000..05e8868cBinary files /dev/null and b/docs/images/datadog-full-results.png differdiff --git a/docs/images/datadog-install-pack.png b/docs/images/datadog-install-pack.pngnew file mode 100644index 00000000..781dc695Binary files /dev/null and b/docs/images/datadog-install-pack.png differdiff --git a/docs/images/datadog-log-source-navigation.png b/docs/images/datadog-log-source-navigation.pngnew file mode 100644index 00000000..e5607151Binary files /dev/null and b/docs/images/datadog-log-source-navigation.png differdiff --git a/docs/images/datadog-runtime-log-file-check.png b/docs/images/datadog-runtime-log-file-check.pngnew file mode 100644index 00000000..d9995c4fBinary files /dev/null and b/docs/images/datadog-runtime-log-file-check.png differdiff --git a/docs/images/datadog-validate-command.png b/docs/images/datadog-validate-command.pngnew file mode 100644index 00000000..5387aa35Binary files /dev/null and b/docs/images/datadog-validate-command.png differdiff --git a/docs/images/datadog-validation-test.png b/docs/images/datadog-validation-test.pngnew file mode 100644index 00000000..e5577bc8Binary files /dev/null and b/docs/images/datadog-validation-test.png differdiff --git a/docs/images/datadog-yaml.png b/docs/images/datadog-yaml.pngnew file mode 100644index 00000000..b21e6936Binary files /dev/null and b/docs/images/datadog-yaml.png differdiff --git a/docs/images/elastic_beacon_endpoint_events.png b/docs/images/elastic_beacon_endpoint_events.pngnew file mode 100644index 00000000..40991000Binary files /dev/null and b/docs/images/elastic_beacon_endpoint_events.png differdiff --git a/docs/images/elastic_up_command.png b/docs/images/elastic_up_command.pngnew file mode 100644index 00000000..3c137adaBinary files /dev/null and b/docs/images/elastic_up_command.png differdiff --git a/docs/images/factory-logo.svg b/docs/images/factory-logo.svgnew file mode 100644index 00000000..16b99b68--- /dev/null+++ b/docs/images/factory-logo.svg@@ -0,0 +1,8 @@+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="508" height="508"><svg width="508" height="508" viewBox="0 0 508 508" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_7026_10735)">+<circle cx="254" cy="254" r="254" fill="#020202"></circle>+<path d="M321.997 150.712C321.401 150.568 320.844 150.299 320.363 149.925C319.883 149.551 319.491 149.08 319.215 148.544C318.938 148.008 318.783 147.42 318.76 146.821C318.738 146.22 318.848 145.624 319.084 145.07C327.226 125.716 330.819 110.23 325.021 103.747C309.666 86.5471 248.085 120.749 228.451 132.333C227.925 132.642 227.337 132.837 226.728 132.903C226.118 132.969 225.501 132.906 224.918 132.719C224.336 132.531 223.801 132.223 223.351 131.815C222.902 131.407 222.548 130.909 222.313 130.356C214.06 111.043 205.384 97.6094 196.589 97.0268C173.279 95.4688 154.491 162.187 148.991 183.932C148.844 184.515 148.57 185.06 148.188 185.528C147.805 185.998 147.323 186.381 146.775 186.651C146.227 186.921 145.626 187.072 145.012 187.094C144.399 187.116 143.788 187.009 143.221 186.778C123.406 178.825 107.545 175.316 100.914 180.98C83.305 195.978 118.315 256.126 130.175 275.304C130.492 275.816 130.692 276.391 130.76 276.987C130.829 277.582 130.765 278.186 130.573 278.755C130.381 279.325 130.065 279.847 129.647 280.286C129.228 280.725 128.718 281.07 128.15 281.298C108.384 289.359 94.6306 297.834 94.0272 306.424C92.439 329.192 160.74 347.544 183.01 352.916C183.605 353.061 184.16 353.33 184.64 353.704C185.118 354.077 185.509 354.548 185.785 355.083C186.061 355.618 186.215 356.205 186.237 356.803C186.26 357.402 186.151 357.998 185.916 358.551C177.773 377.905 174.181 393.398 179.979 399.874C195.334 417.074 256.921 382.877 276.556 371.293C277.081 370.984 277.67 370.789 278.28 370.722C278.889 370.655 279.507 370.717 280.09 370.905C280.673 371.093 281.207 371.402 281.657 371.81C282.106 372.219 282.46 372.717 282.694 373.271C290.947 392.578 299.616 406.012 308.417 406.601C331.728 408.153 350.516 341.44 356.009 319.688C356.157 319.106 356.432 318.562 356.816 318.094C357.2 317.625 357.682 317.243 358.231 316.974C358.779 316.705 359.381 316.554 359.995 316.533C360.608 316.511 361.219 316.619 361.786 316.85C381.601 324.803 397.455 328.304 404.093 322.648C421.702 307.65 386.684 247.495 374.825 228.317C374.51 227.804 374.312 227.229 374.245 226.634C374.177 226.039 374.242 225.436 374.434 224.868C374.626 224.299 374.941 223.777 375.358 223.338C375.775 222.899 376.284 222.552 376.85 222.323C396.623 214.261 410.376 205.786 410.973 197.196C412.568 174.428 344.26 156.078 321.997 150.712ZM295.254 128.885C299.734 136.73 276.646 189 259.474 225.561C259.186 226.172 258.715 226.682 258.121 227.024C257.528 227.365 256.842 227.521 256.155 227.47C255.468 227.419 254.814 227.164 254.28 226.739C253.746 226.314 253.358 225.739 253.169 225.093C246.234 201.322 238.306 173.392 229.824 149.683C229.491 148.752 229.508 147.736 229.871 146.817C230.235 145.897 230.921 145.133 231.808 144.662C252.989 133.363 289.234 118.358 295.254 128.885ZM193.746 135.355C202.589 137.807 224.103 190.714 238.424 228.426C238.664 229.056 238.699 229.742 238.527 230.393C238.354 231.044 237.983 231.627 237.461 232.065C236.939 232.503 236.292 232.775 235.608 232.844C234.923 232.913 234.234 232.775 233.632 232.45C211.501 220.453 185.694 206.159 162.529 195.253C161.622 194.823 160.901 194.093 160.493 193.192C160.085 192.292 160.018 191.279 160.303 190.335C167.12 167.736 181.865 132.069 193.746 135.355ZM126.652 210.04C134.676 205.664 188.197 228.216 225.621 244.989C226.248 245.269 226.771 245.73 227.12 246.31C227.47 246.889 227.629 247.56 227.577 248.23C227.524 248.901 227.264 249.54 226.828 250.062C226.393 250.582 225.805 250.962 225.143 251.147C200.813 257.921 172.211 265.664 147.937 273.949C146.985 274.272 145.946 274.255 145.007 273.9C144.067 273.545 143.286 272.876 142.805 272.011C131.257 251.322 115.867 215.92 126.652 210.04ZM133.275 309.188C135.779 300.551 189.952 279.537 228.562 265.548C229.207 265.315 229.91 265.28 230.576 265.448C231.243 265.617 231.84 265.98 232.288 266.49C232.736 266.999 233.015 267.631 233.085 268.299C233.155 268.968 233.015 269.641 232.682 270.23C220.392 291.846 205.758 317.053 194.592 339.672C194.156 340.561 193.409 341.269 192.486 341.668C191.563 342.068 190.525 342.134 189.557 341.853C166.42 335.235 129.905 320.792 133.275 309.188ZM209.739 374.722C205.252 366.884 228.347 314.608 245.519 278.054C245.806 277.442 246.279 276.931 246.872 276.59C247.465 276.249 248.151 276.093 248.838 276.144C249.525 276.194 250.179 276.45 250.713 276.875C251.247 277.3 251.634 277.874 251.824 278.521C258.759 302.285 266.686 330.222 275.169 353.932C275.499 354.862 275.481 355.877 275.117 356.795C274.752 357.713 274.064 358.475 273.178 358.945C252.004 370.223 215.752 385.256 209.76 374.722H209.739ZM311.247 368.252C302.397 365.807 280.883 312.894 266.562 275.182C266.322 274.55 266.285 273.862 266.458 273.21C266.63 272.559 267.003 271.974 267.526 271.536C268.049 271.097 268.697 270.826 269.382 270.758C270.068 270.69 270.759 270.83 271.361 271.157C293.485 283.154 319.299 297.455 342.457 308.362C343.366 308.789 344.089 309.519 344.497 310.42C344.905 311.321 344.971 312.335 344.683 313.28C337.872 335.912 323.128 371.544 311.247 368.252ZM378.341 293.566C370.31 297.949 316.795 275.391 279.365 258.618C278.738 258.338 278.215 257.877 277.866 257.297C277.516 256.718 277.357 256.047 277.409 255.377C277.461 254.706 277.722 254.067 278.158 253.546C278.593 253.025 279.181 252.646 279.843 252.461C304.18 245.687 332.775 237.943 357.049 229.658C358.003 229.335 359.043 229.353 359.984 229.709C360.925 230.065 361.706 230.737 362.188 231.603C373.729 252.285 389.119 287.693 378.341 293.566ZM371.718 194.419C369.207 203.063 315.041 224.077 276.431 238.066C275.784 238.3 275.08 238.335 274.413 238.167C273.746 237.999 273.148 237.635 272.698 237.124C272.249 236.613 271.972 235.98 271.903 235.31C271.833 234.641 271.975 233.966 272.311 233.377C284.594 211.768 299.228 186.554 310.394 163.935C310.833 163.048 311.58 162.343 312.502 161.945C313.425 161.546 314.462 161.481 315.429 161.76C338.566 168.413 375.081 182.815 371.718 194.419Z" fill="#FAFAFA"></path>+</g>+</svg><style>@media (prefers-color-scheme: light) { :root { filter: none; } }+@media (prefers-color-scheme: dark) { :root { filter: none; } }+</style></svg>\ No newline at end of filediff --git a/docs/images/favicon.ico b/docs/images/favicon.iconew file mode 100644index 00000000..6a0f191eBinary files /dev/null and b/docs/images/favicon.ico differdiff --git a/docs/images/hero-dark.png b/docs/images/hero-dark.pngnew file mode 100644index 00000000..a61cbb12Binary files /dev/null and b/docs/images/hero-dark.png differdiff --git a/docs/images/hero-light.png b/docs/images/hero-light.pngnew file mode 100644index 00000000..68c712d6Binary files /dev/null and b/docs/images/hero-light.png differdiff --git a/docs/images/linear-logo.svg b/docs/images/linear-logo.svgnew file mode 100644index 00000000..d00a9a5e--- /dev/null+++ b/docs/images/linear-logo.svg@@ -0,0 +1,12 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none">+ <rect width="100" height="100" rx="20" fill="#1A1A2E"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20 67.6L32.4 80C26.3 76.1 22 71.3 20 67.6Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18 58.5L41.5 82C38.8 81.3 36.2 80 33.8 78.2L21.8 66.2C20 63.8 18.7 61.2 18 58.5Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18 49L51 82C48.5 81.8 46 81.3 43.6 80.4L19.6 56.4C18.7 54 18.2 51.5 18 49Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.2 40.4L59.6 79.8C57.3 80.4 54.9 80.7 52.5 80.8L19.2 47.5C19.3 45.1 19.6 42.7 20.2 40.4Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M24.4 33L67 75.6C65 76.7 62.9 77.5 60.7 78.2L21.8 39.3C22.5 37.1 23.3 35 24.4 33Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30.8 27.2L72.8 69.2C71.1 70.7 69.3 72 67.4 73.1L26.9 32.6C28 30.7 29.3 28.9 30.8 27.2Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M39 23L77 61C75.4 63.3 73.4 65.4 71.2 67.2L32.8 28.8C34.6 26.6 36.7 24.6 39 23Z" fill="white"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M49 20C56 20 62.4 22.5 67.4 26.7L26.7 67.4C22.5 62.4 20 56 20 49C20 33 33 20 49 20Z" fill="white" opacity="0"/>+ <path fill-rule="evenodd" clip-rule="evenodd" d="M49 20C65 20 78 33 78 49C78 55.6 75.7 61.7 71.8 66.5L66.5 71.8C61.7 75.7 55.6 78 49 78V20Z" fill="white"/>+</svg>diff --git a/docs/images/logo.png b/docs/images/logo.pngnew file mode 100644index 00000000..38bb1ba4Binary files /dev/null and b/docs/images/logo.png differdiff --git a/docs/images/member-settings.png b/docs/images/member-settings.pngnew file mode 100644index 00000000..092a82c3Binary files /dev/null and b/docs/images/member-settings.png differdiff --git a/docs/images/org-management.png b/docs/images/org-management.pngnew file mode 100644index 00000000..510b8235Binary files /dev/null and b/docs/images/org-management.png differdiff --git a/docs/images/org-settings.png b/docs/images/org-settings.pngnew file mode 100644index 00000000..d78b68d7Binary files /dev/null and b/docs/images/org-settings.png differdiff --git a/docs/images/rapid7_add_event_source.png b/docs/images/rapid7_add_event_source.pngnew file mode 100644index 00000000..d1925647Binary files /dev/null and b/docs/images/rapid7_add_event_source.png differdiff --git a/docs/images/rapid7_custom_logs.png b/docs/images/rapid7_custom_logs.pngnew file mode 100644index 00000000..7839723bBinary files /dev/null and b/docs/images/rapid7_custom_logs.png differdiff --git a/docs/images/rapid7_webhook_config.png b/docs/images/rapid7_webhook_config.pngnew file mode 100644index 00000000..a8ac1006Binary files /dev/null and b/docs/images/rapid7_webhook_config.png differdiff --git a/docs/images/sentinel_create_custom_log.png b/docs/images/sentinel_create_custom_log.pngnew file mode 100644index 00000000..ec9b116bBinary files /dev/null and b/docs/images/sentinel_create_custom_log.png differdiff --git a/docs/images/sentinel_data_collection_endpoint_config.png b/docs/images/sentinel_data_collection_endpoint_config.pngnew file mode 100644index 00000000..27c8c72bBinary files /dev/null and b/docs/images/sentinel_data_collection_endpoint_config.png differdiff --git a/docs/images/sentinel_data_collection_endpoint_creation.png b/docs/images/sentinel_data_collection_endpoint_creation.pngnew file mode 100644index 00000000..aa0c9d3bBinary files /dev/null and b/docs/images/sentinel_data_collection_endpoint_creation.png differdiff --git a/docs/images/sentinel_instance_table_creation.png b/docs/images/sentinel_instance_table_creation.pngnew file mode 100644index 00000000..ff134777Binary files /dev/null and b/docs/images/sentinel_instance_table_creation.png differdiff --git a/docs/images/sentinel_workspace_config.png b/docs/images/sentinel_workspace_config.pngnew file mode 100644index 00000000..ffb1d958Binary files /dev/null and b/docs/images/sentinel_workspace_config.png differdiff --git a/docs/images/sumo-logic-auth-header-config.png b/docs/images/sumo-logic-auth-header-config.pngnew file mode 100644index 00000000..c891c798Binary files /dev/null and b/docs/images/sumo-logic-auth-header-config.png differdiff --git a/docs/images/sumo-logic-collector-config.png b/docs/images/sumo-logic-collector-config.pngnew file mode 100644index 00000000..d3c22e48Binary files /dev/null and b/docs/images/sumo-logic-collector-config.png differdiff --git a/docs/images/sumo-logic-http-logs-metrics-config.png b/docs/images/sumo-logic-http-logs-metrics-config.pngnew file mode 100644index 00000000..90783b54Binary files /dev/null and b/docs/images/sumo-logic-http-logs-metrics-config.png differdiff --git a/docs/images/sumo-logic-sample-log-queries.png b/docs/images/sumo-logic-sample-log-queries.pngnew file mode 100644index 00000000..89e2bcd6Binary files /dev/null and b/docs/images/sumo-logic-sample-log-queries.png differdiff --git a/docs/images/vscode-chat-use-hooks-setting.png b/docs/images/vscode-chat-use-hooks-setting.pngnew file mode 100644index 00000000..7dbffc2cBinary files /dev/null and b/docs/images/vscode-chat-use-hooks-setting.png differdiff --git a/docs/images/wazuh-display-fields.png b/docs/images/wazuh-display-fields.pngnew file mode 100644index 00000000..4fc03c14Binary files /dev/null and b/docs/images/wazuh-display-fields.png differdiff --git a/docs/images/wazuh-event-sample.png b/docs/images/wazuh-event-sample.pngnew file mode 100644index 00000000..9ad688f3Binary files /dev/null and b/docs/images/wazuh-event-sample.png differdiff --git a/docs/index.mdx b/docs/index.mdxnew file mode 100644index 00000000..2aa93d79--- /dev/null+++ b/docs/index.mdx@@ -0,0 +1,23 @@+---+title: "Welcome to Asymptote"+description: "Asymptote is the AI Detection & Response layer for every agent harness. Security teams use Asymptote to get complete agent runtime visibility and govern agent activity at scale."+---++<img src="/images/logo.png" alt="Asymptote logo" width="720" height="360" />++<Info>+ Looking for a demo? Visit [asymptotelabs.ai/contact](https://asymptotelabs.ai/contact).+</Info>++## Getting started++Choose the open-source Agent Beacon path to start collecting agent telemetry across local, CI, and cloud surfaces, or request access to managed Asymptote for hosted visibility and governance.++<CardGroup cols={2}>+ <Card title="Asymptote Overview" icon="rocket" href="/get-started/overview">+ Understand the problem Asymptote solves, how Beacon fits in, and when to use managed or private deployments.+ </Card>+ <Card title="Managed Asymptote" icon="key" href="/deployment/managed">+ Review managed platform options for hosted agent runtime visibility, governance, and enterprise rollout support.+ </Card>+</CardGroup>diff --git a/docs/log-forwarding/ci-telemetry-exports.mdx b/docs/log-forwarding/ci-telemetry-exports.mdxnew file mode 100644index 00000000..95f1834d--- /dev/null+++ b/docs/log-forwarding/ci-telemetry-exports.mdx@@ -0,0 +1,176 @@+---+title: "CI Telemetry Exports"+description: "Export Beacon CI runtime JSONL through artifacts, object storage, or customer-managed log pipelines."+---++## Overview++Beacon CI telemetry is written as normalized JSONL for a single ephemeral CI job. The completed `runtime.jsonl` file is the durable handoff artifact: upload it as a workflow artifact, copy it to object storage, or route it into the same SIEM and log pipelines that consume Beacon endpoint JSONL.++<Note>+ This page covers export workflows for `beacon ci`. For persistent laptop or workstation forwarding, use [Log Forwarding](/log-forwarding).+</Note>++## Export Contract++By default, `beacon ci exec` writes the CI runtime log to `$RUNNER_TEMP/beacon/runtime.jsonl` when `RUNNER_TEMP` is set. Otherwise it uses the system temp directory. Use `--log-path` when your workflow needs a stable artifact path.++| Artifact | Default path | Export guidance |+|----------|--------------|-----------------|+| Runtime log | `$RUNNER_TEMP/beacon/runtime.jsonl` | Upload or forward this JSONL file |+| Collector config | `$RUNNER_TEMP/beacon/otelcol.yaml` | Keep out of shared artifacts when it may contain environment references |+| Collector spool | `$RUNNER_TEMP/beacon/spool/otlp.jsonl` | Operational buffer for troubleshooting |++Each line in `runtime.jsonl` is one complete Beacon event using the [Endpoint Event Schema](/telemetry-schema/event-schema). Beacon applies redaction, sanitization, truncation, and event-size limits before events are written, so downstream artifacts receive the same normalized JSONL contract as local endpoint logs.++## Export Paths++### Workflow Artifact++The **Agent Beacon CI Telemetry** GitHub Action uploads the CI runtime log as a workflow artifact by default:++```yaml+- name: Run Claude with Beacon telemetry+ uses: asymptote-labs/[email protected]+ with:+ command: claude --print "Review this pull request"+ upload-artifact: "true"+ artifact-name: beacon-runtime-log+```++Use the workflow artifact path when a security team or downstream job will retrieve the completed JSONL file after the run. Artifact access, retention, and download permissions stay under GitHub Actions controls.++### Object Storage Upload++For CI runners that should hand off telemetry through object storage, `beacon ci exec` can upload the completed `runtime.jsonl` after telemetry validation.++Upload to Amazon S3:++```bash+export BEACON_CI_S3_BUCKET="my-beacon-telemetry"+export BEACON_CI_S3_PREFIX="github-actions"++beacon ci exec --upload s3 -- claude --print "Summarize this repository"+```++Upload to Google Cloud Storage:++```bash+export BEACON_CI_GCS_BUCKET="my-beacon-telemetry"+export BEACON_CI_GCS_PREFIX="github-actions"++beacon ci exec --upload gcs -- claude --print "Summarize this repository"+```++`--upload` is repeatable, so a job can upload to both destinations when required:++```bash+beacon ci exec --upload s3 --upload gcs -- claude --print "Review this repository"+```++`--upload` requires Beacon `v0.0.44` or newer.++S3 upload uses `aws s3 cp` and the standard AWS credential provider chain. GCS upload uses `gcloud storage cp` when available, falling back to `gsutil cp`.++### GitHub Actions Object Storage++Configure cloud credentials at the job level, then pass the upload destination to the Agent Beacon action:++```yaml+- uses: aws-actions/configure-aws-credentials@v4+ with:+ role-to-assume: ${{ secrets.BEACON_TELEMETRY_ROLE_ARN }}+ aws-region: us-east-1++- name: Run Claude with Beacon telemetry+ uses: asymptote-labs/[email protected]+ env:+ BEACON_CI_S3_BUCKET: my-beacon-telemetry+ BEACON_CI_S3_PREFIX: github-actions+ with:+ command: claude --print "Review this pull request"+ upload: s3+```++For GCS, authenticate with your normal Google Cloud CI mechanism and set `BEACON_CI_GCS_BUCKET` plus optional `BEACON_CI_GCS_PREFIX`:++```yaml+- uses: google-github-actions/auth@v2+ with:+ workload_identity_provider: ${{ secrets.BEACON_GCP_WORKLOAD_IDENTITY_PROVIDER }}+ service_account: ${{ secrets.BEACON_GCP_SERVICE_ACCOUNT }}++- name: Run Claude with Beacon telemetry+ uses: asymptote-labs/[email protected]+ env:+ BEACON_CI_GCS_BUCKET: my-beacon-telemetry+ BEACON_CI_GCS_PREFIX: github-actions+ with:+ command: claude --print "Review this pull request"+ upload: gcs+```++## Object Layout++In GitHub Actions, object keys use this shape:++```text+<prefix>/<owner>/<repo>/<run_id>/<run_attempt>/runtime.jsonl+```++Outside GitHub Actions, Beacon falls back to:++```text+<prefix>/ci/<timestamp>/runtime.jsonl+```++Prefixes are optional. Beacon trims empty path parts and normalizes path separators before building the upload key.++## Destination Mapping++The JSONL artifact is the universal CI export contract. Existing destination packs and forwarding patterns can consume the same file after it is downloaded, copied, or routed into the customer-managed handoff path.++| Destination | CI export path |+|-------------|----------------|+| Wazuh | Download the artifact and ingest it with the Wazuh localfile pack or an equivalent JSONL import path |+| Elastic | Download the artifact and ingest it with Filebeat or Elastic Agent pack assets |+| Datadog | Download the artifact and ingest it with Datadog Agent log collection or a customer-managed log pipeline |+| Sumo Logic | Download the artifact for Vector-based forwarding, or use `--upload` when object storage is the handoff point |+| Rapid7 | Download the artifact for Vector or webhook forwarding |+| AWS S3 | Use `--upload s3` in CI, or upload the workflow artifact manually |+| AWS CloudWatch Logs | Download the artifact and forward it with the Vector CloudWatch pack |+| Google Cloud Storage | Use `--upload gcs` in CI, or upload the workflow artifact manually |+| Microsoft Sentinel | Download the artifact and ingest it with Azure Monitor Agent or a Data Collection Rule path |+| Splunk | Use direct `--forward splunk`, or ingest the JSONL artifact with an existing Splunk pipeline |+| Falcon LogScale | Use direct `--forward falcon`, or ingest the JSONL artifact with an existing pipeline |++## Security Notes++Keep cloud credentials in CI secret stores, OIDC roles, workload identity, or job-level credential actions. Do not pass cloud credentials through prompt text, action inputs, or committed workflow files.++When object storage upload is configured, Beacon strips common AWS and Google credential environment variables from the child agent process while keeping them available to the post-run uploader. This reduces credential exposure to the command being observed.++Review artifact access before rollout. CI runtime JSONL can contain prompt, tool, file, command, and run context where supported runtimes emit it. Beacon applies redaction, sanitization, truncation, and event-size limits before writing the artifact, but artifact retention, access, and downstream routing remain controlled by GitHub Actions, object storage, and your customer-managed pipeline.++## Failure Behavior++By default, `beacon ci exec` fails the step when telemetry validation fails. Set `--require-telemetry=false` or the action input `require-telemetry: "false"` when telemetry health should warn but not gate the build.++Object storage upload runs after telemetry validation. Upload failures fail the CI step so broken export paths are visible. If the child command exits non-zero, that child exit code still takes precedence.++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Run and validate ephemeral Beacon telemetry collection in CI.+ </Card>+ <Card title="Log Forwarding" icon="tower-broadcast" href="/log-forwarding">+ Compare endpoint SIEM, log aggregation, object storage, and local forwarding paths.+ </Card>+ <Card title="Retention and Redaction" icon="shield-halved" href="/security/retention-redaction">+ Choose how much content Beacon writes before export.+ </Card>+ <Card title="Endpoint Event Schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized JSONL event fields.+ </Card>+</Columns>diff --git a/docs/log-forwarding/cloudwatch.mdx b/docs/log-forwarding/cloudwatch.mdxnew file mode 100644index 00000000..e2c90cdf--- /dev/null+++ b/docs/log-forwarding/cloudwatch.mdx@@ -0,0 +1,179 @@+---+title: "AWS CloudWatch Logs"+description: "Forward Beacon endpoint events into AWS CloudWatch Logs with customer-managed Vector forwarding."+---++## Forwarding Overview++Beacon `v0.0.42` added AWS CloudWatch Logs support for teams that want Beacon endpoint events forwarded into a customer-managed CloudWatch Logs log group for observability, security search, subscriptions, exports, or downstream detection workflows. Beacon remains the local JSONL producer and writes one source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Your customer-managed Vector agent tails that file and writes parsed Beacon events to CloudWatch Logs.++Use this path when you want Beacon events forwarded to AWS CloudWatch Logs without storing AWS credentials, profiles, IAM roles, log group retention settings, stream names, or encryption settings in Beacon endpoint configuration.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so Vector can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Prerequisites++- Beacon endpoint installed and writing local JSONL.+- An AWS CloudWatch Logs log group for Beacon runtime logs.+- Vector installed or deployable through your endpoint-management tooling.+- An IAM role or credentials available through the standard AWS credential provider chain for the process running Vector or the AWS CLI validation checks.++Recommended log group and stream layout:++```text+/aws/beacon/runtime+beacon-runtime/<hostname>+```++Example least-privilege IAM policy for a pre-created log group:++```json+{+ "Version": "2012-10-17",+ "Statement": [+ {+ "Effect": "Allow",+ "Action": [+ "logs:CreateLogStream",+ "logs:DescribeLogStreams",+ "logs:PutLogEvents"+ ],+ "Resource": "arn:aws:logs:us-east-1:111122223333:log-group:/aws/beacon/runtime:*"+ }+ ]+}+```++Add `logs:CreateLogGroup`, KMS permissions, subscription-filter permissions, or account-specific conditions only if your AWS controls require them. Configure CloudWatch Logs retention, log group encryption, subscription filters, exports, and access policies in AWS.++## Install the CloudWatch pack++Generate the AWS CloudWatch Logs content pack for a managed system-mode deployment:++```bash title="Generate the AWS CloudWatch Logs content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint cloudwatch install-pack \+ --system \+ --output ./beacon-cloudwatch-pack+```++The pack includes:++- `README.md` with setup and validation steps.+- `vector.toml` for customer-managed Vector forwarding.+- `sample-event.jsonl` with Beacon endpoint sample events.++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated `vector.toml` uses the selected path.++## Production forwarding++For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tails `runtime.jsonl`, checkpoints file offsets in its `data_dir`, batches Beacon events, and writes JSON log events into AWS CloudWatch Logs.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"file source tails active path"| vectorAgent["Vector host agent"]+ vectorAgent -->|"parse_json, JSON logs"| cloudWatchLogs["CloudWatch Logs"]+ cloudWatchLogs -->|"queries or subscriptions"| downstreamWorkflow["SIEM, archive, or detection workflow"]+ endpointMgmt["MDM or secret tooling"] -->|"log group, stream prefix, AWS credentials"| vectorAgent+```++Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl"+sudo mkdir -p /etc/vector+sudo cp ./beacon-cloudwatch-pack/vector.toml /etc/vector/beacon-cloudwatch.toml+export BEACON_CLOUDWATCH_LOG_GROUP="/aws/beacon/runtime"+export BEACON_CLOUDWATCH_LOG_STREAM_PREFIX="beacon-runtime"+export AWS_REGION="us-east-1"+vector validate /etc/vector/beacon-cloudwatch.toml+vector --config /etc/vector/beacon-cloudwatch.toml+```++In managed deployments, provide `BEACON_CLOUDWATCH_LOG_GROUP`, optional `BEACON_CLOUDWATCH_LOG_STREAM_PREFIX`, `AWS_REGION`, and any AWS credential-provider settings through the Vector service environment, host identity, or MDM/secret tooling. Do not store AWS destination secrets in Beacon endpoint configuration.++The template expects a Vector version with the `file` source, `remap` transform, and `aws_cloudwatch_logs` sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON so CloudWatch receives the Beacon event shape without a Vector wrapper.++The template sets `create_missing_group = false` and `create_missing_stream = true`. Pre-create the log group in AWS so you can manage retention, encryption, resource policy, tags, and subscription filters through your normal controls, while allowing Vector to create host-specific log streams as endpoints come online.++If you adapt the config or use another forwarder, it should:++- Checkpoint file offsets.+- Follow Beacon's local file rotation at the active `runtime.jsonl` path.+- Keep each Beacon event as one JSON object.+- Batch JSON records.+- Use host-specific log streams.+- Retry transient failures without duplicating the whole file.+- Keep AWS credentials, IAM roles, log group retention, stream naming, and encryption outside Beacon endpoint configuration.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write a CloudWatch validation event:++```bash title="Write a CloudWatch validation event"+sudo /opt/beacon/bin/beacon endpoint cloudwatch validate --system+```++Wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with AWS tooling:++```bash title="Wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with AWS tooling"+aws logs filter-log-events \+ --log-group-name "$BEACON_CLOUDWATCH_LOG_GROUP" \+ --filter-pattern '"Beacon endpoint AWS CloudWatch Logs validation event"' \+ --region "$AWS_REGION"+```++CloudWatch Logs Insights query:++```sql+fields @timestamp, vendor, product, destination.type, destination.mode, message+| filter message like /Beacon endpoint AWS CloudWatch Logs validation event/+| sort @timestamp desc+| limit 20+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=cloudwatch destination.mode=aws_cloudwatch_logs+```++If events do not appear, verify that Vector is reading the same runtime log path Beacon writes, that the AWS credential provider chain is available to the Vector process, that the log group name and region match your environment variables, and that IAM allows `logs:CreateLogStream`, `logs:DescribeLogStreams`, and `logs:PutLogEvents` for the selected log group.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to CloudWatch Logs. Review log group access, retention, subscription filters, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint cloudwatch" icon="terminal" href="/cli/cloudwatch">+ Review AWS CloudWatch Logs command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS CloudWatch Logs, AWS S3, Google Cloud Storage, and customer-managed pipelines.+ </Card>+ <Card title="AWS S3 forwarding" icon="box-archive" href="/log-forwarding/s3">+ Configure Vector forwarding from Beacon JSONL into AWS S3.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/customer-managed.mdx b/docs/log-forwarding/customer-managed.mdxnew file mode 100644index 00000000..20122dcb--- /dev/null+++ b/docs/log-forwarding/customer-managed.mdx@@ -0,0 +1,72 @@+---+title: "Customer-Managed Log Pipelines"+description: "Forward Beacon endpoint events from local JSONL through a customer-managed shipper, agent, or log pipeline."+---++## Pipeline Overview++Beacon writes normalized [endpoint events](/concepts/core-concepts#endpoint-event) to the active local [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Customer-managed forwarding means your existing shipper, endpoint agent, Vector deployment, log pipeline, or SIEM collector tails that file and owns remote delivery.++Use this path when Beacon should remain the local event producer and your infrastructure should control destination URLs, credentials, buffering, retries, retention, and downstream routing.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM or managed endpoint deployments so the shipper can read a shared root-managed path instead of per-user home directories.++## Forwarding contract++Configure your pipeline to:++- Read from `/var/log/beacon-agent/runtime.jsonl` for system deployments.+- Follow Beacon's local rotation at the active `runtime.jsonl` path.+- Checkpoint file offsets in the shipper or pipeline.+- Treat each line as one complete JSON event.+- Preserve the raw Beacon JSON for investigation.+- Keep remote destination secrets outside Beacon endpoint configuration.++Beacon endpoint events use stable top-level fields such as `vendor`, `product`, `event`, `actor`, `endpoint`, `process`, `file`, `tool`, `mcp`, `approval`, `destination`, and `health`. Review the [endpoint event schema](/telemetry-schema/event-schema) before writing custom parsers or routing rules.++## Example pipeline shape++```mermaid+flowchart LR+ beaconEndpoint["Beacon endpoint agent"] -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"tail and checkpoint"| customerShipper["Customer-managed shipper"]+ customerShipper -->|"buffer, retry, enrich"| logPipeline["Customer log pipeline"]+ logPipeline -->|"route"| destination["SIEM, data lake, or archive"]+ endpointMgmt["MDM or secret tooling"] -->|"destination config and credentials"| customerShipper+```++## Validation++Confirm Beacon is writing local events:++```bash title="Confirm Beacon is writing local events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+sudo /opt/beacon/bin/beacon endpoint test-event --system+```++Then confirm your shipper read the new line and delivered it downstream. If events do not arrive, first verify that the shipper is reading the same runtime log path Beacon writes and that it follows rotated files without re-uploading older archives.++## Related++<Columns cols={2}>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Compare SIEM, log aggregation, object storage, and local forwarding paths.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Local JSONL" icon="file-lines" href="/log-forwarding/local-jsonl">+ Review the default local runtime log and dashboard source.+ </Card>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts#customer-managed-forwarding">+ Review customer-managed forwarding terminology.+ </Card>+</Columns>diff --git a/docs/log-forwarding/datadog.mdx b/docs/log-forwarding/datadog.mdxnew file mode 100644index 00000000..a39e3d79--- /dev/null+++ b/docs/log-forwarding/datadog.mdx@@ -0,0 +1,222 @@+---+title: "Datadog"+description: "Forward Beacon endpoint events into Datadog Logs with Datadog Agent custom log collection."+---++## Forwarding Overview++Beacon streams endpoint events to Datadog by writing local JSONL and letting the Datadog Agent tail that file. Beacon does not store Datadog API keys or site configuration.++Use this guide for a first-time macOS setup with Datadog Logs. You can complete the setup entirely from the command line; the Datadog UI steps below are optional and are included to show where the same values appear in the Datadog onboarding flow.++## What You Need++- Beacon CLI installed.+- Datadog Agent installed and connected to your Datadog organization.+- Permission to edit `/opt/datadog-agent/etc/datadog.yaml` and restart the Datadog Agent.++## Choose User Or System Mode++| Setup | Beacon commands | Runtime log |+|-------|-----------------|-------------|+| Local user testing | `beacon endpoint ...` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| MDM or managed endpoint | `sudo /opt/beacon/bin/beacon endpoint ... --system` | `/var/log/beacon-agent/runtime.jsonl` |++For production or MDM deployment, prefer **system mode**. It avoids per-user home-directory permissions because the Datadog Agent can tail `/var/log/beacon-agent/runtime.jsonl`.++## 1. Install Beacon And Confirm Logs++For local testing:++```bash title="Set up local testing"+brew tap asymptote-labs/tap+brew install beacon++beacon endpoint install+beacon endpoint status+ls -l ~/.beacon/endpoint/logs/runtime.jsonl+```++For system mode:++```bash title="Use system mode"+sudo /opt/beacon/bin/beacon endpoint install --system+sudo /opt/beacon/bin/beacon endpoint status --system+sudo ls -l /var/log/beacon-agent/runtime.jsonl+```++<Frame caption="Confirm Beacon is writing a runtime JSONL log.">+ <img src="/images/datadog-runtime-log-file-check.png" alt="Terminal showing the Beacon runtime JSONL log exists at the user-mode path." />+</Frame>++## 2. Enable Datadog Log Collection++Open the Datadog Agent config:++```bash title="Open the Datadog Agent config"+sudo nano /opt/datadog-agent/etc/datadog.yaml+```++Set:++```yaml+logs_enabled: true+```++You do not need to configure Datadog's OpenTelemetry Agent for this setup. Beacon v0 uses Datadog Agent custom file log collection on macOS.++<Frame caption="Enable log collection in datadog.yaml.">+ <img src="/images/datadog-yaml.png" alt="Datadog Agent datadog.yaml showing logs_enabled set to true." />+</Frame>++## 3. Optional: Review Custom File Logs In Datadog++This step is optional. Beacon generates the Datadog Agent config in the next step, so you do not need to copy anything manually from the Datadog UI.++If you want to see where the values come from in Datadog, open **Logs** > **Add a Log Source**.++<Frame caption="Open Logs > Add a Log Source in Datadog.">+ <img src="/images/datadog-log-source-navigation.png" alt="Datadog navigation showing Logs and Add a Log Source selected." />+</Frame>++Choose **Server** > **Custom Files**.++Fill the form with:++| Field | Local user testing | System / MDM |+|-------|--------------------|--------------|+| Path | `/Users/<user>/.beacon/endpoint/logs/runtime.jsonl` | `/var/log/beacon-agent/runtime.jsonl` |+| Service | `beacon-endpoint-agent` | `beacon-endpoint-agent` |+| Source | `beacon` | `beacon` |++Leave multiline parsing blank. Beacon writes one JSON event per line.++<Frame caption="Configure Datadog's Custom Files source for Beacon.">+ <img src="/images/datadog-configure-custom-log-source.png" alt="Datadog Custom Files setup page filled with Beacon runtime log path, service beacon-endpoint-agent, and source beacon." />+</Frame>++## 4. Generate And Install The Beacon Config++Generate Beacon's Datadog content pack:++```bash title="Generate Beacon's Datadog content pack"+beacon endpoint datadog install-pack --output ./beacon-datadog-pack+```++For system mode:++```bash title="Use system mode"+sudo /opt/beacon/bin/beacon endpoint datadog install-pack --system --output ./beacon-datadog-pack+```++<Frame caption="Generate the Beacon Datadog content pack.">+ <img src="/images/datadog-install-pack.png" alt="Terminal showing beacon endpoint datadog install-pack writing the beacon-datadog-pack directory." />+</Frame>++Install the generated Datadog Agent config and restart the Agent:++```bash title="Install the generated Datadog Agent config and restart the Agent"+sudo mkdir -p /opt/datadog-agent/etc/conf.d/beacon.d+sudo cp ./beacon-datadog-pack/conf.yaml /opt/datadog-agent/etc/conf.d/beacon.d/conf.yaml+sudo chmod 0644 /opt/datadog-agent/etc/conf.d/beacon.d/conf.yaml+sudo launchctl kickstart -k system/com.datadoghq.agent+```++## 5. Validate End To End++Write a test event:++```bash title="Write a test event"+beacon endpoint datadog validate+```++For system mode:++```bash title="Use system mode"+sudo /opt/beacon/bin/beacon endpoint datadog validate --system+```++<Frame caption="Write a Beacon Datadog validation event.">+ <img src="/images/datadog-validate-command.png" alt="Terminal showing beacon endpoint datadog validate writing a validation event and printing the Datadog query." />+</Frame>++Check Datadog Agent status:++```bash title="Check Datadog Agent status"+sudo datadog-agent status+```++Look for:++- `beacon`+- `Status: OK`+- `Service: beacon-endpoint-agent`+- `Source: beacon`+- `LogsProcessed` and `LogsSent` greater than zero++<Frame caption="Datadog Agent status should show the Beacon log source as OK.">+ <img src="/images/datadog-agent-status.png" alt="Datadog Agent status showing Logs Agent and beacon integration with Status OK, service beacon-endpoint-agent, source beacon, and logs sent." />+</Frame>++## 6. Search In Datadog++In Datadog Log Explorer, search for:++```text+service:beacon-endpoint-agent+```++To find the validation event:++```text+service:beacon-endpoint-agent "Beacon endpoint datadog validation event"+```++<Frame caption="Search for the Beacon validation event in Datadog Log Explorer.">+ <img src="/images/datadog-validation-test.png" alt="Datadog Log Explorer showing a query for service beacon-endpoint-agent and the Beacon Datadog validation event." />+</Frame>++When everything is wired up, Beacon events appear under `service:beacon-endpoint-agent`. Expanding a log shows the normalized Beacon fields such as `event.action`, `harness.name`, `prompt.text`, `content.retention`, `repository`, and `session`.++<Frame caption="Beacon events in Datadog include the normalized JSON fields for investigation.">+ <img src="/images/datadog-full-results.png" alt="Datadog Log Explorer showing Beacon endpoint logs with the expanded Fields and Attributes panel, including event, harness, prompt, content, repository, and session fields." />+</Frame>++## Troubleshooting++If Datadog status shows `permission denied`, the Agent cannot read the runtime log. The Datadog Agent usually runs as `_dd-agent`.++For local user testing, either grant `_dd-agent` access to the user-mode log path or use system mode instead. For MDM deployment, use system mode so the Agent tails `/var/log/beacon-agent/runtime.jsonl`.++If Log Explorer is empty:++- Confirm `logs_enabled: true`.+- Confirm `/opt/datadog-agent/etc/conf.d/beacon.d/conf.yaml` exists.+- Restart the Agent.+- Run `beacon endpoint datadog validate` again.+- Check `sudo datadog-agent status`.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and tailed by Datadog Agent. Review log access, indexes, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## OpenTelemetry Note++Datadog's DDOT Collector is a good fit for OTel-first Linux or Kubernetes deployments, but Beacon's macOS endpoint v0 uses native Datadog Agent file log collection because it is the supported host path for tailing local JSONL files.++## Related++<Columns cols={2}>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Elastic, Datadog, and other SIEMs.+ </Card>+ <Card title="Command reference" icon="terminal" href="/cli">+ Review Datadog command syntax and related endpoint commands.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported runtimes, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/elastic.mdx b/docs/log-forwarding/elastic.mdxnew file mode 100644index 00000000..cc368bb0--- /dev/null+++ b/docs/log-forwarding/elastic.mdx@@ -0,0 +1,196 @@+---+title: "Elastic"+description: "Forward Beacon endpoint events into Elasticsearch and Kibana with Filebeat or standalone Elastic Agent."+---++## Forwarding Overview++Beacon `v0.0.11` added an Elastic content pack for teams that want to search Beacon endpoint events in Elasticsearch and Kibana. Current Beacon releases write one local source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log), and keep that handoff path bounded with local rotation. Filebeat or standalone Elastic Agent reads that file and owns the Elastic hosts, API keys, usernames, and passwords.++Use this path when you want Beacon events in Elastic Cloud, a self-managed Elastic deployment, or a local Kibana validation stack without giving Beacon itself cluster credentials.++## How forwarding works++Beacon writes endpoint telemetry to one local JSONL file. Filebeat or standalone Elastic Agent tails that file, parses each line as JSON, and forwards the events to Elasticsearch. The generated Elastic assets install the index lifecycle policy, templates, ingest pipeline, and starter Kibana objects used to normalize Beacon events into ECS-adjacent fields and searchable `beacon.*` fields.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized JSONL events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"filestream with ndjson parser"| elasticShipper["Filebeat or Elastic Agent"]+ elasticShipper -->|"ES_HOSTS and auth from shipper config"| elasticsearch["Elasticsearch logs-beacon.endpoint-*"]+ elasticsearch -->|"beacon-endpoint ingest pipeline"| kibana["Kibana Beacon Endpoint Events"]+ endpointMgmt["MDM or secret tooling"] -->|"ES_HOSTS, API key, TLS settings"| elasticShipper+```++Beacon never stores Elastic cluster URLs, API keys, usernames, passwords, or TLS settings. Keep those values in Filebeat, Elastic Agent, or your endpoint-management secret store.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so every managed endpoint writes to `/var/log/beacon-agent/runtime.jsonl`.++## Local Elastic stack++For a local macOS trial, install Beacon, configure endpoint telemetry, and start the bundled loopback-only stack:++```bash title="Start the local Elastic validation stack"+brew tap asymptote-labs/tap+brew install beacon++beacon endpoint install+beacon endpoint elastic install-pack --output ./beacon-elastic-pack+beacon endpoint elastic up --pack-dir ./beacon-elastic-pack+```++The stack starts Elasticsearch, Kibana, and Filebeat with Docker Desktop. Elasticsearch and Kibana bind to loopback:++| Service | URL |+|---------|-----|+| Elasticsearch | `http://localhost:9200` |+| Kibana | `http://localhost:5601` |++`install-pack` writes the Filebeat config, Elasticsearch assets, Kibana starter assets, sample event, and Docker Compose file. `elastic up` then uses that pack directory to start the local stack.++<Frame caption="Start the local Elastic validation stack and wait for Elasticsearch, Kibana, setup, and Filebeat to become healthy.">+ <img src="/images/elastic_up_command.png" alt="Terminal showing beacon endpoint elastic up starting the local Elastic validation stack with Elasticsearch and Kibana healthy, setup exited, and Filebeat running." />+</Frame>++Open Kibana, select the `Beacon Endpoint Events` data view, and use Discover to verify events. If ports are already in use, set `BEACON_ELASTIC_ES_PORT` or `BEACON_ELASTIC_KIBANA_PORT` before running `elastic up`.++<Frame caption="Search Beacon endpoint events in Kibana Discover with the generated Beacon Endpoint Events data view.">+ <img src="/images/elastic_beacon_endpoint_events.png" alt="Kibana Discover showing the Beacon Endpoint Events data view filtered to Cursor events with Beacon fields such as user.name, event.action, message, beacon.tool.name, process.command_line, file.path, and beacon.harness.name." />+</Frame>++Stop the local stack with:++```bash title="Stop the local stack with"+beacon endpoint elastic down --pack-dir ./beacon-elastic-pack+```++<Note>+ `beacon endpoint elastic up` and `beacon endpoint elastic down` are local validation helpers for macOS with Docker Desktop. For Linux endpoints or production deployments, use the generated Filebeat or standalone Elastic Agent configuration with your normal service manager.+</Note>++## Elastic Cloud or self-managed Elastic++Generate the content pack on the endpoint or in your endpoint management workflow:++```bash title="Generate the content pack on the endpoint or in your endpoint management workflow"+beacon endpoint install --system+beacon endpoint elastic install-pack --system --output ./beacon-elastic-pack+```++The pack includes:++- `filebeat.yml` for Filebeat filestream input over Beacon JSONL+- `elastic-agent-standalone.yml` for standalone Elastic Agent+- Elasticsearch ILM, component template, index template, and ingest pipeline JSON+- Starter Kibana saved objects+- A sample Beacon event for ingest pipeline simulation+- A Docker Compose file for local validation++Install the Elasticsearch assets before shipping events:++```bash title="Install the Elasticsearch assets before shipping events"+cd beacon-elastic-pack++curl -X PUT "$ES_HOSTS/_ilm/policy/beacon-endpoint" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @ilm-policy.json++curl -X PUT "$ES_HOSTS/_component_template/beacon-endpoint-mappings" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @component-template-mappings.json++curl -X PUT "$ES_HOSTS/_component_template/beacon-endpoint-settings" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @component-template-settings.json++curl -X PUT "$ES_HOSTS/_index_template/beacon-endpoint" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @index-template.json++curl -X PUT "$ES_HOSTS/_ingest/pipeline/beacon-endpoint" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @ingest-pipeline.json+```++Import `kibana-assets.ndjson` through Kibana Stack Management or the saved objects import API.++Then run Filebeat with your Elastic endpoint and one authentication method:++```bash title="Run Filebeat with your Elastic endpoint"+export ES_HOSTS="https://example.es.us-east-1.aws.elastic.cloud:443"+export ES_API_KEY="base64-encoded-api-key"+filebeat -e -c ./filebeat.yml+```++For self-managed clusters, `ES_HOSTS` can be an internal Elasticsearch URL such as `https://elasticsearch.example:9200`. If you use username/password auth, uncomment `username` and `password` in the generated config and provide `ES_USERNAME` and `ES_PASSWORD`.++To use standalone Elastic Agent instead of Filebeat, apply the same `ES_HOSTS` and authentication environment variables to `elastic-agent-standalone.yml` and run Elastic Agent in standalone mode.++## Required Elastic privileges++Use the least-privilege API key or role your Elastic administrator approves. Filebeat needs cluster `monitor` plus `auto_configure`, `create_doc`, and `view_index_metadata` on `logs-beacon.endpoint-*`.++The setup user or API key also needs permission to install ILM policies, component templates, index templates, ingest pipelines, and Kibana saved objects. You can use a separate higher-privilege setup credential for asset installation and a lower-privilege shipping credential for Filebeat or Elastic Agent.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Simulate the ingest pipeline with the generated sample event:++```bash title="Simulate the ingest pipeline with the generated sample event"+awk '{print "{\"docs\":[{\"_source\":" $0 "}]}"}' sample-event.jsonl | \+ curl -X POST "$ES_HOSTS/_ingest/pipeline/beacon-endpoint/_simulate" \+ -H "Authorization: ApiKey $ES_API_KEY" \+ -H 'Content-Type: application/json' \+ --data-binary @-+```++For an unsecured local development cluster, omit the `Authorization` header.++After Filebeat or Elastic Agent starts, search Kibana Discover with the `Beacon Endpoint Events` data view or query the index pattern. Beacon fields are mapped under `beacon.*` by the ingest pipeline:++```bash title="Search for Beacon events"+curl "$ES_HOSTS/logs-beacon.endpoint-*/_search?q=beacon.product:endpoint-agent" \+ -H "Authorization: ApiKey $ES_API_KEY"++curl "$ES_HOSTS/logs-beacon.endpoint-*/_search?q=beacon.prompt.text:%22Beacon%20E2E%22" \+ -H "Authorization: ApiKey $ES_API_KEY"+```++If events do not appear, verify that the generated `filebeat.yml` or `elastic-agent-standalone.yml` points at the same runtime log path Beacon is writing, that the shipper service can read that file, and that `ES_HOSTS`, `ES_API_KEY`, TLS verification, and any custom CA settings match your Elastic deployment.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint elastic" icon="terminal" href="/cli/elastic">+ Review Elastic command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, and other SIEMs.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/falcon.mdx b/docs/log-forwarding/falcon.mdxnew file mode 100644index 00000000..de228a00--- /dev/null+++ b/docs/log-forwarding/falcon.mdx@@ -0,0 +1,317 @@+---+title: "CrowdStrike Falcon LogScale"+description: "Forward Beacon endpoint telemetry to CrowdStrike Falcon LogScale with HTTP Event Collector."+---++## Forwarding Overview++Beacon supports CrowdStrike Falcon HEC forwarding in two ways:++- **Collector forwarding** sends OTLP events that pass through Beacon's local collector directly to Falcon.+- **Vector runtime-log forwarding** tails Beacon's local `runtime.jsonl` file and forwards hook-written events to Falcon.++Use Vector runtime-log forwarding when Claude Code telemetry is produced by Beacon hooks, or when your organization manages Claude's OTLP settings separately. Beacon still writes every normalized endpoint event to the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log).++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so every managed endpoint writes to `/var/log/beacon-agent/runtime.jsonl` while the collector forwards to Falcon LogScale.++## Falcon LogScale data connection++Use CrowdStrike Falcon LogScale data onboarding to collect Beacon endpoint telemetry from local JSONL logs. Beacon writes one JSON object per line, so create a custom parser before creating the data connection.++### Open data onboarding++In CrowdStrike Falcon, go to **Next-Gen SIEM** > **Log management** > **Data onboarding**.++<img src="/images/crowdstrike_data_onboarding.png" alt="CrowdStrike Falcon navigation showing Next-Gen SIEM data onboarding under Log management." />++### Select the Falcon LogScale Collector++Search for `logscale`, select **Falcon LogScale Collector**, then choose **Configure**.++<img src="/images/crowdstrike_logscale_connector.png" alt="CrowdStrike data connectors page filtered to the Falcon LogScale Collector connector." />++### Create the Beacon parser++In **Parsing and enrichment**, select **Create new parser**. Name the parser `beacon-jsonl`, choose **Blank template**, and create the parser.++<img src="/images/crowdstrike_new_parser.png" alt="CrowdStrike create new parser dialog with parser name beacon-jsonl and blank template selected." />++Paste this parser script:++```text+/*+# Beacon Endpoint Agent JSONL Parser+Parses Beacon endpoint telemetry where each log line is one JSON object.+*/+| Vendor := "beacon"+| Parser.version := "1.0.0"+| ecs.version := "8.17.0"+| Cps.version := "2.0.0"+| event.module := "endpoint-agent"+| observer.type := "endpoint"+| parseJson(prefix="Vendor.", excludeEmpty="true", handleNull="discard")+| Vendor.timestamp := Vendor.timestamp+| parseTimestamp(field="Vendor.timestamp", format="yyyy-MM-dd'T'HH:mm:ss[.SSS]XXX", timezone="UTC")+| event.kind := "event"+| event.action := Vendor.event.action+| event.module := Vendor.product+| event.provider := Vendor.vendor+| event.dataset := "beacon.endpoint-agent"+| event.code := Vendor.schema_version+| array:append(array="event.category[]", values=[Vendor.event.category])+| array:append(array="event.type[]", values=["info"])+| observer.vendor := Vendor.vendor+| observer.product := Vendor.product+| observer.version := Vendor.endpoint.agent_version+| host.hostname := Vendor.endpoint.hostname+| host.os.type := Vendor.endpoint.os+| user.name := Vendor.user.name+| user.id := Vendor.user.uid+| process.command_line := Vendor.command.command+| process.name := Vendor.tool.name+| file.path := Vendor.file.path+| file.hash.sha256 := Vendor.file.diff_hash+| message := Vendor.message+```++Use this sample event as parser test data:++```json+{"timestamp":"2026-05-26T15:48:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"tool_use","category":"process"},"severity":"info","endpoint":{"hostname":"test-mac","os":"darwin","agent_version":"0.0.1"},"user":{"name":"justin","uid":"501"},"harness":{"name":"cursor"},"tool":{"name":"shell","command":"go test ./..."},"message":"Command executed"}+```++Run the parser test and confirm the parsed fields include `event.dataset`, `event.action`, `host.hostname`, `user.name`, `process.name`, and `message`. Events that include `command.command` also populate `process.command_line`. Save the parser when the sample event passes.++<img src="/images/crowdstrike_create_parser.png" alt="CrowdStrike parser editor with the Beacon JSONL parser script and test data results." />++### Create the data connection++Return to the Falcon LogScale Collector connection details. Enter a connection name such as `Beacon Agent Logs`, add a description, select the `beacon-jsonl` parser, enable host enrichment if desired, accept the connector terms, and create the connection.++<img src="/images/crowdstrike_new_connection_details.png" alt="CrowdStrike new connection details page with Beacon Agent Logs and the beacon-jsonl parser selected." />++After creating the connection, open the connection actions menu and select **Generate API key**. Save the generated API key with the connection API URL so your LogScale Collector can authenticate when forwarding Beacon events.++<img src="/images/crowdstrike_generate_api_key.png" alt="CrowdStrike connection details page for Beacon Agent Logs showing the Generate API key action." />++### Run a smoke test++Run this local smoke test, replacing the token value with the API key generated for your data connection:++```bash title="Run the local smoke test"+export FALCON_HEC_TOKEN='PASTE_API_KEY_HERE'+curl -sS -X POST 'https://7231610123af4402acf206f8f29d9fcd.ingest.us-2.crowdstrike.com/services/collector' \+ -H "Authorization: Bearer ${FALCON_HEC_TOKEN}" \+ -H 'Content-Type: application/json' \+ -d '{"event":{"timestamp":"2026-05-26T16:02:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"tool_use","category":"process"},"severity":"info","endpoint":{"hostname":"test-mac","os":"darwin","agent_version":"0.0.1"},"user":{"name":"justin","uid":"501"},"harness":{"name":"cursor"},"tool":{"name":"shell","command":"crowdstrike ingest test"},"message":"Beacon CrowdStrike HEC smoke test"},"source":"beacon-endpoint-agent","sourcetype":"beacon-jsonl"}'+```++A working connection returns a success JSON response. Then search LogScale for the smoke-test message:++```text+"Beacon CrowdStrike HEC smoke test"+```++This is what the smoke-test event looks like in CrowdStrike:++<img src="/images/crowdstrike_event.png" alt="CrowdStrike Advanced event search showing a parsed Beacon endpoint smoke test event with normalized fields." />++## Choose a forwarding path++| Path | Use when | Notes |+|------|----------|-------|+| Collector forwarding | Claude, Codex, or another runtime sends OTLP to Beacon's local collector | Configure Falcon HEC on `beacon endpoint install` or `repair`. |+| Vector runtime-log forwarding | Claude hook events are written directly to `runtime.jsonl` | Deploy the Beacon macOS package with Vector bundled, then run the Falcon Vector forwarder script. |++## Collector forwarding++Pass Falcon HEC settings during endpoint install:++```bash title="Pass Falcon HEC settings during endpoint install"+sudo /opt/beacon/bin/beacon endpoint install \+ --system \+ --falcon-hec-endpoint https://cloud.<region>.humio.com/api/v1/ingest/hec \+ --falcon-hec-token "$FALCON_HEC_TOKEN" \+ --falcon-index beacon \+ --falcon-source beacon-endpoint-agent+```++To add or update Falcon HEC on an existing endpoint, run repair with the same destination flags:++```bash title="Update Falcon HEC on an existing endpoint"+sudo /opt/beacon/bin/beacon endpoint repair \+ --system \+ --falcon-hec-endpoint https://cloud.<region>.humio.com/api/v1/ingest/hec \+ --falcon-hec-token "$FALCON_HEC_TOKEN" \+ --falcon-index beacon+```++## Settings++| Setting | Recommendation |+|---------|----------------|+| Endpoint | Falcon LogScale HEC ingest endpoint URL |+| Token | Falcon LogScale ingest token from your LogScale administrator |+| Repository | Optional repository for multi-repository tokens, passed with `--falcon-index` |+| Source | Optional source value. Defaults to `beacon-endpoint-agent` |+| Parser or sourcetype | Optional parser or sourcetype value. Defaults to `json` |+| TLS | Use normal certificate validation. Reserve `--falcon-insecure-skip-verify` for private test endpoints |++If your Falcon LogScale endpoint uses a private CA, pass the CA bundle with `--falcon-ca-file /path/to/ca.pem`.++## Collector behavior++When Falcon HEC is configured, Beacon writes a collector pipeline with both exporters enabled:++```text+exporters: [beaconjson, falcon_hec]+```++The `beaconjson` exporter preserves the local runtime log. The `falcon_hec` exporter sends Beacon-normalized OTLP logs, traces, and metrics to Falcon LogScale as newline-delimited HEC events. Each HEC payload wraps the normalized Beacon event object, includes an `@timestamp`, and uses the configured token, source, sourcetype, and repository.++## Vector runtime-log forwarding++Beacon `v0.0.49` adds a managed Vector path for hook-only deployments. This is the recommended path when Claude Code hooks write events to `runtime.jsonl` but the Beacon collector is not the source of those events.++The data flow is:++```text+Claude hooks -> runtime.jsonl -> Vector -> CrowdStrike Falcon HEC+```++### Package requirement++Use the Beacon macOS package that includes Vector. Homebrew updates the `beacon` CLI, but it does not install `/opt/beacon/bin/vector` or the Jamf helper scripts.++The package installs:++```text+/opt/beacon/bin/vector+/opt/beacon/jamf/scripts/install-falcon-vector-forwarder.sh+/opt/beacon/jamf/scripts/repair-falcon-claude-hooks-vector.sh+/opt/beacon/scripts/run-falcon-forwarder.sh+```++### Manual setup without Jamf++To simulate the Jamf setup on one Mac, install the Beacon package, then run the packaged helper manually. Jamf reserves script arguments 1-3, so pass `_ _ _` before the custom parameters:++```bash title="Simulate the Jamf setup on one Mac"+export FALCON_HEC_ENDPOINT="https://<tenant>.ingest.<region>.crowdstrike.com/services/collector"+export FALCON_HEC_TOKEN="PASTE_TOKEN_HERE"++sudo /opt/beacon/jamf/scripts/repair-falcon-claude-hooks-vector.sh \+ _ _ _ \+ "$FALCON_HEC_ENDPOINT" \+ "$FALCON_HEC_TOKEN" \+ "beacon-endpoint-agent" \+ "json"+```++The script:++- prepares `/var/log/beacon-agent/runtime.jsonl`,+- installs Claude Code hooks for the logged-in console user,+- creates `/Library/Application Support/Beacon/Forwarders/falcon-vector.toml`,+- stores the token in `/Library/Application Support/Beacon/Forwarders/falcon-vector.env`,+- starts `com.beacon.endpoint.falcon-forwarder`.++### Jamf parameters++Use `repair-falcon-claude-hooks-vector.sh` when one policy should repair Beacon, install Claude hooks, and start the Vector forwarder.++| Parameter | Value |+|-----------|-------|+| 4 | Falcon HEC endpoint |+| 5 | Falcon HEC token |+| 6 | Source, default `beacon-endpoint-agent` |+| 7 | Sourcetype/parser, default `json` |+| 8 | OTLP gRPC port, default `4317` |+| 9 | OTLP HTTP port, default `4318` |+| 10 | Optional repository/index |++For a forwarder-only policy, use `install-falcon-vector-forwarder.sh` with the same endpoint and token.++### Validate hook-only forwarding++Confirm Vector is running:++```bash title="Confirm Vector is running"+sudo launchctl print system/com.beacon.endpoint.falcon-forwarder+tail -n 50 /tmp/com.beacon.endpoint.falcon-forwarder.err+```++Generate a unique Claude prompt and confirm it appears locally:++```bash title="Generate a unique Claude prompt and confirm it appears locally"+MARKER="beacon falcon hook test $(date +%s)"+claude -p "$MARKER"+sudo grep "$MARKER" /var/log/beacon-agent/runtime.jsonl+```++Search Falcon for the same marker:++```text+source = "beacon-endpoint-agent" "beacon falcon hook test"+```++## Validate forwarding++Confirm Beacon has the destination configured:++```bash title="Confirm Beacon has the destination configured"+sudo /opt/beacon/bin/beacon endpoint status --system --json+```++In the JSON output, check that `destinations.falcon_hec.configured` is `true` and that the endpoint, repository, source, and sourcetype match your deployment. The token is not printed.++Then write a validation event:++```bash title="Write a validation event"+sudo /opt/beacon/bin/beacon endpoint falcon validate --system+```++Search Falcon LogScale for the validation event and normalized Beacon fields:++```text+source = "beacon-endpoint-agent" "Beacon endpoint Falcon validation event"+```++```text+vendor = "beacon" product = "endpoint-agent"+```++If events do not appear, verify that the collector service is running, the Falcon HEC endpoint accepts the configured token, the repository name matches the token scope, and TLS settings match your LogScale deployment.++```bash title="Check endpoint status as JSON"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo launchctl print system/com.beacon.endpoint.collector+```++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written locally or forwarded through Falcon HEC. Review repository access, parser behavior, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Configure Falcon HEC forwarding during endpoint install.+ </Card>+ <Card title="Endpoint repair" icon="wrench" href="/cli/endpoint-repair">+ Add or update Falcon HEC forwarding on an existing endpoint.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/log-forwarding/gcs.mdx b/docs/log-forwarding/gcs.mdxnew file mode 100644index 00000000..e889fb2c--- /dev/null+++ b/docs/log-forwarding/gcs.mdx@@ -0,0 +1,191 @@+---+title: "Google Cloud Storage"+description: "Forward Beacon endpoint events into Google Cloud Storage with customer-managed Vector forwarding."+---++## Forwarding Overview++Beacon `v0.0.38` added Google Cloud Storage support for teams that want Beacon endpoint events stored in a GCS bucket for data lake, SIEM, archive, or downstream detection workflows. Beacon remains the local JSONL producer and writes one source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Your customer-managed Vector agent tails that file and uploads gzip-compressed NDJSON objects to GCS.++Use this path when you want Beacon events forwarded to Google Cloud Storage without storing Google Cloud credentials, service accounts, workload identity settings, bucket IAM, lifecycle, retention, or encryption settings in Beacon endpoint configuration.++<Info>+ This page covers **local endpoint** GCS forwarding. For provider-managed cloud+ agent sandboxes, see [Claude Code Cloud Agents](/runtimes/claude-code-cloud-agents) or+ [Cursor Cloud Agents](/runtimes/cursor-cloud-agents). Cloud agents currently support GCS+ as the only self-serve artifact destination, with AWS S3 and SIEM destinations+ planned.+</Info>++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so Vector can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Prerequisites++- Beacon endpoint installed and writing local JSONL.+- A Google Cloud Storage bucket for Beacon runtime logs.+- Vector installed or deployable through your endpoint-management tooling.+- A service account or workload identity available through Application Default Credentials for the process running Vector, `gcloud`, or `gsutil`.++Recommended object layout:++```text+gs://example-security-logs/beacon/runtime/date=YYYY-MM-DD/<timestamp>-<uuid>.jsonl.gz+```++For a dedicated Beacon bucket, `roles/storage.objectCreator` is usually enough for production uploads because it can create objects without listing or reading them. Add viewer, retention, CMEK, or bucket-specific conditional IAM only if your Google Cloud controls require them. Configure bucket lifecycle, retention, versioning, audit logs, and encryption in Google Cloud.++## Install the GCS pack++Generate the Google Cloud Storage content pack for a managed system-mode deployment:++```bash title="Generate the Google Cloud Storage content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint gcs install-pack \+ --system \+ --output ./beacon-gcs-pack+```++The pack includes:++- `README.md` with setup and validation steps+- `gcs-upload-smoke-test.sh` for one-shot GCS validation uploads+- `vector.toml` for customer-managed Vector forwarding+- `sample-event.jsonl` with Beacon endpoint sample events++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated `gcs-upload-smoke-test.sh` and `vector.toml` use the selected path.++## One-shot smoke test++Use the generated smoke-test script to upload the current runtime log once. This is only for validation because it re-uploads the whole file every time.++```bash title="Command example"+export BEACON_GCS_BUCKET="example-security-logs"+export BEACON_GCS_PREFIX="beacon/runtime"+./beacon-gcs-pack/gcs-upload-smoke-test.sh+```++The script uses `gcloud storage cp` when available and falls back to `gsutil cp`. Both rely on Application Default Credentials, workload identity, active `gcloud` configuration, or your managed endpoint secret tooling. Beacon does not store Google Cloud credentials.++Confirm the uploaded object:++```bash title="Confirm the uploaded object"+gcloud storage ls "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/smoke-tests/"+gcloud storage cat "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/smoke-tests/<object>.jsonl" | grep "Beacon endpoint GCS validation event"+```++## Production forwarding++For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tails `runtime.jsonl`, checkpoints file offsets in its `data_dir`, batches Beacon events, and writes gzip-compressed newline-delimited JSON objects into Google Cloud Storage.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"file source tails active path"| vectorAgent["Vector host agent"]+ vectorAgent -->|"parse_json, gzip NDJSON"| gcsBucket["Google Cloud Storage bucket"]+ gcsBucket -->|"partitioned objects"| downstreamSiem["SIEM, lake, or archive workflow"]+ endpointMgmt["MDM or secret tooling"] -->|"bucket, prefix, Google credentials"| vectorAgent+```++Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl"+sudo mkdir -p /etc/vector+sudo cp ./beacon-gcs-pack/vector.toml /etc/vector/beacon-gcs.toml+export BEACON_GCS_BUCKET="example-security-logs"+export BEACON_GCS_PREFIX="beacon/runtime"+vector validate /etc/vector/beacon-gcs.toml+vector --config /etc/vector/beacon-gcs.toml+```++In managed deployments, provide `BEACON_GCS_BUCKET`, optional `BEACON_GCS_PREFIX`, optional `BEACON_GCS_STORAGE_CLASS`, and any Google Application Default Credentials or workload identity settings through the Vector service environment, host identity, MDM, or secret tooling. Do not store Google Cloud destination secrets in Beacon endpoint configuration.++## Cloud agent GCS upload++Claude Code Cloud Agents and Cursor Cloud Agents run in provider-managed cloud+sandboxes rather than on a local endpoint where Vector can tail+`/var/log/beacon-agent/runtime.jsonl`. Beacon's cloud-agent path therefore+writes an ephemeral sandbox log at `/tmp/beacon/runtime.jsonl` and uploads one+readable `runtime.jsonl` object to GCS per cloud session.++The current self-serve method uses `beacon cloud gcs setup` to create a+dedicated GCS uploader service account and passes that scoped credential to the+cloud agent environment. This is intended for proof-of-concept testing and+prototyping. Treat cloud environment variables as sensitive because they may be+visible to users of that environment. Avoid using broad credentials there.++For production enterprise deployments, [Asymptote Managed](/deployment/managed)+handles secure cloud-agent telemetry ingest and retention. If you prefer a+production-grade forwarding path in your own customer-managed, self-hosted+infrastructure, contact Asymptote and we can work with your team.++The template expects a Vector version with the `file` source, `remap` transform, and `gcp_cloud_storage` sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON with newline-delimited framing so GCS receives one Beacon event per line, without a Vector wrapper.++The template uses date-partitioned `key_prefix`, `filename_time_format = "%s"`, and `filename_append_uuid = true` so production forwarding does not overwrite previous GCS objects. It also sets `compression = "gzip"`, `content_encoding = "gzip"`, and `content_type = "application/x-ndjson"`.++If you adapt the config or use another forwarder, it should:++- Checkpoint file offsets.+- Follow Beacon's local file rotation at the active `runtime.jsonl` path.+- Keep each Beacon event as one JSON object per line.+- Batch newline-delimited JSON records.+- Use non-overwriting object keys.+- Retry transient failures without duplicating the whole file.+- Keep Google Cloud credentials, service-account bindings, workload identity, bucket IAM, lifecycle, retention, and encryption outside Beacon endpoint configuration.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write a GCS validation event:++```bash title="Write a GCS validation event"+sudo /opt/beacon/bin/beacon endpoint gcs validate --system+```++Run the one-shot smoke test or wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with Google Cloud tooling:++```bash title="Run the one-shot smoke test or wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with Google Cloud tooling"+gcloud storage ls "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/**"+gcloud storage cat "gs://${BEACON_GCS_BUCKET}/${BEACON_GCS_PREFIX}/date=<date>/<object>.jsonl.gz" | gzip -dc | grep "Beacon endpoint GCS validation event"+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=gcs destination.mode=google_cloud_storage_jsonl+```++If events do not appear, verify that Vector is reading the same runtime log path Beacon writes, that Application Default Credentials or workload identity are available to the Vector process, that the bucket and prefix match your environment variables, and that IAM allows object creation for the selected bucket or prefix.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to GCS. Review bucket access, lifecycle, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint gcs" icon="terminal" href="/cli/gcs">+ Review Google Cloud Storage command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS S3, Google Cloud Storage, and customer-managed pipelines.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/index.mdx b/docs/log-forwarding/index.mdxnew file mode 100644index 00000000..11fff1cf--- /dev/null+++ b/docs/log-forwarding/index.mdx@@ -0,0 +1,313 @@+---+title: "Log Forwarding"+description: "Forward Beacon endpoint events from local JSONL into SIEMs, log aggregators, object storage, or local review workflows."+---++## Forwarding Overview++Beacon writes normalized [endpoint events](/concepts/core-concepts#endpoint-event) as JSONL. The active [runtime log](/concepts/core-concepts#runtime-jsonl-log) is the handoff point for local review, customer-managed log pipelines, log aggregators, object storage exporters, and most SIEM content packs. Beacon can also enable optional collector exporters for [Splunk HTTP Event Collector (HEC)](/concepts/core-concepts#splunk-hec) and [CrowdStrike Falcon LogScale HEC](/concepts/core-concepts#falcon-logscale-hec) during endpoint install or repair.++Use the subpages below by destination category. SIEM pages are for destinations that become investigation or detection systems. Log aggregation pages are for customer-owned pipelines and observability stores that tail local JSONL. Object storage pages are for archival or data lake export. Local pages cover the default runtime log and dashboard source.++For ephemeral CI jobs, see [CI Telemetry Exports](/log-forwarding/ci-telemetry-exports) for workflow artifacts, S3/GCS upload, and downstream handoff patterns over the completed CI `runtime.jsonl` file.++For provider-managed cloud agents, see+[Claude Code Cloud Agents](/runtimes/claude-code-cloud-agents) or+[Cursor Cloud Agents](/runtimes/cursor-cloud-agents). Cloud agents currently support+Google Cloud Storage as the self-serve artifact destination; AWS S3 and SIEM+destinations are planned.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so endpoint events land in the shared system log path.++## Destination categories++### Security Information and Event Management (SIEM)++Use these paths when the destination is the security investigation or detection system.++<Columns cols={2}>+ <Card title="Falcon LogScale" icon="magnifying-glass-chart" href="/log-forwarding/falcon">+ Optional endpoint forwarding with LogScale ingest tokens, or Vector runtime-log forwarding for hook-only deployments.+ </Card>+ <Card title="Microsoft Sentinel" icon="chart-line" href="/log-forwarding/microsoft-sentinel">+ Azure Monitor Agent and Data Collection Rule content pack over local JSONL.+ </Card>+ <Card title="Rapid7 InsightIDR" icon="chart-line" href="/log-forwarding/rapid7">+ Custom Logs webhook content pack over local JSONL.+ </Card>+ <Card title="Splunk HEC" icon="magnifying-glass-chart" href="/log-forwarding/splunk">+ Optional endpoint forwarding during install or repair.+ </Card>+ <Card title="Sumo Logic" icon="chart-line" href="/log-forwarding/sumo">+ HTTP Logs & Metrics Source content pack over local JSONL.+ </Card>+ <Card title="Wazuh" icon="shield" href="/log-forwarding/wazuh">+ Localfile configuration and Beacon Wazuh content pack.+ </Card>+</Columns>++### Log Aggregation++Use these paths when Beacon JSONL feeds an observability store or customer-managed forwarding pipeline.++<Columns cols={2}>+ <Card title="AWS CloudWatch Logs" icon="chart-line" href="/log-forwarding/cloudwatch">+ Vector content pack over local JSONL using customer-managed AWS credentials.+ </Card>+ <Card title="Customer-managed log pipelines" icon="route" href="/log-forwarding/customer-managed">+ Forward from local Beacon JSONL under customer control.+ </Card>+ <Card title="Datadog" icon="chart-line" href="/log-forwarding/datadog">+ Datadog Agent custom log collection over local JSONL.+ </Card>+ <Card title="Elastic" icon="magnifying-glass" href="/log-forwarding/elastic">+ Filebeat or Elastic Agent content pack over local JSONL.+ </Card>+</Columns>++### Object Storage++Use these paths when Beacon JSONL should land in a customer-managed bucket for archive, lake, or downstream detection workflows.++<Columns cols={2}>+ <Card title="AWS S3" icon="box-archive" href="/log-forwarding/s3">+ Vector content pack over local JSONL using customer-managed AWS credentials.+ </Card>+ <Card title="Google Cloud Storage" icon="box-archive" href="/log-forwarding/gcs">+ Vector content pack over local JSONL using customer-managed Google credentials.+ </Card>+</Columns>++### Local++Use this path when Beacon's local file and dashboard are the destination.++<Columns cols={2}>+ <Card title="Local JSONL" icon="file-lines" href="/log-forwarding/local-jsonl">+ Default endpoint log and local dashboard source.+ </Card>+ <Card title="CI Telemetry Exports" icon="file-export" href="/log-forwarding/ci-telemetry-exports">+ Export ephemeral CI runtime JSONL through artifacts, object storage, or downstream pipelines.+ </Card>+</Columns>++## Quick examples++### Wazuh localfile++Use Beacon's Wazuh commands to generate localfile configuration, rules, sample content, and validation events.++```bash title="Print the configuration"+beacon endpoint wazuh print-config --system+beacon endpoint wazuh install-pack --system --output ./beacon-wazuh+beacon endpoint wazuh validate --system+```++`print-config` emits the localfile snippet for an existing Wazuh agent configuration. `install-pack` writes a file-based bundle with rules and config snippets. `validate` writes a known-good Beacon event to the runtime log so you can confirm ingestion.++### Splunk HEC++For Splunk HEC, configure Beacon's optional collector exporter or your existing forwarder.++```bash title="Install Beacon endpoint"+beacon endpoint install \+ --splunk-hec-endpoint https://splunk.example:8088/services/collector \+ --splunk-hec-token "$SPLUNK_HEC_TOKEN" \+ --splunk-index beacon+```++### CrowdStrike Falcon LogScale++For Falcon LogScale HEC, configure Beacon's optional collector exporter during endpoint install or repair.++```bash title="Install Beacon endpoint"+beacon endpoint install \+ --falcon-hec-endpoint https://cloud.<region>.humio.com/api/v1/ingest/hec \+ --falcon-hec-token "$FALCON_HEC_TOKEN" \+ --falcon-index beacon+```++Beacon preserves the local `runtime.jsonl` file while adding the `falcon_hec` collector exporter. For hook-only Claude deployments, use the Falcon Vector forwarder to tail `runtime.jsonl` instead. See [Falcon LogScale forwarding](/log-forwarding/falcon) for endpoint, repository, source, parser, TLS, and validation guidance.++### Elastic++For Elastic Cloud, self-managed Elastic, or local Kibana validation, generate Beacon's Elastic content pack and use Filebeat or standalone Elastic Agent to tail the runtime log.++```bash title="Generate the integration pack"+beacon endpoint elastic install-pack --system --output ./beacon-elastic-pack+```++For local macOS testing with Docker Desktop, Beacon can start a loopback-only Elasticsearch, Kibana, and Filebeat stack:++```bash title="Start the local Elastic validation stack"+beacon endpoint elastic install-pack --system --output ./beacon-elastic-pack+beacon endpoint elastic up --system --pack-dir ./beacon-elastic-pack+```++See [Elastic forwarding](/log-forwarding/elastic) for local and hosted setup steps.++### Datadog++For Datadog Logs, generate Beacon's Datadog content pack and install the custom log collection config into the Datadog Agent.++```bash title="Generate the integration pack"+beacon endpoint datadog install-pack --system --output ./beacon-datadog-pack+```++The generated config tails `/var/log/beacon-agent/runtime.jsonl`, sets `service:beacon-endpoint-agent`, and tags events with `vendor:beacon` and `product:endpoint-agent`.++See [Datadog forwarding](/log-forwarding/datadog) for install, permission, retention, and validation steps.++### Sumo Logic++For Sumo Logic, generate Beacon's Sumo content pack and configure a customer-managed shipper to send Beacon JSONL to a Hosted Collector HTTP Logs & Metrics Source.++```bash title="Generate the integration pack"+beacon endpoint sumo install-pack --system --output ./beacon-sumo-pack+```++The generated pack includes setup guidance, a one-shot upload smoke-test script, `vector.toml`, and sample events. Use the smoke test only for validation; production forwarding should tail `runtime.jsonl`, checkpoint offsets, and preserve each JSON line as one event.++See [Sumo Logic forwarding](/log-forwarding/sumo) for Hosted Collector setup, source URL options, smoke testing, production forwarding, and validation queries.++### Rapid7 InsightIDR++For Rapid7 InsightIDR, generate Beacon's Rapid7 content pack and configure a customer-managed shipper to send Beacon JSONL to a Custom Logs webhook event source.++```bash title="Generate the integration pack"+beacon endpoint rapid7 install-pack --system --output ./beacon-rapid7-pack+```++The generated pack includes setup guidance, a one-shot NDJSON upload smoke-test script, `vector.toml`, and sample events. Use the smoke test only for validation; production forwarding should tail `runtime.jsonl`, checkpoint offsets, preserve each JSON line as one event, and keep the Rapid7 webhook URL outside Beacon endpoint configuration.++See [Rapid7 forwarding](/log-forwarding/rapid7) for Custom Logs setup, webhook handling, smoke testing, production forwarding, and validation queries.++### Microsoft Sentinel++For Microsoft Sentinel, generate Beacon's Sentinel content pack and configure Azure Monitor Agent custom log collection to tail Beacon JSONL into the `BeaconRuntime_CL` table.++```bash title="Generate the integration pack"+beacon endpoint sentinel install-pack --system --output ./beacon-sentinel-pack+```++The generated pack includes setup guidance, `table-schema.json`, `dcr-template.json`, `dcr-transform.kql`, starter hunting queries, example detection logic, and sample events. Azure tenant IDs, client secrets, workspace IDs, DCR identifiers, and ingestion endpoints stay in Azure Monitor, endpoint-management tooling, or customer-managed forwarders rather than Beacon endpoint configuration.++See [Microsoft Sentinel forwarding](/log-forwarding/microsoft-sentinel) for Azure Monitor Agent setup, DCR configuration, validation queries, and content handling guidance.++### AWS CloudWatch Logs++For AWS CloudWatch Logs, generate Beacon's CloudWatch content pack and configure a customer-managed Vector host agent to write parsed Beacon JSON events into a log group.++```bash title="Generate the integration pack"+beacon endpoint cloudwatch install-pack --system --output ./beacon-cloudwatch-pack+```++The generated pack includes setup guidance, a Vector `aws_cloudwatch_logs` sink template, and sample events. AWS credentials, IAM roles, log group retention, stream naming, and encryption stay in AWS, Vector, endpoint-management tooling, or your secret store rather than Beacon endpoint configuration.++See [AWS CloudWatch Logs forwarding](/log-forwarding/cloudwatch) for IAM, Vector setup, CloudWatch Logs queries, and validation steps.++### AWS S3++For AWS S3, generate Beacon's S3 content pack and configure a customer-managed Vector host agent to write gzip-compressed NDJSON objects into a bucket.++```bash title="Generate the integration pack"+beacon endpoint s3 install-pack --system --output ./beacon-s3-pack+```++The generated pack includes setup guidance, a Vector `aws_s3` sink template, a one-shot AWS CLI smoke-test script, and sample events. AWS credentials, bucket policy, lifecycle, retention, encryption, and object ownership stay in AWS, Vector, endpoint-management tooling, or your secret store rather than Beacon endpoint configuration.++See [AWS S3 forwarding](/log-forwarding/s3) for IAM, object layout, Vector setup, smoke testing, and validation steps.++### Google Cloud Storage++For Google Cloud Storage, generate Beacon's GCS content pack and configure a customer-managed Vector host agent to write gzip-compressed NDJSON objects into a bucket.++```bash title="Generate the integration pack"+beacon endpoint gcs install-pack --system --output ./beacon-gcs-pack+```++The generated pack includes setup guidance, a Vector `gcp_cloud_storage` sink template, a one-shot `gcloud storage` or `gsutil` smoke-test script, and sample events. Google Cloud credentials, service accounts, workload identity, bucket IAM, lifecycle, retention, and encryption stay in Google Cloud, Vector, endpoint-management tooling, or your secret store rather than Beacon endpoint configuration.++See [Google Cloud Storage forwarding](/log-forwarding/gcs) for IAM, object layout, Vector setup, smoke testing, and validation steps.++### Vector log forwarding++Beacon `v0.0.26` added generated Vector configs to the Sumo Logic and Rapid7 content packs, Beacon `v0.0.37` added a Vector AWS S3 content pack, Beacon `v0.0.38` added a Vector Google Cloud Storage content pack, Beacon `v0.0.42` added a Vector AWS CloudWatch Logs content pack, and Beacon `v0.0.49` added a CrowdStrike Falcon Vector path. Use these templates when you want a customer-managed host agent to tail Beacon's local `runtime.jsonl` and forward events without storing destination secrets in Beacon endpoint configuration.++```bash title="Generate the integration pack"+beacon endpoint sumo install-pack --system --output ./beacon-sumo-pack+beacon endpoint rapid7 install-pack --system --output ./beacon-rapid7-pack+beacon endpoint falcon install-pack --system --output ./beacon-falcon-pack+beacon endpoint cloudwatch install-pack --system --output ./beacon-cloudwatch-pack+beacon endpoint s3 install-pack --system --output ./beacon-s3-pack+beacon endpoint gcs install-pack --system --output ./beacon-gcs-pack+```++The generated `vector.toml` files use the selected Beacon log path, parse each JSONL line into the original Beacon event, and send JSON with destination-appropriate framing. Vector owns checkpointing in its `data_dir`, batching, retries, destination URLs, CloudWatch log streams, S3 and GCS object keys, and destination-specific headers or settings such as `X-Sumo-Category`, `X-Sumo-Fields`, `x-sumo-token`, `Content-Type: application/x-ndjson`, `BEACON_FALCON_HEC_ENDPOINT`, `BEACON_CLOUDWATCH_LOG_GROUP`, `BEACON_CLOUDWATCH_LOG_STREAM_PREFIX`, `BEACON_S3_BUCKET`, `BEACON_S3_PREFIX`, `AWS_REGION`, `BEACON_GCS_BUCKET`, and `BEACON_GCS_PREFIX`.++For managed endpoint deployments, install Vector through your normal endpoint tooling, copy the generated config into Vector's config directory, and provide `SUMO_URL`, optional `SUMO_TOKEN`, `RAPID7_WEBHOOK_URL`, `BEACON_FALCON_HEC_ENDPOINT`, `BEACON_FALCON_HEC_TOKEN`, `BEACON_CLOUDWATCH_LOG_GROUP`, optional `BEACON_CLOUDWATCH_LOG_STREAM_PREFIX`, `BEACON_S3_BUCKET`, optional `BEACON_S3_PREFIX`, `AWS_REGION`, `BEACON_GCS_BUCKET`, optional `BEACON_GCS_PREFIX`, and destination credentials through the Vector service environment, host identity, or your MDM/secret tooling.++### Customer-managed forwarding++For another SIEM, observability store, archive, or pipeline, configure a customer-managed forwarder to read the Beacon runtime log and preserve each JSONL line as one event. See [Customer-managed log pipelines](/log-forwarding/customer-managed) for the dedicated forwarding contract.++Recommended settings:++- Read from `/var/log/beacon-agent/runtime.jsonl` for system deployments.+- Follow file rotation at that active path and checkpoint offsets according to your shipper's rotation support.+- Treat each line as a complete JSON event.+- Preserve the raw Beacon JSON for investigation.+- Use the `vendor`, `product`, `event`, `actor`, `endpoint`, `process`, `file`, `tool`, `mcp`, `approval`, and `health` fields for parsing and routing.+- Validate forwarding after deployment by writing a Beacon validation event, searching for the Falcon LogScale, Sumo Logic, Rapid7, Microsoft Sentinel, AWS CloudWatch Logs, AWS S3, or Google Cloud Storage validation message, or simulating the Elastic ingest pipeline with the generated sample event.++### Local JSONL++Local JSONL is the default endpoint log and local dashboard source. See [Local JSONL](/log-forwarding/local-jsonl) when you want the local audit trail without remote forwarding.++```bash title="Check endpoint status as JSON"+beacon endpoint status --json+beacon endpoint test-event+beacon endpoint dashboard --open+```++## Validation++After installing or repairing Beacon, confirm the endpoint state and write a validation event:++```bash title="Check the endpoint state and write a validation event"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo /opt/beacon/bin/beacon endpoint wazuh validate --system+```++If the validation event is not visible downstream, verify that the runtime log exists, is writable, and is the same path your Wazuh agent, Filebeat input, Elastic Agent input, Datadog Agent config, Sumo Logic shipper, Rapid7 forwarder, Azure Monitor Agent DCR, Vector CloudWatch, S3, or GCS shipper, or customer-managed shipper is reading. For Splunk HEC and Falcon LogScale HEC, also confirm `beacon endpoint status --json` reports `destinations.splunk_hec.configured: true` or `destinations.falcon_hec.configured: true`.++```bash title="Command example"+sudo test -w /var/log/beacon-agent/runtime.jsonl+sudo launchctl print system/com.beacon.endpoint.collector+```++## Event schema++Beacon endpoint events share a stable schema across supported runtime sources. The generated Wazuh, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS CloudWatch Logs, AWS S3, and Google Cloud Storage content and the Splunk HEC or Falcon LogScale HEC collector exporters can identify telemetry health issues, command and MCP activity, policy blocks, endpoint health failures, prompt and tool workflow telemetry, file activity, and tool failures while preserving the raw Beacon JSON.++<Columns cols={2}>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts">+ Review runtime log, local collector, content pack, and forwarding terms.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Customer-managed log pipelines" icon="route" href="/log-forwarding/customer-managed">+ Forward local Beacon JSONL through customer-controlled shippers.+ </Card>+ <Card title="Local JSONL" icon="file-lines" href="/log-forwarding/local-jsonl">+ Use the default endpoint log and local dashboard source.+ </Card>+</Columns>diff --git a/docs/log-forwarding/local-jsonl.mdx b/docs/log-forwarding/local-jsonl.mdxnew file mode 100644index 00000000..4da36820--- /dev/null+++ b/docs/log-forwarding/local-jsonl.mdx@@ -0,0 +1,74 @@+---+title: "Local JSONL"+description: "Use Beacon's local runtime JSONL log as the default endpoint log and local dashboard source."+---++## Local Log Output++Beacon's default destination is the local [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). The endpoint agent writes one normalized [endpoint event](/concepts/core-concepts#endpoint-event) per line and keeps the active path stable for local review, the Beacon dashboard, and downstream shippers.++Use this path when you want a local audit trail without configuring a remote SIEM, log aggregator, or object storage exporter.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++User mode is convenient for local evaluation. System mode is preferred for package or MDM deployments because the log path is shared and root-managed.++## What reads the local log++Beacon uses the same JSONL source for:++- Local inspection with `beacon endpoint status`, `beacon endpoint doctor`, and diagnostics commands.+- The loopback-only [endpoint dashboard](/cli/dashboard), including Log Search and Security Overview.+- Validation events written by forwarding commands.+- Customer-managed shippers that tail the active `runtime.jsonl` path.++Beacon rotates the active log at 10 MiB and keeps five numbered archives such as `runtime.jsonl.1`. The active `runtime.jsonl` path remains the stable handoff point for the local dashboard and external shippers.++## Inspect locally++Confirm the endpoint is healthy and writing events:++```bash title="Confirm the endpoint is healthy and writing events"+beacon endpoint status --json+beacon endpoint test-event+```++For a system-mode deployment:++```bash title="For a system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo /opt/beacon/bin/beacon endpoint test-event --system+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Open the local dashboard:++```bash title="Open the local dashboard"+beacon endpoint dashboard --open+```++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to local JSONL. Review filesystem access, archive retention, and any downstream readers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint dashboard" icon="chart-line" href="/cli/dashboard">+ Inspect Beacon runtime logs in the local dashboard.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Compare local, SIEM, log aggregation, and object storage paths.+ </Card>+ <Card title="Customer-managed log pipelines" icon="route" href="/log-forwarding/customer-managed">+ Forward local Beacon JSONL through customer-controlled shippers.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/log-forwarding/microsoft-sentinel.mdx b/docs/log-forwarding/microsoft-sentinel.mdxnew file mode 100644index 00000000..ca2c3736--- /dev/null+++ b/docs/log-forwarding/microsoft-sentinel.mdx@@ -0,0 +1,199 @@+---+title: "Microsoft Sentinel"+description: "Forward Beacon endpoint events into Microsoft Sentinel with Azure Monitor Agent custom log collection."+---++## Forwarding Overview++Beacon `v0.0.32` added Microsoft Sentinel support for teams that want Beacon endpoint events in Log Analytics and Sentinel hunting workflows. Beacon remains the local JSONL producer and writes one source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Azure Monitor Agent tails that file and sends new records through a Data Collection Rule (DCR) into a custom Log Analytics table.++Use this path when you want Sentinel ingestion without storing Azure tenant IDs, client secrets, workspace IDs, DCR identifiers, or ingestion endpoints in Beacon endpoint configuration.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so Azure Monitor Agent can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Prerequisites++- Beacon endpoint installed and writing local JSONL.+- A Log Analytics workspace, with Microsoft Sentinel enabled if you want Sentinel hunting and analytics workflows.+- Azure Monitor Agent installed or deployed to the endpoint.+- A custom Log Analytics table named `BeaconRuntime_CL`.+- A Data Collection Rule associated with the endpoint and workspace.++## Install the Sentinel pack++Generate the Sentinel content pack for a managed system-mode deployment:++```bash title="Generate the Sentinel content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sentinel install-pack \+ --system \+ --output ./beacon-sentinel-pack+```++The pack includes:++- `README.md` with setup and validation steps+- `table-schema.json` for the `BeaconRuntime_CL` custom table+- `dcr-template.json` for Azure Monitor Agent custom text log collection+- `dcr-transform.kql` for parsing each Beacon JSONL line+- `queries.kql` with validation and starter hunting queries+- `detections.kql` with example analytics rule logic+- `sample-event.jsonl` with Beacon endpoint sample events++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated DCR template uses the selected path.++## Sentinel setup++Set up Microsoft Sentinel ingestion from the Azure Portal. If Sentinel is already enabled for your Log Analytics workspace, skip the Sentinel enablement step.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"custom text logs"| azureMonitorAgent["Azure Monitor Agent"]+ azureMonitorAgent -->|"DCR transform"| logAnalytics["BeaconRuntime_CL"]+ logAnalytics -->|"queries and analytics rules"| sentinel["Microsoft Sentinel"]+```++### 1. Enable Sentinel if needed++If the workspace does not already have Microsoft Sentinel enabled, open the Azure Portal, search for **Microsoft Sentinel**, click **Create**, select the `agent-beacon-instance` workspace, and click **Add**. Sentinel uses that Log Analytics workspace as its backend.++<Frame caption="Select the Log Analytics workspace to add to Microsoft Sentinel.">+ <img src="/images/sentinel_workspace_config.png" alt="Azure Portal showing Microsoft Sentinel workspace selection with agent-beacon-instance selected." />+</Frame>++### 2. Create the Data Collection Endpoint++Create a Data Collection Endpoint in the same region as the Log Analytics workspace. For the example workspace shown here, use:++| Field | Value |+|-------|-------|+| Name | `dce-agent-beacon-runtime` |+| Resource group | `agent-beacon` |+| Region | `East US` |++If Azure says no Data Collection Endpoint exists during the custom log wizard, create this endpoint first, then return to the wizard.++<Frame caption="Open Data collection endpoints and create a new endpoint if none exists.">+ <img src="/images/sentinel_data_collection_endpoint_creation.png" alt="Azure Portal Data collection endpoints page showing no endpoints and the Create button." />+</Frame>++<Frame caption="Create the Beacon Data Collection Endpoint in the workspace region.">+ <img src="/images/sentinel_data_collection_endpoint_config.png" alt="Azure Portal form creating dce-agent-beacon-runtime in the agent-beacon resource group and East US region." />+</Frame>++### 3. Create the Beacon custom table++Open your Log Analytics workspace, such as `agent-beacon-instance`, then go to **Settings** > **Tables**. If you do not see **Tables**, use the search box inside the workspace left navigation and search for **Tables**.++Click **Create** > **New custom log (DCR-based)**. Use:++| Field | Value |+|-------|-------|+| Table name | `BeaconRuntime` |+| Description | `Agent Beacon endpoint runtime telemetry` |+| Table plan | `Analytics` |+| Data collection rule | `dcr-agent-beacon-runtime` |+| Data collection endpoint | `dce-agent-beacon-runtime` |++Enter the table name as `BeaconRuntime`, not `BeaconRuntime_CL`. Azure adds the `_CL` suffix automatically, so the final Log Analytics table is `BeaconRuntime_CL`. If you enter `BeaconRuntime_CL`, Azure may create `BeaconRuntime_CL_CL`.++<Frame caption="Open the Tables page in the Log Analytics workspace.">+ <img src="/images/sentinel_instance_table_creation.png" alt="Azure Portal showing the agent-beacon-instance Log Analytics workspace Tables page." />+</Frame>++<Frame caption="Create the Beacon custom log table and Data Collection Rule.">+ <img src="/images/sentinel_create_custom_log.png" alt="Azure Portal custom log wizard with BeaconRuntime table details, Analytics plan, dcr-agent-beacon-runtime DCR, and dce-agent-beacon-runtime endpoint." />+</Frame>++### 4. Configure schema and transformation++In the **Schema and transformation** step, upload `sample-event.jsonl` from the generated Sentinel pack. Do not paste `table-schema.json` into the portal wizard; use it as the reference for the expected columns.++Paste the contents of `dcr-transform.kql` into the transformation editor and confirm the output columns match the `table-schema.json` schema. The key columns are:++| Column | Column | Column |+|--------|--------|--------|+| `TimeGenerated` | `Vendor` | `Product` |+| `SchemaVersion` | `EventKind` | `EventAction` |+| `EventCategory` | `Severity` | `HostName` |+| `UserName` | `HarnessName` | `SessionId` |+| `ToolName` | `CommandLine` | `Repository` |+| `Branch` | `Message` | `ContentRetention` |+| `RawData` | | |++The DCR uses Custom Text Logs because Beacon writes newline-delimited JSON. The transform parses each `RawData` line with `todynamic(RawData)`, projects common hunting columns, preserves the original Beacon event in `RawData`, and routes output to `BeaconRuntime_CL`.++### 5. Choose the ingestion path++Azure Monitor Agent cannot directly tail Beacon logs from macOS endpoints. For macOS fleets, use a small customer-managed forwarder or relay that reads Beacon JSONL records and posts them to the Azure Monitor Logs Ingestion API.++For supported Windows or Linux testing, install Azure Monitor Agent on the machine, add a custom text log source pointing to the Beacon runtime log path, usually `/var/log/beacon-agent/runtime.jsonl`, apply the Beacon DCR transform, route output to `BeaconRuntime_CL`, and associate the DCR with the machine.++The generated table schema includes columns such as `Vendor`, `Product`, `EventAction`, `Severity`, `HostName`, `UserName`, `HarnessName`, `SessionId`, `ToolName`, `CommandLine`, `Repository`, `Branch`, `Message`, `ContentRetention`, and `RawData`.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write a Sentinel validation event:++```bash title="Write a Sentinel validation event"+sudo /opt/beacon/bin/beacon endpoint sentinel validate --system+```++After Azure Monitor Agent ships the new line, validate in Microsoft Sentinel or Log Analytics:++```kql+BeaconRuntime_CL+| where TimeGenerated > ago(24h)+| where Message has "Beacon endpoint Sentinel validation event"+| order by TimeGenerated desc+```++If the validation query does not return data, check the DCR association, Azure Monitor Agent health state, configured file path, and table schema. The target table must exist before the DCR can route transformed records to it.++## Hunting content++Use `queries.kql` for validation and starter hunting queries, including recent Beacon events, command execution, sensitive file edits, high tool-call volume, and new or rare agent runtimes.++Use `detections.kql` as example analytics rule logic. Review and tune thresholds, repository names, content handling policy, and severity mappings before enabling alerts in production.++## CEF, Syslog, and direct APIs++Microsoft Sentinel can also collect CEF and Syslog through Azure Monitor Agent, but the generated Beacon pack uses custom logs because Beacon events are rich structured JSON with prompts, tool calls, commands, files, runtime metadata, and optional raw fields. Flattening those events into CEF loses useful context.++The Azure Monitor Logs Ingestion API can be useful for a centralized customer-managed forwarder, but it should not be configured directly in Beacon endpoint agent state. Direct API forwarding requires Microsoft Entra credentials, DCR identifiers, ingestion endpoints, batching, retries, and network failure handling. Keep those concerns outside Beacon's local endpoint collector unless you are building a separate managed forwarder.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to Microsoft Sentinel. Review workspace access, table retention, analytics rules, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint sentinel" icon="terminal" href="/cli/sentinel">+ Review Microsoft Sentinel command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, and customer-managed pipelines.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/rapid7.mdx b/docs/log-forwarding/rapid7.mdxnew file mode 100644index 00000000..eeb706aa--- /dev/null+++ b/docs/log-forwarding/rapid7.mdx@@ -0,0 +1,170 @@+---+title: "Rapid7 InsightIDR"+description: "Forward Beacon endpoint events into Rapid7 InsightIDR with a Custom Logs webhook event source."+---++## Forwarding Overview++Beacon `v0.0.25` added Rapid7 InsightIDR support for teams that want Beacon endpoint events in Rapid7 Log Search and investigations. Current Beacon releases write one local source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log), and keep that handoff path bounded with local rotation. Your customer-managed shipper or deployment tooling owns Rapid7 webhook URLs, checkpointing, rotation handling, and retries.++Use this path when you want Beacon events forwarded to a Rapid7 InsightIDR Custom Logs webhook event source without storing Rapid7 webhook URLs in Beacon endpoint configuration.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so your shipper can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Rapid7 setup++Create a Rapid7 InsightIDR Custom Logs event source with the Webhook collection method.++<Frame caption="Add a new Rapid7 InsightIDR event source for Beacon endpoint telemetry.">+ <img src="/images/rapid7_add_event_source.png" alt="Rapid7 InsightIDR add event source flow for Beacon endpoint telemetry." />+</Frame>++Recommended setup:++```text+Data Collection > Setup Event Source > Add Event Source > Raw Data > Custom Logs+Collection Method: Webhook+Name: Asymptote Agent Beacon+JSON Events Key: leave blank for Beacon NDJSON payloads+```++<Frame caption="Choose Raw Data > Custom Logs for the Beacon event source.">+ <img src="/images/rapid7_custom_logs.png" alt="Rapid7 InsightIDR Custom Logs event source option for Beacon endpoint events." />+</Frame>++Rapid7 webhook URLs are bearer destinations. Store the generated URL securely as `RAPID7_WEBHOOK_URL` for smoke testing or in your customer-managed forwarder. Avoid committing it to endpoint configuration or source control.++<Frame caption="Configure the Custom Logs source with the Webhook collection method.">+ <img src="/images/rapid7_webhook_config.png" alt="Rapid7 InsightIDR Custom Logs webhook configuration for Beacon endpoint events." />+</Frame>++## Install the Rapid7 pack++Generate the Rapid7 content pack for a managed system-mode deployment:++```bash title="Generate the Rapid7 content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint rapid7 install-pack \+ --system \+ --output ./beacon-rapid7-pack+```++The pack includes:++- `README.md` with setup and validation steps+- `rapid7-upload-smoke-test.sh` for one-shot NDJSON validation uploads+- `vector.toml` for customer-managed Vector forwarding+- `sample-event.jsonl` with Beacon endpoint sample events++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated `rapid7-upload-smoke-test.sh` and `vector.toml` use the selected path.++## One-shot smoke test++Use the generated smoke-test script to upload the current runtime log once. This is only for validation because it re-uploads the whole file every time.++```bash title="Command example"+export RAPID7_WEBHOOK_URL="https://..."+./beacon-rapid7-pack/rapid7-upload-smoke-test.sh+```++You can override the Beacon log path:++```bash title="You can override the Beacon log path"+export BEACON_LOG="/var/log/beacon-agent/runtime.jsonl"+```++The script sends `Content-Type: application/x-ndjson` and preserves one Beacon event per line. Rapid7 InsightIDR Custom Logs treats each NDJSON line as an individual event.++## Production forwarding++For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tails `runtime.jsonl`, checkpoints file offsets in its `data_dir`, batches Beacon events, and posts newline-delimited JSON to the Rapid7 Custom Logs webhook.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"file source tails active path"| vectorAgent["Vector host agent"]+ vectorAgent -->|"parse_json, batch, retry"| rapid7Webhook["Rapid7 Custom Logs webhook"]+ rapid7Webhook -->|"indexes events"| rapid7Search["Rapid7 Log Search"]+ endpointMgmt["MDM or secret tooling"] -->|"RAPID7_WEBHOOK_URL"| vectorAgent+```++Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl"+sudo mkdir -p /etc/vector+sudo cp ./beacon-rapid7-pack/vector.toml /etc/vector/beacon-rapid7.toml+export RAPID7_WEBHOOK_URL="https://..."+vector validate /etc/vector/beacon-rapid7.toml+vector --config /etc/vector/beacon-rapid7.toml+```++In managed deployments, provide `RAPID7_WEBHOOK_URL` through the Vector service environment or your MDM/secret tooling. Do not store Rapid7 webhook URLs in Beacon endpoint configuration.++The template expects a Vector version with the `file` source, `remap` transform, and `http` sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON with newline-delimited framing so Rapid7 receives one Beacon event per line, without a Vector wrapper.++If you adapt the config or use another forwarder, it should:++- Checkpoint file offsets.+- Follow Beacon's local file rotation at the active `runtime.jsonl` path.+- Keep each Beacon event as one JSON object per line.+- Batch newline-delimited JSON records.+- Send `Content-Type: application/x-ndjson`.+- Retry transient failures without duplicating the whole file.+- Keep the Rapid7 webhook URL outside Beacon endpoint configuration.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write a Rapid7 validation event:++```bash title="Write a Rapid7 validation event"+sudo /opt/beacon/bin/beacon endpoint rapid7 validate --system+```++Run the one-shot smoke test or wait for your production forwarder to ship the new line. In Rapid7 Log Search, start with the Custom Logs event source and search for:++```text+"Beacon endpoint Rapid7 validation event"+```++You can also confirm normalized Beacon fields are present:++```text+vendor=beacon product=endpoint-agent destination.type=rapid7+```++If events do not appear, verify that your forwarder is reading the same runtime log path Beacon writes, that the webhook URL is current, and that each Beacon JSONL line is preserved as a distinct event.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to Rapid7. Review event source access, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint rapid7" icon="terminal" href="/cli/rapid7">+ Review Rapid7 command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, and customer-managed pipelines.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/s3.mdx b/docs/log-forwarding/s3.mdxnew file mode 100644index 00000000..8798d0b6--- /dev/null+++ b/docs/log-forwarding/s3.mdx@@ -0,0 +1,184 @@+---+title: "AWS S3"+description: "Forward Beacon endpoint events into AWS S3 with customer-managed Vector forwarding."+---++## Forwarding Overview++Beacon `v0.0.37` added AWS S3 support for teams that want Beacon endpoint events stored in an S3 bucket for data lake, SIEM, archive, or downstream detection workflows. Beacon remains the local JSONL producer and writes one source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Your customer-managed Vector agent tails that file and uploads gzip-compressed NDJSON objects to S3.++Use this path when you want Beacon events forwarded to S3 without storing AWS credentials, bucket policy, lifecycle, retention, or encryption settings in Beacon endpoint configuration.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so Vector can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Prerequisites++- Beacon endpoint installed and writing local JSONL.+- An AWS S3 bucket for Beacon runtime logs.+- Vector installed or deployable through your endpoint-management tooling.+- An IAM role or credentials available through the standard AWS credential provider chain for the process running Vector or the AWS CLI smoke test.++Recommended object layout:++```text+s3://example-security-logs/beacon/runtime/date=YYYY-MM-DD/<timestamp>-<uuid>.jsonl.gz+```++Example least-privilege IAM policy for a dedicated Beacon prefix:++```json+{+ "Version": "2012-10-17",+ "Statement": [+ {+ "Effect": "Allow",+ "Action": ["s3:PutObject"],+ "Resource": "arn:aws:s3:::example-security-logs/beacon/runtime/*"+ }+ ]+}+```++Add `s3:PutObjectTagging`, KMS permissions, or bucket-specific conditions only if your AWS controls require them. Configure bucket lifecycle, retention, server-side encryption, and access logging in AWS.++## Install the S3 pack++Generate the AWS S3 content pack for a managed system-mode deployment:++```bash title="Generate the AWS S3 content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint s3 install-pack \+ --system \+ --output ./beacon-s3-pack+```++The pack includes:++- `README.md` with setup and validation steps+- `s3-upload-smoke-test.sh` for one-shot AWS CLI validation uploads+- `vector.toml` for customer-managed Vector forwarding+- `sample-event.jsonl` with Beacon endpoint sample events++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated `s3-upload-smoke-test.sh` and `vector.toml` use the selected path.++## One-shot smoke test++Use the generated smoke-test script to upload the current runtime log once. This is only for validation because it re-uploads the whole file every time.++```bash title="Command example"+export BEACON_S3_BUCKET="example-security-logs"+export BEACON_S3_PREFIX="beacon/runtime"+export AWS_REGION="us-east-1"+./beacon-s3-pack/s3-upload-smoke-test.sh+```++The script uses `aws s3 cp` and the standard AWS credential provider chain. You can provide credentials with an instance profile, SSO/profile configuration, environment variables, or your managed endpoint secret tooling. Beacon does not store AWS credentials.++Confirm the uploaded object:++```bash title="Confirm the uploaded object"+aws s3 ls "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/smoke-tests/" --region "$AWS_REGION"+aws s3 cp "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/smoke-tests/<object>.jsonl" - --region "$AWS_REGION" | grep "Beacon endpoint S3 validation event"+```++## Production forwarding++For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tails `runtime.jsonl`, checkpoints file offsets in its `data_dir`, batches Beacon events, and writes gzip-compressed newline-delimited JSON objects into AWS S3.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"file source tails active path"| vectorAgent["Vector host agent"]+ vectorAgent -->|"parse_json, gzip NDJSON"| s3Bucket["AWS S3 bucket"]+ s3Bucket -->|"partitioned objects"| downstreamSiem["SIEM, lake, or archive workflow"]+ endpointMgmt["MDM or secret tooling"] -->|"bucket, prefix, region, AWS credentials"| vectorAgent+```++Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl"+sudo mkdir -p /etc/vector+sudo cp ./beacon-s3-pack/vector.toml /etc/vector/beacon-s3.toml+export BEACON_S3_BUCKET="example-security-logs"+export BEACON_S3_PREFIX="beacon/runtime"+export AWS_REGION="us-east-1"+vector validate /etc/vector/beacon-s3.toml+vector --config /etc/vector/beacon-s3.toml+```++In managed deployments, provide `BEACON_S3_BUCKET`, optional `BEACON_S3_PREFIX`, `AWS_REGION`, optional `BEACON_S3_STORAGE_CLASS`, and any AWS credential-provider settings through the Vector service environment, host identity, or MDM/secret tooling. Do not store AWS destination secrets in Beacon endpoint configuration.++The template expects a Vector version with the `file` source, `remap` transform, and `aws_s3` sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON with newline-delimited framing so S3 receives one Beacon event per line, without a Vector wrapper.++The template uses date-partitioned `key_prefix`, `filename_time_format = "%s"`, and `filename_append_uuid = true` so production forwarding does not overwrite previous S3 objects. It also sets `compression = "gzip"`, `content_encoding = "gzip"`, and `content_type = "application/x-ndjson"`.++If you adapt the config or use another forwarder, it should:++- Checkpoint file offsets.+- Follow Beacon's local file rotation at the active `runtime.jsonl` path.+- Keep each Beacon event as one JSON object per line.+- Batch newline-delimited JSON records.+- Use non-overwriting object keys.+- Retry transient failures without duplicating the whole file.+- Keep AWS credentials, IAM roles, bucket policy, lifecycle, and encryption outside Beacon endpoint configuration.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write an S3 validation event:++```bash title="Write an S3 validation event"+sudo /opt/beacon/bin/beacon endpoint s3 validate --system+```++Run the one-shot smoke test or wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with AWS tooling:++```bash title="Run the one-shot smoke test or wait for your production forwarder to ship the new line. Beacon can write the local validation event, but remote delivery must be confirmed with AWS tooling"+aws s3 ls "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/" --recursive --region "$AWS_REGION"+aws s3 cp "s3://${BEACON_S3_BUCKET}/${BEACON_S3_PREFIX}/date=<date>/<object>.jsonl.gz" - --region "$AWS_REGION" | gzip -dc | grep "Beacon endpoint S3 validation event"+```++Expected validation fields:++```text+vendor=beacon product=endpoint-agent destination.type=s3 destination.mode=aws_s3_jsonl+```++If events do not appear, verify that Vector is reading the same runtime log path Beacon writes, that the AWS credential provider chain is available to the Vector process, that the bucket and prefix match your environment variables, and that IAM allows `s3:PutObject` for the selected prefix.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to S3. Review bucket access, lifecycle, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint s3" icon="terminal" href="/cli/s3">+ Review AWS S3 command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS S3, Google Cloud Storage, and customer-managed pipelines.+ </Card>+ <Card title="Google Cloud Storage forwarding" icon="chart-line" href="/log-forwarding/gcs">+ Configure Vector forwarding from Beacon JSONL into Google Cloud Storage.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/splunk.mdx b/docs/log-forwarding/splunk.mdxnew file mode 100644index 00000000..80027861--- /dev/null+++ b/docs/log-forwarding/splunk.mdx@@ -0,0 +1,137 @@+---+title: "Splunk HEC"+description: "Send Beacon endpoint telemetry to Splunk HTTP Event Collector."+---++## Forwarding Overview++Beacon writes normalized endpoint events as JSONL and can also send OTLP logs, traces, and metrics to Splunk HTTP Event Collector (HEC) through the bundled collector. The active runtime log remains the stable local handoff path and rotates locally. Use the built-in HEC destination when you want Beacon to forward directly, or configure a customer-managed forwarder to read the runtime log and send each JSON object to HEC.++When the built-in HEC destination is enabled, Beacon's collector needs network access to your Splunk HEC endpoint and stores the HEC token in the collector config. When you use an external forwarder, that forwarder is responsible for reading the local file, authenticating to HEC, and retrying delivery.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so every managed endpoint writes to `/var/log/beacon-agent/runtime.jsonl`.++## Beacon-managed forwarding++For Beacon-managed forwarding, pass HEC settings during endpoint install or repair:++```bash title="Install Beacon with Splunk HEC forwarding"+beacon endpoint install \+ --splunk-hec-endpoint https://splunk.example:8088/services/collector \+ --splunk-hec-token "$SPLUNK_HEC_TOKEN" \+ --splunk-index beacon+```++Keep the HEC token in your endpoint-management secret store before passing it to Beacon. Beacon writes the token into the collector config so the local collector can authenticate to Splunk HEC.++## Customer-managed forwarding++Create or reuse a Splunk HEC token for Beacon endpoint telemetry, then install Beacon with the HEC destination:++```bash title="Install Beacon with Splunk HEC forwarding"+beacon endpoint install \+ --splunk-hec-endpoint https://splunk.example:8088/services/collector \+ --splunk-hec-token "$SPLUNK_HEC_TOKEN" \+ --splunk-index beacon+```++To add or update Splunk HEC on an existing endpoint, run repair with the same destination flags:++```bash title="Update Splunk HEC on an existing endpoint"+beacon endpoint repair \+ --splunk-hec-endpoint https://splunk.example:8088/services/collector \+ --splunk-hec-token "$SPLUNK_HEC_TOKEN" \+ --splunk-index beacon+```++## Settings++| Setting | Recommendation |+|---------|----------------|+| Endpoint | Splunk HEC endpoint URL, such as `https://splunk.example:8088/services/collector` |+| Token | Splunk HEC token from your Splunk administrator |+| Index | Your endpoint telemetry or security operations index |+| Event format | One HEC event per JSONL line |+| Payload | Preserve the full Beacon JSON object as the HEC `event` |++If you use a customer-managed forwarder instead of Beacon's collector destination, store the token in that forwarder's secret store rather than Beacon configuration.++## Example HEC payload++Your forwarder should wrap each Beacon JSON object in a Splunk HEC envelope:++```json+{+ "sourcetype": "asymptote:beacon:json",+ "source": "/var/log/beacon-agent/runtime.jsonl",+ "event": {+ "vendor": "asymptote",+ "product": "beacon",+ "event": {+ "category": "health",+ "type": "validation"+ }+ }+}+```++Keep the HEC token in your endpoint-management secret store and pass it to Beacon at install or repair time.++## Customer-managed forwarder behavior++## Collector behavior++When Splunk HEC is configured, Beacon writes a collector pipeline with both exporters enabled:++```text+exporters: [beaconjson, splunk_hec]+```++The `beaconjson` exporter preserves the local runtime log. The `splunk_hec` exporter sends OTLP logs, traces, and metrics to Splunk HEC.++## Validate forwarding++Confirm Beacon has the destination configured:++```bash title="Confirm Beacon has the destination configured"+sudo /opt/beacon/bin/beacon endpoint status --system --json+```++In the JSON output, check that `destinations.splunk_hec.configured` is `true` and that the endpoint, index, source, and sourcetype match your deployment. The token is not printed.++Then write a validation event:++```bash title="Write a validation event"+sudo /opt/beacon/bin/beacon endpoint wazuh validate --system+```++Then search Splunk for the validation event:++```spl+index=<your_index> sourcetype="beacon:endpoint" product="endpoint-agent" event.category="validation"+```++If the event does not appear, verify that the collector service is running, the HEC endpoint accepts the configured token, and TLS settings match your Splunk deployment.++```bash title="Check endpoint status as JSON"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo launchctl print system/com.beacon.endpoint.collector+```++## Related++<Columns cols={2}>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns and validation steps.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/log-forwarding/sumo.mdx b/docs/log-forwarding/sumo.mdxnew file mode 100644index 00000000..4208daee--- /dev/null+++ b/docs/log-forwarding/sumo.mdx@@ -0,0 +1,197 @@+---+title: "Sumo Logic"+description: "Forward Beacon endpoint events into Sumo Logic with a Hosted Collector HTTP Logs & Metrics Source."+---++## Forwarding Overview++Beacon `v0.0.20` added Sumo Logic support for teams that want Beacon endpoint events in Sumo Logic search, Live Tail, dashboards, and investigations. Current Beacon releases write one local source of truth, the active [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log), and keep that handoff path bounded with local rotation. Your customer-managed shipper or deployment tooling owns Sumo Source URLs, tokens, checkpointing, rotation handling, and retries.++Use this path when you want Beacon events forwarded to a Sumo Logic Hosted Collector HTTP Logs & Metrics Source without storing Sumo credentials in Beacon endpoint configuration.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM deployments so your shipper can tail `/var/log/beacon-agent/runtime.jsonl` without per-user home directory permissions.++## Sumo Logic setup++Create or reuse a Sumo Logic Hosted Collector, then add an HTTP Logs & Metrics Source for Beacon endpoint events.++<Frame caption="Create or reuse a Hosted Collector for Beacon endpoint telemetry.">+ <img src="/images/sumo-logic-collector-config.png" alt="Sumo Logic collector configuration for Beacon endpoint telemetry." />+</Frame>++Configure the HTTP Logs & Metrics Source with source metadata your team can search and route consistently:++```text+_sourceCategory=security/agentbeacon+source name=agentbeacon+fields=product=agentbeacon,telemetry=ai_agent,env=prod+```++<Frame caption="Configure an HTTP Logs & Metrics Source for Beacon JSONL events.">+ <img src="/images/sumo-logic-http-logs-metrics-config.png" alt="Sumo Logic HTTP Logs and Metrics Source configuration for Beacon endpoint events." />+</Frame>++If you use Sumo fields, confirm the fields exist and are enabled in the Sumo Fields table schema so they are not dropped at ingest.++## Source URL and token++Copy the Source URL from the HTTP Logs & Metrics Source. You can use either:++- A presigned Source URL in `SUMO_URL`.+- Sumo's Auth Header URL in `SUMO_URL` with the separate token in `SUMO_TOKEN`.++<Frame caption="Use the Auth Header option when you want the URL and `x-sumo-token` separated.">+ <img src="/images/sumo-logic-auth-header-config.png" alt="Sumo Logic Auth Header configuration showing the Source URL and x-sumo-token option." />+</Frame>++Keep the Source URL and token in your log shipper, endpoint-management secret store, or deployment tooling. Beacon does not store them.++## Install the Sumo pack++Generate the Sumo Logic content pack for a managed system-mode deployment:++```bash title="Generate the Sumo Logic content pack for a managed system-mode deployment"+sudo /opt/beacon/bin/beacon endpoint sumo install-pack \+ --system \+ --output ./beacon-sumo-pack+```++The pack includes:++- `README.md` with setup and validation steps+- `sumo-upload-smoke-test.sh` for one-shot validation uploads+- `vector.toml` for customer-managed Vector forwarding+- `sample-event.jsonl` with Beacon endpoint sample events++If you use a custom Beacon log path, generate the pack with `--log-path /path/to/runtime.jsonl`. The generated `sumo-upload-smoke-test.sh` and `vector.toml` use the selected path.++## One-shot smoke test++Use the generated smoke-test script to upload the current runtime log once. This is only for validation because it re-uploads the whole file every time.++With a presigned Sumo Source URL:++```bash title="With a presigned Sumo Source URL"+export SUMO_URL="https://collectors.sumologic.com/receiver/v1/http/..."+./beacon-sumo-pack/sumo-upload-smoke-test.sh+```++With Sumo's Auth Header option:++```bash title="With Sumo's Auth Header option"+export SUMO_URL="https://collectors.sumologic.com/receiver/v1/http"+export SUMO_TOKEN="..."+./beacon-sumo-pack/sumo-upload-smoke-test.sh+```++You can override the default metadata:++```bash title="You can override the default metadata"+export BEACON_LOG="/var/log/beacon-agent/runtime.jsonl"+export SUMO_SOURCE_CATEGORY="security/agentbeacon"+export SUMO_FIELDS="product=agentbeacon,telemetry=ai_agent,env=prod"+```++The script uses `curl -T` so JSONL line breaks are preserved for Sumo message boundary detection.++## Production forwarding++For production, use the generated Vector config as a customer-managed host-agent forwarding template. Beacon remains the local JSONL producer; Vector tails `runtime.jsonl`, checkpoints file offsets in its `data_dir`, batches Beacon events, and posts newline-delimited JSON to the HTTP Logs & Metrics Source.++```mermaid+flowchart LR+ agentHarnesses["Agent harnesses"] -->|"OTLP or hooks"| beaconEndpoint["Beacon endpoint agent"]+ beaconEndpoint -->|"writes normalized events"| runtimeLog["runtime.jsonl"]+ runtimeLog -->|"file source tails active path"| vectorAgent["Vector host agent"]+ vectorAgent -->|"parse_json, batch, retry"| sumoHttpSource["Sumo HTTP Logs and Metrics Source"]+ sumoHttpSource -->|"indexes events"| sumoSearch["Sumo Search and Live Tail"]+ endpointMgmt["MDM or secret tooling"] -->|"SUMO_URL, optional SUMO_TOKEN, metadata"| vectorAgent+```++Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails `/var/log/beacon-agent/runtime.jsonl`:++```bash title="Install Vector using your normal endpoint management tooling, then copy the generated config into Vector's config directory. On a macOS system-mode Beacon deployment, the generated config tails /var/log/beacon-agent/runtime.jsonl"+sudo mkdir -p /etc/vector+sudo cp ./beacon-sumo-pack/vector.toml /etc/vector/beacon-sumo.toml+export SUMO_URL="https://collectors.sumologic.com/receiver/v1/http/..."+export SUMO_TOKEN="..."+vector validate /etc/vector/beacon-sumo.toml+vector --config /etc/vector/beacon-sumo.toml+```++`SUMO_TOKEN` is optional when `SUMO_URL` is a presigned Source URL. In managed deployments, provide `SUMO_URL`, optional `SUMO_TOKEN`, `SUMO_SOURCE_CATEGORY`, and `SUMO_FIELDS` through the Vector service environment or your MDM/secret tooling. Do not store Sumo destination secrets in Beacon endpoint configuration.++The template expects a Vector version with the `file` source, `remap` transform, and `http` sink. It parses each Beacon JSONL line and re-encodes the original Beacon event as JSON with newline-delimited framing so Sumo receives one Beacon event per line, without a Vector wrapper.++If you adapt the config, use Sumo's OpenTelemetry Collector distribution, or use another forwarder, it should:++- Checkpoint file offsets.+- Follow Beacon's local file rotation at the active `runtime.jsonl` path.+- Keep each Beacon event as one JSON object per line.+- Batch newline-delimited JSON records.+- Keep uncompressed POST payloads near Sumo's 100 KB to 1 MB guidance.+- Gzip payloads with `Content-Encoding: gzip`.+- Retry transient failures without duplicating the whole file.++In the Sumo HTTP Source advanced log options, avoid `One Message Per Request` when sending batched JSONL payloads. Use automatic message boundary detection or a boundary configuration that treats each JSON line as a distinct log record.++## Validate forwarding++Confirm the Beacon runtime log exists and has recent endpoint events:++```bash title="Confirm the Beacon runtime log exists and has recent endpoint events"+sudo /opt/beacon/bin/beacon endpoint status --system --json+sudo test -r /var/log/beacon-agent/runtime.jsonl+```++Write a Sumo Logic validation event:++```bash title="Write a Sumo Logic validation event"+sudo /opt/beacon/bin/beacon endpoint sumo validate --system+```++Run the one-shot smoke test or wait for your production forwarder to ship the new line. In Sumo Logic, validate with Live Tail first because normal Search can lag while data is indexed.++Suggested Live Tail or Search filters:++```text+_sourceCategory=security/agentbeacon product=agentbeacon telemetry=ai_agent+```++```text+_sourceCategory=security/agentbeacon "Beacon endpoint Sumo validation event"+```++<Frame caption="Search Beacon endpoint events in Sumo Logic after forwarding starts.">+ <img src="/images/sumo-logic-sample-log-queries.png" alt="Sumo Logic sample log queries for Beacon endpoint events." />+</Frame>++If events do not appear, verify that your forwarder is reading the same runtime log path Beacon writes, that the Source URL or Auth Header token is current, that `X-Sumo-Category` and `X-Sumo-Fields` match your searches, and that message boundary detection treats each JSONL line as a distinct event.++## Content Handling++Beacon applies redaction, sanitization, truncation, and event-size limits before events are written to `runtime.jsonl` and forwarded to Sumo Logic. Review source access, retention, and downstream consumers so retained telemetry matches your approved collection policy.++## Related++<Columns cols={2}>+ <Card title="beacon endpoint sumo" icon="terminal" href="/cli/sumo">+ Review Sumo Logic command syntax, flags, and examples.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Review forwarding patterns across Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7, and customer-managed pipelines.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported agent harnesses, deployment modes, storage, and forwarding.+ </Card>+</Columns>diff --git a/docs/log-forwarding/wazuh.mdx b/docs/log-forwarding/wazuh.mdxnew file mode 100644index 00000000..99a11933--- /dev/null+++ b/docs/log-forwarding/wazuh.mdx@@ -0,0 +1,358 @@+---+title: "Wazuh"+description: "Forward Beacon endpoint events into Wazuh with localfile ingestion."+---++## Forwarding Overview++Beacon writes normalized AI runtime telemetry as one JSON object per line in the active local [runtime JSONL log](/concepts/core-concepts#runtime-jsonl-log). Beacon keeps that handoff path bounded with local rotation. Wazuh ingests those events with a standard `localfile` input and Beacon's generated Wazuh rules.++Use this guide when you want Wazuh to alert on local AI agent activity such as prompt submissions, command execution, tool use, file reads and writes, approval decisions, and endpoint health events.++## How it works++Beacon does not send events directly to the Wazuh API. The integration is file based:++1. Beacon writes endpoint events to `runtime.jsonl`.+2. Wazuh `logcollector` tails that file with `<log_format>json</log_format>`.+3. Wazuh decodes each JSON object and stores the fields under `data.*`.+4. Beacon's Wazuh rules classify events with rule IDs such as `100500` and `100550`.+5. Analysts review the events in Wazuh Dashboard under **Threat Hunting** → **Events**.++This keeps Beacon local-only. Wazuh owns collection, indexing, retention, user access, and dashboard behavior.++## Runtime log paths++| Mode | Runtime log |+|------|-------------|+| User mode | `~/.beacon/endpoint/logs/runtime.jsonl` |+| System mode | `/var/log/beacon-agent/runtime.jsonl` |++Use system mode for MDM or fleet deployments so all managed endpoints write to the shared `/var/log/beacon-agent/runtime.jsonl` path. User mode is convenient for local testing, especially on a workstation running Wazuh in Docker.++## Prerequisites++Before configuring Wazuh, make sure:++- Beacon is installed or available on the endpoint.+- The Beacon runtime log exists, or Beacon can create it.+- Wazuh manager or Wazuh agent can read the runtime log path.+- You know where your Wazuh manager loads custom rules from. For many Linux and Docker installs this is `/var/ossec/etc/rules`.+- You can restart or reload Wazuh after changing `ossec.conf` or custom rules.++## Production setup++For managed endpoints, install Beacon in system mode and configure Wazuh to tail the system runtime log.++### 1. Configure Beacon++Install or repair Beacon in system mode:++```bash title="Install or repair Beacon in system mode"+sudo beacon endpoint install --system+```++Confirm the runtime log path:++```bash title="Confirm the runtime log path"+sudo beacon endpoint status --system+```++### 2. Generate Wazuh content++Generate the Wazuh pack:++```bash title="Generate the Wazuh pack"+beacon endpoint wazuh install-pack --system --output ./beacon-wazuh+```++The pack includes:++- `ossec-localfile.xml`: Wazuh `localfile` snippet for the Beacon runtime log.+- `beacon-rules.xml`: Wazuh rules for Beacon endpoint events.+- `sample-event.jsonl`: known-good sample events.+- `apply-dashboard-default-columns.sh`: optional helper for Wazuh Dashboard display columns.+- `README.md`: install notes.++### 3. Install Wazuh localfile config++Add the generated `ossec-localfile.xml` block to the Wazuh agent or manager configuration that runs on the endpoint:++```xml+<localfile>+ <location>/var/log/beacon-agent/runtime.jsonl</location>+ <log_format>json</log_format>+</localfile>+```++If Beacon writes somewhere custom, generate the snippet with that path:++```bash title="If Beacon writes somewhere custom, generate the snippet with that path"+beacon endpoint wazuh print-config --log-path /path/to/runtime.jsonl+```++### 4. Install Beacon rules++Install `beacon-rules.xml` on the Wazuh manager, usually under:++```text+/var/ossec/etc/rules/beacon-rules.xml+```++Then restart or reload Wazuh so the localfile input and rules are active.++## Local Docker test++Use this flow when Wazuh runs locally with Docker Compose and Beacon runs on your workstation. The key idea is that Wazuh reads paths from inside the container, so the host Beacon log directory must be bind-mounted into the Wazuh manager container.++### 1. Confirm the Beacon runtime log++User-mode Beacon writes to:++```bash title="User-mode Beacon writes to"+ls -l "$HOME/.beacon/endpoint/logs/runtime.jsonl"+```++System-mode Beacon writes to:++```bash title="System-mode Beacon writes to"+sudo ls -l /var/log/beacon-agent/runtime.jsonl+```++For local Docker testing on macOS, user mode is often easier. The important detail is that Wazuh reads paths from inside the container, not from the host filesystem.++### 2. Mount the Beacon log into Wazuh++In the Wazuh manager service in your Docker Compose file, mount the host Beacon log directory into the manager container. For a user-mode Beacon install:++```yaml+services:+ wazuh.manager:+ volumes:+ - /Users/<user>/.beacon/endpoint/logs:/var/log/beacon-agent:ro+```++If you are testing a system-mode Beacon install, mount the system log directory instead:++```yaml+services:+ wazuh.manager:+ volumes:+ - /var/log/beacon-agent:/var/log/beacon-agent:ro+```++The Wazuh localfile location should use the container-side path:++```xml+<localfile>+ <location>/var/log/beacon-agent/runtime.jsonl</location>+ <log_format>json</log_format>+</localfile>+```++Add that block to the Wazuh manager configuration. In the standard single-node Wazuh Docker setup, this is usually the host-mounted manager config file, such as:++```text+config/wazuh_cluster/wazuh_manager.conf+```++After editing the Compose file, recreate the manager so Docker applies the new mount:++```bash title="After editing the Compose file, recreate the manager so Docker applies the new mount"+docker compose up -d wazuh.manager+```++### 3. Install the Beacon Wazuh rules++Generate the Beacon Wazuh pack with the same container-side log path:++```bash title="Generate the Beacon Wazuh pack with the same container-side log path"+beacon endpoint wazuh install-pack \+ --output ./beacon-wazuh \+ --log-path /var/log/beacon-agent/runtime.jsonl+```++Copy the rules into the Wazuh manager container:++```bash title="Copy the rules into the Wazuh manager container"+docker cp ./beacon-wazuh/beacon-rules.xml \+ <wazuh-manager-container>:/var/ossec/etc/rules/beacon-rules.xml+```++Set ownership and permissions if needed:++```bash title="Set ownership and permissions if needed"+docker exec <wazuh-manager-container> chown wazuh:wazuh /var/ossec/etc/rules/beacon-rules.xml+docker exec <wazuh-manager-container> chmod 660 /var/ossec/etc/rules/beacon-rules.xml+```++Then restart the Wazuh manager so the rule file and localfile config are loaded:++```bash title="Then restart the Wazuh manager so the rule file and localfile config are loaded"+docker restart <wazuh-manager-container>+```++### 4. Write a validation event++Write a known-good validation event to the host-side Beacon runtime log. For user mode:++```bash title="Write a known-good validation event to the host-side Beacon runtime log. For user mode"+beacon endpoint wazuh validate \+ --user \+ --log-path "$HOME/.beacon/endpoint/logs/runtime.jsonl"+```++For system mode:++```bash title="Use system mode"+sudo beacon endpoint wazuh validate --system+```++Confirm the manager can see the mounted log and that Wazuh has emitted an alert:++```bash title="Confirm the manager can see the mounted log and that Wazuh has emitted an alert"+docker exec <wazuh-manager-container> tail -n 5 /var/log/beacon-agent/runtime.jsonl+docker exec <wazuh-manager-container> \+ sh -lc 'grep -F "Beacon endpoint Wazuh validation event" /var/ossec/logs/alerts/alerts.json | tail -n 5'+```++Expected rule IDs:++- `100500`: base Beacon endpoint runtime event.+- `100550`: AI agent workflow telemetry, such as prompts, tool activity, and file activity.++## Wazuh Dashboard++Open Wazuh Dashboard, then go to **Threat Hunting** → **Events**. Start with one of these filters:++```text+data.vendor: beacon+```++```text+data.vendor: beacon AND data.event.action: prompt.submitted+```++```text+data.vendor: beacon AND data.harness.name: cursor+```++Use **Columns** to add Beacon fields to the event table:++<img src="/images/wazuh-display-fields.png" alt="Wazuh Dashboard Columns selector with Beacon fields such as data.event.action, data.harness.name, data.message, data.prompt.text, data.model, and data.repository enabled." />++Useful display fields include:++```text+timestamp+rule.description+data.event.action+data.harness.name+data.message+data.prompt.text+data.model+data.repository+data.command+data.file+data.session.id+data.session.working_directory+```++Wazuh stores decoded Beacon fields under `data.*`. In the default Wazuh alert index, command and file details are usually exposed as `data.command` and `data.file`. Nested raw Beacon fields such as `data.command.command`, `data.file.path`, and `data.tool.name` may not appear as separate display fields unless your Wazuh indexing configuration maps them.++You can also apply the recommended columns through the generated helper:++```bash title="You can also apply the recommended columns through the generated helper"+cd ./beacon-wazuh+WAZUH_DASHBOARD_URL=https://localhost \+WAZUH_DASHBOARD_USER=admin \+WAZUH_DASHBOARD_PASSWORD="$WAZUH_DASHBOARD_PASSWORD" \+sh apply-dashboard-default-columns.sh+```++After configuration, Beacon prompts and workflow events should appear in the Threat Hunting event table:++<img src="/images/wazuh-event-sample.png" alt="Wazuh Threat Hunting Events view showing live Beacon Cursor events with event action, harness, message, prompt text, model, and repository fields." />++## Validate ingestion end to end++For production system-mode deployments, write a validation event:++```bash title="For production system-mode deployments, write a validation event"+sudo /opt/beacon/bin/beacon endpoint wazuh validate --system+```++Then confirm the validation event appears in Wazuh Dashboard or in `alerts.json`.++If the event does not appear, verify that the runtime log exists, Beacon can write to it, and Wazuh can read it:++```bash title="If the event does not appear, verify that the runtime log exists, Beacon can write to it, and Wazuh can read it"+sudo test -w /var/log/beacon-agent/runtime.jsonl+sudo test -r /var/log/beacon-agent/runtime.jsonl+sudo launchctl print system/com.beacon.endpoint.collector+```++For Docker-based tests, also verify the manager container can resolve its peer services and see the mounted runtime log:++```bash title="For Docker-based tests, also verify the manager container can resolve its peer services and see the mounted runtime log"+docker network inspect <compose-project>_default+docker exec <wazuh-manager-container> ls -l /var/log/beacon-agent/runtime.jsonl+docker exec <wazuh-manager-container> sh -lc 'grep -i beacon /var/ossec/logs/ossec.log | tail -n 20'+```++If Wazuh Dashboard says the server is not ready yet, check that the dashboard can resolve and connect to the Wazuh indexer. Recreating the indexer and dashboard containers with Docker Compose usually restores the expected Compose DNS aliases:++```bash title="If Wazuh Dashboard says the server is not ready yet, check that the dashboard can resolve and connect to the Wazuh indexer. Recreating the indexer and dashboard containers with Docker Compose usually restores the expected Compose DNS aliases"+docker compose up -d --force-recreate wazuh.indexer wazuh.dashboard+```++## Troubleshooting++### No Beacon alerts in Wazuh++Check each handoff point:++- Beacon wrote an event to the host runtime log.+- The Wazuh manager or agent can read the same file path.+- Docker deployments use the container-side path in `<location>`.+- `beacon-rules.xml` is installed on the manager and Wazuh was restarted after the file was copied.+- Wazuh `logcollector` reports that it is analyzing the Beacon runtime log.++Useful checks:++```bash title="Useful checks"+tail -n 5 "$HOME/.beacon/endpoint/logs/runtime.jsonl"+docker exec <wazuh-manager-container> tail -n 5 /var/log/beacon-agent/runtime.jsonl+docker exec <wazuh-manager-container> sh -lc 'grep -i beacon /var/ossec/logs/ossec.log | tail -n 20'+```++### Validation events appear, but prompts do not++The validation event proves Wazuh can ingest the file. Prompt and tool activity also require the relevant runtime integration, such as Cursor hooks or OTLP telemetry, to be configured.++For Cursor hooks, check:++```bash title="Check Cursor hooks"+beacon endpoint hooks status --harness cursor+```++Then submit a new prompt and search Wazuh for:++```text+data.vendor: beacon AND data.event.action: prompt.submitted+```++### Fields are present only inside `full_log`++Wazuh preserves the raw Beacon JSON in `full_log`, but not every nested JSON field is always exposed as its own dashboard column. Use the `data.*` fields listed above for the default Wazuh alert index. If your team needs deeper nested fields as first-class columns, adjust Wazuh index templates or downstream parsing for your deployment.++## Related++<Columns cols={2}>+ <Card title="Wazuh command reference" icon="shield" href="/cli/wazuh">+ Review Beacon Wazuh commands and flags.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review normalized Beacon JSONL fields and example events.+ </Card>+</Columns>diff --git a/docs/logo/logo_with_text.png b/docs/logo/logo_with_text.pngnew file mode 100644index 00000000..5c62ae6eBinary files /dev/null and b/docs/logo/logo_with_text.png differdiff --git a/docs/logo/logo_with_text_dark.png b/docs/logo/logo_with_text_dark.pngnew file mode 100644index 00000000..54e31806Binary files /dev/null and b/docs/logo/logo_with_text_dark.png differdiff --git a/docs/mdm/fleet.mdx b/docs/mdm/fleet.mdxnew file mode 100644index 00000000..d17eb7d5--- /dev/null+++ b/docs/mdm/fleet.mdx@@ -0,0 +1,190 @@+---+title: "Fleet"+description: "Deploy and inventory the Beacon endpoint agent with Fleet."+---++## Overview++Fleet can deploy and inventory the local Beacon endpoint agent on managed Macs. Beacon's Fleet support uses the signed and notarized macOS `.pkg` as Fleet software, while the endpoint agent writes local JSONL telemetry without requiring a hosted account, remote policy fetch, or Fleet API credentials.++## What Fleet manages++| Signal | How it helps |+| --- | --- |+| Package installation | Deploy Beacon binaries, endpoint scripts, Fleet queries, and Fleet helper scripts. |+| System endpoint configuration | Install launchd service files and collector configuration for system-mode telemetry. |+| Runtime telemetry location | Write endpoint events to `/var/log/beacon-agent/runtime.jsonl`. |+| Inventory and remediation | Use Fleet queries, policies, labels, and scripts to identify missing, stale, or unhealthy installs. |++## Package layout++The macOS package includes Beacon binaries, endpoint helper scripts, and Fleet assets:++```text+/opt/beacon/bin/beacon+/opt/beacon/bin/beacon-otelcol+/opt/beacon/scripts/install-endpoint.sh+/opt/beacon/scripts/uninstall-endpoint.sh+/opt/beacon/fleet/queries/*.sql+/opt/beacon/fleet/scripts/*.sh+```++The package postinstall performs the default system install. That install creates system configuration and runtime state:++```text+/Library/Application Support/Beacon/Endpoint/config.json+/Library/Application Support/Beacon/Endpoint/otelcol.yaml+/Library/LaunchDaemons/com.beacon.endpoint.collector.plist+/var/log/beacon-agent/runtime.jsonl+```++## Deploy with Fleet++Upload the signed and notarized `.pkg` as Fleet software and scope it to a pilot team or label. The package postinstall performs the default system install, so no post-install script is required for the common deployment path.++<Steps>+ <Step title="Upload the Beacon package">+ Upload the signed and notarized Beacon macOS package as Fleet software. The package installs Beacon binaries under `/opt/beacon` and includes Fleet helper scripts and inventory queries.+ </Step>+ <Step title="Scope to a pilot">+ Scope the software to a pilot team or label before broader rollout.+ </Step>+ <Step title="Add policies or labels">+ Add queries from `/opt/beacon/fleet/queries` as Fleet policies or labels to track install state, service health, log freshness, config state, and runtime log writability.+ </Step>+ <Step title="Validate the deployment">+ Run the Fleet validation helper on a managed Mac:++ ```bash+ /opt/beacon/fleet/scripts/validate.sh+ ```+ </Step>+</Steps>++## Fleet scripts++Fleet scripts are installed under `/opt/beacon/fleet/scripts`:++| Script | Purpose |+|--------|---------|+| `install.sh` | Reinstall or install with optional arguments |+| `validate.sh` | Check status JSON, Wazuh validation, and LaunchDaemon health |+| `repair.sh` | Preserve logs and config while repairing collector and harness configuration |+| `uninstall.sh` | Remove endpoint service files |++Use the install script when a workflow needs explicit parameters or a reinstall action.++Fleet install script positional arguments:++```text+install.sh argument 1: harnesses, default claude,codex; include gemini to opt in Gemini CLI telemetry; do not include GitHub Copilot CLI+install.sh argument 2: OTLP gRPC port, default 4317+install.sh argument 3: OTLP HTTP port, default 4318+install.sh argument 4: collector path, default /opt/beacon/bin/beacon-otelcol+install.sh argument 5: no-start flag, accepts 1/true/yes+install.sh argument 6: Splunk HEC endpoint URL+install.sh argument 7: Splunk HEC token+install.sh argument 8: optional Splunk index+install.sh argument 9: optional Splunk source, default beacon-endpoint-agent when configured+install.sh argument 10: optional Splunk sourcetype, default beacon:endpoint when configured+install.sh argument 11: Splunk TLS skip-verify flag, accepts 1/true/yes; use only for testing+install.sh argument 12: optional Splunk HEC CA certificate path+```++Fleet repair script positional arguments:++```text+repair.sh argument 1: harnesses, default claude,codex; include gemini to opt in Gemini CLI telemetry; do not include GitHub Copilot CLI+repair.sh argument 2: OTLP gRPC port, default 4317+repair.sh argument 3: OTLP HTTP port, default 4318+repair.sh argument 4: Splunk HEC endpoint URL+repair.sh argument 5: Splunk HEC token+repair.sh argument 6: optional Splunk index+repair.sh argument 7: optional Splunk source+repair.sh argument 8: optional Splunk sourcetype+repair.sh argument 9: Splunk TLS skip-verify flag+repair.sh argument 10: optional Splunk HEC CA certificate path+```++## Inventory with queries++Add queries from `/opt/beacon/fleet/queries` as Fleet policies or labels. They cover package, service, log, and config presence and freshness.++Available queries:++- `beacon-version.sql`+- `collector-service-health.sql`+- `last-event-age-seconds.sql`+- `configured-harnesses.sql`+- `runtime-log-writable.sql`+- `splunk-hec-forwarding.sql`++Recommended Fleet policies:++- Beacon install state is not `not_installed`.+- Collector service health is `running`.+- Last runtime event age is less than `86400`.+- Endpoint config state is `present`.+- Runtime log state is `present`.+- Splunk HEC config state is `configured` when HEC export is required.++## Repair and uninstall++Use `/opt/beacon/fleet/scripts/repair.sh` for endpoints where policies report a stale or unhealthy install. Include `gemini` in the harness argument, for example `claude,codex,gemini`, when the repair workflow should manage Gemini CLI telemetry settings. Configure GitHub Copilot CLI separately by deploying `COPILOT_OTEL_ENABLED=true` and `OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318` in Copilot's launch environment.++Use `/opt/beacon/fleet/scripts/uninstall.sh` to remove endpoint service files. Set `BEACON_KEEP_LOGS=1` or the first uninstall argument to preserve runtime logs during removal. Set `BEACON_KEEP_CONFIG=1` or the second uninstall argument to preserve harness telemetry configuration.++## Troubleshooting++<AccordionGroup>+ <Accordion title="Beacon is not installed">+ If the Beacon version query reports `not_installed`, confirm the Fleet software install completed and that the package is scoped to the host.++ On the device, verify that the expected files exist:++ ```bash+ ls /opt/beacon/bin/beacon+ ls /opt/beacon/fleet/scripts/validate.sh+ ```+ </Accordion>+ <Accordion title="Collector service is not running">+ Check endpoint status and launchd state:++ ```bash+ sudo /opt/beacon/bin/beacon endpoint status --json+ sudo launchctl print system/com.beacon.endpoint.collector+ ```++ If the service file or collector configuration drifted, run `/opt/beacon/fleet/scripts/repair.sh`.+ </Accordion>+ <Accordion title="Runtime events are stale or missing">+ Verify that the runtime log exists and is writable:++ ```bash+ sudo test -w /var/log/beacon-agent/runtime.jsonl+ sudo /opt/beacon/bin/beacon endpoint wazuh validate+ ```++ If validation succeeds but events remain stale, confirm the configured harnesses match the agent harnesses installed or configured for the device and that the local collector ports are not in use by another process. For GitHub Copilot CLI, confirm Copilot's launch environment includes `COPILOT_OTEL_ENABLED=true` and points OTLP HTTP at the local Beacon collector.+ </Accordion>+ <Accordion title="Splunk HEC is not configured">+ Check Fleet install script arguments 6 and 7, or the `BEACON_SPLUNK_HEC_ENDPOINT` and `BEACON_SPLUNK_HEC_TOKEN` environment variables used by the install workflow.++ Use `splunk-hec-forwarding.sql` to verify whether endpoint configuration contains a Splunk destination. On the device, confirm the non-secret destination fields:++ ```bash+ sudo /opt/beacon/bin/beacon endpoint status --system --json+ ```+ </Accordion>+</AccordionGroup>++## Related++<Columns cols={2}>+ <Card title="MDM deployment" icon="laptop-mobile" href="/mdm">+ Review the shared macOS MDM deployment model and package layout.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events into Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, or customer-managed pipelines.+ </Card>+</Columns>diff --git a/docs/mdm/index.mdx b/docs/mdm/index.mdxnew file mode 100644index 00000000..7e40cc05--- /dev/null+++ b/docs/mdm/index.mdx@@ -0,0 +1,111 @@+---+title: "MDM Deployment"+description: "Plan managed macOS deployment of Beacon with Jamf Pro, Fleet, or another MDM."+---++## Deployment Overview++Beacon's macOS package is designed for security and IT rollout through MDM. A signed and notarized `.pkg` installs Beacon under `/opt/beacon`, creates system endpoint configuration, loads the local collector LaunchDaemon, and writes endpoint events to `/var/log/beacon-agent/runtime.jsonl`. Optional Splunk HEC or Falcon LogScale HEC settings add collector destinations while preserving the local runtime log.++The package installs and inventories a local-only endpoint agent. Beacon does not require a hosted account, remote policy fetch, or MDM API credentials for normal collection. During package postinstall, Beacon tolerates a transient `launchctl bootstrap` failure when the LaunchDaemon is already registered and continues validation against the existing service registration.++## Package layout++The macOS package includes Beacon binaries, endpoint scripts, and MDM assets:++```text+/opt/beacon/bin/beacon+/opt/beacon/bin/beacon-otelcol+/opt/beacon/scripts/install-endpoint.sh+/opt/beacon/scripts/uninstall-endpoint.sh+/opt/beacon/jamf/extension-attributes/*.sh+/opt/beacon/jamf/scripts/*.sh+/opt/beacon/fleet/queries/*.sql+/opt/beacon/fleet/scripts/*.sh+```++The endpoint install creates system configuration and runtime state:++```text+/Library/Application Support/Beacon/Endpoint/config.json+/Library/Application Support/Beacon/Endpoint/otelcol.yaml+/Library/LaunchDaemons/com.beacon.endpoint.collector.plist+/var/log/beacon-agent/runtime.jsonl+```++## Deployment model++<Steps>+ <Step title="Deploy to a pilot group">+ Upload the signed and notarized `.pkg` to your MDM and scope it to a pilot group, team, or label.+ </Step>+ <Step title="Confirm the system agent">+ Verify that the LaunchDaemon is running and that `beacon endpoint wazuh validate` writes a validation event.+ </Step>+ <Step title="Add inventory signals">+ Track version, collector service health, log freshness, configured harnesses, and runtime log writability.+ </Step>+ <Step title="Scope repair workflows">+ Use the packaged repair scripts for endpoints where inventory reports a stale or unhealthy install. Repair stops the existing collector before reinstalling it and restores the previous endpoint configuration if reinstall cannot complete.+ </Step>+ <Step title="Roll out in stages">+ Broaden deployment after inventory and validation stay healthy for the pilot population.+ </Step>+</Steps>++Environment variables take precedence over MDM script parameters:++| Environment variable | Default |+|----------------------|---------|+| `BEACON_ENDPOINT_HARNESSES` | `claude,codex` |+| `BEACON_HOOK_HARNESSES` | Optional user-context hooks such as `antigravity,claude,cursor,devin,factory,grok,hermes,opencode` |+| `BEACON_OTLP_GRPC_PORT` | `4317` |+| `BEACON_OTLP_HTTP_PORT` | `4318` |+| `BEACON_COLLECTOR` | `/opt/beacon/bin/beacon-otelcol` when present |+| `BEACON_NO_START` | accepts `1`, `true`, or `yes` |+| `BEACON_SPLUNK_HEC_ENDPOINT` | Optional Splunk HEC URL |+| `BEACON_SPLUNK_HEC_TOKEN` | Optional Splunk HEC token |+| `BEACON_SPLUNK_INDEX` | Optional Splunk index |+| `BEACON_SPLUNK_SOURCE` | Optional Splunk source |+| `BEACON_SPLUNK_SOURCETYPE` | Optional Splunk sourcetype |+| `BEACON_SPLUNK_INSECURE_SKIP_VERIFY` | accepts `1`, `true`, or `yes` |+| `BEACON_SPLUNK_CA_FILE` | Optional CA certificate path |+| `BEACON_FALCON_HEC_ENDPOINT` | Optional Falcon LogScale HEC URL |+| `BEACON_FALCON_HEC_TOKEN` | Optional Falcon LogScale ingest token |+| `BEACON_FALCON_INDEX` | Optional Falcon LogScale repository |+| `BEACON_FALCON_SOURCE` | Optional Falcon LogScale source |+| `BEACON_FALCON_SOURCETYPE` | Optional Falcon LogScale parser or sourcetype |+| `BEACON_FALCON_INSECURE_SKIP_VERIFY` | accepts `1`, `true`, or `yes` |+| `BEACON_FALCON_CA_FILE` | Optional Falcon LogScale CA certificate path |++<Note>+ Gemini CLI telemetry is opt-in. Set `BEACON_ENDPOINT_HARNESSES=claude,codex,gemini` when the deployment should manage Gemini's local OTLP settings. Supported hook runtime installation is separate from the base system package because runtime hook configuration is per user or per project. Run hook helpers only when an interactive console user is present. Manage GitHub Copilot CLI's `COPILOT_OTEL_ENABLED=true` and `OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318` launch environment through MDM or another customer-owned policy; do the same for Factory Droid's `OTEL_TELEMETRY_ENDPOINT`. Configure OpenClaw Gateway in OpenClaw and point its diagnostics OTLP/HTTP export at the Beacon collector.+</Note>++## Uninstall and rollback++Use the vendor uninstall helper to remove endpoint service files. Set `BEACON_KEEP_LOGS=1` or the first uninstall argument to preserve runtime logs during removal. Set `BEACON_KEEP_CONFIG=1` or the second uninstall argument to preserve harness telemetry configuration.++```bash+/opt/beacon/jamf/scripts/uninstall.sh "$@"+/opt/beacon/fleet/scripts/uninstall.sh "$@"+```++The endpoint uninstall removes service and configuration state. Package payload removal remains under the MDM or package receipt lifecycle.++## Related++<Columns cols={2}>+ <Card title="Enterprise security review" icon="shield-halved" href="/security/review">+ Review local collection, paths, content handling, network behavior, and security contact details.+ </Card>+ <Card title="Jamf" icon="laptop" href="/mdm/jamf">+ Deploy and inventory Beacon with Jamf Pro policies and extension attributes.+ </Card>+ <Card title="Fleet" icon="laptop-file" href="/mdm/fleet">+ Deploy Beacon with Fleet software, policies, queries, and scripts.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events into Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, or customer-managed pipelines.+ </Card>+</Columns>diff --git a/docs/mdm/jamf.mdx b/docs/mdm/jamf.mdxnew file mode 100644index 00000000..f05acdad--- /dev/null+++ b/docs/mdm/jamf.mdx@@ -0,0 +1,203 @@+---+title: "Jamf"+description: "Deploy and inventory the Beacon endpoint agent with Jamf Pro."+---++## Overview++Jamf Pro can deploy and inventory the local Beacon endpoint agent on managed Macs. Beacon's Jamf support is deployment-native: Jamf installs the package and reports endpoint health while Beacon writes telemetry to local JSONL without requiring a hosted account or Jamf Pro API credentials.++## What Jamf manages++| Signal | How it helps |+| --- | --- |+| Package installation | Deploy Beacon binaries, endpoint scripts, Jamf helpers, and extension attributes. |+| System endpoint configuration | Install launchd service files and collector configuration for system-mode telemetry. |+| Runtime telemetry location | Write endpoint events to `/var/log/beacon-agent/runtime.jsonl`. |+| Inventory and remediation | Use extension attributes and Smart Groups to identify missing, stale, or unhealthy installs. |++## Package layout++The macOS package includes Beacon binaries, endpoint helper scripts, and Jamf assets:++```text+/opt/beacon/bin/beacon+/opt/beacon/bin/beacon-otelcol+/opt/beacon/scripts/install-endpoint.sh+/opt/beacon/scripts/uninstall-endpoint.sh+/opt/beacon/jamf/extension-attributes/*.sh+/opt/beacon/jamf/scripts/*.sh+```++The package postinstall performs the default system install. That install creates system configuration and runtime state:++```text+/Library/Application Support/Beacon/Endpoint/config.json+/Library/Application Support/Beacon/Endpoint/otelcol.yaml+/Library/LaunchDaemons/com.beacon.endpoint.collector.plist+/var/log/beacon-agent/runtime.jsonl+```++## Deploy with Jamf Pro++Build or obtain a signed and notarized Beacon macOS package, upload it to Jamf Pro, and attach the package to a policy scoped to a pilot Smart Group. The package postinstall performs the default system install, so no script is required for the common deployment path.++<Steps>+ <Step title="Upload the Beacon package">+ Upload the signed Beacon macOS package to Jamf Pro. The package installs Beacon binaries under `/opt/beacon` and includes Jamf helper scripts and extension attributes.+ </Step>+ <Step title="Create an install policy">+ Create a Jamf policy that installs the Beacon package. Add the install helper only when the policy needs explicit parameters or a reinstall action:++ ```bash+ /opt/beacon/jamf/scripts/install.sh "$@"+ ```+ </Step>+ <Step title="Configure optional policy parameters">+ Set Jamf script parameters when using the install helper to override the defaults:++ | Parameter | Value |+ | --- | --- |+ | 4 | Harnesses, default `claude,codex`; include `gemini` to opt in Gemini CLI telemetry. Do not include GitHub Copilot CLI; configure its launch environment separately. |+ | 5 | OTLP gRPC port, default `4317`. |+ | 6 | OTLP HTTP port, default `4318`. |+ | 7 | Collector path, default `/opt/beacon/bin/beacon-otelcol`. |+ | 8 | No-start flag for `install.sh` only, accepts `1`, `true`, or `yes`. |+ | 9 | Splunk HEC endpoint URL. |+ | 10 | Splunk HEC token. |+ | 11 | Optional Splunk index. |+ | 12 | Optional Splunk source, default `beacon-endpoint-agent` when configured. |+ | 13 | Optional Splunk sourcetype, default `beacon:endpoint` when configured. |+ | 14 | Splunk TLS skip-verify flag, accepts `1`, `true`, or `yes`; use only for testing. |+ | 15 | Optional Splunk HEC CA certificate path. |+ </Step>+ <Step title="Validate the deployment">+ After the package deploys, validate the endpoint state on a managed Mac:++ ```bash+ sudo /opt/beacon/bin/beacon endpoint status --json+ sudo /opt/beacon/bin/beacon endpoint wazuh validate+ sudo launchctl print system/com.beacon.endpoint.collector+ ```+ </Step>+</Steps>++## Build a test package++When building from source, build the CLI and collector first, then assemble the macOS package:++```bash+cd cli/beacon+make build+cd ../..++cd collector-builder+ocb --config builder.yaml+cd ..++sh packaging/macos/build-pkg.sh+```++Set `PKG_SIGN_IDENTITY` to sign with `pkgbuild`, and set `NOTARYTOOL_PROFILE` to submit and staple the package with Apple's notary service.++## Inventory with extension attributes++Upload the scripts from `/opt/beacon/jamf/extension-attributes` to Jamf Pro to inventory:++- Beacon version+- Collector service health+- Last runtime event age in seconds+- Configured harnesses+- Runtime log writability+- Splunk HEC forwarding configuration state++Suggested Smart Groups:++- Beacon version is `not_installed`.+- Collector service health is not `running`.+- Last runtime event age is greater than `86400`.+- Runtime log writability is not `writable` or `creatable`.+- Splunk HEC forwarding is `not_configured` when HEC export is required.++Use `/opt/beacon/jamf/scripts/install-cursor-hooks.sh` as a separate user-context policy for hook telemetry. Set `BEACON_HOOK_HARNESSES=antigravity,claude,cursor,devin-cli,devin-desktop,factory,grok,hermes,opencode` when you want Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, and OpenCode hook integrations. Hook configuration is per user and should run only when an interactive console user is present. Gemini CLI is configured through the endpoint harness list instead; add `gemini` to Jamf parameter 4, for example `claude,codex,gemini`. GitHub Copilot CLI is MDM-managed outside the Beacon harness list; configure `COPILOT_OTEL_ENABLED=true` and `OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318` in Copilot's launch environment. OpenClaw Gateway is configured in OpenClaw, not through Jamf hook helpers.++## Troubleshooting++<AccordionGroup>+ <Accordion title="Beacon is not installed">+ If the Beacon version extension attribute reports `not_installed`, confirm the Jamf policy installed the Beacon package.++ On the device, verify that the expected files exist:++ ```bash+ ls /opt/beacon/bin/beacon+ ls /opt/beacon/jamf/scripts/install.sh+ ```++ Re-run the install policy after confirming the package is scoped to the device.+ </Accordion>+ <Accordion title="Collector service is not running">+ Check the endpoint status and launchd service state:++ ```bash+ sudo /opt/beacon/bin/beacon endpoint status --json+ sudo launchctl print system/com.beacon.endpoint.collector+ ```++ If the service file or collector configuration drifted, run `/opt/beacon/jamf/scripts/repair.sh` from a Jamf remediation policy.+ </Accordion>+ <Accordion title="Runtime events are stale or missing">+ Verify that the runtime log exists and is writable:++ ```bash+ sudo test -w /var/log/beacon-agent/runtime.jsonl+ sudo /opt/beacon/bin/beacon endpoint wazuh validate+ ```++ If validation succeeds but events remain stale, confirm the configured harnesses match the agent harnesses installed or configured for the device and that the local collector ports are not in use by another process. If GitHub Copilot CLI events are missing, confirm Copilot's launch environment includes `COPILOT_OTEL_ENABLED=true` and a localhost OTLP HTTP endpoint. If Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, or OpenCode hook events are missing, confirm the separate user-context hook policy has run for the logged-in user. For OpenClaw Gateway, confirm the `diagnostics-otel` plugin is enabled and pointed at Beacon's OTLP HTTP receiver.+ </Accordion>+ <Accordion title="Configured harnesses are wrong">+ Check Jamf parameter 4 on the install policy. The default is `claude,codex`; set the parameter explicitly when you want a narrower or broader harness list. Include `gemini` when Gemini CLI telemetry should be managed. Do not include GitHub Copilot CLI in this list; manage Copilot's OTel environment separately.++ After changing the policy, run the repair script so Beacon reapplies harness telemetry configuration without removing runtime logs.+ </Accordion>+ <Accordion title="Splunk HEC is not configured">+ Check Jamf parameters 9 and 10, or the `BEACON_SPLUNK_HEC_ENDPOINT` and `BEACON_SPLUNK_HEC_TOKEN` environment variables used by the install policy.++ Use the Splunk HEC forwarding extension attribute to verify whether endpoint configuration contains a Splunk destination. On the device, confirm the non-secret destination fields:++ ```bash+ sudo /opt/beacon/bin/beacon endpoint status --system --json+ ```+ </Accordion>+</AccordionGroup>++## Repair and uninstall++Use `/opt/beacon/jamf/scripts/repair.sh` as a remediation policy for Macs where extension attributes report a stale or unhealthy install.++Use `/opt/beacon/jamf/scripts/uninstall.sh` to remove endpoint service files. Set `BEACON_KEEP_LOGS=1` or Jamf parameter 4 to preserve runtime logs during removal. Set `BEACON_KEEP_CONFIG=1` or Jamf parameter 5 to preserve harness telemetry configuration.++## Related++<Columns cols={2}>+ <Card title="MDM deployment" icon="laptop-mobile" href="/mdm">+ Review the broader Jamf, Fleet, and macOS MDM deployment model.+ </Card>+ <Card title="Fleet" icon="laptop-file" href="/mdm/fleet">+ Deploy Beacon with Fleet software, policies, queries, and scripts.+ </Card>+ <Card title="Log forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events into Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, or customer-managed pipelines.+ </Card>+</Columns>++## Smoke test++Before publishing or distributing a package, run the non-root endpoint smoke test on a macOS host or VM:++```bash+sh packaging/macos/smoke-endpoint.sh+```++The smoke test builds a temporary Beacon binary, uses a temporary `HOME`, runs a default user-mode install with `--no-start`, validates status and Wazuh output, installs supported runtime hooks, uninstalls, and preserves the runtime log long enough to assert expected events were written.diff --git a/docs/runtimes/antigravity-cli.mdx b/docs/runtimes/antigravity-cli.mdxnew file mode 100644index 00000000..0785cb85--- /dev/null+++ b/docs/runtimes/antigravity-cli.mdx@@ -0,0 +1,72 @@+---+title: "Antigravity CLI"+description: "Asymptote support details for Antigravity CLI endpoint telemetry"+---++## Runtime Overview++Asymptote supports Antigravity CLI through native hook payloads sent to `beacon-hooks`. Antigravity support was added in the endpoint agent in `v0.0.29`.++## Prerequisites++Before enabling Antigravity hooks, make sure:++- Antigravity CLI is installed as `antigravity` or `antigravity-cli`, or an Antigravity hook config directory exists.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness antigravity`.+- For project-level collection, install hooks from the target project with `--level project`.+- Antigravity is restarted after hook install or removal so new sessions load the updated hook configuration.++## Collection path++Antigravity invokes Asymptote's hook adapter from Antigravity hook configuration. The adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote detects Antigravity through the `antigravity` or `antigravity-cli` executable, `~/.gemini/config`, or `./.agents`, then checks Asymptote hook configuration.++Use `beacon endpoint hooks status --harness antigravity` to inspect Antigravity hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Antigravity hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness antigravity+```++For project-level hooks, run:++```bash title="Install project-level hooks"+beacon endpoint hooks install --harness antigravity --level project+```++Asymptote writes user-level Antigravity hooks to `~/.gemini/config/hooks.json` and project-level hooks to `./.agents/hooks.json`. It manages a `beacon-endpoint` hook block and preserves unrelated hook blocks.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through `PreInvocation` and `UserPromptSubmit` hooks |+| Command, tool, and file telemetry | Supported for pre-tool, post-tool, invocation stop, command, failed edit, quoted path, diff, and file edit payloads where Antigravity exposes them |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Antigravity hooks are installed separately in the logged-in user's context or project context |++Antigravity can invoke a pre-tool hook before its transcript file contains readable prompt text. Asymptote waits until the transcript is available before marking `prompt.submitted` as emitted, so the next hook in the same session can still record the prompt event.++## Deployment notes++Restart Antigravity after installing or removing hooks so new sessions pick up the updated hook configuration.++If Antigravity telemetry is missing, check the selected hook level, confirm the hook file contains commands with `--platform antigravity`, and run `beacon endpoint hooks status --harness antigravity`.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/claude-code-ci.mdx b/docs/runtimes/claude-code-ci.mdxnew file mode 100644index 00000000..ef2b83ba--- /dev/null+++ b/docs/runtimes/claude-code-ci.mdx@@ -0,0 +1,154 @@+---+title: "CI Agent Telemetry"+description: "Capture supported agent telemetry in CI with Asymptote"+---++<Frame>+ <iframe+ src="https://www.loom.com/embed/f45c536b9f37455493f7d513ce6f1866?t=0s"+ title="CI Agent Telemetry walkthrough"+ allowFullScreen+ style={{ aspectRatio: "16 / 9", width: "100%", border: 0 }}+ />+</Frame>++## Runtime Overview++Asymptote can capture supported agent telemetry for a single CI job without installing a persistent endpoint service on the runner. The CI integration starts a temporary local collector, configures the selected agent harness, writes normalized CI runtime JSONL, and validates that events were captured before the job exits.++## How It Works++Use `beacon ci exec` when your workflow runs the agent command directly:++```bash title="Wrap one agent command"+beacon ci exec -- <agent command>+```++For example, wrap a Claude Code prompt:++```bash title="Wrap Claude Code"+beacon ci exec -- claude -p "Review this pull request"+```++For third-party actions that launch an agent internally, use CI session mode:++```bash title="Wrap multiple CI steps"+beacon ci start --harness claude+# run an agent action or CI step here+beacon ci finish --min-events 1+```++During collection, Asymptote:++1. Starts a temporary local OpenTelemetry collector.+2. Configures supported agent telemetry for the wrapped command or later session steps.+3. Runs the command after `--` or lets later CI steps inherit session exports.+4. Writes normalized CI runtime events to `runtime.jsonl`.+5. Validates that matching agent events were captured.+6. Leaves the completed runtime log available as a CI artifact or upload target.++By default, Asymptote writes CI artifacts under `$RUNNER_TEMP/beacon` when `RUNNER_TEMP` is available. Otherwise it uses the system temp directory.++| Artifact | Default path |+| --- | --- |+| Runtime log | `$RUNNER_TEMP/beacon/runtime.jsonl` |+| Collector config | `$RUNNER_TEMP/beacon/otelcol.yaml` |+| Collector spool | `$RUNNER_TEMP/beacon/spool/otlp.jsonl` |++## Telemetry Coverage++CI collection captures supported prompt, tool, command, file, lifecycle, and run context where the configured agent emits telemetry during the job. For example, Claude Code CI collection captures Claude Code events when the `claude` harness is configured. When `GITHUB_ACTIONS=true`, Asymptote also records GitHub Actions metadata such as workflow, run ID, commit, ref, and actor.++Asymptote applies redaction, sanitization, truncation, and event-size limits before writing the CI runtime JSONL file. Artifact retention, access, object storage, and downstream forwarding remain controlled by your CI and security pipeline.++## GitHub Actions++Use the Asymptote GitHub Action when you want the workflow to install the CI collector and upload the runtime log artifact. Pass a command when the workflow invokes the agent directly.++```yaml+- name: Run an agent with Asymptote telemetry+ uses: asymptote-labs/[email protected]+ with:+ command: claude --print "Review this pull request"+ upload-artifact: "true"+ artifact-name: beacon-runtime-log+```++To wrap a third-party action that launches an agent internally, start and finish a Beacon session around that action. Anthropic's Claude Code Security Review action is one example:++```yaml+- name: Start Asymptote telemetry+ uses: asymptote-labs/[email protected]+ with:+ mode: start+ harnesses: claude++- uses: anthropics/claude-code-security-review@main+ with:+ claude-api-key: ${{ secrets.CLAUDE_API_KEY }}++- name: Finish Asymptote telemetry+ if: always()+ uses: asymptote-labs/[email protected]+ with:+ mode: finish+ min-events: "1"+```++See the sample workflow:++- [Claude Code telemetry workflow](https://github.com/Asymptote-Labs/agent-beacon/blob/main/examples/github-actions/claude-code-telemetry.yml)+- [Claude Code Security Review session workflow](https://github.com/Asymptote-Labs/agent-beacon/blob/main/examples/github-actions/claude-security-review-session.yml)++## Upload To Object Storage++Use `--upload` when the completed `runtime.jsonl` should be handed off through object storage after validation.++Upload to Google Cloud Storage:++```yaml+- uses: google-github-actions/auth@v2+ with:+ workload_identity_provider: ${{ secrets.BEACON_GCP_WORKLOAD_IDENTITY_PROVIDER }}+ service_account: ${{ secrets.BEACON_GCP_SERVICE_ACCOUNT }}++- name: Run an agent with Asymptote telemetry+ uses: asymptote-labs/[email protected]+ env:+ BEACON_CI_GCS_BUCKET: my-beacon-telemetry+ BEACON_CI_GCS_PREFIX: github-actions+ with:+ command: claude --print "Review this pull request"+ upload: gcs+```++See the sample workflow:++- [GCS upload telemetry workflow](https://github.com/Asymptote-Labs/agent-beacon/blob/main/examples/github-actions/gcs-upload-telemetry.yml)++## Validation Behavior++By default, `beacon ci exec` fails the step when telemetry validation fails. Set `--require-telemetry=false` or the action input `require-telemetry: "false"` when telemetry health should warn but not gate the child command result.++```bash title="Warn instead of failing on telemetry validation"+beacon ci exec \+ --require-telemetry=false \+ -- claude -p "Inspect the changed files"+```++Validate an existing runtime log after the fact:++```bash title="Validate an existing runtime log after the fact"+beacon ci validate --log-path "$RUNNER_TEMP/beacon/runtime.jsonl"+```++## Related++<Columns cols={2}>+ <Card title="beacon ci" icon="terminal" href="/cli/ci">+ Review the full command manual for wrapping agent runs in CI.+ </Card>+ <Card title="CI Telemetry Exports" icon="upload" href="/log-forwarding/ci-telemetry-exports">+ Export CI runtime JSONL through artifacts, S3, GCS, or downstream pipelines.+ </Card>+</Columns>diff --git a/docs/runtimes/claude-code-cloud-agents.mdx b/docs/runtimes/claude-code-cloud-agents.mdxnew file mode 100644index 00000000..1f544405--- /dev/null+++ b/docs/runtimes/claude-code-cloud-agents.mdx@@ -0,0 +1,297 @@+---+title: "Claude Code Cloud Agents"+description: "Capture Claude Code cloud agent telemetry and forward cloud-agent runtime logs to customer-managed Google Cloud Storage"+---++<Frame>+ <iframe+ src="https://www.loom.com/embed/5de72ffb97d7409db292119aada1218b?t=0s"+ title="Claude Code Cloud Agents walkthrough"+ allowFullScreen+ style={{ aspectRatio: "16 / 9", width: "100%", border: 0 }}+ />+</Frame>++## Integration Overview++Use this integration to capture Claude Code cloud-agent activity and upload each+session log to your own Google Cloud Storage bucket. It is meant for testing+cloud-agent telemetry without running a hosted Asymptote backend.++This flow depends on the Beacon CLI. You run `beacon cloud` commands from your+workstation to create the GCS upload path, print Claude environment variables,+and generate the setup script that runs inside the Claude cloud sandbox.++<Info>+ If you're interested in leveraging this telemetry ingest across your+ enterprise, [Asymptote Managed](/deployment/managed) is designed for+ production cloud-agent telemetry ingest at scale.+</Info>++## Overview++Claude Code Cloud Agents run in Anthropic's cloud environment, so Beacon cannot+use the long-running endpoint agent that local installs use. Instead, the setup+script installs Beacon hooks inside the sandbox. During a cloud-agent session,+those hooks write `/tmp/beacon/runtime.jsonl`; at the end of the session, Beacon+uploads that file to GCS.++```mermaid+flowchart LR+ ClaudeWeb["Claude Code Cloud Agents"] --> Hooks["Beacon hooks in sandbox"]+ Hooks --> RuntimeLog["/tmp/beacon/runtime.jsonl"]+ RuntimeLog --> GCS["Customer-managed GCS bucket"]+```++The setup has three parts:++1. Create a dedicated GCS bucket and uploader service account with Beacon.+2. Add Beacon cloud telemetry environment variables to the Claude Code cloud environment.+3. Paste a Beacon-generated setup script into the Claude cloud environment.++Each Claude Code cloud agent session writes one readable JSONL object:++```text+gs://<bucket>/<prefix>/provider=claude_code_web/user_id=<user_id>/run_id=<claude_session_id>/runtime.jsonl+```++## Prerequisites++- Beacon CLI `v0.0.51` or later.+- `gcloud` installed and authenticated to the Google Cloud project you will use+ for telemetry storage.+- A Google Cloud project where you can create buckets, service accounts, IAM+ bindings, and service account keys.+- Claude Code cloud agent access for the repository you want to test.+- A Claude cloud environment with outbound access to:+ - `oauth2.googleapis.com`+ - `storage.googleapis.com`+ - `github.com`+ - `*.githubusercontent.com`++Install or upgrade Beacon before you start:++```bash+brew tap asymptote-labs/tap+brew install beacon+brew upgrade beacon+beacon version+```++Authenticate `gcloud` and select your project:++```bash+gcloud auth login+gcloud config set project <your-gcp-project>+```++## 1. Create the GCS Upload Path++From your workstation, choose a bucket and prefix:++```bash+export GCP_PROJECT="your-gcp-project"+export BEACON_TEST_BUCKET="your-beacon-cloud-agent-traces"+export BEACON_CLOUD_GCS_PREFIX="agent-traces/customer=my-team"+```++Review the GCP changes Beacon will make:++```bash+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_TEST_BUCKET" \+ --location us-central1 \+ --prefix "$BEACON_CLOUD_GCS_PREFIX" \+ --service-account beacon-cloud-trace-uploader \+```++<Frame caption="Review the bucket, service account, and IAM commands before applying them.">+ <img src="/images/claude-code-on-the-web/beacon-cloud-setup-print.png" width="720" alt="Terminal showing beacon cloud gcs setup --print output with gcloud commands for creating the bucket, service account, and IAM binding." />+</Frame>++Apply the setup and print the Claude environment variables:++```bash+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_TEST_BUCKET" \+ --location us-central1 \+ --prefix "$BEACON_CLOUD_GCS_PREFIX" \+ --service-account beacon-cloud-trace-uploader \+ --apply \+ --print-env+```++Copy the printed values. Redact `BEACON_CLOUD_GCS_CREDENTIALS_B64` anywhere you+share screenshots or logs.++<Frame caption="Copy the printed BEACON_CLOUD_GCS_* variables into the Claude cloud environment.">+ <img src="/images/claude-code-on-the-web/beacon-cloud-setup-print-env.png" alt="Terminal showing beacon cloud gcs setup --apply --print-env output with bucket, prefix, and credentials environment variables." />+</Frame>++The helper creates a dedicated uploader service account and grants it object+upload access to the selected bucket.++## 2. Configure Claude Code Cloud Agents++Open the Claude Code web application and select the cloud environment for your+repository.++<Frame caption="Select or create the Claude cloud environment that should run Beacon telemetry hooks.">+ <img src="/images/claude-code-on-the-web/add-cloud-environment-selector.png" width="720" alt="Claude Code cloud environment selector showing a Beacon Test cloud environment selected." />+</Frame>++Set network access to **Custom** and allow:++```text+oauth2.googleapis.com+storage.googleapis.com+github.com+*.githubusercontent.com+```++Add these environment variables:++```bash+BEACON_ORIGIN=cloud+BEACON_RUN_PROVIDER=claude_code_web+BEACON_RUN_EPHEMERAL=true+BEACON_CLOUD_USER_ID_HASH=<stable-user-or-test-id>+BEACON_CLOUD_GCS_BUCKET=<bucket-from-setup>+BEACON_CLOUD_GCS_PREFIX=<prefix-from-setup>+BEACON_CLOUD_GCS_CREDENTIALS_B64=<base64-service-account-json>+```++<Frame caption="Configure network access, Beacon metadata, GCS bucket settings, and the setup script in the Claude cloud environment.">+ <img src="/images/claude-code-on-the-web/claude-env-settings.png" alt="Claude Code cloud environment settings showing custom network domains, Beacon environment variables, and a setup script." />+</Frame>++## 3. Add the Setup Script++Generate the setup script for your Beacon release:++```bash+beacon cloud claude-web print-setup --version v0.0.66+```++Paste the generated script into the Claude environment **Setup script** field.+The script:++- installs `beacon` and `beacon-hooks` in `/tmp/beacon/bin`,+- finds the cloud sandbox repository root,+- writes `.claude/settings.local.json` inside the sandbox clone,+- excludes generated Claude settings from git commits.++<Tip>+ If you are testing unreleased Beacon changes from a branch, build `beacon` and+ `beacon-hooks` from that branch in the setup script instead of using+ `print-setup --version`.+</Tip>++## 4. Run a Cloud Agent Task++Start a Claude Code cloud agent task that uses tools. You can start the task+from the Claude app on your phone or from the Claude Code web application. For+example:++```text+Read the README, run pwd && ls, create a tiny temporary markdown note under /tmp or in the repo, then summarize what you did.+```++<Frame caption="A successful Claude Code cloud agent session runs the setup script, starts Claude Code, and produces normal agent activity.">+ <img src="/images/claude-code-on-the-web/session-init-and-task-output.png" alt="Claude Code cloud agent session showing setup completed, a README task, shell command activity, and a temporary note creation." />+</Frame>++## 5. Verify GCS Upload++List the uploaded session objects:++```bash+gcloud storage ls --recursive "gs://${BEACON_TEST_BUCKET}/${BEACON_CLOUD_GCS_PREFIX}/"+```++You should see a path like:++```text+provider=claude_code_web/user_id=<user_id>/run_id=cse_.../runtime.jsonl+```++<Frame caption="Beacon uploads one readable runtime.jsonl object per Claude Code cloud agent session.">+ <img src="/images/claude-code-on-the-web/gcs-object-browser.png" alt="Google Cloud Storage object browser showing Beacon cloud agent traces partitioned by provider, user ID, Claude run ID, and runtime.jsonl." />+</Frame>++Inspect the log:++```bash+gcloud storage cat "gs://${BEACON_TEST_BUCKET}/${BEACON_CLOUD_GCS_PREFIX}/provider=claude_code_web/user_id=<user_id>/run_id=<run_id>/runtime.jsonl" | head+```++Expected fields include:++```text+vendor=beacon+product=endpoint-agent+schema_version=1.0+origin=cloud+harness.name=claude+run.provider=claude_code_web+run.run_id=cse_...+```++## Security Note++The self-serve GCS flow above creates a dedicated service account scoped to+object uploads for one bucket, then stores its credentials in the Claude Code+environment. This is useful for proof-of-concept testing, but treat that+environment variable as a sensitive credential.++Claude notes that cloud environment variables are visible to users of that+environment and recommends avoiding secrets there when possible. Avoid broad+credentials and review access before using this flow with sensitive telemetry.++## Troubleshooting++### The bucket is empty++Confirm the Claude setup script ran and generated hooks:++```bash+ls -la .claude+sed -n '1,120p' .claude/settings.local.json+```++Confirm hooks wrote telemetry:++```bash+ls -l /tmp/beacon/runtime.jsonl+head /tmp/beacon/runtime.jsonl+```++If `runtime.jsonl` exists but GCS is empty, check network access and GCS+credentials. The cloud sandbox must reach both `oauth2.googleapis.com` and+`storage.googleapis.com`.++### Claude tries to commit hook settings++The setup script should write `.claude/settings.local.json`, not+`.claude/settings.json`. `settings.local.json` is intended for local or+sandbox-specific configuration and should stay out of commits.++## Related++<Columns cols={2}>+ <Card title="Claude Code runtime support" icon="terminal" href="/runtimes/claude-code">+ Review local Claude Code telemetry through OTLP and hooks.+ </Card>+ <Card title="Google Cloud Storage forwarding" icon="database" href="/log-forwarding/gcs">+ Review local endpoint GCS forwarding for persistent endpoint deployments.+ </Card>+ <Card title="Asymptote Managed" icon="cloud" href="/deployment/managed">+ Use managed secure ingest for production enterprise cloud-agent telemetry.+ </Card>+ <Card title="Agent Beacon on GitHub" icon="github" href="https://github.com/Asymptote-Labs/agent-beacon">+ Request new cloud-agent destinations or contribute support.+ </Card>+</Columns>diff --git a/docs/runtimes/claude-code.mdx b/docs/runtimes/claude-code.mdxnew file mode 100644index 00000000..81cccfe9--- /dev/null+++ b/docs/runtimes/claude-code.mdx@@ -0,0 +1,96 @@+---+title: "Claude Code"+description: "Asymptote support details for Claude Code endpoint telemetry"+---++## Runtime Overview++Asymptote supports Claude Code through local OpenTelemetry export to Asymptote's localhost collector, with optional hook telemetry for richer lifecycle and tool activity.++## Prerequisites++Before enabling Claude Code telemetry, make sure:++- Claude Code is installed and available as the `claude` executable for the user or managed endpoint.+- `beacon endpoint install` has run so the local collector, endpoint config, and runtime log path exist.+- The install includes the `claude` harness, either through the default harness list or an explicit `--harness claude` value.+- Your team has reviewed content handling and destination access for prompt telemetry.++## Collection paths++Claude Code exports OTLP telemetry to the local Asymptote collector. Asymptote writes normalized [endpoint events](/concepts/core-concepts#endpoint-event) to the configured runtime JSONL log and makes them available in the local dashboard.++For richer local telemetry, Asymptote can also install Claude Code hooks with the same hook adapter used by other supported runtimes:++```bash title="Install Claude Code hooks"+beacon endpoint hooks install --harness claude+beacon endpoint hooks status --harness claude+```++User-level hooks are written to `~/.claude/settings.json`. Project-level hooks are written to `./.claude/settings.json`:++```bash title="User-level hooks are written to ~/.claude/settings.json. Project-level hooks are written to ./.claude/settings.json"+beacon endpoint hooks install --harness claude --level project+```++## Claude Code Cloud Agents++Asymptote also supports proof-of-concept telemetry capture from Claude Code+cloud agents. The cloud setup path installs ephemeral Beacon hooks inside the+Claude cloud sandbox, writes `/tmp/beacon/runtime.jsonl`, and uploads the+session log to customer-managed Google Cloud Storage.++Start with [Claude Code Cloud Agents](/runtimes/claude-code-cloud-agents) when you want to+test Claude Code cloud agent telemetry without deploying Asymptote Managed.++<Warning>+ The self-serve GCS path passes a scoped service-account credential to the+ Claude Code cloud environment. Use it for evaluation and prototypes. For+ production enterprise deployments, use [Asymptote Managed](/deployment/managed)+ or contact Asymptote about secure forwarding in your own customer-managed+ infrastructure.+</Warning>++## Discovery and status++Asymptote detects Claude Code through the `claude` executable and Claude settings paths. Use `beacon endpoint discover` or `beacon endpoint status` to confirm that Claude Code is present and configured for local telemetry.++## Install or configuration support++`beacon endpoint install` configures Claude telemetry settings so Claude Code sends OTLP data to the local collector.++`beacon endpoint hooks install --harness claude` adds Asymptote-managed Claude Code hooks while preserving existing Claude settings and non-Asymptote hooks. `beacon endpoint hooks uninstall --harness claude` removes only Asymptote-managed Claude hook entries.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported when emitted through Claude Code OTLP or hooks |+| Command, tool, and file telemetry | Supported when emitted through Claude Code OTLP |+| Token usage and cost | Supported through OTLP token and cost metrics, with per-model and per-session attribution |+| Hook lifecycle and tool telemetry | Optional through `beacon endpoint hooks install --harness claude` |+| Claude Code cloud agent sessions | Supported through cloud sandbox hooks with GCS upload |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported through the system-mode package or MDM-managed settings |++Claude Code hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, `SubagentStart`, `SubagentStop`, `PermissionRequest`, and `SessionEnd`. Pre-tool matching includes common Claude tools such as `Bash`, `Edit`, `Write`, `MultiEdit`, `Read`, `Glob`, `Grep`, `WebFetch`, `WebSearch`, `Agent`, and `mcp__.*`.++## Deployment notes++For MDM deployments, use the signed and notarized macOS `.pkg` so endpoint events land in `/var/log/beacon-agent/runtime.jsonl`. The package installs the endpoint agent under `/opt/beacon`, creates system endpoint configuration, and loads the local collector LaunchDaemon.++If a system collector is running while the CLI is reading the default per-user log, `beacon endpoint status` and the local dashboard surface a runtime-log source warning so you can tell where OTLP events are being written.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Asymptote discovers and configures supported runtimes.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall Claude Code hook telemetry.+ </Card>+</Columns>diff --git a/docs/runtimes/claude-cowork.mdx b/docs/runtimes/claude-cowork.mdxnew file mode 100644index 00000000..4d466ec0--- /dev/null+++ b/docs/runtimes/claude-cowork.mdx@@ -0,0 +1,62 @@+---+title: "Claude Cowork"+description: "Asymptote support details for Claude Cowork endpoint telemetry"+---++## Runtime Overview++Asymptote supports Claude Cowork through admin-configured OpenTelemetry from Anthropic's service.++## Prerequisites++Before enabling Claude Cowork telemetry, make sure:++- You have Claude organization admin access to configure OpenTelemetry export.+- Asymptote has a durable collector endpoint that Claude Cowork can reach; production setups should use public HTTPS.+- You have run `beacon endpoint integrations claude-cowork print-config` to get the exact OTLP settings for the Claude admin console.+- You can validate arrival with `beacon endpoint integrations claude-cowork validate` after Cowork activity is generated.+- Your content handling expectations match what Claude Cowork emits through OTLP.++## Collection path++Claude Cowork exports OTLP telemetry from Anthropic's service to a customer-managed collector endpoint. After events reach Asymptote's collector path, Asymptote writes normalized endpoint events to the runtime JSONL log and makes them available in the local dashboard.++## Discovery and status++Asymptote treats Claude Cowork as an admin-configured source because telemetry is enabled in Claude organization settings rather than local endpoint settings.++Use `beacon endpoint integrations claude-cowork status` to report whether Claude Cowork is detected and whether Cowork events have been observed in the endpoint runtime log.++## Install or configuration support++Claude Cowork is configured in Claude organization settings, not by `beacon endpoint install`.++Use `beacon endpoint integrations claude-cowork print-config` to print the OTLP settings needed for the Claude admin console, then use `beacon endpoint integrations claude-cowork validate` to confirm events are arriving.++Claude Cowork is not hook-based.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported when emitted through Claude Cowork OTLP |+| Command, tool, and file telemetry | Supported when emitted through Claude Cowork OTLP |+| Local JSONL and dashboard | Supported after events reach the collector |+| MDM deployment | Uses a durable customer-managed HTTPS collector endpoint rather than local MDM hook config |++## Deployment notes++Production Cowork telemetry should use a public HTTPS collector endpoint, not a laptop or ngrok tunnel.++For testing, validate whether Cowork events have reached the runtime log before expecting them in the dashboard or downstream SIEM.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Claude Cowork commands" icon="plug" href="/cli/claude-cowork">+ Print config, check status, and validate Cowork telemetry.+ </Card>+</Columns>diff --git a/docs/runtimes/codex-cli.mdx b/docs/runtimes/codex-cli.mdxnew file mode 100644index 00000000..50b81e7d--- /dev/null+++ b/docs/runtimes/codex-cli.mdx@@ -0,0 +1,98 @@+---+title: "Codex CLI"+description: "Asymptote support details for Codex CLI endpoint telemetry"+---++## Runtime Overview++Asymptote supports Codex CLI through local OTLP logs and token usage metrics, with optional raw Codex spans for troubleshooting.++## Prerequisites++Before enabling Codex CLI telemetry, make sure:++- Codex CLI is installed and available as the `codex` executable for the user or managed endpoint.+- `beacon endpoint install` has run so the local collector, endpoint config, and runtime log path exist.+- The install includes the `codex` harness, either through the default harness list or an explicit `--harness codex` value.+- Your team has reviewed content handling and destination access for prompt telemetry.++## Collection path++Codex CLI exports local OpenTelemetry logs and metrics to Asymptote's localhost collector. Asymptote uses Codex semantic logs for session, prompt, approval, and tool-result events, and keeps the `codex.turn.token_usage` metric for token attribution. Other high-volume Codex metrics, and Codex spans, are suppressed by default.++Use `--include-codex-spans` during install or repair only when you need raw Codex spans for troubleshooting.++### Token usage and cost++`beacon endpoint install` configures both the Codex log exporter and the Codex metrics exporter in `~/.codex/config.toml`, so Codex's per-turn `codex.turn.token_usage` metric reaches the collector. Beacon normalizes it into the canonical `gen_ai.usage` fields (`input_tokens`, `output_tokens`, `cache_read.input_tokens`, `reasoning.output_tokens`). Codex reports prompt tokens inclusive of the cached portion, so Beacon subtracts cached input to keep `input_tokens` and `cache_read` disjoint and avoid double-counting in totals.++Two attribution limits are specific to Codex and follow from what Codex emits, not from Beacon:++- **No cost.** Codex does not emit a cost signal, so `gen_ai.usage.cost_usd` is empty for Codex turns. Beacon never derives cost from local pricing tables.+- **No per-session attribution.** Codex's usage metric carries no conversation id, so Codex turns do not roll up by session. Model, harness, repository, and run attribution work normally.++See [How token attribution works](/cli/endpoint-tokens#how-token-attribution-works) for the cross-runtime model.++## CI support++Asymptote can also capture Codex telemetry in CI with `beacon ci start` and `beacon ci finish`. In GitHub Actions, the Asymptote action creates a temporary `CODEX_HOME` with Codex OTLP settings and exposes it as `steps.<id>.outputs.codex-home` for actions such as `openai/codex-action`.++```yaml+- name: Start Asymptote telemetry+ id: beacon+ uses: asymptote-labs/[email protected]+ with:+ mode: start+ harnesses: codex++- uses: openai/codex-action@main+ with:+ openai-api-key: ${{ secrets.OPENAI_API_KEY }}+ codex-home: ${{ steps.beacon.outputs.codex-home }}+ prompt: "Review this pull request"++- name: Finish Asymptote telemetry+ if: always()+ uses: asymptote-labs/[email protected]+ with:+ mode: finish+```++## Discovery and status++Asymptote detects Codex CLI through the `codex` executable and `~/.codex/config.toml`. Use `beacon endpoint discover` or `beacon endpoint status` to confirm that Codex CLI is present and configured.++## Install or configuration support++`beacon endpoint install` writes Codex OTLP exporter tables to `~/.codex/config.toml`.++Codex CLI is not currently configured through Asymptote's hook adapter.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported when emitted through Codex semantic logs |+| Command, tool, and file telemetry | Supported when emitted through Codex semantic logs |+| Token usage | Supported through the `codex.turn.token_usage` metric (input, output, cache read, reasoning) |+| Cost attribution | Not available; Codex emits no cost signal |+| Per-session attribution | Not available; Codex usage metric carries no conversation id |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported through the system-mode package or MDM-managed config |++## Deployment notes++For MDM deployments, use the signed and notarized macOS `.pkg` so endpoint events land in `/var/log/beacon-agent/runtime.jsonl`. The package installs the endpoint agent under `/opt/beacon`, creates system endpoint configuration, and loads the local collector LaunchDaemon.++If a system collector is running while the CLI is reading the default per-user log, `beacon endpoint status` and the local dashboard surface a runtime-log source warning so you can tell where OTLP events are being written.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Asymptote discovers and configures supported runtimes.+ </Card>+</Columns>diff --git a/docs/runtimes/cursor-cloud-agents.mdx b/docs/runtimes/cursor-cloud-agents.mdxnew file mode 100644index 00000000..68791564--- /dev/null+++ b/docs/runtimes/cursor-cloud-agents.mdx@@ -0,0 +1,336 @@+---+title: "Cursor Cloud Agents"+description: "Capture Cursor cloud agent telemetry and forward cloud-agent runtime logs to customer-managed Google Cloud Storage"+---++## Integration Overview++Use this integration to capture Cursor cloud-agent activity and upload each+session log to your own Google Cloud Storage bucket. It is meant for testing+cloud-agent telemetry without running a hosted Asymptote backend.++This flow depends on the Beacon CLI. You run `beacon cloud` commands from your+workstation to create the GCS upload path, generate project hooks to commit to+your repository, and generate the setup script that installs Beacon binaries in+the Cursor cloud sandbox.++<Info>+ If you're interested in leveraging this telemetry ingest across your+ enterprise, [Asymptote Managed](/deployment/managed) is designed for+ production cloud-agent telemetry ingest at scale.+</Info>++## Overview++Cursor Cloud Agents run in Cursor's cloud environment, so Beacon cannot use the+long-running endpoint agent that local installs use. Instead, commit+project-level Cursor hooks to `.cursor/hooks.json` and use the setup script to+install Beacon binaries in the sandbox. During a cloud-agent session, those+hooks write `/tmp/beacon/runtime.jsonl`; Beacon refreshes the corresponding GCS+object as supported Cursor hook events run.++```mermaid+flowchart LR+ CursorCloud["Cursor Cloud Agents"] --> Hooks["Beacon hooks in sandbox"]+ Hooks --> RuntimeLog["/tmp/beacon/runtime.jsonl"]+ RuntimeLog --> GCS["Customer-managed GCS bucket"]+```++The setup has four parts:++1. Create a dedicated GCS bucket and uploader service account with Beacon.+2. Add Beacon cloud telemetry environment variables to the Cursor cloud environment.+3. Commit Beacon's project-level Cursor hooks to `.cursor/hooks.json`.+4. Run a Beacon-generated setup script inside the Cursor cloud environment to+ install `/tmp/beacon/bin/beacon` and `/tmp/beacon/bin/beacon-hooks`.++Each Cursor cloud agent conversation writes one readable JSONL object:++```text+gs://<bucket>/<prefix>/provider=cursor_cloud/user_id=<user_id>/run_id=<cursor_conversation_id>/runtime.jsonl+```++Beacon uses Cursor's `conversation_id` hook field as the default `run_id` for+Cursor Cloud telemetry. If you set `BEACON_RUN_ID` yourself, Beacon preserves+that value instead.++## Prerequisites++- Beacon CLI `v0.0.56` or later.+- `gcloud` installed and authenticated to the Google Cloud project you will use+ for telemetry storage.+- A Google Cloud project where you can create buckets, service accounts, IAM+ bindings, and service account keys.+- Cursor Cloud Agent access for the repository you want to test.+- A Cursor cloud environment with outbound access to:+ - `oauth2.googleapis.com`+ - `storage.googleapis.com`+ - `github.com`+ - `*.githubusercontent.com`++Install or upgrade Beacon before you start:++```bash+brew tap asymptote-labs/tap+brew install beacon+brew upgrade beacon+beacon version+```++Authenticate `gcloud` and select your project:++```bash+gcloud auth login+gcloud config set project <your-gcp-project>+```++## 1. Create the GCS Upload Path++From your workstation, choose a bucket and prefix:++```bash+export GCP_PROJECT="your-gcp-project"+export BEACON_TEST_BUCKET="your-beacon-cloud-agent-traces"+export BEACON_CLOUD_GCS_PREFIX="agent-traces/customer=my-team"+```++Review the GCP changes Beacon will make:++```bash+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_TEST_BUCKET" \+ --location us-central1 \+ --prefix "$BEACON_CLOUD_GCS_PREFIX" \+ --service-account beacon-cloud-trace-uploader \+```++<Frame caption="Review the bucket, service account, and IAM commands before applying them.">+ <img src="/images/cursor-cloud-agents/beacon-cloud-setup-print.png" width="720" alt="Terminal showing beacon cloud gcs setup --print output with gcloud commands for creating the bucket, service account, and IAM binding." />+</Frame>++Apply the setup and print the cloud telemetry environment variables:++```bash+beacon cloud gcs setup \+ --project "$GCP_PROJECT" \+ --bucket "$BEACON_TEST_BUCKET" \+ --location us-central1 \+ --prefix "$BEACON_CLOUD_GCS_PREFIX" \+ --service-account beacon-cloud-trace-uploader \+ --apply \+ --print-env+```++Copy the printed values. Redact `BEACON_CLOUD_GCS_CREDENTIALS_B64` anywhere you+share screenshots or logs.++<Frame caption="Copy the printed BEACON_CLOUD_GCS_* variables into the Cursor cloud environment.">+ <img src="/images/cursor-cloud-agents/beacon-cloud-setup-print-env.png" alt="Terminal showing beacon cloud gcs setup --apply --print-env output with bucket, prefix, and credentials environment variables." />+</Frame>++The helper creates a dedicated uploader service account and grants it object+upload access to the selected bucket.++## 2. Configure Cursor Cloud Agents++Open your Cursor Cloud Agent environment for the repository.++Add these environment variables:++```bash+BEACON_ORIGIN=cloud+BEACON_RUN_PROVIDER=cursor_cloud+BEACON_RUN_EPHEMERAL=true+BEACON_CLOUD_USER_ID_HASH=<stable-user-or-test-id>+BEACON_CLOUD_GCS_BUCKET=<bucket-from-setup>+BEACON_CLOUD_GCS_PREFIX=<prefix-from-setup>+BEACON_CLOUD_GCS_CREDENTIALS_B64=<base64-service-account-json>+```++<Frame caption="Configure network access and Beacon runtime secrets for Cursor Cloud Agents.">+ <img src="/images/cursor-cloud-agents/cursor-cloud-agent-config.png" alt="Cursor Cloud Agents settings showing network allowlist entries and Beacon runtime secrets for GCS upload." />+</Frame>++If your Cursor cloud environment restricts outbound network access, allow:++```text+oauth2.googleapis.com+storage.googleapis.com+github.com+*.githubusercontent.com+```++## 3. Commit Cursor Project Hooks++Cursor Cloud Agents load project hooks from `.cursor/hooks.json` at repository+checkout and task start. Generate the hook file locally, commit it, and push it+before starting cloud agents:++```bash+mkdir -p .cursor+beacon cloud cursor print-hooks \+ --binary-path /tmp/beacon/bin/beacon-hooks \+ --log-path /tmp/beacon/runtime.jsonl > .cursor/hooks.json+git add .cursor/hooks.json+git commit -m "Add Beacon Cursor Cloud hooks"+git push+```++<Warning>+ Do not rely on generating `.cursor/hooks.json` from inside the Cursor Cloud+ setup script. Cursor Cloud may load project hooks before the setup script+ creates files in the VM. Committing `.cursor/hooks.json` makes the hook config+ available when the agent starts.+</Warning>++## 4. Add the Setup Script++Generate the setup script for your Beacon release:++```bash+beacon cloud cursor print-setup --version v0.0.66+```++Paste the generated script into the Cursor cloud environment setup step. The+script:++- installs `beacon` and `beacon-hooks` in `/tmp/beacon/bin`,+- does not modify `.cursor/hooks.json`,+- expects project hooks to already be committed in the repository.++<Frame caption="Paste the generated Beacon setup script into the Cursor cloud environment update script.">+ <img src="/images/cursor-cloud-agents/cursor-environment-script.png" alt="Cursor cloud environment configuration showing a Beacon setup script in the update script field and Beacon runtime secrets below it." />+</Frame>++<Tip>+ If you are testing unreleased Beacon changes from a branch, build `beacon` and+ `beacon-hooks` from that branch in the setup script instead of using+ `print-setup --version`.+</Tip>++## 5. Run a Cloud Agent Task++Start a Cursor cloud agent task that uses tools. For example:++```text+Read the README, run pwd && ls, create a tiny temporary markdown note under /tmp or in the repo, then summarize what you did.+```++Beacon captures Cursor cloud hook activity such as tool use, shell execution,+file reads and edits, subagent lifecycle events, and compaction events where+Cursor exposes hook payloads.++<Note>+ Cursor Cloud Agents do not run `beforeSubmitPrompt`, `sessionStart`,+ `sessionEnd`, or `stop` hooks. Prompt text and final session lifecycle hooks+ are therefore not available through this self-serve hook path; Beacon records+ the supported in-sandbox events Cursor exposes after the cloud VM starts. See+ [Cursor's Cloud Agent hook support matrix](https://cursor.com/docs/hooks#cloud-agent-support)+ for the current platform support list.+</Note>++## 6. Verify GCS Upload++List the uploaded session objects:++```bash+gcloud storage ls --recursive "gs://${BEACON_TEST_BUCKET}/${BEACON_CLOUD_GCS_PREFIX}/"+```++You should see a path like:++```text+provider=cursor_cloud/user_id=<user_id>/run_id=<run_id>/runtime.jsonl+```++<Frame caption="Beacon uploads one readable runtime.jsonl object per Cursor cloud agent session.">+ <img src="/images/cursor-cloud-agents/gcs-object-browser.png" alt="Google Cloud Storage object browser showing Beacon cloud agent traces partitioned by provider, user ID, Cursor run ID, and runtime.jsonl." />+</Frame>++Inspect the log:++```bash+gcloud storage cat "gs://${BEACON_TEST_BUCKET}/${BEACON_CLOUD_GCS_PREFIX}/provider=cursor_cloud/user_id=<user_id>/run_id=<run_id>/runtime.jsonl" | head+```++Expected fields include:++```text+vendor=beacon+product=endpoint-agent+schema_version=1.0+origin=cloud+harness.name=cursor+run.provider=cursor_cloud+```++## Security Note++The self-serve GCS flow above creates a dedicated service account scoped to+object uploads for one bucket, then stores its credentials in the Cursor cloud+environment. This is useful for proof-of-concept testing, but treat that+environment variable as a sensitive credential.++Avoid broad credentials and review access before using this flow with sensitive+telemetry.++## Troubleshooting++### The bucket is empty++Confirm the Cursor setup script ran and installed binaries, and confirm the+repository checkout includes committed project hooks:++```bash+ls -la /tmp/beacon/bin+ls -la .cursor+sed -n '1,160p' .cursor/hooks.json+```++Confirm hooks wrote telemetry:++```bash+ls -l /tmp/beacon/runtime.jsonl+head /tmp/beacon/runtime.jsonl+```++If `runtime.jsonl` exists but GCS is empty, check network access and GCS+credentials. The cloud sandbox must reach both `oauth2.googleapis.com` and+`storage.googleapis.com`.++If `runtime.jsonl` does not exist, confirm the task used a Cursor Cloud+supported hook surface such as a file read, shell command, file edit, tool use,+subagent event, or compaction event. Prompt-only tasks do not emit+`beforeSubmitPrompt` in Cursor Cloud because the prompt is submitted before the+cloud VM exists. Cursor documents the supported and unsupported cloud hooks in+its [Cloud Agent hook support matrix](https://cursor.com/docs/hooks#cloud-agent-support).++### Cursor tries to commit hook settings++The setup script should not modify `.cursor/hooks.json`. If a cloud agent shows+changes to `.cursor/hooks.json`, update the setup script to `v0.0.56` or later+and remove older commands that ran `beacon cloud cursor install-hooks` inside+the VM.++```bash+git diff -- .cursor/hooks.json+```++## Related++<Columns cols={2}>+ <Card title="Cursor runtime support" icon="terminal" href="/runtimes/cursor">+ Review local Cursor telemetry through Beacon-managed hooks.+ </Card>+ <Card title="Google Cloud Storage forwarding" icon="database" href="/log-forwarding/gcs">+ Review local endpoint GCS forwarding for persistent endpoint deployments.+ </Card>+ <Card title="Asymptote Managed" icon="cloud" href="/deployment/managed">+ Use managed secure ingest for production enterprise cloud-agent telemetry.+ </Card>+ <Card title="Agent Beacon on GitHub" icon="github" href="https://github.com/Asymptote-Labs/agent-beacon">+ Request new cloud-agent destinations or contribute support.+ </Card>+</Columns>diff --git a/docs/runtimes/cursor.mdx b/docs/runtimes/cursor.mdxnew file mode 100644index 00000000..29ee4576--- /dev/null+++ b/docs/runtimes/cursor.mdx@@ -0,0 +1,73 @@+---+title: "Cursor"+description: "Asymptote support details for Cursor endpoint telemetry"+---++## Runtime Overview++Asymptote supports Cursor through native hook payloads sent to `beacon-hooks`.+For provider-managed Cursor cloud sessions, see+[Cursor Cloud Agents](/runtimes/cursor-cloud-agents).++## Prerequisites++Before enabling Cursor hooks, make sure:++- Cursor is installed for the user or the `~/.cursor` directory exists.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness cursor`.+- For project-level collection, install hooks from the target project with `--level project`.+- Cursor is restarted after hook install or removal so new sessions load the updated hook configuration.++## Collection path++Cursor invokes Asymptote's hook adapter from Cursor hook configuration. The adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote detects Cursor through the Cursor binary or `~/.cursor`, then checks Asymptote hook configuration.++Use `beacon endpoint hooks status --harness cursor` to inspect Cursor hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Cursor hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness cursor+```++For project-level hooks, run:++```bash title="Install project-level hooks"+beacon endpoint hooks install --harness cursor --level project+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported for local Cursor through `beforeSubmitPrompt` hooks; not available in Cursor Cloud Agents because Cursor submits the prompt before the cloud VM exists. See [Cursor's Cloud Agent hook support matrix](https://cursor.com/docs/hooks#cloud-agent-support). |+| Command, tool, and file telemetry | Supported for tool, shell command, MCP-like, approval, and file edit payloads where Cursor exposes them; Cursor Cloud support is limited to Cursor's [cloud-supported command hooks](https://cursor.com/docs/hooks#cloud-agent-support). |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Cursor hooks are installed separately in the logged-in user's context |++## Deployment notes++Restart Cursor after installing or removing hooks so the updated hook configuration is picked up by new sessions.++Hook events include metadata such as file path, operation, language, diff hash, and diff byte count. Raw diffs are subject to Asymptote's redaction, sanitization, truncation, and event-size limits before writing.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+ <Card title="Cursor Cloud Agents" icon="cloud" href="/runtimes/cursor-cloud-agents">+ Capture Cursor cloud agent telemetry with sandbox-local hooks and GCS upload.+ </Card>+</Columns>diff --git a/docs/runtimes/devin-desktop.mdx b/docs/runtimes/devin-desktop.mdxnew file mode 100644index 00000000..a6fc14ad--- /dev/null+++ b/docs/runtimes/devin-desktop.mdx@@ -0,0 +1,79 @@+---+title: "Devin Desktop"+description: "Asymptote support details for Devin Desktop endpoint telemetry"+---++## Runtime Overview++Asymptote supports Devin Desktop through Cascade/Windsurf-compatible hook payloads sent to `beacon-hooks`.++## Prerequisites++Before enabling Devin Desktop hooks, make sure:++- Devin Desktop is installed for the user or available in the workspace where hooks will run.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness devin-desktop`.+- For project-level collection, install hooks from the target workspace with `--level project`.+- Devin Desktop is restarted after hook install or removal so new sessions load the updated hook configuration.++## Collection path++Devin Desktop invokes Asymptote's hook adapter through Cascade/Windsurf hook files. The adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote detects Devin Desktop through Cascade/Windsurf hook paths such as `~/.codeium/windsurf/hooks.json` or `./.windsurf/hooks.json`.++Use `beacon endpoint hooks status --harness devin-desktop` to inspect Devin Desktop hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Devin Desktop hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness devin-desktop+```++For project-level Devin Desktop hooks, run from the target workspace:++```bash title="Install project-level Devin Desktop hooks"+beacon endpoint hooks install --harness devin-desktop --level project+```++You can also configure Devin Desktop hooks alongside default OTLP harnesses:++```bash title="You can also configure Devin Desktop hooks alongside default OTLP harnesses"+beacon endpoint install --harness claude,codex,devin-desktop+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through Cascade prompt hooks |+| Command, tool, and file telemetry | Supported for prompt, command, MCP tool, file read, and file write telemetry where Cascade/Windsurf hook payloads are available |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Devin Desktop hooks are installed separately in the logged-in user's context or project context |++## Deployment notes++Asymptote writes Devin Desktop user-level hooks to `~/.codeium/windsurf/hooks.json`. Project-level Devin Desktop installs write `./.windsurf/hooks.json`, which can also affect Windsurf/Cascade in that workspace.++Asymptote installs visibility-only hooks for prompt submission, file writes, command execution, MCP tool use, and file reads. The hooks do not block or enforce policy. After installation, generate a Devin Desktop event and check the Asymptote runtime log to validate that the Desktop app executed the hook file.++Install and uninstall preserve unrelated settings and non-Asymptote hook commands. Restart Devin Desktop after installing or removing hooks so new sessions pick up the updated hook configuration.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Devin CLI" icon="plug" href="/runtimes/devin">+ Configure Devin CLI through native Devin hooks.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/devin.mdx b/docs/runtimes/devin.mdxnew file mode 100644index 00000000..1e201017--- /dev/null+++ b/docs/runtimes/devin.mdx@@ -0,0 +1,71 @@+---+title: "Devin CLI"+description: "Asymptote support details for Devin CLI endpoint telemetry"+---++## Runtime Overview++Asymptote supports Devin CLI through native Devin hook payloads sent to `beacon-hooks`.++## Prerequisites++Before enabling Devin CLI hooks, make sure:++- Devin CLI is installed for the user or configured in the project where hooks will run.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness devin-cli`. The legacy `devin` harness name still maps to Devin CLI.+- For project-level collection, install hooks from the target project with `--level project`.+- Devin CLI is restarted after hook install or removal so new sessions load the updated hook configuration.++## Collection path++Devin CLI invokes Asymptote's hook adapter from hook entries in Devin configuration. The adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote detects Devin CLI through the `devin` executable, `~/.config/devin`, or `./.devin`, then checks Asymptote hook configuration.++Use `beacon endpoint hooks status --harness devin-cli` to inspect Devin CLI hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Devin CLI hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness devin-cli+```++For project-level Devin CLI hooks, run:++```bash title="Install project-level Devin CLI hooks"+beacon endpoint hooks install --harness devin-cli --level project+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through `UserPromptSubmit` hooks |+| Command, tool, and file telemetry | Supported for session, prompt, pre-tool, post-tool, permission request, stop, session-end, approval, and file telemetry where Devin CLI exposes payloads |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Devin CLI hooks are installed separately in the logged-in user's context or project context |++## Deployment notes++Asymptote writes Devin CLI user-level hooks under the `hooks` key in `~/.config/devin/config.json`. Devin CLI project-level installs write the standalone hook map to `./.devin/hooks.v1.json`.++Install and uninstall preserve unrelated Devin settings and non-Asymptote hook commands. Restart Devin CLI after installing or removing hooks so new sessions pick up the updated hook configuration.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Devin Desktop" icon="plug" href="/runtimes/devin-desktop">+ Configure Devin Desktop through Cascade/Windsurf hooks.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/factory-droid.mdx b/docs/runtimes/factory-droid.mdxnew file mode 100644index 00000000..63465f8b--- /dev/null+++ b/docs/runtimes/factory-droid.mdx@@ -0,0 +1,66 @@+---+title: "Factory Droid"+description: "Asymptote support details for Factory Droid endpoint telemetry"+---++## Runtime Overview++Asymptote supports Factory Droid through an OTLP HTTP launch environment plus optional hook telemetry.++## Prerequisites++Before enabling Factory Droid telemetry, make sure:++- Factory Droid is installed and available as the `droid` executable for the user or managed endpoint.+- `beacon endpoint install` has run so the local collector, shared endpoint config, and runtime log paths exist.+- Droid's launch environment sets `OTEL_TELEMETRY_ENDPOINT=http://127.0.0.1:4318` through MDM or another customer-owned policy.+- Optional hook telemetry is installed with `beacon endpoint hooks install --harness factory`.+- Factory Droid is restarted after launch-environment or hook changes so new sessions use the updated settings.++## Collection path++Factory Droid can send OTLP HTTP telemetry to Asymptote's local collector. Factory hooks can also invoke Asymptote's hook adapter for richer runtime events where Factory exposes hook payloads.++## Discovery and status++Asymptote detects Factory Droid through the `droid` executable and validates `OTEL_TELEMETRY_ENDPOINT` in the effective launch environment.++Use `beacon endpoint discover`, `beacon endpoint status`, or `beacon endpoint hooks status --harness factory` to inspect Factory Droid support.++## Install or configuration support++`beacon endpoint install` prepares the collector, shared endpoint config, and runtime log paths. Factory Droid's launch environment is managed by MDM or customer policy.++Install optional Factory hooks separately:++```bash title="Install optional Factory hooks separately"+beacon endpoint hooks install --harness factory+```++`--harness droid` is also accepted for Factory Droid hook installs.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through `UserPromptSubmit` hooks |+| Command, tool, and file telemetry | Supported for session, write/edit/create tool use, stop, session-end, and available OTLP telemetry |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Factory launch environment and user/project hooks are managed in the user's Droid context |++## Deployment notes++Factory Droid OTLP is controlled by Droid's launch environment. Set `OTEL_TELEMETRY_ENDPOINT=http://127.0.0.1:4318` through MDM or another customer-owned launch policy.++Asymptote discovers Droid and validates the endpoint, but it does not mutate shell profiles for Droid. Restart Factory Droid after installing or removing hooks so new sessions pick up the updated hook configuration.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/gemini-cli.mdx b/docs/runtimes/gemini-cli.mdxnew file mode 100644index 00000000..00413160--- /dev/null+++ b/docs/runtimes/gemini-cli.mdx@@ -0,0 +1,62 @@+---+title: "Gemini CLI"+description: "Asymptote support details for Gemini CLI endpoint telemetry"+---++## Runtime Overview++Asymptote supports Gemini CLI through opt-in local OTLP logs, traces, and metrics.++## Prerequisites++Before enabling Gemini CLI telemetry, make sure:++- Gemini CLI is installed and available as the `gemini` executable for the user or managed endpoint.+- `beacon endpoint install` has run so the local collector, endpoint config, and runtime log path exist.+- The install explicitly includes Gemini, for example `beacon endpoint install --harness claude,codex,gemini`.+- No project settings or `GEMINI_TELEMETRY_*` environment variables override the user-level Asymptote settings you expect to use.+- Your team has reviewed content handling and destination access for prompt telemetry.++## Collection path++Gemini CLI exports local OpenTelemetry data to Asymptote's localhost collector when the `gemini` endpoint harness is enabled. Asymptote maps Gemini prompts, tool calls, MCP activity, file operations, and approval-related events into normalized endpoint events.++## Discovery and status++Asymptote detects Gemini CLI through the `gemini` executable and `~/.gemini/settings.json`. Use `beacon endpoint discover` or `beacon endpoint status` to confirm that Gemini CLI is present and configured.++## Install or configuration support++Gemini CLI telemetry is opt-in. Run `beacon endpoint install --harness claude,codex,gemini` when you want Asymptote to manage Gemini telemetry settings.++Asymptote writes local OTLP settings to `~/.gemini/settings.json`, sets `target` to `local`, uses OTLP gRPC, enables collector mode, and removes `outfile` so telemetry flows to Asymptote.++Gemini CLI is not currently configured through Asymptote's hook adapter.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported when emitted through Gemini OTLP |+| Command, tool, and file telemetry | Supported for prompts, tool calls, MCP activity, file operations, and approval-related events emitted through OTLP |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported through the system-mode package or MDM-managed config when `gemini` is included in the harness list |++## Deployment notes++Project settings or `GEMINI_TELEMETRY_*` environment variables may override Asymptote's user-level Gemini config.++For enterprise rollouts, add `gemini` to the endpoint harness list, for example `claude,codex,gemini`, when you want Asymptote to manage `~/.gemini/settings.json` for local OTLP collection.++If a system collector is running while the CLI is reading the default per-user log, `beacon endpoint status` and the local dashboard surface a runtime-log source warning so you can tell where OTLP events are being written.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Asymptote discovers and configures supported runtimes.+ </Card>+</Columns>diff --git a/docs/runtimes/github-copilot-cli.mdx b/docs/runtimes/github-copilot-cli.mdxnew file mode 100644index 00000000..e0a973ba--- /dev/null+++ b/docs/runtimes/github-copilot-cli.mdx@@ -0,0 +1,77 @@+---+title: "GitHub Copilot CLI"+description: "Asymptote support details for GitHub Copilot CLI endpoint telemetry"+---++## Runtime Overview++Asymptote supports GitHub Copilot CLI through MDM-managed OpenTelemetry export to the local OTLP HTTP receiver.++## Prerequisites++Before enabling GitHub Copilot CLI telemetry, make sure:++- GitHub Copilot CLI is installed and available as the `copilot` executable for the user or managed endpoint.+- `beacon endpoint install` has run so the local collector, endpoint config, and runtime log path exist.+- The Copilot CLI launch environment sets `COPILOT_OTEL_ENABLED=true`.+- The Copilot CLI launch environment sets `OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318` or `COPILOT_OTEL_ENDPOINT=http://127.0.0.1:4318`.+- Copilot CLI is restarted after launch-environment changes so new sessions use the updated settings.++## Collection path++GitHub Copilot CLI exports OTLP HTTP telemetry to Asymptote's local collector. Asymptote normalizes Copilot spans into endpoint events for prompt submission, session activity, tool invocation, and approval-like permission activity.++Copilot CLI metrics are filtered from the local runtime JSONL log by default so endpoint timelines stay focused on user and agent activity. Use `--include-runtime-metrics` during install or repair only when you need low-level Copilot metrics for troubleshooting.++## Discovery and status++Asymptote detects GitHub Copilot CLI through the `copilot` executable or `~/.copilot/config.json`. Use `beacon endpoint discover` or `beacon endpoint status` to confirm that Copilot CLI is present and exporting to Asymptote's local OTLP HTTP receiver.++Asymptote reports Copilot CLI telemetry as configured only when `COPILOT_OTEL_ENABLED` is truthy and the effective OTLP endpoint points to `localhost` or `127.0.0.1`. If `COPILOT_OTEL_FILE_EXPORTER_PATH` is configured, Asymptote reports Copilot as misconfigured because the file exporter bypasses the local OTLP collector.++## Install or configuration support++`beacon endpoint install` prepares the collector, endpoint config, and runtime log paths. Copilot CLI telemetry is configured outside Asymptote through MDM, shell profile management, or another customer-owned launch policy.++Do not add Copilot CLI to the `--harness` list. If `copilot`, `copilot_cli`, or `github_copilot` is passed to `beacon endpoint install --harness` or `beacon endpoint repair --harness`, Asymptote reports that Copilot CLI telemetry is MDM-managed instead of writing Copilot configuration directly.++Configure Copilot CLI's launch environment to export to the local OTLP HTTP receiver:++```bash title="Configure Copilot CLI's launch environment to export to the local OTLP HTTP receiver"+export COPILOT_OTEL_ENABLED="true"+export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318"+```++If your deployment intentionally captures GenAI message content from Copilot telemetry, also configure:++```bash title="If your deployment intentionally captures GenAI message content from Copilot telemetry, also configure"+export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT="true"+```++For a one-command local validation flow, see [Test GitHub Copilot CLI telemetry](/guides/local-testing/events#test-github-copilot-cli-telemetry).++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported from Copilot chat spans when exported over OTLP HTTP |+| Command, tool, and file telemetry | Supported for session activity, tool invocation, and permission or approval-like spans emitted by Copilot CLI |+| Local JSONL and dashboard | Supported after events reach the local collector |+| MDM deployment | Supported for the endpoint agent; Copilot launch-environment configuration stays under MDM or customer policy control |++## Deployment notes++Copilot CLI currently exports OTLP over HTTP, not gRPC. Point it at Asymptote's HTTP receiver, usually `http://127.0.0.1:4318`, or the custom `--otlp-http-port` used by your endpoint install.++Asymptote validates the effective Copilot environment but does not write Copilot shell profiles or `~/.copilot/config.json`. Keep Copilot CLI outside the default Asymptote harness list, and deploy its environment settings with the same MDM or shell-management mechanism you use to launch Copilot.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Configure the local collector before enabling Copilot CLI export.+ </Card>+</Columns>diff --git a/docs/runtimes/grok-build.mdx b/docs/runtimes/grok-build.mdxnew file mode 100644index 00000000..52e27624--- /dev/null+++ b/docs/runtimes/grok-build.mdx@@ -0,0 +1,68 @@+---+title: "Grok Build"+description: "Asymptote support details for Grok Build endpoint telemetry"+---++## Runtime Overview++Asymptote supports Grok Build through native hook payloads sent to `beacon-hooks`.++## Prerequisites++Before enabling Grok Build hooks, make sure:++- Grok Build is installed for the user or available in the project where hooks will run.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness grok`.+- Project-level hooks are trusted with `/hooks-trust` in Grok before you expect them to execute.+- Grok is restarted after hook install or removal so new sessions load the updated hook file.++## Collection path++Grok Build invokes Asymptote's hook adapter from Asymptote's owned hook file. The adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote checks for its managed Grok hook file at `~/.grok/hooks/beacon-endpoint.json` for user-level installs or `./.grok/hooks/beacon-endpoint.json` for project-level installs.++Use `beacon endpoint hooks status --harness grok` to inspect Grok Build hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Grok Build hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness grok+```++For project-level hooks, run:++```bash title="Install project-level hooks"+beacon endpoint hooks install --harness grok --level project+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through `UserPromptSubmit` hooks |+| Command, tool, and file telemetry | Supported for session, prompt, pre-tool, post-tool, failed tool, stop, session-end, command, and file telemetry where Grok exposes payloads |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Grok hooks are installed separately in the logged-in user's context or project context |++## Deployment notes++Project-level Grok Build hooks require `/hooks-trust` in Grok before they execute. Grok tool failures normalize to `tool.failed` with high severity.++Restart Grok after installing or removing hooks so new sessions pick up the updated hook configuration.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/hermes-agent.mdx b/docs/runtimes/hermes-agent.mdxnew file mode 100644index 00000000..a7cff80d--- /dev/null+++ b/docs/runtimes/hermes-agent.mdx@@ -0,0 +1,68 @@+---+title: "Hermes Agent"+description: "Asymptote support details for Hermes Agent endpoint telemetry"+---++## Runtime Overview++Asymptote supports Hermes Agent through shell hook payloads sent to `beacon-hooks`.++## Prerequisites++Before enabling Hermes Agent hooks, make sure:++- Hermes Agent is installed for the user or `~/.hermes/config.yaml` exists.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote hooks are installed with `beacon endpoint hooks install --harness hermes`.+- Hermes hook consent is handled for the session, especially in non-interactive gateway, cron, or CI runs.+- Hermes is restarted after hook install or removal so new sessions load the updated config.++## Collection path++Asymptote merges shell-hook entries into `~/.hermes/config.yaml`. Hermes invokes Asymptote's hook adapter for supported lifecycle, prompt, tool, approval, and subagent events, and the adapter writes normalized endpoint events to the configured runtime JSONL log.++## Discovery and status++Asymptote detects Hermes through the `hermes` executable or a local `~/.hermes` directory, then checks `~/.hermes/config.yaml` for Asymptote-managed commands with `BEACON_ENDPOINT_MODE=1` and `--platform hermes`.++Use `beacon endpoint hooks status --harness hermes` to inspect Hermes Agent hook status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install Hermes Agent hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness hermes+```++Hermes Agent hooks support user-level config only. Project-level installs are rejected because Hermes reads shell hooks from the user's Hermes config.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through Hermes `pre_llm_call` payloads, including `extra.user_message` where provided |+| Command, tool, and file telemetry | Supported for observed pre-tool calls, post-tool results, command execution, file-like tools, and raw Hermes payload context |+| Approval telemetry | Supported for Hermes approval request and response hooks, including allow, deny, timeout, and unknown decisions |+| Session and subagent telemetry | Supported for session lifecycle events and subagent stop metadata where Hermes exposes role, status, summary, and duration |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; Hermes hooks are installed separately in the logged-in user's context |++## Deployment notes++Hermes prompts for first-use consent for each `(event, command)` hook pair. For non-interactive gateway, cron, or CI runs, set `HERMES_ACCEPT_HOOKS=1`, start Hermes with `--accept-hooks`, or configure `hooks_auto_accept: true` in `~/.hermes/config.yaml`.++Asymptote preserves existing Hermes settings and non-Asymptote hooks when installing or uninstalling Hermes telemetry. It replaces only Asymptote-managed Hermes hook commands.++Restart Hermes after installing or removing hooks so new sessions pick up the updated configuration.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/index.mdx b/docs/runtimes/index.mdxnew file mode 100644index 00000000..e471471d--- /dev/null+++ b/docs/runtimes/index.mdx@@ -0,0 +1,96 @@+---+title: "Runtime Surface Overview"+description: "Asymptote agent harness support overview and runtime-specific pages"+---++## Support Matrix++Asymptote supports multiple [runtime surfaces](/concepts/core-concepts#runtime-surface) because each [agent harness](/concepts/core-concepts#agent-harness) exposes telemetry differently. The runtime support model applies to both Asymptote Open Source and Asymptote Managed: Open Source collects and normalizes supported local, CI, and cloud-agent telemetry, while Managed adds hosted ingest, visibility, and governance on top of the same surfaces.++These integrations are grouped by where the agent runs and how telemetry is collected:++- **Local**: Agent harnesses running on an endpoint write telemetry to Asymptote's local collector, hook adapter, plugin, or gateway path.+- **CI**: Ephemeral CI jobs use a temporary collector and write normalized runtime JSONL as a build artifact or upload target instead of installing a persistent endpoint service.+- **Cloud**: Provider-managed cloud agents can write session telemetry from the cloud sandbox to customer-managed storage, while SDK integrations instrument agent applications that run in servers, serverless functions, workers, and hosted agent platforms.++## Support matrix++### Local Coding Agent Harnesses++| Agent harness | Collection path | Telemetry coverage |+|----------------|-----------------|--------------------|+| [Antigravity CLI](/runtimes/antigravity-cli) | Native hooks | Prompt, pre-tool, post-tool, stop, invocation, command, and file telemetry where Antigravity exposes hook payloads |+| [Claude Code](/runtimes/claude-code) | Local OTLP export plus optional hooks | Prompt, command, tool, file, lifecycle, subagent, and permission telemetry where emitted through OTLP or hooks |+| [Codex CLI](/runtimes/codex-cli) | Local OTLP logs | Session, prompt, approval, and tool-result activity from Codex semantic logs |+| [Cursor](/runtimes/cursor) | Native hooks | Prompt, tool, shell command, MCP-like, approval, and file edit telemetry |+| [Devin CLI](/runtimes/devin) | Native hooks | Session, prompt, pre-tool, post-tool, permission request, stop, session-end, approval, and file telemetry |+| [Devin Desktop](/runtimes/devin-desktop) | Cascade/Windsurf hooks | Prompt, command, MCP tool, file read, and file write telemetry where Desktop exposes Cascade hook payloads |+| [Factory Droid](/runtimes/factory-droid) | OTLP HTTP plus optional hooks | Session, prompt, write/edit/create tool use, stop, session-end, and available OTLP telemetry |+| [Gemini CLI](/runtimes/gemini-cli) | Opt-in local OTLP | Prompts, tool calls, MCP activity, file operations, and approval-related events emitted through OTLP |+| [GitHub Copilot CLI](/runtimes/github-copilot-cli) | MDM-managed OTLP HTTP | Prompt, session, tool, and approval-like activity emitted through Copilot CLI spans |+| [Grok Build](/runtimes/grok-build) | Native hooks | Session, prompt, pre-tool, post-tool, failed tool, stop, session-end, command, and file telemetry |+| [OpenCode](/runtimes/opencode) | Managed plugin hooks | Chat messages, session events, command execution, permission activity, diffs, and errors |+| [VS Code](/runtimes/vscode) | Copilot Chat OTel plus optional preview hooks | Copilot session, prompt, model, and tool activity through OTel; optional hooks for extra lifecycle and cross-agent detail |++### Local Knowledge Worker Agent Harnesses++| Agent harness | Collection path | Telemetry coverage |+|----------------|-----------------|--------------------|+| [Claude Cowork](/runtimes/claude-cowork) | Admin-configured OTLP | Prompt, command, tool, and file telemetry when emitted through Claude Cowork OTLP |+| [Hermes Agent](/runtimes/hermes-agent) | Shell hooks | Prompt, observed tool, command, file, approval request and response, session lifecycle, and subagent stop telemetry |+| [OpenClaw Gateway](/runtimes/openclaw-gateway) | Gateway-configured OTLP/HTTP | OTLP logs, traces, and metrics from the Gateway diagnostics plugin |++### CI Harnesses++| Harness | Collection path | Telemetry coverage |+|---------|-----------------|--------------------|+| [CI agent telemetry](/runtimes/claude-code-ci) | Temporary local collector through `beacon ci exec` or `beacon ci start` / `beacon ci finish` | Supported agent prompt, tool, command, file, and run context where emitted during the job |++### Cloud Agent Harnesses and SDKs++| Cloud surface | Collection path | Telemetry coverage |+|---------------|-----------------|--------------------|+| [Claude Code Cloud Agents](/runtimes/claude-code-cloud-agents) | Cloud sandbox hooks with GCS upload | Session, prompt, tool, command, file, and lifecycle telemetry where Claude Code cloud hook payloads expose it |+| [Cursor Cloud Agents](/runtimes/cursor-cloud-agents) | Cloud sandbox hooks with GCS upload | Tool, shell command, file, subagent, and compaction telemetry where Cursor cloud hook payloads expose it |+| [Anthropic](/sdk/integrations-anthropic) | OpenLLMetry instrumentation through `@asymptote/sdk` | Supported Anthropic model call spans, errors, and OpenTelemetry attributes |+| [Claude Agent SDK](/sdk/integrations-claude-agent-sdk) | Query wrapper through `Observe.wrapClaudeAgentQuery()` | Query root spans with Beacon-compatible prompt attributes |+| [OpenAI](/sdk/integrations-openai) | OpenLLMetry instrumentation through `@asymptote/sdk` | Supported OpenAI model call spans, errors, and OpenTelemetry attributes |+| [Vercel AI SDK](/sdk/integrations-vercel-ai-sdk) | Tracer handoff through `experimental_telemetry` | AI SDK model call and tool spans where telemetry is enabled |++## Deployment notes++For MDM deployments, use the signed and notarized macOS `.pkg`.++- Writes [endpoint events](/concepts/core-concepts#endpoint-event) to `/var/log/beacon-agent/runtime.jsonl`+- Installs the endpoint agent under `/opt/beacon`+- Creates system endpoint configuration+- Loads the [local collector](/concepts/core-concepts#local-collector) LaunchDaemon+- Supports Jamf Pro, Fleet, or another macOS MDM++| Runtime | Enterprise configuration |+|---------|--------------------------|+| Gemini CLI | Opt in by adding `gemini` to the endpoint harness list, for example `claude,codex,gemini`. Asymptote can then manage `~/.gemini/settings.json` for local OTLP collection. |+| GitHub Copilot CLI | Configure launch environment through MDM or customer policy: `COPILOT_OTEL_ENABLED=true` and `OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318`. Asymptote validates the endpoint but does not edit shell profiles or launch environments. |+| Factory Droid | Configure launch environment with `OTEL_TELEMETRY_ENDPOINT=http://127.0.0.1:4318`. Asymptote discovers the runtime and validates the endpoint but does not edit shell profiles or launch environments. |+| OpenClaw Gateway | Configure OTLP in OpenClaw. Use [`beacon endpoint integrations openclaw`](/cli/openclaw) to print local Gateway settings and validate events. |++Install Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, OpenCode, and optional VS Code hooks separately in the logged-in user's context when you need richer hook telemetry.++If a system collector is running while the CLI is reading the default per-user log, `beacon endpoint status` and the local dashboard surface a runtime-log source warning so you can tell where OTLP events are being written.++## Related++<Columns cols={2}>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Return to the support overview.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See how Asymptote discovers and configures each runtime.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+ <Card title="MDM deployment" icon="laptop-mobile" href="/mdm">+ Deploy Asymptote through Jamf Pro, Fleet, or another macOS MDM.+ </Card>+</Columns>diff --git a/docs/runtimes/integration-model.mdx b/docs/runtimes/integration-model.mdxnew file mode 100644index 00000000..7a1071d4--- /dev/null+++ b/docs/runtimes/integration-model.mdx@@ -0,0 +1,96 @@+---+title: "Agent Harness Integration Model"+description: "How Beacon discovers, validates, and configures supported agent harnesses"+---++## Integration Model++Beacon supports multiple [runtime surfaces](/concepts/core-concepts#runtime-surface) because each [agent harness](/runtimes) exposes telemetry differently. Supported harnesses use local OpenTelemetry configuration, admin- or gateway-configured OTLP export, hook adapters, or a combination of those paths.++## Discovery and status++`beacon endpoint discover` checks which supported agent harnesses are present and whether their telemetry is configured.++| Runtime | How Beacon discovers or validates it |+|---------|--------------------------------------|+| [Claude Code](/runtimes/claude-code) | Looks for the `claude` executable and Claude settings paths |+| [Codex CLI](/runtimes/codex-cli) | Looks for the `codex` executable and `~/.codex/config.toml` |+| [Gemini CLI](/runtimes/gemini-cli) | Looks for the `gemini` executable and `~/.gemini/settings.json` |+| [GitHub Copilot CLI](/runtimes/github-copilot-cli) | Looks for the `copilot` executable or `~/.copilot/config.json`, then validates Copilot OTel environment variables |+| [VS Code](/runtimes/vscode) | Looks for the `code` executable or VS Code user settings, then validates Copilot Chat OTel settings |+| [Grok Build](/runtimes/grok-build) | Checks for Beacon's managed Grok hook file at `~/.grok/hooks/beacon-endpoint.json` or `./.grok/hooks/beacon-endpoint.json` |+| [OpenCode](/runtimes/opencode) | Looks for the `opencode` executable or `~/.config/opencode`, then checks the managed Beacon plugin |+| [Devin CLI](/runtimes/devin) | Looks for the `devin` executable, `~/.config/devin`, or `./.devin`, then checks Beacon hook configuration |+| [Devin Desktop](/runtimes/devin-desktop) | Checks Cascade/Windsurf hook configuration at `~/.codeium/windsurf/hooks.json` or `./.windsurf/hooks.json` |+| [Factory Droid](/runtimes/factory-droid) | Looks for the `droid` executable and validates `OTEL_TELEMETRY_ENDPOINT` in the effective launch environment |+| [Cursor](/runtimes/cursor) | Looks for the Cursor binary or `~/.cursor`, then checks Beacon hook configuration |+| [Claude Cowork](/runtimes/claude-cowork) | Treats it as an admin-configured OTLP source because telemetry is enabled in Claude organization settings |+| [OpenClaw Gateway](/runtimes/openclaw-gateway) | Validates observed OpenClaw-derived events in the runtime log after Gateway diagnostics are configured |++## Install-time configuration++During install, Beacon configures the runtime surfaces it can safely manage:++| Runtime or surface | Install-time behavior |+|--------------------|-----------------------|+| [Claude Code](/runtimes/claude-code) | Beacon points Claude Code at the local OTLP collector. Hook installation is separate through [`beacon endpoint hooks`](/cli/hooks). |+| [Codex CLI](/runtimes/codex-cli) | Beacon points Codex CLI at the local OTLP collector, writes structured OTLP exporter tables to `~/.codex/config.toml`, sets `log_user_prompt = false`, and sends logs, traces, and metrics to the local collector. |+| [Gemini CLI](/runtimes/gemini-cli) | Optional with `--harness gemini`. Beacon writes local OTLP settings to `~/.gemini/settings.json`, sets `target` to `local`, uses OTLP gRPC, enables the collector, and removes `outfile` so telemetry flows to Beacon. |+| [VS Code](/runtimes/vscode) | Optional with `--harness vscode`. Beacon writes Copilot Chat OTel settings to VS Code user settings and points OTLP/HTTP to the local collector. |+| [GitHub Copilot CLI](/runtimes/github-copilot-cli) | Copilot's OTLP HTTP endpoint remains under MDM or customer-owned launch-environment policy. Beacon validates `COPILOT_OTEL_ENABLED=true` and a localhost OTLP endpoint but does not write Copilot configuration. |+| [Factory Droid](/runtimes/factory-droid) | Droid's OTLP endpoint remains under its launch environment, commonly managed through MDM or another customer-owned policy. |+| [OpenClaw Gateway](/runtimes/openclaw-gateway) | Configure OpenClaw with the `diagnostics-otel` plugin. Beacon prints local OTLP/HTTP setup guidance and validates observed events. |+| Hook-based runtimes | [Antigravity CLI](/runtimes/antigravity-cli), [Claude Code](/runtimes/claude-code), [Cursor](/runtimes/cursor), [Devin CLI](/runtimes/devin), [Devin Desktop](/runtimes/devin-desktop), [Factory](/runtimes/factory-droid), [Grok Build](/runtimes/grok-build), [Hermes Agent](/runtimes/hermes-agent), and [OpenCode](/runtimes/opencode) hooks are installed separately with [`beacon endpoint hooks`](/cli/hooks), because hooks are per-user or per-project runtime configuration rather than base collector service configuration. |++## Integration paths++| Runtime | Collection path | Notes |+|---------|-----------------|-------|+| [Claude Code](/runtimes/claude-code) | Local OTLP export plus optional hooks | Uses Claude settings to enable telemetry and point OTLP to localhost; optional hooks add lifecycle, subagent, permission, and tool event detail. |+| [Codex CLI](/runtimes/codex-cli) | Local OTLP logs, traces, and metrics | Beacon writes structured Codex OTLP config and filters noisy internal transport spans. |+| [Gemini CLI](/runtimes/gemini-cli) | Opt-in local OTLP logs, traces, and metrics | Beacon writes Gemini telemetry settings and maps Gemini prompts, tool calls, MCP activity, file operations, and approval events into endpoint events. |+| [GitHub Copilot CLI](/runtimes/github-copilot-cli) | MDM-managed OTLP HTTP export | Beacon validates Copilot's effective launch environment and maps Copilot spans into prompt, session, tool, and approval-like endpoint events. |+| [VS Code](/runtimes/vscode) | Copilot Chat OTel plus optional preview hooks | Beacon writes VS Code Copilot OTel settings and maps Copilot prompts, sessions, model metadata, and tool activity into endpoint events. Hooks are optional for extra lifecycle and cross-agent detail. |+| [Antigravity CLI](/runtimes/antigravity-cli) | Native hook payloads through `beacon-hooks` | Beacon writes a managed Antigravity hook block and maps prompt, pre-tool, post-tool, invocation, command, file edit, and diff telemetry into endpoint events. |+| [Grok Build](/runtimes/grok-build) | Native hook payloads through `beacon-hooks` | Beacon writes an owned Grok hook file and maps session, prompt, tool, command, file, and failed-tool events into endpoint events. |+| [Hermes Agent](/runtimes/hermes-agent) | Shell hook payloads through `beacon-hooks` | Beacon merges user-level Hermes shell hooks and maps prompts, tools, commands, approvals, session lifecycle, and subagent stop metadata into endpoint events. |+| [OpenCode](/runtimes/opencode) | Managed local plugin through `beacon-hooks` | Plugin invokes Beacon for chat, session, command, permission, diff, and error events where payloads are available. |+| [Devin CLI](/runtimes/devin) | Native hook payloads through `beacon-hooks` | Hooks emit session, prompt, pre-tool, post-tool, permission request, stop, session-end, approval, and file telemetry where Devin CLI exposes payloads. |+| [Devin Desktop](/runtimes/devin-desktop) | Cascade/Windsurf hook payloads through `beacon-hooks` | Hooks emit prompt, command, MCP tool, file read, and file write telemetry where Devin Desktop exposes Cascade/Windsurf payloads. |+| [Factory Droid](/runtimes/factory-droid) | OTLP HTTP launch environment plus optional hooks | Beacon validates Factory OTLP state but does not mutate shell profiles for Droid. |+| [Cursor](/runtimes/cursor) | Native hook payloads through `beacon-hooks` | Hooks emit session, prompt, tool, command, MCP-like, approval, and file edit telemetry where Cursor exposes payloads. |+| [Claude Cowork](/runtimes/claude-cowork) | Admin-configured OTLP from Anthropic's service | Production Cowork telemetry should use a durable customer-managed HTTPS collector endpoint. |+| [OpenClaw Gateway](/runtimes/openclaw-gateway) | Gateway-configured OTLP/HTTP export | Beacon prints Gateway diagnostics settings and validates OpenClaw-derived events in the runtime log. |++## Hook telemetry++Antigravity CLI, Claude Code, Cursor, Devin CLI, Devin Desktop, Factory, Grok Build, Hermes Agent, OpenCode, and optional VS Code hooks cover activity that is better represented as runtime events than generic OTLP spans.++| Runtime | Hook telemetry |+|---------|----------------|+| [Antigravity CLI](/runtimes/antigravity-cli) | Prompt submission, pre-tool and post-tool activity, invocation stop events, command activity, file edits, and diffs where payloads are available. |+| [Claude Code](/runtimes/claude-code) | Session lifecycle, prompt submission, pre-tool and post-tool activity, failed tool calls, subagent start and stop, permission requests, and session-end events where payloads are available. |+| [Cursor](/runtimes/cursor) | Session lifecycle, prompt submission, tool invocation, shell command execution, MCP-like tool activity, approval decisions, and file edits where payloads are available. |+| [VS Code](/runtimes/vscode) | Preview only and may be disabled by organization policy. When enabled, hooks add lifecycle, prompt, pre-tool, post-tool, stop, and subagent detail across VS Code agent surfaces. |+| [Devin CLI](/runtimes/devin) | Session lifecycle, prompt submission, pre-tool and post-tool activity, permission requests, stop events, session-end events, approvals, and file telemetry where payloads are available. |+| [Devin Desktop](/runtimes/devin-desktop) | Prompt submission, command execution, MCP tool use, file reads, and file writes where Cascade/Windsurf hook payloads are available. |+| [Factory](/runtimes/factory-droid) | Session start and end, prompt submission, write/edit/create tool use, stop events, and related file activity where payloads are available. |+| [Grok Build](/runtimes/grok-build) | Session lifecycle, prompt submission, pre-tool and post-tool activity, post-tool failures, stop events, session-end events, command execution, and file activity where payloads are available. Project-level hooks require `/hooks-trust` in Grok before they execute. |+| [Hermes Agent](/runtimes/hermes-agent) | Session lifecycle, prompt submission, observed tool calls, post-tool command and file activity, approval request and response events, and subagent stop metadata where Hermes exposes payloads. Hermes hooks are user-level only. |+| [OpenCode](/runtimes/opencode) | Chat messages, session events, command execution, permission activity, diffs, and errors where payloads are available. |++Hook events include metadata such as file path, operation, language, diff hash, and diff byte count. Raw diffs are subject to Beacon's redaction, sanitization, truncation, and event-size limits before writing.++## Related++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ Follow runtime signals through collection, normalization, storage, and forwarding.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Compare agent harness support and open runtime-specific details.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/openclaw-gateway.mdx b/docs/runtimes/openclaw-gateway.mdxnew file mode 100644index 00000000..992bcdf0--- /dev/null+++ b/docs/runtimes/openclaw-gateway.mdx@@ -0,0 +1,62 @@+---+title: "OpenClaw Gateway"+description: "Asymptote support details for OpenClaw Gateway endpoint telemetry"+---++## Runtime Overview++Asymptote supports OpenClaw Gateway through gateway-configured OTLP/HTTP export.++## Prerequisites++Before enabling OpenClaw Gateway telemetry, make sure:++- You can configure the OpenClaw Gateway `diagnostics-otel` plugin.+- `beacon endpoint install` has run so the local collector and runtime log path exist.+- You have run `beacon endpoint integrations openclaw print-config` to get the local OTLP/HTTP settings for Gateway.+- OpenClaw Gateway points at the same Asymptote collector and runtime log that you will inspect with `beacon` commands.+- `captureContent` is explicitly enabled in OpenClaw if you expect prompt content rather than metadata-only telemetry.++## Collection path++OpenClaw Gateway emits OTLP logs, traces, and metrics through the `diagnostics-otel` plugin. Asymptote prints local OTLP/HTTP Gateway config and validates whether OpenClaw-derived events have reached the endpoint runtime log.++## Discovery and status++Asymptote validates OpenClaw Gateway support by scanning the endpoint runtime log for OpenClaw-derived events after Gateway diagnostics are configured.++Use `beacon endpoint integrations openclaw status` to check whether OpenClaw events have been observed.++## Install or configuration support++OpenClaw Gateway is configured in OpenClaw, not by `beacon endpoint install`.++Use `beacon endpoint integrations openclaw print-config` to print local Gateway OTLP settings, then configure OpenClaw Gateway with the `diagnostics-otel` plugin.++OpenClaw Gateway is not hook-based.++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Disabled by default unless OpenClaw `captureContent` settings are explicitly enabled |+| Command, tool, and file telemetry | Supported for OTLP logs, traces, and metrics emitted by the Gateway diagnostics plugin |+| Local JSONL and dashboard | Supported after events reach the collector |+| MDM deployment | Supported for the endpoint agent; Gateway diagnostics configuration is managed in OpenClaw |++## Deployment notes++Because OpenClaw Gateway configuration lives in OpenClaw, use Asymptote's OpenClaw integration commands to print the expected local OTLP/HTTP configuration and validate observed runtime events.++If no OpenClaw events appear, confirm the Gateway diagnostics plugin is enabled, the OTLP endpoint points at the Asymptote collector, and the runtime log being inspected is the same log the collector writes.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="OpenClaw commands" icon="plug" href="/cli/openclaw">+ Print config, check status, and validate OpenClaw telemetry.+ </Card>+</Columns>diff --git a/docs/runtimes/opencode.mdx b/docs/runtimes/opencode.mdxnew file mode 100644index 00000000..030e4684--- /dev/null+++ b/docs/runtimes/opencode.mdx@@ -0,0 +1,61 @@+---+title: "OpenCode"+description: "Asymptote support details for OpenCode endpoint telemetry"+---++## Runtime Overview++Asymptote supports OpenCode through a managed local plugin that invokes `beacon-hooks`.++## Prerequisites++Before enabling OpenCode telemetry, make sure:++- OpenCode is installed and available as the `opencode` executable or has a local config directory.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.+- Asymptote's OpenCode plugin is installed with `beacon endpoint hooks install --harness opencode`.+- OpenCode is restarted after plugin install or removal so new sessions load the updated plugin.++## Collection path++Asymptote installs an owned OpenCode plugin at `~/.config/opencode/plugins/beacon.ts` for user-level hooks or `./.opencode/plugins/beacon.ts` for project-level hooks. The plugin forwards supported OpenCode hook payloads to Asymptote's hook adapter.++## Discovery and status++Asymptote detects OpenCode through the `opencode` executable or `~/.config/opencode`, then checks for Asymptote plugin configuration.++Use `beacon endpoint hooks status --harness opencode` to inspect OpenCode plugin status.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths. Install OpenCode hooks separately:++```bash title="Install runtime hooks"+beacon endpoint hooks install --harness opencode+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Prompt telemetry | Supported through `chat.message` hooks |+| Command, tool, and file telemetry | Supported for chat messages, session events, command execution, permission activity, diffs, and errors where OpenCode exposes payloads |+| Local JSONL and dashboard | Supported |+| MDM deployment | Supported for the endpoint agent; OpenCode plugins are installed separately in the logged-in user's context |++## Deployment notes++Restart OpenCode after installing or removing hooks so new sessions pick up the updated plugin configuration.++For local troubleshooting, set `BEACON_OPENCODE_DEBUG=1` in the environment that launches OpenCode to emit best-effort plugin debug logs. Asymptote telemetry should not interrupt OpenCode execution if the hook command fails.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall runtime hook integrations.+ </Card>+</Columns>diff --git a/docs/runtimes/vscode.mdx b/docs/runtimes/vscode.mdxnew file mode 100644index 00000000..e317e9ea--- /dev/null+++ b/docs/runtimes/vscode.mdx@@ -0,0 +1,102 @@+---+title: "VS Code"+description: "Asymptote support details for VS Code Copilot and hook telemetry"+---++## Runtime Overview++Asymptote supports VS Code primarily through GitHub Copilot Chat OpenTelemetry export to Asymptote's localhost collector. VS Code hooks are also supported as an optional preview path when your organization allows them.++## Prerequisites++Before enabling VS Code telemetry, make sure:++- Visual Studio Code is installed for the user.+- GitHub Copilot Chat is installed and available in VS Code.+- `beacon endpoint install` can start the local collector and write the runtime log.+- Your team has reviewed content handling and destination access for prompt and tool telemetry.++## Recommended collection path++Use OpenTelemetry as the primary VS Code collection path:++```bash title="Use OpenTelemetry as the primary VS Code collection path"+beacon endpoint install --harness vscode+```++This configures VS Code Copilot Chat to export OTLP/HTTP to Asymptote's local collector at `http://127.0.0.1:4318`. Reload VS Code after setup so the Copilot extension reinitializes its telemetry configuration.++Validate recent activity:++```bash title="Validate recent activity"+beacon endpoint integrations vscode validate --since 10m+```++OTel-derived events use `harness.name=vscode_copilot`.++## Optional hook path++VS Code hooks are currently in preview, and the `Chat: Use Hooks` setting may be disabled or managed by your organization. Use hooks only when you want extra lifecycle/tool detail or cross-agent coverage beyond Copilot's OTel stream.++Before installing hooks, confirm `Chat: Use Hooks` is enabled in VS Code settings. If this setting is unchecked and marked as managed by your organization, VS Code will not execute `.github/hooks/*.json` hook files even if Asymptote installs them successfully.++<img src="/images/vscode-chat-use-hooks-setting.png" alt="VS Code settings showing Chat: Use Hooks disabled and managed by organization, while Chat: Use Claude Hooks is enabled." />++Project-level hooks:++```bash title="Install project-level hooks"+cd /path/to/workspace+beacon endpoint hooks install --harness vscode --level project+```++User-level hooks:++```bash title="User-level hooks"+beacon endpoint hooks install --harness vscode --level user+```++Hook-derived events use `harness.name=vscode`. They can capture VS Code lifecycle events such as prompt submission, pre-tool and post-tool activity, stop events, and subagent start/stop where VS Code exposes those hook payloads. Because hooks are preview, behavior may vary across VS Code versions, organizations, and agent surfaces.++## Discovery and status++Asymptote detects VS Code through the `code` executable or the VS Code user settings directory. It checks whether Copilot Chat OTel is enabled, whether the exporter is `otlp-http`, and whether the endpoint points to Asymptote's local OTLP HTTP receiver.++Use:++```bash title="Use"+beacon endpoint status+beacon endpoint integrations vscode status+beacon endpoint hooks status --harness vscode --level project+```++## Telemetry coverage++| Area | OpenTelemetry support | Optional hook support |+|------|-----------------------|-----------------------|+| Prompt telemetry | Supported from Copilot `invoke_agent` activity when emitted | Supported through `UserPromptSubmit` when hooks execute |+| Model metadata | Supported | Not typically exposed by hooks |+| Tool activity | Supported for Copilot tool spans and tool-call events | Supported through pre-tool and post-tool hooks |+| File, command, and MCP-like activity | Supported where Copilot emits tool metadata | Supported where VS Code exposes hook payloads |+| Non-Copilot VS Code agents | Limited to what those agents emit through Copilot/VS Code OTel | Best-effort when VS Code hooks are enabled |+| Local JSONL and dashboard | Supported | Supported |++## Deployment notes++For managed endpoint deployments, include `vscode` in the endpoint harness list when you want Asymptote to manage VS Code Copilot OTel settings:++```bash title="For managed endpoint deployments, include vscode in the endpoint harness list when you want Asymptote to manage VS Code Copilot OTel settings"+beacon endpoint install --system --harness claude,codex,vscode+```++If hooks are allowed by organization policy, install them separately in the logged-in user's context or within the target project. Do not rely on hooks as the primary VS Code signal path; Copilot OTel is preferred and should provide most of the session, prompt, model, and tool visibility needed for Asymptote.++## Related++<Columns cols={2}>+ <Card title="Supported agent harnesses" icon="list-check" href="/runtimes">+ Return to the runtime support overview.+ </Card>+ <Card title="Hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and uninstall optional hook integrations.+ </Card>+</Columns>diff --git a/docs/sdk/index.mdx b/docs/sdk/index.mdxnew file mode 100644index 00000000..d3d5f0b8--- /dev/null+++ b/docs/sdk/index.mdx@@ -0,0 +1,71 @@+---+title: "Asymptote Observe SDK"+description: "Instrument cloud-hosted agent applications with Beacon-compatible telemetry"+---++## SDK Overview++Asymptote Observe instruments cloud-hosted agent applications and exports OpenTelemetry traces that remain compatible with Beacon's normalized endpoint event model. Use it for servers, serverless functions, workers, and hosted agent platforms where installing the local Beacon endpoint agent is not the right fit.++Hosted Observe ingest is available through Asymptote Managed. To get an `ASYMPTOTE_API_KEY`, [reach out for a demo](https://asymptotelabs.ai/contact).++The open-source `agent-beacon` repository currently includes the TypeScript package `@asymptote/sdk`. It provides the `Observe` module for OpenTelemetry setup, common AI SDK instrumentation, manual span wrappers, lifecycle helpers, and Beacon compatibility attributes.++## What Asymptote Captures++Asymptote Observe is OpenTelemetry-first. It records supported model calls, agent turns, tool calls, custom orchestration steps, errors, and Beacon compatibility attributes as spans that can be sent to Asymptote Managed hosted Observe or a customer-managed OTLP collector.++Supported cloud SDK paths:++| SDK or pattern | Support path |+| --- | --- |+| Anthropic | OpenLLMetry instrumentation for `@anthropic-ai/sdk` |+| Claude Agent SDK | `Observe.wrapClaudeAgentQuery()` or `Observe.observe()` around the agent entrypoint |+| OpenAI | OpenLLMetry instrumentation for the `openai` package |+| Vercel AI SDK | Pass `Observe.getTracer()` into `experimental_telemetry` |+| Custom orchestration | Wrap functions with `Observe.observe()` |++<Columns cols={2}>+ <Card title="Quickstart" icon="rocket" href="/sdk/quickstart">+ Install `@asymptote/sdk`, configure export, create a trace, and flush it.+ </Card>+ <Card title="Instrumentation" icon="wand-magic-sparkles" href="/sdk/instrumentation">+ Configure `Observe.initialize()`, patch already-loaded modules, or plug into an existing OpenTelemetry provider.+ </Card>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Wrap custom agent steps, tool calls, and orchestration logic.+ </Card>+ <Card title="SDK Lifecycle" icon="rotate" href="/sdk/lifecycle">+ Flush or shut down tracing in scripts, jobs, serverless handlers, and long-running services.+ </Card>+ <Card title="Agent SDK Integrations" icon="plug" href="/sdk/integrations">+ Capture Anthropic, Claude Agent SDK, OpenAI, Vercel AI SDK, and custom orchestration.+ </Card>+ <Card title="Reference" icon="book-open" href="/sdk/reference">+ Review `Observe` APIs, export options, environment variables, and Beacon compatibility attributes.+ </Card>+</Columns>++## Choose The Right Surface++Use the SDK when agent activity runs in application code you control. Use Asymptote endpoint or CI collection when activity happens in a local harness or ephemeral build job.++| Environment | Recommended surface |+| --- | --- |+| Node.js services, workers, and hosted agent apps | [Asymptote Observe SDK](/sdk/quickstart) |+| Next.js and serverless functions | [Next.js and serverless guide](/sdk/integrations-nextjs-serverless) |+| Local coding and knowledge-worker harnesses | [Asymptote endpoint agent](/runtimes) |+| CI jobs running Claude Code | [`beacon ci`](/cli/ci) |++## SDK And Endpoint Telemetry++The SDK and Asymptote endpoint telemetry share an event contract, but they target different deployment surfaces.++| Surface | Purpose |+| --- | --- |+| Asymptote Observe SDK | Cloud application telemetry exported as OpenTelemetry traces |+| Asymptote endpoint agent | Local endpoint telemetry collected from supported agent harnesses |+| Asymptote CI | Ephemeral CI telemetry captured for a single job |+| Beacon JSONL schema | Normalized event model used by local logs, dashboards, and downstream security pipelines |++Cloud SDK spans set `beacon.origin=cloud` and can include Beacon compatibility attributes such as `beacon.harness.name`, `beacon.event.action`, `beacon.tool.name`, and `beacon.prompt.text`. The same attributes can be consumed by Beacon-compatible collectors or Asymptote Managed Observe ingest.diff --git a/docs/sdk/instrumentation.mdx b/docs/sdk/instrumentation.mdxnew file mode 100644index 00000000..bf83b38f--- /dev/null+++ b/docs/sdk/instrumentation.mdx@@ -0,0 +1,105 @@+---+title: "Instrumentation"+description: "Initialize Asymptote Observe and configure TypeScript SDK instrumentation"+---++## Instrumentation Model++Use `Observe.initialize()` once at application startup to configure the OpenTelemetry provider, exporter, resource attributes, and supported AI SDK instrumentations.++## Initialize++```typescript title="Initialize Observe" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});+```++By default, the SDK creates OpenAI and Anthropic OpenLLMetry instrumentations when they are not disabled.++## Initialize Options++| Option | Purpose |+| --- | --- |+| `apiKey` | Asymptote Managed hosted Observe API key. Defaults to `ASYMPTOTE_API_KEY` |+| `baseUrl` | Asymptote Managed hosted Observe base URL. Defaults to `ASYMPTOTE_BASE_URL` or `https://api.asymptotelabs.ai` |+| `otlpEndpoint` | Explicit OTLP/HTTP endpoint. Defaults to `OTEL_EXPORTER_OTLP_ENDPOINT` |+| `headers` | Additional exporter headers |+| `serviceName` | OpenTelemetry service name. Defaults to `OTEL_SERVICE_NAME` or `asymptote-app` |+| `resourceAttributes` | Extra OpenTelemetry resource attributes |+| `instrumentModules` | Already-loaded modules to patch manually |+| `disableInstrumentations` | Disable default OpenAI and Anthropic instrumentations |+| `instrumentationOptions` | Configure OpenAI and Anthropic instrumentation behavior |+| `spanProcessor` / `spanProcessors` | Custom span processors |+| `spanExporter` | Custom span exporter |+| `disableDefaultExporter` | Skip hosted or explicit OTLP exporter creation |+| `disableBatch` | Use a simple span processor instead of batching |+| `traceExportTimeoutMillis` | Batch exporter timeout |+| `maxExportBatchSize` | Batch exporter size limit |++`Observe.initialize()` may only be called once per process configuration. Call `Observe.shutdown()` before reinitializing with different options. A later `Observe.initialize({ instrumentModules })` call can patch additional modules without replacing the provider.++## Instrument Modules++Pass modules to `instrumentModules` when they may be loaded before auto-instrumentation runs.++```typescript title="Patch already-loaded modules during initialization" lines+import Anthropic from "@anthropic-ai/sdk";+import OpenAI from "openai";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentModules: {+ OpenAI,+ Anthropic,+ },+});+```++Supported module keys in the current TypeScript SDK:++| Key | Package |+| --- | --- |+| `OpenAI`, `openAI`, or `openai` | `openai` |+| `Anthropic` or `anthropic` | `@anthropic-ai/sdk` |+| `claudeAgentSDK` or `claudeAgentSdk` | `@anthropic-ai/claude-agent-sdk` query export |++## Patch Modules After Initialization++Use `Observe.patch()` when the SDK has already initialized and a module needs to be instrumented later, such as inside a framework-specific module boundary.++```typescript title="Patch modules after initialization" lines+import OpenAI from "openai";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++Observe.patch({+ OpenAI,+});+```++`Observe.patch()` requires at least one module. It applies supported OpenLLMetry instrumentation and wraps Claude Agent SDK query functions when the module object is writable.++## Existing OpenTelemetry Providers++If your application already owns OpenTelemetry setup, use `Observe.instrumentations()` with your provider instead of calling `Observe.initialize()` twice.++```typescript title="Reuse an existing OpenTelemetry provider" lines+import { registerInstrumentations } from "@opentelemetry/instrumentation";+import { Observe } from "@asymptote/sdk";++registerInstrumentations({+ instrumentations: Observe.instrumentations({+ openAI: true,+ anthropic: true,+ }),+});+```++For custom export behavior, pass your own `spanExporter`, `spanProcessor`, or `spanProcessors` to `Observe.initialize()`.diff --git a/docs/sdk/integrations-anthropic.mdx b/docs/sdk/integrations-anthropic.mdxnew file mode 100644index 00000000..551533c0--- /dev/null+++ b/docs/sdk/integrations-anthropic.mdx@@ -0,0 +1,132 @@+---+title: "Anthropic"+description: "Instrument Anthropic SDK calls with Asymptote Observe"+---++## Integration Overview++Use this integration when your application calls Anthropic's `@anthropic-ai/sdk` TypeScript package directly. Asymptote Observe uses OpenLLMetry's Anthropic instrumentation so Anthropic model calls flow through the same exporter and Beacon-compatible attribute path as the rest of your agent telemetry.++## Overview++Initialize Asymptote Observe before creating the Anthropic client when possible. The instrumentation captures supported Anthropic SDK spans without changing the way you call `anthropic.messages.create()`.++Using Claude Agent SDK instead of the direct provider SDK? See [Claude Agent SDK](/sdk/integrations-claude-agent-sdk).++## What Asymptote Captures++- Anthropic model calls emitted by the OpenLLMetry Anthropic instrumentation.+- OpenTelemetry resource attributes such as service name, SDK version, `beacon.origin=cloud`, and export mode.+- Beacon compatibility hints where supported by the SDK and instrumentation path.+- Errors recorded on failed spans.++## Prerequisites++- Node.js 20 or newer.+- `@asymptote/sdk` installed.+- `@anthropic-ai/sdk` installed.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK and Anthropic client"+npm install @asymptote/sdk @anthropic-ai/sdk+```++Set environment variables:++```bash title="Set Asymptote Managed and Anthropic environment variables"+export ASYMPTOTE_API_KEY=...+export ANTHROPIC_API_KEY=...+```++## Getting Started++Initialize `Observe` before creating the Anthropic client when possible.++```typescript title="Trace Anthropic messages.create" lines+import Anthropic from "@anthropic-ai/sdk";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentationOptions: {+ anthropic: {+ traceContent: true,+ },+ },+});++const anthropic = new Anthropic({+ apiKey: process.env.ANTHROPIC_API_KEY,+});++const message = await anthropic.messages.create({+ model: "claude-sonnet-4-5",+ max_tokens: 1024,+ messages: [+ {+ role: "user",+ content: "Review this agent workflow for risky tool use.",+ },+ ],+});++await Observe.flush();+```++All supported Anthropic SDK calls are now traced through the configured Asymptote exporter.++## Already-Loaded Clients++If your application imports or creates the Anthropic client before initialization, pass the module to `instrumentModules` or patch it after initialization.++```typescript title="Instrument an already-loaded Anthropic module" lines+import Anthropic from "@anthropic-ai/sdk";+import { Observe } from "@asymptote/sdk";++const anthropic = new Anthropic({+ apiKey: process.env.ANTHROPIC_API_KEY,+});++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentModules: {+ Anthropic,+ },+});+```++## Existing OpenTelemetry Providers++If your application already owns OpenTelemetry setup, register only Asymptote's Anthropic instrumentation with your existing provider.++```typescript title="Register Anthropic instrumentation on an existing provider" lines+import { registerInstrumentations } from "@opentelemetry/instrumentation";+import { Observe } from "@asymptote/sdk";++registerInstrumentations({+ instrumentations: Observe.instrumentations({+ openAI: false,+ anthropic: {+ traceContent: true,+ },+ }),+});+```++## Troubleshooting++- Confirm `ASYMPTOTE_API_KEY` or `OTEL_EXPORTER_OTLP_ENDPOINT` is set in the same process that runs the SDK.+- Initialize `Observe` before constructing the Anthropic client when possible.+- If the Anthropic module is imported before initialization, pass it through `instrumentModules` or `Observe.patch()`.+- Call `Observe.flush()` before short-lived scripts or jobs exit.++## What's Next++<Columns cols={2}>+ <Card title="Claude Agent SDK" icon="robot" href="/sdk/integrations-claude-agent-sdk">+ Wrap Claude Agent SDK query functions with Beacon-compatible prompt spans.+ </Card>+ <Card title="Instrumentation" icon="wand-magic-sparkles" href="/sdk/instrumentation">+ Review initialization, module patching, and existing OpenTelemetry provider setup.+ </Card>+</Columns>diff --git a/docs/sdk/integrations-claude-agent-sdk.mdx b/docs/sdk/integrations-claude-agent-sdk.mdxnew file mode 100644index 00000000..2bd74102--- /dev/null+++ b/docs/sdk/integrations-claude-agent-sdk.mdx@@ -0,0 +1,133 @@+---+title: "Claude Agent SDK"+description: "Wrap Claude Agent SDK query functions with Asymptote Observe"+---++## Integration Overview++Use this integration when your application runs Claude Agent SDK queries through `@anthropic-ai/claude-agent-sdk`. Asymptote Observe can wrap the query function to create a Beacon-compatible root span for each agent turn.++## Overview++Claude Agent SDK integration is currently a query wrapper, not a custom hook adapter. Use `Observe.wrapClaudeAgentQuery()` when module loading prevents provider-level instrumentation or when you want a stable root span around an agent query.++For direct Anthropic API calls through `@anthropic-ai/sdk`, use [Anthropic](/sdk/integrations-anthropic).++## What Asymptote Captures++- A `claude_agent_sdk.query` span for wrapped query calls.+- `beacon.harness.name=claude_agent_sdk`.+- `beacon.event.action=prompt.submitted` and `beacon.event.category=prompt`.+- Prompt text from the first string argument or common object fields such as `prompt`, `input`, and `query`.+- Errors recorded on failed spans.++## Prerequisites++- Node.js 20 or newer.+- `@asymptote/sdk` installed.+- `@anthropic-ai/claude-agent-sdk` installed.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK and Claude Agent SDK"+npm install @asymptote/sdk @anthropic-ai/claude-agent-sdk+```++Set environment variables:++```bash title="Set the Asymptote Managed API key"+export ASYMPTOTE_API_KEY=...+```++## Getting Started++Wrap the query function before using it.++```typescript title="Wrap a Claude Agent SDK query" lines+import { query as originalQuery } from "@anthropic-ai/claude-agent-sdk";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++const query = Observe.wrapClaudeAgentQuery(originalQuery);++const stream = query({+ prompt: "Inspect this repository and summarize the highest-risk changes.",+});++for await (const message of stream) {+ handleMessage(message);+}++await Observe.flush();+```++## Prompt Detection++`wrapClaudeAgentQuery()` records the first string argument as `beacon.prompt.text`. If the first argument is an object, it checks common prompt fields such as `prompt`, `input`, and `query`.++```typescript title="Prompt detection examples" lines+await query("Explain this diff");++await query({+ prompt: "Review this pull request",+});+```++## Patch Module Exports++If you prefer patching the module object, pass it through `instrumentModules` during initialization.++```typescript title="Patch the Claude Agent SDK module" lines+import * as claudeAgentSDK from "@anthropic-ai/claude-agent-sdk";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentModules: {+ claudeAgentSDK,+ },+});+```++If ESM namespace exports are read-only, wrap the query function explicitly with `Observe.wrapClaudeAgentQuery()`.++## Group Agent Work++Use `Observe.observe()` around your entrypoint when one request combines Claude Agent SDK queries with other application work.++```typescript title="Group Claude agent work under a parent span" lines+import { query as originalQuery } from "@anthropic-ai/claude-agent-sdk";+import { Observe } from "@asymptote/sdk";++const query = Observe.wrapClaudeAgentQuery(originalQuery);++const runInvestigation = Observe.observe(+ { name: "agent.investigation" },+ async (prompt: string) => {+ const stream = query({ prompt });+ for await (const message of stream) {+ handleMessage(message);+ }+ },+);+```++## Troubleshooting++- Confirm `ASYMPTOTE_API_KEY` or `OTEL_EXPORTER_OTLP_ENDPOINT` is set in the same process that runs the SDK.+- Make sure application code calls the wrapped `query` function, not the original import.+- If module patching does not work in an ESM namespace, use `Observe.wrapClaudeAgentQuery()` explicitly.+- Call `Observe.flush()` before short-lived scripts or jobs exit.++## What's Next++<Columns cols={2}>+ <Card title="Anthropic" icon="robot" href="/sdk/integrations-anthropic">+ Instrument direct Anthropic provider calls.+ </Card>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Wrap additional agent steps and tool calls.+ </Card>+</Columns>diff --git a/docs/sdk/integrations-custom-agent-steps.mdx b/docs/sdk/integrations-custom-agent-steps.mdxnew file mode 100644index 00000000..4c9a893d--- /dev/null+++ b/docs/sdk/integrations-custom-agent-steps.mdx@@ -0,0 +1,144 @@+---+title: "Custom Agent Steps"+description: "Trace custom agent orchestration with Observe.observe"+---++## Custom Step Tracking++Use `Observe.observe()` for orchestration steps, tool execution, policy checks, and handoffs that provider SDKs do not expose.++## Overview++Custom agent steps are the fallback integration path for frameworks, internal tools, and orchestration code without a dedicated adapter. Wrap the function you control and add Beacon compatibility attributes that describe what happened.++## What Asymptote Captures++- A span for each wrapped function call.+- Input count and output type unless disabled.+- Errors recorded on failed spans.+- Beacon compatibility attributes such as `beacon.event.action`, `beacon.tool.name`, `beacon.mcp.server`, and `beacon.approval.decision`.++## Prerequisites++- Node.js 20 or newer.+- `@asymptote/sdk` installed.+- The agent framework, tool client, or internal orchestration code you want to wrap.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK"+npm install @asymptote/sdk+```++Set an export destination:++```bash title="Set the Asymptote Managed API key"+export ASYMPTOTE_API_KEY=...+```++## Getting Started++```typescript title="Wrap a custom tool step" lines+import {+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_HARNESS_NAME,+ ATTR_BEACON_TOOL_NAME,+ Observe,+} from "@asymptote/sdk";+import { searchDocs } from "./tools/search-docs";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++const runTool = Observe.observe(+ {+ name: "agent.tool.run",+ attributes: {+ [ATTR_BEACON_HARNESS_NAME]: "custom_agent",+ [ATTR_BEACON_EVENT_ACTION]: "tool.invoked",+ [ATTR_BEACON_TOOL_NAME]: "search_docs",+ },+ },+ async (query: string) => searchDocs(query),+);++await runTool("How does endpoint telemetry get forwarded?");+await Observe.flush();+```++The wrapped function preserves the original return behavior for sync functions, promises, and async iterables. Errors are recorded on the span and then rethrown.++## Avoid Sensitive Metadata++Set `ignoreInput` or `ignoreOutput` when wrapper metadata should avoid recording argument counts or output type.++```typescript title="Redact sensitive step metadata" lines+import { Observe } from "@asymptote/sdk";+import { lookupSecret } from "./tools/secrets";++const redactSensitiveStep = Observe.observe(+ {+ name: "agent.secret.lookup",+ ignoreInput: true,+ ignoreOutput: true,+ },+ async (id: string) => lookupSecret(id),+);+```++## Common Beacon Actions++Use Beacon compatibility attributes when a custom step should normalize into a known event category.++| Action | Typical category | Example use |+| --- | --- | --- |+| `prompt.submitted` | `prompt` | User prompt or agent turn |+| `tool.invoked` | `tool` | Function call, retrieval step, or external API call |+| `command.executed` | `command` | Shell command or build step |+| `file.modified` | `file` | Agent-created or edited file |+| `mcp.tool_invoked` | `mcp` | MCP server tool call |+| `approval.requested` | `approval` | Human review or policy gate |++```typescript title="Wrap an MCP tool call" lines+import {+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_EVENT_CATEGORY,+ ATTR_BEACON_MCP_SERVER,+ ATTR_BEACON_MCP_TOOL,+ Observe,+} from "@asymptote/sdk";+import { searchDocsMcp } from "./mcp/docs";++const callMcpTool = Observe.observe(+ {+ name: "agent.mcp.call",+ attributes: {+ [ATTR_BEACON_EVENT_ACTION]: "mcp.tool_invoked",+ [ATTR_BEACON_EVENT_CATEGORY]: "mcp",+ [ATTR_BEACON_MCP_SERVER]: "docs",+ [ATTR_BEACON_MCP_TOOL]: "search",+ },+ },+ async (query: string) => searchDocsMcp(query),+);+```++See the [SDK reference](/sdk/reference#beacon-compatibility-attributes) for the full attribute list.++## Troubleshooting++- Confirm `Observe.initialize()` runs before wrapped functions are called.+- Confirm the wrapped function returned by `Observe.observe()` is the function your application invokes.+- Use `ignoreInput` or `ignoreOutput` for sensitive steps.+- Call `Observe.flush()` before short-lived scripts or jobs exit.++## What's Next++<Columns cols={2}>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Review the full manual span wrapper reference.+ </Card>+ <Card title="SDK Reference" icon="book-open" href="/sdk/reference">+ Review supported Beacon compatibility attributes.+ </Card>+</Columns>diff --git a/docs/sdk/integrations-nextjs-serverless.mdx b/docs/sdk/integrations-nextjs-serverless.mdxnew file mode 100644index 00000000..bac089fa--- /dev/null+++ b/docs/sdk/integrations-nextjs-serverless.mdx@@ -0,0 +1,82 @@+---+title: "Next.js And Serverless"+description: "Initialize Asymptote Observe in Next.js and short-lived serverless runtimes"+---++## Serverless Setup++Initialize `Observe` once in the earliest Node-only entrypoint. In Next.js, use `instrumentation.ts` and guard against the edge runtime:++## Prerequisites++- Node.js 20 or newer.+- A Next.js app or another serverless Node.js runtime.+- `@asymptote/sdk` installed.+- Any agent SDKs used by your route handlers, such as Vercel AI SDK.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK and Vercel AI SDK"+npm install @asymptote/sdk ai @ai-sdk/openai+```++## Next.js Instrumentation++```typescript title="Initialize in instrumentation.ts" lines+export async function register() {+ if (process.env.NEXT_RUNTIME === "nodejs") {+ const { Observe } = await import("@asymptote/sdk");++ Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ });+ }+}+```++This keeps SDK initialization out of edge runtimes while ensuring Node.js routes, server actions, and background work share the same tracing setup.++## Serverless Handlers++For short-lived serverless invocations, call `Observe.flush()` before returning if traces are created immediately before the process may terminate.++```typescript title="Flush traces in a serverless handler" lines+import { openai } from "@ai-sdk/openai";+import { generateText } from "ai";+import { Observe } from "@asymptote/sdk";++export async function POST(request: Request) {+ const prompt = await request.text();+ const result = await generateText({+ model: openai("gpt-4.1-mini"),+ prompt,+ experimental_telemetry: {+ isEnabled: true,+ tracer: Observe.getTracer(),+ },+ });++ await Observe.flush();++ return Response.json({ text: result.text });+}+```++If the runtime owns a long-lived process, reserve `Observe.shutdown()` for graceful process shutdown rather than calling it after every request.++## Customer-Managed OTLP++Serverless and preview environments can send to a customer-managed collector by setting `OTEL_EXPORTER_OTLP_ENDPOINT` instead of Asymptote Managed hosted Observe credentials.++```bash title="Set the OTLP endpoint"+export OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.example.com+```++```typescript title="Initialize with a customer-managed OTLP endpoint" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ otlpEndpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,+});+```++Explicit OTLP export does not require an Asymptote Managed `ASYMPTOTE_API_KEY`.diff --git a/docs/sdk/integrations-openai.mdx b/docs/sdk/integrations-openai.mdxnew file mode 100644index 00000000..56cedd76--- /dev/null+++ b/docs/sdk/integrations-openai.mdx@@ -0,0 +1,166 @@+---+title: "OpenAI"+description: "Instrument OpenAI SDK calls with Asymptote Observe"+---++## Integration Overview++Use this integration when your application calls the `openai` JavaScript package directly. Asymptote Observe uses OpenLLMetry's OpenAI instrumentation so OpenAI spans flow through the same exporter and Beacon-compatible attribute path as the rest of your agent telemetry.++## Overview++Initialize Asymptote Observe before creating the OpenAI client when possible. The instrumentation captures supported OpenAI SDK spans without changing the way you call `openai`.++## What Asymptote Captures++- OpenAI model calls emitted by the OpenLLMetry OpenAI instrumentation.+- OpenTelemetry resource attributes such as service name, SDK version, `beacon.origin=cloud`, and export mode.+- Beacon compatibility hints where supported by the SDK and instrumentation path.+- Errors recorded on failed spans.++## Prerequisites++- Node.js 20 or newer.+- `@asymptote/sdk` installed.+- `openai` installed.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK and OpenAI client"+npm install @asymptote/sdk openai+```++Set environment variables:++```bash title="Set Asymptote Managed and OpenAI environment variables"+export ASYMPTOTE_API_KEY=...+export OPENAI_API_KEY=...+```++## Getting Started++Initialize `Observe` before creating the OpenAI client when possible.++```typescript title="Trace OpenAI responses.create" lines+import OpenAI from "openai";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentationOptions: {+ openAI: {+ traceContent: true,+ },+ },+});++const openai = new OpenAI({+ apiKey: process.env.OPENAI_API_KEY,+});++const response = await openai.responses.create({+ model: "gpt-4.1-mini",+ input: "Summarize the security implications of this diff.",+});++await Observe.flush();+```++All supported OpenAI SDK calls are now traced through the configured Asymptote exporter.++## Already-Loaded Clients++If your application imports or creates the OpenAI client before initialization, pass the module to `instrumentModules` or patch it after initialization.++```typescript title="Instrument an already-loaded OpenAI module" lines+import OpenAI from "openai";+import { Observe } from "@asymptote/sdk";++const openai = new OpenAI({+ apiKey: process.env.OPENAI_API_KEY,+});++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+ instrumentModules: {+ OpenAI,+ },+});++const response = await openai.chat.completions.create({+ model: "gpt-4.1-mini",+ messages: [+ {+ role: "user",+ content: "Draft a remediation plan for this finding.",+ },+ ],+});++await Observe.flush();+```++## Group Calls With Custom Spans++Wrap application logic with `Observe.observe()` when one route, job, or agent turn makes multiple OpenAI calls and you want them grouped under one parent span.++```typescript title="Wrap multiple OpenAI calls" lines+import OpenAI from "openai";+import { Observe } from "@asymptote/sdk";++const openai = new OpenAI({+ apiKey: process.env.OPENAI_API_KEY,+});++const reviewPullRequest = Observe.observe(+ { name: "agent.pr_review" },+ async (diff: string) => {+ const summary = await openai.responses.create({+ model: "gpt-4.1-mini",+ input: `Summarize this diff:\n${diff}`,+ });++ const risk = await openai.responses.create({+ model: "gpt-4.1-mini",+ input: `Identify security risks in: ${summary.output_text}`,+ });++ return risk.output_text;+ },+);+```++## Existing OpenTelemetry Providers++If your application already owns OpenTelemetry setup, register Asymptote's OpenAI instrumentation with your existing provider instead of calling `Observe.initialize()` twice.++```typescript title="Register OpenAI instrumentation on an existing provider" lines+import { registerInstrumentations } from "@opentelemetry/instrumentation";+import { Observe } from "@asymptote/sdk";++registerInstrumentations({+ instrumentations: Observe.instrumentations({+ openAI: {+ traceContent: true,+ },+ anthropic: false,+ }),+});+```++## Troubleshooting++- Confirm `ASYMPTOTE_API_KEY` or `OTEL_EXPORTER_OTLP_ENDPOINT` is set in the same process that runs the SDK.+- Initialize `Observe` before constructing the OpenAI client when possible.+- If the OpenAI module is imported before initialization, pass it through `instrumentModules` or `Observe.patch()`.+- Call `Observe.flush()` before short-lived scripts or jobs exit.++## What's Next++<Columns cols={2}>+ <Card title="Instrumentation" icon="wand-magic-sparkles" href="/sdk/instrumentation">+ Review initialization, module patching, and existing OpenTelemetry provider setup.+ </Card>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Group multiple model calls and custom agent steps under parent spans.+ </Card>+</Columns>diff --git a/docs/sdk/integrations-vercel-ai-sdk.mdx b/docs/sdk/integrations-vercel-ai-sdk.mdxnew file mode 100644index 00000000..e9342e1a--- /dev/null+++ b/docs/sdk/integrations-vercel-ai-sdk.mdx@@ -0,0 +1,172 @@+---+title: "Vercel AI SDK"+description: "Use Asymptote Observe tracing with Vercel AI SDK telemetry"+---++## Integration Overview++Pass the Asymptote tracer into AI SDK telemetry so model calls and tool loops stay in the same trace.++## Overview++AI SDK exposes OpenTelemetry hooks through `experimental_telemetry`. Asymptote Observe is OpenTelemetry-first, so you can trace `generateText`, `streamText`, tool loops, and custom orchestration by passing `Observe.getTracer()` to each AI SDK call you want captured.++This page covers Node.js usage. For framework placement and serverless flushing, see [Next.js and serverless](/sdk/integrations-nextjs-serverless).++## What Asymptote Captures++- AI SDK spans emitted when `experimental_telemetry.isEnabled` is `true`.+- Model call spans for supported `generate*` and `stream*` operations.+- Tool call spans emitted by AI SDK telemetry.+- Provider and model metadata where AI SDK and provider adapters emit it.+- Parent spans you add with `Observe.observe()` for route or workflow grouping.++## Prerequisites++- Node.js 20 or newer.+- `@asymptote/sdk` installed.+- `ai` and an AI SDK model provider package installed.+- `ASYMPTOTE_API_KEY` set for Asymptote Managed hosted Observe, or `OTEL_EXPORTER_OTLP_ENDPOINT` set for customer-managed OTLP export. To get an Asymptote Managed API key, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK and Vercel AI SDK"+npm install @asymptote/sdk ai @ai-sdk/openai+```++Set environment variables for Asymptote and your provider:++```bash title="Set Asymptote Managed and OpenAI environment variables"+export ASYMPTOTE_API_KEY=...+export OPENAI_API_KEY=...+```++## Getting Started++Initialize `Observe` once at application startup, then pass the tracer to AI SDK calls.++```typescript title="Trace an AI SDK generateText call" lines+import { openai } from "@ai-sdk/openai";+import { generateText } from "ai";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++await generateText({+ model: openai("gpt-4.1-mini"),+ prompt: "Review this pull request",+ experimental_telemetry: {+ isEnabled: true,+ tracer: Observe.getTracer(),+ },+});++await Observe.flush();+```++The same pattern applies anywhere AI SDK accepts `experimental_telemetry`.++## Reuse The Tracer++Use `Observe.getTracer()` anywhere AI SDK accepts an OpenTelemetry tracer. This lets generated spans share the same exporter, resource attributes, and Beacon compatibility path as the rest of your application.++```typescript title="Reuse the Observe tracer" lines+import { openai } from "@ai-sdk/openai";+import { generateText } from "ai";+import { Observe } from "@asymptote/sdk";++const tracer = Observe.getTracer();++await generateText({+ model: openai("gpt-4.1-mini"),+ prompt: "Find risky shell commands in this agent transcript.",+ experimental_telemetry: {+ isEnabled: true,+ tracer,+ },+});+```++## Trace A Tool Loop++Pass the tracer into tool-calling AI SDK flows as well.++```typescript title="Trace an AI SDK tool loop" lines+import { openai } from "@ai-sdk/openai";+import { generateText, stepCountIs, tool } from "ai";+import { z } from "zod";+import { Observe } from "@asymptote/sdk";++const result = await generateText({+ model: openai("gpt-4.1-mini"),+ prompt: "Look up the security owner for the repository and summarize next steps.",+ tools: {+ repoOwner: tool({+ description: "Look up the owner for a repository.",+ inputSchema: z.object({ repo: z.string() }),+ execute: async ({ repo }) => ({ repo, owner: "security-platform" }),+ }),+ },+ stopWhen: stepCountIs(3),+ experimental_telemetry: {+ isEnabled: true,+ tracer: Observe.getTracer(),+ functionId: "repo-security-owner",+ },+});+```++## Group Calls With Custom Steps++Wrap orchestration code around AI SDK calls when you need spans for planning, policy checks, retrieval, or handoffs that are not covered by model telemetry.++```typescript title="Group AI SDK calls with a parent span" lines+import { openai } from "@ai-sdk/openai";+import { generateText } from "ai";+import {+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_HARNESS_NAME,+ Observe,+} from "@asymptote/sdk";++const runAgentTurn = Observe.observe(+ {+ name: "agent.turn",+ attributes: {+ [ATTR_BEACON_HARNESS_NAME]: "vercel_ai_sdk",+ [ATTR_BEACON_EVENT_ACTION]: "prompt.submitted",+ },+ },+ async (prompt: string) => {+ return generateText({+ model: openai("gpt-4.1-mini"),+ prompt,+ experimental_telemetry: {+ isEnabled: true,+ tracer: Observe.getTracer(),+ },+ });+ },+);+```++For serverless handlers, call `Observe.flush()` before returning if the invocation may terminate immediately after the model call.++## Troubleshooting++- Confirm `ASYMPTOTE_API_KEY` or `OTEL_EXPORTER_OTLP_ENDPOINT` is set in the runtime process.+- Make sure every AI SDK call you want traced has `experimental_telemetry.isEnabled=true`.+- Pass `tracer: Observe.getTracer()` on each traced AI SDK call.+- In short-lived scripts or jobs, call `Observe.flush()` before exit.+- In Next.js, initialize from `instrumentation.ts` in the Node.js runtime.++## What's Next++<Columns cols={2}>+ <Card title="Next.js And Serverless" icon="cloud" href="/sdk/integrations-nextjs-serverless">+ Place initialization correctly in Next.js and flush traces in short-lived runtimes.+ </Card>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Group AI SDK calls under custom parent spans.+ </Card>+</Columns>diff --git a/docs/sdk/integrations.mdx b/docs/sdk/integrations.mdxnew file mode 100644index 00000000..b31089bc--- /dev/null+++ b/docs/sdk/integrations.mdx@@ -0,0 +1,55 @@+---+title: "Agent SDK Integrations"+description: "Choose an Asymptote Observe integration path for AI SDKs and agent orchestration"+---++## Integration Overview++Asymptote Observe traces supported LLM providers, agent SDKs, and orchestration code through OpenTelemetry. Initialize `Observe`, configure the integration path for the SDK you use, and your model calls or agent turns can flow to Asymptote Managed hosted Observe or a customer-managed OTLP collector.++Browse the integrations below to see setup instructions, what is captured, and troubleshooting guidance.++<Columns cols={2}>+ <Card title="Anthropic" icon="robot" href="/sdk/integrations-anthropic">+ Instrument `@anthropic-ai/sdk` model calls with Asymptote Observe.+ </Card>+ <Card title="Claude Agent SDK" icon="robot" href="/sdk/integrations-claude-agent-sdk">+ Wrap Claude Agent SDK query functions with Beacon-compatible prompt spans.+ </Card>+ <Card title="OpenAI" icon="brain" href="/sdk/integrations-openai">+ Instrument `openai` package model calls with Asymptote Observe.+ </Card>+ <Card title="Vercel AI SDK" icon="bolt" href="/sdk/integrations-vercel-ai-sdk">+ Pass `Observe.getTracer()` into AI SDK telemetry for model calls and tool loops.+ </Card>+ <Card title="Custom Agent Steps" icon="diagram-project" href="/sdk/integrations-custom-agent-steps">+ Use `Observe.observe()` for orchestration, tools, policy checks, and handoffs.+ </Card>+ <Card title="Next.js And Serverless" icon="cloud" href="/sdk/integrations-nextjs-serverless">+ Initialize once in Node-only entrypoints and flush traces before short-lived runtimes exit.+ </Card>+</Columns>++## Shared Setup++All integration paths start by installing and initializing the SDK:++Hosted Observe export requires an Asymptote Managed API key. To get `ASYMPTOTE_API_KEY`, [reach out for a demo](https://asymptotelabs.ai/contact).++```bash title="Install the SDK"+npm install @asymptote/sdk+```++```typescript title="Shared SDK initialization" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});+```++See the [SDK quickstart](/sdk/quickstart) for Asymptote Managed hosted Observe, customer-managed OTLP, custom exporter, and shutdown options.++## Not Supported Yet++OpenAI agent-framework tracing is not documented here because the current `agent-beacon` TypeScript SDK does not ship that adapter yet.diff --git a/docs/sdk/lifecycle.mdx b/docs/sdk/lifecycle.mdxnew file mode 100644index 00000000..38412e64--- /dev/null+++ b/docs/sdk/lifecycle.mdx@@ -0,0 +1,77 @@+---+title: "SDK Lifecycle"+description: "Flush and shut down Asymptote Observe tracing"+---++## Lifecycle Overview++Use `Observe.flush()` and `Observe.shutdown()` to control when finished spans are exported and when the SDK releases tracing resources.++## Flush++`Observe.flush()` forces the current provider to export finished spans.++```typescript title="Flush spans" lines+await Observe.flush();+```++Use `flush()` when the process may terminate before the batch exporter sends spans in the background:++| Environment | Guidance |+| --- | --- |+| CLI scripts | Flush before process exit |+| CI jobs | Flush before the job step exits |+| Serverless handlers | Flush before returning when spans were created immediately before exit |+| Long-running web servers | Prefer graceful shutdown hooks instead of flushing on every request |++Flushing inside every web request can add latency. In long-running services, let the batch processor export normally and flush during shutdown.++## Shutdown++`Observe.shutdown()` disables instrumentations, shuts down the provider, and clears SDK state so the process can initialize again with different options.++```typescript title="Shut down tracing" lines+await Observe.shutdown();+```++Use shutdown when the process owns the provider lifecycle:++```typescript title="Handle graceful shutdown" lines+import { Observe } from "@asymptote/sdk";++process.on("SIGTERM", async () => {+ await Observe.shutdown();+ process.exit(0);+});+```++## Reinitialization++`Observe.initialize()` rejects conflicting reinitialization while the SDK is active. To change exporter settings, shut down first:++```typescript title="Reinitialize with a new exporter" lines+await Observe.shutdown();++Observe.initialize({+ otlpEndpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,+});+```++If the SDK is already initialized, a later `Observe.initialize({ instrumentModules })` call patches additional modules without replacing the provider.++## Short-Lived Example++```typescript title="Short-lived job example" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++const run = Observe.observe({ name: "agent.job" }, async () => {+ return runAgentJob();+});++await run();+await Observe.flush();+```diff --git a/docs/sdk/observe.mdx b/docs/sdk/observe.mdxnew file mode 100644index 00000000..60eab6ef--- /dev/null+++ b/docs/sdk/observe.mdx@@ -0,0 +1,105 @@+---+title: "Observe"+description: "Wrap custom agent functions with Asymptote Observe"+---++## Observe API++Use `Observe.observe()` to create spans for custom agent orchestration: planning, tool execution, policy checks, handoffs, retrieval, and other work that provider SDKs do not expose.++## Wrap A Function++```typescript title="Wrap a tool call" lines+import {+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_EVENT_CATEGORY,+ ATTR_BEACON_HARNESS_NAME,+ ATTR_BEACON_TOOL_NAME,+ Observe,+} from "@asymptote/sdk";++const runSearch = Observe.observe(+ {+ name: "agent.tool.search",+ attributes: {+ [ATTR_BEACON_HARNESS_NAME]: "custom_agent",+ [ATTR_BEACON_EVENT_ACTION]: "tool.invoked",+ [ATTR_BEACON_EVENT_CATEGORY]: "tool",+ [ATTR_BEACON_TOOL_NAME]: "search_docs",+ },+ },+ async (query: string) => {+ return searchDocs(query);+ },+);++await runSearch("How does Beacon normalize endpoint events?");+await Observe.flush();+```++The wrapped function preserves the original return behavior for sync functions, promises, and async iterables. Errors are recorded on the span and then rethrown.++## Observe Options++| Option | Purpose |+| --- | --- |+| `name` | Span name |+| `spanKind` | Optional OpenTelemetry span kind |+| `attributes` | Span attributes, including Beacon compatibility attributes |+| `ignoreInput` | Do not record `asymptote.observe.input.count` |+| `ignoreOutput` | Do not record `asymptote.observe.output.type` |++## Avoid Sensitive Metadata++Set `ignoreInput` or `ignoreOutput` when wrapper metadata should avoid recording argument counts or output type.++```typescript title="Ignore input and output metadata" lines+const lookupSecretSafely = Observe.observe(+ {+ name: "agent.secret.lookup",+ ignoreInput: true,+ ignoreOutput: true,+ },+ async (id: string) => lookupSecret(id),+);+```++Beacon compatibility attributes should still be chosen carefully. Do not place raw secrets, credentials, or high-risk prompt content in custom attributes.++## Common Beacon Actions++Use Beacon compatibility attributes when a custom step should normalize into a known event category.++| Action | Typical category | Example use |+| --- | --- | --- |+| `prompt.submitted` | `prompt` | User prompt or agent turn |+| `tool.invoked` | `tool` | Function call, retrieval step, or external API call |+| `command.executed` | `command` | Shell command or build step |+| `file.modified` | `file` | Agent-created or edited file |+| `mcp.tool_invoked` | `mcp` | MCP server tool call |+| `approval.requested` | `approval` | Human review or policy gate |++```typescript title="Wrap an MCP tool call" lines+import {+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_EVENT_CATEGORY,+ ATTR_BEACON_MCP_SERVER,+ ATTR_BEACON_MCP_TOOL,+ Observe,+} from "@asymptote/sdk";++const callMcpTool = Observe.observe(+ {+ name: "agent.mcp.call",+ attributes: {+ [ATTR_BEACON_EVENT_ACTION]: "mcp.tool_invoked",+ [ATTR_BEACON_EVENT_CATEGORY]: "mcp",+ [ATTR_BEACON_MCP_SERVER]: "docs",+ [ATTR_BEACON_MCP_TOOL]: "search",+ },+ },+ async (query: string) => searchDocsMcp(query),+);+```++See the [SDK reference](/sdk/reference#beacon-compatibility-attributes) for the full attribute list.diff --git a/docs/sdk/quickstart.mdx b/docs/sdk/quickstart.mdxnew file mode 100644index 00000000..664d9871--- /dev/null+++ b/docs/sdk/quickstart.mdx@@ -0,0 +1,150 @@+---+title: "SDK Quickstart"+description: "Install and initialize the Asymptote TypeScript SDK"+---++## Setup Flow++Follow this path to install `@asymptote/sdk`, initialize tracing, create a first span, and flush it before the process exits.++## 1. Install++```bash title="Install the SDK"+npm install @asymptote/sdk+```++The package requires Node.js 20 or newer.++## 2. Configure Export++Choose Asymptote Managed hosted Observe or a customer-managed OTLP endpoint.++### Hosted Observe++Hosted Observe requires an Asymptote Managed account. To get an `ASYMPTOTE_API_KEY`, [reach out for a demo](https://asymptotelabs.ai/contact), then initialize `Observe` as early as possible in your application startup:++```bash title="Set the Asymptote Managed API key"+export ASYMPTOTE_API_KEY=...+```++```typescript title="Hosted Observe initialization" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});+```++Hosted export uses OTLP/HTTP traces.++| Setting | Value |+| --- | --- |+| Default base URL | `https://api.asymptotelabs.ai` |+| Observe path | `/v1/observe` |+| API key env var | `ASYMPTOTE_API_KEY` |+| Base URL env var | `ASYMPTOTE_BASE_URL` |+| Auth header | `authorization: Bearer <api key>` |++The SDK appends `/v1/observe` when the configured base URL or endpoint does not already include it.++### Customer-Managed OTLP++Use an explicit OTLP endpoint when traces should go to a local or customer-managed collector instead of Asymptote Managed hosted Observe:++```bash title="Set the OTLP endpoint"+export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318+```++```typescript title="Customer-managed OTLP initialization" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ otlpEndpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,+});+```++Explicit OTLP export does not require an Asymptote Managed API key.++## 3. Create A First Trace++Wrap application code with `Observe.observe()` to create a Beacon-compatible span.++```typescript title="Create a traced function" lines+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ apiKey: process.env.ASYMPTOTE_API_KEY,+});++const plan = Observe.observe(+ {+ name: "agent.plan",+ attributes: {+ "beacon.harness.name": "custom_agent",+ "beacon.event.action": "tool.invoked",+ "beacon.event.category": "tool",+ "beacon.tool.name": "planner",+ },+ },+ async (input: string) => {+ return `Plan for: ${input}`;+ },+);++await plan("Review this pull request");+await Observe.flush();+```++## Export Precedence++`Observe.initialize()` resolves export configuration in this order:++| Priority | Source |+| --- | --- |+| 1 | `initialize({ otlpEndpoint })` |+| 2 | `OTEL_EXPORTER_OTLP_ENDPOINT` |+| 3 | Asymptote Managed hosted `baseUrl` when `apiKey` or `ASYMPTOTE_API_KEY` is present |++If neither hosted credentials nor an explicit OTLP endpoint is configured, use a custom exporter or disable the default exporter.++```typescript title="Initialize with a custom exporter" lines+import { InMemorySpanExporter } from "@opentelemetry/sdk-trace-base";+import { Observe } from "@asymptote/sdk";++Observe.initialize({+ spanExporter: new InMemorySpanExporter(),+ disableDefaultExporter: true,+ disableBatch: true,+});+```++## What To Read Next++<Columns cols={2}>+ <Card title="Instrumentation" icon="wand-magic-sparkles" href="/sdk/instrumentation">+ Configure SDK initialization, module patching, and existing OpenTelemetry providers.+ </Card>+ <Card title="Observe" icon="diagram-project" href="/sdk/observe">+ Wrap custom agent functions and control span metadata.+ </Card>+ <Card title="SDK Lifecycle" icon="rotate" href="/sdk/lifecycle">+ Decide when to flush or shut down tracing.+ </Card>+ <Card title="Agent SDK Integrations" icon="plug" href="/sdk/integrations">+ Add supported Anthropic, Claude Agent SDK, OpenAI, or Vercel AI SDK instrumentation.+ </Card>+</Columns>++## Flush Before Exit++For short-lived scripts, CI jobs, and serverless handlers, flush spans before the process exits:++```typescript title="Flush spans before exit" lines+await Observe.flush();+```++When the process owns the OpenTelemetry provider lifecycle, shut it down during graceful termination:++```typescript title="Shut down tracing on exit" lines+await Observe.shutdown();+```diff --git a/docs/sdk/reference.mdx b/docs/sdk/reference.mdxnew file mode 100644index 00000000..7789307a--- /dev/null+++ b/docs/sdk/reference.mdx@@ -0,0 +1,144 @@+---+title: "SDK Reference"+description: "Asymptote Observe TypeScript API, options, and Beacon compatibility attributes"+---++## API Surface++The TypeScript SDK exports the `Observe` class, function equivalents, and Beacon compatibility constants from `@asymptote/sdk`.++For guided setup, start with [SDK Quickstart](/sdk/quickstart), [Instrumentation](/sdk/instrumentation), [Observe](/sdk/observe), and [SDK Lifecycle](/sdk/lifecycle).++## Observe APIs++| API | Purpose |+| --- | --- |+| `Observe.initialize(options)` | Configure the OpenTelemetry provider, exporter, resource attributes, and default instrumentations |+| `Observe.getTracer(name?, version?)` | Return the SDK tracer, or the global OpenTelemetry tracer before initialization |+| `Observe.observe(options, fn)` | Wrap a sync, async, or async-iterable function in a span |+| `Observe.patch(modules)` | Manually apply supported instrumentations to modules loaded before initialization |+| `Observe.instrumentations(options?)` | Return OpenAI and Anthropic OpenLLMetry instrumentations for an existing provider |+| `Observe.wrapClaudeAgentQuery(query)` | Wrap a Claude Agent SDK query function with a Beacon-compatible prompt span |+| `Observe.flush()` | Force flush finished spans |+| `Observe.shutdown()` | Disable instrumentations, shut down the provider, and allow later reinitialization |++Function exports are also available for the same operations, including `initialize`, `getTracer`, `observe`, `patch`, `initializeAsymptoteInstrumentations`, `wrapClaudeAgentQuery`, `flush`, `shutdown`, `isInitialized`, and `resolveExporterConfig`.++## Initialize Options++| Option | Purpose |+| --- | --- |+| `apiKey` | Asymptote Managed hosted Observe API key. Defaults to `ASYMPTOTE_API_KEY` |+| `baseUrl` | Asymptote Managed hosted Observe base URL. Defaults to `ASYMPTOTE_BASE_URL` or `https://api.asymptotelabs.ai` |+| `otlpEndpoint` | Explicit OTLP/HTTP endpoint. Defaults to `OTEL_EXPORTER_OTLP_ENDPOINT` |+| `headers` | Additional exporter headers |+| `serviceName` | OpenTelemetry service name. Defaults to `OTEL_SERVICE_NAME` or `asymptote-app` |+| `resourceAttributes` | Extra OpenTelemetry resource attributes |+| `instrumentModules` | Already-loaded modules to patch manually |+| `disableInstrumentations` | Disable default OpenAI and Anthropic instrumentations |+| `instrumentationOptions` | Configure OpenAI and Anthropic instrumentation behavior |+| `spanProcessor` / `spanProcessors` | Custom span processors |+| `spanExporter` | Custom span exporter |+| `disableDefaultExporter` | Skip hosted or explicit OTLP exporter creation |+| `disableBatch` | Use a simple span processor instead of batching |+| `traceExportTimeoutMillis` | Batch exporter timeout |+| `maxExportBatchSize` | Batch exporter size limit |++`Observe.initialize()` may only be called once per process configuration. Call `Observe.shutdown()` before reinitializing with different options. A later `initialize({ instrumentModules })` call can patch additional modules without replacing the provider.++## Observe Options++| Option | Purpose |+| --- | --- |+| `name` | Span name |+| `spanKind` | Optional OpenTelemetry span kind |+| `attributes` | Span attributes, including Beacon compatibility attributes |+| `ignoreInput` | Do not record `asymptote.observe.input.count` |+| `ignoreOutput` | Do not record `asymptote.observe.output.type` |++## Export Modes++| Mode | How it is selected |+| --- | --- |+| `hosted` | Asymptote Managed `apiKey` or `ASYMPTOTE_API_KEY` is present and no explicit OTLP endpoint is configured |+| `otlp` | `otlpEndpoint` or `OTEL_EXPORTER_OTLP_ENDPOINT` is present |+| `custom` | Default exporter is disabled or a custom span exporter is provided |++## Beacon Compatibility Attributes++Cloud SDKs should prefer standard OpenTelemetry attributes when they exist, especially `gen_ai.*` attributes for model and prompt metadata. Use Beacon attributes for fields that need to normalize into Beacon endpoint-style events.++| Attribute | Purpose |+| --- | --- |+| `beacon.origin` | `cloud`, `local`, or `ci`; the SDK sets cloud resource attributes by default |+| `beacon.harness.name` | Runtime or integration name such as `vercel_ai_sdk`, `claude_agent_sdk`, `openai_sdk`, `anthropic_sdk`, `gemini_api`, or `custom_agent` |+| `beacon.event.action` | Normalized action such as `prompt.submitted`, `tool.invoked`, `command.executed`, `file.modified`, `mcp.tool_invoked`, or `approval.requested` |+| `beacon.event.category` | Category such as `prompt`, `tool`, `command`, `file`, `mcp`, `approval`, or `session` |+| `beacon.session.id` | Stable trace, session, or conversation identifier |+| `beacon.session.working_directory` | Workspace path when safe to disclose |+| `beacon.tool.name` | Tool or function name |+| `beacon.tool.command` | Tool arguments or command string, subject to redaction and size limits |+| `beacon.tool.path` | Tool target path |+| `beacon.command` | Shell command text |+| `beacon.command.exit_code` | Shell command exit code |+| `beacon.command.duration_ms` | Command duration in milliseconds |+| `beacon.file.path` | File touched by the agent |+| `beacon.file.operation` | File operation such as `read`, `create`, `modify`, or `delete` |+| `beacon.file.language` | Language identifier |+| `beacon.mcp.server` | MCP server name |+| `beacon.mcp.tool` | MCP tool name |+| `beacon.approval.decision` | Approval or policy decision |+| `beacon.approval.reason` | Approval or policy reason |+| `beacon.prompt.text` | Prompt text when available |+| `beacon.content.retention` | Content retention hint |++## SDK Metadata Attributes++| Attribute | Purpose |+| --- | --- |+| `asymptote.observe.integration.name` | Integration or wrapper name |+| `asymptote.observe.integration.version` | Integration package version |+| `asymptote.observe.sdk.mode` | Export mode: `hosted`, `otlp`, or `custom` |++## Constants++The package exports constants for the stable Beacon event identity and compatibility attributes:++```typescript title="Import Beacon compatibility constants" lines+import {+ ATTR_ASYMPTOTE_SDK_MODE,+ ATTR_BEACON_EVENT_ACTION,+ ATTR_BEACON_HARNESS_NAME,+ ATTR_BEACON_ORIGIN,+ BEACON_PRODUCT,+ BEACON_SCHEMA_VERSION,+ BEACON_VENDOR,+} from "@asymptote/sdk";+```++The wire-compatible Beacon event identity remains:++```json+{+ "vendor": "beacon",+ "product": "endpoint-agent",+ "schema_version": "1.0"+}+```++## Integration Pages++<Columns cols={2}>+ <Card title="Anthropic" icon="robot" href="/sdk/integrations-anthropic">+ Instrument `@anthropic-ai/sdk` model calls.+ </Card>+ <Card title="Claude Agent SDK" icon="robot" href="/sdk/integrations-claude-agent-sdk">+ Wrap Claude Agent SDK query functions.+ </Card>+ <Card title="OpenAI" icon="brain" href="/sdk/integrations-openai">+ Instrument `openai` package model calls.+ </Card>+ <Card title="Vercel AI SDK" icon="bolt" href="/sdk/integrations-vercel-ai-sdk">+ Pass the Asymptote tracer into AI SDK telemetry.+ </Card>+</Columns>diff --git a/docs/security/data-flow-threat-model.mdx b/docs/security/data-flow-threat-model.mdxnew file mode 100644index 00000000..a6f47e28--- /dev/null+++ b/docs/security/data-flow-threat-model.mdx@@ -0,0 +1,56 @@+---+title: "Data Flow and Threat Model"+description: "How Beacon endpoint telemetry flows locally and which risks the design addresses"+---++## Data Flow Overview++Beacon collects supported agent harness activity on the endpoint, normalizes it locally, and writes one JSON object per line to a local runtime log. Security teams can inspect that file locally, view it through the loopback dashboard, or forward it through customer-controlled security pipelines.++```mermaid+flowchart LR+ runtime["Agent harness"] --> localCollector["Local collector or hook adapter"]+ localCollector --> normalize["Beacon normalization"]+ normalize --> jsonl["Local runtime.jsonl"]+ jsonl --> dashboard["Loopback dashboard"]+ jsonl --> customerForwarder["Customer-managed forwarding"]+ normalize --> optionalSplunk["Optional Splunk HEC"]+ normalize --> optionalFalcon["Optional Falcon LogScale HEC"]+```++## Data Flow++| Step | Behavior | Boundary |+|------|----------|----------|+| Runtime emission | Supported runtimes emit OpenTelemetry payloads or invoke `beacon-hooks` | Runtime-owned process to Beacon-managed local component |+| Local collection | Beacon receives OTLP on `127.0.0.1:4317` and `127.0.0.1:4318`, or receives hook payloads from local runtime configuration | Local process boundary on the endpoint |+| Normalization | Beacon maps runtime-specific payloads into the endpoint event schema | Beacon-managed code path |+| Local storage | Beacon writes one JSON object per line to `runtime.jsonl` | Filesystem permissions and log ownership |+| Local inspection | The dashboard reads the runtime log over a loopback-only service | Local browser to local dashboard service |+| Optional forwarding | Wazuh, Elastic/Filebeat, Datadog Agent, Sumo Logic, Rapid7, Microsoft Sentinel, AWS S3, Google Cloud Storage, Splunk HEC, Falcon LogScale HEC, or customer-managed shippers read or receive events | Customer-managed network and SIEM boundary |++## Threat Model++| Risk | Design response |+|------|-----------------|+| Unintended hosted telemetry | Normal endpoint collection writes local JSONL and does not require a Beacon-hosted account, remote policy fetch, or external network dependency |+| Network exposure of collectors | Default OTLP receivers bind to `127.0.0.1` rather than an externally reachable interface |+| Over-collection of prompt or diff content | Scope supported runtimes and hook deployment deliberately before rollout, and review destination access for retained local telemetry |+| Secret leakage in retained content | Beacon applies redaction, sanitization, truncation, and event-size limits before writing supported content fields |+| SIEM credential exposure in endpoint config | File-based destinations tail local JSONL; Beacon does not store Elastic, Datadog, Sumo Logic, Rapid7, Microsoft Sentinel, AWS, or Google Cloud credentials. Splunk HEC and Falcon LogScale HEC tokens are stored in local collector configuration only when those optional destinations are enabled |+| Removal uncertainty | Endpoint uninstall removes managed service and configuration state, with explicit `--keep-logs` and `--keep-config` exceptions |++## Current Boundaries++Beacon focuses on supported agent harness telemetry and local endpoint configuration context. It does not provide kernel or process monitoring, shell history collection, cloud audit ingestion, browser or SaaS telemetry, credential-use attribution, Datadog API export from Beacon, Sumo Logic API export from Beacon, Rapid7 API export from Beacon, or automatic mutation of Factory Droid shell profiles.++## Related++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ Follow the collection, normalization, storage, and forwarding architecture.+ </Card>+ <Card title="Agent harness integrations" icon="list-check" href="/runtimes">+ Review supported runtimes, destinations, MDM support, and current boundaries.+ </Card>+</Columns>diff --git a/docs/security/data-inventory.mdx b/docs/security/data-inventory.mdxnew file mode 100644index 00000000..caeb22f3--- /dev/null+++ b/docs/security/data-inventory.mdx@@ -0,0 +1,71 @@+---+title: "Data Inventory"+description: "Runtime coverage and endpoint event fields Beacon can write"+---++## Data Categories++Beacon writes normalized endpoint events only when supported runtimes provide telemetry through a configured local surface. Each event includes required event, endpoint, and harness context. Optional entities are present only when the source payload provides that context and the configured retention mode allows it.++## Runtime Inventory++| Agent harness | Collection path | Commonly available telemetry |+|---------------|-----------------|------------------------------|+| Claude Code | Local OTLP export | Prompt, command, tool, and file telemetry when emitted through OTLP |+| Codex CLI | Local OTLP logs | Session, prompt, approval, and tool-result activity from Codex semantic logs |+| Gemini CLI | Opt-in local OTLP | Prompts, tool calls, MCP activity, file operations, and approval-related events emitted through OTLP |+| Grok Build | Native hooks | Session, prompt, pre-tool, post-tool, failed tool, stop, session-end, command, and file telemetry |+| OpenCode | Managed plugin hooks | Chat messages, session events, command execution, permission activity, diffs, and errors |+| Devin CLI | Native hooks | Session, prompt, pre-tool, post-tool, permission request, stop, session-end, approval, and file telemetry |+| Devin Desktop | Cascade/Windsurf hooks | Prompt, command, MCP tool, file read, and file write telemetry where Desktop exposes Cascade hook payloads |+| Factory Droid | OTLP HTTP plus optional hooks | Session, prompt, write/edit/create tool use, stop, session-end, and available OTLP telemetry |+| Cursor | Native hooks | Prompt, tool, shell command, MCP-like, approval, and file edit telemetry |+| Claude Cowork | Admin-configured OTLP | Prompt, command, tool, and file telemetry when emitted through Claude Cowork OTLP |+| OpenClaw Gateway | Gateway-configured OTLP/HTTP | OTLP logs, traces, and metrics from the Gateway diagnostics plugin |++## Required Fields++| Field | Meaning |+|-------|---------|+| `timestamp` | UTC event time |+| `vendor` | Always `beacon` |+| `product` | Always `endpoint-agent` |+| `schema_version` | Public schema version |+| `event.kind` | Event family, currently `agent_runtime` |+| `event.action` | Normalized action such as `command.executed` or `tool.invoked` |+| `event.category` | Runtime-provided or inferred event category |+| `severity` | Event severity |+| `endpoint` | Host and operating system context |+| `harness` | Runtime that produced the signal |++## Optional Entities++| Entity | Purpose | Common fields |+|--------|---------|---------------|+| `endpoint` | Device and agent context | `hostname`, `os`, `agent_version` |+| `user` | Local operating system user context | `name`, `uid` |+| `harness` | Agent harness context | `name`, `version`, `executable_path`, `config_path` |+| `session` | Conversation or runtime session context | `id`, `working_directory` |+| `tool` | Tool invocation context | `name`, `command`, `path` |+| `file` | File activity context | `path`, `operation`, `language`, `diff_hash`, `diff_bytes` |+| `command` | Shell or process execution context | `command`, `exit_code`, `duration_ms` |+| `mcp` | MCP-like server and tool context | `server`, `tool` |+| `approval` | Approval or policy decision context | `required`, `decision`, `reason` |+| `policy` | Policy metadata when available | `id`, `name`, `decision`, `enforcement`, `reason` |+| `prompt` | Prompt text when retention allows it | `text` |+| `content` | Content handling state | `retention`, `included`, `redacted`, `truncated` |+| `destination` | Output or validation destination state | `type`, `mode`, `status` |+| `health` | Endpoint or component health state | `component`, `status`, `reason` |++Top-level `model`, `repository`, `branch`, `message`, `raw`, and `field_truncated` fields can add shared context across entities. Content-bearing fields follow the configured retention mode.++## Related++<Columns cols={2}>+ <Card title="Schema fields" icon="table-list" href="/telemetry-schema/fields">+ Review the full entity model and common fields.+ </Card>+ <Card title="Agent harnesses" icon="list-check" href="/runtimes">+ Compare runtime-specific collection surfaces and telemetry coverage.+ </Card>+</Columns>diff --git a/docs/security/endpoint-operations.mdx b/docs/security/endpoint-operations.mdxnew file mode 100644index 00000000..36a9bda7--- /dev/null+++ b/docs/security/endpoint-operations.mdx@@ -0,0 +1,107 @@+---+title: "Endpoint Operations"+description: "Filesystem paths, permissions, daemon behavior, network behavior, and uninstall guarantees"+---++## Operational Controls++Beacon endpoint operations are local to the managed machine. User-mode installs use per-user paths for local evaluation. System-mode installs use root-managed paths and a LaunchDaemon for MDM or package deployments.++## Filesystem Paths++| Item | User mode | System mode |+|------|-----------|-------------|+| Config | `~/.beacon/endpoint/config.json` | `/Library/Application Support/Beacon/Endpoint/config.json` |+| Base directory | `~/.beacon/endpoint` | `/Library/Application Support/Beacon/Endpoint` |+| Runtime log | `~/.beacon/endpoint/logs/runtime.jsonl` | `/var/log/beacon-agent/runtime.jsonl` |+| Rotated runtime archives | `~/.beacon/endpoint/logs/runtime.jsonl.1` through `.5` | `/var/log/beacon-agent/runtime.jsonl.1` through `.5` |+| Collector config | `~/.beacon/endpoint/otelcol.yaml` | `/Library/Application Support/Beacon/Endpoint/otelcol.yaml` |+| OTLP gRPC | `127.0.0.1:4317` | `127.0.0.1:4317` |+| OTLP HTTP | `127.0.0.1:4318` | `127.0.0.1:4318` |++The macOS package installs Beacon binaries and deployment assets under `/opt/beacon`:++```text+/opt/beacon/bin/beacon+/opt/beacon/bin/beacon-otelcol+/opt/beacon/scripts/install-endpoint.sh+/opt/beacon/scripts/uninstall-endpoint.sh+/opt/beacon/jamf/extension-attributes/*.sh+/opt/beacon/jamf/scripts/*.sh+/opt/beacon/fleet/queries/*.sql+/opt/beacon/fleet/scripts/*.sh+```++System endpoint install creates root-managed runtime state:++```text+/Library/Application Support/Beacon/Endpoint/config.json+/Library/Application Support/Beacon/Endpoint/otelcol.yaml+/Library/LaunchDaemons/com.beacon.endpoint.collector.plist+/var/log/beacon-agent/runtime.jsonl+/var/log/beacon-agent/runtime.jsonl.1+```++## Hook Configuration Paths++| Runtime | User-level config | Project-level config | Hook binary | Runtime log |+|---------|-------------------|----------------------|-------------|-------------|+| Cursor | `~/.cursor/hooks.json` | `./.cursor/hooks.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Devin CLI | `~/.config/devin/config.json` | `./.devin/hooks.v1.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Devin Desktop | `~/.codeium/windsurf/hooks.json` | `./.windsurf/hooks.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Factory Droid | `~/.factory/settings.json` | `./.factory/settings.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| Grok Build | `~/.grok/hooks/beacon-endpoint.json` | `./.grok/hooks/beacon-endpoint.json` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |+| OpenCode | `~/.config/opencode/plugins/beacon.ts` | `./.opencode/plugins/beacon.ts` | `~/.beacon/endpoint/hooks/beacon-hooks` | `~/.beacon/endpoint/logs/runtime.jsonl` |++In system mode, the hook binary is written under `/Library/Application Support/Beacon/Endpoint/hooks/` and the default runtime log is `/var/log/beacon-agent/runtime.jsonl`.++## Permissions and Daemon Behavior++User mode is the default for local evaluation and writes under the current user's home directory. System mode requires root, writes root-managed configuration and log paths, and loads the local collector as `com.beacon.endpoint.collector` through launchd.++The system package is designed for Jamf Pro, Fleet, or another macOS MDM. It installs a signed and notarized `.pkg`, creates system endpoint configuration, loads the local collector LaunchDaemon, and writes endpoint events to `/var/log/beacon-agent/runtime.jsonl`.++The active runtime log rotates when the next write would exceed 10 MiB. Beacon keeps up to five numbered local archives next to the active file, preserving the active path as the handoff point for local inspection and customer-managed shippers.++## Network Behavior++Normal endpoint collection uses localhost OTLP receivers and local hook execution. Beacon does not require a hosted account, remote policy fetch, MDM API credentials, or external network connection for normal collection.++Optional network behavior is customer configured:++| Destination | Network behavior |+|-------------|------------------|+| Wazuh | Wazuh localfile reads local JSONL |+| Elastic/Filebeat | Filebeat or Elastic Agent tails local JSONL |+| Datadog | Datadog Agent custom log collection tails local JSONL |+| Sumo Logic | Customer-managed Sumo forwarding reads local JSONL and sends to a Hosted Collector HTTP Source |+| Splunk HEC | Optional collector exporter sends events to the configured Splunk HEC endpoint |+| Falcon LogScale HEC | Optional collector exporter sends events to the configured Falcon LogScale HEC endpoint |+| Customer-managed forwarding | Customer shipper, agent, or SIEM pipeline reads local JSONL |++Beacon itself does not store Elastic cluster URLs or credentials, Datadog API keys or site configuration, Sumo Source URLs, tokens, collector configuration, or Rapid7 webhook URLs. Splunk HEC and Falcon LogScale HEC tokens are stored only in local collector configuration when those optional destinations are enabled.++## Uninstall Guarantees++`beacon endpoint uninstall` unloads the local Beacon service and removes managed endpoint files. Beacon removes files listed in its install manifest, including managed config, collector config, and service files. Unless `--keep-logs` is set, it also removes the configured runtime JSONL log.++Use retention flags when you intentionally want to preserve evidence or configuration:++```bash+beacon endpoint uninstall --keep-logs+beacon endpoint uninstall --keep-config+beacon endpoint uninstall --keep-logs --keep-config+```++`beacon endpoint hooks uninstall` removes Beacon hook entries for supported harnesses and preserves existing non-Beacon hooks.++## Related++<Columns cols={2}>+ <Card title="Endpoint agent" icon="desktop" href="/cli/endpoint">+ Review install, status, repair, and uninstall commands.+ </Card>+ <Card title="Runtime hooks" icon="plug" href="/cli/hooks">+ Install, inspect, and remove hook-based runtime integrations.+ </Card>+</Columns>diff --git a/docs/security/index.mdx b/docs/security/index.mdxnew file mode 100644index 00000000..209b2ec3--- /dev/null+++ b/docs/security/index.mdx@@ -0,0 +1,91 @@+---+title: "Security & IT Rollout Guide"+description: "Deploy Beacon endpoint telemetry and forward events into security operations workflows."+---++Beacon gives Security and IT teams local endpoint visibility into supported [agent harnesses](/runtimes). It captures supported activity, normalizes it into a stable endpoint event schema, and writes JSONL for local inspection or customer-managed forwarding.++Beacon is local-only by default. The endpoint agent does not require a Beacon-hosted account, remote policy fetch, or external network dependency during normal collection. Use [Asymptote Managed](/deployment/managed) when you need centralized retention, search, governance, investigations, access control, or rollout support.++## Rollout Path++<Steps>+ <Step title="Pilot">+ Start with a small macOS group that represents the agent harnesses and teams you want to observe. Decide which runtimes are in scope, whether events stay local at first, and which MDM group owns the initial package rollout.+ </Step>+ <Step title="Validate">+ Confirm install coverage, collector health, runtime log freshness, configured harness scope, and expected event coverage before expanding.+ </Step>+ <Step title="Expand">+ Deploy the signed and notarized macOS package through Jamf Pro, Fleet, or another MDM. Production deployments use system mode and write events to `/var/log/beacon-agent/runtime.jsonl`.+ </Step>+ <Step title="Centralize">+ Keep local JSONL on the endpoint, then add forwarding into your SIEM, observability stack, object storage, or customer-managed pipeline when the destination policy is approved.+ </Step>+</Steps>++## Deployment Decisions++Before broad rollout, document these decisions:++| Decision | What to define |+| -------- | -------------- |+| Runtime scope | Which supported harnesses are approved for collection and whether optional runtime integrations are in scope. |+| Install mode | Local evaluation, root-managed system install, or MDM package rollout. |+| Event destination | Local JSONL only, Wazuh localfile, supported forwarding destination, object storage, or customer-managed pipeline. |+| Access and retention | Who can read local logs, how long downstream systems retain events, and which teams own review. |+| Managed handoff | Whether the rollout now needs centralized visibility, policy controls, investigations, SSO/RBAC, or private infrastructure. |++## Validation Signals++Track these signals in your device-management platform or operations dashboard:++| Area | Recommended signal |+|------|--------------------|+| Install coverage | Beacon package or binary version is present |+| Collector health | `com.beacon.endpoint.collector` is running |+| Event freshness | Last runtime event age is within your expected window |+| Runtime configuration | Configured harnesses match the approved deployment scope |+| Forwarding readiness | Runtime log exists and is writable; downstream forwarding is configured when required |++For command-level checks, see [Endpoint status](/cli/endpoint-status), [Endpoint discover](/cli/endpoint-discover), and [Local testing](/guides/local-testing).++## Guides++<Columns cols={2}>+ <Card title="Enterprise security review" icon="shield-halved" href="/security/review">+ Answer procurement and security review questions about local collection, data inventory, content handling, endpoint behavior, and disclosure policy.+ </Card>+ <Card title="MDM deployment" icon="laptop-mobile" href="/mdm">+ Plan managed macOS rollout with the packaged system agent.+ </Card>+ <Card title="Jamf" icon="laptop" href="/mdm/jamf">+ Deploy and inventory Beacon with Jamf Pro policies and extension attributes.+ </Card>+ <Card title="Fleet" icon="laptop-file" href="/mdm/fleet">+ Deploy Beacon with Fleet software, policies, queries, and scripts.+ </Card>+ <Card title="SIEM forwarding" icon="tower-broadcast" href="/log-forwarding">+ Forward Beacon events to Wazuh, Splunk HEC, Falcon LogScale, Elastic, Datadog, Sumo Logic, Rapid7 InsightIDR, or a customer-managed SIEM pipeline.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Review the normalized JSONL contract used for endpoint events.+ </Card>+</Columns>++Also review [Agent harness integrations](/runtimes) to confirm supported runtimes, deployment modes, storage paths, and forwarding boundaries.++## When to Move to Managed++Open Source works well when your team wants local endpoint telemetry and controls the downstream destination. Consider [Asymptote Managed](/deployment/managed) when you need:++- centralized ingest, retention, search, and detections+- fleet-wide visibility across endpoints, users, and teams+- policy controls, identity mapping, approvals, and investigation workflows+- SSO, RBAC, audit trails, onboarding, and rollout support++For dedicated infrastructure, stricter data boundaries, or residency requirements, ask about Private Deployment. [Contact us](https://asymptotelabs.ai/contact) to discuss Managed or Private Deployment.++## Boundaries++Beacon currently focuses on endpoint telemetry for supported agent harnesses and local endpoint configuration context. It does not provide kernel or process monitoring, shell history collection, cloud audit ingestion, browser or SaaS telemetry, credential-use attribution, or automatic mutation of Factory Droid shell profiles. Use [Log Forwarding](/log-forwarding) for supported SIEM, observability, object-storage, local JSONL, and customer-managed destinations.diff --git a/docs/security/policy.mdx b/docs/security/policy.mdxnew file mode 100644index 00000000..3d05bdb6--- /dev/null+++ b/docs/security/policy.mdx@@ -0,0 +1,55 @@+---+title: "Security Policy"+description: "Security contact, vulnerability disclosure, and release verification policy"+---++## Policy Controls++Use this page for security contact, vulnerability disclosure, and release verification details for Beacon endpoint deployments.++## Security Contact++Report suspected vulnerabilities or security concerns to [[email protected]](mailto:[email protected]).++For non-security product support, use [[email protected]](mailto:[email protected]).++## Vulnerability Disclosure++When reporting a vulnerability, include enough detail for the security team to reproduce and assess impact:++- Affected Beacon version, build date, and install mode when known.+- Operating system and architecture.+- Reproduction steps, proof of concept, logs, or screenshots.+- Expected impact and whether the issue is already being exploited.+- Any constraints on coordinated disclosure timing.++Asymptote asks reporters to avoid accessing data that does not belong to them, disrupting customer systems, or publicly disclosing an issue before the security team has had time to investigate and coordinate remediation.++## Release Signing and Verification++Beacon macOS packages for managed deployment are signed and notarized. Manual release archives include the `beacon` CLI and matching `beacon-otelcol` collector binary, with SHA-256 checksums published alongside the release.++Use `beacon version` to confirm the installed version, git commit, and build date:++```bash+beacon version+```++Example output:++```bash+beacon version 0.0.48 (1904988) built on 2026-06-08T12:12:11Z+```++For managed macOS rollouts, deploy the signed and notarized `.pkg` through Jamf Pro, Fleet, or another MDM. For manual archives, compare the downloaded archive checksum to the published SHA-256 checksum before installation.++## Related++<Columns cols={2}>+ <Card title="Asymptote Open Source" icon="download" href="/deployment/open-source">+ Install Beacon, review archive contents, and verify the CLI version.+ </Card>+ <Card title="MDM deployment" icon="laptop-mobile" href="/mdm">+ Deploy the signed and notarized macOS package through MDM.+ </Card>+</Columns>diff --git a/docs/security/retention-redaction.mdx b/docs/security/retention-redaction.mdxnew file mode 100644index 00000000..dbb0af38--- /dev/null+++ b/docs/security/retention-redaction.mdx@@ -0,0 +1,83 @@+---+title: "Redaction and Size Limits"+description: "How Beacon handles retained content before writing endpoint events"+---++## Retention and Redaction++Beacon can write supported prompt, command, tool, file, approval, policy, and runtime context when a configured source runtime emits it. Before endpoint events are written to local JSONL or forwarded through configured destinations, Beacon applies redaction, sanitization, truncation, and event-size limits.++## Content Handling++| Control | Behavior |+|---------|----------|+| Redaction | Common secret patterns are replaced before retained content is written |+| Sanitization | Runtime payloads are normalized into typed event fields instead of storing source payloads verbatim wherever possible |+| Truncation | Oversized fields are shortened and marked with truncation metadata |+| Event-size limits | Events are bounded before they are written to `runtime.jsonl` or sent to configured destinations |++## Prompt Event Example++Prompt content is included only when the source runtime emits it. Secret-like values are redacted before the event is written:++```json+{+ "event": {+ "action": "prompt.submitted",+ "category": "prompt"+ },+ "harness": {+ "name": "claude"+ },+ "prompt": {+ "text": "Review this API client. Token: [REDACTED]"+ },+ "content": {+ "included": true,+ "redacted": true+ }+}+```++## Command Event Example++Command events can include normalized tool and command context, with truncation metadata when fields exceed limits:++```json+{+ "event": {+ "action": "command.executed",+ "category": "command"+ },+ "tool": {+ "name": "Shell",+ "command": "go test ./..."+ },+ "command": {+ "command": "go test ./...",+ "exit_code": 0,+ "duration_ms": 18420+ },+ "content": {+ "included": true,+ "truncated": false+ }+}+```++## Forwarding Implications++Content handling is applied before events are written to `runtime.jsonl`. File-based destinations such as Wazuh, Elastic/Filebeat, Datadog Agent custom log collection, Sumo Logic forwarding, Rapid7 forwarding, Microsoft Sentinel forwarding, AWS S3 Vector forwarding, Google Cloud Storage Vector forwarding, and customer-managed shippers read the resulting local JSONL. Splunk HEC and Falcon LogScale HEC forwarding receive the same normalized collector output according to the configured endpoint pipeline.++Review runtime scope, artifact access, destination permissions, and downstream retention before rollout so retained content matches your approved telemetry policy.++## Related++<Columns cols={2}>+ <Card title="Schema examples" icon="code" href="/telemetry-schema/examples">+ Inspect endpoint event examples and content fields.+ </Card>+ <Card title="Endpoint install" icon="download" href="/cli/endpoint-install">+ Configure endpoint telemetry and collector service files.+ </Card>+</Columns>diff --git a/docs/security/review.mdx b/docs/security/review.mdxnew file mode 100644index 00000000..dd3695b2--- /dev/null+++ b/docs/security/review.mdx@@ -0,0 +1,55 @@+---+title: "Enterprise Security Review"+description: "Procurement and security review details for Beacon endpoint telemetry"+---++## Review Scope++Beacon is designed for endpoint-local collection of supported agent harness activity. During normal collection, supported runtimes send telemetry to a localhost OpenTelemetry receiver or invoke the local `beacon-hooks` adapter. Beacon normalizes those signals into endpoint events and writes them to a local JSONL log for local review or customer-controlled forwarding.++Normal hook execution has no Beacon-hosted dependency. The endpoint agent does not require a Beacon-hosted account, remote policy fetch, or external network connection to collect supported local runtime activity.++## Review Package++<Columns cols={2}>+ <Card title="Data flow and threat model" icon="diagram-project" href="/security/data-flow-threat-model">+ Follow runtime signals from local collection through normalization, storage, dashboard inspection, and optional forwarding.+ </Card>+ <Card title="Data inventory" icon="table-list" href="/security/data-inventory">+ Review runtime coverage and the event fields Beacon can write when a source provides them.+ </Card>+ <Card title="Redaction and size limits" icon="filter" href="/security/retention-redaction">+ Review content handling, redaction, sanitization, truncation, and event-size limits.+ </Card>+ <Card title="Endpoint operations" icon="desktop" href="/security/endpoint-operations">+ Review paths, permissions, daemon behavior, network behavior, forwarding boundaries, and uninstall behavior.+ </Card>+ <Card title="Security policy" icon="shield-halved" href="/security/policy">+ Find the security contact, vulnerability disclosure guidance, and release verification policy.+ </Card>+ <Card title="Endpoint event schema" icon="code" href="/telemetry-schema/event-schema">+ Inspect the normalized JSONL contract used for Beacon endpoint events.+ </Card>+</Columns>++## Default Posture++| Area | Default behavior |+|------|------------------|+| Collection | Local OpenTelemetry receivers on `127.0.0.1` or local hook adapter execution |+| Storage | Local `runtime.jsonl` on the endpoint |+| Hosted dependency | None required for normal endpoint collection |+| Forwarding | Optional and customer configured |+| Content handling | Retained local telemetry is subject to redaction, sanitization, truncation, and event-size limits |+| Removal | Endpoint uninstall removes managed service/config files, with explicit flags to keep logs or config |++## Related++<Columns cols={2}>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ See the endpoint collection, normalization, storage, and forwarding architecture.+ </Card>+ <Card title="Security & IT Rollout Guide" icon="building-shield" href="/security">+ Plan deployment, monitoring, and forwarding workflows.+ </Card>+</Columns>diff --git a/docs/support/troubleshooting.mdx b/docs/support/troubleshooting.mdxnew file mode 100644index 00000000..b9fdf8f8--- /dev/null+++ b/docs/support/troubleshooting.mdx@@ -0,0 +1,64 @@+---+title: "Common Issues"+description: "Solutions for common issues when setting up and using Asymptote."+---++<AccordionGroup>+ <Accordion title="Scans aren't triggering on pull requests">+ - Verify the Asymptote GitHub App is installed on the target repository.+ - Check that webhook deliveries are succeeding under your GitHub App settings → **Recent Deliveries**.+ - Confirm the `ASYMPTOTE_API_KEY` secret is set in your repository under **Settings → Secrets and variables → Actions**.+ </Accordion>+ <Accordion title="Status checks are stuck as pending">+ - Confirm your `ASYMPTOTE_API_KEY` secret is correctly set and hasn't expired.+ - Large pull requests may take a few extra minutes to process.+ - Check the Actions tab in your repository to see if the workflow is running.+ </Accordion>+ <Accordion title="Permission errors on the GitHub App">+ Re-install the Asymptote GitHub App and ensure the correct repositories are selected. See the [GitHub integration page](/deployment/hosting-options) for a full list of required permissions.+ </Accordion>+ <Accordion title="The CLI isn't authenticating">+ Run `asymptote whoami` to check your current auth state. If unauthenticated, run `asymptote login` to re-authenticate. See the [CLI authentication docs](/cli/login) for more details.+ </Accordion>+ <Accordion title="My coding agent isn't being intercepted">+ Ensure Asymptote is configured for your agent. See the [Coding Agent Integrations](/runtimes/cursor) docs for setup instructions for your specific tool.+ </Accordion>+ <Accordion title="How do I disconnect a repository?">+ In GitHub: **Repository → Settings → GitHub Apps → Asymptote Security**, then suspend or uninstall the app.+ </Accordion>+ <Accordion title="How do I disconnect all repositories?">+ In GitHub: **Organization → Settings → GitHub Apps → Asymptote Security**, then suspend or uninstall the app.+ </Accordion>+ <Accordion title="How do I remove agent hooks from my local machine?">+ Use `beacon endpoint hooks uninstall` for whichever hook harness you set up:++ **Cursor**+ ```bash+ beacon endpoint hooks uninstall --harness cursor+ beacon endpoint hooks uninstall --harness cursor --level project+ ```++ **Claude Code**+ ```bash+ beacon endpoint hooks uninstall --harness claude+ beacon endpoint hooks uninstall --harness claude --level project+ ```++ **Factory Droid**+ ```bash+ beacon endpoint hooks uninstall --harness factory+ beacon endpoint hooks uninstall --harness factory --level project+ ```++ **All supported hook integrations**+ ```bash+ beacon endpoint hooks uninstall --all+ ```++ After uninstalling hooks, restart the affected agent or IDE so new sessions pick up the updated hook configuration. See the [hook command docs](/cli/hooks#beacon-endpoint-hooks-uninstall) for supported harness names and flags.+ </Accordion>+</AccordionGroup>++<Info icon="circle-question" title="Still stuck?">+ Contact us at [[email protected]](mailto:[email protected]) and we'll help you get sorted.+</Info>diff --git a/docs/telemetry-schema/event-schema.mdx b/docs/telemetry-schema/event-schema.mdxnew file mode 100644index 00000000..007e72a3--- /dev/null+++ b/docs/telemetry-schema/event-schema.mdx@@ -0,0 +1,94 @@+---+title: "Unified Telemetry Schema"+description: "A normalized telemetry contract for local, CI, and cloud agent activity"+---++## Why the schema exists++AI agent activity is emitted from many places: local developer machines, CI jobs, cloud-hosted coding agents, SDK integrations, OpenTelemetry exporters, and runtime-specific hook systems. Each source has its own event names, payload shapes, identifiers, and ideas about what counts as a prompt, tool call, command, approval, file change, or policy decision.++Beacon's unified telemetry schema turns those different signals into one normalized event model. The goal is to make agent activity searchable, detectable, and explainable across local, CI, and cloud environments without requiring every downstream rule, dashboard, or SIEM parser to understand each runtime's native format.++## What normalization provides++The schema gives every event a consistent backbone:++| Schema concept | Purpose |+|----------------|---------|+| `event` | Describes what happened with normalized actions such as `prompt.submitted`, `tool.invoked`, `command.executed`, `file.modified`, `approval.requested`, or `mcp.tool_invoked` |+| `harness` | Identifies the agent runtime or integration that produced the signal |+| `origin` | Distinguishes local, CI, and cloud telemetry while preserving a shared event shape |+| `run` and `session` | Connects activity to CI runs, cloud-agent jobs, local sessions, repositories, branches, and working directories |+| `tool`, `command`, `file`, `mcp`, `approval`, and `policy` | Captures the entities analysts and detections need to understand agent behavior |+| `content` | Records whether prompt or tool content was included, redacted, truncated, or omitted |++## Required fields++| Field | Meaning |+|-------|---------|+| `timestamp` | UTC event time |+| `vendor` | Always `beacon` |+| `product` | Current product identifier, `endpoint-agent` |+| `schema_version` | Current public schema version, `1.0` |+| `event.kind` | Event family, currently `agent_runtime` |+| `event.action` | Normalized action such as `command.executed` or `tool.invoked` |+| `event.category` | Event category, provided by the runtime or inferred from `event.action` when possible |+| `severity` | `info`, `low`, `medium`, `high`, or `critical` |+| `endpoint` | Host and operating system context |+| `harness` | Runtime that produced the signal |++## How it extends OpenTelemetry++Beacon accepts OpenTelemetry attributes, including the GenAI semantic conventions, and projects them into fields that are easier to query across agent runtimes. OpenTelemetry context is preserved under `gen_ai` where available, while commonly investigated values are also normalized into Beacon fields such as `model`, `tool.name`, `prompt.text`, `command.command`, `file.path`, and `gen_ai.usage`.++This lets teams use OpenTelemetry-native data without giving up a security-focused vocabulary for agent behavior. A detection can ask for a normalized command, MCP tool, approval decision, or file operation instead of branching on every source runtime's attribute names.++## Why it matters++The normalized schema is the contract between collection, detection, investigation, and forwarding. It lets Asymptote:++- Correlate agent activity across local endpoints, ephemeral CI jobs, and cloud agent sessions.+- Write detections once against stable fields instead of per-runtime payloads.+- Preserve source-specific OpenTelemetry and GenAI context without forcing downstream tools to parse raw traces.+- Keep prompt, tool, command, file, approval, policy, and token-usage telemetry comparable across supported harnesses.+- Forward one predictable JSONL shape into customer-managed analytics, SIEM, object-storage, and review workflows.++## Read next++<Columns cols={2}>+ <Card title="Schema normalization" icon="arrows-rotate" href="/telemetry-schema/normalization">+ See how OTLP attributes and hook payloads map into Beacon fields and actions.+ </Card>+ <Card title="Schema fields" icon="table-list" href="/telemetry-schema/fields">+ Review entities, optional context, and shared top-level fields.+ </Card>+ <Card title="Schema examples" icon="code" href="/telemetry-schema/examples">+ Inspect example events and content handling behavior.+ </Card>+ <Card title="Data inventory" icon="table-list" href="/security/data-inventory">+ Review runtime coverage and the event fields Beacon can write when a source provides them.+ </Card>+</Columns>++## Related++<Columns cols={2}>+ <Card title="Core Concepts" icon="book-open" href="/concepts/core-concepts">+ Review the glossary behind events and entities.+ </Card>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ See how runtime telemetry becomes normalized JSONL.+ </Card>+ <Card title="Detections" icon="shield-halved" href="/detections">+ See how events are evaluated by threat rules.+ </Card>+ <Card title="Wazuh" icon="shield" href="/cli/wazuh">+ Configure Wazuh ingestion for Beacon events.+ </Card>+ <Card title="Datadog" icon="chart-line" href="/cli/datadog">+ Configure Datadog Agent custom log collection for Beacon events.+ </Card>+ <Card title="Sumo Logic" icon="chart-line" href="/cli/sumo">+ Configure Sumo Logic HTTP Source forwarding for Beacon events.+ </Card>+</Columns>diff --git a/docs/telemetry-schema/examples.mdx b/docs/telemetry-schema/examples.mdxnew file mode 100644index 00000000..d9fa8c24--- /dev/null+++ b/docs/telemetry-schema/examples.mdx@@ -0,0 +1,150 @@+---+title: "Schema Examples"+description: "Example Beacon events and content handling behavior"+---++## Event Examples++Beacon writes events as JSONL records. Each line is a complete JSON object that follows the [Unified Telemetry Schema](/telemetry-schema/event-schema).++## Example command event++```json+{+ "timestamp": "2026-05-11T22:21:00Z",+ "vendor": "beacon",+ "product": "endpoint-agent",+ "schema_version": "1.0",+ "event": {+ "kind": "agent_runtime",+ "action": "command.executed",+ "category": "command"+ },+ "severity": "info",+ "endpoint": {+ "hostname": "example-mac",+ "os": "darwin",+ "agent_version": "0.0.11"+ },+ "user": {+ "name": "local-user"+ },+ "harness": {+ "name": "cursor"+ },+ "session": {+ "id": "conversation-1",+ "working_directory": "/Users/local-user/repo"+ },+ "tool": {+ "name": "Shell",+ "command": "go test ./..."+ },+ "command": {+ "command": "go test ./..."+ },+ "message": "Shell command executed"+}+```++## Example GenAI tool event++```json+{+ "timestamp": "2026-06-08T12:12:00Z",+ "vendor": "beacon",+ "product": "endpoint-agent",+ "schema_version": "1.0",+ "event": {+ "kind": "agent_runtime",+ "action": "tool.invoked",+ "category": "tool"+ },+ "severity": "info",+ "endpoint": {+ "hostname": "ci-runner-1",+ "os": "linux",+ "agent_version": "0.0.48"+ },+ "harness": {+ "name": "claude"+ },+ "origin": "ci",+ "run": {+ "provider": "github_actions",+ "run_id": "123456789",+ "workflow": "Security review",+ "repository": "acme/app",+ "branch": "main",+ "commit": "abc123",+ "actor": "octocat",+ "ephemeral": true+ },+ "tool": {+ "name": "read_file",+ "command": "{\"path\":\"src/app.ts\"}"+ },+ "gen_ai": {+ "provider": {+ "name": "anthropic"+ },+ "request": {+ "model": "claude-sonnet-4",+ "max_tokens": 4096,+ "temperature": 0.2+ },+ "response": {+ "model": "claude-sonnet-4",+ "finish_reasons": ["tool_use"]+ },+ "usage": {+ "input_tokens": 1200,+ "output_tokens": 240,+ "cache_read": {+ "input_tokens": 800+ }+ },+ "tool": {+ "name": "read_file",+ "call": {+ "id": "toolu_123",+ "arguments": {+ "path": "src/app.ts"+ }+ }+ },+ "input": {+ "messages": [+ {+ "role": "user",+ "content": "Review this file"+ }+ ]+ }+ },+ "model": "claude-sonnet-4",+ "message": "GenAI tool call observed"+}+```++## Privacy and content fields++Beacon records supported content fields when source runtimes emit them. Redaction, sanitization, truncation, and event-size limits are applied before events are written or forwarded.++Beacon caps event size, redacts common secret patterns, and marks events with `field_truncated` when fields must be shortened before writing. The `content` object can describe whether content was included, redacted, or truncated for a specific event. When present, `content.truncated` identifies truncation for that event's content payload even if downstream views also summarize top-level `field_truncated`.++For Codex CLI, Beacon writes semantic session, prompt, approval, and tool-result events while suppressing noisy startup, turn, transport, metric, and duplicate span records by default. For GitHub Copilot CLI, Beacon maps OTLP spans into prompt, session, tool, and approval-like events. Beacon also filters generic process and runtime OTLP metrics, such as process CPU, memory, Node.js event loop, and V8 heap telemetry, plus Copilot CLI and OpenClaw operational metrics, out of the JSONL log by default. Use `--include-runtime-metrics` during endpoint install or repair only when those low-level metrics are required, and use `--include-codex-spans` only when raw Codex spans are needed for troubleshooting. The schema remains the same; these filters reduce low-signal records rather than changing event fields.++## Related++<Columns cols={2}>+ <Card title="Unified telemetry schema" icon="code" href="/telemetry-schema/event-schema">+ Return to the schema overview.+ </Card>+ <Card title="Schema fields" icon="table-list" href="/telemetry-schema/fields">+ Review entities, optional context, and shared top-level fields.+ </Card>+ <Card title="Agent harness integration model" icon="plug" href="/runtimes/integration-model">+ See which runtime surfaces produce Beacon events.+ </Card>+</Columns>diff --git a/docs/telemetry-schema/fields.mdx b/docs/telemetry-schema/fields.mdxnew file mode 100644index 00000000..a1e1ac7c--- /dev/null+++ b/docs/telemetry-schema/fields.mdx@@ -0,0 +1,83 @@+---+title: "Schema Fields"+description: "Beacon event entities, optional context, and shared fields"+---++## Field Reference++Beacon models each event as an action plus a set of typed entities. The [`event` object and surrounding entities](/concepts/core-concepts#entity-model) describe what happened and who or what participated in that action.++## Entity model++| Entity | Purpose | Common fields |+|--------|---------|---------------|+| `endpoint` | Device and agent context for the machine where telemetry was collected | `hostname`, `os`, `agent_version` |+| `user` | Local operating system user context | `name`, `uid` |+| `harness` | Agent harness that produced the signal | `name`, `version`, `executable_path`, `config_path` |+| `origin` | Event origin for local endpoint, cloud, or CI telemetry | `local`, `cloud`, `ci` |+| `run` | CI or ephemeral run context | `provider`, `run_id`, `run_attempt`, `workflow`, `job`, `event_name`, `commit`, `repository`, `branch`, `pr`, `pr_number`, `actor`, `ephemeral` |+| `session` | Conversation or runtime session context | `id`, `working_directory` |+| `tool` | Tool invocation context, including shell-like tools | `name`, `command`, `path` |+| `file` | File activity context | `path`, `operation`, `language`, `diff_hash`, `diff_bytes` |+| `command` | Shell or process execution context | `command`, `exit_code`, `duration_ms` |+| `mcp` | MCP-like server and tool context | `server`, `tool` |+| `approval` | Approval or policy decision context | `required`, `decision`, `reason` |+| `policy` | Policy metadata when available from a runtime or integration | `id`, `name`, `decision`, `enforcement`, `reason` |+| `prompt` | Prompt text when the source emits it and content handling allows it | `text` |+| `content` | Content handling state for the event | `retention`, `included`, `redacted`, `truncated` |+| `gen_ai` | OpenTelemetry GenAI semantic convention context | `agent`, `conversation`, `input`, `output`, `provider`, `request`, `response`, `retrieval`, `system_instructions`, `tool`, `usage`, `workflow` |+| `destination` | Output or validation destination state | `type`, `mode`, `status` |+| `health` | Endpoint or component health state | `component`, `status`, `reason` |++Top-level `model`, `repository`, `branch`, `message`, `raw`, and `field_truncated` fields add shared context that can apply across multiple entities. For example, a command event can include both `tool` and `command`; a file edit can include `file`, `session`, `repository`, and `branch`; a CI event can include `origin` and `run`; and a GenAI tool call can include both `tool` and nested `gen_ai.tool` metadata.++## GenAI context++When a runtime emits OpenTelemetry GenAI semantic convention attributes, Beacon preserves them under `gen_ai` while also projecting commonly queried values into top-level fields such as `model`, `tool.name`, or `prompt.text`.++| Field | Detail |+|-------|--------|+| `gen_ai.request` | Request settings such as `model`, `max_tokens`, `temperature`, `top_p`, `top_k`, `seed`, `stream`, `choice_count`, `encoding_formats`, and `stop_sequences` |+| `gen_ai.response` | Response metadata such as `id`, `model`, `finish_reasons`, and `time_to_first_chunk` |+| `gen_ai.usage` | Token counters such as `input_tokens`, `output_tokens`, `cache_creation.input_tokens`, `cache_read.input_tokens`, and `reasoning.output_tokens`, plus runtime-reported `cost_usd` |+| `gen_ai.input.messages`, `gen_ai.output.messages` | Message arrays or objects emitted by the runtime |+| `gen_ai.tool` | Tool metadata such as `name`, `type`, `description`, `definitions`, and `call.id`, `call.arguments`, or `call.result` |+| `gen_ai.retrieval` | Retrieval context such as `query_text` and `documents` |+| `gen_ai.evaluation` | Evaluation metadata such as `name`, `explanation`, `score.label`, and `score.value` |+| `gen_ai.agent`, `gen_ai.provider`, `gen_ai.workflow` | Runtime-specific agent, provider, and workflow metadata |++## Optional context++Optional context fields add detail when available:++| Field | Detail |+|-------|--------|+| `user` | Local user metadata |+| `origin` | Whether the event came from local endpoint telemetry, cloud telemetry, or CI telemetry |+| `run` | CI provider and run metadata, including repository, branch, commit, workflow, job, actor, and pull-request identifiers |+| `session` | Conversation or runtime session metadata |+| `tool` | Tool name, command, or path metadata |+| `file` | File path, operation, language, diff hash, or diff byte counts |+| `command` | Shell command, exit code, or duration metadata |+| `mcp` | MCP-like server and tool metadata |+| `approval` | Approval requirement, decision, or reason |+| `policy` | Policy ID, name, decision, enforcement mode, or reason |+| `content` | Content inclusion, redaction, and truncation state |+| `gen_ai` | OpenTelemetry GenAI request, response, usage, message, tool, retrieval, evaluation, provider, and workflow metadata |+| `destination` | Output destination state, such as Wazuh localfile validation |+| `health` | Component health status |+| `model`, `repository`, `branch`, `message`, `raw`, `field_truncated` | Additional runtime context and truncation metadata |++## Related++<Columns cols={2}>+ <Card title="Unified telemetry schema" icon="code" href="/telemetry-schema/event-schema">+ Return to the schema overview.+ </Card>+ <Card title="Schema normalization" icon="arrows-rotate" href="/telemetry-schema/normalization">+ See how source fields map into the event contract.+ </Card>+ <Card title="Schema examples" icon="code" href="/telemetry-schema/examples">+ Inspect example events and content handling behavior.+ </Card>+</Columns>diff --git a/docs/telemetry-schema/normalization.mdx b/docs/telemetry-schema/normalization.mdxnew file mode 100644index 00000000..479cf7e5--- /dev/null+++ b/docs/telemetry-schema/normalization.mdx@@ -0,0 +1,119 @@+---+title: "Schema Normalization"+description: "How Beacon maps OTLP attributes and hook payloads into normalized events"+---++## Normalization Rules++Beacon normalizes [OTLP](/concepts/core-concepts#otlp) attributes and [hook](/concepts/core-concepts#hooks) payloads into the same event contract. The collector exporter looks for common runtime fields, while hook telemetry builds those fields directly from hook payloads.++## Source mapping++| Source signal | Normalized field or action |+|---------------|----------------------------|+| `gen_ai.request.model`, `gen_ai.response.model`, `model`, `ai.model` | `model` |+| `gen_ai.tool.name`, `tool.name`, `function_name`, `tool_name` | `tool.name` and `gen_ai.tool.name` |+| `gen_ai.tool.call.arguments`, `function_args`, `arguments` | `tool.command` when command-like, plus `gen_ai.tool.call.arguments` |+| `gen_ai.tool.call.id`, `gen_ai.tool.call.result` | `gen_ai.tool.call.id`, `gen_ai.tool.call.result` |+| `mcp.tool.name` | `mcp.tool` |+| `process.command_line` | `command.command` |+| `file.path` | `file.path` |+| `conversation.id` | `session.id` |+| `gen_ai.conversation.id` | `gen_ai.conversation.id` |+| `vcs.repository.url` | `repository` |+| `git.branch` | `branch` |+| `beacon.origin` | `origin` |+| `beacon.run.*` | `run.*` |+| Prompt-like events | `prompt.submitted` |+| Shell or exec events | `command.executed` |+| MCP events | `mcp.tool_invoked` |+| File, write, or edit events | `file.modified` |+| Approval events | `approval.requested` |+| Other tool activity | `tool.invoked` |++## OpenTelemetry GenAI fields++Beacon preserves OpenTelemetry GenAI semantic convention fields under the nested `gen_ai` object and also projects selected fields into Beacon's common investigation fields. This keeps the raw GenAI context available without forcing downstream rules to parse runtime-specific attribute names.++| Source signal | Normalized field |+|---------------|------------------|+| `gen_ai.agent.description`, `gen_ai.agent.id`, `gen_ai.agent.name`, `gen_ai.agent.version` | `gen_ai.agent.*` |+| `gen_ai.data_source.id` | `gen_ai.data_source.id` |+| `gen_ai.embeddings.dimension.count` | `gen_ai.embeddings.dimension_count` |+| `gen_ai.evaluation.name`, `gen_ai.evaluation.explanation`, `gen_ai.evaluation.score.label`, `gen_ai.evaluation.score.value` | `gen_ai.evaluation.*` |+| `gen_ai.input.messages`, legacy `gen_ai.prompt.*`, `llm.prompts`, `gen_ai.prompts` | `gen_ai.input.messages` |+| `gen_ai.output.messages`, legacy `gen_ai.completion.*`, `llm.completions`, `gen_ai.completions` | `gen_ai.output.messages` |+| `gen_ai.output.type` | `gen_ai.output.type` |+| `gen_ai.operation.name` | `gen_ai.operation.name` |+| `gen_ai.prompt.name` | `gen_ai.prompt.name` |+| `gen_ai.provider.name`, `gen_ai.system` | `gen_ai.provider.name` |+| `gen_ai.system_instructions` | `gen_ai.system_instructions` |+| `gen_ai.retrieval.query.text`, `gen_ai.retrieval.documents` | `gen_ai.retrieval.*` |+| `gen_ai.token.type` | `gen_ai.token.type` |+| `gen_ai.workflow.name` | `gen_ai.workflow.name` |++### Request and response metadata++| Source signal | Normalized field |+|---------------|------------------|+| `gen_ai.request.model`, `llm.request.model` | `gen_ai.request.model` |+| `gen_ai.request.choice.count` | `gen_ai.request.choice_count` |+| `gen_ai.request.encoding_formats` | `gen_ai.request.encoding_formats` |+| `gen_ai.request.frequency_penalty` | `gen_ai.request.frequency_penalty` |+| `gen_ai.request.max_tokens`, `llm.request.max_tokens` | `gen_ai.request.max_tokens` |+| `gen_ai.request.presence_penalty` | `gen_ai.request.presence_penalty` |+| `gen_ai.request.seed` | `gen_ai.request.seed` |+| `gen_ai.request.stop_sequences` | `gen_ai.request.stop_sequences` |+| `gen_ai.request.stream` | `gen_ai.request.stream` |+| `gen_ai.request.temperature`, `llm.request.temperature` | `gen_ai.request.temperature` |+| `gen_ai.request.top_k`, `gen_ai.request.top_p` | `gen_ai.request.top_k`, `gen_ai.request.top_p` |+| `gen_ai.response.id`, `gen_ai.response.model`, `llm.response.model` | `gen_ai.response.id`, `gen_ai.response.model` |+| `gen_ai.response.finish_reasons` | `gen_ai.response.finish_reasons` |+| `gen_ai.response.time_to_first_chunk` | `gen_ai.response.time_to_first_chunk` |++### Usage metadata++| Source signal | Normalized field |+|---------------|------------------|+| `gen_ai.usage.input_tokens`, `llm.usage.prompt_tokens`, `gen_ai.usage.prompt_tokens` | `gen_ai.usage.input_tokens` |+| `gen_ai.usage.output_tokens`, `llm.usage.completion_tokens`, `gen_ai.usage.completion_tokens` | `gen_ai.usage.output_tokens` |+| `gen_ai.usage.cache_creation.input_tokens` | `gen_ai.usage.cache_creation.input_tokens` |+| `gen_ai.usage.cache_read.input_tokens` | `gen_ai.usage.cache_read.input_tokens` |+| `gen_ai.usage.reasoning.output_tokens` | `gen_ai.usage.reasoning.output_tokens` |+| `gen_ai.usage.cost`, runtime `*.cost.usage` metric datapoints | `gen_ai.usage.cost_usd` |++Usage also arrives as metric datapoints, not just span and log attributes. Claude Code's `claude_code.token.usage` and `claude_code.cost.usage` and Codex's `codex.turn.token_usage` are expanded per datapoint and mapped into the same `gen_ai.usage` fields by their `token_type` (for example Codex `cached_input` maps to `cache_read.input_tokens` and `reasoning_output` to `reasoning.output_tokens`; rollup types such as `total` are ignored). `gen_ai.usage.cost_usd` carries runtime-reported cost only and is never derived from a local pricing table. See [How token attribution works](/cli/endpoint-tokens#how-token-attribution-works) for how these normalized fields aggregate into local reports.++## Prompt and content handling++Prompt text can come from `gen_ai.prompt`, `prompt`, `user_prompt`, `input.prompt`, `copilot_chat.user_request`, or the first meaningful text value in `gen_ai.input.messages`. Empty input message arrays do not create prompt events by themselves.++Beacon accepts empty `content.retention` values for compatibility with older records. Truncation can be represented by top-level `field_truncated` and, for event-specific content state, `content.truncated`.++## Category inference++When a runtime omits `event.category`, Beacon infers it from `event.action`:++| Action pattern | Inferred category |+|----------------|-------------------|+| `prompt.*` | `prompt` |+| `command.*` | `command` |+| `file.*` | `file` |+| `mcp.*` | `mcp` |+| `approval.*` or `policy.*` | `approval` |+| `metric.*` | `metric` |+| `tool.*` | `tool` |++## Related++<Columns cols={2}>+ <Card title="Unified telemetry schema" icon="code" href="/telemetry-schema/event-schema">+ Return to the schema overview.+ </Card>+ <Card title="Schema fields" icon="table-list" href="/telemetry-schema/fields">+ Review entities, optional context, and shared top-level fields.+ </Card>+ <Card title="Open Source Architecture" icon="diagram-project" href="/architecture/architecture">+ See where normalization fits in the local telemetry architecture.+ </Card>+</Columns>