Skip to content

Pi is a spawnable PTY agent but gets no skill install (missing from AGENTS list) #2539

Closed

Description

@malibio

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_FRONTMATTER reuse: the existing shared frontmatter block should apply unless Pi has its own spec requirements (check against the Agent Skills standard compliance note already in agents.ts)

Acceptance criteria

  • pi added to AGENTS with 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:all passes
  • bun run quality:fix passes

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::Pi definition (PTY catalog, already correct)
  • packages/skill/src/agents.ts — the AGENTS array to extend
  • packages/skill/src/installer.ts — install/uninstall logic

Activity

  1. malibio commented on Sep 9, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 237 test files passed, 4909 tests passed

  2. self-assigned this
    on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions