feat(pi): add Pi subagent support#25
Open
josevelaz wants to merge 3 commits into
Open
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@mariozechner/pi-coding-agent) as a fully supported agent, bringing the total to 12 supported AI coding assistantsPiCommandGeneratorproducing minimal YAML frontmatter (description+ optionalargument-hint) — noname/enabled/tags/arguments/metafields that Pi doesn't understand$ARGUMENTSplaceholders natively in Pi output via a newpreserve_dollar_argumentsflag on_replace_placeholdersChanges
slash_commands/config.py—CommandFormat.PIenum value + Pi tuple in_SUPPORTED_AGENT_DATAslash_commands/generators.py—PiCommandGeneratorclass + factory registrationtests/test_generators.py— 7 new Pi unit tests (basic generation, overrides, argument-hint, no-args,$ARGUMENTSpreservation, snapshot regression, factory dispatch)tests/test_config.py— structural invariant tests updated for Pitests/integration/— Pi added toclean_agent_dirsfixture andtest_generate_all_supported_agentsREADME.md+docs/slash-command-generator.md— Pi documented in both agent listings.gitignore—.weave/added to prevent planning tool state from being committedTest Results
All 236 unit tests pass with zero regressions.