
howznguyen/pi-delegate-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Pi のコーディングエージェントをステラブルなバックグラウンドワーカーに変える MCP サーバー: タスクを委任し、それをミッドランにリダイレクトし、独自のコンテキストを保ちます.
概要
Pi コーディングエージェントをワーカーとして公開する MCP サーバー。 ポイント クロード コード (または任意の MCP ホスト) で pi's ~38 プロバイダー (DeepSeek, Grok, GLM, Kimi, Qwen, コーデックス, OpenRouter, ローカル llama.cpp) のサブエージェントのコンテキストをメインの会話から残します。 メインハーネスは高価なモデルで実行します。 そのモデルを必要としないものがたくさんあり、積極的にそのコンテキストを傷つける:すべてのコールサイトのリポジトリをリッピングし、2000ラインファイルを1つの質問に答え、再ファクタが残したものを監査する。 - DeepSeek、GLM、Kimi、Qwen、またはローカルllama.cpp上で実行する落書き作業。 実際にそれらを必要とする理由だけのためにフロンティアの価格を支払う。 ・ delegate は、ファイルを独自の予算で読み込み、結果を返します。 200 KB では、会話を決して入力しません。 - 委任者は、セッション構造で強制されるデフォルト(read, grep,find, ls)で読み取り専用です.
概要(AI 翻訳)
Pi コーディングエージェントを delegable, steerable ワーカーとして公開する MCP サーバー。
ポイント クロード コード (または任意の MCP ホスト) で pi’s ~38 プロバイダーのいずれかに作業を委任 (DeepSeek, Grok, GLM, Kimi, Qwen, Codex, OpenRouter, local llama.cpp) サブエージェントの メインの会話から離れるコンテキスト。
それは何を
メインハーネスは高価なモデルで実行します。 たくさんのこと そのモデルを必要としないし、その文脈を積極的に損傷する:すべてのためにリポジトリをgrepping コールサイト、2000行のファイルを読み込み、1つの質問に答え、リファクタが残っていることを監査します。
代わりに委任する手:
- **コスト DeepSeek、GLM、Kimi、Qwen、またはローカルllama.cppで実行されている落書き作品。 お支払い 実際にそれらを必要とする推論のためのフロンティア価格だけ。
- コンテキスト。 delegate は、ファイルを独自の予算で読み込み、結果を返します。 200 KB それ 決してあなたの会話に入りません。
- ブラスト半径。 Delegates はデフォルト ([
read, grep, find, ls]) で読み込み専用です。 セッション構成。 探査作業を行う安いモデルは、あなたがなければ、あなたのツリーに触れることができません お問い合わせ
delegate は、常に pi エージェントです.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
██████╗ ██╗ ██████╗ ███████╗██╗ ███████╗ ██████╗ █████╗ ████████╗███████╗
██╔══██╗██║ ██╔══██╗██╔════╝██║ ██╔════╝██╔════╝ ██╔══██╗╚══██╔══╝██╔════╝
██████╔╝██║ ██║ ██║█████╗ ██║ █████╗ ██║ ███╗███████║ ██║ █████╗
██╔═══╝ ██║ ██║ ██║██╔══╝ ██║ ██╔══╝ ██║ ██║██╔══██║ ██║ ██╔══╝
██║ ██║ ██████╔╝███████╗███████╗███████╗╚██████╔╝██║ ██║ ██║ ███████╗
╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝
███╗ ███╗ ██████╗██████╗
████╗ ████║██╔════╝██╔══██╗
██╔████╔██║██║ ██████╔╝
██║╚██╔╝██║██║ ██╔═══╝
██║ ╚═╝ ██║╚██████╗██║
╚═╝ ╚═╝ ╚═════╝╚═╝
MCP server that exposes the pi coding agent as a delegable, steerable worker.
Point Claude Code (or any MCP host) at it and delegate work to any of pi’s ~38 providers (DeepSeek, Grok, GLM, Kimi, Qwen, Codex, OpenRouter, local llama.cpp) with the sub-agent’s context staying out of your main conversation.
What it’s for
Your main harness runs on an expensive model, with a context window you care about. A lot of what it does doesn’t need that model, and actively damages that context: grepping a repo for every call site, reading a 2000-line file to answer one question, auditing what a refactor left behind.
Hand that work to a delegate instead:
- Cost. The grunt work runs on DeepSeek, GLM, Kimi, Qwen, or a local llama.cpp. You pay frontier prices only for the reasoning that actually needs them.
- Context. The delegate reads the files on its own budget and returns a result. The 200 KB it read never enters your conversation.
- Blast radius. Delegates are read-only by default (
read, grep, find, ls), enforced at session construction. A cheap model doing exploratory work cannot touch your tree unless you opt it in.
The delegate is always the pi agent. Codex, Grok, DeepSeek and the rest supply the model behind it; this is not a wrapper around their CLIs.
Why pi, and not opencode or a CLI wrapper?
A delegate is only steerable if two channels stay open: you must be able to redirect it mid-task, and it must be able to ask you something and block until you answer. Most ways of driving a coding agent from another program close both.
pi -p / CLI wrappers |
opencode SDK | this server |
|---|
インストール
npx -y pi-delegate-mcp設定
{
"mcpServers": {
"pi": {
"command": "npx",
"args": ["-y", "pi-delegate-mcp"],
"env": { "PI_DELEGATE_MODEL": "openrouter/stealth/ox-alpha" },
"timeout": 1800000
}
}
}