Skip to content

code-walkthrough: replace agent drafts, faster visuals, bump to 1.3.0 - #61

Merged
crisperity merged 2 commits into
mainfrom
cw-drafts-and-faster-visuals
Oct 30, 2026
Merged

crisperity merged 2 commits into
mainfrom
cw-drafts-and-faster-visuals

Conversation

@crisperity

@crisperity crisperity commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

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_comments now accepts replaces: <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, visuals took 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_available fails in my sandbox (it needs a directory under ~/.claude/projects), not checked on a clean checkout. The browser side of replaces was not exercised in a real browser.

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 crisperity changed the title code-walkthrough: replace agent drafts, faster visuals code-walkthrough: replace agent drafts, faster visuals, bump to 1.3.0 Oct 30, 2026
@crisperity
crisperity marked this pull request as ready for review October 30, 2026 08:37
@crisperity
crisperity merged commit 8347f6c into main Oct 30, 2026
2 checks passed
@crisperity
crisperity deleted the cw-drafts-and-faster-visuals branch October 30, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant