Repository navigation
Description
Problem
packages/agent/src/agent_catalog/registry.rs fully defines AgentType::Pi (binary pi, ContextFile::AgentsMd, multi-provider auth env vars, session-aware with no resume flag) as a spawnable PTY agent — NodeSpace can launch a Pi session today.
But packages/skill/src/agents.ts's AGENTS array (the skill installer's harness list) has exactly four entries — claude-code, codex, antigravity, opencode — with no pi entry. A user running Pi (pi.dev / earendil-works/pi) gets no SKILL.md, no shim, no skill discovery at all, despite NodeSpace being able to spawn a Pi session for them.
This is a plain feature-parity gap between the two harness catalogs in this codebase (the PTY spawn catalog and the skill-install catalog), which currently drift independently.
Fix
Add a pi entry to packages/skill/src/agents.ts's AGENTS array, following the existing pattern for the other four harnesses:
- Detection/install directory: Pi's context/extension files live under
~/.pi/agent/(global) or.pi/(project) per its docs — confirm the exact directory Pi expects an installed skill or context file to land in - Shim: follow whatever shape the other entries use (see
codex/opencode's shims as reference) — Pi's actual tool-registration or context-loading mechanism needs to be checked against its real docs rather than assumed SKILL_FRONTMATTERreuse: the existing shared frontmatter block should apply unless Pi has its own spec requirements (check against the Agent Skills standard compliance note already inagents.ts)
Acceptance criteria
-
piadded toAGENTSwith correct detection/install paths verified against Pi's actual documentation - Installer writes a valid skill for Pi to discover (verify against Pi's real skill/context-loading mechanism, not assumed to match another harness)
- Uninstall path removes it cleanly
-
bun run test:allpasses -
bun run quality:fixpasses
Context
Found while investigating whether the skill installer could also support harness-native session-start hooks (a separate, loosely-scoped notifier idea — not blocked on this issue). Pi has a real session_start lifecycle event of its own, but adding hook support to a harness that doesn't even get the base skill installed would be solving things out of order — this issue is the correct prerequisite if Pi hook support is ever pursued.
References
packages/agent/src/agent_catalog/registry.rs—AgentType::Pidefinition (PTY catalog, already correct)packages/skill/src/agents.ts— theAGENTSarray to extendpackages/skill/src/installer.ts— install/uninstall logic
Activity
malibio commentedon Sep 9, 2026
Frontend baseline: 237 test files passed, 4909 tests passed