본문으로 건너뛰기
Skillpedia
일반 코딩51k · #3527

pi-agent

하는 일

Pi Agent는 터미널에서 코딩하는 시스템인 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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/pi-agent/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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란 무엇인가요?

터미널에서 직접 코딩하는 시스템이며, 새로운 기능을 추가해 확장할 수 있습니다.

‘제공자(providers)’란 무엇인가요?

Pi가 다양한 언어 모델이나 서비스와 상호작용할 때 사용하는 연결과 같으며, API 키 같은 것을 포함합니다.

‘RPC’나 ‘JSON 이벤트 스트림’은 무엇을 뜻하나요?

Pi가 다른 프로그램과 통신하는 기술적인 방법으로, 정해진 형식으로 정보를 주고받습니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