跪拜 Guibai
← All articles
Claude

A Single Prompt Ran an 85-Minute, $52.55 Website Refactor—and Hit the Quota Wall Before Finishing

By 孟健AI编程 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Long-running autonomous AI coding tasks are now practical enough to do real site refactors, but they carry hard quota and cost ceilings that can interrupt work inches from the finish line. A two-phase prompt split is a concrete pattern to keep the bill visible and avoid hitting the 5-hour cap mid-task.

Summary

Running Claude Code with Claude Fable 5.2 on high effort, a developer set a single prompt to rebuild a product site: the repo was the model's, it should match award-winning design, and it should never stop to ask. Fable 5.2 read the brand docs, saved a 79-page baseline, scraped Awwwards-style references, and forked three sub-agents to prototype three homepage directions. After 20 minutes of polish on the winning "Atlas" concept, it rolled the design across pricing, gallery, and docs pages, fixing mobile click targets under 44px along the way.

The run burned 1 hour 25 minutes and $52.55 (with a 98% prompt cache hit rate), added 4,320 lines and deleted 421, before the 5-hour quota cap cut things off just short of final verification. The author then re-ran the test scripts manually and found SEO held at 91 pages with zero regressions, but four mobile pages loaded 0.1–0.3 seconds slower, so the prompt's speed requirement wasn't fully met. The lesson: don't hand a whole site refactor to one long task; split it into a comparison phase and a rollout phase with a fresh session.

Takeaways
— Claude Fable 5.2 pricing is $8 per million input tokens and $40 per million output tokens; an optional fast mode doubles the price for up to 2.5x generation speed.
— Fable 5.2 spawned 3 parallel sub-agents to build 3 homepage directions, then the main agent compared side-by-side screenshots and selected one.
— The full run lasted 1 hour 25 minutes 34 seconds, added 4,320 lines, deleted 421 lines, and modified 20 files across the site.
— Total cost was $52.55: $52.21 for Fable 5.2 and $0.34 for a Haiku 5.5 sub-agent used for scraping references.
— The prompt cache hit rate reached 98% across 130 requests, which cut repeated input-token costs significantly.
— The account's 5-hour usage quota interrupted the task before the model could run its own SEO and speed verification; the author had to run the scripts manually.
— SEO/GEO checks passed all 91 pages with zero regressions, but mobile first-screen load slowed 0.1–0.3 seconds on 4 pages, with the English pricing page worst at 0.33 seconds.
— The model automatically detected and fixed mobile click targets smaller than 44px in the docs sidebar and other spots.
— Recommended workflow: run the reference-and-three-directions phase first, then open a new session with `/clear` and run the rollout phase separately.
— Docs page size dropped from about 5MB to about 0.8MB after real product screenshots were transcoded to AVIF and WebP.
Conclusions

A 98% prompt cache hit rate shows long tasks reuse enormous amounts of repeated context, but the dollar total is still steep enough that solo developers need to think of prompting as a budget decision, not just an automation win.

The model caught real usability issues like sub-44px touch targets and mobile overflow on its own, which suggests AI-driven QA is advancing, yet it still failed its own load-speed goal on mobile because it ran out of quota before final tuning.

Splitting a long task into two sessions isn't just a quality or cost-control measure; it's an explicit workaround for a hard platform limit that the vendor itself imposes on unattended runs.

The author's stated requirement that "no SEO item got worse" was met, but the

The author's stated requirement that "no SEO item got worse" was met, but the speed requirement was not fully satisfied, meaning the model's self-verification is only as good as the prompts that set the acceptance criteria.

Concepts & terms
Prompt cache
A mechanism that reuses previously computed input token prefixes across requests in a session, so repeated context costs a fraction of the full price; here it hit 98% and saved significant money during a long autonomous run.
Fork agents
Sub-agents spawned by the main Claude Code agent to run parallel tasks, such as building three prototype directions simultaneously, each with its own headless browser screenshots and iteration loop.
Fast mode
An optional Claude mode that can speed generation up to 2.5x at the cost of doubling the per-token price ($16/$80 instead of $8/$40), intended for time-sensitive work where latency matters more than budget.
5-hour usage quota
A per-account cap on how much Claude Code can run in a rolling window; when exhausted, autonomous tasks are interrupted and return to the manual prompt input until the quota resets.
Effort setting
A Claude Code parameter controlling how much reasoning the model applies; high effort increases depth of thought and self-checking but consumes more time, tokens, and quota.
From the discussion

The only substantive comment evaluates the refactor's cost and risk. It argues that the high-effort, parallel-agent approach is thorough but dangerously dependent on the quota tail, and recommends splitting the work into separate sessions with cache reuse to make it reproducible. The mobile performance regression is also flagged as a reason to test beyond static screenshots.

— High-effort agentic refactoring catches fine-grained issues like 44px click targets, but at $52.55 and 85 minutes it becomes a risky bet when the task hits the quota wall before finishing.
— Splitting the workflow into a compare/decide phase and an implementation phase—each in a new session—with a 98% cache hit rate is the only pattern worth copying.
— A 0.1–0.3 second mobile slowdown proves that screenshots alone miss real performance regressions.
Featured comments
用户368345607470

85 minutes, $52.55, 4,320 lines changed, and still hitting the 5-hour quota—this exposes the real issue: high effort with three-way parallel comparison does meticulous work, even self-checking the 44px click targets, but betting the acceptance on the tail end of a quota in a long task is too risky. Splitting it into a compare-and-decide phase and an implementation phase, each with a fresh session, plus a 98% cache hit rate, is the replicable approach. The 0.1–0.3 second slowdown on mobile is a reminder not to trust only screenshots.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