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
docs(pi): add the missing Pi runtime page, scoped to what actually ships
Claude3526c6e27483
diff --git a/README.md b/README.mdindex 9e3bad75..5afc368b 100644--- a/README.md+++ b/README.md@@ -90,7 +90,7 @@ CI, and cloud surfaces.| [GitHub Copilot CLI](https://docs.asymptotelabs.ai/cli/supported-runtimes-github-copilot-cli) | MDM-managed OTLP HTTP | Prompt, session, tool, and approval-like activity emitted through Copilot CLI spans || [Grok Build](https://docs.asymptotelabs.ai/cli/supported-runtimes-grok-build) | Native hooks | Session, prompt, pre-tool, post-tool, failed tool, stop, session-end, command, and file telemetry || [OpenCode](https://docs.asymptotelabs.ai/cli/supported-runtimes-opencode) | Managed plugin hooks | Prompts, assistant output/reasoning, model usage/cost, tool lifecycle/results, commands, file/web/MCP activity, approvals, and session errors |-| [Pi](https://docs.asymptotelabs.ai/cli/supported-runtimes-pi) | Managed extension hooks | Session, prompt, agent and turn lifecycle, tool call and result, command, and approval-decision telemetry where Pi's extension API exposes it |+| [Pi](https://docs.asymptotelabs.ai/runtimes/pi) | Managed extension hooks | Discovery and harness attribution today; the managed extension that collects session, prompt, tool, command, and approval telemetry is not shipped yet || [VS Code](https://docs.asymptotelabs.ai/cli/supported-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 |##### Knowledge Worker Agent Harnessesdiff --git a/docs/cli/endpoint-discover.mdx b/docs/cli/endpoint-discover.mdxindex 56d91fc9..a77bff84 100644--- a/docs/cli/endpoint-discover.mdx+++ b/docs/cli/endpoint-discover.mdx@@ -13,7 +13,7 @@ beacon endpoint discoverBeacon 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-managed hooks, identified by the endpoint settings flags (`--log`, `--config`, `--cli`) or a legacy `BEACON_ENDPOINT_MODE=1` prefix, together with `--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`. Cline discovery looks for `~/.cline` and treats a `cline` executable as an additional signal rather than the deciding one, because Cline's VS Code and JetBrains hosts ship no executable; it then checks whether Beacon's managed plugin is installed at `~/.cline/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.+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-managed hooks, identified by the endpoint settings flags (`--log`, `--config`, `--cli`) or a legacy `BEACON_ENDPOINT_MODE=1` prefix, together with `--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`. Cline discovery looks for `~/.cline` and treats a `cline` executable as an additional signal rather than the deciding one, because Cline's VS Code and JetBrains hosts ship no executable; it then checks whether Beacon's managed plugin is installed at `~/.cline/plugins/beacon.ts`. Pi discovery looks for the `pi` executable and treats `~/.pi/agent` as an additional signal, because an npm, pnpm, or bun install is often absent from the inherited `PATH` while its state directory is not; it then reports whether Beacon's managed extension is installed at `~/.pi/agent/extensions/beacon.ts`, and reports a `beacon.ts` without Beacon's marker as disabled rather than enabled. 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.## Flagsdiff --git a/docs/docs.json b/docs/docs.jsonindex 362965d2..65cf471e 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -148,6 +148,7 @@"runtimes/grok-build","runtimes/cline","runtimes/opencode",+ "runtimes/pi","runtimes/vscode"]},@@ -1325,6 +1326,14 @@"source": "/supported-runtimes-cline","destination": "/runtimes/cline"},+ {+ "source": "/cli/supported-runtimes-pi",+ "destination": "/runtimes/pi"+ },+ {+ "source": "/supported-runtimes-pi",+ "destination": "/runtimes/pi"+ },{"source": "/system-architecture","destination": "/architecture/system-architecture"diff --git a/docs/runtimes/index.mdx b/docs/runtimes/index.mdxindex 17ba7fdb..c67d343e 100644--- a/docs/runtimes/index.mdx+++ b/docs/runtimes/index.mdx@@ -31,6 +31,7 @@ These integrations are grouped by where the agent runs and how telemetry is coll| [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 || [Cline](/runtimes/cline) | Managed plugin hooks | Prompts, task lifecycle, tool lifecycle, commands, file reads and edits with diffs, MCP activity, and token usage |+| [Pi](/runtimes/pi) | Managed extension hooks | Discovery and harness attribution today; the managed extension that collects prompt, tool, command, and file telemetry is not shipped yet || [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 Harnessesdiff --git a/docs/runtimes/integration-model.mdx b/docs/runtimes/integration-model.mdxindex fbd39ba5..a9b40f75 100644--- a/docs/runtimes/integration-model.mdx+++ b/docs/runtimes/integration-model.mdx@@ -21,6 +21,7 @@ Beacon supports multiple [runtime surfaces](/concepts/core-concepts#runtime-surf| [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 || [Cline](/runtimes/cline) | Looks for `~/.cline`, treating a `cline` executable as an extra signal because the VS Code and JetBrains hosts ship none, then checks the managed Beacon plugin |+| [Pi](/runtimes/pi) | Looks for the `pi` executable, treating `~/.pi/agent` as an extra signal because an npm or version-manager install is often off the inherited `PATH`, then checks for Beacon's managed extension at `~/.pi/agent/extensions/beacon.ts` || [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 |@@ -57,6 +58,7 @@ During install, Beacon configures the runtime surfaces it can safely manage:| [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. || [Cline](/runtimes/cline) | Managed local plugin through `beacon-hooks` | One plugin covers the VS Code, JetBrains, and CLI hosts; it forwards run and tool hooks for prompt, task lifecycle, tool, command, file, MCP, and token telemetry. |+| [Pi](/runtimes/pi) | Managed local extension through `beacon-hooks` | Pi has no hooks file and no OTLP export, so the TypeScript extension API is the only observation surface. Discovery and harness attribution ship today; the extension itself does not, so no Pi hook events are collected yet. || [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. |diff --git a/docs/runtimes/pi.mdx b/docs/runtimes/pi.mdxnew file mode 100644index 00000000..8515108c--- /dev/null+++ b/docs/runtimes/pi.mdx@@ -0,0 +1,106 @@+---+title: "Pi"+description: "Asymptote support details for Pi endpoint telemetry"+---++## Runtime Overview++Asymptote supports [Pi](https://pi.dev/) as a discovered runtime surface, with a managed local extension as the collection path.++Pi is neither of Asymptote's two established integration shapes. It has no hooks configuration file to merge a managed hook block into, and no OpenTelemetry support to point at the local collector. Its documented observation surface is the TypeScript extension API, which makes the integration extension-shaped — one Asymptote-owned extension file that forwards runtime events to `beacon-hooks`, the same shape as the OpenCode and Cline plugins.++<Note>+Pi support is currently **discovery only**. `beacon endpoint discover` identifies Pi, resolves the managed extension path, and reports whether Asymptote's extension is in place, and any Pi-attributed event that reaches the runtime log normalizes to the canonical `pi_cli` harness name. The managed extension itself is not shipped yet, so `beacon endpoint hooks install --harness pi` returns `unsupported hook harness "pi"` and no Pi hook events are collected. See [Known gaps](#known-gaps).+</Note>++## Prerequisites++- Pi is installed and available as the `pi` executable, or has a local state directory at `~/.pi/agent`.+- `beacon endpoint install` has run so shared endpoint config and runtime log paths exist.++## Collection path++Asymptote's managed Pi extension is a single TypeScript file at one of two documented extension locations:++| Level | Extension path |+|-------|----------------|+| User | `~/.pi/agent/extensions/beacon.ts` |+| Project | `./.pi/extensions/beacon.ts` |++The distinction matters beyond the path. A project-level extension is subject to Pi's project-trust prompt, so the user-level location is the one that works without further interaction — and it is the path `beacon endpoint discover` reports on, so a project-level extension is not reflected in discovery output.++Asymptote identifies its own extension file by the marker `beacon-managed-pi-extension:v1`. The version suffix is part of the contract with the extension source rather than decoration: it is what will let a repair recognize a stale file instead of leaving it in place. A `beacon.ts` without the marker belongs to somebody else, so install will not overwrite it and discovery does not report it as Asymptote telemetry.++The integration is extension-based. Pi has no OpenTelemetry export for Asymptote to configure, so there is no OTLP path for this runtime.++## Discovery and status++Asymptote detects Pi through the `pi` executable, treating the `~/.pi/agent` state directory as an additional signal. Pi installed through npm, pnpm, or bun is frequently absent from the `PATH` the endpoint process inherited — a shell alias, a version manager, or a per-project install all hide it — while its state directory is still there. Treating that directory as evidence keeps discovery from reporting "not detected" for a runtime someone is actively using, the same fallback the OpenCode, Cursor, and Hermes probes make for the same reason.++```bash title="Show Pi discovery state"+beacon endpoint discover --all --json+```++Pi reports as the `pi_cli` harness with capability `plugin`:++| Telemetry status | Meaning |+|------------------|---------|+| `missing` | No extension file at the user-level managed path |+| `disabled` | A `beacon.ts` exists but carries no Asymptote marker, so it is somebody else's extension sharing the filename |+| `enabled` | Asymptote's managed extension is in place |++An unmarked extension file reports `disabled` rather than `enabled` on purpose. Reporting it as enabled would show the runtime as covered while no events arrive.++## Install or configuration support++`beacon endpoint install` prepares shared endpoint config and runtime log paths, and includes Pi in discovery. There is no Pi hook install target yet:++```bash title="Not yet available"+beacon endpoint hooks install --harness pi+# Error: unsupported hook harness "pi"+```++## Telemetry coverage++| Area | Support |+|------|---------|+| Runtime discovery | Supported — executable and `~/.pi/agent` detection, managed extension path, and telemetry status |+| Harness attribution | Supported — `pi`, `pi.dev`, `pi_cli`, `pi-cli`, `pi_agent`, `pi-agent`, and `pi agent` all normalize to `pi_cli` |+| Extension install and repair | Not yet available — see [Known gaps](#known-gaps) |+| Prompt, session, tool, command, file, and approval telemetry | Not yet available — no extension is shipped, so no Pi hook events are collected |+| Local JSONL and dashboard | Supported for any Pi-attributed event already in the runtime log |+| MDM deployment | Supported for the endpoint agent; Pi extensions will install separately in the logged-in user's context |++Pi's harness name is matched by equality against a closed set of spellings rather than by substring, because `pi` is two characters and appears inside names that belong to other runtimes — `copilot` contains it. A substring rule would attribute every GitHub Copilot and VS Code Copilot session to Pi.++## Data handling++Discovery reads the managed extension path and reports its state. It records no prompt text, command output, tool input, or file content, because no Pi collection path is active yet.++When the managed extension lands, Pi content will be handled the same way as every other runtime: prompts, tool arguments and results, commands, command output, paths, and diffs retained in local or customer-controlled logs, with local secret redaction and per-string limits applied before writing, a hash and byte count on each content-bearing event, and events over the 64 KiB limit dropping raw and retained content while preserving stable metadata and setting `field_truncated`.++## Known gaps++- **No managed extension yet.** What ships today is Pi's runtime identity and discovery: the canonical harness name, the managed extension paths, the file marker, and status reporting. The extension source and its hook-event mapping are not in the build, so `beacon endpoint hooks install --harness pi` and `beacon endpoint hooks status --harness pi` both reject `pi` as an unsupported harness.+- **No Pi hook telemetry.** Until the extension ships, Pi activity produces no endpoint events. Discovery reporting `missing` for a detected Pi install is the expected state, not a misconfiguration.+- **No enforcement.** Consistent with every other runtime, enforcement stays behind the optional, off-by-default policy-provider seam (`BEACON_POLICY_PROVIDER`), which is not wired to Pi.++## Deployment notes++Because Pi collection is not active, there is nothing to restart and no hook state to validate. Confirm that discovery sees the runtime:++```bash+/opt/beacon/bin/beacon endpoint discover --all --json+/opt/beacon/bin/beacon endpoint doctor --system+```++## 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 each runtime.+ </Card>+</Columns>