#16 Cursor · Grok 4.5 (Multi-Model Sub-Agents)

Build Detail

2026-07-18-cursor-grok-4-5 · Cursor

The Story

The first run on the page driven from Cursor rather than Claude Code or Codex, and the first with xAI’s Grok 4.5 as the orchestrator. Same “do it in one go without stopping” brief as every other build, with an extra demand: “test everything via Pest… also simulate user behaviour using the Playwright MCP and confirm all acceptance criteria… then make a full review meeting and showcase all features to me.” What makes this run unusual is not the harness but the team it assembled: Grok did almost none of the implementation itself and instead delegated every phase to model-pinned sub-agents from three different vendors.

The orchestrator (Grok 4.5, 187 tool calls) spawned five Task sub-agents and hand-picked the model for each: the Phase 1-2 schema and models went to GPT-5.6-sol via Cursor’s Codex-plugin as a background task, Phase 3-5 services (19 migrations, 18 enums, 10 domain services), the demo seeders, and the entire admin panel all to more GPT-5.6-sol sub-agents, and the whole storefront UI to Claude Sonnet 5. The tool signatures make the split visible: the GPT sub-agents work in ApplyPatch/ReadFile/rg, the Claude storefront agent in Read/Write/StrReplace. Grok kept the integration, the git history, and the “review meeting” for itself — 48 of its calls are Playwright MCP, driving the finished shop in a browser to check its own work. The six commits trace the pipeline exactly: foundation, then commerce, then a single large storefront/admin/seeders drop, then two targeted fixes.

