mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-20 04:17:37 +00:00
02f299686f3f375afaf65fbb6387003709be0e6c
- Auto shell detection (bash/zsh/fish) with PATH setup - Unified ~/.local/bin install (no sudo required) - ANSI colors with TTY detection, NO_COLOR support - Security: fix shell injection, error handling - Replace emojis with ASCII symbols - Update 16 files: core(6), en-docs(6), vi-docs(4)
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%