pi-coding-agent

Embed the pi-coding-agent runtime into Node scripts to manage sessions and tools.

320|3|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/mizchi/skills --skill pi-coding-agent-mizchi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pi-coding-agent
Source: https://github.com/mizchi/skills/tree/main/node/pi-coding-agent
Command: npx skills add https://github.com/mizchi/skills --skill pi-coding-agent-mizchi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Embedding the pi-coding-agent runtime into Node scripts enables developers to spawn agent sessions, scope tools, and build extensions without forking the CLI.

Core Features & Use Cases

  • Embed the coding-agent runtime to manage sessions and tool lifecycles within a Node process.
  • Register tools and commands via pi.registerTool, pi.registerCommand, and react to tool calls with extensions.
  • Package and install coding-agent functionality from npm or git, and choose between the SDK or RPC mode for non-Node hosts.

Quick Start

Install the package and start a coding-agent session in your Node script.

Frequently Asked Questions about pi-coding-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I embed a coding-agent runtime in Node scripts without forking the CLI?

You can embed a coding-agent runtime in Node scripts to spawn agent sessions, scope tools, and build extensions without forking the CLI. Use the SDK to manage session lifecycles and register tools directly in-process.

What is the best way to manage agent sessions and tool lifecycles within a Node process?

Managing agent sessions and tool lifecycles within a Node process is done by embedding the coding-agent runtime. This allows you to register tools via specific APIs and control the entire tool execution lifecycle programmatically.

Can I use a coding-agent SDK with non-Node hosts?

Yes, you can use the coding-agent SDK with non-Node hosts by running it in RPC mode. This mode allows non-Node environments to communicate with the embedded tooling runtime and execute registered commands.

How do I register custom tools and commands in a coding-agent runtime?

You register custom tools and commands in a coding-agent runtime using dedicated registration APIs. These APIs allow you to define TypeBox-based tool schemas, scope tools to specific sessions, and react to tool calls with extensions.

Does embedding a coding-agent runtime in Node require specific dependency management?

Embedding a coding-agent runtime in Node requires managing dependencies under specific peerDependencies constraints. This ensures that the tooling runtime, session management, and tool schemas function correctly within your script's environment.

How do I package and install coding-agent functionality from npm or git?

You package and install coding-agent functionality from npm or git to integrate into your Node scripts. This enables you to embed the runtime, register tools, and optionally run in RPC mode for service integrations.