The delegation shipped a mostly-working shop but a leaky one. 127 of 143 acceptance tests pass (91% weighted): the customer funnel — browse, variants, cart, all three payment methods, every shipping zone, all five discount codes with correct inline errors — is essentially flawless, and the admin CRUD surface is broad. But the Claude-built storefront account pages ship broken four ways (address add/edit are inert from a fluxModal is not defined JS error, order-detail links point at a literal #, invalid logins show no error), a GPT-built admin page-create crashes to a raw Laravel debug screen that leaks the stack trace and session cookies, and the multi-tenant admin still renders the wrong store’s catalog — the same cross-tenant leak seen on every prior build of this spec. SonarCloud’s gate came back red (reliability C, security C, seven vulnerabilities). And yet the run cost only $41: 99% of the 84M tokens were cache reads, so cache alone is $34 of the bill and fresh input plus output is under $8.

Net: a genuinely novel setup — a Grok orchestrator successfully driving GPT and Claude specialists — that lands mid-pack. Against #13 Opus 4.8 team mode (95.5% weighted, $498) and #15 Codex Ultra (95.8% weighted, $120), this run is by far the cheapest and fastest — $41 in 71 minutes — but the lowest-scoring of the three. Its SonarCloud gate is red (reliability C, security C), as it is on almost every build of this spec, but here it comes with seven weak-randomness vulnerabilities and a still-broken customer-account surface. The hybrid worked; the review meeting caught less than it should have. Our independent QA report has the full detail on the leak, the debug-page crash, and the broken account surface.

Duration

1h 11m

Jul 18, 12:21 - Jul 18, 13:32

Estimated Cost

$41.10

84.0M total tokens

Tool Calls

187

orchestrator, 9 unique

Sub-agents

5

model-pinned Task agents

Team Total

6

orchestrator + sub-agents

Commits

6

git commits made

Cursor Multi-Model Sub-Agents

3 vendors, 1 orchestrator

User Prompt (verbatim)

Your mission is to implement an entire shop system based on the specifications im specs/*. You must do in one go without stopping. You might use sub-agents or team mode! You must test everything via Pest (unit, and functional tests). You must also additional simulate user behaviour using the Playwright MPC and confirm that all acceptance criterias are met. If you find bugs, you must fix them. The result is a perfect shop system. All requirements are perfectly implemented. All acceptance criterias are met, tested and confirmed by you. Continuously keep track of the progress in specs/progress.md Commit your progress after every relevant iteration with a meaningful message. When implementation is fully done, then make a full review meeting and showcase all features (customer- and admin-side) to me. In case bugs appear, you must fix them all and restart the review meeting. Don't re-use any existing implementation in another branch. Build it from scratch.

Grok 4.5 orchestrated from Cursor and delegated every implementation phase to a sub-agent with an explicitly-pinned model: GPT-5.6-sol for the Phase 1-2 schema/models (launched as a Codex background task), Phase 3-5 services, the demo seeders, and the admin panel; Claude Sonnet 5 for the entire storefront UI. The orchestrator itself handled integration, commits, and a Playwright-driven “review meeting” (48 of its 187 calls were browser MCP calls).

Models used

3

Grok 4.5 · GPT-5.6-sol · Claude Sonnet 5

Cache read share of input

99.1%

cache reads dominate the bill, not fresh input

Agent Timeline

5 sub-agents
Orchestrator (Grok 4.5)
187 tool calls · plan, delegate, integrate, review
1h 11m
Storefront Livewire UI (claude-sonnet-5)
307 tools
12:46:00
Phase 3-5 Services (gpt-5.6-sol)
189 tools
12:26:00
Admin Panel UI (gpt-5.6-sol)
114 tools
12:46:00
Demo Seeders (gpt-5.6-sol)
93 tools
12:46:00
Phase 1-2 Schema & Models (gpt-5.6-sol (Codex bg task))
1 tools
12:22:00
12:21:1312:38:5512:56:3713:14:1913:32:02

Sub-Agent Roster

5 model-pinned agents

Storefront Livewire UI

claude-sonnet-5

307 tools

started ~12:46:00

All 116 tests pass. Summary of the work: ## Summary Built the full storefront UI from scratch on top of the existing domain services, without modifying admin routes/files or rewriting any domain logic. **Foundation** - `App\Support\Money` helper for `24.99 EUR` formatting. - `resources/views/layouts/storefront.blade.php` — skip link, header/nav, announcement bar, footer, cart-drawer slot, dark

Phase 3-5 Services

gpt-5.6-sol

189 tools

started ~12:26:00

Implemented Phases 3–5 data/domain foundation: - 19 migrations, models, and factories - 18 enums - 10 domain/payment services - Payment contract and value objects - 3 scheduled jobs and 5 order events - 10 Pest test files - Updated `specs/progress.md` - Registered payment provider and schedules Verification: - Migration rebuild and seed: passed - Pint: passed - Tests: 17 passed, 51 assertions -

Admin Panel UI

gpt-5.6-sol

114 tools

started ~12:46:00

Implemented the admin panel with: - Admin authentication and password reset flows - Flux-based responsive admin shell and store selector - Dashboard, catalog, orders, customers, discounts, settings, content, themes, analytics - Apps and Developers stubs - Fulfillment, refund, and bank-transfer actions using existing services - 30 admin routes with protected middleware - Updated `specs/progress.md

Demo Seeders

gpt-5.6-sol

93 tools

started ~12:46:00

Partial pass. - `migrate:fresh --seed`: passed - Feature test: 1 passed, 5 assertions - Pint: passed - Seeders are repeatable - `specs/progress.md` updated - No commit created - Herd hostname: `acme-fashion.test` Gap: analytics/search tables and `draft.yaml` do not exist; Blueprint is not installed. Their seeders are wired but safely skip missing tables. Spec inconsistency: detailed fashion pro

Phase 1-2 Schema & Models

gpt-5.6-sol (Codex bg task)

1 tools

started ~12:22:00

Codex Task started in the background as task-mrq7xj4g-kecu9x. Check /codex:status task-mrq7xj4g-kecu9x for progress.

Cost & Tool Usage

$41.10 total

Cursor bills these requests as “Included” on the subscription plan, so no per-token charge actually applied. The figure here is the equivalent OpenRouter API cost: each request from Cursor’s usage export is priced at its model’s live OpenRouter rate — Grok 4.5 ($2/$6 per M in/out, $0.50/M cache read), GPT-5.6-sol ($5/$30, $0.50/M cache read, $6.25/M cache write), Claude Sonnet 5 ($2/$10, $0.20/M cache read, $2.50/M cache write). Usage rows before the orchestrator started (10:21 UTC) belong to an earlier unrelated run in the same workspace and are excluded.

Cache reads were 99.1% of all input tokens (82.9M of 83.6M), and they — not fresh input or output — dominate the bill: $33.77 of the $41.10 total. This whole-run figure spans the Grok orchestrator plus all five sub-agents; unlike Codex, Cursor reports usage per request, so the categories below do not double-count sub-agent tokens.

Cost Breakdown (orchestrator + all 5 sub-agents)

Input Tokens760.7K · $1.52
Cached Input82.9M · $33.77
Output Tokens371.0K · $5.81

Full Calculation (per-model OpenRouter rates)

CategoryTokensCost
Input (uncached)760.7K$1.52
Cached Input (read + write)82.9M$33.77
Output371.0K$5.81
Total$41.10

Tool Usage (orchestrator - 187 calls)

CallMcpTool
48
Read
42
Shell
36
StrReplace
27
Write
15
GetMcpTools
7
Grep
6
Task
5
Glob
1

The five sub-agents made 704 additional tool calls of their own (ApplyPatch/Read/Write/Shell), not broken out per-tool above. CallMcpTool is the Playwright browser MCP used for the review meeting.

Sub-agents by Workload

5 sub-agents

Ranked by tool calls. The Claude Sonnet 5 storefront agent did the most work by a wide margin; the four GPT-5.6-sol agents split the backend, seeders, and admin.

#AgentModelStartedTool Calls
1Storefront Livewire UIclaude-sonnet-5~12:46:00307
2Phase 3-5 Servicesgpt-5.6-sol~12:26:00189
3Admin Panel UIgpt-5.6-sol~12:46:00114
4Demo Seedersgpt-5.6-sol~12:46:0093
5Phase 1-2 Schema & Modelsgpt-5.6-sol (Codex bg task)~12:22:001
5 sub-agents total704

Commits

6 commits
12:21:13Initial
12:26:37Add multi-tenant foundation and catalog data layer.
12:45:54Add commerce domain: cart, checkout, payments, and orders.
13:28:21Ship storefront, admin UI, seeders, and platform extras.
13:31:58Fix shipping rate display and polish fulfillment UX.
13:32:02Ignore Playwright MCP session artifacts.

Session Details

b7b50add
Session IDb7b50add-1cdf-441c-84b9-31978fa25bca
HarnessCursor
Sandbox Modeworkspace-write
Model ProvidersxAI (Grok) · OpenAI · Anthropic
Working Directory/Users/fabianwesner/Herd/shop
Git Branch2026-07-18-cursor-grok-4-5
Git Repositorytecsteps/shop.git
Modelsgrok-4.5 (orchestrator) · gpt-5.6-sol + claude-sonnet-5 (sub-agents)
Reasoning Efforthigh
Collaboration Modesub-agents
User Messages2
Sub-agents Spawned5

Raw Session Logs

Plus 5 sub-agent transcripts available at /2026-07-18-cursor-grok-4-5/subagents/. Token usage and cost are reconstructed from Cursor’s usage-events export (the JSONL transcripts carry no token counts).

187 orchestrator tool calls · 6 agents total · 84.0M tokens · 6 commits

Grok 4.5 orchestrator + 5 model-pinned sub-agents (GPT-5.6-sol · Claude Sonnet 5)