License and Billing Architecture Behind Async Agents That Return Pull Requests to Slack or Linear
Seat licenses, credit pools, and consumption billing each price unattended agent work differently.

The best cloud coding agents for engineering teams fit the work the team does, its permission boundaries, and its cost controls as well as the model it prefers. Linear’s coding sessions provide a managed cloud path from Slack or an issue to code review using Claude Code and Codex. Behind that workflow, seat-linked credits, capped subscriptions, and consumption billing make licensing an engineering decision because each prices unattended work differently.
Why the billing question arrives the moment an agent opens a pull request
An engineer wakes to a queue of agent-drafted pull requests, each waiting for review. The work happened while the engineer was absent. Compared with an interactive copilot suggestion, each pull request comes from a task with several files and steps that used tokens and compute in an isolated environment. A license assigned to that engineer does not explain which tasks incurred the cost or whether the resulting changes justify it.
Linear’s June 2026 announcement of coding sessions makes this shift concrete. A developer assigns an issue or mentions the agent from Slack, and the agent reads the history, investigates the codebase, writes code in the cloud, and opens a pull request. No IDE session is required from the developer. The webhook or mention serializes context and dispatches a sandboxed task, so the billing clock starts at dispatch, before a human accepts a suggestion. That separation between authorization, execution, and review changes how teams must budget for agent work.
How do teams trigger cloud coding agents from Slack or GitHub issues?
A Slack mention or pasted error in a shared channel can dispatch an agent with the conversation as context. The investigation and resulting pull request remain visible in the thread. This makes the work a shared artifact. Linear adds to that context with the issue’s original request, customer signal, product decisions, and related discussion. Its coding sessions belong to the organization rather than the person who started them, allowing others to contribute context or redirect the approach.
GitHub-native workflows instead use an issue label or assignment to start an agent that opens a draft pull request. The repository links the trigger and deliverable. For less supervised work, Linear Agent can investigate new triage issues through connected tools such as Sentry or Datadog and start a coding session when it finds a fix. Linear reports resolving roughly a third of incoming bug reports on the first pass internally through this workflow. Monitoring alerts and failed pipeline steps provide another entry point, prompting diagnosis and a proposed fix before human investigation begins.
Every entry point can spend without producing reviewable code. AWS’s sample autonomous cloud coding agents repository documents a Slack and Linear routing bug in which tasks erroneously selected a default workflow. The agent worked against an empty clone. The task then recorded pr_url=null because there were no commits, preventing a pull-request link from returning to the issue or channel.
The three billing models that have emerged for async agent work
The first model combines a seat-based subscription with an AI credit pool. Interactive and async work compete for that pool. Linear’s coding sessions are available on Basic, Business, and Enterprise plans and draw on prepaid AI credits. Workspace administrators manage access, usage, and credits through a dashboard. Purchased funds expire 12 months after purchase, and token-heavy async work can exhaust the allocation faster than a team’s previous copilot usage would suggest.
The second model is a subscription with a token cap and no separate agent billing. Claude Code’s Max and Team plans illustrate this structure as of late 2026, following cancellation of a planned June 2026 billing split. Background sessions launched within Claude Code draw from the same allowance as interactive sessions. The subscription fixes access costs while task capacity remains variable. Because Claude Code reads more files and plans before editing, concurrent async work can consume that allowance quickly, while API-based use instead exposes teams to fully variable costs.
The third model charges for consumption through active compute, task outcomes, or model-provider usage, with no seat subscription required. With OpenCode’s free BYOK tier, teams pay their model provider’s API rate and have no agent-layer charge. Its hosted tiers add a separate commercial layer. Consumption makes run costs easier to attribute, but long tasks and high concurrency can produce large bills without spend limits. Platform-level orchestration licensing is a further purchasing decision within this landscape, since direct model access does not supply the execution and attribution layer by itself.
How each billing model maps onto sandboxed async run infrastructure
An isolated VM with dependencies pre-loaded gives an agent room to install packages, run services, drive a browser, and verify changes. A restrictive shared container places different limits on what the agent can run. That difference affects what a task can complete. Isolation, persistence, and concurrency therefore shape both the agent’s capabilities and its cost exposure, whether the execution environment is persistent or an ephemeral sandbox.
Teams with credit-pool models need to see how much of the shared budget each type of run uses. A workspace dashboard alone does not establish per-run attribution. Linear’s August 2026 pricing update separates model tokens at provider-published rates from sandbox runtime, making clear that credits can represent more than model usage. Under consumption billing, those execution costs remain relevant even when the agent layer is free. A low token bill cannot establish a low total cost if the sandbox and orchestration work are omitted.
Capped subscriptions create a different infrastructure problem because concurrent agents compete for a bounded allowance. Interrupted work may have consumed tokens without producing a reviewable pull request. Codex’s five-hour usage-limit window can interrupt tasks in practice, although OpenAI’s documentation states that active turns should be able to continue subject to fair-use limits. Security adds another constraint on execution. Sandbox isolation limits the reach of code execution, but it does not prevent prompt injection from abusing an allowed tool or an over-scoped API key.
The identity and permission model that async agent billing depends on
Reliable cost attribution requires a run to be distinguishable from the human activity that authorized it. A reused human token obscures that distinction. The practical requirement is a separate identity for each integration, including the Slack bot, Linear webhook, and GitHub App, with each run attributable to its source. A shared service account without that attribution leaves the cost entry disconnected from the message or issue that caused it. Narrow permissions therefore support both accounting and auditability.
Third-party agents on its agent platform, including Cursor and Sentry, do not consume paid user seats, and their actions do not consume Linear AI credits. The agent platform is included in the seat price on all plans. Coding Sessions and Loops, by contrast, draw from the organization’s credit pool. An agent’s presence in a workspace consequently does not identify which billing system pays for its work.
For teams operating several harnesses, attribution must distinguish the harness and trigger source as well as the resulting pull request. Otherwise, the cost of refactoring through Claude Code is indistinguishable from a scripting task handled through Codex or a BYOK tool. Permissions need an equally clear boundary. Agents should investigate and propose through draft pull requests, while protected main branches and required human review prevent them from merging. Those controls keep the authority to spend on an attempted fix separate from the authority to accept it.
Measuring what async agent runs actually cost and produce
Merged pull requests measure output, but not the full cost of obtaining it. Human review is part of the denominator. LinearB’s 2026 benchmark finds that AI-assisted pull requests are larger and take longer for initial review, illustrating why throughput alone can overstate gains. More complex diffs can move work downstream. A billing dashboard records usage, leaving the engineering time needed to assess and correct the result outside its account of that transfer.
Teams should therefore start by measuring fully loaded cost per merged PR, human review minutes per merged PR, 30-day rework rate, and unattended completion rate. Fully loaded cost includes tokens, compute, and review labor. Unattended completion measures how far the agent proceeds without intervention, while review minutes expose costs that seat and credit totals omit.
Coinbase’s Forge team tracks “autonomous operation time” to understand how long an agent can work without a human stepping in. Its engineers review pull requests that were drafted overnight and hand off more work. The metric also captures the burden of resuming context when an agent stalls. To connect such outcomes to spend, credit-pool workflows need runs tagged at dispatch so a Slack mention remains distinguishable from automated triage. BYOK workflows offer granular token usage, but teams using several providers still need to aggregate those charges before comparing costs across harnesses.
How harness choice interacts with billing model in practice
Choosing one harness to simplify purchasing commits every task to that harness’s token profile. That can be an expensive simplification. Claude Code reads more files and plans before editing, while Codex spends less time investigating so it can work faster and use fewer tokens. Under shared credits, the difference affects how quickly the allocation is consumed. Under a subscription it changes how much work the allowance covers, and under API billing it directly changes how much the team pays for usage.
Capability differences complicate a price-only comparison because the cheapest attempt is not necessarily the cheapest merged pull request. Claude Code’s hooks and dynamic workflows suit complex multi-file refactoring and legacy codebase work. Task rankings also change over time. Terminal-Bench 4.0 ranked Claude Code higher on terminal-heavy workflows in October 2026, but earlier benchmarks ranked Codex higher for terminal tasks and work on software development and operations. Teams also need to weigh usage-limit interruptions apart from benchmark performance because a run that stops before it is done still needs recovery or more work.
Linear’s September 2026 update added adaptive model routing, assigning simpler work to a faster model while retaining the default reasoning model for more complex tasks. This addresses model selection at the platform level. It does not make model routing identical to harness selection, but both decisions affect consumption for a given task. The practical case for remaining harness-agnostic is that complex refactoring and cost-sensitive scripting need not use the same execution path. That flexibility becomes economically useful only when attribution can show whether a cheaper path also preserves completion quality and review cost.
What engineering leaders should decide before the first async agent run bills
Engineering leaders should first choose the billing unit based on how many runs they expect and how much variation in cost they can accept. Shared credits offer workspace-level control but require an allocation for interactive and async work. Capped subscriptions offer predictable plan costs but need representative-task testing to establish how quickly the harness consumes its allowance. Consumption provides granular attribution while leaving orchestration to be built or licensed. The API bill is not the whole budget.
Before giving the whole team access, leaders should check that spend limits are active and set up a separate identity for each trigger surface. Attribution should begin with the first dispatch. A harness-agnostic orchestration layer needs to tag each run by source, harness, model, and credential so later comparisons remain possible. The measurement baseline should include fully loaded cost, review minutes, rework, and unattended completion before volume increases. Before agents have pull-request authority, teams should have rules for draft-only proposals, required human review, and protected main branches.
Coinbase’s Forge and Ramp’s Inspect illustrate a common operating pattern among teams further along with async work. They own the harness and execution environment, use Linear or an equivalent context layer, and treat billing attribution as an engineering requirement. Managed execution changes who operates the infrastructure. It does not remove the need to connect task origin, permissions, consumption, and reviewable output. As models improve and the agents built on them change, the durable investment is the attribution and orchestration layer that lets a team change its execution choices without losing cost visibility or control.


