Skip to content

move-hoon/claude-pro-minmax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

68 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ν•œκ΅­μ–΄ 버전

npm version npm downloads Node.js License Claude Code Pro Plan

Claude Pro MinMax (CPMM)

Minimize waste. Maximize validated work.

CPMM helps Pro users complete more verified tasks before reset through model routing, output control, and local safety rails.

Already installed? Start here: User Guide

New in v1.3.1: cpmm setup now restores the managed RTK hook order and timeout for users who already enabled RTK.


Tip

πŸš€ 3-Second Summary: Why use this?

  1. Batch Execution: Use /do to keep implementation and verification in one flow, and escalate to /do-sonnet//do-opus only when needed.
  2. Output Cost Control: Use response budgets, CLI filtering, and optional RTK to keep Bash output from inflating Claude input context.
  3. Local Safety Rails: Local hooks and atomic rollback help you recover quickly on failure.

πŸ›  Installation

1. Install (Recommended)

npm install -g claude-pro-minmax@latest
cpmm setup
cpmm doctor

2. Update

npm install -g claude-pro-minmax@latest
cpmm setup

3. Troubleshooting (Quick)

# re-run setup to install any missing deps
cpmm setup

# check status only
cpmm doctor

v1.3.1 note: cpmm setup still attempts RTK installation when supported. RTK activation remains opt-in, but once enabled CPMM now restores the managed hook order and timeout automatically.

Dependency policy:

  • required: jq, mgrep, tmux
  • optional (auto-install attempt): rtk
  • optional (check only): claude (assumed pre-installed)
  • auto-install paths by tool:
    • mgrep: npm
    • rtk: brew or upstream curl installer
    • jq, tmux: brew (macOS) or Linux package managers apt-get, dnf, pacman, apk
  • on macOS without Homebrew, setup prints the Homebrew install command

4. Customization & Update Policy

  • cpmm setup installs missing dependencies, then configures CPMM (copies config files, language selection, Perplexity setup).
  • cpmm doctor checks dependency status and RTK hook health without modifying anything.
  • Re-running cpmm setup replaces CPMM-managed files with the latest version while preserving user data.
