作って使うAIエージェント —— Pi Coding Agentで足りない機能を自作しよう

00:03:23 ・ source: https://blog.lai.so/pi-coding-agent/

Transcript

hostenToday we're exploring Pi Coding Agent, a terminal-based tool for building your own AI features.
guestja今日は、自分独自のAI機能を構築できるターミナル型ツール「Pi Coding Agent」について探っていきます。
hostenPi is created by Mario Zechner and designed as a minimal, extensible coding harness.
guestjaPiはマリオ・ゼヒナー氏が開発した、最小限で拡張可能なコーディングハーネスとして設計されています。
hostenUnlike heavy agents, Pi starts small with just read, write, edit, and bash commands.
guestja重いエージェントと異なり、Piは読み取り、書き込み、編集、bashコマンドという基本機能だけで始まります。
hostenThe key insight is that you add features through TypeScript extensions rather than hoping for built-in features.
guestja重要なのは、組み込み機能を待つのではなく、TypeScript拡張を通じて自分で機能を追加することです。
hostenYou can register commands, tools, hooks, UI elements, and even new model providers through extensions.
guestjaコマンド、ツール、フック、UI要素、さらには新しいモデルプロバイダーを拡張機能で登録できます。
hostenFor example, you can add Hatena Bookmark search as both a user command and an LLM tool.
guestja例えば、はてなブックマーク検索をユーザーコマンドとLLMツールの両方として追加できます。
hostenPi lets the agent itself write its own extensions—you ask it to create a search tool, and it writes the code.
guestjaPiはエージェント自身に拡張機能を書かせることができます。検索ツールを作ってと頼めば、コードを生成します。
hostenHooks let you intercept execution events and log search queries, results, and timing automatically.
guestjaフックで実行イベントに割り込んで、検索クエリ、結果、処理時間を自動的に記録できます。
hostenYou can add web search using SearXNG, Google, or any SERP API—not locked to one provider.
guestjaSearXNGやGoogleなど任意のSERP APIでWeb検索を追加でき、特定プロバイダーに固定されません。
hostenYou can also add xAI's X search tool through an extension using your own API key.
guestja独自のAPIキーを使ってxAIのX検索ツールを拡張機能で追加することもできます。
hostenPi integrates with Tailscale to call local LLMs on your home PC or remote servers securely.
guestjaTailscaleと連携して、自宅PCやリモートサーバー上のローカルLLMを安全に呼び出せます。
hostenUnlike tools like Skills or MCP, Pi extensions run inside the agent's process as TypeScript modules.
guestjaSkillsやMCPとは異なり、Piの拡張機能はエージェントのプロセス内でTypeScriptモジュールとして実行されます。
hostenThis means you can modify behavior at deeper levels—not just add tools, but reshape the runtime itself.
guestjaこれにより、ツール追加だけでなく、ランタイム自体をより深く変形させることができます。
hostenPi intentionally omits MCP, sub-agents, and plan mode to keep the core minimal and user-extensible.
guestjaPiはコアを最小限に保ち、ユーザーが拡張できるようにするため、MCPやサブエージェント、プランモードを意図的に省いています。
hostenThe philosophy is: if you need it, you can build it as an extension or package.
guestja基本的な考え方は、必要なら拡張機能やパッケージとして自分で構築できるということです。
hostenSo Pi becomes less a finished product and more a harness you grow into your own AI environment.
guestjaつまり、Piは完成品というより、自分独自のAI環境へと育てていくハーネスなのです。