本文へスキップ
Skillpedia
一般的なプログラミング51k · #3527

pi-agent

できること

Pi Agentは、ターミナルでコーディングするためのシステムであるPiを使ったり、Piを使って開発したりするためのツールです。Piのインストール、設定、さまざまなプログラミング作業での利用ができます。

使う場面

  • ✓Piをインストールしたり設定したりしたいとき。
  • ✓Piの新しい拡張機能やツールを作成するとき。
  • ✓Piを他のプログラムやシステムと連携させたいとき。

スキルのリンク

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pi-agent/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pi-agent/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Piをインストールして、最初のプロバイダーを設定するにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

Pi Agentは、Piを管理するためのあなたの指示を理解します。Piのインストール、設定の変更、新機能の作成を行えるほか、さまざまな通信方式を使ってPiを他のシステムに接続することもできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Pi Agent

Use this skill when the user wants to operate Pi or build on top of Pi. Pi is a minimal terminal coding harness extended through TypeScript extensions, skills, prompt templates, themes, packages, custom models/providers, SDK integrations, RPC mode, JSON event streams, and TUI components.

First Decision

Pick the reference before answering or coding:

User intent Read
What Pi is, docs map, install methods references/overview.md
Install, authenticate, first run references/quickstart.md
Day-to-day CLI usage, commands, modes, flags, project trust references/usage.md
Provider auth, API keys, cloud provider setup references/providers.md
Custom model entries, local models, proxies, compat flags references/models.md
Local llama.cpp router, /llama, model download/load references/llama-cpp.md
Settings keys and defaults references/settings.md
PI_* and other environment variables references/environment-variables.md
Extension development, custom tools, events, commands references/extensions.md
Custom provider implementation, OAuth, custom streaming references/custom-provider.md
Embed Pi in Node/TypeScript references/sdk.md
Integrate from another process/language references/rpc.md
Consume JSONL event output references/json.md
Build terminal UI components references/tui.md
Package extensions/skills/prompts/themes references/packages.md
Delegate to subagents, chains, parallel runs, orchestration references/pi-subagents.md
Connect MCP servers, codemode, MCP tool discovery/config references/mcp.md (built-in), references/pi-mcp-adapter.md (optional adapter)
Interactive interview forms, structured user input references/pi-interview.md
Web search, URL/PDF/repo fetching, video understanding references/pi-web-access.md
Author Pi skills references/skills.md
Prompt templates or themes references/prompt-templates.md, references/themes.md
Sessions, branching, compaction, parsing JSONL references/sessions.md, references/compaction.md, references/session-format.md
Security, sandboxing, trust references/security.md, references/containerization.md
Keyboard or terminal issues references/keybindings.md, references/terminal-setup.md, references/tmux.md, references/windows.md, references/termux.md, references/shell-aliases.md
Working on Pi itself references/development.md

Build-On-Pi Defaults

Prefer the SDK for Node/TypeScript apps that need type safety, direct state access, in-process custom tools/extensions, or custom resource loading. Use createAgentSession() for a single stable session; use createAgentSessionRuntime() when the app must replace sessions through new/resume/fork/clone/import flows. Auth and model lookup go through ModelRuntime.create().

Prefer RPC mode when the client is not Node.js, needs process isolation, or wants a language-agnostic JSONL protocol. Start with pi --mode rpc --no-session for stateless subprocess integration, then add session flags when persistence matters. Split records on \n only — Node readline is not protocol-compliant.

For RPC clients, correlate responses by unique request id, not arrival order, and keep consuming events after a successful prompt response. Success means accepted, queued, or handled; it is not completion. Subscribe before sending the prompt, and wait for agent_settled for runs that actually start, because agent_end may precede retries or queued work. If the response reports disposition: "handled", no run started and no settled event is owed. See the upstream RPC lifecycle.

Prefer JSON mode for one-shot command-line pipelines that only need streamed events, not bidirectional control: pi --mode json "prompt".

Use extensions for Pi-native behavior: custom tools, command handlers, event hooks, provider registration, custom compaction, path protection, project trust policy, UI prompts, widgets, and TUI components.

Use packages when sharing or installing reusable extensions, skills, prompt templates, or themes across machines or projects.

Safety Defaults

…

よくある質問

Piとは何ですか?

ターミナル上で直接コーディングできるシステムで、新しい機能を追加して拡張することができます。

「プロバイダー」とは何ですか?

Piが異なる言語モデルやサービスとやり取りするために使う接続先のことで、APIキーなどがこれにあたります。

「RPC」や「JSONイベントストリーム」とは何ですか?

PiがほかのプログラムとやりとりするためのInternal技術的な方法で、特定の形式で情報を送受信する仕組みのことです。

詳細

作者による元の説明

Builds with and operates Pi, the minimal terminal coding harness. Use for installing Pi, configuring providers/models/settings/environment variables, creating Pi skills/extensions/packages/themes/prompt templates, embedding Pi through the SDK, integrating over RPC or JSON event streams, parsing sessions, running local models through the llama.cpp router, developing custom Pi providers and TUI comp

repo: K-Dense-AI/scientific-agent-skills

人気

GitHubのスター
51k
ランキング
#3527
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル