2026-11-26 15:48 UTC

Study suggests coding-agent costs resist upfront prediction; live spend thresholds may flag failure

state: watchingheat: lowuncertainty: mediumrelevance: mediuminference-economics agent-cost-variability cost-guardrailsvhsgreed

What is this?

vhsgreed reports a pre-registered analysis of 424,108 public AgentLogs coding-agent sessions, mostly Claude Sonnet runs triggered from GitHub. The author says model and trigger modestly narrow expected cost, but prompt, repository and prior runs did not improve upfront prediction; repeating an identical task had a median 1.55× cost spread. In 171,000 SWE-bench-style runs, crossing the 90th-percentile cost for comparable runs was associated with substantially lower odds of task completion, suggesting a possible cost tripwire rather than a reliable forecast. The author also reports pricing validation against 1,493 OpenRouter calls. These are the author’s findings, not independently confirmed in the supplied sources. Later anecdotes describe runaway agent costs and practical budget controls, while an OpenAI customer story describes model routing and spending caps; they illustrate interest in cost governance but do not reproduce or verify this study.

Why it matters

The study raises a practical question for anyone running coding agents: can you forecast a run’s bill, or is a live spending tripwire more useful? The reported cost spread and association between high spend and lower completion odds could inform safer budget controls. But the evidence comes from one author’s analysis of public sessions and has not been independently reproduced in the supplied sources; later anecdotes show cost overruns, not confirmation of the study’s method or findings.

Current assessment

vhsgreed reports a pre-registered analysis of 424,108 public AgentLogs coding-agent sessions, mostly Claude Sonnet runs triggered from GitHub. The author says prompt, repository and prior runs did not improve upfront cost prediction, identical tasks had a median 1.55× cost spread, and crossing the 90th-percentile cost for comparable runs was associated with substantially lower completion odds in 171,000 SWE-bench-style runs; pricing was reportedly checked against 1,493 OpenRouter calls. These findings have not been independently replicated or methodologically reviewed in the supplied evidence. Anecdotes describe runaway costs and context-related usage, OpenAI’s LegalOn case study describes model selection and budget controls, and a new Show HN title reports measuring agent-built pull requests at about $2.42; these illustrate cost measurement and governance interest but do not validate the study or establish quantile-based guardrail adoption. If the study holds, peer-group cost quantiles may merit testing as warnings or stop thresholds, not as upfront price guarantees. Whether this approach becomes a referenced agent-run control remains unresolved.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady3 platformsage 1196h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-07 19:43⭐ origin directly observedThis study of 424k agent runs showed you can't predict what a Claude agent run will cost up front, but you can tell when one is going wrong
vhsgreed on r/ClaudeAI
—
10-08 12:00first on openai · published · +16.3hLegalOn halves Codex costs while maintaining development speed
OpenAI
—
10-10 00:44first on r/OpenAI · published · +53.0hA long chat re-sends its history every turn, and caching only covers the unchanged prefix
ClickOk5811
—
10-11 10:29first on r/ClaudeAI · published · +86.8hI accidentally made a $1,900 meme
roy69al
—
10-15 11:08first on hacker news · published · +183.4hHow much does an AI agent cost to run? Numbers from 4 builds
shon_marshall
—
10-07 19:43amplified on r/ClaudeAIreddit.post.1x064d4
vhsgreed
peak 2 · 6 comments · 1% of case engagement
10-10 00:44amplified on r/OpenAIreddit.post.1x21t6q
ClickOk5811
peak 5 · 8 comments · 2% of case engagement
10-11 10:29amplified on r/ClaudeAI 👑reddit.post.1x34u8s
roy69al
peak 445 · 138 comments · 84% of case engagement
10-13 06:12amplified on r/OpenAIreddit.post.1x4p2ha
Dorthy-Ashley
peak 1 · 2 comments · 0% of case engagement
10-14 23:11amplified on r/ClaudeAIreddit.post.1x660qx
sociosim
peak 21 · 30 comments · 7% of case engagement
10-15 11:08amplified on hacker newshn.story.50102016
shon_marshall
peak 2 · 0 comments · 1% of case engagement
4 more amplifiers in ainews.case_chain
10-07 20:20our radar first saw it · +0.6hdiscovery anchor: reddit.post.1x064d4—

Evidence (11) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟠 reddit ⭐This study of 424k agent runs showed you can't predict what a Claude agent run will cost up front, but you can tell when one is going wrong
ClaudeAI
vhsgreed26
🟧 openaiLegalOn halves Codex costs while maintaining development speed
Retrieved article excerpt

