mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 06:16:37 +00:00
f84ece69036ec9c16d9a5490a0fd43086cb44ed2
- Hardcode versions in executables (ccs, ccs.ps1) for ~1-2ms startup speedup - Remove runtime VERSION file I/O on every version display - Atomic version updates: bump-version.sh now modifies 5 files - Add selective_cleanup() function in uninstall scripts (bash & PowerShell) * Removes: executables, VERSION file, uninstall script itself * Keeps: config.json, *.settings.json, .claude/ directory - Improve uninstall UX: clear reporting of removed vs kept files - Remove VERSION file copying from installers - Update CHANGELOG with v2.2.1 technical details Fixes #1 (selective cleanup) and #2 (version simplification) Maintains cross-platform parity (Unix/Linux/macOS/Windows)
CCS - Claude Code Switch
Languages: English | Tiếng Việt
Switch between Claude Sonnet 4.5 and GLM 4.6 instantly. Use the right model for each task.
The Problem: You have both Claude subscription and GLM Coding Plan. Two scenarios happen daily:
- Rate limits: Claude hits limit mid-project, you manually edit
~/.claude/settings.jsonto switch - Task optimization: Complex planning needs Claude Sonnet 4.5's intelligence, but simple coding works fine with GLM 4.6
Manual switching is tedious and error-prone.
The Solution:
ccs # Use Claude subscription (default)
ccs glm # Switch to GLM fallback
# Hit rate limit? Switch instantly:
ccs glm # Continue working with GLM
One command. Zero downtime. No file editing. Right model, right task.
Quick Start
Install:
macOS / Linux:
curl -fsSL ccs.kaitran.ca/install | bash
Windows PowerShell:
irm ccs.kaitran.ca/install | iex
~/.ccs/config.json (auto-created during install):
{
"profiles": {
"glm": "~/.ccs/glm.settings.json",
"default": "~/.claude/settings.json"
}
}
Use:
ccs # Use Claude subscription (default)
ccs glm # Use GLM fallback
ccs --version # Show CCS version and install location
ccs --install # Install CCS commands and skills to ~/.claude/
Task Delegation
CCS includes intelligent task delegation via the /ccs meta-command:
# After running ccs --install, you can use:
/ccs glm /plan "add user authentication"
/ccs glm /code "implement auth endpoints"
/ccs glm /ask "explain this error"
Benefits:
- ✅ Save tokens by delegating simple tasks to cheaper models
- ✅ Use right model for each task automatically
- ✅ Seamless integration with existing workflows
Philosophy
- YAGNI: No features "just in case"
- KISS: Simple bash, no complexity
- DRY: One source of truth (config)
Uninstall
macOS / Linux:
curl -fsSL ccs.kaitran.ca/uninstall | bash
Windows PowerShell:
irm ccs.kaitran.ca/uninstall | iex
Learn more: Complete documentation in docs/
Built with ❤️ by Kai Tran
Languages
TypeScript
81.4%
HTML
8.1%
JavaScript
7.1%
Swift
1.7%
Shell
1%
Other
0.6%