apps/cli: build WP sites incrementally#3198
Closed
dereksmart wants to merge 4 commits intotrunkfrom
Closed
Conversation
Collaborator
📊 Performance Test ResultsComparing 4100410 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
youknowriad
added a commit
that referenced
this pull request
Apr 22, 2026
…dence approach Combines the complementary halves of the two approaches to the "silent mega-turn" problem: - From #3198 (Derek): the broad "one Write/Edit per turn" rule and the small-turn rule for the turn immediately after site_create. Without these, the agent packs an entire theme scaffold into one turn. - From this branch (section-by-section anchors): the concrete skeleton patterns for style.css (`/* === <concern> === */`) and page content (`<!-- section:<concern> -->` + `--post_content-file=`). Without these, the "skeleton-first" guidance alone was ignored for style.css — session 8 still wrote 12KB in a single Write (46.6s gap). Replaces the earlier verbose step 3a/4a blocks with a single compact "Working cadence" section after step 6 (roughly half the line count) while retaining the concrete anchor patterns. Also adds a short post-site_create reminder to the site-spec skill at the point where the rule matters most. Session 9 with the combined rules is in progress: longest content-generation gap measured so far is 18.3s (a 3.5KB style.css section fill). The 30s perceptual threshold is no longer breached on the generation side.
Author
|
done in #3199 |
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.
Related issues
See p1776889791701059/1776881604.011089-slack-C08LZ79MKG9
The turn immediately after
site_create(and after any "redesign / rebuild /start over" prompt) was consistently producing one huge assistant response —
planning essay + multiple Writes + full theme scaffold all in one turn. At
Anthropic streaming rates that's 10–15 minutes of model generation. The CLI
TUI only renders complete assistant messages (no
stream_eventhandler), sothe whole window is a silent "Meandering…" spinner; upstream gateways
sometimes time out with 504 before the response finishes.
How AI was used in this PR
Proposed Changes
Testing Instructions
studio ai→ "make me a site" → runs site-spec, creates site, next turn is small (site_info or short Write), not a 15-minute silent spanstudio aiwith existing site → "redesign the site" → cadence rule for scaffolding triggers kicks in; no mega-turnapps/cli/ai/tests/*) still green — tests mockbuildSystemPrompt, so content changes don't affect themPre-merge Checklist