You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add claude_args configuration for fixed command-line arguments (#11)
Add a new `claude_args` field to ccc.json that allows users to specify
fixed command-line arguments to be passed to Claude Code on every launch.
Changes:
- Add ClaudeArgs field to Config struct
- Modify runClaude to merge configured args with command-line args
- Update documentation with examples
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ Create `~/.claude/ccc.json`:
75
75
"DISABLE_COST_WARNINGS": "1"
76
76
}
77
77
},
78
+
"claude_args": ["--verbose", "--debug"],
78
79
"current_provider": "kimi",
79
80
"providers": {
80
81
"kimi": {
@@ -107,6 +108,7 @@ Create `~/.claude/ccc.json`:
107
108
108
109
**Config structure:**
109
110
-`settings` — Base template shared by all providers
111
+
-`claude_args` — Fixed arguments to pass to Claude Code (optional)
110
112
-`current_provider` — Last used provider (auto-updated)
111
113
-`providers` — Provider-specific overrides
112
114
@@ -157,6 +159,11 @@ ccc kimi --help
157
159
ccc kimi /path/to/project
158
160
```
159
161
162
+
**Note:** Arguments configured in `claude_args` are automatically prepended to any command-line arguments. For example, if `claude_args` is `["--verbose", "--debug"]` and you run `ccc kimi --help`, the actual command will be:
163
+
```bash
164
+
claude --settings ~/.claude/settings-kimi.json --verbose --debug --help
165
+
```
166
+
160
167
### Validation Command
161
168
162
169
The `ccc validate` command helps you verify your provider configurations:
0 commit comments