Files
scientific-agent-skills/skills/pi-agent/references/overview.md
T
Timothy Kassis ef1b2d8026 Update pi-agent skill to latest Pi docs
Refresh every reference against https://pi.dev/docs/latest and the four
ecosystem package pages, cross-checked with the published npm READMEs.

New reference pages (docs added them; the site nav does not surface them):
- environment-variables.md: PI_* process config, the PI_CODING_AGENT child
  marker, and the session variables injected into the bash tool. The old
  env-var list lived in usage.md, which no longer has that section.
- llama-cpp.md: llama.cpp router setup, /login llama.cpp, /llama.

Notable upstream drift now reflected:
- SDK: ModelRuntime.create() replaces AuthStorage + ModelRegistry;
  createAgentSessionServices/FromServices runtime factory; resolveCliModel
  and resolveModelScopeWithDiagnostics.
- Providers: full 30+ API-key table with env vars and auth.json keys;
  xAI/OpenRouter/Radius subscription logins; provider-scoped env blocks in
  credentials; models-store.json; Bedrock proxy variables.
- New thinking level "max" across settings, CLI, RPC, thinkingLevelMap, and
  the themes' thinkingMax token.
- New commands: /trust, /import, /llama; pi update --all/--models/--self;
  pi config; .pi/SYSTEM.md and APPEND_SYSTEM.md; trust.json.
- RPC: get_entries (with since cursor), get_tree,
  get_available_thinking_levels, agent_settled, bash_execution_update,
  summarization_retry_*, and the extension UI sub-protocol.
- Extensions: expanded from a summary to the real API surface, including
  session-replacement semantics and footguns, withFileMutationQueue,
  terminate, prepareArguments, and dynamic tool loading.
- Session format: retainedTail checkpoints and buildContextEntries().
- Packages: pi-web-access gained source_check and nine search providers and
  dropped code_search, which the old reference still documented;
  pi-mcp-adapter gained six config locations, lazy-keep-alive, the output
  guard, and MCP_STATUS_EVENT; pi-subagents gained the watchdog, profiles,
  modelScope, per-agent memory, the fleet inspector, and RPC v1.

Also fixes escape sequences that had been corrupted in earlier versions:
the Git Bash path in windows.md, the shellCommandPrefix JSON in
shell-aliases.md, and the CSI-u sequences in tmux.md and terminal-setup.md.

Bumps metadata.version to 1.2.
2026-07-26 15:50:24 -07:00

1.7 KiB

Pi Documentation Overview

Source: https://pi.dev/docs/latest

Pi is a minimal terminal coding harness. The core stays small and most workflow-specific behavior lives in TypeScript extensions, skills, prompt templates, themes, and Pi packages. Positioning on https://pi.dev/: "There are many agent harnesses but this one is yours" — four run modes (interactive, print/JSON, RPC, SDK), 15+ providers with mid-session model switching, tree-structured shareable sessions, steering and follow-up during a run, and extensible primitives instead of baked-in features.

Top-Level Areas

  • Start here: quickstart, usage, providers, llama.cpp, security, containerization, settings, keybindings, sessions, compaction.
  • Customization: extensions, skills, prompt templates, themes, Pi packages, custom models, custom providers.
  • Programmatic usage: SDK, RPC mode, JSON event stream mode, TUI components.
  • Reference: environment variables, session file format and SessionManager API.
  • Platform setup: Windows, Termux, tmux, terminal setup, shell aliases.
  • Development: local source setup, rebranding, debug logs, tests, package structure.

Quick Install

npm install -g --ignore-scripts @earendil-works/pi-coding-agent
pi

On Linux/macOS the installer is also available:

curl -fsSL https://pi.dev/install.sh | sh

pnpm and bun global installs work too (pnpm add -g --ignore-scripts ..., bun add -g --ignore-scripts ...).

Authenticate with /login for subscription providers or set API keys such as ANTHROPIC_API_KEY before startup.

Ecosystem

Package gallery at https://pi.dev/packages lists community extensions tagged pi-package. Source: https://github.com/earendil-works/pi-mono (docs live under packages/coding-agent/docs/).