Skip to content

Commit 435a347

Browse files
committed
Update defaults configuration
- settings.json: update to opus-4-7, reduce thinking tokens (31999), disable adaptive thinking, add effort_level max, adjust compaction thresholds, disable agent teams, add background tasks and no-flicker - main-system-prompt.md: streamline prompt content - file-manifest.json: update file list for new rules - claude-code-router.json: add default router configuration
1 parent b294fcc commit 435a347

4 files changed

Lines changed: 135 additions & 55 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"mcpServers": {},
3+
"providers": {
4+
"anthropic": {
5+
"api_key": "$ANTHROPIC_API_KEY",
6+
"base_url": "https://api.anthropic.com"
7+
},
8+
"deepseek": {
9+
"api_key": "$DEEPSEEK_API_KEY",
10+
"base_url": "https://api.deepseek.com"
11+
},
12+
"gemini": {
13+
"api_key": "$GEMINI_API_KEY",
14+
"base_url": "https://generativelanguage.googleapis.com"
15+
},
16+
"openrouter": {
17+
"api_key": "$OPENROUTER_API_KEY",
18+
"base_url": "https://openrouter.ai/api"
19+
}
20+
},
21+
"router": {
22+
"default": "anthropic/claude-sonnet-4-20250514"
23+
}
24+
}

container/.devcontainer/defaults/codeforge/config/main-system-prompt.md

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -357,40 +357,6 @@ Tests NOT required:
357357
- Third-party wrappers
358358
</testing_standards>
359359

360-
<specification_management>
361-
Specs live in `.specs/` at the project root as directory-based "spec packages." You (the orchestrator) own spec creation and maintenance.
362-
363-
Workflow: features live in `BACKLOG.md` → each gets a spec package via `/spec` → after approval, implement via `/build`.
364-
365-
Folder structure:
366-
```text
367-
.specs/
368-
├── CONSTITUTION.md # Project-level cross-cutting decisions
369-
├── BACKLOG.md # Feature idea parking lot
370-
├── auth/ # Domain folder
371-
│ └── login-flow/ # Spec package (directory)
372-
│ ├── index.md # Human-facing (~50-80 lines)
373-
│ ├── context.md # AI-facing (invariants, schema, constraints)
374-
│ └── groups/
375-
│ ├── a-credentials.md # AC group with frontmatter
376-
│ └── b-sessions.md # AC group with frontmatter
377-
```
378-
379-
Key rules:
380-
- Every spec is a directory package, not a single file.
381-
- `index.md` is the human review surface — decisions, AC summary, scope. Keep under 80 lines.
382-
- `context.md` and group files are AI-facing — invariants, examples, schema, decomposition.
383-
- Reference files, don't reproduce them. The code is the source of truth.
384-
- Spec-level approval: `draft` or `approved`. No per-requirement tagging.
385-
- The AI makes obvious decisions and presents only genuine trade-offs to the human.
386-
- Delegate spec writing to the spec-writer agent.
387-
388-
Before implementation: check if a spec exists. If `draft``/spec` to refine first. If `approved` → proceed.
389-
After implementation: `/build` handles review and closure automatically. Present any deviations to the user for approval.
390-
391-
Commands: `/spec <feature>` (create/refine), `/build <feature>` (implement/close), `/specs` (dashboard).
392-
</specification_management>
393-
394360
<documentation>
395361
Inline comments explain WHY only when non-obvious.
396362

Lines changed: 66 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,40 @@
11
{
2-
"autoMemoryDirectory": ".claude/memory",
32
"cleanupPeriodDays": 60,
43
"autoCompact": true,
54
"alwaysThinkingEnabled": true,
65
"env": {
7-
"ANTHROPIC_MODEL": "claude-opus-4-6[1m]",
8-
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-6[1m]",
6+
"ANTHROPIC_MODEL": "claude-opus-4-7",
7+
"ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7",
98
"ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",
109
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-haiku-4-5-20251001",
1110
"BASH_DEFAULT_TIMEOUT_MS": "120000",
1211
"BASH_MAX_TIMEOUT_MS": "300000",
1312
"CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000",
1413
"MAX_MCP_OUTPUT_TOKENS": "10000",
15-
"MAX_THINKING_TOKENS": "63999",
14+
"MAX_THINKING_TOKENS": "31999",
15+
"CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING": "1",
16+
"CLAUDE_CODE_EFFORT_LEVEL": "max",
1617
"MCP_TIMEOUT": "120000",
1718
"MCP_TOOL_TIMEOUT": "30000",
18-
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "90",
19-
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "500000",
19+
"CLAUDE_AUTOCOMPACT_PCT_OVERRIDE": "80",
2020
"FORCE_AUTOUPDATE_PLUGINS": "1",
21+
"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "250000",
22+
"CLAUDE_CODE_MAX_CONTEXT_TOKENS": "250000",
23+
"CLAUDE_CODE_SCROLL_SPEED": "3",
2124

2225
"ENABLE_TOOL_SEARCH": "auto:5",
23-
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
24-
"CLAUDE_CODE_EFFORT_LEVEL": "medium",
25-
"CLAUDE_CODE_ENABLE_TASKS": "true",
26+
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "0",
27+
"CLAUDE_CODE_ENABLE_TASKS": "1",
2628
"CLAUDE_CODE_DISABLE_AUTO_MEMORY": "0",
2729
"ENABLE_CLAUDE_CODE_SM_COMPACT": "1",
2830
"CLAUDE_CODE_FORCE_GLOBAL_CACHE": "1",
2931
"CLAUDE_CODE_PLAN_MODE_INTERVIEW_PHASE": "true",
3032
"CLAUDE_CODE_PLAN_V2_AGENT_COUNT": "5",
3133
"CLAUDE_CODE_PLAN_MODE_REQUIRED": "true",
3234
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "true",
35+
"CLAUDE_AUTO_BACKGROUND_TASKS": "1",
36+
"CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION": "false",
37+
"CLAUDE_CODE_NO_FLICKER": "1",
3338

3439
"CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY": "10",
3540
"CLAUDE_CODE_MAX_RETRIES": "1",
@@ -38,18 +43,60 @@
3843
"DISABLE_AUTOUPDATER": "1"
3944
},
4045
"teammateMode": "auto",
41-
"effortLevel": "medium",
4246
"showClearContextOnPlanAccept": true,
4347
"showThinkingSummaries": true,
44-
"includeCoAuthoredBy": false,
48+
"attribution": {
49+
"commit": "",
50+
"pr": ""
51+
},
52+
"autoMemoryDirectory": "./.claude/memory",
53+
"plansDirectory": "./.claude/plans",
54+
"viewMode": "verbose",
55+
"spinnerVerbs": {
56+
"mode": "replace",
57+
"verbs": [
58+
"Butchering",
59+
"Mangling",
60+
"Wrecking",
61+
"Botching",
62+
"Misreading",
63+
"Derailing",
64+
"Overcomplicating",
65+
"Hallucinating",
66+
"Breaking",
67+
"Fumbling",
68+
"Sabotaging",
69+
"Shredding",
70+
"Confusing",
71+
"Corrupting",
72+
"Ruining",
73+
"Winging",
74+
"Guessing",
75+
"Misinterpreting",
76+
"Overengineering",
77+
"Improvising Poorly",
78+
"Making It Worse",
79+
"Massacring",
80+
"Mutilating",
81+
"Annihilating",
82+
"Trashing",
83+
"Destroying",
84+
"Misfiring",
85+
"Ignoring",
86+
"Unthinking",
87+
"Wondering",
88+
"Draining",
89+
"Exhausting",
90+
"Petering Out"
91+
]
92+
},
4593
"permissions": {
4694
"allow": ["Read(/workspaces/*)", "WebFetch(domain:*)"],
4795
"deny": [],
4896
"ask": [],
4997
"defaultMode": "plan",
5098
"additionalDirectories": []
5199
},
52-
"model": "opus[1m]",
53100
"enabledMcpjsonServers": [],
54101
"disabledMcpjsonServers": [],
55102
"hooks": {},
@@ -63,18 +110,18 @@
63110
"feature-dev@anthropics/claude-code": true,
64111
"pr-review-toolkit@anthropics/claude-code": true,
65112
"codeforge-lsp@devs-marketplace": false,
66-
"ticket-workflow@devs-marketplace": true,
67-
"notify-hook@devs-marketplace": true,
68-
"dangerous-command-blocker@devs-marketplace": true,
113+
"ticket-workflow@devs-marketplace": false,
114+
"notify-hook@devs-marketplace": false,
115+
"dangerous-command-blocker@devs-marketplace": false,
69116
"protected-files-guard@devs-marketplace": true,
70117
"agent-system@devs-marketplace": true,
71-
"skill-engine@devs-marketplace": true,
72-
"spec-workflow@devs-marketplace": true,
73-
"session-context@devs-marketplace": true,
118+
"skill-engine@devs-marketplace": false,
119+
"spec-workflow@devs-marketplace": false,
120+
"session-context@devs-marketplace": false,
74121
"auto-code-quality@devs-marketplace": true,
75122
"workspace-scope-guard@devs-marketplace": true,
76123
"prompt-snippets@devs-marketplace": true,
77-
"git-workflow@devs-marketplace": true
124+
"git-workflow@devs-marketplace": false
78125
},
79126
"autoUpdatesChannel": "latest"
80127
}

