Grok 4.7: xAI's Leap in Agentic Coding Benchmarks
On September 21, 2026, xAI shipped Grok 4.7, and the story this time is not a bigger model or a new price tier — it is a jump in agentic coding that finally puts the lab in the conversation. Artificial Analysis measured Grok 4.7 at 46 on its Intelligence Index and 56 on its Coding Agent Index, a nine-point leap over Grok 4.6 that lifts the company (which official pages now brand as SpaceXAI) into the top four AI labs. Elon Musk has framed the result more aggressively, claiming it makes xAI the number three lab in agentic coding. Whether or not you buy the ranking, the numbers are real enough to make this one of the best AI tools 2026 has produced for long-horizon coding work — and worth a close look before you default to the usual suspects.
The release is notable partly for what did not change. Grok 4.7 keeps Grok 4.6’s pricing and its 500,000-token context window. What changed is how long it works on hard problems and how carefully it checks its own output.
Where Grok 4.7 Lands on LLM Benchmarks 2026
The single most important number is the Coding Agent Index score of 56, up from 47 for Grok 4.6 at the same xhigh effort level. That is enough to overtake GPT-5.6 Sol on the metric, which is the kind of passing-lane moment that gets a lab noticed. The Intelligence Index of 46 is a composite across nine evaluations, and it places Grok 4.7 just behind the absolute frontier while undercutting it on price.
The self-reported benchmark deltas from the launch post tell a consistent story. Across the board, the gains come on the long-horizon, multi-step tasks where reasoning effort actually compounds:
| Benchmark | Grok 4.6 | Grok 4.7 | Effort |
|---|---|---|---|
| CursorBench 4.0 | 40.4% | 46.3% | xhigh |
| DeepSWE v1.1 | 65.2% | 71.0% | high |
| Terminal-Bench 4.0 | 20.3% | 38.0% | xhigh (Grok Build) |
| SWE-Marathon v1.1 | 31.9% | 46.0% | high |
| HealthBench Professional | 48.5% | 56.7% | xhigh |
| Coding Agent Index (AA) | 47 | 56 | xhigh |
The Terminal-Bench jump is the most striking — nearly doubling from 20.3% to 38.0% — because Terminal-Bench stresses real terminal-based agent work, not toy code generation. DeepSWE’s 71.0% matters for the same reason: it measures an agent actually resolving real GitHub issues end to end.
A caveat worth stating up front: these are vendor-reported scores except for the Artificial Analysis figures, and the vendor numbers are reported at xhigh effort, which costs more than the default high effort. The independent AA measurement of 56 on the Coding Agent Index is the number I would anchor on, because it is the one not filtered through xAI’s own marketing.
What changed under the hood
Grok 4.7’s improvements are framed around three things: it works longer on difficult tasks, it checks its own work more carefully, and it ships with a rebuilt safeguard stack.
The “works longer” part maps to reasoning effort. Grok 4.7 exposes four effort levels — low, medium, high, and xhigh — with high as the default. The headline scores land at xhigh, which is the model spending more compute per task. This is the same playbook the rest of the frontier has been running: longer test-time compute in exchange for higher scores on hard benchmarks. The difference is that Grok is charging a flat price for it rather than introducing a separate “thinking” tier.
The “checks its own work” part is harder to quantify but shows up in the agentic benchmarks. Self-verification — running its own output back through a review pass — is one of the few reliable ways to push agentic coding scores up, and the multi-point jumps on SWE-Marathon and Terminal-Bench are consistent with a model that catches and corrects its own mistakes instead of barreling forward.
The safeguard stack is the under-reported part of this release. Grok 4.7 leads on refusal and jailbreak resistance in xAI’s own testing, and on LatchBio’s biosafety benchmark it scores 62.4%, which the team claims is the top result. On HackerBench v0.3, a benchmark of risky and malicious cyber tasks, it allows only 3.3% of risky dual-use prompts through while rarely blocking legitimate security work. For a model being pushed into enterprise coding pipelines, that safety posture is a selling point rather than an afterthought.
Pricing and where to get it
Grok 4.7 keeps the Grok 4.6 rate card. Under 200,000 prompt tokens, list pricing is $2 per million input tokens and $6 per million output tokens, with cached input at $0.50. At or above 200,000 tokens, the whole request bills at $4 input and $12 output. There is also a fast variant that serves twice the output speed at twice the price.
That price is the quiet headline. At $2/$6, Grok 4.7 is aggressively cheaper than the frontier models it is now within shouting distance of on coding benchmarks. A Vercel AI Gateway promotion running through late September 2026 cuts the effective rate further, to roughly $1.20 input and $3.60 output. When a model that scores 56 on the Coding Agent Index costs a fraction of its rivals, the economics of “which model do I wire my agent to” start to shift.
Grok 4.7 is available now in Cursor and Grok Build, through the Grok API, and on third-party coding harnesses, model routers, and cloud platforms. The context window is 500,000 tokens, and input modalities are text plus image with text output.
How to use Grok 4.7 in practice
If you are coming from the OpenAI SDK, the call is nearly identical. The one parameter worth knowing about is the reasoning effort, which the docs expose as reasoning.effort with four levels: low, medium, high, and xhigh. High is the default; xhigh is where the headline benchmark numbers come from, and it costs more compute.
from openai import OpenAI
client = OpenAI(base_url="https://api.x.ai/v1", api_key="xai-...")
resp = client.chat.completions.create(
model="grok-4.7",
messages=[
{"role": "user",
"content": "Trace the failing test in this repo to its root cause and fix it."}
],
reasoning={"effort": "xhigh"},
)
print(resp.choices[0].message.content)
The practical takeaway is to tier your work. Use high effort for routine completions and reserve xhigh for the multi-step agentic tasks where the extra test-time compute actually pays for itself — exactly the CursorBench and Terminal-Bench style workloads where Grok 4.7 shows its biggest gains. If you run everything at xhigh, you will eat through your budget for marginal benefit on easy prompts.
In Cursor, the integration is day-one and requires no code: you pick Grok 4.7 as the model and Cursor handles the agent loop. In Grok Build, the CLI is a one-liner install, and the model is wired into the harness with the same effort knob. The $2/$6 pricing means you can leave it on for background agents without watching the meter the way you would on a frontier model.
What this means for the coding agent market
Grok 4.7’s launch lands into a market that is already in a price war, and its positioning is deliberately awkward for the incumbents. Anthropic and OpenAI have been selling capability at a premium; Grok 4.7 is selling near-frontier coding at a discount. The fact that it ships at the same price as its own predecessor while overtaking GPT-5.6 Sol on the Coding Agent Index is a pointed message: the price-performance frontier is moving faster than the raw-capability frontier.
For enterprise buyers, the effect is deflationary pressure across the board. If a model at $2/$6 scores 56 on the Coding Agent Index, the justification for paying several times more for a model a few points higher gets harder to make on the tasks that make up most of a real codebase’s workload. Expect the coding-assistant market — Cursor, Vercel, and the enterprise harnesses — to keep pushing models down the cost curve, and expect Anthropic and OpenAI to respond either with price cuts or with capability jumps large enough to re-open the gap.
The Musk-Amodei subplot is worth a footnote. Musk has been publicly aligned with calls to slow frontier development, and Amodei has been making the same argument from the other side of the table. Watching xAI ship an aggressive price-performance model while its leader argues for slowing the frontier is a small irony, but it does not change what the benchmark table says.
The honest comparison
For all the progress, it is worth being precise about where Grok 4.7 actually sits. Independent analysis pegs it as still trailing GPT-6 Astra by a meaningful margin on aggregate benchmark testing — one write-up put the gap at roughly 34 points across a broad test battery. Grok 4.7 beats its own predecessor convincingly and closes the gap on GPT-5.6 Sol in coding specifically, but it is not the overall frontier model. It is a price-performance play: you get a large chunk of frontier coding capability for a fraction of the cost.
That is the interesting position, not a failing. For agentic coding workloads that are dominated by many mid-complexity tasks rather than a few maximally hard ones, the relevant question is rarely “what is the single smartest model” and more often “what gets this done cheaply and reliably.” On that axis, Grok 4.7 is now genuinely competitive.
Who should use this
Grok 4.7 is worth trying if you are running coding agents at volume and your cost per resolved task matters. The Coding Agent Index of 56 at $2/$6 pricing is hard to ignore if you have been paying frontier rates for a model that scores only a few points higher. Cursor’s day-one integration also means you can drop it into an existing workflow without building new plumbing.
It is also a reasonable pick for teams in regulated or security-sensitive domains that want a model with a strong refusal and jailbreak-resistance story, given the HackerBench and LatchBio results.
Who should NOT use this
Skip Grok 4.7 if your work is dominated by the single hardest reasoning tasks, where the gap to the true frontier (GPT-6 Astra and company) still matters and budget is secondary. Also skip it if you need open weights — Grok 4.7 is proprietary, and none of this applies if your constraint is running a model you can host yourself. And treat the headline xhigh scores with the usual skepticism: they cost more compute than the default high effort, so your real-world results on a budget will sit below the marketing numbers.
The bottom line
Grok 4.7 is the clearest signal yet that agentic coding is becoming a price-performance fight rather than a pure capability fight. A nine-point jump on the Coding Agent Index, flat pricing, and a rebuilt safety stack add up to a model that is suddenly a serious option for anyone wiring agents into real codebases. It is not the frontier, but it does not need to be — at $2/$6, it is undercutting the frontier badly enough that a lot of people will decide it is good enough.
Sources
- xAI, “Introducing Grok 4.7”: https://x.ai/news/grok-4-7
- Artificial Analysis, “Benchmarking Grok 4.7”: https://artificialanalysis.ai/articles/benchmarking-grok-4-7
- Artificial Analysis, Grok 4.7 model page: https://artificialanalysis.ai/models/releases/grok-4-7
- LLM Stats, “Grok 4.7 Release: Same Price, Longer Horizons”: https://llm-stats.com/blog/research/grok-4-7-launch