Files
ai-agent/runner/package.json
Gabriel Vidal f752389a45 feat(ai-agent): pi.dev harness — runner wrapping pi --mode json + sidecar routing
New services/ai-agent/runner/: a Node CLI the sidecar launches exactly like
`claude` (-p/--session-id/--resume/--model). It runs pi 0.80.6 headless on
Qwen 3.6 (OpenRouter via vendor-prefixed ids, EVOX2 LM Studio via bare ids,
with WoL wake), persists pi sessions keyed by the viewer's session UUID, and
mirrors the event stream as a Claude-Code-schema transcript under
~/.pi-runner/transcripts so the viewer parses it with zero new code. Ships a
folder-permissions extension (tool_call gate: writes only inside
PI_PERM_SCOPE, read roots, bash path scan, secrets deny-list) — pi itself has
no permission system.

sidecar.py: harness field on /spawn + /resume routes pi sessions to
RUNNER_BIN (claude untouched); pi model ids get their own validation regex.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 04:40:12 +02:00

12 lines
384 B
JSON

{
"name": "ai-agent-pi-runner",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "pi-harness session runner for the ai-agent viewer: wraps `pi --mode json` and writes a Claude-Code-schema transcript the viewer already knows how to parse.",
"bin": { "pi-runner": "./cli.mjs" },
"dependencies": {
"@earendil-works/pi-coding-agent": "0.80.6"
}
}