feat: add Pi coding agent to supported tool configs#89
Open
vlamai wants to merge 1 commit into
Open
Conversation
- Add 'pi' to AiTool type union with cli: 'pi', promptFlag: ['-p'] - Add 'pi' to VALID_AI_TOOLS in config.ts - Add Pi as option 7 in setup menu (renumber Multiple→8, None→9) - Pi uses AGENTS.md (same as Codex) which pi reads automatically at startup - Add Pi to tool-configs README table and setup examples - Update sync fallback message to include pi in supported CLIs Pi reads AGENTS.md from project root at startup, so integration uses the same template as Claude Code/Codex. The -p flag enables non-interactive mode for mex sync auto-repair.
Collaborator
|
Hello @vlamai thanks for the PR, we are currently putting out a major update so I will review this PR once that is out. I hope you dont mind and once again thanks for the contribution! |
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.
What
Add Pi coding agent to the list of supported AI tools in mex.
Why
Pi is an open-source coding agent that reads AGENTS.md at startup from the project root (same as Codex). Adding native support allows users to select Pi during
mex setupand usemex syncwith Pi CLI for auto-repair.Changes
src/types.ts: Add "pi" to AiTool union, add AI_TOOLS.pi with cli: "pi", promptFlag: ["-p"]src/config.ts: Add "pi" to VALID_AI_TOOLSsrc/setup/index.ts: Pi as option 7 in menu (renumber Multiple→8, None→9)src/sync/index.ts: Add "pi" to supported CLIs messagetemplates/.tool-configs/README.md: Add Pi to table and examplesHow it works
mex setup→ select "7) Pi" → copies CLAUDE.md as AGENTS.md to project rootmex sync→ detects pi CLI → runspi -p "<brief>"for auto-repairHow to test
npm install && npm run buildmkdir /tmp/test && cd /tmp/test && git initnode dist/cli.js setup→ select 7) Pipi→ verify it reads AGENTS.md and ROUTER.mdnode dist/cli.js check→ verify drift detectionChecklist