| Crates.io | pmx |
| lib.rs | pmx |
| version | 0.1.0 |
| created_at | 2025-07-22 21:00:34.703778+00 |
| updated_at | 2025-07-22 21:00:34.703778+00 |
| description | A CLI tool for managing AI agent profiles across different platforms (Claude, Codex) |
| homepage | https://github.com/NishantJoshi00/pmx |
| repository | https://github.com/NishantJoshi00/pmx |
| max_upload_size | |
| id | 1764002 |
| size | 2,563,751 |
PMX helps you organize and quickly switch between different AI agent configurations. Instead of manually editing configuration files or copying profile text, PMX lets you store multiple profiles and apply them with a single command.
Think of it like switching between different "personas" or instruction sets for your AI agents - whether you're doing code reviews, writing documentation, or working on specific projects.
$EDITORconfig.tomlOnce published, you can install pmx directly from crates.io:
cargo install pmx
This will install the pmx binary to your Cargo bin directory (typically ~/.cargo/bin/). Make sure this directory is in your PATH.
Prerequisites: Rust and Cargo must be installed. You can install them from rustup.rs.
cargo install --path .
Or install to a specific location:
cargo install --path . --root ~/.local
cargo build --release
The binary will be available at target/release/pmx
.md files in ~/.config/pmx/repo/See what profiles you have:
pmx profile list
Apply a profile to Claude Code:
pmx set-claude-profile my-code-reviewer
Append to existing Claude profile:
pmx append-claude-profile additional-instructions
Apply a profile to OpenAI Codex:
pmx set-codex-profile my-documentation-writer
Append to existing Codex profile:
pmx append-codex-profile additional-context
Remove the current profile:
pmx reset-claude-profile
pmx reset-codex-profile
Create a new profile:
pmx profile create my-new-profile
Edit an existing profile:
pmx profile edit my-profile
Show profile contents:
pmx profile show my-profile
Copy a profile to your clipboard:
pmx profile copy project-specific-instructions
Delete a profile (with confirmation):
pmx profile delete old-profile
Code Review Profile:
pmx set-claude-profile code-reviewer
# Now Claude will focus on security, performance, and best practices
Documentation Writer:
pmx set-claude-profile tech-writer
# Now Claude will write clear, user-friendly documentation
Project-Specific Instructions:
pmx set-claude-profile projects/startup
# Now Claude knows your company's coding standards and domain
Development Profiles in Nested Directories:
pmx set-claude-profile development/backend
# Apply backend-specific development guidelines
pmx append-claude-profile development/security
# Add security-focused instructions to existing profile
PMX stores profiles in ~/.config/pmx/repo/ as Markdown files. You can organize profiles in nested directories:
~/.config/pmx/
├── config.toml # Settings
└── repo/ # Your profiles
├── code-reviewer.md # Focuses on code quality
├── tech-writer.md # Great at documentation
├── development/ # Development profiles
│ ├── backend.md # Backend-specific instructions
│ └── frontend.md # Frontend guidelines
└── projects/ # Project-specific profiles
├── startup.md # Startup context
└── enterprise.md # Enterprise standards
Each profile is just a .md file containing the instructions you want your AI agent to follow. Use directories to organize related profiles together.
PMX works out of the box! It automatically:
~/.config/pmx/repo/config.tomlYou can override the default configuration directory in two ways:
Using command-line option:
pmx --config /path/to/custom/config profile list
Using environment variable:
export PMX_CONFIG_FILE=/path/to/your/config
pmx profile list
The priority order is:
--config command-line option$PMX_CONFIG_FILE environment variable$XDG_CONFIG_HOME/pmx (if XDG_CONFIG_HOME is set)~/.config/pmx (default)Make typing commands faster with auto-completion:
# For Zsh
source <(pmx completion zsh)
Man pages are available in assets/manual/. To install:
# System-wide installation
sudo cp assets/manual/pmx.1 /usr/share/man/man1/
# User installation
mkdir -p ~/.local/share/man/man1
cp assets/manual/pmx.1 ~/.local/share/man/man1/
Then view with: man pmx
PMX is built in Rust with a modular architecture:
~/.claude/CLAUDE.md) and Codex (~/.codex/AGENTS.md)is-terminal)dialoguer)The tool follows a configuration-first approach where agent support can be conditionally enabled/disabled via config.toml.
clap - Command-line argument parsinganyhow - Error handlingserde/toml - Configuration managementarboard - Clipboard integrationdialoguer - Interactive promptsis-terminal - Terminal detection for smart outputtempfile - Safe temporary file handlingcargo testcargo fmt