Skip to content

[FEATURE] Add Pi coding agent as an APM target #2908

Description

Is your feature request related to a problem? Please describe.

The Pi coding agent (@earendil-works/pi-coding-agent) is an actively-used harness that APM currently has no target for. Pi users therefore have no manifest/lockfile/upgrade story for their agent context (skills, prompt templates) — the exact gap APM exists to close for every other harness (Copilot, Claude, Cursor, OpenCode, Codex, Gemini, Windsurf, Kiro, Grok, Antigravity).

Describe the solution you'd like

Add pi as a first-class APM target, following the existing opencode/kiro/codex pattern — one TARGET_CAPABILITIES entry plus one KNOWN_TARGETS profile, no new classes.

Pi's loadable project resources (verified against the shipped dist/core/resource-loader.js and dist/config.js):

  • skills → converge on the cross-tool .agents/skills/<name>/SKILL.md (Pi natively reads both .pi/skills/ and .agents/skills/); user scope ~/.pi/agent/skills/.
  • commands → Pi prompt templates (/name slash commands) → .pi/prompts/<name>.md, reusing the shared claude_command transformer (Pi's description/argument-hint frontmatter and $1/$@/$ARGUMENTS substitution match Claude commands).
  • instructions → compile-only (Pi reads AGENTS.mdcompile_family="agents").
  • No agents primitive — Pi has no native agent-definition directory (sub-agents are an extension capability), so no frontmatter transform is required.
  • No hooks. MCP wiring deferred to a follow-up.

Project root .pi/, user scope ~/.pi/agent/, auto-detected on a .pi/ directory, included in --target all.

Describe alternatives you've considered

  • Explicit-only target (like antigravity/grok-cloud): rejected — Pi is a mainstream harness with a stable .pi/ config dir, so first-class auto-detection is appropriate.
  • A dedicated Pi agent-frontmatter transformer (like OpenCode's): unnecessary, because Pi deploys no agent files.

Additional context

Implementation is ready and opened as PR #2907 (skills + prompt-templates target, tests mirroring kiro/opencode, docs updated, all unit + integration tests green). This issue tracks the feature request that PR resolves.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/in-flightA PR is open and progressing.triage/recommendedAutomated advice completed; not human scope approval.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions