Skip to content

Run Pi on SuperGrok the same way as graff-dev SWE - #667

Closed
justrach wants to merge 2 commits into
mainfrom
cursor/pi-swe-harness-4ffc
Closed

Run Pi on SuperGrok the same way as graff-dev SWE#667
justrach wants to merge 2 commits into
mainfrom
cursor/pi-swe-harness-4ffc

Conversation

@justrach

@justrach justrach commented Aug 28, 2026

Copy link
Copy Markdown
Owner

ADR 0024 compared graff vs grok-build on --suite swe. Pi was already wired as pi (OpenAI/luna) and pi-codegraff (Gemini gateway) — not the SuperGrok seat those numbers used.

This adds pi-xai: a wrapper that maps graff login xai (~/.xai/credentials/graff-oauth.json) into XAI_API_KEY so stock Pi spends the same subscription. Stock Pi xai is an API-key provider; type=oauth is ignored.

cd graff-evals && ./run.py --suite swe --harness graff-dev,pi-xai --model grok-4.6 -j 6

Live A/B (2026-08-28, run-20260828-164346.jsonl)

Same 6 DeepSWE-shaped tasks, grok-4.6, SuperGrok, -j 6, one rep. Pi on stock defaults (4-tool catalog, thinking on).

harness pass wall (sum) first RSS in out calls $
graff-dev 4/6 455.5s 2.6s 91.3M 161066 11590 30 $0.0000
pi-xai 5/6 275.5s 0.9s 165.5M 186368 6501 31 $0.1344
task graff pi
config-parse ✓ 89s / 28k / 5 ✓ 45s / 27k / 5
cookie-store ✓ 86s / 31k / 5 ✓ 102s / 44k / 6
json-stream ✗ 80s / 26k / 5 ✓ 49s / 42k / 6
label-sort ✗ 77s / 26k / 5 ✗ 38s / 22k / 4
map-conflict ✓ 60s / 25k / 5 ✓ 16s / 26k / 5
validated ✓ 64s / 26k / 5 ✓ 26s / 27k / 5

Pi's extra pass is json-stream whitespace-only json-seq — the same spec-contract miss ADR 0024 already named (grok-build passed it). Both miss label-sort. Tokens and calls are a wash.

Caveats: Pi first_out_s is the first JSONL session line, not TUI first paint. Pi $ is list-price; graff SuperGrok is flat-rate $0.0000.

Reject: Pi's 4-tool catalog, Pi's 165M heap, treating first_out as a TUI steal.

Next speed cut (not this PR): every graff-dev SWE sandbox wrote 127M .graff/learn-kit/graff-pinned (a copy of the binary). Pi's sandbox is ~8K. Skip auto-init on -p if we want the next wall/RSS drop. TUI leftover after the early alt-screen claim is first chrome, not another escape.

Recorded as ADR 0043. 0042 is the TUI claim on #666.

Open in Web Open in Cursor 

Add a pi-xai harness that maps graff login xai into XAI_API_KEY so
`--suite swe --harness graff-dev,pi-xai --model grok-4.6` is the same
seat A/B ADR 0024 used for grok-build. Stock Pi xai is an API-key
provider; oauth type is ignored.
Same-login A/B (run-20260828-164346): Pi 5/6 in 276s / 166M vs graff
4/6 in 456s / 91M. Extra pass is json-stream whitespace-only json-seq
(already named in ADR 0024). Do not steal Pi's catalog or heap.
@justrach

Copy link
Copy Markdown
Owner Author

Already on main via the 281 cut (#670 / ADR 0043). Closing as superseded.

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.

2 participants