@metaharness/host-pi-dev
v0.1.2
Published
pi.dev coding-agent host adapter for agent-harness-generator (Pi extension, no MCP by design)
Maintainers
Readme
@metaharness/host-pi-dev
pi.dev coding agent host adapter for the agent-harness-generator project.
NOT Inflection's Pi.ai consumer chatbot. This is the badlogic/pi-mono Pi coding agent — a minimal CLI agent harness.
Generates the host-specific files a Pi-targeted harness needs:
- A Pi extension TypeScript source that registers each kernel tool via
pi.registerTool({...}) AGENTS.mdwith the harness's agent rosterSYSTEM.mdwith the harness's system prompt
Critical design note
Pi explicitly ships with no MCP. From the README's "What we didn't build" section: "No MCP. Build CLI tools with READMEs (see Skills), or build an extension that adds MCP support."
This adapter generates a Pi extension (TypeScript module installed via pi install npm:@your-org/your-harness), NOT MCP config. The kernel's MCP primitives are bypassed; the tool registry is exposed via pi.registerTool({...}) calls.
Usage
import adapter from '@metaharness/host-pi-dev';
const config = adapter.generateConfig({
name: 'my-bot',
tools: [{ name: 'remember', description: 'Store a memory', inputSchema: {} }],
agents: [{ name: 'coder', systemPrompt: 'You are a coder.' }],
});
// config['pi-extension/src/index.ts'] = '<TypeScript>'
// config['AGENTS.md'] = '<markdown>'
// config['SYSTEM.md'] = '<markdown>'License
MIT
