claude-pro-minmax 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +127 -58
- package/README.md +127 -58
- package/bin/cpmm.js +2 -697
- package/install.sh +2 -2
- package/lib/cli.js +270 -0
- package/package.json +12 -12
- package/.claude/sessions/2025-01-27-auth-jwt-refresh.md +0 -32
- package/.claude/sessions/README.ko.md +0 -195
- package/.claude/sessions/README.md +0 -195
- package/.claude/skills/learned/README.ko.md +0 -64
- package/.claude/skills/learned/README.md +0 -64
- package/bin/dependency-policy.js +0 -189
package/README.ko.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<!-- Badges -->
|
|
4
4
|
[](https://www.npmjs.com/package/claude-pro-minmax)
|
|
5
5
|
[](https://www.npmjs.com/package/claude-pro-minmax)
|
|
6
|
+
[](https://nodejs.org/)
|
|
6
7
|

|
|
7
8
|

|
|
8
9
|

|
|
@@ -27,91 +28,138 @@ CPMM은 모델 라우팅, 출력 제어, 로컬 안전장치로 리셋 전까지
|
|
|
27
28
|
|
|
28
29
|
## 🛠 설치 (Installation)
|
|
29
30
|
|
|
30
|
-
### 1.
|
|
31
|
+
### 1. 설치 (권장)
|
|
31
32
|
```bash
|
|
32
|
-
npm install -g claude-pro-minmax
|
|
33
|
-
cpmm
|
|
33
|
+
npm install -g claude-pro-minmax@latest
|
|
34
|
+
cpmm setup
|
|
35
|
+
cpmm doctor
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
### 2. 업데이트
|
|
37
39
|
```bash
|
|
38
|
-
|
|
40
|
+
npm install -g claude-pro-minmax@latest
|
|
41
|
+
cpmm setup
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
###
|
|
44
|
+
### 3. 트러블슈팅 (빠른 복구)
|
|
42
45
|
```bash
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
# 누락된 의존성 재설치
|
|
47
|
+
cpmm setup
|
|
48
|
+
|
|
49
|
+
# 상태 확인만
|
|
50
|
+
cpmm doctor
|
|
46
51
|
```
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
- `
|
|
53
|
+
의존성 정책:
|
|
54
|
+
- `required`: `jq`, `mgrep`, `tmux`
|
|
55
|
+
- `optional` (확인만): `claude` (사전 설치 가정)
|
|
56
|
+
- 자동 설치 지원: `npm` (mgrep), `brew` (macOS), Linux 패키지 매니저 `apt-get`, `dnf`, `pacman`, `apk`
|
|
57
|
+
- macOS에서 Homebrew가 없으면 설치 명령을 안내합니다
|
|
58
|
+
|
|
59
|
+
### 4. 커스텀 & 업데이트 정책
|
|
60
|
+
|
|
61
|
+
- `cpmm setup`은 누락된 의존성을 설치한 뒤, CPMM 설정(설정 파일 복사, 언어 선택, Perplexity 설정)까지 진행합니다.
|
|
62
|
+
- `cpmm doctor`는 수정 없이 의존성 상태만 확인합니다.
|
|
63
|
+
- 재실행 시 CPMM 관리 파일은 최신 버전으로 교체되고, 사용자 데이터는 보존됩니다.
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
~/.claude/* ← Global Baseline (CPMM 관리)
|
|
67
|
+
├── agents/ 🔄 업데이트 시 교체됨
|
|
68
|
+
├── commands/ 🔄 업데이트 시 교체됨
|
|
69
|
+
├── contexts/ 🔄 업데이트 시 교체됨
|
|
70
|
+
├── scripts/ 🔄 업데이트 시 교체됨
|
|
71
|
+
├── skills/cli-wrappers/ 🔄 업데이트 시 교체됨
|
|
72
|
+
├── rules/*.md 🔄 업데이트 시 교체됨
|
|
73
|
+
├── settings.json 🔄 업데이트 시 교체됨
|
|
74
|
+
├── settings.local.json ✋ 사용자 소유 — 보존됨
|
|
75
|
+
├── skills/learned/ ✋ 사용자 소유 — 보존됨
|
|
76
|
+
├── sessions/ ✋ 사용자 소유 — 보존됨
|
|
77
|
+
├── plans/ ✋ 사용자 소유 — 보존됨
|
|
78
|
+
├── projects/ ✋ 사용자 소유 — 보존됨
|
|
79
|
+
└── rules/language.md ✋ 사용자 소유 — 보존됨
|
|
80
|
+
|
|
81
|
+
<project>/.claude/* ← Project-Specific (사용자/팀 커스텀)
|
|
82
|
+
├── CLAUDE.md 프로젝트별 지침
|
|
83
|
+
├── commands/ 프로젝트 전용 슬래시 명령어
|
|
84
|
+
├── skills/ 프로젝트 전용 스킬
|
|
85
|
+
├── rules/ 프로젝트 전용 규칙
|
|
86
|
+
└── settings.json 프로젝트 전용 권한/훅/MCP 비활성화
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
> **핵심 규칙 2가지:**
|
|
90
|
+
> 1. 글로벌 커스텀은 `settings.local.json`에만 — `settings.json`은 업데이트 시 덮어쓰기됩니다.
|
|
91
|
+
> 2. 커스텀 명령어/규칙은 프로젝트 `.claude/`에 — 글로벌 `commands/`는 CPMM이 관리합니다.
|
|
92
|
+
|
|
93
|
+
프로젝트 초기화 팁:
|
|
94
|
+
- `claude` 실행 전에 `project-templates/`를 참고해 프로젝트를 초기화하세요. (설치기는 `project-templates`를 `~/.claude`로 복사하지 않습니다.)
|
|
95
|
+
|
|
96
|
+
### 5. 고급 (선택)
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Perplexity, 언어, 수동 설치 보기</summary>
|
|
99
|
+
|
|
100
|
+
**Perplexity/언어 설정 (필수 아님):**
|
|
101
|
+
- Perplexity는 `/dplan`의 웹 리서치에 사용됩니다. 설정하지 않아도 `/dplan`은 Sequential Thinking + Context7으로 동작하며, 나머지 모든 기능은 Perplexity와 무관합니다.
|
|
102
|
+
- 최초 인터랙티브 설치 시 `cpmm setup`이 출력 언어와 Perplexity API 키를 묻습니다.
|
|
103
|
+
- 영어(기본): 파일이 필요 없습니다. `~/.claude/rules/language.md`가 있으면 삭제하세요.
|
|
104
|
+
- 비영어: `~/.claude/rules/language.md`를 만들어 원하는 언어를 지정하세요.
|
|
105
|
+
- Perplexity를 수동으로 설정하려면 `~/.claude.json`의 `mcpServers`에 아래를 추가하세요:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
"perplexity": {
|
|
109
|
+
"command": "npx",
|
|
110
|
+
"args": ["-y", "@perplexity-ai/mcp-server"],
|
|
111
|
+
"env": {
|
|
112
|
+
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
50
116
|
|
|
51
|
-
|
|
117
|
+
**수동 의존성 설치:**
|
|
52
118
|
```bash
|
|
53
|
-
#
|
|
54
|
-
npm install -g @anthropic-ai/claude-code
|
|
119
|
+
# jq
|
|
55
120
|
brew install jq # macOS
|
|
56
|
-
sudo apt-get install jq
|
|
121
|
+
sudo apt-get install -y jq # Ubuntu/Debian
|
|
122
|
+
sudo dnf install -y jq # Fedora/RHEL
|
|
123
|
+
sudo pacman -S --noconfirm jq # Arch
|
|
124
|
+
sudo apk add jq # Alpine
|
|
57
125
|
|
|
58
|
-
#
|
|
126
|
+
# mgrep
|
|
59
127
|
npm install -g @mixedbread/mgrep
|
|
60
128
|
mgrep install-claude-code
|
|
129
|
+
|
|
130
|
+
# tmux
|
|
61
131
|
brew install tmux # macOS
|
|
62
|
-
sudo apt-get install tmux
|
|
132
|
+
sudo apt-get install -y tmux # Ubuntu/Debian
|
|
133
|
+
sudo dnf install -y tmux # Fedora/RHEL
|
|
134
|
+
sudo pacman -S --noconfirm tmux # Arch
|
|
135
|
+
sudo apk add tmux # Alpine
|
|
63
136
|
```
|
|
64
137
|
|
|
65
|
-
|
|
138
|
+
**소스에서 수동 설치:**
|
|
66
139
|
```bash
|
|
67
140
|
git clone https://github.com/move-hoon/claude-pro-minmax.git
|
|
68
141
|
cd claude-pro-minmax
|
|
69
|
-
node bin/cpmm.js
|
|
142
|
+
node bin/cpmm.js setup
|
|
70
143
|
# 고급/디버그 경로 (동일한 내부 설치기):
|
|
71
144
|
# bash install.sh
|
|
72
145
|
```
|
|
73
146
|
|
|
74
|
-
|
|
75
|
-
**Fresh Install을 인터랙티브로 실행할 때 `cpmm install`이 Perplexity API 키와 출력 언어를 묻습니다.**
|
|
76
|
-
설치 시 언어를 건너뛰었다면 수동으로 설정할 수 있습니다:
|
|
77
|
-
- **비영어:** `~/.claude/rules/language.md`를 생성하여 원하는 언어 지정
|
|
78
|
-
- **영어 (기본값):** 파일 불필요. `~/.claude/rules/language.md`가 있으면 삭제
|
|
79
|
-
|
|
80
|
-
Perplexity를 설치 시 건너뛰었다면 나중에 수동으로 설정할 수 있습니다:
|
|
81
|
-
1. `~/.claude.json` 파일을 엽니다.
|
|
82
|
-
2. `mcpServers` 객체 안에 다음 내용을 추가하세요:
|
|
83
|
-
```json
|
|
84
|
-
"perplexity": {
|
|
85
|
-
"command": "npx",
|
|
86
|
-
"args": ["-y", "@perplexity-ai/mcp-server"],
|
|
87
|
-
"env": {
|
|
88
|
-
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
> **함께 포함된 MCP 서버 (기본 활성화):**
|
|
94
|
-
> - **Sequential Thinking**: 복잡한 로직 처리를 위한 강력한 추론 도구
|
|
95
|
-
> - **Context7**: 고급 문서 조회 및 컨텍스트 관리 도구
|
|
96
|
-
|
|
97
|
-
> **Note:** 최초 `cpmm install`(또는 `npx claude-pro-minmax@latest install`) 시 기존 `~/.claude`를 `~/.claude.pre-cpmm`으로 백업합니다. 이후 `cpmm install` 재실행은 CPMM 관리 파일만 업데이트하며, 사용자 설정(`language.md`, `settings.local.json`, `skills/learned/`, `plans/` 등)은 보존됩니다. (`cpmm install`은 내부적으로 `install.sh`를 호출합니다.)
|
|
98
|
-
|
|
99
|
-
### 6. 프로젝트 초기화
|
|
100
|
-
> **Tip:** `claude` 실행 전, 이 저장소의 `project-templates/`를 참고해 프로젝트를 초기화하세요. (설치기는 `project-templates`를 `~/.claude`로 복사하지 않습니다.)
|
|
101
|
-
|
|
102
|
-
### 7. 설치 확인
|
|
103
|
-
```bash
|
|
104
|
-
cpmm setup --check
|
|
105
|
-
cpmm doctor
|
|
106
|
-
# 또는 (전역 설치 없이 1회 실행)
|
|
107
|
-
npx claude-pro-minmax@latest setup --check
|
|
108
|
-
npx claude-pro-minmax@latest doctor
|
|
109
|
-
```
|
|
147
|
+
</details>
|
|
110
148
|
|
|
111
149
|
---
|
|
112
150
|
|
|
113
151
|
## 🚀 빠른 시작 (Quick Start)
|
|
114
152
|
|
|
153
|
+
### ⚡ 첫 60초 (FTUE)
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
claude
|
|
157
|
+
> /plan 이 저장소를 분석하고 작은 개선 1개에 대한 3단계 실행 계획을 제안해줘.
|
|
158
|
+
> /do 1단계만 최소 변경으로 안전하게 구현해줘.
|
|
159
|
+
> /review .
|
|
160
|
+
> /session-save ftue-first-pass
|
|
161
|
+
```
|
|
162
|
+
|
|
115
163
|
### 🤖 에이전트 워크플로우
|
|
116
164
|
|
|
117
165
|
CPMM은 계층적 모델 라우팅을 제공합니다: `/plan`은 @planner (Sonnet 4.6) → @builder (Haiku 4.5) 체인으로 복잡한 작업을 처리하고, `/do`는 현재 세션 모델에서 직접 실행하여 속도를 높입니다.
|
|
@@ -250,10 +298,16 @@ claude-pro-minmax
|
|
|
250
298
|
├── .claude.json # 글로벌 MCP 설정 (User Scope)
|
|
251
299
|
├── .claudeignore # Claude 컨텍스트 제외 규칙
|
|
252
300
|
├── .gitignore # Git ignore 규칙
|
|
253
|
-
├──
|
|
301
|
+
├── CONTRIBUTING.md # 기여 가이드
|
|
302
|
+
├── install.sh # 핵심 설치 스크립트 (`cpmm setup`이 내부 호출)
|
|
254
303
|
├── LICENSE # MIT 라이선스
|
|
255
304
|
├── README.md # 영문 문서
|
|
256
305
|
├── README.ko.md # 국문 문서
|
|
306
|
+
├── package.json # npm 패키지 매니페스트
|
|
307
|
+
├── bin/ # CPMM CLI 엔트리포인트
|
|
308
|
+
│ ├── cpmm.js # `cpmm` 실행 진입점
|
|
309
|
+
├── lib/ # CPMM CLI 코어 구현
|
|
310
|
+
│ └── cli.js # setup/doctor 명령 로직
|
|
257
311
|
├── .claude/
|
|
258
312
|
│ ├── CLAUDE.md # 핵심 지침 (모든 세션에 로드됨)
|
|
259
313
|
│ ├── settings.json # 프로젝트 설정 (권한, 훅, 환경변수)
|
|
@@ -399,7 +453,7 @@ A: 네, 하지만 이러한 최적화가 필요하지 않을 수 있습니다. M
|
|
|
399
453
|
<details>
|
|
400
454
|
<summary><strong>Q: 기존 Claude Code 설정과 충돌하나요?</strong></summary>
|
|
401
455
|
|
|
402
|
-
A: 최초 `cpmm
|
|
456
|
+
A: 최초 `cpmm setup` 시 기존 `~/.claude`를 `~/.claude.pre-cpmm`으로 백업합니다. 재실행 시 CPMM 관리 경로는 재생성되고, 사용자 소유 경로(언어 설정, 로컬 설정, 학습 패턴, 세션)는 보존됩니다. 정확한 경계는 설치 섹션의 2-Layer 구조를 참고하세요.
|
|
403
457
|
</details>
|
|
404
458
|
|
|
405
459
|
<details>
|
|
@@ -417,7 +471,22 @@ A: API 가격(컴퓨팅 비용 반영)을 보면 Opus 4.6 ($5/MTok input)은 Son
|
|
|
417
471
|
<details>
|
|
418
472
|
<summary><strong>Q: /do 실행 중 실패하면 어떻게 되나요?</strong></summary>
|
|
419
473
|
|
|
420
|
-
A: CPMM은
|
|
474
|
+
A: CPMM은 `scripts/snapshot.sh`를 통한 **best-effort 원자적 롤백**을 사용합니다.
|
|
475
|
+
|
|
476
|
+
- `/do` 실행 전 `snapshot.sh push`로 라벨된 stash 스냅샷을 시도합니다.
|
|
477
|
+
- 실패 시 `snapshot.sh pop`이 복구를 시도하며, 아래 상태 중 하나를 반환합니다:
|
|
478
|
+
|
|
479
|
+
| 상태 | 의미 |
|
|
480
|
+
| --- | --- |
|
|
481
|
+
| `RESTORED` | CPMM 라벨 stash를 정상 pop하여 복구 완료 |
|
|
482
|
+
| `RESTORE_FAILED` | `git stash pop` 실패 (예: 충돌) |
|
|
483
|
+
| `CHECKOUT_CLEAN` | CPMM stash가 없어 fallback `git checkout .` 성공 |
|
|
484
|
+
| `CLEAN_FAILED` | fallback 정리도 실패 |
|
|
485
|
+
|
|
486
|
+
롤백 후에도 완전히 깨끗하지 않다면:
|
|
487
|
+
1. `git status` 확인
|
|
488
|
+
2. `git stash list` 확인
|
|
489
|
+
3. 충돌 해결/새 untracked 파일 수동 정리 후 재시도
|
|
421
490
|
|
|
422
491
|
- 비용: 0 (git stash는 로컬 작업)
|
|
423
492
|
- 제한: 기존(tracked) 파일만 추적. 새로 생성된 파일은 수동 제거 필요.
|
package/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<!-- Badges -->
|
|
4
4
|
[](https://www.npmjs.com/package/claude-pro-minmax)
|
|
5
5
|
[](https://www.npmjs.com/package/claude-pro-minmax)
|
|
6
|
+
[](https://nodejs.org/)
|
|
6
7
|

|
|
7
8
|

|
|
8
9
|

|
|
@@ -27,91 +28,138 @@ CPMM helps Pro users complete more verified tasks before reset through model rou
|
|
|
27
28
|
|
|
28
29
|
## 🛠 Installation
|
|
29
30
|
|
|
30
|
-
### 1.
|
|
31
|
+
### 1. Install (Recommended)
|
|
31
32
|
```bash
|
|
32
|
-
npm install -g claude-pro-minmax
|
|
33
|
-
cpmm
|
|
33
|
+
npm install -g claude-pro-minmax@latest
|
|
34
|
+
cpmm setup
|
|
35
|
+
cpmm doctor
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
### 2. Update
|
|
37
39
|
```bash
|
|
38
|
-
|
|
40
|
+
npm install -g claude-pro-minmax@latest
|
|
41
|
+
cpmm setup
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
###
|
|
44
|
+
### 3. Troubleshooting (Quick)
|
|
42
45
|
```bash
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
# re-run setup to install any missing deps
|
|
47
|
+
cpmm setup
|
|
48
|
+
|
|
49
|
+
# check status only
|
|
50
|
+
cpmm doctor
|
|
46
51
|
```
|
|
47
52
|
|
|
48
|
-
|
|
49
|
-
- `
|
|
53
|
+
Dependency policy:
|
|
54
|
+
- `required`: `jq`, `mgrep`, `tmux`
|
|
55
|
+
- `optional` (check only): `claude` (assumed pre-installed)
|
|
56
|
+
- auto-install supports `npm` (mgrep), `brew` (macOS), and Linux package managers `apt-get`, `dnf`, `pacman`, `apk`
|
|
57
|
+
- on macOS without Homebrew, setup prints the Homebrew install command
|
|
58
|
+
|
|
59
|
+
### 4. Customization & Update Policy
|
|
60
|
+
|
|
61
|
+
- `cpmm setup` installs missing dependencies, then configures CPMM (copies config files, language selection, Perplexity setup).
|
|
62
|
+
- `cpmm doctor` checks dependency status without modifying anything.
|
|
63
|
+
- Re-running `cpmm setup` replaces CPMM-managed files with the latest version while preserving user data.
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
~/.claude/* ← Global Baseline (CPMM-managed)
|
|
67
|
+
├── agents/ 🔄 Replaced on update
|
|
68
|
+
├── commands/ 🔄 Replaced on update
|
|
69
|
+
├── contexts/ 🔄 Replaced on update
|
|
70
|
+
├── scripts/ 🔄 Replaced on update
|
|
71
|
+
├── skills/cli-wrappers/ 🔄 Replaced on update
|
|
72
|
+
├── rules/*.md 🔄 Replaced on update
|
|
73
|
+
├── settings.json 🔄 Replaced on update
|
|
74
|
+
├── settings.local.json ✋ User-owned — preserved
|
|
75
|
+
├── skills/learned/ ✋ User-owned — preserved
|
|
76
|
+
├── sessions/ ✋ User-owned — preserved
|
|
77
|
+
├── plans/ ✋ User-owned — preserved
|
|
78
|
+
├── projects/ ✋ User-owned — preserved
|
|
79
|
+
└── rules/language.md ✋ User-owned — preserved
|
|
80
|
+
|
|
81
|
+
<project>/.claude/* ← Project-Specific (user/team customization)
|
|
82
|
+
├── CLAUDE.md Project-specific instructions
|
|
83
|
+
├── commands/ Project-specific slash commands
|
|
84
|
+
├── skills/ Project-specific skills
|
|
85
|
+
├── rules/ Project-specific rules
|
|
86
|
+
└── settings.json Project-specific permissions/hooks/MCP disable
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
> **Two key rules:**
|
|
90
|
+
> 1. Global customization goes in `settings.local.json` only — `settings.json` is overwritten on update.
|
|
91
|
+
> 2. Custom commands/rules go in project `.claude/` — global `commands/` is managed by CPMM.
|
|
92
|
+
|
|
93
|
+
Project initialization tip:
|
|
94
|
+
- Before running `claude`, initialize your project with templates in `project-templates/` (not copied into `~/.claude`).
|
|
95
|
+
|
|
96
|
+
### 5. Advanced (Optional)
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Perplexity, language, manual install</summary>
|
|
99
|
+
|
|
100
|
+
**Perplexity/Language setup (not required):**
|
|
101
|
+
- Perplexity is used for web research in `/dplan`. Without it, `/dplan` still works via Sequential Thinking + Context7. All other features are unrelated to Perplexity.
|
|
102
|
+
- On fresh interactive installs, `cpmm setup` asks for output language and Perplexity API key.
|
|
103
|
+
- English (default): no file needed; remove `~/.claude/rules/language.md` if it exists.
|
|
104
|
+
- Non-English: create `~/.claude/rules/language.md` with your preferred language.
|
|
105
|
+
- To configure Perplexity manually, add this under `mcpServers` in `~/.claude.json`:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
"perplexity": {
|
|
109
|
+
"command": "npx",
|
|
110
|
+
"args": ["-y", "@perplexity-ai/mcp-server"],
|
|
111
|
+
"env": {
|
|
112
|
+
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
50
116
|
|
|
51
|
-
|
|
117
|
+
**Manual dependency setup:**
|
|
52
118
|
```bash
|
|
53
|
-
#
|
|
54
|
-
npm install -g @anthropic-ai/claude-code
|
|
119
|
+
# jq
|
|
55
120
|
brew install jq # macOS
|
|
56
|
-
sudo apt-get install jq
|
|
121
|
+
sudo apt-get install -y jq # Ubuntu/Debian
|
|
122
|
+
sudo dnf install -y jq # Fedora/RHEL
|
|
123
|
+
sudo pacman -S --noconfirm jq # Arch
|
|
124
|
+
sudo apk add jq # Alpine
|
|
57
125
|
|
|
58
|
-
#
|
|
126
|
+
# mgrep
|
|
59
127
|
npm install -g @mixedbread/mgrep
|
|
60
128
|
mgrep install-claude-code
|
|
129
|
+
|
|
130
|
+
# tmux
|
|
61
131
|
brew install tmux # macOS
|
|
62
|
-
sudo apt-get install tmux
|
|
132
|
+
sudo apt-get install -y tmux # Ubuntu/Debian
|
|
133
|
+
sudo dnf install -y tmux # Fedora/RHEL
|
|
134
|
+
sudo pacman -S --noconfirm tmux # Arch
|
|
135
|
+
sudo apk add tmux # Alpine
|
|
63
136
|
```
|
|
64
137
|
|
|
65
|
-
|
|
138
|
+
**Manual install from source:**
|
|
66
139
|
```bash
|
|
67
140
|
git clone https://github.com/move-hoon/claude-pro-minmax.git
|
|
68
141
|
cd claude-pro-minmax
|
|
69
|
-
node bin/cpmm.js
|
|
142
|
+
node bin/cpmm.js setup
|
|
70
143
|
# advanced/debug path (same underlying installer):
|
|
71
144
|
# bash install.sh
|
|
72
145
|
```
|
|
73
146
|
|
|
74
|
-
|
|
75
|
-
**On fresh interactive installs, `cpmm install` asks for your Perplexity API Key and output language.**
|
|
76
|
-
If you skipped language selection, you can configure it manually:
|
|
77
|
-
- **Non-English:** Create `~/.claude/rules/language.md` with your preferred language
|
|
78
|
-
- **English (default):** No file needed. Remove `~/.claude/rules/language.md` if it exists
|
|
79
|
-
|
|
80
|
-
If you skipped Perplexity setup during installation, you can set it up manually:
|
|
81
|
-
1. Open `~/.claude.json`.
|
|
82
|
-
2. Add the following to the `mcpServers` object:
|
|
83
|
-
```json
|
|
84
|
-
"perplexity": {
|
|
85
|
-
"command": "npx",
|
|
86
|
-
"args": ["-y", "@perplexity-ai/mcp-server"],
|
|
87
|
-
"env": {
|
|
88
|
-
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
> **Other included MCP servers (Enabled by default):**
|
|
94
|
-
> - **Sequential Thinking**: Powerful reasoning tool for complex logic.
|
|
95
|
-
> - **Context7**: Advanced documentation fetching and context management.
|
|
96
|
-
|
|
97
|
-
> **Note:** On first `cpmm install` (or `npx claude-pro-minmax@latest install`), CPMM backs up your existing `~/.claude` to `~/.claude.pre-cpmm`. Re-running install via `cpmm install` updates CPMM-managed files in-place while preserving your settings (`language.md`, `settings.local.json`, `skills/learned/`, `plans/`, etc.). (`cpmm install` invokes `install.sh` internally.)
|
|
98
|
-
|
|
99
|
-
### 6. Project Initialization
|
|
100
|
-
> **Tip:** Before running `claude`, initialize your project by referencing templates in this repository's `project-templates/` directory. (The installer does not copy `project-templates` into `~/.claude`.)
|
|
101
|
-
|
|
102
|
-
### 7. Verify Installation
|
|
103
|
-
```bash
|
|
104
|
-
cpmm setup --check
|
|
105
|
-
cpmm doctor
|
|
106
|
-
# or (no global install)
|
|
107
|
-
npx claude-pro-minmax@latest setup --check
|
|
108
|
-
npx claude-pro-minmax@latest doctor
|
|
109
|
-
```
|
|
147
|
+
</details>
|
|
110
148
|
|
|
111
149
|
---
|
|
112
150
|
|
|
113
151
|
## 🚀 Quick Start
|
|
114
152
|
|
|
153
|
+
### ⚡ First 60 Seconds (FTUE)
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
claude
|
|
157
|
+
> /plan Analyze this repository and propose a 3-step implementation plan for one small improvement.
|
|
158
|
+
> /do Implement step 1 only, with minimal and safe changes.
|
|
159
|
+
> /review .
|
|
160
|
+
> /session-save ftue-first-pass
|
|
161
|
+
```
|
|
162
|
+
|
|
115
163
|
### 🤖 Agent Workflow
|
|
116
164
|
|
|
117
165
|
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.
|
|
@@ -250,10 +298,16 @@ claude-pro-minmax
|
|
|
250
298
|
├── .claude.json # Global MCP Settings (User Scope)
|
|
251
299
|
├── .claudeignore # Files excluded from Claude's context
|
|
252
300
|
├── .gitignore # Git ignore rules
|
|
253
|
-
├──
|
|
301
|
+
├── CONTRIBUTING.md # Contribution guide
|
|
302
|
+
├── install.sh # Core installer (invoked by `cpmm setup`)
|
|
254
303
|
├── LICENSE # MIT License
|
|
255
304
|
├── README.md # English Documentation
|
|
256
305
|
├── README.ko.md # Korean Documentation
|
|
306
|
+
├── package.json # npm package manifest
|
|
307
|
+
├── bin/ # CPMM CLI entrypoints
|
|
308
|
+
│ ├── cpmm.js # `cpmm` executable entry
|
|
309
|
+
├── lib/ # CPMM CLI core implementation
|
|
310
|
+
│ └── cli.js # setup/doctor command logic
|
|
257
311
|
├── .claude/
|
|
258
312
|
│ ├── CLAUDE.md # Core Instructions (Loaded in all sessions)
|
|
259
313
|
│ ├── settings.json # Project Settings (Permissions, hooks, env vars)
|
|
@@ -399,7 +453,7 @@ This configuration is specifically designed for the Pro Plan's 5-hour rolling re
|
|
|
399
453
|
<details>
|
|
400
454
|
<summary><strong>Q: Does it conflict with existing Claude Code settings?</strong></summary>
|
|
401
455
|
|
|
402
|
-
A: On first `cpmm
|
|
456
|
+
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.
|
|
403
457
|
</details>
|
|
404
458
|
|
|
405
459
|
<details>
|
|
@@ -417,7 +471,22 @@ A: API pricing (reflecting compute cost), Opus 4.6 ($5/MTok input) is much more
|
|
|
417
471
|
<details>
|
|
418
472
|
<summary><strong>Q: What happens when /do fails mid-execution?</strong></summary>
|
|
419
473
|
|
|
420
|
-
A: CPMM uses **
|
|
474
|
+
A: CPMM uses **best-effort atomic rollback** via `scripts/snapshot.sh`.
|
|
475
|
+
|
|
476
|
+
- Before `/do`, `snapshot.sh push` attempts a labeled stash snapshot.
|
|
477
|
+
- On failure, `snapshot.sh pop` attempts restore and returns one of these statuses:
|
|
478
|
+
|
|
479
|
+
| Status | Meaning |
|
|
480
|
+
| --- | --- |
|
|
481
|
+
| `RESTORED` | Labeled CPMM stash was popped successfully. |
|
|
482
|
+
| `RESTORE_FAILED` | `git stash pop` failed (for example: conflicts). |
|
|
483
|
+
| `CHECKOUT_CLEAN` | No CPMM stash found; fallback `git checkout .` succeeded. |
|
|
484
|
+
| `CLEAN_FAILED` | Fallback cleanup also failed. |
|
|
485
|
+
|
|
486
|
+
If rollback did not fully restore clean state:
|
|
487
|
+
1. Run `git status`.
|
|
488
|
+
2. Run `git stash list`.
|
|
489
|
+
3. Resolve conflicts / remove new untracked files manually, then retry.
|
|
421
490
|
|
|
422
491
|
- Cost: Zero (git stash is a local operation)
|
|
423
492
|
- Limitation: Only tracks existing (tracked) files. Newly created files require manual removal.
|