Repository navigation
Simplify: remove keep-warm and fork-from-turn - #780
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
lydakis
force-pushed
the
claude/project-thread-i3aye2
branch
from
November 7, 2026 06:19
1315ec8 to
bb2c48f
Compare
The daemon resent an Anthropic call with max_tokens 0 while a tool ran or a reply streamed, to keep a five-minute cache alive. Claude bots take the one-hour cache, which needs no refresh, so the refreshes kept warm a cache few bots used at the cost of a second request path in every turn: pacing, admission, accounting and budget rules of their own. The keep_warm setting and --keep-warm go; a migration drops the setting from stored bots. A lapsed five-minute cache is written again by the next call, as any cache miss is. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDefzB8u6kgZMqFaxB
After every completed task turn the lookout committed the worktree's files under refs/agent/snapshots, so start_task with from and turn could fork a task with its files as they were. Each snapshot cost about 60 ms on a small repository and a second with a couple of thousand new files, on every task turn, for a fork nobody used. start_task loses from and turn; the lookout no longer follows configured events or tracks where each bot may write. The git helpers tasks still use move to git.rs. A migration drops each store's snapshot indexes, and an upgrade step asks the lead to drop the refs in the person's repositories with their OK. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDefzB8u6kgZMqFaxB
Fixtures use neutral names, the role eval unloads the scheduler job by its current label (sonny.scheduler.), and the Harbor agent is called agent-runtime. The old launchd labels stay only where a migration looks for them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGDefzB8u6kgZMqFaxB
lydakis
force-pushed
the
claude/project-thread-i3aye2
branch
from
November 7, 2026 09:18
bb2c48f to
4362152
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first cuts from the simplification sweep, all three approved for 0.9.0. There is one commit for each cut.
Remove the daemon's prompt-cache keep-warm (schema 84, protocol 55)
While a tool ran or a reply streamed, the daemon resent the Anthropic call with
max_tokens: 0to keep the five-minute cache alive. Claude bots now take the one-hour cache, which needs no refresh. So this was a second request path in every turn, with its own pacing, admission, accounting and budget rules, that kept warm a cache few bots used.keep_warmsetting and--keep-warmare gone. Schema 84 drops the setting from stored bots withjson_remove.keep_warmusage purpose and thekeep_warm_failedevent are gone.Remove fork-from-turn and the per-turn task snapshots
After every completed task turn, the lookout committed the worktree's files under
refs/agent/snapshots. That cost about 60 ms per turn on a 600-file repo, about 100 ms at 20k files, and about 1 s with 2k new untracked files. The only consumer wasstart_taskwithfromandturn.start_tasklosesfromandturn, which also shortens the declared tool text.configuredevents or tracks which folders each bot may write.snapshot.rstogit.rs. That is about 1,750 lines out and about 260 in.oncemigration deletes each store'sSTORE.snapshot-indexes, which is Sonny's own folder.snapshot-refsasks the lead to droprefs/agent/snapshotsin the person's repositories, with their OK.Name no one in test fixtures and bench scripts
home_tagtest use neutral names.bench/role_eval.pyunloaded the scheduler job by its pre-0.9.0 label. It now usessonny.scheduler., which fixes a stale label.agent-runtime.Checks
Rebased on main after #771, #779, #773 and #734. The
envsetting from main stays in the settings list and the store contract.cargo fmt --check: clean.cargo clippy --workspace --tests: clean.cargo test --workspace: 1827 passed, 0 failed.🤖 Generated with Claude Code