# Examples Phantom examples are deliberately value-free. Never copy real credentials, live provider identifiers, cloud tokens, device codes, cookies, or persistent `phm_` mappings into an example or issue. ## Available examples | Example | Status | Purpose | |---|---|---| | [GitHub box runner](github-box-runner/README.md) | Executable curl recipe, offline tests | List PRs, update a branch, and enable auto-merge through Phantom. | | [First five minutes](first-five-minutes/README.md) | Executable, hermetic contract | Run a deterministic value-free delegation walkthrough with no network access, mutation, or persisted token mapping. | | [Installed-runtime onboarding](agent-first-five-minutes/README.md) | Executable CLI/MCP smoke | Check both reviewed local binaries in disposable empty directories; no vault, credentials, or provider calls. | | [Agent delegation templates](agent-delegation/README.md) | Documentation templates | Copyable policy, task brief, and pilot-acceptance structures for a bounded agent task. | | [Claude Code](claude-code/README.md) | Executable recipe, disposable workspace | `init` → `setup --client claude` → MCP secret listing by name → `exec` with a placeholder and a local proxy URL → commit through the pre-commit hook. | | [Cursor](cursor/README.md) | Executable recipe, disposable workspace and HOME | Merge Phantom into `~/.cursor/mcp.json` without touching existing servers, then query the configured server over MCP. | | [LiteLLM gateway](litellm/README.md) | Experimental. Manual smoke test with a real LiteLLM, not in CI; a hermetic proxy test runs in the daily full CI run | LiteLLM holds only a `phm_` placeholder and sends it to the Phantom proxy; verified against a mock upstream. | | [Next.js](nextjs/README.md) | Executable recipe, disposable workspace, needs network for `npm install` | A Next.js 16 server under `phantom exec` sees a `phm_` placeholder and a healthy local proxy, never the value. | | [GitHub Actions secret gate](github-actions/README.md) | Copyable workflow plus an executable local replay | A pull-request check that fails on raw dotenv values and hardcoded provider keys, with no vault or secrets in CI. | | [PostHog capture](posthog-capture.py) | Script plus offline tests (`test_posthog_capture.py`, not in CI) | Send one event under `phantom exec` through the `posthog_fleet` route without reading the key; see [docs/posthog.md](../docs/posthog.md). | | [Temporal payload codec](temporal-codec-python/README.md) | Sketch, not reviewed by a cryptographer; unit tests run in the daily full CI run | Encrypt Temporal payloads with AES-256-GCM and decode them through a localhost-only codec server; see [docs/temporal.md](../docs/temporal.md). | The repository does not currently claim a stable Rust library API or ship a live provider-enrollment example. Provider protocol engines and test-only mocks are internal scaffolding; they are not runnable acceptance examples. The Claude Code, Cursor, GitHub Actions, and Next.js recipes use a fake, non-provider key and an explicit encrypted-file vault inside a temporary HOME. Each prints `PASS` lines and exits `0` (all passed), `1` (a check failed) or `2` (binary missing, so incomplete). The daily full CI run executes the Claude Code, Cursor, and GitHub Actions recipes against the workspace build with `node --test scripts/examples-client-recipes.test.mjs`. No CI job runs the Next.js recipe, which needs network access for `npm install`; run it locally with `node examples/nextjs/run.mjs`. ## Using an example 1. Read the linked README and its trust-boundary notes. 2. Copy only the files needed for your project. 3. Replace all placeholders with names and scopes, never credential values. 4. Add your repository's exact tests, allowed external systems, approvals, and rollback path. 5. Treat any new mutation, provider, publication, or deployment as a new scope requiring separate authorization. For product setup, start with the [getting-started guide](../docs/getting-started.md). For development examples and tests, see [CONTRIBUTING.md](../CONTRIBUTING.md).