Skip to content

feat(agent): agrega soporte para Pi agent#5

Merged
eezzekl merged 1 commit into
mainfrom
feat/pi-agent-support
May 25, 2026
Merged

feat(agent): agrega soporte para Pi agent#5
eezzekl merged 1 commit into
mainfrom
feat/pi-agent-support

Conversation

@eezzekl

@eezzekl eezzekl commented May 25, 2026

Copy link
Copy Markdown
Owner

What

Adds support for the global Pi agent (~/.pi/agent/skills/) to skill-sync. Pi is automatically discovered and can now be included in the sync mesh alongside Claude, Cursor, Gemini, OpenCode, Codex, Windsurf, and GitHub Copilot.

Why

The Pi agent (the official Anthropic Pi runtime) maintains user-authored skills in ~/.pi/agent/skills/. These should be syncable across other AI tools, just like any other agent.

Changes

  • discovery.go: Added Pi to SupportedAgents with LocalDir=""" (no project-level skills) and GlobalDir=.pi/agent`
  • discovery_test.go: Updated test cases to include Pi detection scenarios
  • skill-sync.example.yaml: Added ~/.pi/agent as example target
  • README.md: Updated agent table and quickstart examples

Design Notes

  • Only user-authored skills under ~/.pi/agent/skills/ are synced
  • Package-installed skills (~/.pi/agent/npm/node_modules) are intentionally excluded—they're managed by npm
  • Uses existing scanner logic: setting GlobalDir = .pi/agent and scanner will append /skills automatically
  • All tests pass; cross-platform path handling uses filepath.Join throughout

- Agrega Pi a SupportedAgents en internal/agent/discovery/discovery.go
  LocalDir vacío (sin skills a nivel de proyecto), GlobalDir = .pi/agent
  Scanner expandirá automáticamente a ~/.pi/agent/skills/

- Actualiza tests en discovery_test.go para incluir Pi:
  Casos 'some local and global directories exist' y 'all' ahora incluyen
  la creación de ~/.pi/agent y la verificación de su detección

- Agrega ~/.pi/agent como target de ejemplo en skill-sync.example.yaml

- Actualiza README.md con:
  * Pi en la intro de agentes soportados
  * ~/.pi/agent en ejemplo YAML de quickstart
  * Tabla de agentes soportados incluye Pi
  * Nota aclarando que solo ~/.pi/agent/skills/ se sincroniza,
    no los packages de npm bajo ~/.pi/agent/npm/node_modules/
@eezzekl
eezzekl merged commit 3060ef5 into main May 25, 2026
3 checks passed
@eezzekl
eezzekl deleted the feat/pi-agent-support branch May 25, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant