Skip to content

Commit 5b5f19c

Browse files
committed
Update default models to claude-opus-4-6, remove unused ToolAccess
- Default model for both foreground and background agents: claude-opus-4-6 - Background agent params now match foreground (max_tokens: 8192, thinking_budget: 2000) - Remove unused ToolAccess enum and tool_access field - Fix README and config.example.toml config structure (model under [agents.foreground] not [general]) - Bump version to 0.1.0-rc.11
1 parent 997dcf3 commit 5b5f19c

5 files changed

Lines changed: 19 additions & 53 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "codey"
3-
version = "0.1.0-rc.10"
3+
version = "0.1.0-rc.11"
44
edition = "2021"
55
authors = ["Codey Contributors"]
66
description = "A terminal-based AI coding assistant"

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,19 @@ export ANTHROPIC_API_KEY="sk-ant-..."
7979
Copy `config.example.toml` to `~/.config/codey/config.toml` and customize:
8080

8181
```toml
82-
[general]
83-
model = "claude-sonnet-4-20250514"
82+
[agents.foreground]
83+
model = "claude-opus-4-6"
8484
max_tokens = 8192
8585

86+
[agents.background]
87+
model = "claude-sonnet-4-5-20250929"
88+
8689
[ui]
8790
theme = "base16-ocean.dark"
8891
```
8992

93+
Foreground and background agents are configured independently. Both default to `claude-opus-4-6` when not specified. See `config.example.toml` for all available options.
94+
9095
## Custom System Prompts
9196

9297
You can extend Codey's system prompt by creating `SYSTEM.md` files that are automatically appended to the base prompt. These files are loaded from two locations (in order):

config.example.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Copy this file to: ~/.config/codey/config.toml
33

44
[general]
5-
# Default model to use
6-
model = "claude-sonnet-4-20250514"
7-
85
# Working directory (default: current directory)
96
# working_dir = "/path/to/project"
107

8+
[agents.foreground]
9+
# Model to use (default: claude-opus-4-6)
10+
model = "claude-opus-4-6"
1111
# Maximum tokens for responses
1212
max_tokens = 8192
1313

src/config.rs

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub const TRANSCRIPTS_DIR: &str = "transcripts";
4141
/// use codey::AgentRuntimeConfig;
4242
///
4343
/// let config = AgentRuntimeConfig {
44-
/// model: "claude-sonnet-4-20250514".to_string(),
44+
/// model: "claude-sonnet-4-5-20250929".to_string(),
4545
/// max_tokens: 8192,
4646
/// thinking_budget: 2_000,
4747
/// max_retries: 5,
@@ -60,7 +60,7 @@ pub struct AgentRuntimeConfig {
6060
impl Default for AgentRuntimeConfig {
6161
fn default() -> Self {
6262
Self {
63-
model: "claude-sonnet-4-20250514".to_string(),
63+
model: "claude-sonnet-4-5-20250929".to_string(),
6464
max_tokens: 8192,
6565
thinking_budget: 2_000,
6666
max_retries: 5,
@@ -169,8 +169,8 @@ pub struct AgentsConfig {
169169
impl Default for AgentsConfig {
170170
fn default() -> Self {
171171
Self {
172-
foreground: AgentConfig::foreground_default(),
173-
background: AgentConfig::background_default(),
172+
foreground: AgentConfig::default(),
173+
background: AgentConfig::default(),
174174
}
175175
}
176176
}
@@ -180,58 +180,23 @@ impl Default for AgentsConfig {
180180
#[derive(Debug, Clone, Serialize, Deserialize)]
181181
#[serde(default)]
182182
pub struct AgentConfig {
183-
/// Model to use (defaults to claude-opus-4-5-20251101)
183+
/// Model to use (defaults to claude-opus-4-6)
184184
pub model: String,
185185
/// Max tokens for responses
186186
pub max_tokens: u32,
187187
/// Thinking budget in tokens
188188
pub thinking_budget: u32,
189-
/// Tool access level
190-
pub tool_access: ToolAccess,
191189
}
192190

193191
#[cfg(feature = "cli")]
194192
impl Default for AgentConfig {
195193
fn default() -> Self {
196-
Self::foreground_default()
197-
}
198-
}
199-
200-
#[cfg(feature = "cli")]
201-
impl AgentConfig {
202-
/// Default configuration for foreground/primary agent
203-
pub fn foreground_default() -> Self {
204194
Self {
205-
model: "claude-opus-4-5-20251101".to_string(),
195+
model: "claude-opus-4-6".to_string(),
206196
max_tokens: 8192,
207197
thinking_budget: 2_000,
208-
tool_access: ToolAccess::Full,
209198
}
210199
}
211-
212-
/// Default configuration for background agents
213-
pub fn background_default() -> Self {
214-
Self {
215-
model: "claude-opus-4-5-20251101".to_string(),
216-
max_tokens: 4096,
217-
thinking_budget: 1_024,
218-
tool_access: ToolAccess::ReadOnly,
219-
}
220-
}
221-
}
222-
223-
/// Tool access level for agents
224-
#[cfg(feature = "cli")]
225-
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Default)]
226-
#[serde(rename_all = "snake_case")]
227-
pub enum ToolAccess {
228-
/// Full access to all tools
229-
#[default]
230-
Full,
231-
/// Read-only tools: read_file, shell, fetch_url, web_search, open_file
232-
ReadOnly,
233-
/// No tools
234-
None,
235200
}
236201

237202
#[cfg(feature = "cli")]
@@ -473,7 +438,7 @@ mod tests {
473438
#[test]
474439
fn test_default_config() {
475440
let config = Config::default();
476-
assert_eq!(config.agents.foreground.model, "claude-opus-4-5-20251101");
441+
assert_eq!(config.agents.foreground.model, "claude-opus-4-6");
477442
assert!(config.tools.enabled.contains(&names::READ_FILE.to_string()));
478443
}
479444

@@ -505,19 +470,15 @@ auto_scroll = false
505470
model = "claude-opus-4-5-20251101"
506471
max_tokens = 8192
507472
thinking_budget = 2000
508-
tool_access = "full"
509473
510474
[agents.background]
511475
model = "claude-sonnet-4-20250514"
512476
max_tokens = 4096
513477
thinking_budget = 1024
514-
tool_access = "read_only"
515478
"#;
516479
let config: Config = toml::from_str(toml).unwrap();
517480
assert_eq!(config.agents.foreground.model, "claude-opus-4-5-20251101");
518-
assert_eq!(config.agents.foreground.tool_access, ToolAccess::Full);
519481
assert_eq!(config.agents.background.model, "claude-sonnet-4-20250514");
520-
assert_eq!(config.agents.background.tool_access, ToolAccess::ReadOnly);
521482
}
522483

523484
#[test]

0 commit comments

Comments
 (0)