News icon

Batch Inference is now generally available on Runpod Serverless

Agents are becoming a runtime. Here's what that costs.

Developers can write a procedure in English and let an agent decide how to execute it, within limits enforced by its host application. That division of work changes how software is verified and paid for.

Agents are becoming a runtime. Here's what that costs.

Developers can write a procedure in English and let an agent decide how to execute it. The procedure specifies the goal, available tools, and constraints. The agent chooses steps and responds to failures within limits enforced by its host application. That division of work changes how software is verified and paid for.

Andrej Karpathy called English "the hottest new programming language" in 2023. John Berryman described the execution model in "Programming in English using Cursor Commands": a markdown specification can run as a workflow, with an agent as its runtime.

When a model generates the execution path, two runs of the same procedure can take different steps, consume different amounts of compute, and finish at different times. To assess the tradeoff, engineers need to measure what it takes to complete a task correctly.

How an agent acts as a runtime

A runtime provides services that a program needs during execution. The JVM, for example, defines memory areas, method execution, and exception handling. An agent system operates at a higher level: the model selects actions, while its surrounding execution software calls tools, maintains state, and enforces stopping conditions. Together, they perform the runtime role for a procedure written in English.

Consider an illustrative task: a weekly operating report assembled from several data sources. An agent loads a reporting skill, retrieves records, runs a calculation script, and checks the result. If a source times out, it can retry or use an approved fallback. If totals disagree, it can investigate before producing the report.

Conventional software also branches and retries. The agent can additionally generate a plan during execution. The skill supplies instructions for the task; the host application controls which tools and actions are permitted. A well-written skill helps guide the agent, but its instructions alone do not enforce those boundaries.

Diagram: a reporting skill loads into an agent loop that chooses an action, calls a tool, inspects the result, and chooses the next action, branching between retrieving records, running a calculation script, and investigating discrepancies, all inside the host application's permitted tools and stopping conditions.

RUNPOD · AGENTS

The agent generates the path

A reporting skill supplies the goal and instructions. The loop chooses each step at run time, inside the host application's limits.

The agent generates the pathHOST APPLICATION · PERMITTED TOOLS · STOPPING CONDITIONSReporting skillSKILL.MD · GOAL + TOOLSAgent loopCHOOSECALLINSPECTNEXTRetrieve recordsTOOL · GET_RECORDSRun calculation scriptTOOL · RUN_CALCInvestigate discrepancyTOOL · QUERY_AUDIT_LOGSTEP 7 · MAX 20PERMITTED TOOLSSTOP · STEPS + BUDGET

PERMITTED TOOLS ONLYSTOPPING CONDITIONS ENFORCEDCOST PER COMPLETED TASK

.rpmd-agent-path{--rp-color-brand-midnight:#000010;--rp-color-brand-purple:#5D29F0;--rp-color-brand-purple-200:#9289FE;--rp-color-utility-success:#41F420;--rp-color-white:#FFFFFF;--rp-color-neutral-300:#AAAAAF;--rp-font-developer:"Departure Mono",ui-monospace,"SF Mono",Menlo,monospace}.rpmd-agent-path{position:relative;max-width:1080px;margin:0 auto;border-radius:24px;padding:30px 32px 26px;background:radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.3px),radial-gradient(900px 520px at 78% -12%, rgba(93,41,240,0.34), transparent 62%),radial-gradient(700px 440px at -6% 112%, rgba(146,137,254,0.15), transparent 60%),radial-gradient(620px 400px at 106% 106%, rgba(135,75,255,0.11), transparent 60%),var(--rp-color-brand-midnight);background-size:22px 22px, auto, auto, auto, auto;border:1px solid rgba(255,255,255,0.10);box-shadow:0 36px 100px rgba(93,41,240,0.18);overflow:hidden;font-family:inherit}.rpmd-ap-head{position:relative;z-index:2}.rpmd-ap-kicker{display:inline-flex;align-items:center;gap:8px;font:10.5px var(--rp-font-developer);letter-spacing:0.14em;color:var(--rp-color-neutral-300);padding:6px 13px;border-radius:100rem;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.12)}.rpmd-ap-kdot{width:6px;height:6px;border-radius:50%;background:var(--rp-color-brand-purple);box-shadow:0 0 8px rgba(93,41,240,0.9)}.rpmd-ap-title{margin:16px 0 5px;font-size:22px;font-weight:500;color:var(--rp-color-white);letter-spacing:-0.01em}.rpmd-ap-caption{font-size:13.5px;color:rgba(255,255,255,0.66);max-width:620px}.rpmd-agent-path svg{width:100%;height:auto;display:block;margin-top:16px}.rpmd-ap-bound{fill:rgba(93,41,240,0.045);stroke:rgba(146,137,254,0.38);stroke-width:1.2;stroke-dasharray:6 8}.rpmd-ap-boundt{font:8.5px var(--rp-font-developer);fill:var(--rp-color-neutral-300);letter-spacing:0.11em}.rpmd-ap-node{fill:rgba(255,255,255,0.04);stroke:rgba(255,255,255,0.12);stroke-width:1}.rpmd-ap-node.rpmd-ap-hot{stroke:rgba(146,137,254,0.45);fill:rgba(93,41,240,0.10)}.rpmd-ap-ntitle{font:500 12px inherit;fill:var(--rp-color-white);font-family:inherit}.rpmd-ap-nsub{font:7.5px var(--rp-font-developer);fill:rgba(255,255,255,0.56);letter-spacing:0.06em}.rpmd-ap-step{font:7.5px var(--rp-font-developer);fill:rgba(255,255,255,0.72);letter-spacing:0.09em}.rpmd-ap-chip{fill:rgba(0,0,16,0.85);stroke:rgba(255,255,255,0.14);stroke-width:1}.rpmd-ap-chipt{font:8.5px var(--rp-font-developer);fill:var(--rp-color-neutral-300);letter-spacing:0.09em}.rpmd-ap-flow{fill:none;stroke:rgba(146,137,254,0.30);stroke-width:1.4;stroke-dasharray:3 7;animation:rpmdApDash 1.5s linear infinite;animation-play-state:var(--rpmd-play,running)}@keyframes rpmdApDash{to{stroke-dashoffset:-10}}.rpmd-ap-pkt{fill:var(--rp-color-brand-purple-200)}.rpmd-ap-pkt.rpmd-ap-ret{fill:var(--rp-color-white);opacity:0.92}.rpmd-ap-qdot{fill:rgba(146,137,254,0.8)}.rpmd-ap-br{animation:rpmdApBr 12s ease-in-out infinite;animation-play-state:var(--rpmd-play,running)}.rpmd-ap-bb{animation-delay:4s}.rpmd-ap-bc{animation-delay:8s}@keyframes rpmdApBr{0%,4%{fill:rgba(255,255,255,0.04);stroke:rgba(255,255,255,0.12)}8%,27%{fill:rgba(93,41,240,0.18);stroke:rgba(146,137,254,0.5)}33%,100%{fill:rgba(255,255,255,0.04);stroke:rgba(255,255,255,0.12)}}.rpmd-ap-ga,.rpmd-ap-gb,.rpmd-ap-gc{animation:rpmdApPk 12s ease-in-out infinite;animation-play-state:var(--rpmd-play,running)}.rpmd-ap-gb{animation-delay:4s}.rpmd-ap-gc{animation-delay:8s}@keyframes rpmdApPk{0%,4%{opacity:0.12}8%,27%{opacity:1}33%,100%{opacity:0.12}}.rpmd-ap-dia{fill:none;stroke-width:1}.rpmd-ap-dlav{stroke:rgba(146,137,254,0.55)}.rpmd-ap-dmag{stroke:rgba(135,75,255,0.5)}.rpmd-ap-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:2}.rpmd-ap-pill{font:10.5px var(--rp-font-developer);letter-spacing:0.12em;color:rgba(255,255,255,0.8);padding:7px 14px;border-radius:100rem;background:rgba(255,255,255,0.045);border:1px solid rgba(255,255,255,0.11)}@media (max-width:640px){.rpmd-agent-path{padding:20px 16px 18px}.rpmd-ap-title{font-size:18px}}@media (prefers-reduced-motion: reduce){.rpmd-root *{animation:none !important}.rpmd-root .rpmd-ap-pkt{display:none}.rpmd-ap-ga,.rpmd-ap-gb,.rpmd-ap-gc{opacity:1}}(function(){var root=document.querySelector('.rpmd-agent-path');if(!root)return;var svg=root.querySelector('svg');var el=document.getElementById('rpmdApStep');if(el){var n=7;setInterval(function(){n=n>=18?1:n+1;el.textContent='STEP '+n+' · MAX 20';},1100);}if(matchMedia('(prefers-reduced-motion: reduce)').matches){if(svg&&svg.pauseAnimations)svg.pauseAnimations();return;}if('IntersectionObserver' in window){new IntersectionObserver(function(es){es.forEach(function(e){root.style.setProperty('--rpmd-play', e.isIntersecting?'running':'paused');if(svg&&svg.pauseAnimations){e.isIntersecting?svg.unpauseAnimations():svg.pauseAnimations();}});},{threshold:0.1}).observe(root);}})();

Skills become a unit of software

A skill packages instructions and context for a class of tasks, along with scripts and resources where needed. Agent Skills, introduced by Anthropic and published as an open standard, use a folder containing a SKILL.md instruction file that an agent can discover and load. The Model Context Protocol provides a complementary interface to external tools and data. A reporting skill could describe how to reconcile figures while using tools exposed through MCP to retrieve the source records.

Packaging a procedure lets others reuse it without rebuilding its implementation. A skill can be distributed and versioned much like a library. People who understand the work can contribute instructions even when they do not write application code. A reporting specialist, for example, can specify which sources take precedence and how discrepancies should be resolved.

Execution still depends on the model's interpretation. Changing a sentence can change which source the agent trusts or when it stops investigating. Skill revisions therefore need evaluation against representative tasks, including cases where sources disagree.

The reporting skill coordinates work that still depends on ordinary software. Someone must write, test, and maintain the calculation script it calls.

Dijkstra's objection, and where it still holds

Edsger Dijkstra raised the underlying objection in "On the foolishness of natural language programming" in 1978. Formal symbolism supports precise reasoning, he argued, while natural language can make it easier to write statements whose nonsense is not obvious. An English procedure can sound clear to its author while leaving important behavior unspecified.

A large language model can use context to turn incomplete instructions into executable actions. This makes English useful for directing software while leaving the author responsible for what those instructions mean. A plausible interpretation can still be wrong.

Suppose the reporting skill says to use the "latest" figures. Does that mean the most recently published data or the most recent complete reporting period? The calculation script can be correct and the report can match its required schema while answering the wrong question. The skill needs to define the period, and the workflow needs to check source dates before accepting the result.

Structured outputs constrain the response to a schema; they do not establish that the figures are correct. Evals test behavior across selected cases. Deterministic validation can reject invalid tool arguments or totals that fail reconciliation. For this report, acceptance should include the reporting period, the sources used, and agreement between source figures and reported totals.

Writing the skill therefore includes defining a correct report and the evidence needed to accept it. Clear requirements give the team something concrete to test.

The compute cost of an agent's decisions

The reporting agent might retrieve several sources in parallel, wait for external services, then make a sequential series of model calls to resolve a discrepancy. While it waits for data, the application may need to preserve task state without keeping an inference worker busy. The model's decisions can change both the amount and timing of work after a request has started.

Model calls on the critical path add directly to completion time. If the next decision depends on the previous result, more parallel capacity cannot remove that dependency. In a deployment that scales inference workers down, a request may also wait for a worker to start and load its model. Capacity planning needs to account for how often the workflow encounters that delay.

Retries add work even when the deliverable stays the same. A skill may begin as a markdown file and some tool configuration, but reliable execution requires engineering, evaluation, and inference. Reconciling conflicting figures can add model calls. Tool and storage charges may also apply. Teams running their own inference workers must account for capacity kept idle between requests.

For this workflow, track completion time, success rate, and cost per successfully completed report. Calculate the last measure by dividing total workflow costs, including failed attempts and validation, by the number of reports that meet the acceptance criteria. That captures overhead the price of a single model call leaves out.

Diagram: cost per accepted report equals total workflow cost divided by accepted reports, where total workflow cost includes successful runs, failed attempts, retries, and validation.

RUNPOD · AGENTS

Count everything needed to finish correctly

The unit that matters is cost per accepted report, not the price of a single model call.

Cost per accepted report equationSuccessful runsCOMPLETED WORKFailed attemptsNO ACCEPTED OUTPUTRetriesREPEATED STEPSValidationCHECKS BEFORE ACCEPTANCETotal workflow costALL RUNS · ALL STEPSAccepted reportsMEET ACCEPTANCE CRITERIA=Cost per acceptedreportTHE UNIT THAT MATTERS

INCLUDES FAILED ATTEMPTSINCLUDES VALIDATIONDIVIDE BY ACCEPTED ONLY

.rpmd-cost-graphic{--rp-color-brand-midnight:#000010;--rp-color-brand-purple:#5D29F0;--rp-color-brand-purple-200:#9289FE;--rp-color-utility-success:#41F420;--rp-color-white:#FFFFFF;--rp-color-neutral-300:#AAAAAF;--rp-font-developer:"Departure Mono",ui-monospace,"SF Mono",Menlo,monospace}.rpmd-cost-graphic{position:relative;max-width:1080px;margin:0 auto;border-radius:24px;padding:30px 32px 26px;background:radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.3px),radial-gradient(900px 520px at 78% -12%, rgba(93,41,240,0.34), transparent 62%),radial-gradient(700px 440px at -6% 112%, rgba(146,137,254,0.15), transparent 60%),radial-gradient(620px 400px at 106% 106%, rgba(135,75,255,0.11), transparent 60%),var(--rp-color-brand-midnight);background-size:22px 22px, auto, auto, auto, auto;border:1px solid rgba(255,255,255,0.10);box-shadow:0 36px 100px rgba(93,41,240,0.18);overflow:hidden;font-family:inherit}.rpmd-cg-head{position:relative;z-index:2}.rpmd-cg-kicker{display:inline-flex;align-items:center;gap:8px;font:10.5px var(--rp-font-developer);letter-spacing:0.14em;color:var(--rp-color-neutral-300);padding:6px 13px;border-radius:100rem;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.12)}.rpmd-cg-kdot{width:6px;height:6px;border-radius:50%;background:var(--rp-color-brand-purple);box-shadow:0 0 8px rgba(93,41,240,0.9)}.rpmd-cg-title{margin:16px 0 5px;font-size:22px;font-weight:500;color:var(--rp-color-white);letter-spacing:-0.01em}.rpmd-cg-caption{font-size:13.5px;color:rgba(255,255,255,0.66);max-width:620px}.rpmd-cost-graphic svg{width:100%;height:auto;display:block;margin-top:16px}.rpmd-cg-node{fill:rgba(255,255,255,0.04);stroke:rgba(255,255,255,0.12);stroke-width:1}.rpmd-cg-node.rpmd-cg-hot{stroke:rgba(146,137,254,0.45);fill:rgba(93,41,240,0.10)}.rpmd-cg-node.rpmd-cg-result{animation:rpmdCgBreathe 6s ease-in-out infinite;animation-play-state:var(--rpmd-play,running)}@keyframes rpmdCgBreathe{0%,100%{fill:rgba(93,41,240,0.12);stroke:rgba(146,137,254,0.4)}50%{fill:rgba(93,41,240,0.22);stroke:rgba(146,137,254,0.7)}}.rpmd-cg-ntitle{font:500 12px inherit;fill:var(--rp-color-white);font-family:inherit}.rpmd-cg-nsub{font:7.5px var(--rp-font-developer);fill:rgba(255,255,255,0.56);letter-spacing:0.06em}.rpmd-cg-eq{font:500 20px inherit;fill:rgba(255,255,255,0.85);font-family:inherit}.rpmd-cg-divline{stroke:rgba(255,255,255,0.35);stroke-width:1.5}.rpmd-cg-flow{fill:none;stroke:rgba(146,137,254,0.30);stroke-width:1.4;stroke-dasharray:3 7;animation:rpmdCgDash 1.5s linear infinite;animation-play-state:var(--rpmd-play,running)}@keyframes rpmdCgDash{to{stroke-dashoffset:-10}}.rpmd-cg-pkt{fill:var(--rp-color-brand-purple-200)}.rpmd-cg-pkt.rpmd-cg-ret{fill:var(--rp-color-white);opacity:0.92}.rpmd-cg-okdot{fill:var(--rp-color-utility-success);animation:rpmdCgPulse 2s ease-in-out infinite;animation-play-state:var(--rpmd-play,running)}@keyframes rpmdCgPulse{0%,100%{opacity:1}50%{opacity:0.45}}.rpmd-cg-dia{fill:none;stroke-width:1}.rpmd-cg-dlav{stroke:rgba(146,137,254,0.55)}.rpmd-cg-dmag{stroke:rgba(135,75,255,0.5)}.rpmd-cg-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:2}.rpmd-cg-pill{font:10.5px var(--rp-font-developer);letter-spacing:0.12em;color:rgba(255,255,255,0.8);padding:7px 14px;border-radius:100rem;background:rgba(255,255,255,0.045);border:1px solid rgba(255,255,255,0.11)}@media (max-width:640px){.rpmd-cost-graphic{padding:20px 16px 18px}.rpmd-cg-title{font-size:18px}}@media (prefers-reduced-motion: reduce){.rpmd-root *{animation:none !important}.rpmd-root .rpmd-cg-pkt{display:none}}(function(){var root=document.querySelector('.rpmd-cost-graphic');if(!root)return;var svg=root.querySelector('svg');if(matchMedia('(prefers-reduced-motion: reduce)').matches){if(svg&&svg.pauseAnimations)svg.pauseAnimations();return;}if('IntersectionObserver' in window){new IntersectionObserver(function(es){es.forEach(function(e){root.style.setProperty('--rpmd-play', e.isIntersecting?'running':'paused');if(svg&&svg.pauseAnimations){e.isIntersecting?svg.unpauseAnimations():svg.pauseAnimations();}});},{threshold:0.1}).observe(root);}})();

For teams operating inference workers, keeping capacity ready reduces startup delay but uses resources between bursts. Scaling down reduces idle use and makes startup performance more consequential. Provisioning should follow the workflow's measured demand and acceptable completion time.

Reproducibility requires more work

Rerunning the same prompt can produce a different sequence of actions. A trace records what happened; it does not guarantee a repeatable execution. Even frameworks that support replay from checkpoints may re-execute model calls and external requests, producing different results.

To investigate a failure, retain the skill and tool versions, model identifier and settings, inputs, and execution trace. That record can help distinguish a problem in the instructions from a bad agent decision or a defect in the calculation script.

Measure the cost of a correct result

English procedures still depend on scripts, services, operating systems, and hardware. Giving an agent discretion can help automate tasks whose steps are difficult to prescribe in advance. Checking its decisions then becomes part of the work and its cost.

For the reporting agent, success means producing an accurate report for the correct period, with figures that can be traced to their sources. The infrastructure has to support all the work required to reach that outcome, including investigation, retries, and validation.

The question for the team is whether the report justifies that full cost compared with doing the work another way. More agent autonomy pays off when it saves enough time or produces enough value to cover the work required to make the result trustworthy.

Get started

Manage GPU workloads on Runpod with coding agents like Claude Code, Codex and Cursor.

‍

Build what’s next.

Build, train, and scale AI workloads on Runpod with cloud GPUs, Serverless, and Clusters.

Star field background