Skip to content

Commit 62f55d4

Browse files
authored
Default to opus-4-5, add cc7/ccw7/cc-orc7 for opus-4-7 (#77)
Flip ANTHROPIC_MODEL and ANTHROPIC_DEFAULT_OPUS_MODEL in default settings.json from claude-opus-4-7 to claude-opus-4-5. Remove the global CLAUDE_CODE_MAX_CONTEXT_TOKENS and CLAUDE_CODE_AUTO_COMPACT_WINDOW env vars (they pinned 250k globally, which would exceed 4.5's 200k API ceiling). Move context-window control inline per alias: - cc / claude / ccw / cc-orc: 200k (opus-4-5) - cc7 / ccw7 / cc-orc7: 400k (opus-4-7) — new variants Thinking-related env vars (MAX_THINKING_TOKENS, adaptive-thinking flag, effort level) remain global. ccraw is unchanged. Also adds legacy-cleanup sed entries for cc7/ccw7/cc-orc7 so future renames stay idempotent, updates the Commands table in AGENTS.md, and documents the change in CHANGELOG.md.
1 parent 3cfc850 commit 62f55d4

4 files changed

Lines changed: 26 additions & 15 deletions

File tree

container/.devcontainer/AGENTS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ Config files deploy via `defaults/codeforge/file-manifest.json` on every contain
2222

2323
| Command | Purpose |
2424
|---------|---------|
25-
| `cc` / `claude` | Run Claude Code with auto-configuration |
25+
| `cc` / `claude` | Run Claude Code with auto-configuration (opus-4-5, 200k context) |
2626
| `codeforge config apply` | Deploy config files to `~/.claude/` (same as container start) |
2727
| `ccraw` | Vanilla Claude Code (bypasses config) |
28-
| `ccw` | Claude Code with writing system prompt |
29-
| `cc-orc` | Claude Code in orchestrator mode (delegation-first) |
28+
| `ccw` | Claude Code with writing system prompt (opus-4-5, 200k context) |
29+
| `cc-orc` | Claude Code in orchestrator mode, delegation-first (opus-4-5, 200k context) |
30+
| `cc7` / `ccw7` / `cc-orc7` | Claude Code on opus-4-7 with 400k context (main / writing / orchestrator modes) |
3031
| `codex` | OpenAI Codex CLI terminal coding agent |
3132
| `ccms` | Session history search _(disabled — requires Rust toolchain; uncomment in devcontainer.json to enable)_ |
3233
| `codeforge proxy` | Launch Claude Code through mitmproxy — inspect API traffic in browser (port 8081) |

container/.devcontainer/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
### Configuration
66

7+
- **Default model changed to `claude-opus-4-5`**`ANTHROPIC_MODEL` and `ANTHROPIC_DEFAULT_OPUS_MODEL` in default settings flipped from `claude-opus-4-7` to `claude-opus-4-5`. Subagents also run on 4.5 by default.
8+
- **Per-alias context windows**`CLAUDE_CODE_MAX_CONTEXT_TOKENS` and `CLAUDE_CODE_AUTO_COMPACT_WINDOW` removed from global `settings.json env` (they pinned 250k globally, which would exceed 4.5's 200k ceiling). Context is now set inline per alias: `cc` / `claude` / `ccw` / `cc-orc` = 200k; `cc7` / `ccw7` / `cc-orc7` = 400k.
9+
- **New 4.7 alias variants**`cc7`, `ccw7`, `cc-orc7` run Claude Code on `claude-opus-4-7` with a 400k context window (main / writing / orchestrator system prompts respectively). Use these for sessions that need 4.7's larger window; use `cc` / `ccw` / `cc-orc` (now on 4.5) for standard work.
710
- **Thinking display set to summarized**`cc`, `claude`, `ccw`, and `cc-orc` aliases now pass `--thinking-display summarized`, keeping the terminal tidy while still surfacing thinking. `ccraw` is unaffected (stays vanilla).
811
- **View mode set to focus**`viewMode` changed from `verbose` to `focus` in default settings for a cleaner terminal UI.
912

container/.devcontainer/defaults/codeforge/config/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"autoCompact": true,
44
"alwaysThinkingEnabled": true,
55
"env": {
6-
"ANTHROPIC_MODEL": "claude-opus-4-7",
7-
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7",
6+
"ANTHROPIC_MODEL": "claude-opus-4-5",
7+
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-5",
88
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
99
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001",
1010
"BASH_DEFAULT_TIMEOUT_MS": "120000",
@@ -18,8 +18,6 @@
1818
"MCP_TOOL_TIMEOUT": "30000",
1919
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "80",
2020
"FORCE_AUTOUPDATE_PLUGINS": "1",
21-
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "250000",
22-
"CLAUDE_CODE_MAX_CONTEXT_TOKENS": "250000",
2321
"CLAUDE_CODE_SCROLL_SPEED": "3",
2422

2523
"ENABLE_TOOL_SEARCH": "auto:5",

container/.devcontainer/scripts/setup-aliases.sh

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ for rc in ~/.bashrc ~/.zshrc; do
6161
sed -i "/^alias claude='/d" "$rc"
6262
sed -i "/^alias ccraw='/d" "$rc"
6363
sed -i "/^alias ccw='/d" "$rc"
64+
sed -i "/^alias cc7='/d" "$rc"
65+
sed -i "/^alias ccw7='/d" "$rc"
66+
sed -i "/^alias cc-orc7='/d" "$rc"
6467
sed -i '/^alias check-setup=/d' "$rc"
6568
# cc-tools function from old format
6669
if grep -q "^cc-tools()" "$rc" 2>/dev/null; then
@@ -114,11 +117,14 @@ _OMC_DISALLOWED_TOOLS=(
114117
mcp__oh-my-claude__coworker_task
115118
)
116119
117-
alias cc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
118-
alias claude='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
120+
alias cc='CLAUDE_CODE_MAX_CONTEXT_TOKENS=200000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
121+
alias claude='CLAUDE_CODE_MAX_CONTEXT_TOKENS=200000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
119122
alias ccraw='command "\$_CLAUDE_BIN"'
120-
alias ccw='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/writing-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
121-
alias cc-orc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
123+
alias ccw='CLAUDE_CODE_MAX_CONTEXT_TOKENS=200000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/writing-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
124+
alias cc-orc='CLAUDE_CODE_MAX_CONTEXT_TOKENS=200000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
125+
alias cc7='CLAUDE_CODE_MAX_CONTEXT_TOKENS=400000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=400000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --model claude-opus-4-7 --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
126+
alias ccw7='CLAUDE_CODE_MAX_CONTEXT_TOKENS=400000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=400000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --model claude-opus-4-7 --system-prompt-file "\$CLAUDE_CONFIG_DIR/writing-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
127+
alias cc-orc7='CLAUDE_CODE_MAX_CONTEXT_TOKENS=400000 CLAUDE_CODE_AUTO_COMPACT_WINDOW=400000 CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --model claude-opus-4-7 --system-prompt-file "\$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions --thinking-display summarized "\${_OMC_DISALLOWED_TOOLS[@]}"'
122128
alias ccr-apply='codeforge config apply && (ccr restart 2>/dev/null || ccr start) && echo "CCR config applied and restarted"'
123129
alias omc-apply='codeforge config apply && (omc proxy restart 2>/dev/null || omc proxy start) && echo "OMC config applied and proxy restarted"'
124130
@@ -149,11 +155,14 @@ BLOCK_EOF
149155
done
150156

151157
echo "[setup-aliases] Aliases configured:"
152-
echo " cc -> claude with \$CLAUDE_CONFIG_DIR/main-system-prompt.md"
153-
echo " claude -> claude with \$CLAUDE_CONFIG_DIR/main-system-prompt.md"
158+
echo " cc -> claude (opus-4-5, 200k ctx) with \$CLAUDE_CONFIG_DIR/main-system-prompt.md"
159+
echo " claude -> claude (opus-4-5, 200k ctx) with \$CLAUDE_CONFIG_DIR/main-system-prompt.md"
154160
echo " ccraw -> vanilla claude without any config"
155-
echo " ccw -> claude with \$CLAUDE_CONFIG_DIR/writing-system-prompt.md"
156-
echo " cc-orc -> claude with \$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md (delegation mode)"
161+
echo " ccw -> claude (opus-4-5, 200k ctx) with \$CLAUDE_CONFIG_DIR/writing-system-prompt.md"
162+
echo " cc-orc -> claude (opus-4-5, 200k ctx) with \$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md (delegation mode)"
163+
echo " cc7 -> claude (opus-4-7, 400k ctx) with \$CLAUDE_CONFIG_DIR/main-system-prompt.md"
164+
echo " ccw7 -> claude (opus-4-7, 400k ctx) with \$CLAUDE_CONFIG_DIR/writing-system-prompt.md"
165+
echo " cc-orc7 -> claude (opus-4-7, 400k ctx) with \$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md (delegation mode)"
157166
echo " ccr-apply -> redeploy claude-code-router config + restart daemon"
158167
echo " cc-tools -> list all available CodeForge tools"
159168
echo " check-setup -> verify CodeForge setup health"

0 commit comments

Comments
 (0)