Open article · Retrieved 2026-10-09T04:39:30.275743+00:00

October 8, 2026

# LegalOn halves Codex costs while maintaining development speed

LegalOn cut costs by 65% while maintaining development speed by matching Astra, Sol, and Luna to tasks and managing budgets strategically.

[Start building(opens in a new window)](https://openai.com/startups)

LegalOn logo on a close-up monochrome paper texture.

Company size: Startup

Region: Asia-Pacific & Oceania

Industry: Technology

Products: Codex

Results

-20%

Cost reduction in mature business areas

Results

-65%

Reduction in estimated daily costs

Loading…

Share

LegalOn Technologies offers Professional AI globally, using AI to support legal work and other key business functions. By combining domain expertise with AI, it enables people to focus on complex judgments and decisions. Its goal is AI-driven management that improves the quality and speed of business decision-making.

This approach extends beyond its products to making the organization itself AI-native. The company integrated Codex into its development process and expanded adoption across the organization through day-to-day use.

As adoption took hold, a new challenge emerged: cost control. Unlimited use of high-performance models could drive up spending, while blanket restrictions risked undermining the productivity gains AI had enabled.

How could it reduce costs without slowing development? LegalOn Technologies addressed this challenge by selecting among GPT‑6 (Astra, Luna) and GPT‑6.1 Sol based on task complexity and development stage, and aligning budgets with each business’s stage of growth. The company halved costs while maintaining development speed.

## Optimizing models to maintain development speed and reduce costs

The company initially gave developers unlimited access to its main model, GPT‑5.5 in Fast mode. They expanded its use to design, implementation, and everyday work, learning through experimentation how best to divide responsibilities between people and AI.

Continuing to use high-performance models without limits, however, would inevitably exceed the annual budget. The company's AI-powered Development CoE (AID CoE) began developing guidelines for model selection. AID CoE tested and monitored models, while managers shared its findings with their teams. This enabled each engineer to independently choose the most suitable model for each task.

## Matching models to tasks and allocating resources strategically

The new guidelines shifted the company from using the highest-capability model for every task to choosing the right model for the job. Teams started with a lightweight model and moved to more capable models as task complexity increased.

To support governance, the company also introduced system controls through administrator settings, with monthly usage limits for departments and individuals. AID CoE monitors usage and adjusts limits as business needs require.

Internal testing under these controls helped make the selection criteria more specific. GPT‑6 Luna, the lightest model, handles code implementation with clear requirements; GPT‑6.1 Sol supports standard design, data analysis, and document preparation; and GPT‑6 Astra, the most capable model, handles advanced judgment, including architecture design. Matching models to tasks gradually became a shared practice across teams.

## Choosing among three models for different tasks

## GPT-6 Luna

Everyday execution and implementation; running everyday automations; delegating relatively simple tasks and analysis; code implementation, mainly as a subagent.

## GPT-6.1 Sol

Standard design and analysis; relatively simple software design; routine numerical analysis and document creation; tasks requiring shorter completion times than with Luna.

## GPT-6 Astra

Complex analysis, design, and orchestration; complex analysis and document creation; complex software design; coordinating agents as the orchestrator.

Alongside model selection, the company began restricting Fast mode by default, allowing individual requests only when needed. Although the change raised concerns about development speed, teams used approaches such as running tasks in parallel to maintain performance and transition smoothly.

It also introduced budget caps for AI spending at the department, group, and individual levels. The established LegalOn business was asked to improve cost efficiency by up to approximately 20%, while new businesses in the launch phase received generous budgets to encourage active use of AI.

Yuta Tokitake, Senior Engineering Manager at LegalOn Technologies, explains that new businesses prioritized business speed over cost efficiency. The aim was to use AI extensively to increase output and ultimately drive business growth.

Together, model selection, feature restrictions, and budgets tailored to each business reduced estimated daily costs by approximately 65%. This approach kept the overall budget under control while directing resources toward businesses the company wanted to grow.

## Results at a glance

Model optimization and strategic resource allocation delivered the following results:

- A shift from using the most capable model for every task to selecting GPT‑6 Astra, GPT‑6.1 Sol, or GPT‑6 Luna based on task complexity and development stage.
- Development performance maintained after restricting Fast mode by default, supported by team practices such as parallel task execution.
- Budget caps that combined approximately 20% greater efficiency in mature businesses with active investment in new businesses.
- A 65% reduction in estimated daily costs compared with GPT‑5.5 by choosing among GPT‑6 and 6.1 models.

## Measuring the true ROI of AI investment through feature releases

Through model optimization, the company reduced costs without sacrificing development speed or quality. Teams are also seeing AI steadily shorten the cycle from development to release.

But the company is looking further ahead. Does faster development alone make AI investment a success? The connection between faster development and customer value remained unclear. “It is almost a given that AI can accelerate system development and updates,” says Tokitake. “What we really want to understand is whether that faster development actually translates into value for customers.”

This question prompted the company to develop its own metric, shifting the basis for evaluating AI investment from development speed and usage volume to customer value.

Tokitake explains: “When using AI, we can track the cost of individual tasks, but the total cost of a complete piece of work—a feature release—often remains a black box. So we designed the measurement around each feature release as a single unit. By linking the customer value that release delivers to the actual AI costs invested in it, we aim to make the return on investment visible and accurate.”

The company is currently building the pipeline to calculate this metric. Once complete, it will make the true ROI in terms of customer value visible. LegalOn Technologies is moving beyond AI cost management toward directly connecting technology investment with business value.

## Building an organization and governance for the AI era

The next goal is to turn individual engineers' AI know-how into an organization-wide capability. As a first step, the company plans to build a knowledge base to collect and share practical experience. It will capture knowledge such as the best model combinations for design, implementation, and review, and quickly turn individual successes into company-wide best practices.

These changes, driven by teams' practical experience, are also shaping the organization and hiring. AI-driven productivity gains are prompting the company to fundamentally rethink how work is divided between people and AI, as well as its workforce plans. It has already begun emphasizing AI skills in hiring, as its investment strategy and organizational structure evolve.

Turning AI adoption into a lasting competitive advantage requires continually refining the balance between governance and teams' freedom to act. AID CoE and the security team are working together to optimize performance, cost, and risk from multiple perspectives, building a flexible framework that supports experimentation across the organization.

> “Excessive restrictions through rules and budgets can undermine an organization's momentum. What we need is a flexible operating model that effectively balances risk control with the speed teams need.”

Yuta Tokitake, Senior Engineering Manager, LegalOn Technologies

## OpenAI <3 startups

[Join the community](https://openai.com/leads/startup/)[Start building(opens in a new window)](https://openai.com/startups)

## Keep reading

Pollo AI — Cover and hero

[Pollo AI turns creative ideas into campaigns with OpenAI

StartupOct 8, 2026](https://openai.com/index/pollo-ai/)

Basis customer story art card - slate blue texture

[Basis completes a tax workbook 2x faster with GPT-6 Astra

Sep 28, 2026](https://openai.com/index/basis-tax-workbook-with-astra/)

Harvey customer story card image - Option C

[Harvey turns legal context into stronger drafts with GPT-6 Astra

StartupSep 23, 2026](https://openai.com/index/harvey-from-context-to-confidence-with-astra/)
OpenAI——
🟠 redditA long chat re-sends its history every turn, and caching only covers the unchanged prefix
OpenAI
ClickOk581158
🟠 redditI accidentally made a $1,900 meme
ClaudeAI
roy69al444136
🟠 reddit3 API cost traps coding-agent users keep falling into — 30-second visual
OpenAI
Dorthy-Ashley02
🟠 redditBefore someone says "just ask Claude to rebuild it": it took 2.6 billion Claude tokens, about $2,650 at API rates
ClaudeAI
Retrieved article excerpt

Open article · Retrieved 2026-10-14T23:42:43.986973+00:00

# Prove your humanity

We’re committed to safety and security. But not for bots. Complete the challenge below and let us know you’re
a real person.

[Reddit, Inc. © "2026". All rights reserved.](https://www.redditinc.com/)

[User Agreement](https://www.reddit.com/help/useragreement)
[Privacy Policy](https://www.reddit.com/help/privacypolicy)
[Content Policy](https://www.reddit.com/help/contentpolicy)
[Help](https://support.reddithelp.com/hc/en-us)
sociosim030
🟧 hnHow much does an AI agent cost to run? Numbers from 4 buildsshon_marshall20
🟠 redditI counted 14 days of Claude Code tokens and about 70% of the cost was re-reading context. Does anyone count turns instead of tokens?
ClaudeAI
Ok-Motor-9812622
🟧 hnParetoOps – CI gate on cost per successful task for LLM evalsmanasapalas10
🟧 hnAsk HN: How do you cap what your coding agents can spend?Twirled10
🟧 hnShow HN: I measured what each agent-built pull request costs (~$2.42)sebwilgosz10

Interpretation history

Decision trace