~/.claude/*            ← Global Baseline (CPMM-managed)
  β”œβ”€β”€ agents/            πŸ”„ Replaced on update
  β”œβ”€β”€ commands/          πŸ”„ Replaced on update
  β”œβ”€β”€ contexts/          πŸ”„ Replaced on update
  β”œβ”€β”€ scripts/           πŸ”„ Replaced on update
  β”œβ”€β”€ skills/cli-wrappers/ πŸ”„ Replaced on update
  β”œβ”€β”€ rules/*.md         πŸ”„ Replaced on update
  β”œβ”€β”€ settings.json      πŸ”„ Replaced on update
  β”œβ”€β”€ settings.local.json  βœ‹ User-owned β€” preserved
  β”œβ”€β”€ skills/learned/      βœ‹ User-owned β€” preserved
  β”œβ”€β”€ sessions/            βœ‹ User-owned β€” preserved
  β”œβ”€β”€ plans/               βœ‹ User-owned β€” preserved
  β”œβ”€β”€ projects/            βœ‹ User-owned β€” preserved
  └── rules/language.md    βœ‹ User-owned β€” preserved

<project>/.claude/*    ← Project-Specific (user/team customization)
  β”œβ”€β”€ CLAUDE.md          Project-specific instructions
  β”œβ”€β”€ commands/          Project-specific slash commands
  β”œβ”€β”€ skills/            Project-specific skills
  β”œβ”€β”€ rules/             Project-specific rules
  └── settings.json      Project-specific permissions/hooks/MCP disable

Two key rules:

  1. Global customization generally goes in settings.local.json. settings.json is CPMM-managed and overwritten on update; if you opt into RTK or other third-party hooks there, re-check them after updates.
  2. Custom commands/rules go in project .claude/ β€” global commands/ is managed by CPMM.

Project initialization tip:

  • Before running claude, initialize your project with templates in project-templates/ (not copied into ~/.claude).

5. Bash Command-Output Filtering (RTK)

CPMM supports RTK as an optional Bash command-output filtering layer for Bash-heavy workflows. cpmm setup attempts to install the RTK binary, but CPMM does not enable the RTK hook by default.

We’re shipping RTK as an official optional integration because it reduces noisy command output before that output expands Claude’s input context in Bash-heavy workflows. CPMM documents and validates the recommended hook order, where CPMM’s critical-action check should run before RTK’s rewrite hook. The integration remains opt-in so hook behavior stays predictable and easier to debug.

Recommended opt-in flow:

rtk init -g --hook-only
# if RTK was enabled, cpmm setup restores the managed hook order + timeout
cpmm setup
cpmm doctor

Recommended PreToolUse order in ~/.claude/settings.json:

  • CPMM safety hook first: ~/.claude/scripts/hooks/critical-action-check.sh with timeout: 5
  • RTK rewrite hook second: ~/.claude/hooks/rtk-rewrite.sh with timeout: 10

Update note:

  • cpmm setup rewrites ~/.claude/settings.json on update.
  • If RTK was already enabled before cpmm setup, CPMM restores the managed RTK hook order and timeout: 10 automatically after rewriting settings.
  • Run cpmm doctor after setup if you want to verify the managed RTK state.

Recommended verification:

  • Run /hooks and confirm both CPMM and RTK hooks are loaded
  • Confirm dangerous commands are still blocked by CPMM
  • Run cpmm doctor
  • After real Bash-heavy sessions, inspect rtk gain --quota --tier pro

Public example: in a community RTK integration report, rtk gain --quota --tier pro reported 8.5M input tokens saved (49.4%) across 1,664 commands in a Bash-heavy workflow. Savings vary by workload and session shape.

Rollback:

rtk init -g --uninstall

6. Advanced (Optional)

Perplexity, language, manual install

Perplexity/Language setup (not required):

  • Perplexity is used for web research in /dplan. Without it, /dplan still works via Sequential Thinking + Context7. All other features are unrelated to Perplexity.
  • On fresh interactive installs, cpmm setup asks for output language and Perplexity API key.
  • English (default): no file needed; remove ~/.claude/rules/language.md if it exists.
  • Non-English: create ~/.claude/rules/language.md with your preferred language.
  • To configure Perplexity manually, add this under mcpServers in ~/.claude.json:
"perplexity": {
  "command": "npx",
  "args": ["-y", "@perplexity-ai/mcp-server"],
  "env": {
    "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
  }
}

Manual dependency setup:

# jq
brew install jq                 # macOS
sudo apt-get install -y jq      # Ubuntu/Debian
sudo dnf install -y jq          # Fedora/RHEL
sudo pacman -S --noconfirm jq   # Arch
sudo apk add jq                 # Alpine

# mgrep
npm install -g @mixedbread/mgrep
mgrep install-claude-code

# tmux
brew install tmux               # macOS
sudo apt-get install -y tmux    # Ubuntu/Debian
sudo dnf install -y tmux        # Fedora/RHEL
sudo pacman -S --noconfirm tmux # Arch
sudo apk add tmux               # Alpine

Manual install from source:

git clone https://github.com/move-hoon/claude-pro-minmax.git
cd claude-pro-minmax
node bin/cpmm.js setup
# advanced/debug path (same underlying installer):
# bash install.sh

πŸš€ Quick Start

⚑ First 60 Seconds (FTUE)

claude
> /plan Analyze this repository and propose a 3-step implementation plan for one small improvement.
> /do Implement step 1 only, with minimal and safe changes.
> /review .
> /session-save ftue-first-pass

πŸ€– Agent Workflow

CPMM provides layered model routing: /plan chains @planner (Sonnet 4.6) β†’ @builder (Haiku 4.5) for complex tasks, while /do executes directly in the current session model for speed.

flowchart LR
    Start([User Request]) --> Cmd{Command?}

    Cmd -->|/plan| Plan[/"@planner (Sonnet 4.6)"/]
    Cmd -->|/do| Snap["πŸ“Έ git stash push"]

    Snap --> Exec["Session Model (Direct)"]
    Plan -->|"--no-build"| Done([Done])
    Plan -->|Blueprint| Build[/"@builder (Haiku 4.5)"/]
    Exec -- "Success" --> DropDo["πŸ—‘οΈ git stash drop"]
    Build -- "Success" --> DropPlan["πŸ—‘οΈ git stash drop"]
    DropDo --> Verify["βœ… verify.sh"]
    DropPlan --> Review[/"@reviewer (Haiku 4.5)"/]
    Exec -- "Failure (2x)" --> Pop["βͺ git stash pop"]
    Build -- "Failure (2x)" --> Pop
    Pop --> Escalate("🚨 Escalate to Sonnet 4.6")

    Verify --> Done
    Review --> Done
    Escalate -.-> Review

    classDef planner fill:#c8e6c9,stroke:#2e7d32,stroke-width:2px;
    classDef builder fill:#bbdefb,stroke:#1565c0,stroke-width:2px;
    classDef reviewer fill:#ffe0b2,stroke:#ef6c00,stroke-width:2px;
    classDef escalate fill:#ffcdd2,stroke:#b71c1c,stroke-width:2px;
    classDef done fill:#e0e0e0,stroke:#9e9e9e,stroke-width:2px,font-weight:bold;
    classDef snapshot fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px;
    classDef direct fill:#fff9c4,stroke:#f9a825,stroke-width:2px;
    classDef verify fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px;

    class Plan planner;
    class Build builder;
    class Review reviewer;
    class Escalate escalate;
    class Done done;
    class Snap,DropDo,DropPlan,Pop snapshot;
    class Exec direct;
    class Verify verify;
Loading

⌨️ Command Guide

1. Core Commands

Essential commands used most frequently.

Command Description Recommended Situation
/do [task] Rapid implementation (session model) Simple bug fixes, script writing
/plan [task] Sonnet 4.6 Design β†’ Haiku 4.5 Implementation Feature additions, refactoring, complex logic
/review [target] Haiku 4.5 (Read-only) Code review (Specify file or directory)

Cost Optimization Tip: Set your session model to Haiku (/model haiku) before using /do for simple tasks β€” same 1/5 API input-token price as @builder. Use /do-sonnet or /plan for complex tasks.

πŸš€ Advanced Commands - Click to Expand

Full command list for more sophisticated tasks or session management.

Command Description Recommended Situation
🧠 Deep Execution
/dplan [task] Sonnet 4.6 + Perplexity, Sequential Thinking, Context7 Library comparison, latest tech research (Deep Research)
/do-sonnet Execute directly with Sonnet 4.6 Manual escalation when Haiku 4.5 keeps failing
/do-opus Execute directly with Opus 4.6 Resolving extremely complex problems (Cost caution)
πŸ’Ύ Session/Context
/session-save Summarize and save session When pausing work (Auto-removal of secrets)
/session-load Load session Resuming previous work
/compact-phase Step-by-step context compaction When context cleanup is needed mid-session
/load-context Load context templates Initial setup for frontend/backend
πŸ› οΈ Utility
/learn Learn and save patterns Registering frequently recurring errors or preferred styles
/analyze-failures Analyze error logs Identifying causes of recurring errors
/watch Process monitoring (tmux) Observing long-running builds/tests
/llms-txt Fetch documentation Loading official library docs in LLM format

Core Strategy

Note

Anthropic does not publish the exact Pro quota formula. This README focuses on practical operating rules you can use immediately. For archived experiment evidence backing this strategy, see the Core Strategy Experiment Archive.

Goal

Maximize validated throughput per quota window by reducing quota spend per validated task.

Operating Principles

  1. Start with Haiku + /do. (Set /model haiku first if needed.)
  2. Use /do for straightforward tasks (usually 1-3 files).
  3. Use /plan when architecture judgment or multi-file checkpoints are needed.
  4. If Haiku keeps failing, escalate to Sonnet + /do-sonnet.
  5. Use Opus + /do-opus only when truly necessary.
  6. Keep context lean with timely compaction.
  7. For measured values and experiment context, see the experiment archive.

πŸ“š Documentation Hub

This project provides detailed documentation for each component. Refer to the links below for specific operating principles and customization methods.

Category Description Detailed Docs (Click)
πŸ“Š Strategy Evidence Archived experiment results backing core strategy πŸ“‚ Experiment Archive
🧭 User Guide Practical operating scenarios right after installation πŸ“‚ User Guide
πŸ€– Agents Definitions of roles and prompts for Planner, Builder, Reviewer, etc. πŸ“‚ Agents Guide
πŸ•ΉοΈ Commands Usage of 14 commands including /plan, /do, /review πŸ“‚ Commands Guide
πŸͺ Hooks Logic of 11 automation scripts including Pre-check, Auto-format πŸ“‚ Hooks Guide
πŸ“ Rules Policies for Security, Code Style, Critical Actions πŸ“‚ Rules Guide
🧠 Skills Technical specifications for tools like CLI Wrappers πŸ“‚ Skills Guide
πŸ”§ Contexts Context templates for Backend/Frontend projects πŸ“‚ Contexts Guide
πŸ’Ύ Sessions Structure for session summary storage and management πŸ“‚ Sessions Guide
πŸ› οΈ Scripts Collection of general-purpose scripts for Verify, Build, Test πŸ“‚ Scripts Guide
βš™οΈ Runtime Automatic project language/framework detection system πŸ“‚ Runtime Guide
πŸ”Œ Adapters Details on build adapters by language (Java, Node, Go, etc.) πŸ“‚ Adapters Guide
πŸŽ“ Learned Pattern data accumulated through the /learn command πŸ“‚ Learned Skills

πŸ“‚ Project Structure

πŸ“ View File Tree (Click to Expand)
claude-pro-minmax
β”œβ”€β”€ .claude.json                # Global MCP Settings (User Scope)
β”œβ”€β”€ .claudeignore               # Files excluded from Claude's context
β”œβ”€β”€ .gitignore                  # Git ignore rules
β”œβ”€β”€ CONTRIBUTING.md             # Contribution guide
β”œβ”€β”€ install.sh                  # Core installer (invoked by `cpmm setup`)
β”œβ”€β”€ LICENSE                     # MIT License
β”œβ”€β”€ README.md                   # English Documentation
β”œβ”€β”€ README.ko.md                # Korean Documentation
β”œβ”€β”€ package.json                # npm package manifest
β”œβ”€β”€ bin/                        # CPMM CLI entrypoints
β”‚   β”œβ”€β”€ cpmm.js                 # `cpmm` executable entry
β”œβ”€β”€ lib/                        # CPMM CLI core implementation
β”‚   └── cli.js                  # setup/doctor command logic
β”œβ”€β”€ .claude/
β”‚   β”œβ”€β”€ CLAUDE.md               # Core Instructions (Loaded in all sessions)
β”‚   β”œβ”€β”€ settings.json           # Project Settings (Permissions, hooks, env vars)
β”‚   β”œβ”€β”€ settings.local.example.json # Template for ~/.claude/settings.local.json
β”‚   β”œβ”€β”€ agents/                 # Agent Definitions
β”‚   β”‚   β”œβ”€β”€ planner.md          # Sonnet 4.6: Architecture and design decisions
β”‚   β”‚   β”œβ”€β”€ dplanner.md         # Sonnet 4.6+MCP: Deep planning utilizing external tools
β”‚   β”‚   β”œβ”€β”€ builder.md          # Haiku 4.5: Code implementation and refactoring
β”‚   β”‚   └── reviewer.md         # Haiku 4.5: Read-only code review
β”‚   β”œβ”€β”€ commands/               # Slash Commands
β”‚   β”‚   β”œβ”€β”€ plan.md             # Architecture planning (Sonnet -> Haiku)
β”‚   β”‚   β”œβ”€β”€ dplan.md            # Deep research planning (Sequential Thinking)
β”‚   β”‚   β”œβ”€β”€ do.md               # Direct execution (Default: Haiku)
β”‚   β”‚   β”œβ”€β”€ do-sonnet.md        # Execute with Sonnet model
β”‚   β”‚   β”œβ”€β”€ do-opus.md          # Execute with Opus model
β”‚   β”‚   β”œβ”€β”€ review.md           # Code review command (Read-only)
β”‚   β”‚   β”œβ”€β”€ watch.md            # File/process monitoring via tmux
β”‚   β”‚   β”œβ”€β”€ session-save.md     # Save current session state
β”‚   β”‚   β”œβ”€β”€ session-load.md     # Restore previous session state
β”‚   β”‚   β”œβ”€β”€ compact-phase.md    # Guide for step-by-step context compaction
β”‚   β”‚   β”œβ”€β”€ load-context.md     # Load pre-defined context templates
β”‚   β”‚   β”œβ”€β”€ learn.md            # Save new patterns to memory
β”‚   β”‚   β”œβ”€β”€ analyze-failures.md # Analyze tool failure logs
β”‚   β”‚   └── llms-txt.md         # View LLM-optimized documentation
β”‚   β”œβ”€β”€ rules/                  # Behavioral Rules
β”‚   β”‚   β”œβ”€β”€ critical-actions.md # Block dangerous commands (rm -rf, git push -f, etc.)
β”‚   β”‚   β”œβ”€β”€ code-style.md       # Coding conventions and standards
β”‚   β”‚   └── security.md         # Security best practices
β”‚   β”œβ”€β”€ skills/                 # Tool Capabilities
β”‚   β”‚   β”œβ”€β”€ cli-wrappers/       # Lightweight CLI wrappers (Replaces MCP overhead)
β”‚   β”‚   β”‚   β”œβ”€β”€ SKILL.md        # Skill definition and usage
β”‚   β”‚   β”‚   └── references/     # CLI reference documentation
β”‚   β”‚   β”‚       β”œβ”€β”€ github-cli.md
β”‚   β”‚   β”‚       └── mgrep.md
β”‚   β”‚   └── learned/            # Patterns accumulated through /learn command
β”‚   β”œβ”€β”€ contexts/               # Context Templates
β”‚   β”‚   β”œβ”€β”€ backend-context.md  # Backend-specific instructions
β”‚   β”‚   └── frontend-context.md # Frontend-specific instructions
β”‚   └── sessions/               # Saved session summaries (Markdown)
β”œβ”€β”€ .github/
β”‚   └── ISSUE_TEMPLATE/
β”‚       └── feedback.md         # Issue template for feedback
β”œβ”€β”€ docs/                       # Project Documentation
β”‚   β”œβ”€β”€ CORE_STRATEGY_EXPERIMENT_ARCHIVE.md    # Experiment evidence (EN)
β”‚   β”œβ”€β”€ CORE_STRATEGY_EXPERIMENT_ARCHIVE.ko.md # Experiment evidence (KO)
β”‚   β”œβ”€β”€ USER-MANUAL.md          # User manual (EN)
β”‚   └── USER-MANUAL.ko.md       # User manual (KO)
β”œβ”€β”€ scripts/                    # Utilities and Automation
β”‚   β”œβ”€β”€ verify.sh               # General-purpose verification script
β”‚   β”œβ”€β”€ build.sh                # General-purpose build script
β”‚   β”œβ”€β”€ test.sh                 # General-purpose test script
β”‚   β”œβ”€β”€ lint.sh                 # General-purpose lint script
β”‚   β”œβ”€β”€ commit.sh               # Standardized git commit helper
β”‚   β”œβ”€β”€ create-branch.sh        # Branch creation helper
β”‚   β”œβ”€β”€ snapshot.sh             # Atomic rollback for /do commands (git stash)
β”‚   β”œβ”€β”€ analyze-failures.sh     # Log analysis tool for /analyze-failures
β”‚   β”œβ”€β”€ scrub-secrets.js        # Logic to remove secrets when saving sessions
β”‚   β”œβ”€β”€ hooks/                  # Zero-Cost Hooks (Automated checks)
β”‚   β”‚   β”œβ”€β”€ critical-action-check.sh # Pre-block dangerous commands
β”‚   β”‚   β”œβ”€β”€ tool-failure-log.sh      # Record failure log files
β”‚   β”‚   β”œβ”€β”€ pre-compact.sh           # Compaction pre-processor
β”‚   β”‚   β”œβ”€β”€ compact-suggest.sh       # 3-tier compact warnings (25/50/75)
β”‚   β”‚   β”œβ”€β”€ post-edit-format.sh      # Automatic formatting after editing
β”‚   β”‚   β”œβ”€β”€ readonly-check.sh        # Enforce read-only for reviewer
β”‚   β”‚   β”œβ”€β”€ retry-check.sh           # Enforce 2-retry limit for builder
β”‚   β”‚   β”œβ”€β”€ session-start.sh         # Session initialization logic
β”‚   β”‚   β”œβ”€β”€ session-cleanup.sh       # Cleanup and secret removal on exit
β”‚   β”‚   β”œβ”€β”€ stop-collect-context.sh  # Collect context on interruption
β”‚   β”‚   └── notification.sh          # Desktop notifications
β”‚   └── runtime/                # Runtime Auto-detection
β”‚       β”œβ”€β”€ detect.sh           # Project type detection logic
β”‚       └── adapters/           # Build adapters by language
β”‚           β”œβ”€β”€ _interface.sh   # Adapter interface definition
β”‚           β”œβ”€β”€ _template.sh    # Template for new adapters
β”‚           β”œβ”€β”€ generic.sh      # Generic fallback adapter
β”‚           β”œβ”€β”€ go.sh           # Go/Golang adapter
β”‚           β”œβ”€β”€ jvm.sh          # Java/Kotlin/JVM adapter
β”‚           β”œβ”€β”€ node.sh         # Node.js/JavaScript/TypeScript adapter
β”‚           β”œβ”€β”€ python.sh       # Python adapter
β”‚           └── rust.sh         # Rust adapter
└── project-templates/          # Language and Framework Templates
    β”œβ”€β”€ backend/                # Backend project template
    β”‚   └── .claude/
    β”‚       β”œβ”€β”€ CLAUDE.md
    β”‚       └── settings.json
    └── frontend/               # Frontend project template
        └── .claude/
            β”œβ”€β”€ CLAUDE.md
            └── settings.json

Supported Runtimes

Runtime Build Tool Detection Files
JVM Gradle, Maven build.gradle.kts, pom.xml
Node npm, pnpm, yarn, bun package.json
Rust Cargo Cargo.toml
Go Go Modules go.mod
Python pip, poetry, uv pyproject.toml, setup.py, requirements.txt

To add a new runtime, copy and implement scripts/runtime/adapters/_template.sh.


FAQ

Q: How does this configuration optimize the Pro Plan quota?

A: Anthropic's exact quota algorithm is not public. Optimization is based on three pillars:

  • Low-cost model-first path: Start implementation with Haiku, and escalate to Sonnet/Opus only when needed.
  • Output-cost awareness: Output-heavy turns tend to cost more, so response budgets and filtering help keep payloads smaller.
  • Workflow simplification: Use /do and /plan by task type to avoid unnecessary high-cost turns.

For measured evidence, see docs/CORE_STRATEGY_EXPERIMENT_ARCHIVE.md.

Q: Can I use Claude for the full 5 hours?

A: It is not guaranteed. Session length depends on:

  • Task complexity (simple fixes vs. large-scale refactoring).
  • Model usage (mainly Haiku vs. mainly Opus).
  • Context size (small files vs. entire codebase).

This configuration is designed to maximize session length within Pro Plan constraints, but it cannot bypass quota limits.

Q: Can it be used on the Max Plan?

A: Yes, but these optimizations may not be necessary. The Max Plan provides much higher usage limits, making Pro Plan constraints less relevant. For Max Plan users:

  • Opus can be used as the default model without quota concerns.
  • Git Worktrees and parallel sessions are practical.
  • Output budgets and batch execution are still good practices, but not critical.

This configuration is specifically designed for the Pro Plan's 5-hour rolling reset and message-based quota system.

Q: Does it conflict with existing Claude Code settings?

A: On first cpmm setup, CPMM backs up your existing ~/.claude to ~/.claude.pre-cpmm. Re-running cpmm setup recreates CPMM-managed paths and preserves user-owned paths (language settings, local config, learned patterns, sessions). See the 2-Layer structure in the install section for exact boundaries.

Q: Which OS is supported?

A: macOS and Linux are supported. Windows is available through WSL.

Q: Why not use Opus for all tasks?

A: API pricing (reflecting compute cost), Opus 4.6 ($5/MTok input) is much more expensive than Sonnet 4.6 ($3/MTok) or Haiku 4.5 ($1/MTok). While the exact Pro Plan quota impact is not public, using Opus 4.6 for all tasks would deplete the quota much faster. Explicit model selection (/do-opus) is used to ensure awareness when using expensive models.

Q: What happens when /do fails mid-execution?

A: CPMM uses best-effort atomic rollback via scripts/snapshot.sh.

  • Before /do, snapshot.sh push attempts a labeled stash snapshot.
  • On failure, snapshot.sh pop attempts restore and returns one of these statuses:
Status Meaning
RESTORED Labeled CPMM stash was popped successfully.
RESTORE_FAILED git stash pop failed (for example: conflicts).
CHECKOUT_CLEAN No CPMM stash found; fallback git checkout . succeeded.
CLEAN_FAILED Fallback cleanup also failed.

If rollback did not fully restore clean state:

  1. Run git status.
  2. Run git stash list.
  3. Resolve conflicts / remove new untracked files manually, then retry.
  • Cost: Zero (git stash is a local operation)
  • Limitation: Only tracks existing (tracked) files. Newly created files require manual removal.

References


Credits

Contributing

This is an open-source project. Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'feat: Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Create a Pull Request

License

MIT License

About

Minimize waste. Maximize validated work. The ultimate config to beat the Claude Pro quota.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors