mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 08:16:50 +00:00
refactor(delegation)!: consolidate commands with intelligent profile selection
BREAKING CHANGE: Replace 4 hardcoded commands with 2 intelligent commands: - Old: /ccs:glm, /ccs:kimi, /ccs:glm:continue, /ccs:kimi:continue - New: /ccs (auto-selects), /ccs:continue (auto-dects) - Override with flags: /ccs --glm "task", /ccs --kimi "task" This change: - Adds intelligent profile selection based on task analysis - Supports custom profiles without creating new commands - Enhances session management with automatic profile detection - Updates all help text, examples, and documentation - Fixes CCS Doctor health checks for new command structure
This commit is contained in:
1 parent
9ae99460bc
commit
24a11e1051
22 files changed
+250
-169
No files matched your search
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Version (updated by scripts/bump-version.sh)
|
||||
CCS_VERSION="4.3.2"
|
||||
CCS_VERSION="4.3.3"
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
readonly CONFIG_FILE="${CCS_CONFIG:-$HOME/.ccs/config.json}"
|
||||
readonly PROFILES_JSON="$HOME/.ccs/profiles.json"
|
||||
@@ -191,8 +191,10 @@ show_help() {
|
||||
echo ""
|
||||
|
||||
echo -e "${CYAN}Delegation (inside Claude Code CLI):${RESET}"
|
||||
echo -e " ${YELLOW}/ccs:glm \"task\"${RESET} Delegate to GLM-4.6 for simple tasks"
|
||||
echo -e " ${YELLOW}/ccs:kimi \"task\"${RESET} Delegate to Kimi for long context"
|
||||
echo -e " ${YELLOW}/ccs \"task\"${RESET} Delegate task (auto-selects best profile)"
|
||||
echo -e " ${YELLOW}/ccs --glm \"task\"${RESET} Force GLM-4.6 for simple tasks"
|
||||
echo -e " ${YELLOW}/ccs --kimi \"task\"${RESET} Force Kimi for long context"
|
||||
echo -e " ${YELLOW}/ccs:continue \"follow-up\"${RESET} Continue last delegation session"
|
||||
echo -e " Save tokens by delegating simple tasks to cost-optimized models"
|
||||
echo ""
|
||||
|
||||
|
||||
+5
-3
@@ -12,7 +12,7 @@ param(
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
# Version (updated by scripts/bump-version.sh)
|
||||
$CcsVersion = "4.3.2"
|
||||
$CcsVersion = "4.3.3"
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$ConfigFile = if ($env:CCS_CONFIG) { $env:CCS_CONFIG } else { "$env:USERPROFILE\.ccs\config.json" }
|
||||
$ProfilesJson = "$env:USERPROFILE\.ccs\profiles.json"
|
||||
@@ -238,8 +238,10 @@ function Show-Help {
|
||||
Write-Host ""
|
||||
|
||||
Write-ColorLine "Delegation (inside Claude Code CLI):" "Cyan"
|
||||
Write-ColorLine " /ccs:glm `"task`" Delegate to GLM-4.6 for simple tasks" "Yellow"
|
||||
Write-ColorLine " /ccs:kimi `"task`" Delegate to Kimi for long context" "Yellow"
|
||||
Write-ColorLine " /ccs `"task`" Delegate task (auto-selects best profile)" "Yellow"
|
||||
Write-ColorLine " /ccs --glm `"task`" Force GLM-4.6 for simple tasks" "Yellow"
|
||||
Write-ColorLine " /ccs --kimi `"task`" Force Kimi for long context" "Yellow"
|
||||
Write-ColorLine " /ccs:continue `"follow-up`" Continue last delegation session" "Yellow"
|
||||
Write-Host " Save tokens by delegating simple tasks to cost-optimized models"
|
||||
Write-Host ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user