Skip to content

feat(pi): add Pi subagent support#25

Open
josevelaz wants to merge 3 commits into
liatrio-labs:mainfrom
josevelaz:feat/pi-subagent-support
Open

feat(pi): add Pi subagent support#25
josevelaz wants to merge 3 commits into
liatrio-labs:mainfrom
josevelaz:feat/pi-subagent-support

Conversation

@josevelaz
Copy link
Copy Markdown

Summary

  • Adds Pi (@mariozechner/pi-coding-agent) as a fully supported agent, bringing the total to 12 supported AI coding assistants
  • Implements PiCommandGenerator producing minimal YAML frontmatter (description + optional argument-hint) — no name/enabled/tags/arguments/meta fields that Pi doesn't understand
  • Preserves $ARGUMENTS placeholders natively in Pi output via a new preserve_dollar_arguments flag on _replace_placeholders

Changes

  • slash_commands/config.pyCommandFormat.PI enum value + Pi tuple in _SUPPORTED_AGENT_DATA
  • slash_commands/generators.pyPiCommandGenerator class + factory registration
  • tests/test_generators.py — 7 new Pi unit tests (basic generation, overrides, argument-hint, no-args, $ARGUMENTS preservation, snapshot regression, factory dispatch)
  • tests/test_config.py — structural invariant tests updated for Pi
  • tests/integration/ — Pi added to clean_agent_dirs fixture and test_generate_all_supported_agents
  • README.md + docs/slash-command-generator.md — Pi documented in both agent listings
  • .gitignore.weave/ added to prevent planning tool state from being committed

Test Results

uv run pytest tests/ -v -m "not integration"
236 passed, 35 deselected

All 236 unit tests pass with zero regressions.

josevelaz added 3 commits May 11, 2026 12:53
- Add CommandFormat.PI enum value and Pi tuple to _SUPPORTED_AGENT_DATA
- Implement PiCommandGenerator with minimal YAML frontmatter (description + argument-hint)
- Add preserve_dollar_arguments flag to _replace_placeholders for Pi native handling
- Register PiCommandGenerator in CommandGenerator.create() factory
- Add 7 Pi unit tests covering all generator behaviors
- Update integration test fixtures to include Pi agent
- Update README and docs/slash-command-generator.md with Pi entry

Related to T1.0, T2.0, T3.0 in Spec 09
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