turn loop: pin to haiku 4.5 (todo: per-agent override)
This commit is contained in:
parent
37efb0889f
commit
625bae1b31
2 changed files with 13 additions and 0 deletions
|
|
@ -407,6 +407,14 @@ with `./agent.nix` plus an inline module that sets
|
||||||
claude-code's `--allowedTools` extended grammar. Likely lives in
|
claude-code's `--allowedTools` extended grammar. Likely lives in
|
||||||
`agent.nix` so each agent can scope its own shell surface.
|
`agent.nix` so each agent can scope its own shell surface.
|
||||||
|
|
||||||
|
## Per-agent settings backlog
|
||||||
|
|
||||||
|
- **Model override.** Hard-coded to `claude-haiku-4-5-20251001` in the turn
|
||||||
|
loop right now. Surface it as a per-agent override: operator via
|
||||||
|
dashboard, manager via `request_apply_commit` setting an attr on the
|
||||||
|
agent's flake (most natural place since the flake already carries
|
||||||
|
per-agent env/identity).
|
||||||
|
|
||||||
## Polish backlog
|
## Polish backlog
|
||||||
|
|
||||||
Not phased — pick when relevant:
|
Not phased — pick when relevant:
|
||||||
|
|
|
||||||
|
|
@ -178,8 +178,13 @@ async fn invoke_claude(prompt: &str, mcp_config: &Path) -> Result<String> {
|
||||||
// plus the hyperhive MCP surface so there's no permission prompt
|
// plus the hyperhive MCP surface so there's no permission prompt
|
||||||
// mid-turn. A finer-grained allow-list system for Bash command
|
// mid-turn. A finer-grained allow-list system for Bash command
|
||||||
// patterns is on the backlog (PLAN.md polish).
|
// patterns is on the backlog (PLAN.md polish).
|
||||||
|
// Hard-coded to Haiku 4.5 for now to keep cost predictable while we
|
||||||
|
// iterate. TODO: make this overridable per-agent — op via dashboard,
|
||||||
|
// manager via `request_apply_commit` setting on the agent's flake.
|
||||||
let out = Command::new("claude")
|
let out = Command::new("claude")
|
||||||
.arg("--print")
|
.arg("--print")
|
||||||
|
.arg("--model")
|
||||||
|
.arg("claude-haiku-4-5-20251001")
|
||||||
.arg("--mcp-config")
|
.arg("--mcp-config")
|
||||||
.arg(mcp_config)
|
.arg(mcp_config)
|
||||||
.arg("--tools")
|
.arg("--tools")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue