@kaitranntt/ccs 4.3.10 → 4.4.0

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.vi.md DELETED
@@ -1,649 +0,0 @@
1
- <div align="center">
2
-
3
- # CCS - Claude Code Switch
4
-
5
- ![CCS Logo](docs/assets/ccs-logo-medium.png)
6
-
7
- ### Một lệnh, không downtime, nhiều tài khoản
8
-
9
- **Chuyển đổi giữa nhiều tài khoản Claude, GLM, và Kimi ngay lập tức.**
10
- Ngừng hitting rate limits. Làm việc liên tục.
11
-
12
- <br>
13
-
14
- [![License](https://img.shields.io/badge/license-MIT-C15F3C?style=for-the-badge)](LICENSE)
15
- [![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey?style=for-the-badge)]()
16
- [![npm](https://img.shields.io/npm/v/@kaitranntt/ccs?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@kaitranntt/ccs)
17
- [![PoweredBy](https://img.shields.io/badge/PoweredBy-ClaudeKit-C15F3C?style=for-the-badge)](https://claudekit.cc?ref=HMNKXOHN)
18
-
19
- **Languages**: [English](README.md) · [Tiếng Việt](README.vi.md) · [日本語](README.ja.md)
20
-
21
- </div>
22
-
23
- <br>
24
-
25
- ## Bắt Đầu Nhanh
26
-
27
- ### Cài Đặt
28
-
29
- **npm Package (Được khuyến nghị)**
30
-
31
- **macOS / Linux / Windows**
32
- ```bash
33
- npm install -g @kaitranntt/ccs
34
- ```
35
-
36
- **Tất cả các trình quản lý package chính đều được hỗ trợ:**
37
-
38
- ```bash
39
- # yarn
40
- yarn global add @kaitranntt/ccs
41
-
42
- # pnpm (ít hơn 70% dung lượng đĩa)
43
- pnpm add -g @kaitranntt/ccs
44
-
45
- # bun (nhanh hơn 30x)
46
- bun add -g @kaitranntt/ccs
47
- ```
48
-
49
- <details>
50
- <summary><strong>Phương án thay thế: Cài Đặt Trực Tiếp (Truyền thống)</strong></summary>
51
-
52
- <br>
53
-
54
- **macOS / Linux**
55
- ```bash
56
- curl -fsSL ccs.kaitran.ca/install | bash
57
- ```
58
-
59
- **Windows PowerShell**
60
- ```powershell
61
- irm ccs.kaitran.ca/install | iex
62
- ```
63
-
64
- **Lưu ý**: Cài truyền thống bỏ qua Node.js routing để khởi động nhanh hơn, nhưng ưu tiên npm cho dễ dàng tự động hóa triển khai.
65
-
66
- </details>
67
-
68
- <br>
69
-
70
- ### Cấu Hình (Tự Tạo)
71
-
72
- **CCS tự động tạo cấu hình trong quá trình cài đặt** (thông qua script postinstall của npm).
73
-
74
- **~/.ccs/config.json**:
75
- ```json
76
- {
77
- "profiles": {
78
- "glm": "~/.ccs/glm.settings.json",
79
- "glmt": "~/.ccs/glmt.settings.json",
80
- "kimi": "~/.ccs/kimi.settings.json",
81
- "default": "~/.claude/settings.json"
82
- }
83
- }
84
- ```
85
-
86
- <details>
87
- <summary><h3>Custom Claude CLI Path</h3></summary>
88
-
89
- <br>
90
-
91
- Nếu Claude CLI được cài đặt ở vị trí không chuẩn (ổ D, thư mục tùy chỉnh), đặt `CCS_CLAUDE_PATH`:
92
-
93
- ```bash
94
- # Unix/Linux/macOS
95
- export CCS_CLAUDE_PATH="/path/to/claude"
96
-
97
- # Windows PowerShell
98
- $env:CCS_CLAUDE_PATH = "D:\Tools\Claude\claude.exe"
99
- ```
100
-
101
- **Xem thêm**: [Hướng dẫn Khắc phục Sự cố](./docs/en/troubleshooting.md#claude-cli-in-non-standard-location) để biết chi tiết cài đặt.
102
-
103
- </details>
104
-
105
- <details>
106
- <summary><h3>Windows Symlink Support (Developer Mode)</h3></summary>
107
-
108
- <br>
109
-
110
- **Người dùng Windows**: Bật Chế độ Nhà phát triển để có symlink thực sự (hiệu suất tốt hơn, đồng bộ hóa tức thì):
111
-
112
- 1. Mở **Settings** → **Privacy & Security** → **For developers**
113
- 2. Bật **Developer Mode**
114
- 3. Cài đặt lại CCS: `npm install -g @kaitranntt/ccs`
115
-
116
- **Cảnh báo**: Nếu không có Chế độ Nhà phát triển, CCS tự động chuyển sang sao chép thư mục (hoạt động nhưng không đồng bộ tức thì trên các profile).
117
-
118
- </details>
119
-
120
- <br>
121
-
122
- ### Lần Chuyển Đổi Đầu Tiên
123
-
124
- > [!IMPORTANT]
125
- > **Trước khi dùng các mô hình thay thế, cập nhật API keys trong file settings:**
126
- >
127
- > - **GLM**: Chỉnh sửa `~/.ccs/glm.settings.json` và thêm Z.AI Coding Plan API Key của bạn
128
- > - **GLMT**: Chỉnh sửa `~/.ccs/glmt.settings.json` và thêm Z.AI Coding Plan API Key của bạn
129
- > - **Kimi**: Chỉnh sửa `~/.ccs/kimi.settings.json` và thêm Kimi API key của bạn
130
-
131
- <br>
132
-
133
- **Parallel Workflow: Planning + Execution**
134
-
135
- ```bash
136
- # Terminal 1 - Planning (Claude Sonnet)
137
- ccs "Plan a REST API with authentication and rate limiting"
138
-
139
- # Terminal 2 - Execution (GLM, cost-optimized)
140
- ccs glm "Implement the user authentication endpoints from the plan"
141
- ```
142
-
143
- <details>
144
- <summary><strong>Thinking Models (Kimi & GLMT)</strong></summary>
145
-
146
- <br>
147
-
148
- ```bash
149
- # Kimi - Stable thinking support
150
- ccs kimi "Design a caching strategy with trade-off analysis"
151
-
152
- # GLMT - Experimental (see full disclaimer below)
153
- ccs glmt "Debug complex algorithm with reasoning steps"
154
- ```
155
-
156
- **Lưu ý:** GLMT là thử nghiệm và không ổn định. Xem phần [GLM with Thinking (GLMT)](#glm-with-thinking-glmt) dưới đây để biết chi tiết.
157
-
158
- </details>
159
-
160
- <br>
161
-
162
- ## The Daily Developer Pain Point
163
-
164
- <div align="center">
165
-
166
- ### **DỪNG việc chuyển đổi. BẮT ĐẦU điều phối.**
167
-
168
- **Giới hạn phiên không nên phá hỏng trạng thái dòng chảy của bạn.**
169
- </div>
170
-
171
- Bạn đang sâu trong triển khai. Ngữ cảnh đã tải. Giải pháp đang kết tinh.<br>
172
- Sau đó: 🔴 _"Bạn đã đạt đến giới hạn sử dụng."_
173
-
174
- **Động lực mất đi. Ngữ cảnh mất. Năng suất sụp đổ.**
175
-
176
- ## **Giải pháp: Quy trình công việc song song**
177
-
178
- <details>
179
- <summary><strong>❌ CÁCH CŨ:</strong> Chuyển đổi khi bạn đạt đến giới hạn (Phản ứng)</summary>
180
-
181
- ### Quy trình làm việc hiện tại của bạn:
182
- - **2pm:** Xây dựng tính năng, trong vùng
183
- - **3pm:** 🔴 Đạt giới hạn sử dụng
184
- - **3:05pm:** Dừng công việc, chỉnh sửa `~/.claude/settings.json`
185
- - **3:15pm:** Chuyển tài khoản, mất ngữ cảnh
186
- - **3:30pm:** Cố gắng quay lại trạng thái dòng chảy
187
- - **4pm:** Cuối cùng cũng năng suất trở lại
188
-
189
- - **Kết quả:** Mất 1 giờ, động lực bị phá hủy, sự thất vọng tăng lên
190
-
191
- </details>
192
-
193
- <details open>
194
- <summary><strong>✨ CÁCH MỚI:</strong> Chạy song song ngay từ đầu (Chủ động) - <strong>ĐƯỢC KHUYÊN NGHỊ</strong></summary>
195
-
196
- ### Quy trình làm việc mới của bạn:
197
- - **2pm:** **Terminal 1:** `ccs "Lập kế hoạch kiến trúc API"` → Tư duy chiến lược (Claude Pro)
198
- - **2pm:** **Terminal 2:** `ccs glm "Triển khai các điểm cuối API"` → Thực thi mã (GLM)
199
- - **3pm:** Vẫn đang giao hàng, không có gián đoạn
200
- - **4pm:** Đạt trạng thái dòng chảy, năng suất tăng vọt
201
- - **5pm:** Tính năng đã giao hàng, ngữ cảnh được duy trì
202
-
203
- - **Kết quả:** Không có thời gian chết, năng suất liên tục, ít thất vọng hơn
204
-
205
- ### 💰 **Giá trị đề xuất:**
206
- - **Thiết lập:** Claude Pro hiện tại của bạn + GLM Lite (add-on hiệu quả về chi phí)
207
- - **Giá trị:** Tiết kiệm 1 giờ/ngày × 20 ngày làm việc = 20 giờ/tháng được phục hồi
208
- - **ROI:** Thời gian phát triển của bạn có giá trị hơn chi phí thiết lập
209
- - **Thực tế:** Giao hàng nhanh hơn chi phí vận hành
210
-
211
- </details>
212
-
213
- ## Chọn con đường của bạn
214
-
215
- <details>
216
- <summary><strong>Tập trung vào ngân sách:</strong> Chỉ GLM</summary>
217
-
218
- - **Tốt nhất cho:** Phát triển tiết kiệm chi phí, tạo mã cơ bản
219
- - **Sử dụng:** Chỉ sử dụng `ccs glm` trực tiếp để được trợ giúp AI hiệu quả về chi phí
220
- - **Thực tế:** Không có quyền truy cập Claude, nhưng có khả năng cho nhiều nhiệm vụ mã hóa
221
- - **Thiết lập:** Chỉ cần API key GLM, rất phải chăng
222
-
223
- </details>
224
-
225
- <details open>
226
- <summary><strong>✨ Được khuyên nghị cho phát triển hàng ngày:</strong> 1 Claude Pro + 1 GLM Lite</summary>
227
-
228
- - **Tốt nhất cho:** Giao hàng mã hàng ngày, công việc phát triển nghiêm túc
229
- - **Sử dụng:** `ccs` để lập kế hoạch + `ccs glm` để thực thi (quy trình công việc song song)
230
- - **Thực tế:** Cân bằng hoàn hảo giữa khả năng và chi phí cho hầu hết các nhà phát triển
231
- - **Giá trị:** Không bao giờ đạt đến giới hạn phiên, năng suất liên tục
232
-
233
- </details>
234
-
235
- <details>
236
- <summary><strong>Power User:</strong> Nhiều Claude Pro + GLM Pro</summary>
237
-
238
- - **Tốt nhất cho:** Nhiều công việc, dự án đồng thời, solo dev
239
- - **Mở khóa:** Không bao giờ cạn kiệt giới hạn phiên hoặc hàng tuần
240
- - **Quy trình làm việc:** 3+ terminal chạy các nhiệm vụ chuyên biệt đồng thời
241
-
242
- </details>
243
-
244
- <details>
245
- <summary><strong>Tập trung vào quyền riêng tư:</strong> Cách ly Công việc/Cá nhân</summary>
246
-
247
- - **Khi cần:** Cách ly nghiêm ngặt ngữ cảnh AI công việc và cá nhân
248
- - **Thiết lập:** `ccs auth create work` + `ccs auth create personal`
249
- - **Lưu ý:** Tính năng nâng cao - hầu hết người dùng không cần điều này
250
-
251
- </details>
252
-
253
- ---
254
-
255
- ## Why CCS Instead of Manual Switching?
256
-
257
- <div align="center">
258
-
259
- **CCS không phải về "chuyển đổi khi bạn đạt đến giới hạn lúc 3pm."**
260
-
261
- ## **Nó về việc chạy song song ngay từ đầu.**
262
-
263
- </div>
264
-
265
- ### Sự khác biệt cốt lõi
266
-
267
- | **Chuyển đổi thủ công** | **Điều phối CCS** |
268
- |:---|:---|
269
- | 🔴 Đạt giới hạn → Dừng công việc → Chỉnh sửa tệp cấu hình → Khởi động lại | ✅ Nhiều terminal chạy các mô hình khác nhau ngay từ đầu |
270
- | 😰 Mất ngữ cảnh và gián đoạn trạng thái dòng chảy | 😌 Năng suất liên tục với ngữ cảnh được bảo toàn |
271
- | 📝 Xử lý nhiệm vụ tuần tự | ⚡ Quy trình công việc song song (lập kế hoạch + thực thi đồng thời) |
272
- | 🛠️ Giải quyết vấn đề phản ứng khi bị chặn | 🎯 Thiết kế quy trình công việc chủ động ngăn chặn chặn |
273
-
274
- ### CCS mang lại cho bạn
275
-
276
- - **Không chuyển đổi ngữ cảnh:** Duy trì trạng thái dòng chảy của bạn mà không bị gián đoạn
277
- - **Năng suất song song:** Lập kế hoạch chiến lược trong một terminal, thực thi mã trong terminal khác
278
- - **Quản lý tài khoản tức thì:** Một lệnh chuyển đổi, không cần chỉnh sửa tệp cấu hình
279
- - **Cách ly công việc-cuộc sống:** Cách ly ngữ cảnh mà không cần đăng xuất
280
- - **Tính nhất quán đa nền tảng:** Trải nghiệm mượt mà tương tự trên macOS, Linux, Windows
281
-
282
- <br>
283
-
284
- ## Architecture
285
-
286
- ### Profile Types
287
-
288
- **Settings-based**: GLM, GLMT, Kimi, default
289
- - Uses `--settings` flag pointing to config files
290
- - GLMT: Embedded proxy for thinking mode support
291
-
292
- **Account-based**: work, personal, team
293
- - Uses `CLAUDE_CONFIG_DIR` for isolated instances
294
- - Create with `ccs auth create <profile>`
295
-
296
- ### Shared Data (v3.1)
297
-
298
- Commands and skills symlinked from `~/.ccs/shared/` - **no duplication across profiles**.
299
-
300
- ```plaintext
301
- ~/.ccs/
302
- ├── shared/ # Shared across all profiles
303
- │ ├── agents/
304
- │ ├── commands/
305
- │ └── skills/
306
- ├── instances/ # Profile-specific data
307
- │ └── work/
308
- │ ├── agents@ → shared/agents/
309
- │ ├── commands@ → shared/commands/
310
- │ ├── skills@ → shared/skills/
311
- │ ├── settings.json # API keys, credentials
312
- │ ├── sessions/ # Conversation history
313
- │ └── ...
314
- ```
315
-
316
- | Type | Files |
317
- |:-----|:------|
318
- | **Shared** | `commands/`, `skills/`, `agents/` |
319
- | **Profile-specific** | `settings.json`, `sessions/`, `todolists/`, `logs/` |
320
-
321
- > [!NOTE]
322
- > **Windows**: Copies directories if symlinks unavailable (enable Developer Mode for true symlinks)
323
-
324
- <br>
325
-
326
- ## Usage Examples
327
-
328
- ### Basic Switching
329
-
330
- ```bash
331
- ccs # Claude subscription (default)
332
- ccs glm # GLM (cost-optimized)
333
- ccs kimi # Kimi (with thinking support)
334
- ```
335
-
336
- ### Multi-Account Setup
337
-
338
- ```bash
339
- # Create accounts
340
- ccs auth create work
341
- ccs auth create personal
342
- ```
343
-
344
- **Run concurrently in separate terminals:**
345
-
346
- ```bash
347
- # Terminal 1 - Work
348
- ccs work "implement feature"
349
-
350
- # Terminal 2 - Personal (concurrent)
351
- ccs personal "review code"
352
- ```
353
-
354
- ### Help & Version
355
-
356
- ```bash
357
- ccs --version # Show version
358
- ccs --help # Show all commands and options
359
- ```
360
-
361
- <br>
362
-
363
- ## GLM with Thinking (GLMT)
364
-
365
- > [!CAUTION]
366
- > ### NOT PRODUCTION READY - EXPERIMENTAL FEATURE
367
- >
368
- > **GLMT is experimental and requires extensive debugging**:
369
- > - Streaming and tool support still under active development
370
- > - May experience unexpected errors, timeouts, or incomplete responses
371
- > - Requires frequent debugging and manual intervention
372
- > - **Not recommended for critical workflows or production use**
373
- >
374
- > **Alternative for GLM Thinking**: Consider going through the **CCR hustle** with the **Transformer of Bedolla** ([ZaiTransformer](https://github.com/Bedolla/ZaiTransformer/)) for a more stable implementation.
375
-
376
- > [!IMPORTANT]
377
- > GLMT requires npm installation (`npm install -g @kaitranntt/ccs`). Not available in native shell versions (requires Node.js HTTP server).
378
-
379
- <br>
380
-
381
- > [!NOTE]
382
- > ### Acknowledgments: The Foundation That Made GLMT Possible
383
- >
384
- > **CCS's GLMT implementation owes its existence to the groundbreaking work of [@Bedolla](https://github.com/Bedolla)**, who created [ZaiTransformer](https://github.com/Bedolla/ZaiTransformer/) - the **first integration** to bridge [Claude Code Router (CCR)](https://github.com/musistudio/claude-code-router) with Z.AI's reasoning capabilities.
385
- >
386
- > Before ZaiTransformer, no one had successfully integrated Z.AI's thinking mode with Claude Code's workflow. Bedolla's work wasn't just helpful - it was **foundational**. His implementation of request/response transformation architecture, thinking mode control mechanisms, and embedded proxy design directly inspired and enabled GLMT's design.
387
- >
388
- > **Without ZaiTransformer's pioneering work, GLMT wouldn't exist in its current form.** If you benefit from GLMT's thinking capabilities, please consider starring [ZaiTransformer](https://github.com/Bedolla/ZaiTransformer/) to support pioneering work in the Claude Code ecosystem.
389
-
390
- <br>
391
-
392
- <details>
393
- <summary><h3>GLM vs GLMT Comparison</h3></summary>
394
-
395
- <br>
396
-
397
- <div align="center">
398
-
399
- | Feature | GLM (`ccs glm`) | GLMT (`ccs glmt`) |
400
- |:--------|:----------------|:------------------|
401
- | **Endpoint** | Anthropic-compatible | OpenAI-compatible |
402
- | **Thinking** | No | Experimental (`reasoning_content`) |
403
- | **Tool Support** | Basic | **Unstable (v3.5+)** |
404
- | **MCP Tools** | Limited | **Buggy (v3.5+)** |
405
- | **Streaming** | Stable | **Experimental (v3.4+)** |
406
- | **TTFB** | <500ms | <500ms (sometimes), 2-10s+ (often) |
407
- | **Use Case** | Reliable work | **Debugging experiments only** |
408
-
409
- </div>
410
-
411
- </details>
412
-
413
- <br>
414
-
415
- <details>
416
- <summary><h3>Tool Support (v3.5) - EXPERIMENTAL</h3></summary>
417
-
418
- <br>
419
-
420
- **GLMT attempts MCP tools and function calling:**
421
-
422
- - **Bidirectional Transformation**: Anthropic tools ↔ OpenAI format (unstable)
423
- - **MCP Integration**: MCP tools sometimes execute (often output XML garbage)
424
- - **Streaming Tool Calls**: Real-time tool calls (when not crashing)
425
- - **Backward Compatible**: May break existing thinking support
426
- - **Configuration Required**: Frequent manual debugging needed
427
-
428
- </details>
429
-
430
- <details>
431
- <summary><h3>Streaming Support (v3.4) - OFTEN FAILS</h3></summary>
432
-
433
- <br>
434
-
435
- **GLMT attempts real-time streaming** with incremental reasoning content delivery:
436
-
437
- - **Default**: Streaming enabled (TTFB <500ms when it works)
438
- - **Auto-fallback**: Frequently switches to buffered mode due to errors
439
- - **Thinking parameter**: Claude CLI `thinking` parameter sometimes works
440
- - May ignore `thinking.type` and `budget_tokens`
441
- - Precedence: CLI parameter > message tags > default (when not broken)
442
-
443
- **Status**: Z.AI (tested, tool calls frequently break, requires constant debugging)
444
-
445
- </details>
446
-
447
- <details>
448
- <summary><h3>How It Works (When It Works)</h3></summary>
449
-
450
- <br>
451
-
452
- 1. CCS spawns embedded HTTP proxy on localhost (if not crashing)
453
- 2. Proxy attempts to convert Anthropic format → OpenAI format (often fails)
454
- 3. Tries to transform Anthropic tools → OpenAI function calling format (buggy)
455
- 4. Forwards to Z.AI with reasoning parameters and tools (when not timing out)
456
- 5. Attempts to convert `reasoning_content` → thinking blocks (partial or broken)
457
- 6. Attempts to convert OpenAI `tool_calls` → Anthropic `tool_use` blocks (XML garbage common)
458
- 7. Thinking and tool calls sometimes appear in Claude Code UI (when not broken)
459
-
460
- </details>
461
-
462
- <details>
463
- <summary><h3>Control Tags & Keywords</h3></summary>
464
-
465
- <br>
466
-
467
- **Control Tags**:
468
- - `<Thinking:On|Off>` - Enable/disable reasoning blocks (default: On)
469
- - `<Effort:Low|Medium|High>` - Control reasoning depth (deprecated - Z.AI only supports binary thinking)
470
-
471
- **Thinking Keywords** (inconsistent activation):
472
- - `think` - Sometimes enables reasoning (low effort)
473
- - `think hard` - Sometimes enables reasoning (medium effort)
474
- - `think harder` - Sometimes enables reasoning (high effort)
475
- - `ultrathink` - Attempts maximum reasoning depth (often breaks)
476
-
477
- </details>
478
-
479
- <details>
480
- <summary><h3>Environment Variables</h3></summary>
481
-
482
- <br>
483
-
484
- **GLMT features** (all experimental):
485
- - Forced English output enforcement (sometimes works)
486
- - Random thinking mode activation (unpredictable)
487
- - Attempted streaming with frequent fallback to buffered mode
488
-
489
- **General**:
490
- - `CCS_DEBUG_LOG=1` - Enable debug file logging
491
- - `CCS_CLAUDE_PATH=/path/to/claude` - Custom Claude CLI path
492
-
493
- </details>
494
-
495
- <details>
496
- <summary><h3>API Key Setup</h3></summary>
497
-
498
- <br>
499
-
500
- ```bash
501
- # Edit GLMT settings
502
- nano ~/.ccs/glmt.settings.json
503
- ```
504
-
505
- Set Z.AI API key (requires coding plan):
506
-
507
- ```json
508
- {
509
- "env": {
510
- "ANTHROPIC_AUTH_TOKEN": "your-z-ai-api-key"
511
- }
512
- }
513
- ```
514
-
515
- </details>
516
-
517
- <details>
518
- <summary><h3>Security Limits (DoS Protection)</h3></summary>
519
-
520
- <br>
521
-
522
- **v3.4 Protection Limits**:
523
-
524
- | Limit | Value | Purpose |
525
- |:------|:------|:--------|
526
- | **SSE buffer** | 1MB max per event | Prevent buffer overflow |
527
- | **Content buffer** | 10MB max per block | Limit thinking/text blocks |
528
- | **Content blocks** | 100 max per message | Prevent DoS attacks |
529
- | **Request timeout** | 120s | Both streaming and buffered |
530
-
531
- </details>
532
-
533
- <details>
534
- <summary><h3>Debugging</h3></summary>
535
-
536
- <br>
537
-
538
- **Enable verbose logging**:
539
- ```bash
540
- ccs glmt --verbose "your prompt"
541
- ```
542
-
543
- **Enable debug file logging**:
544
- ```bash
545
- export CCS_DEBUG_LOG=1
546
- ccs glmt --verbose "your prompt"
547
- # Logs: ~/.ccs/logs/
548
- ```
549
-
550
- **GLMT debugging**:
551
- ```bash
552
- # Verbose logging shows streaming status and reasoning details
553
- ccs glmt --verbose "test"
554
- ```
555
-
556
- **Check reasoning content**:
557
- ```bash
558
- cat ~/.ccs/logs/*response-openai.json | jq '.choices[0].message.reasoning_content'
559
- ```
560
-
561
- **Troubleshooting**:
562
- - **If absent**: Z.AI API issue (verify key, account status)
563
- - **If present**: Transformation issue (check `response-anthropic.json`)
564
-
565
- </details>
566
-
567
- <br>
568
-
569
- ## Uninstall
570
-
571
- <details>
572
- <summary><h3>Package Managers</h3></summary>
573
-
574
- <br>
575
-
576
- ```bash
577
- # npm
578
- npm uninstall -g @kaitranntt/ccs
579
-
580
- # yarn
581
- yarn global remove @kaitranntt/ccs
582
-
583
- # pnpm
584
- pnpm remove -g @kaitranntt/ccs
585
-
586
- # bun
587
- bun remove -g @kaitranntt/ccs
588
- ```
589
-
590
- </details>
591
-
592
- <details>
593
- <summary><h3>Official Uninstaller</h3></summary>
594
-
595
- <br>
596
-
597
- ```bash
598
- # macOS / Linux
599
- curl -fsSL ccs.kaitran.ca/uninstall | bash
600
-
601
- # Windows PowerShell
602
- irm ccs.kaitran.ca/uninstall | iex
603
- ```
604
-
605
- </details>
606
-
607
- <br>
608
-
609
- ## 🎯 Philosophy
610
-
611
- - **YAGNI**: No features "just in case"
612
- - **KISS**: Simple bash, no complexity
613
- - **DRY**: One source of truth (config)
614
-
615
- ## 📖 Documentation
616
-
617
- **Complete documentation in [docs/](./docs/)**:
618
- - [Installation Guide](./docs/en/installation.md)
619
- - [Configuration](./docs/en/configuration.md)
620
- - [Usage Examples](./docs/en/usage.md)
621
- - [System Architecture](./docs/system-architecture.md)
622
- - [GLMT Control Mechanisms](./docs/glmt-controls.md)
623
- - [Troubleshooting](./docs/en/troubleshooting.md)
624
- - [Contributing](./CONTRIBUTING.md)
625
-
626
- ## 🤝 Contributing
627
-
628
- We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md) for details.
629
-
630
- ## Star History
631
-
632
- <div align="center">
633
-
634
- <img src="https://api.star-history.com/svg?repos=kaitranntt/ccs&type=timeline&logscale&legend=top-left" alt="Star History Chart" width="800">
635
-
636
- </div>
637
-
638
-
639
- ## License
640
-
641
- CCS is licensed under the [MIT License](LICENSE).
642
-
643
- <div align="center">
644
-
645
- **Made with ❤️ for developers who hit rate limits too often**
646
-
647
- [⭐ Star this repo](https://github.com/kaitranntt/ccs) | [🐛 Report issues](https://github.com/kaitranntt/ccs/issues) | [📖 Read docs](./docs/en/)
648
-
649
- </div>