xtensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Pi Packages](#pi-packages) and share them with others via npm or git.\n\nPi ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask pi to build what you want or install a third party pi package that matches your workflow.\n\nPi runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps. See [openclaw/openclaw](https://github.com/openclaw/openclaw) for a real-world SDK integration.\n\n## Share your OSS coding agent sessions\n\nIf you use pi for open source work, please share your coding agent sessions.\n\nPublic OSS session data helps improve models, prompts, tools, and evaluations using real development workflows.\n\nFor the full explanation, see [this post on X](https://x.com/badlogicgames/status/2037811643774652911).\n\nTo publish sessions, use [`badlogic/pi-share-hf`](https://github.com/badlogic/pi-share-hf). Read its README.md for setup instructions. All you need is a Hugging Face account, the Hugging Face CLI, and `pi-share-hf`.\n\nYou can also watch [this video](https://x.com/badlogicgames/status/2041151967695634619), where I show how I publish my `pi-mono` sessions.\n\nI regularly publish my own `pi-mono` work sessions here:\n\n- [badlogicgames/pi-mono on Hugging Face](https://huggingface.co/datasets/badlogicgames/pi-mono)\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Providers & Models](#providers--models)\n- [Interactive Mode](#interactive-mode)\n  - [Editor](#editor)\n  - [Commands](#commands)\n  - [Keyboard Shortcuts](#keyboard-shortcuts)\n  - [Message Queue](#message-queue)\n- [Sessions](#sessions)\n  - [Branching](#branching)\n  - [Compaction](#compaction)\n- [Settings](#settings)\n- [Context Files](#context-files)\n- [Customization](#customization)\n  - [Prompt Templates](#prompt-templates)\n  - [Skills](#skills)\n  - [Extensions](#extensions)\n  - [Themes](#themes)\n  - [Pi Packages](#pi-packages)\n- [Programmatic Usage](#programmatic-usage)\n- [Philosophy](#philosophy)\n- [CLI Reference](#cli-reference)\n\n---\n\n## Quick Start\n\n```bash\nnpm install -g @mariozechner/pi-coding-agent\n```\n\nAuthenticate with an API key:\n\n```bash\nexport ANTHROPIC_API_KEY=sk-ant-...\npi\n```\n\nOr use your existing subscription:\n\n```bash\npi\n/login  # Then select provider\n```\n\nThen just talk to pi. By default, pi gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [pi packages](#pi-packages).\n\n**Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)\n\n---\n\n## Providers & Models\n\nFor each built-in provider, pi maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).\n\n**Subscriptions:**\n- Anthropic Claude Pro/Max\n- OpenAI ChatGPT Plus/Pro (Codex)\n- GitHub Copilot\n- Google Gemini CLI\n- Google Antigravity\n\n**API keys:**\n- Anthropic\n- OpenAI\n- Azure OpenAI\n- Google Gemini\n- Google Vertex\n- Amazon Bedrock\n- Mistral\n- Groq\n- Cerebras\n- xAI\n- OpenRouter\n- Vercel AI Gateway\n- ZAI\n- OpenCode Zen\n- OpenCode Go\n- Hugging Face\n- Kimi For Coding\n- MiniMax\n\nSee [docs/providers.md](docs/providers.md) for detailed setup instructions.\n\n**Custom providers & models:** Add providers via `~/.pi/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).\n\n---\n\n## Interactive Mode\n\n

\n\nThe interface from top to bottom:\n\n- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions\n- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI\n- **Editor** - Where you type; border color indicates thinking level\n- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model\n\nThe editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.\n\n### Editor\n\n| Feature | How |\n|---------|-----|\n| File reference | Type `@` to fuzzy-search project files |\n| Path completion | Tab to complete paths |\n| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |\n| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |\n| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |\n\nStandard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).\n\n### Commands\n\nType `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.\n\n| Command | Description |\n|---------|-------------|\n| `/login`, `/logout` | OAuth authentication |\n| `/model` | Switch models |\n| `/scoped-models` | Enable/disable models for Ctrl+P cycling |\n| `/settings` | Thinking level, theme, message delivery, transport |\n| `/resume` | Pick from previous sessions |\n| `/new` | Start a new session |\n| `/name <name>` | Set session display name |\n| `/session` | Show session info (path, tokens, cost) |\n| `/tree` | Jump to any point in the session and continue from there |\n| `/fork` | Create a new session from the current branch |\n| `/compact [prompt]` | Manually compact context, optional custom instructions |\n| `/copy` | Copy last assistant message to clipboard |\n| `/export [file]` | Export session to HTML file |\n| `/share` | Upload as private GitHub gist with shareable HTML link |\n| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |\n| `/hotkeys` | Show all keyboard shortcuts |\n| `/changelog` | Display version history |\n| `/quit` | Quit pi |\n\n### Keyboard Shortcuts\n\nSee `/hotkeys` for the full list. Customize via `~/.pi/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).\n\n**Commonly used:**\n\n| Key | Action |\n|-----|--------|\n| Ctrl+C | Clear editor |\n| Ctrl+C twice | Quit |\n| Escape | Cancel/abort |\n| Escape twice | Open `/tree` |\n| Ctrl+L | Open model selector |\n| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |\n| Shift+Tab | Cycle thinking level |\n| Ctrl+O | Collapse/expand tool output |\n| Ctrl+T | Collapse/expand thinking blocks |\n\n### Message Queue\n\nSubmit messages while the agent is working:\n\n- **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls\n- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work\n- **Escape** aborts and restores queued messages to editor\n- **Alt+Up** retrieves queued messages back to editor\n\nOn Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so pi can receive the follow-up shortcut.\n\nConfigure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `\"one-at-a-time\"` (default, waits for response) or `\"all\"` (delivers all queued at once). `transport` selects provider transport preference (`\"sse\"`, `\"websocket\"`, or `\"auto\"`) for providers that support multiple transports.\n\n---\n\n## Sessions\n\nSessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session.md](docs/session.md) for file format.\n\n### Management\n\nSessions auto-save to `~/.pi/agent/sessions/` organized by working directory.\n\n```bash\npi -c                  # Continue most recent session\npi -r                  # Browse and select from past sessions\npi --no-session        # Ephemeral mode (don't save)\npi --session <path>    # Use specific session file or ID\npi --fork <path>       # Fork specific session file or ID into a new session\n```\n\n### Branching\n\n**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.\n\n

\n\n- Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→\n- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all\n- Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps\n\n**`/fork`** - Create a new session file from the current branch. Opens a selector, copies history up to the selected point, and places that message in the editor for modification.\n\n**`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.\n\n### Compaction\n\nLong sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.\n\n**Manual:** `/compact` or `/compact <custom instructions>`\n\n**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.\n\nCompaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.\n\n---\n\n## Settings\n\nUse `/settings` to modify common options, or edit JSON files directly:\n\n| Location | Scope |\n|----------|-------|\n| `~/.pi/agent/settings.json` | Global (all projects) |\n| `.pi/settings.json` | Project (overrides global) |\n\nSee [docs/settings.md](docs/settings.md) for all options.\n\nTo opt out of anonymous install/update telemetry tied to changelog detection, set `enableInstallTelemetry` to `false` in `settings.json`, or set `PI_TELEMETRY=0`.\n\n---\n\n## Context Files\n\nPi loads `AGENTS.md` (or `CLAUDE.md`) at startup from:\n- `~/.pi/agent/AGENTS.md` (global)\n- Parent directories (walking up from cwd)\n- Current directory\n\nUse for project instructions, conventions, common commands. All matching files are concatenated.\n\nDisable context file loading with `--no-context-files` (or `-nc`).\n\n### System Prompt\n\nReplace the default system prompt with `.pi/SYSTEM.md` (project) or `~/.pi/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.\n\n---\n\n## Customization\n\n### Prompt Templates\n\nReusable prompts as Markdown files. Type `/name` to expand.\n\n```markdown\n<!-- ~/.pi/agent/prompts/review.md -->\nReview this code for bugs, security issues, and performance problems.\nFocus on: {{focus}}\n```\n\nPlace in `~/.pi/agent/prompts/`, `.pi/prompts/`, or a [pi package](#pi-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).\n\n### Skills\n\nOn-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.\n\n```markdown\n<!-- ~/.pi/agent/skills/my-skill/SKILL.md -->\n# My Skill\nUse this skill when the user asks about X.\n\n## Steps\n1. Do this\n2. Then that\n```\n\nPlace in `~/.pi/agent/skills/`, `~/.agents/skills/`, `.pi/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [pi package](#pi-packages) to share with others. See [docs/skills.md](docs/skills.md).\n\n### Extensions\n\n

\n\nTypeScript modules that extend pi with custom tools, commands, keyboard shortcuts, event handlers, and UI components.\n\n```typescript\nexport default function (pi: ExtensionAPI) {\n  pi.registerTool({ name: \"deploy\", ... });\n  pi.registerCommand(\"stats\", { ... });\n  pi.on(\"tool_call\", async (event, ctx) => { ... });\n}\n```\n\n**What's possible:**\n- Custom tools (or replace built-in tools entirely)\n- Sub-agents and plan mode\n- Custom compaction and summarization\n- Permission gates and path protection\n- Custom editors and UI components\n- Status lines, headers, footers\n- Git checkpointing and auto-commit\n- SSH and sandbox execution\n- MCP server integration\n- Make pi look like Claude Code\n- Games while waiting (yes, Doom runs)\n- ...anything you can dream up\n\nPlace in `~/.pi/agent/extensions/`, `.pi/extensions/`, or a [pi package](#pi-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).\n\n### Themes\n\nBuilt-in: `dark`, `light`. Themes hot-reload: modify the active theme file and pi immediately applies changes.\n\nPlace in `~/.pi/agent/themes/`, `.pi/themes/`, or a [pi package](#pi-packages) to share with others. See [docs/themes.md](docs/themes.md).\n\n### Pi Packages\n\nBundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Api-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).\n\n> **Security:** Pi packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.\n\n```bash\npi install npm:@foo/pi-tools\npi install npm:@foo/pi-tools@1.2.3      # pinned version\npi install git:github.com/user/repo\npi install git:github.com/user/repo@v1  # tag or commit\npi install git:git@github.com:user/repo\npi install git:git@github.com:user/repo@v1  # tag or commit\npi install https://github.com/user/repo\npi install https://github.com/user/repo@v1      # tag or commit\npi install ssh://git@github.com/user/repo\npi install ssh://git@github.com/user/repo@v1    # tag or commit\npi remove npm:@foo/pi-tools\npi uninstall npm:@foo/pi-tools          # alias for remove\npi list\npi update                               # skips pinned packages\npi config                               # enable/disable extensions, skills, prompts, themes\n```\n\nPackages install to `~/.pi/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.pi/git/`, `.pi/npm/`). If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `[\"mise\", \"exec\", \"node@20\", \"--\", \"npm\"]`.\n\nCreate a package by adding a `pi` key to `package.json`:\n\n```json\n{\n  \"name\": \"my-pi-package\",\n  \"keywords\": [\"pi-package\"],\n  \"pi\": {\n    \"extensions\": [\"./extensions\"],\n    \"skills\": [\"./skills\"],\n    \"prompts\": [\"./prompts\"],\n    \"themes\": [\"./themes\"]\n  }\n}\n```\n\nWithout a `pi` manifest, pi auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).\n\nSee [docs/packages.md](docs/packages.md).\n\n---\n\n## Programmatic Usage\n\n### SDK\n\n```typescript\nimport { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from \"@mariozechner/pi-coding-agent\";\n\nconst authStorage = AuthStorage.create();\nconst modelRegistry = ModelRegistry.create(authStorage);\nconst { session } = await createAgentSession({\n  sessionManager: SessionManager.inMemory(),\n  authStorage,\n  modelRegistry,\n});\n\nawait session.prompt(\"What files are in the current directory?\");\n```\n\nFor advanced multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`.\n\nSee [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).\n\n### RPC Mode\n\nFor non-Node.js integrations, use RPC mode over stdin/stdout:\n\n```bash\npi --mode rpc\n```\n\nRPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.\n\nSee [docs/rpc.md](docs/rpc.md) for the protocol.\n\n---\n\n## Philosophy\n\nPi is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [pi packages](#pi-packages). This keeps the core minimal while letting you shape pi to fit how you work.\n\n**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)\n\n**No sub-agents.** There's many ways to do this. Spawn pi instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.\n\n**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.\n\n**No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.\n\n**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).\n\n**No background bash.** Use tmux. Full observability, direct interaction.\n\nRead the [blog post](https://mariozechner.at/posts/2025-11-30-pi-coding-agent/) for the full rationale.\n\n---\n\n## CLI Reference\n\n```bash\npi [options] [@files...] [messages...]\n```\n\n### Package Commands\n\n```bash\npi install <source> [-l]     # Install package, -l for project-local\npi remove <source> [-l]      # Remove package\npi uninstall <source> [-l]   # Alias for remove\npi update [source]           # Update packages (skips pinned)\npi list                      # List installed packages\npi config                    # Enable/disable package resources\n```\n\n### Modes\n\n| Flag | Description |\n|------|-------------|\n| (default) | Interactive mode |\n| `-p`, `--print` | Print response and exit |\n| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |\n| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |\n| `--export <in> [out]` | Export session to HTML |\n\nIn print mode, pi also reads piped stdin and merges it into the initial prompt:\n\n```bash\ncat README.md | pi -p \"Summarize this text\"\n```\n\n### Model Options\n\n| Option | Description |\n|--------|-------------|\n| `--provider <name>` | Provider (anthropic, openai, google, etc.) |\n| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |\n| `--api-key <key>` | API key (overrides env vars) |\n| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |\n| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |\n| `--list-models [search]` | List available models |\n\n### Session Options\n\n| Option | Description |\n|--------|-------------|\n| `-c`, `--continue` | Continue most recent session |\n| `-r`, `--resume` | Browse and select session |\n| `--session <path>` | Use specific session file or partial UUID |\n| `--fork <path>` | Fork specific session file or partial UUID into a new session |\n| `--session-dir <dir>` | Custom session storage directory |\n| `--no-session` | Ephemeral mode (don't save) |\n\n### Tool Options\n\n| Option | Description |\n|--------|-------------|\n| `--tools <list>` | Enable specific built-in tools (default: `read,bash,edit,write`) |\n| `--no-tools` | Disable all built-in tools (extension tools still work) |\n\nAvailable built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`\n\n### Resource Options\n\n| Option | Description |\n|--------|-------------|\n| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |\n| `--no-extensions` | Disable extension discovery |\n| `--skill <path>` | Load skill (repeatable) |\n| `--no-skills` | Disable skill discovery |\n| `--prompt-template <path>` | Load prompt template (repeatable) |\n| `--no-prompt-templates` | Disable prompt template discovery |\n| `--theme <path>` | Load theme (repeatable) |\n| `--no-themes` | Disable theme discovery |\n| `--no-context-files`, `-nc` | Disable AGENTS.md and CLAUDE.md context file discovery |\n\nCombine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).\n\n### Other Options\n\n| Option | Description |\n|--------|-------------|\n| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |\n| `--append-system-prompt <text>` | Append to system prompt |\n| `--verbose` | Force verbose startup |\n| `-h`, `--help` | Show help |\n| `-v`, `--version` | Show version |\n\n### File Arguments\n\nPrefix files with `@` to include in the message:\n\n```bash\npi @prompt.md \"Answer this\"\npi -p @screenshot.png \"What's in this image?\"\npi @code.ts @test.ts \"Review these files\"\n```\n\n### Examples\n\n```bash\n# Interactive with initial prompt\npi \"List all .ts files in src/\"\n\n# Non-interactive\npi -p \"Summarize this codebase\"\n\n# Non-interactive with piped stdin\ncat README.md | pi -p \"Summarize this text\"\n\n# Different model\npi --provider openai --model gpt-4o \"Help me refactor\"\n\n# Model with provider prefix (no --provider needed)\npi --model openai/gpt-4o \"Help me refactor\"\n\n# Model with thinking level shorthand\npi --model sonnet:high \"Solve this complex problem\"\n\n# Limit model cycling\npi --models \"claude-*,gpt-4o\"\n\n# Read-only mode\npi --tools read,grep,find,ls -p \"Review the code\"\n\n# High thinking level\npi --thinking high \"Solve this complex problem\"\n```\n\n### Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `PI_CODING_AGENT_DIR` | Override config directory (default: `~/.pi/agent`) |\n| `PI_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |\n| `PI_SKIP_VERSION_CHECK` | Skip version check at startup |\n| `PI_TELEMETRY` | Override install telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable |\n| `PI_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |\n| `VISUAL`, `EDITOR` | External editor for Ctrl+G |\n\n---\n\n## Contributing & Development\n\nSee [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.\n\n---\n\n## License\n\nMIT\n\n## See Also\n\n- [@mariozechner/pi-ai](https://www.npmjs.com/package/@mariozechner/pi-ai): Core LLM toolkit\n- [@mariozechner/pi-agent](https://www.npmjs.com/package/@mariozechner/pi-agent): Agent framework\n- [@mariozechner/pi-tui](https://www.npmjs.com/package/@mariozechner/pi-tui): Terminal UI components\n"}],"isError":false,"timestamp":1776377118518}}
/mnt/rpi/pi-config/sessions/--mnt-rpi--/2026-04-21T04-00-02-065Z_019dae31-f211-7676-b510-f36e32154b00.jsonl:23:{"type":"message","id":"b2b014fb","parentId":"3dc17355","timestamp":"2026-04-21T04:04:35.735Z","message":{"role":"toolResult","toolCallId":"call_mgElruUc4hNpQrNT7BAgEEDB|fc_0b92c50ce1400a4e0169e6f753442c81939152ecea0f9f6d8e","toolName":"read","content":[{"type":"text","text":"server {\n    listen 80 default_server;\n    listen [::]:80 default_server;\n\n    root /var/www/portal;\n    index index.html;\n\n    location = /portal {\n        return 302 /portal/;\n    }\n\n    location = /opencode {\n        return 302 http://ballbox-first.emperor-ratio.ts.net:8443/;\n    }\n\n    location = /opencode/ {\n        return 302 http://ballbox-first.emperor-ratio.ts.net:8443/;\n    }\n\n    location ^~ /portal/ {\n        proxy_pass http://127.0.0.1:18789/portal/;\n        proxy_http_version 1.1;\n        proxy_set_header Accept-Encoding \"\";\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    # Calistenia static repo\n    location ^~ /calistenia/ {\n        alias /home/sebas/clawd/web/calistenia/;\n        try_files $uri $uri/ /calistenia/index.html;\n    }\n\n    location = /mp3-share {\n        return 302 /mp3-share/;\n    }\n\n    location = /mp3-share-link {\n        return 302 /mp3-share/;\n    }\n\n    location ^~ /mp3-share/ {\n        alias /home/sebas/downloads/mp3-share/;\n        autoindex on;\n        autoindex_exact_size off;\n        autoindex_localtime on;\n    }\n\n    location = /shell {\n        return 302 /shell/;\n    }\n\n    location = /shell/ {\n        proxy_pass http://127.0.0.1:7681/;\n        proxy_http_version 1.1;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    location = /shell/ws {\n        proxy_pass http://127.0.0.1:7681/ws;\n        proxy_http_version 1.1;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    location = /tmux {\n        return 301 /shell/;\n    }\n\n    location ^~ /tmux/ {\n        return 301 /shell/;\n    }\n\n    # Main portal SPA\n    location / {\n        try_files $uri $uri/ /index.html;\n    }\n\n    access_log off;\n    error_log /var/log/nginx/portal-error.log warn;\n\n    location ~* \\.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2)$ {\n        expires 1d;\n        add_header Cache-Control \"public, immutable\";\n    }\n}"}],"isError":false,"timestamp":1776744275734}}
/mnt/rpi/pi-config/sessions/--mnt-rpi--/2026-04-21T04-00-02-065Z_019dae31-f211-7676-b510-f36e32154b00.jsonl:27:{"type":"message","id":"fd432d18","parentId":"4ca859c0","timestamp":"2026-04-21T04:04:57.390Z","message":{"role":"toolResult","toolCallId":"call_oTDoEE9E2CxEF0BhVVX7FZax|fc_0b92c50ce1400a4e0169e6f75a0b648193b33bc2ba9a62e022","toolName":"edit","content":[{"type":"text","text":"Successfully replaced 1 block(s) in /etc/nginx/sites-enabled/kiosk."}],"details":{"diff":"     ...\n  75         proxy_set_header Upgrade $http_upgrade;\n  76         proxy_set_header Connection \"upgrade\";\n  77     }\n  78 \n+ 79     location = /pi {\n+ 80         return 302 /pi/;\n+ 81     }\n+ 82 \n+ 83     location ^~ /pi/ {\n+ 84         proxy_pass http://127.0.0.1:8787/;\n+ 85         proxy_http_version 1.1;\n+ 86         proxy_set_header Host $host;\n+ 87         proxy_set_header X-Real-IP $remote_addr;\n+ 88         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n+ 89         proxy_set_header X-Forwarded-Proto $scheme;\n+ 90         proxy_set_header Upgrade $http_upgrade;\n+ 91         proxy_set_header Connection \"upgrade\";\n+ 92         proxy_redirect off;\n+ 93         sub_filter_once off;\n+ 94         sub_filter_types text/html text/css application/javascript application/json;\n+ 95         sub_filter 'href=\"/' 'href=\"/pi/';\n+ 96         sub_filter 'src=\"/' 'src=\"/pi/';\n+ 97         sub_filter 'content=\"/' 'content=\"/pi/';\n+ 98         sub_filter 'url(/' 'url(/pi/';\n+ 99         sub_filter 'fetch(\"/' 'fetch(\"/pi/';\n+100         sub_filter \"fetch('/\" \"fetch('/pi/\";\n+101         sub_filter '\"/manifest.webmanifest' '\"/pi/manifest.webmanifest';\n+102         sub_filter '\"/icon.svg' '\"/pi/icon.svg';\n+103         sub_filter '\"/styles.css' '\"/pi/styles.css';\n+104     }\n+105 \n  79     location = /tmux {\n  80         return 301 /shell/;\n  81     }\n  82 \n     ...","firstChangedLine":79},"isError":false,"timestamp":1776744297389}}
/mnt/rpi/pi-config/sessions/--mnt-rpi--/2026-04-21T04-00-02-065Z_019dae31-f211-7676-b510-f36e32154b00.jsonl:35:{"type":"message","id":"78c170ba","parentId":"914cc749","timestamp":"2026-04-21T04:08:06.685Z","message":{"role":"toolResult","toolCallId":"call_qUXSz8ENQCaxyCAnNctNM98a|fc_0b92c50ce1400a4e0169e6f826830081939b5b4faa3912d132","toolName":"read","content":[{"type":"text","text":"server {\n    listen 80 default_server;\n    listen [::]:80 default_server;\n\n    root /var/www/portal;\n    index index.html;\n\n    location = /portal {\n        return 302 /portal/;\n    }\n\n    location = /opencode {\n        return 302 http://ballbox-first.emperor-ratio.ts.net:8443/;\n    }\n\n    location = /opencode/ {\n        return 302 http://ballbox-first.emperor-ratio.ts.net:8443/;\n    }\n\n    location ^~ /portal/ {\n        proxy_pass http://127.0.0.1:18789/portal/;\n        proxy_http_version 1.1;\n        proxy_set_header Accept-Encoding \"\";\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    # Calistenia static repo\n    location ^~ /calistenia/ {\n        alias /home/sebas/clawd/web/calistenia/;\n        try_files $uri $uri/ /calistenia/index.html;\n    }\n\n    location = /mp3-share {\n        return 302 /mp3-share/;\n    }\n\n    location = /mp3-share-link {\n        return 302 /mp3-share/;\n    }\n\n    location ^~ /mp3-share/ {\n        alias /home/sebas/downloads/mp3-share/;\n        autoindex on;\n        autoindex_exact_size off;\n        autoindex_localtime on;\n    }\n\n    location = /shell {\n        return 302 /shell/;\n    }\n\n    location = /shell/ {\n        proxy_pass http://127.0.0.1:7681/;\n        proxy_http_version 1.1;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    location = /shell/ws {\n        proxy_pass http://127.0.0.1:7681/ws;\n        proxy_http_version 1.1;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n    }\n\n    location = /pi {\n        return 302 /pi/;\n    }\n\n    location ^~ /pi/ {\n        proxy_pass http://127.0.0.1:8787/;\n        proxy_http_version 1.1;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n        proxy_redirect off;\n        sub_filter_once off;\n        sub_filter_types text/html text/css application/javascript application/json;\n        sub_filter 'href=\"/' 'href=\"/pi/';\n        sub_filter 'src=\"/' 'src=\"/pi/';\n        sub_filter 'content=\"/' 'content=\"/pi/';\n        sub_filter 'url(/' 'url(/pi/';\n        sub_filter 'fetch(\"/' 'fetch(\"/pi/';\n        sub_filter \"fetch('/\" \"fetch('/pi/\";\n        sub_filter '\"/manifest.webmanifest' '\"/pi/manifest.webmanifest';\n        sub_filter '\"/icon.svg' '\"/pi/icon.svg';\n        sub_filter '\"/styles.css' '\"/pi/styles.css';\n    }\n\n    location = /tmux {\n        return 301 /shell/;\n    }\n\n    location ^~ /tmux/ {\n        return 301 /shell/;\n    }\n\n    # Main portal SPA\n    location / {\n        try_files $uri $uri/ /index.html;\n    }\n\n    access_log off;\n    error_log /var/log/nginx/portal-error.log warn;\n\n    location ~* \\.(css|js|jpg|jpeg|png|gif|ico|svg|woff|woff2)$ {\n        expires 1d;\n        add_header Cache-Control \"public, immutable\";\n    }\n}"}],"isError":false,"timestamp":1776744486684}}
/home/sebas/.pi/agent/sessions/--mnt-rpi--/2026-04-16T19-33-46-674Z_019d97c9-0431-734a-b9ce-92b7cb3e75df.jsonl:94:{"type":"message","id":"7a96027c","parentId":"28492c86","timestamp":"2026-04-16T20:17:32.121Z","message":{"role":"toolResult","toolCallId":"call_75KDjvcDAwncI97eOlcHmuPf|fc_09ce6544570a8b100169e143dbb0f8819389be531fac0eec10","toolName":"read","content":[{"type":"text","text":"
\n  \n    \n  \n
\n
\n  \n  \n  \n
\n
\n  pi.dev domain graciously donated by\n

\n
exe.dev\n
\n\n> New issues and PRs from new contributors are auto-closed by default. Maintainers review auto-closed issues daily. See [CONTRIBUTING.md](../../CONTRIBUTING.md).\n\n---\n\nPi is a minimal terminal coding harness. Adapt pi to your workflows, not the other way around, without having to fork and modify pi internals. Extend it with TypeScript [Extensions](#extensions), [Skills](#skills), [Prompt Templates](#prompt-templates), and [Themes](#themes). Put your extensions, skills, prompt templates, and themes in [Pi Packages](#pi-packages) and share them with others via npm or git.\n\nPi ships with powerful defaults but skips features like sub agents and plan mode. Instead, you can ask pi to build what you want or install a third party pi package that matches your workflow.\n\nPi runs in four modes: interactive, print or JSON, RPC for process integration, and an SDK for embedding in your own apps. See [openclaw/openclaw](https://github.com/openclaw/openclaw) for a real-world SDK integration.\n\n## Share your OSS coding agent sessions\n\nIf you use pi for open source work, please share your coding agent sessions.\n\nPublic OSS session data helps improve models, prompts, tools, and evaluations using real development workflows.\n\nFor the full explanation, see [this post on X](https://x.com/badlogicgames/status/2037811643774652911).\n\nTo publish sessions, use [`badlogic/pi-share-hf`](https://github.com/badlogic/pi-share-hf). Read its README.md for setup instructions. All you need is a Hugging Face account, the Hugging Face CLI, and `pi-share-hf`.\n\nYou can also watch [this video](https://x.com/badlogicgames/status/2041151967695634619), where I show how I publish my `pi-mono` sessions.\n\nI regularly publish my own `pi-mono` work sessions here:\n\n- [badlogicgames/pi-mono on Hugging Face](https://huggingface.co/datasets/badlogicgames/pi-mono)\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Providers & Models](#providers--models)\n- [Interactive Mode](#interactive-mode)\n  - [Editor](#editor)\n  - [Commands](#commands)\n  - [Keyboard Shortcuts](#keyboard-shortcuts)\n  - [Message Queue](#message-queue)\n- [Sessions](#sessions)\n  - [Branching](#branching)\n  - [Compaction](#compaction)\n- [Settings](#settings)\n- [Context Files](#context-files)\n- [Customization](#customization)\n  - [Prompt Templates](#prompt-templates)\n  - [Skills](#skills)\n  - [Extensions](#extensions)\n  - [Themes](#themes)\n  - [Pi Packages](#pi-packages)\n- [Programmatic Usage](#programmatic-usage)\n- [Philosophy](#philosophy)\n- [CLI Reference](#cli-reference)\n\n---\n\n## Quick Start\n\n```bash\nnpm install -g @mariozechner/pi-coding-agent\n```\n\nAuthenticate with an API key:\n\n```bash\nexport ANTHROPIC_API_KEY=sk-ant-...\npi\n```\n\nOr use your existing subscription:\n\n```bash\npi\n/login  # Then select provider\n```\n\nThen just talk to pi. By default, pi gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [pi packages](#pi-packages).\n\n**Platform notes:** [Windows](docs/windows.md) | [Termux (Android)](docs/termux.md) | [tmux](docs/tmux.md) | [Terminal setup](docs/terminal-setup.md) | [Shell aliases](docs/shell-aliases.md)\n\n---\n\n## Providers & Models\n\nFor each built-in provider, pi maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/login`) or API key, then select any model from that provider via `/model` (or Ctrl+L).\n\n**Subscriptions:**\n- Anthropic Claude Pro/Max\n- OpenAI ChatGPT Plus/Pro (Codex)\n- GitHub Copilot\n- Google Gemini CLI\n- Google Antigravity\n\n**API keys:**\n- Anthropic\n- OpenAI\n- Azure OpenAI\n- Google Gemini\n- Google Vertex\n- Amazon Bedrock\n- Mistral\n- Groq\n- Cerebras\n- xAI\n- OpenRouter\n- Vercel AI Gateway\n- ZAI\n- OpenCode Zen\n- OpenCode Go\n- Hugging Face\n- Kimi For Coding\n- MiniMax\n\nSee [docs/providers.md](docs/providers.md) for detailed setup instructions.\n\n**Custom providers & models:** Add providers via `~/.pi/agent/models.json` if they speak a supported API (OpenAI, Anthropic, Google). For custom APIs or OAuth, use extensions. See [docs/models.md](docs/models.md) and [docs/custom-provider.md](docs/custom-provider.md).\n\n---\n\n## Interactive Mode\n\n

\n\nThe interface from top to bottom:\n\n- **Startup header** - Shows shortcuts (`/hotkeys` for all), loaded AGENTS.md files, prompt templates, skills, and extensions\n- **Messages** - Your messages, assistant responses, tool calls and results, notifications, errors, and extension UI\n- **Editor** - Where you type; border color indicates thinking level\n- **Footer** - Working directory, session name, total token/cache usage, cost, context usage, current model\n\nThe editor can be temporarily replaced by other UI, like built-in `/settings` or custom UI from extensions (e.g., a Q&A tool that lets the user answer model questions in a structured format). [Extensions](#extensions) can also replace the editor, add widgets above/below it, a status line, custom footer, or overlays.\n\n### Editor\n\n| Feature | How |\n|---------|-----|\n| File reference | Type `@` to fuzzy-search project files |\n| Path completion | Tab to complete paths |\n| Multi-line | Shift+Enter (or Ctrl+Enter on Windows Terminal) |\n| Images | Ctrl+V to paste (Alt+V on Windows), or drag onto terminal |\n| Bash commands | `!command` runs and sends output to LLM, `!!command` runs without sending |\n\nStandard editing keybindings for delete word, undo, etc. See [docs/keybindings.md](docs/keybindings.md).\n\n### Commands\n\nType `/` in the editor to trigger commands. [Extensions](#extensions) can register custom commands, [skills](#skills) are available as `/skill:name`, and [prompt templates](#prompt-templates) expand via `/templatename`.\n\n| Command | Description |\n|---------|-------------|\n| `/login`, `/logout` | OAuth authentication |\n| `/model` | Switch models |\n| `/scoped-models` | Enable/disable models for Ctrl+P cycling |\n| `/settings` | Thinking level, theme, message delivery, transport |\n| `/resume` | Pick from previous sessions |\n| `/new` | Start a new session |\n| `/name <name>` | Set session display name |\n| `/session` | Show session info (path, tokens, cost) |\n| `/tree` | Jump to any point in the session and continue from there |\n| `/fork` | Create a new session from the current branch |\n| `/compact [prompt]` | Manually compact context, optional custom instructions |\n| `/copy` | Copy last assistant message to clipboard |\n| `/export [file]` | Export session to HTML file |\n| `/share` | Upload as private GitHub gist with shareable HTML link |\n| `/reload` | Reload keybindings, extensions, skills, prompts, and context files (themes hot-reload automatically) |\n| `/hotkeys` | Show all keyboard shortcuts |\n| `/changelog` | Display version history |\n| `/quit` | Quit pi |\n\n### Keyboard Shortcuts\n\nSee `/hotkeys` for the full list. Customize via `~/.pi/agent/keybindings.json`. See [docs/keybindings.md](docs/keybindings.md).\n\n**Commonly used:**\n\n| Key | Action |\n|-----|--------|\n| Ctrl+C | Clear editor |\n| Ctrl+C twice | Quit |\n| Escape | Cancel/abort |\n| Escape twice | Open `/tree` |\n| Ctrl+L | Open model selector |\n| Ctrl+P / Shift+Ctrl+P | Cycle scoped models forward/backward |\n| Shift+Tab | Cycle thinking level |\n| Ctrl+O | Collapse/expand tool output |\n| Ctrl+T | Collapse/expand thinking blocks |\n\n### Message Queue\n\nSubmit messages while the agent is working:\n\n- **Enter** queues a *steering* message, delivered after the current assistant turn finishes executing its tool calls\n- **Alt+Enter** queues a *follow-up* message, delivered only after the agent finishes all work\n- **Escape** aborts and restores queued messages to editor\n- **Alt+Up** retrieves queued messages back to editor\n\nOn Windows Terminal, `Alt+Enter` is fullscreen by default. Remap it in [docs/terminal-setup.md](docs/terminal-setup.md) so pi can receive the follow-up shortcut.\n\nConfigure delivery in [settings](docs/settings.md): `steeringMode` and `followUpMode` can be `\"one-at-a-time\"` (default, waits for response) or `\"all\"` (delivers all queued at once). `transport` selects provider transport preference (`\"sse\"`, `\"websocket\"`, or `\"auto\"`) for providers that support multiple transports.\n\n---\n\n## Sessions\n\nSessions are stored as JSONL files with a tree structure. Each entry has an `id` and `parentId`, enabling in-place branching without creating new files. See [docs/session.md](docs/session.md) for file format.\n\n### Management\n\nSessions auto-save to `~/.pi/agent/sessions/` organized by working directory.\n\n```bash\npi -c                  # Continue most recent session\npi -r                  # Browse and select from past sessions\npi --no-session        # Ephemeral mode (don't save)\npi --session <path>    # Use specific session file or ID\npi --fork <path>       # Fork specific session file or ID into a new session\n```\n\n### Branching\n\n**`/tree`** - Navigate the session tree in-place. Select any previous point, continue from there, and switch between branches. All history preserved in a single file.\n\n

\n\n- Search by typing, fold/unfold and jump between branches with Ctrl+←/Ctrl+→ or Alt+←/Alt+→, page with ←/→\n- Filter modes (Ctrl+O): default → no-tools → user-only → labeled-only → all\n- Press Shift+L to label entries as bookmarks and Shift+T to toggle label timestamps\n\n**`/fork`** - Create a new session file from the current branch. Opens a selector, copies history up to the selected point, and places that message in the editor for modification.\n\n**`--fork <path|id>`** - Fork an existing session file or partial session UUID directly from the CLI. This copies the full source session into a new session file in the current project.\n\n### Compaction\n\nLong sessions can exhaust context windows. Compaction summarizes older messages while keeping recent ones.\n\n**Manual:** `/compact` or `/compact <custom instructions>`\n\n**Automatic:** Enabled by default. Triggers on context overflow (recovers and retries) or when approaching the limit (proactive). Configure via `/settings` or `settings.json`.\n\nCompaction is lossy. The full history remains in the JSONL file; use `/tree` to revisit. Customize compaction behavior via [extensions](#extensions). See [docs/compaction.md](docs/compaction.md) for internals.\n\n---\n\n## Settings\n\nUse `/settings` to modify common options, or edit JSON files directly:\n\n| Location | Scope |\n|----------|-------|\n| `~/.pi/agent/settings.json` | Global (all projects) |\n| `.pi/settings.json` | Project (overrides global) |\n\nSee [docs/settings.md](docs/settings.md) for all options.\n\nTo opt out of anonymous install/update telemetry tied to changelog detection, set `enableInstallTelemetry` to `false` in `settings.json`, or set `PI_TELEMETRY=0`.\n\n---\n\n## Context Files\n\nPi loads `AGENTS.md` (or `CLAUDE.md`) at startup from:\n- `~/.pi/agent/AGENTS.md` (global)\n- Parent directories (walking up from cwd)\n- Current directory\n\nUse for project instructions, conventions, common commands. All matching files are concatenated.\n\nDisable context file loading with `--no-context-files` (or `-nc`).\n\n### System Prompt\n\nReplace the default system prompt with `.pi/SYSTEM.md` (project) or `~/.pi/agent/SYSTEM.md` (global). Append without replacing via `APPEND_SYSTEM.md`.\n\n---\n\n## Customization\n\n### Prompt Templates\n\nReusable prompts as Markdown files. Type `/name` to expand.\n\n```markdown\n<!-- ~/.pi/agent/prompts/review.md -->\nReview this code for bugs, security issues, and performance problems.\nFocus on: {{focus}}\n```\n\nPlace in `~/.pi/agent/prompts/`, `.pi/prompts/`, or a [pi package](#pi-packages) to share with others. See [docs/prompt-templates.md](docs/prompt-templates.md).\n\n### Skills\n\nOn-demand capability packages following the [Agent Skills standard](https://agentskills.io). Invoke via `/skill:name` or let the agent load them automatically.\n\n```markdown\n<!-- ~/.pi/agent/skills/my-skill/SKILL.md -->\n# My Skill\nUse this skill when the user asks about X.\n\n## Steps\n1. Do this\n2. Then that\n```\n\nPlace in `~/.pi/agent/skills/`, `~/.agents/skills/`, `.pi/skills/`, or `.agents/skills/` (from `cwd` up through parent directories) or a [pi package](#pi-packages) to share with others. See [docs/skills.md](docs/skills.md).\n\n### Extensions\n\n

\n\nTypeScript modules that extend pi with custom tools, commands, keyboard shortcuts, event handlers, and UI components.\n\n```typescript\nexport default function (pi: ExtensionAPI) {\n  pi.registerTool({ name: \"deploy\", ... });\n  pi.registerCommand(\"stats\", { ... });\n  pi.on(\"tool_call\", async (event, ctx) => { ... });\n}\n```\n\n**What's possible:**\n- Custom tools (or replace built-in tools entirely)\n- Sub-agents and plan mode\n- Custom compaction and summarization\n- Permission gates and path protection\n- Custom editors and UI components\n- Status lines, headers, footers\n- Git checkpointing and auto-commit\n- SSH and sandbox execution\n- MCP server integration\n- Make pi look like Claude Code\n- Games while waiting (yes, Doom runs)\n- ...anything you can dream up\n\nPlace in `~/.pi/agent/extensions/`, `.pi/extensions/`, or a [pi package](#pi-packages) to share with others. See [docs/extensions.md](docs/extensions.md) and [examples/extensions/](examples/extensions/).\n\n### Themes\n\nBuilt-in: `dark`, `light`. Themes hot-reload: modify the active theme file and pi immediately applies changes.\n\nPlace in `~/.pi/agent/themes/`, `.pi/themes/`, or a [pi package](#pi-packages) to share with others. See [docs/themes.md](docs/themes.md).\n\n### Pi Packages\n\nBundle and share extensions, skills, prompts, and themes via npm or git. Find packages on [npmjs.com](https://www.npmjs.com/search?q=keywords%3Api-package) or [Discord](https://discord.com/channels/1456806362351669492/1457744485428629628).\n\n> **Security:** Pi packages run with full system access. Extensions execute arbitrary code, and skills can instruct the model to perform any action including running executables. Review source code before installing third-party packages.\n\n```bash\npi install npm:@foo/pi-tools\npi install npm:@foo/pi-tools@1.2.3      # pinned version\npi install git:github.com/user/repo\npi install git:github.com/user/repo@v1  # tag or commit\npi install git:git@github.com:user/repo\npi install git:git@github.com:user/repo@v1  # tag or commit\npi install https://github.com/user/repo\npi install https://github.com/user/repo@v1      # tag or commit\npi install ssh://git@github.com/user/repo\npi install ssh://git@github.com/user/repo@v1    # tag or commit\npi remove npm:@foo/pi-tools\npi uninstall npm:@foo/pi-tools          # alias for remove\npi list\npi update                               # skips pinned packages\npi config                               # enable/disable extensions, skills, prompts, themes\n```\n\nPackages install to `~/.pi/agent/git/` (git) or global npm. Use `-l` for project-local installs (`.pi/git/`, `.pi/npm/`). If you use a Node version manager and want package installs to reuse a stable npm context, set `npmCommand` in `settings.json`, for example `[\"mise\", \"exec\", \"node@20\", \"--\", \"npm\"]`.\n\nCreate a package by adding a `pi` key to `package.json`:\n\n```json\n{\n  \"name\": \"my-pi-package\",\n  \"keywords\": [\"pi-package\"],\n  \"pi\": {\n    \"extensions\": [\"./extensions\"],\n    \"skills\": [\"./skills\"],\n    \"prompts\": [\"./prompts\"],\n    \"themes\": [\"./themes\"]\n  }\n}\n```\n\nWithout a `pi` manifest, pi auto-discovers from conventional directories (`extensions/`, `skills/`, `prompts/`, `themes/`).\n\nSee [docs/packages.md](docs/packages.md).\n\n---\n\n## Programmatic Usage\n\n### SDK\n\n```typescript\nimport { AuthStorage, createAgentSession, ModelRegistry, SessionManager } from \"@mariozechner/pi-coding-agent\";\n\nconst authStorage = AuthStorage.create();\nconst modelRegistry = ModelRegistry.create(authStorage);\nconst { session } = await createAgentSession({\n  sessionManager: SessionManager.inMemory(),\n  authStorage,\n  modelRegistry,\n});\n\nawait session.prompt(\"What files are in the current directory?\");\n```\n\nFor advanced multi-session runtime replacement, use `createAgentSessionRuntime()` and `AgentSessionRuntime`.\n\nSee [docs/sdk.md](docs/sdk.md) and [examples/sdk/](examples/sdk/).\n\n### RPC Mode\n\nFor non-Node.js integrations, use RPC mode over stdin/stdout:\n\n```bash\npi --mode rpc\n```\n\nRPC mode uses strict LF-delimited JSONL framing. Clients must split records on `\\n` only. Do not use generic line readers like Node `readline`, which also split on Unicode separators inside JSON payloads.\n\nSee [docs/rpc.md](docs/rpc.md) for the protocol.\n\n---\n\n## Philosophy\n\nPi is aggressively extensible so it doesn't have to dictate your workflow. Features that other tools bake in can be built with [extensions](#extensions), [skills](#skills), or installed from third-party [pi packages](#pi-packages). This keeps the core minimal while letting you shape pi to fit how you work.\n\n**No MCP.** Build CLI tools with READMEs (see [Skills](#skills)), or build an extension that adds MCP support. [Why?](https://mariozechner.at/posts/2025-11-02-what-if-you-dont-need-mcp/)\n\n**No sub-agents.** There's many ways to do this. Spawn pi instances via tmux, or build your own with [extensions](#extensions), or install a package that does it your way.\n\n**No permission popups.** Run in a container, or build your own confirmation flow with [extensions](#extensions) inline with your environment and security requirements.\n\n**No plan mode.** Write plans to files, or build it with [extensions](#extensions), or install a package.\n\n**No built-in to-dos.** They confuse models. Use a TODO.md file, or build your own with [extensions](#extensions).\n\n**No background bash.** Use tmux. Full observability, direct interaction.\n\nRead the [blog post](https://mariozechner.at/posts/2025-11-30-pi-coding-agent/) for the full rationale.\n\n---\n\n## CLI Reference\n\n```bash\npi [options] [@files...] [messages...]\n```\n\n### Package Commands\n\n```bash\npi install <source> [-l]     # Install package, -l for project-local\npi remove <source> [-l]      # Remove package\npi uninstall <source> [-l]   # Alias for remove\npi update [source]           # Update packages (skips pinned)\npi list                      # List installed packages\npi config                    # Enable/disable package resources\n```\n\n### Modes\n\n| Flag | Description |\n|------|-------------|\n| (default) | Interactive mode |\n| `-p`, `--print` | Print response and exit |\n| `--mode json` | Output all events as JSON lines (see [docs/json.md](docs/json.md)) |\n| `--mode rpc` | RPC mode for process integration (see [docs/rpc.md](docs/rpc.md)) |\n| `--export <in> [out]` | Export session to HTML |\n\nIn print mode, pi also reads piped stdin and merges it into the initial prompt:\n\n```bash\ncat README.md | pi -p \"Summarize this text\"\n```\n\n### Model Options\n\n| Option | Description |\n|--------|-------------|\n| `--provider <name>` | Provider (anthropic, openai, google, etc.) |\n| `--model <pattern>` | Model pattern or ID (supports `provider/id` and optional `:<thinking>`) |\n| `--api-key <key>` | API key (overrides env vars) |\n| `--thinking <level>` | `off`, `minimal`, `low`, `medium`, `high`, `xhigh` |\n| `--models <patterns>` | Comma-separated patterns for Ctrl+P cycling |\n| `--list-models [search]` | List available models |\n\n### Session Options\n\n| Option | Description |\n|--------|-------------|\n| `-c`, `--continue` | Continue most recent session |\n| `-r`, `--resume` | Browse and select session |\n| `--session <path>` | Use specific session file or partial UUID |\n| `--fork <path>` | Fork specific session file or partial UUID into a new session |\n| `--session-dir <dir>` | Custom session storage directory |\n| `--no-session` | Ephemeral mode (don't save) |\n\n### Tool Options\n\n| Option | Description |\n|--------|-------------|\n| `--tools <list>` | Enable specific built-in tools (default: `read,bash,edit,write`) |\n| `--no-tools` | Disable all built-in tools (extension tools still work) |\n\nAvailable built-in tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`\n\n### Resource Options\n\n| Option | Description |\n|--------|-------------|\n| `-e`, `--extension <source>` | Load extension from path, npm, or git (repeatable) |\n| `--no-extensions` | Disable extension discovery |\n| `--skill <path>` | Load skill (repeatable) |\n| `--no-skills` | Disable skill discovery |\n| `--prompt-template <path>` | Load prompt template (repeatable) |\n| `--no-prompt-templates` | Disable prompt template discovery |\n| `--theme <path>` | Load theme (repeatable) |\n| `--no-themes` | Disable theme discovery |\n| `--no-context-files`, `-nc` | Disable AGENTS.md and CLAUDE.md context file discovery |\n\nCombine `--no-*` with explicit flags to load exactly what you need, ignoring settings.json (e.g., `--no-extensions -e ./my-ext.ts`).\n\n### Other Options\n\n| Option | Description |\n|--------|-------------|\n| `--system-prompt <text>` | Replace default prompt (context files and skills still appended) |\n| `--append-system-prompt <text>` | Append to system prompt |\n| `--verbose` | Force verbose startup |\n| `-h`, `--help` | Show help |\n| `-v`, `--version` | Show version |\n\n### File Arguments\n\nPrefix files with `@` to include in the message:\n\n```bash\npi @prompt.md \"Answer this\"\npi -p @screenshot.png \"What's in this image?\"\npi @code.ts @test.ts \"Review these files\"\n```\n\n### Examples\n\n```bash\n# Interactive with initial prompt\npi \"List all .ts files in src/\"\n\n# Non-interactive\npi -p \"Summarize this codebase\"\n\n# Non-interactive with piped stdin\ncat README.md | pi -p \"Summarize this text\"\n\n# Different model\npi --provider openai --model gpt-4o \"Help me refactor\"\n\n# Model with provider prefix (no --provider needed)\npi --model openai/gpt-4o \"Help me refactor\"\n\n# Model with thinking level shorthand\npi --model sonnet:high \"Solve this complex problem\"\n\n# Limit model cycling\npi --models \"claude-*,gpt-4o\"\n\n# Read-only mode\npi --tools read,grep,find,ls -p \"Review the code\"\n\n# High thinking level\npi --thinking high \"Solve this complex problem\"\n```\n\n### Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `PI_CODING_AGENT_DIR` | Override config directory (default: `~/.pi/agent`) |\n| `PI_PACKAGE_DIR` | Override package directory (useful for Nix/Guix where store paths tokenize poorly) |\n| `PI_SKIP_VERSION_CHECK` | Skip version check at startup |\n| `PI_TELEMETRY` | Override install telemetry. Use `1`/`true`/`yes` to enable or `0`/`false`/`no` to disable |\n| `PI_CACHE_RETENTION` | Set to `long` for extended prompt cache (Anthropic: 1h, OpenAI: 24h) |\n| `VISUAL`, `EDITOR` | External editor for Ctrl+G |\n\n---\n\n## Contributing & Development\n\nSee [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.\n\n---\n\n## License\n\nMIT\n\n## See Also\n\n- [@mariozechner/pi-ai](https://www.npmjs.com/package/@mariozechner/pi-ai): Core LLM toolkit\n- [@mariozechner/pi-agent](https://www.npmjs.com/package/@mariozechner/pi-agent): Agent framework\n- [@mariozechner/pi-tui](https://www.npmjs.com/package/@mariozechner/pi-tui): Terminal UI components\n"}],"isError":false,"timestamp":1776370652121}}
/home/sebas/.codex/sessions/2026/02/16/rollout-2026-02-16T12-36-28-019c6718-8cb9-7fa1-b325-3c251c42b575.jsonl:147:{"timestamp":"2026-02-16T15:40:22.747Z","type":"response_item","payload":{"type":"function_call_output","call_id":"call_mJbZ85thpfYcqeit45wsrRg7","output":"Chunk ID: 1ef1bd\nWall time: 0.0514 seconds\nProcess exited with code 0\nOriginal token count: 13750\nOutput:\nTotal output lines: 968\n\n{\n  \"agent:main:main\": {\n    \"sessionId\": \"62e49961-e775-40e4-b6bf-7004577341e6\",\n    \"updatedAt\": 1771256120697,\n    \"systemSent\": true,\n    \"abortedLastRun\": false,\n    \"chatType\": \"direct\",\n    \"deliveryContext\": {\n      \"channel\": \"webchat\",\n      \"to\": \"telegram:236088727\",\n      \"accountId\": \"default\"\n    },\n    \"lastTo\": \"telegram:236088727\",\n    \"origin\": {\n      \"label\": \"clawdbot-tui\",\n      \"provider\": \"webchat\",\n      \"from\": \"telegram:236088727\",\n      \"to\": \"telegram:236088727\",\n      \"surface\": \"webchat\",\n      \"chatType\": \"direct\",\n      \"accountId\": \"default\"\n    },\n    \"sessionFile\": \"/home/sebas/.clawdbot/agents/main/sessions/62e49961-e775-40e4-b6bf-7004577341e6.jsonl\",\n    \"compactionCount\": 0,\n    \"skillsSnapshot\": {\n      \"prompt\": \"\\n\\nThe following skills provide specialized instructions for specific tasks.\\nUse the read tool to load a skill's file when the task matches its description.\\n\\n<available_skills>\\n  <skill>\\n    <name>bluebubbles</name>\\n    <description>Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>coding-agent</name>\\n    <description>Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>github</name>\\n    <description>Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>gog</name>\\n    <description>Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>notion</name>\\n    <description>Notion API for creating and managing pages, databases, and blocks.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>session-logs</name>\\n    <description>Search and analyze your own session logs (older/parent conversations) using jq.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>skill-creator</name>\\n    <description>Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>slack</name>\\n    <description>Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>tmux</name>\\n    <description>Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/tmux/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>video-frames</name>\\n    <description>Extract frames or short clips from videos using ffmpeg.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>weather</name>\\n    <description>Get current weather and forecasts (no API key required).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md</location>\\n  </skill>\\n</available_skills>\",\n      \"skills\": [\n        {\n          \"name\": \"bluebubbles\"\n        },\n        {\n          \"name\": \"coding-agent\"\n        },\n        {\n          \"name\": \"github\"\n        },\n        {\n          \"name\": \"gog\"\n        },\n        {\n          \"name\": \"notion\"\n        },\n        {\n          \"name\": \"session-logs\"\n        },\n        {\n          \"name\": \"skill-creator\"\n        },\n        {\n          \"name\": \"slack\"\n        },\n        {\n          \"name\": \"tmux\"\n        },\n        {\n          \"name\": \"video-frames\"\n        },\n        {\n          \"name\": \"weather\"\n        }\n      ],\n      \"resolvedSkills\": [\n        {\n          \"name\": \"bluebubbles\",\n          \"description\": \"Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"coding-agent\",\n          \"description\": \"Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"github\",\n          \"description\": \"Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"gog\",\n          \"description\": \"Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"notion\",\n          \"description\": \"Notion API for creating and managing pages, databases, and blocks.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"session-logs\",\n          \"description\": \"Search and analyze your own session logs (older/parent conversations) using jq.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"skill-creator\",\n          \"description\": \"Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"slack\",\n          \"description\": \"Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"tmux\",\n          \"description\": \"Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/tmux/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/tmux\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"video-frames\",\n          \"description\": \"Extract frames or short clips from videos using ffmpeg.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"weather\",\n          \"description\": \"Get current weather and forecasts (no API key required).\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather\",\n          \"source\": \"clawdbot-bundled\"\n        }\n      ],\n      \"version\": 0\n    },\n    \"inputTokens\": 12,\n    \"outputTokens\": 106,\n    \"totalTokens\": 15779,\n    \"modelProvider\": \"anthropic\",\n    \"model\": \"claude-sonnet-4-20250514\",\n    \"contextTokens\": 200000,\n    \"systemPromptReport\": {\n      \"source\": \"run\",\n      \"generatedAt\": 1771250445809,\n      \"sessionId\": \"62e49961-e775-40e4-b6bf-7004577341e6\",\n      \"sessionKey\": \"agent:main:main\",\n      \"provider\": \"anthropic\",\n      \"model\": \"claude-sonnet-4-20250514\",\n      \"workspaceDir\": \"/home/sebas/clawd\",\n      \"bootstrapMaxChars\": 20000,\n      \"sandbox\": {\n        \"mode\": \"off\",\n        \"sandboxed\": false\n      },\n      \"systemPrompt\": {\n        \"chars\": 23542,\n        \"projectContextChars\": 12639,\n        \"nonProjectContextChars\": 10903\n      },\n      \"injectedWorkspaceFiles\": [\n        {\n          \"name\": \"AGENTS.md\",\n          \"path\": \"/home/sebas/clawd/AGENTS.md\",\n          \"missing\": false,\n          \"rawChars\": 7783,\n          \"injectedChars\": 7783,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"SOUL.md\",\n          \"path\": \"/home/sebas/clawd/SOUL.md\",\n          \"missing\": false,\n          \"rawChars\": 1664,\n          \"injectedChars\": 1664,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"TOOLS.md\",\n          \"path\": \"/home/sebas/clawd/TOOLS.md\",\n          \"missing\": false,\n          \"rawChars\": 848,\n          \"injectedChars\": 848,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"IDENTITY.md\",\n          \"path\": \"/home/sebas/clawd/IDENTITY.md\",\n          \"missing\": false,\n          \"rawChars\": 629,\n          \"injectedChars\": 629,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"USER.md\",\n          \"path\": \"/home/sebas/clawd/USER.md\",\n          \"missing\": false,\n          \"rawChars\": 478,\n          \"injectedChars\": 478,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"HEARTBEAT.md\",\n          \"path\": \"/home/sebas/clawd/HEARTBEAT.md\",\n          \"missing\": false,\n          \"rawChars\": 860,\n          \"injectedChars\": 860,\n          \"truncated\": false\n        },\n        {\n          \"name\": \"BOOTSTRAP.md\",\n          \"path\": \"/home/sebas/clawd/BOOTSTRAP.md\",\n          \"missing\": true,\n          \"rawChars\": 0,\n          \"injectedChars\": 53,\n          \"truncated\": false\n        }\n      ],\n      \"skills\": {\n        \"promptChars\": 3233,\n        \"entries\": [\n          {\n            \"name\": \"bluebubbles\",\n            \"blockChars\": 305\n          },\n          {\n            \"name\": \"coding-agent\",\n            \"blockChars\": 289\n          },\n          {\n            \"name\": \"github\",\n            \"blockChars\": 308\n          },\n          {\n            \"name\": \"gog\",\n            \"blockChars\": 242\n          },\n          {\n            \"name\": \"notion\",\n            \"blockChars\": 238\n          },\n          {\n            \"name\": \"session-logs\",\n            \"blockChars\": 263\n          },\n          {\n            \"name\": \"skill-creator\",\n            \"blockChars\": 306\n          },\n          {\n            \"name\": \"slack\",\n            \"blockChars\": 322\n          },\n          {\n            \"name\": \"tmux\",\n            \"blockChars\": 265\n          },\n          {\n            \"name\": \"video-frames\",\n            \"blockChars\": 239\n          },\n          {\n            \"name\": \"weather\",\n            \"blockChars\": 230\n          }\n        ]\n      },\n      \"tools\": {\n        \"listChars\": 1984,\n        \"schemaChars\": 13981,\n        \"entries\": [\n          {\n            \"name\": \"read\",\n            \"summaryChars\": 232,\n            \"schemaChars\": 398,\n            \"propertiesCount\": 4\n          },\n          {\n            \"name\": \"edit\",\n            \"summaryChars\": 129,\n            \"schemaChars\": 617,\n            \"propertiesCount\": 6\n          },\n          {\n            \"name\": \"write\",\n            \"summaryChars\": 127,\n            \"schemaChars\": 313,\n            \"propertiesCount\": 3\n          },\n          {\n            \"name\": \"exec\",\n            \"summaryChars\": 181,\n            \"schemaChars\": 1037,\n            \"propertiesCount\": 12\n          },\n          {\n            \"name\": \"process\",\n            \"summaryChars\": 85,\n            \"schemaChars\": 844,\n            \"propertiesCount\": 11\n          },\n          {\n            \"name\": \"browser\",\n            \"summaryChars\": 1343,\n            \"schemaChars\": 1909,\n            \"propertiesCount\": 29\n          },\n          {\n            \"name\": \"canvas\",\n            \"summaryChars\": 106,\n            \"schemaChars\": 661,\n            \"propertiesCount\": 18\n          },\n          {\n            \"name\": \"nodes\",\n            \"summaryChars\": 94,\n            \"schemaChars\": 1399,\n            \"propertiesCount\": 31\n          },\n          {\n            \"name\": \"cron\",\n            \"summaryChars\": 246,\n            \"schemaChars\": 530,\n            \"propertiesCount\": 12\n          },\n          {\n            \"name\": \"message\",\n            \"summaryChars\": 104,\n            \"schemaChars\": 3100,\n            \"propertiesCount\": 77\n          },\n          {\n            \"name\": \"tts\",\n            \"summaryChars\": 129,\n            \"schemaChars\": 223,\n            \"propertiesCount\": 2\n          },\n          {\n            \"name\": \"gateway\",\n            \"summaryChars\": 225,\n            \"schemaChars\": 465,\n            \"propertiesCount\": 11\n          },\n          {\n            \"name\": \"agents_list\",\n            \"summaryChars\": 72,\n            \"schemaChars\": 33,\n            \"propertiesCount\": 0\n          },\n          {\n            \"name\": \"sessions_list\",\n            \"summaryChars\": 54,\n            \"schemaChars\": 176,\n            \"propertiesCount\": 4\n          },\n          {\n            \"name\": \"sessions_history\",\n            \"summaryChars\": 36,\n            \"schemaChars\": 149,\n            \"propertiesCount\": 3\n          },\n          {\n            \"name\": \"sessions_send\",\n            \"summaryChars\": 84,\n            \"schemaChars\": 203,\n            \"propertiesCount\": 5\n          },\n          {\n            \"name\": \"sessions_spawn\",\n            \"summaryChars\": 107,\n            \"schemaChars\": 312,\n            \"propertiesCount\": 8\n          },\n          {\n            \"name\": \"session_status\",\n            \"summaryChars\": 207,\n            \"schemaChars\": 89,\n            \"propertiesCount\": 2\n          },\n          {\n            \"name\": \"web_search\",\n            \"summaryChars\": 175,\n            \"schemaChars\": 733,\n            \"propertiesCount\": 6\n          },\n          {\n            \"name\": \"web_fetch\",\n            \"summaryChars\": 129,\n            \"schemaChars\": 360,\n            \"propertiesCount\": 3\n          },\n          {\n            \"name\": \"image\",\n            \"summaryChars\": 184,\n            \"schemaChars\": 163,\n            \"propertiesCount\": 4\n          },\n          {\n            \"name\": \"memory_search\",\n            \"summaryChars\": 235,\n            \"schemaChars\": 139,\n            \"propertiesCount\": 3\n          },\n          {\n            \"name\": \"memory_get\",\n            \"summaryChars\": 151,\n            \"schemaChars\": 128,\n            \"propertiesCount\": 3\n          }\n        ]\n      }\n    },\n    \"lastChannel\": \"webchat\",\n    \"lastAccountId\": \"default\"\n  },\n  \"agent:main:cron:1717dd12-c05a-4733-9631-cdc0e38c7a19\": {\n    \"sessionId\": \"8e60b911-1cc6-4f45-83d7-e5cbd01ca091\",\n    \"updatedAt\": 1769616746805,\n    \"systemSent\": true,\n    \"model\": \"gpt-5.2-codex\",\n    \"contextTokens\": 400000,\n    \"skillsSnapshot\": {\n      \"prompt\": \"\\n\\nThe following skills provide specialized instructions for specific tasks.\\nUse the read tool to load a skill's file when the task matches its description.\\n\\n<available_skills>\\n  <skill>\\n    <name>bird</name>\\n    <description>X/Twitter CLI for reading, searching, posting, and engagement via cookies.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>bluebubbles</name>\\n    <description>Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>clawdhub</name>\\n    <description>Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>coding-agent</name>\\n    <description>Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>github</name>\\n    <description>Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>notion</name>\\n    <description>Notion API for creating and managing pages, databases, and blocks.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>session-logs</name>\\n    <description>Search and analyze your own session logs (older/parent conversations) using jq.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>skill-creator</name>\\n    <description>Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>slack</name>\\n    <description>Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>video-frames</name>\\n    <description>Extract frames or short clips from videos using ffmpeg.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>weather</name>\\n    <description>Get current weather and forecasts (no API key required).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md</location>\\n  …3750 tokens truncated…SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather\",\n          \"source\": \"clawdbot-bundled\"\n        }\n      ],\n      \"version\": 1769630627191\n    },\n    \"modelProvider\": \"anthropic\",\n    \"inputTokens\": 11,\n    \"outputTokens\": 351,\n    \"totalTokens\": 16926\n  },\n  \"agent:main:cron:c8d81767-9d7b-4f7f-81b2-475f0296f580\": {\n    \"sessionId\": \"be586d54-d58a-4fdf-8de2-af72d5f7f9cf\",\n    \"updatedAt\": 1769792778034,\n    \"systemSent\": true,\n    \"model\": \"claude-sonnet-4-20250514\",\n    \"contextTokens\": 200000,\n    \"skillsSnapshot\": {\n      \"prompt\": \"\\n\\nThe following skills provide specialized instructions for specific tasks.\\nUse the read tool to load a skill's file when the task matches its description.\\n\\n<available_skills>\\n  <skill>\\n    <name>bird</name>\\n    <description>X/Twitter CLI for reading, searching, posting, and engagement via cookies.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>bluebubbles</name>\\n    <description>Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>clawdhub</name>\\n    <description>Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>coding-agent</name>\\n    <description>Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>github</name>\\n    <description>Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>gog</name>\\n    <description>Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>notion</name>\\n    <description>Notion API for creating and managing pages, databases, and blocks.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>session-logs</name>\\n    <description>Search and analyze your own session logs (older/parent conversations) using jq.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>skill-creator</name>\\n    <description>Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>slack</name>\\n    <description>Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>video-frames</name>\\n    <description>Extract frames or short clips from videos using ffmpeg.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>weather</name>\\n    <description>Get current weather and forecasts (no API key required).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md</location>\\n  </skill>\\n</available_skills>\",\n      \"skills\": [\n        {\n          \"name\": \"bird\"\n        },\n        {\n          \"name\": \"bluebubbles\"\n        },\n        {\n          \"name\": \"clawdhub\"\n        },\n        {\n          \"name\": \"coding-agent\"\n        },\n        {\n          \"name\": \"github\"\n        },\n        {\n          \"name\": \"gog\"\n        },\n        {\n          \"name\": \"notion\"\n        },\n        {\n          \"name\": \"session-logs\"\n        },\n        {\n          \"name\": \"skill-creator\"\n        },\n        {\n          \"name\": \"slack\"\n        },\n        {\n          \"name\": \"video-frames\"\n        },\n        {\n          \"name\": \"weather\"\n        }\n      ],\n      \"resolvedSkills\": [\n        {\n          \"name\": \"bird\",\n          \"description\": \"X/Twitter CLI for reading, searching, posting, and engagement via cookies.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"bluebubbles\",\n          \"description\": \"Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"clawdhub\",\n          \"description\": \"Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"coding-agent\",\n          \"description\": \"Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"github\",\n          \"description\": \"Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"gog\",\n          \"description\": \"Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"notion\",\n          \"description\": \"Notion API for creating and managing pages, databases, and blocks.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"session-logs\",\n          \"description\": \"Search and analyze your own session logs (older/parent conversations) using jq.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"skill-creator\",\n          \"description\": \"Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"slack\",\n          \"description\": \"Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"video-frames\",\n          \"description\": \"Extract frames or short clips from videos using ffmpeg.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"weather\",\n          \"description\": \"Get current weather and forecasts (no API key required).\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather\",\n          \"source\": \"clawdbot-bundled\"\n        }\n      ],\n      \"version\": 0\n    },\n    \"modelProvider\": \"anthropic\",\n    \"inputTokens\": 12,\n    \"outputTokens\": 150,\n    \"totalTokens\": 13800\n  },\n  \"agent:main:cron:245ff967-f2a3-4f0a-baba-8dc86397243c\": {\n    \"sessionId\": \"6a9c9cce-6c11-4062-b814-b53a37cde120\",\n    \"updatedAt\": 1769774400003,\n    \"systemSent\": true,\n    \"model\": \"claude-sonnet-4-20250514\",\n    \"contextTokens\": 200000,\n    \"skillsSnapshot\": {\n      \"prompt\": \"\\n\\nThe following skills provide specialized instructions for specific tasks.\\nUse the read tool to load a skill's file when the task matches its description.\\n\\n<available_skills>\\n  <skill>\\n    <name>bird</name>\\n    <description>X/Twitter CLI for reading, searching, posting, and engagement via cookies.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>bluebubbles</name>\\n    <description>Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>clawdhub</name>\\n    <description>Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>coding-agent</name>\\n    <description>Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>github</name>\\n    <description>Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>gog</name>\\n    <description>Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/gog/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>notion</name>\\n    <description>Notion API for creating and managing pages, databases, and blocks.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/notion/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>session-logs</name>\\n    <description>Search and analyze your own session logs (older/parent conversations) using jq.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/session-logs/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>skill-creator</name>\\n    <description>Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/skill-creator/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>slack</name>\\n    <description>Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/slack/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>video-frames</name>\\n    <description>Extract frames or short clips from videos using ffmpeg.</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/video-frames/SKILL.md</location>\\n  </skill>\\n  <skill>\\n    <name>weather</name>\\n    <description>Get current weather and forecasts (no API key required).</description>\\n    <location>/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/weather/SKILL.md</location>\\n  </skill>\\n</available_skills>\",\n      \"skills\": [\n        {\n          \"name\": \"bird\"\n        },\n        {\n          \"name\": \"bluebubbles\"\n        },\n        {\n          \"name\": \"clawdhub\"\n        },\n        {\n          \"name\": \"coding-agent\"\n        },\n        {\n          \"name\": \"github\"\n        },\n        {\n          \"name\": \"gog\"\n        },\n        {\n          \"name\": \"notion\"\n        },\n        {\n          \"name\": \"session-logs\"\n        },\n        {\n          \"name\": \"skill-creator\"\n        },\n        {\n          \"name\": \"slack\"\n        },\n        {\n          \"name\": \"video-frames\"\n        },\n        {\n          \"name\": \"weather\"\n        }\n      ],\n      \"resolvedSkills\": [\n        {\n          \"name\": \"bird\",\n          \"description\": \"X/Twitter CLI for reading, searching, posting, and engagement via cookies.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bird\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"bluebubbles\",\n          \"description\": \"Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/bluebubbles\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"clawdhub\",\n          \"description\": \"Use the ClawdHub CLI to search, install, update, and publish agent skills from clawdhub.com. Use when you need to fetch new skills on the fly, sync installed skills to latest or a specific version, or publish new/updated skill folders with the npm-installed clawdhub CLI.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/clawdhub\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"coding-agent\",\n          \"description\": \"Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/coding-agent\",\n          \"source\": \"clawdbot-bundled\"\n        },\n        {\n          \"name\": \"github\",\n          \"description\": \"Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.\",\n          \"filePath\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot/skills/github/SKILL.md\",\n          \"baseDir\": \"/home/sebas/.npm-global/lib/node_modules/clawdbot

Command timed out after 30 seconds


**Evaluating nginx configuration**

I realize the search seems too broad; I already have enough information. I need to edit the configuration file and possibly reload nginx. Since the directory is owned by the user, I should be able to edit it without using sudo, possibly through exact replacements. The user mentioned that "/shell should be removed," which implies that /tmux should redirect somewhere else, like 404 or /portal. I think I’d better eliminate the shell and tmux blocks entirely for clarity.

**Editing nginx configuration**

I need to edit both configuration files now. After that, I'll validate the nginx configuration and might need to reload it, possibly using sudo since the config file is owned by root. However, it seems the current user could probably edit it due to ACL permissions. I’ll double-check the access rights here. The editing tool might modify the file if I can access it, so I should proceed with making those edits.

edit

    location = /shell {
        return 302 /shell/;
    }

    location = /shell/ {
        proxy_pass http://127.0.0.1:7681/;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location = /shell/ws {
        proxy_pass http://127.0.0.1:7681/ws;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location = /tmux {
        return 301 /shell/;
    }

    location ^~ /tmux/ {
        return 301 /shell/;
    }

    location = /tmux {
        return 404;
    }

    location ^~ /tmux/ {
        return 404;
    }