container/.devcontainer/defaults/codeforge/file-manifest.json

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{
2121
"src": "config/rules/spec-workflow.md",
2222
"dest": "${CLAUDE_CONFIG_DIR}/rules",
23-
"enabled": true,
23+
"enabled": false,
2424
"overwrite": "if-changed"
2525
},
2626
{
@@ -35,6 +35,42 @@
3535
"enabled": true,
3636
"overwrite": "if-changed"
3737
},
38+
{
39+
"src": "config/rules/auto-memory.md",
40+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
41+
"enabled": true,
42+
"overwrite": "if-changed"
43+
},
44+
{
45+
"src": "config/rules/explicit-start.md",
46+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
47+
"enabled": true,
48+
"overwrite": "if-changed"
49+
},
50+
{
51+
"src": "config/rules/plan-presentation.md",
52+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
53+
"enabled": true,
54+
"overwrite": "if-changed"
55+
},
56+
{
57+
"src": "config/rules/scope-discipline.md",
58+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
59+
"enabled": true,
60+
"overwrite": "if-changed"
61+
},
62+
{
63+
"src": "config/rules/surface-decisions.md",
64+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
65+
"enabled": true,
66+
"overwrite": "if-changed"
67+
},
68+
{
69+
"src": "config/rules/zero-tolerance-bugs.md",
70+
"dest": "${CLAUDE_CONFIG_DIR}/rules",
71+
"enabled": true,
72+
"overwrite": "if-changed"
73+
},
3874
{
3975
"src": "config/writing-system-prompt.md",
4076
"dest": "${CLAUDE_CONFIG_DIR}",
@@ -64,7 +100,7 @@
64100
{
65101
"src": "config/disabled-hooks.json",
66102
"dest": "${CLAUDE_CONFIG_DIR}",
67-
"enabled": false,
103+
"enabled": true,
68104
"overwrite": "never"
69105
},
70106
{
@@ -73,5 +109,12 @@
73109
"destFilename": "config.toml",
74110
"enabled": true,
75111
"overwrite": "if-changed"
112+
},
113+
{
114+
"src": "config/claude-code-router.json",
115+
"dest": "${HOME}/.claude-code-router",
116+
"destFilename": "config.json",
117+
"enabled": true,
118+
"overwrite": "if-changed"
76119
}
77120
]

0 commit comments

Comments
 (0)