pi coding agentに、チェックポイント、メモリ、ウェブ検索、サブエージェント、ルール読み込みなどのClaude Codeの機能を追加します。
別名 ilovepixelart/pi-code
- スター
- 36
- ツール
- —
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2026年11月15日
- ライセンス
- MIT
pi-code MCPとは
pi-codeはMCPサーバーです。 pi coding agentに、チェックポイント、メモリ、ウェブ検索、サブエージェント、ルール読み込みなどのClaude Codeの機能を追加します。.
プロジェクトのREADMEから生成された概要
pi-code MCP server について
pi-codeは、Claude Codeの機能をpi coding agentにもたらします。これにより、すでに.claudeディレクトリを含むプロジェクトを使用している開発者が、既存のルール、コマンド、SKILL.md、MCP serverを自動的に読み込むことが可能になります。このサーバーはnpmまたはローカルのgitリポジトリ経由でインストールされ、Node version 22.19以上およびpi version 0.80.5以降が必要です。
この拡張機能は、永続メモリ、ウェブ検索、サブエージェント、チェックポイントなどの高度な機能をpi agentに追加します。また、複雑なコーディングタスクを管理するために、/goal、/rewind、/todosといった新しいスラッシュコマンドを導入します。他の環境とは異なり、このセットアップでは厳格なセキュリティモデルを実装しており、フックやエージェントなどのプロジェクト固有のリソースは、ユーザーによる明示的な承認後にのみ読み込まれます。ヘッドレス実行では、自動化された環境での不正な実行を防ぐため、システムは信頼できないリソースの読み込みを拒否します。
できること
- 1複雑なコーディング目標の管理AIクライアントはgoalコマンドを使用して、特定の条件が満たされるまでタスクの継続的な作業を行うことができます。
- 2コーディングエラーからの復旧開発者はチェックポイントを使用して、変更に問題が発生した場合にプロジェクトの状態を元に戻すことができます。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
pi-code MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude Codeにpi-code MCPをインストール
$ claude mcp add pi-code -- npx -y pi-codeCursorにpi-code MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"pi-code": {
"command": "npx",
"args": [
"-y",
"pi-code"
]
}
}
}VS Codeにpi-code MCPをインストール
.vscode/mcp.json
{
"servers": {
"pi-code": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pi-code"
]
}
}
}VS Code CLIにpi-code MCPをインストール
$ code --add-mcp '{"name":"pi-code","type":"stdio","command":"npx","args":["-y","pi-code"]}'Claude Desktopにpi-code MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"pi-code": {
"command": "npx",
"args": [
"-y",
"pi-code"
]
}
}
}Codexにpi-code MCPをインストール
$ codex mcp add pi-code -- npx -y pi-codeCodex config.tomlにpi-code MCPをインストール
~/.codex/config.toml
[mcp_servers.pi-code] command = "npx" args = ["-y", "pi-code"]
Gemini CLIにpi-code MCPをインストール
$ gemini mcp add -s user pi-code npx -- -y pi-codeGemini settings.jsonにpi-code MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"pi-code": {
"command": "npx",
"args": [
"-y",
"pi-code"
]
}
}
}自動チェック
実行日 2026年11月13日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能ilovepixelart/pi-code is public and reachablegithub.com/ilovepixelart/pi-code ↗合格
- パッケージがこのリポジトリをソースとして指定pi-code names ilovepixelart/pi-code as sourcenpmjs.com/package/pi-code ↗合格
- ビルドの来歴 (Sigstore 証明)Sigstore attestation for pi-codenpmjs.com/package/pi-code/v/1.7.0#provenance ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-09github.com/ilovepixelart/pi-code ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from pi-code合格
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るpi-code
Claude Code experience for the pi coding agent, in one package. Point pi at a project that already has a .claude/ directory and it reads your existing config: rules, commands, skills, hooks, output styles, MCP servers, and agents. It also adds the Claude Code features pi lacks: a todo overlay, checkpoints, memory, web search, subagents, and goals.
What a repository ships is treated as untrusted until you approve it: project MCP servers, hooks, agents, rules, output styles, commands and skills load only once you say yes. A headless run (pi -p) cannot ask, so an undecided project loads none of them there, which is stricter than Claude, where a headless run uses them without showing the dialog.
![]()
Requirements
pi >=0.80.5 (0.99.x recommended) and Node >=22.19 for current pi. On an older pi, pi-code warns once at session start.
Install
pi install npm:pi-code # from npm
pi install -l npm:pi-code # project-local instead, writes .pi/settings.json
Other sources:
pi install git:github.com/ilovepixelart/pi-code
pi install ./pi-code # local checkout, then /reload after edits
One pi install and everything below loads on the next start. pi list shows what is installed, pi config toggles individual resources, and pi update pi-code upgrades it. Each feature is an extension under extensions/.
What it does
Each topic links to its own doc with the full contract and any divergences from Claude Code.
- Hooks — your
.claude/settings.jsonhooks on every lifecycle event, with Claude's tool vocabulary, decision fields, and background hooks. - MCP servers — every Claude config scope, all four transports, OAuth, managed policy, timeouts, prompts, and resources. On pi 0.99 and later the servers are handed to pi's own MCP support.
- Custom slash commands —
.claude/commandswith arguments, bash spans,@fileinlining, frontmatter, and model invocation. - Skills —
.claude/skillsdiscovery plus the same dynamic content commands get. - Subagents — built-in and custom agents, background runs, per-agent memory, worktree isolation.
- CLAUDE.md, @imports, and rules — the context files and path-scoped rules pi does not load natively.
- Settings
envand flags — env blocks from every settings scope, exported with Claude's precedence, plus Claude's--settingsand--setting-sourcesflags. - Output styles — replace semantics, bundled built-ins,
/output-style. - Persistent memory — a per-repository store with a session-injected index.
- Statusline — your Claude
statusLinecommand with the documented stdin JSON. - WebSearch / WebFetch — key-free search and SSRF-guarded fetch.
- Claude plugins — installed marketplace plugins: commands, agents, hooks, MCP servers, styles, skills.
- Goal:
/goal <condition>keeps the session working until a separate model check confirms the condition holds, with status, clear, block cap, background-work deferral, and resume. - Session extras — project trust, plan mode, todos, checkpoints/rewind, AskUserQuestion, notifications, think keywords, session titles,
/context,/init.
Slash commands: /init, /context, /goal, /memory, /todos, /rewind, /tasks, /agents, /plan, /plan-todos, /mcp, /hooks, and /output-style, alongside your own /dir:name commands, /skill:name skills, /plugin:name plugin commands, and each connected server's /mcp__server__prompt prompts. Where a name matches a Claude command, these differ: /init creates AGENTS.md where Claude creates CLAUDE.md; /memory edit opens a memory file in your editor (pi's externalEditor setting, VISUAL or EDITOR); /tasks lists background subagent runs only, not background shells. /todos and /plan-todos have no Claude counterpart.
pi has no general permission system, so most of what Claude routes through a permission prompt maps to hard behavior here: allowed-tools restricts the turn's tool set instead of pre-approving calls, and a hook that times out on PreToolUse or UserPromptSubmit fails closed. A hook's permissionDecision: "ask" is the exception: it shows a confirm dialog and lets the call through when you approve (a headless run has no dialog, so it blocks). An argument-scoped grant in an agent's tools: gives the agent the whole tool, as in Claude, where the scope does not limit the agent either. Claude still runs each call through its permission flow; pi has no such flow, so the call runs.
Trust is the other place pi-code is deliberately stricter. Claude states that "a claude -p run never shows the trust dialog" and loads the project's hooks, MCP servers, agents, commands, skills and rules anyway. pi-code refuses instead: with no stored decision and no UI to ask, a headless run in a project you have not already trusted loads none of them. A repository would otherwise get to run its own hooks and MCP servers in any CI job that checks it out, with nobody present to decline.
CLAUDE.md itself needs no extension: pi loads CLAUDE.md / AGENTS.md context files natively (global + walking cwd to root). context-imports.ts adds what pi's loader lacks, the @import resolution and Claude's other memory locations, without re-injecting the base (see docs/claude-md.md). Setting CLAUDE_CONFIG_DIR relocates the entire home config scope (settings, commands, agents, skills, plugins, output styles, memory, and the user CLAUDE.md); a project's own .claude/ is a separate scope and is unaffected.
extensions/internal/ holds the shared modules pi's loader must not treat as extensions (each file's header says what it owns); only internal/ keeps them out of pi's extension scan.
Vendored bases (question, notify, status-line) come from pi's MIT example extensions (see LICENSE).
Development
npm install
npm run check # biome + strict tsc + knip + vitest with coverage floors, the whole gate
scripts/e2e-smoke.sh # headless deterministic smoke: wire payload against a dead-port model, no real model (also runs in CI)
scripts/e2e.sh # quick smoke of the real pi TUI via tmux (needs a working model)
scripts/e2e-full.sh # every README feature end to end, model turns included (5-15 min)
scripts/record-demos.sh # re-records demos/*.tape with vhs at low thinking
Extensions live in extensions/, tests in tests/. Install a local checkout with pi install ./pi-code, then /reload after edits. Development needs Node >=22.19.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md for setup, the test and review conventions, and the release process, and the Code of Conduct for community expectations. Report security issues privately as described in SECURITY.md. Release notes are on the Releases page.
License
MIT.
pi-code MCPのよくある質問
pi-code MCPをClaude Codeに追加するには
ターミナルでclaude mcp add pi-code -- npx -y pi-codeを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
pi-code MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
pi-codeはpi agentにどのような機能を追加しますか?
pi coding agentに、todoオーバーレイ、チェックポイント、メモリ、ウェブ検索、サブエージェント、およびゴール機能を追加します。
pi-codeはセキュリティや信頼できないリポジトリをどのように扱いますか?
MCP serverやフックなどのプロジェクトリソースは信頼できないものとして扱われ、ユーザーの承認後にのみ読み込まれます。ヘッドレス実行では、判断が保留されているプロジェクトは何も読み込みません。
既存のClaudeの設定をpi-codeで使用できますか?
はい、pi-codeはルール、コマンド、SKILL.md、フック、出力スタイル、MCP server、エージェントを含む既存の.claude設定を読み込みます。