Repository navigation
code-walkthrough: replace agent drafts, faster visuals, bump to 1.3.0 - #61
Merged
Merged
Conversation
post_draft_comments items take an optional `replaces` (id of an existing local draft). The page creates the new draft first, then removes the old one, so revising a draft no longer leaves two. The agent prompt tells it to use `replaces`. Visuals ran as one serial LLM call for the overview and every group, 26 to 101 s on recent runs (101 s of a 163 s run on PR 74). Now it's one call for the overview and one per group, up to 4 at once. A failed group is dropped, the rest is kept. Total picture size is still capped, and problems are stored on the visuals step.
crisperity
marked this pull request as ready for review
October 30, 2026 08:37
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.
Overview concepts and the glossary follow in separate PRs.
Drafts. The agent could only add draft comments, so a rewrite left the old one behind.
post_draft_commentsnow acceptsreplaces: <draft id>. Unknown, posted, GitHub and duplicate ids reject the call. The page makes the new draft first, then deletes the old one.Visuals speed. Measured on six recent runs,
visualstook 26 to 101 s and was the last serial step. It's now one overview call plus one call per group, up to 4 in parallel. A failing group is dropped without failing the rest. Cost: every call carries the full diff context, so input tokens grow with the number of groups.Tests. 337 passed in test_cw_run, test_visuals, test_cw_llm. Draft tests in test_cw_mcp pass.
test_cw_ask.py::test_full_turn_is_wrapped_in_bwrap_when_availablefails in my sandbox (it needs a directory under ~/.claude/projects), not checked on a clean checkout. The browser side ofreplaceswas not exercised in a real browser.