minmax-code
v0.5.0
Published
Terminal-native AI coding assistant powered by MiniMax LLM
Maintainers
Readme
PLAN mode — read-only analysis
BUILDER mode — full agentic execution
Install
npm i -g minmax-codeOr without npm:
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/ezeoli88/minmax-code/main/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/ezeoli88/minmax-code/main/install.ps1 | iexStandalone binary — no dependencies, no runtime needed. Includes bundled ripgrep.
On first launch you'll be prompted for a MiniMax API key (free tier available).
Usage
minmax-codeModes
Toggle with Tab:
| Mode | Description | |------|-------------| | PLAN | Read-only — AI can analyze and suggest but not modify anything | | BUILDER | Full access — AI can read, write, edit files and run commands |
Commands
Type / to open the command palette:
| Command | Description |
|---------|-------------|
| /new | New chat session |
| /sessions | Browse & resume previous sessions |
| /model | Switch model |
| /theme | Change color theme |
| /config | Open settings |
| /init | Create agent.md template |
| /clear | Clear chat |
| /exit | Quit |
Keyboard shortcuts
| Key | Action |
|-----|--------|
| Tab | Toggle PLAN / BUILDER |
| Esc | Cancel AI response |
| Up/Down | Scroll |
| Ctrl+U/D | Half-page scroll |
| @ | Attach files |
Tools
The AI has 7 built-in tools:
| Tool | Description | PLAN | BUILDER |
|------|-------------|:----:|:-------:|
| read_file | Read file contents | x | x |
| glob | Find files by pattern | x | x |
| grep | Search with regex (ripgrep) | x | x |
| list_directory | Directory tree | x | x |
| write_file | Create/overwrite files | | x |
| edit_file | Find-and-replace in files | | x |
| bash | Run shell commands | | x |
Extend with MCP servers for unlimited capabilities.
Models
| Model | Speed | Best for |
|-------|-------|----------|
| MiniMax-M2.5 | ~60 tok/s | Complex reasoning |
| MiniMax-M2.5-highspeed | ~100 tok/s | Quick iterations |
Switch with /model.
Themes
Three built-in themes — switch with /theme:
- tokyo-night (default) — cool blues and purples
- rose-pine — soft pinks and muted tones
- gruvbox — warm retro palette
agent.md
Drop an agent.md in your project root to give the AI persistent context. Auto-loaded into the system prompt.
/init # generates a templateMCP
Extend the AI by connecting Model Context Protocol servers in ~/.minmax-code/config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "ghp_..." }
}
}
}MCP tools appear as mcp__servername__toolname.
Configuration
All config lives at ~/.minmax-code/config.json. Sessions persist in ~/.minmax-code/sessions.db (SQLite).
License
MIT
