docs(billing): clarify agent hours per harness on the platform credits page - #677
Draft
hongyi-chen wants to merge 1 commit into
Draft
Conversation
…se boundary Follow-up to the agent-hours definition on the platform credits page, incorporating engineering review of the metering behavior: - Describe how much of a run counts per harness. The Warp Agent clock runs while the agent is generating a response and pauses while a command or tool it ran is executing, so a long build or test suite doesn't add to agent hours. Claude Code and Codex bill the whole run, including command execution and time waiting on the model provider. - Drop "pauses for your input" from the stop conditions. It held for the Warp Agent but not for third-party harnesses, which auto-approve in cloud runs. Idle time waiting for a follow-up stays excluded. - Frame agent hours as the meter for platform usage, note that Enterprise contracts set the rate, and say that billing views show credits rather than hours. Verified against warp-server: OpenSegmentForStream/CloseSegmentForStream bound each Warp Agent stream in generate_multi_agent_output.go, while third-party harness runs only close their segment on the terminal transition (task_lifecycle.go, platform.go). Co-Authored-By: Warp <agent@warp.dev>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
This PR was generated with Warp. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Follow-up to #672, targeting its branch. Incorporates the Slack review of the agent-hours definition: keep it high level, but make it accurate across harnesses.
Two things in the current wording needed adjusting:
cargo check, a test suite) isn't billed. With Claude Code and Codex, the whole run is billed, including command execution and time waiting on the model provider. The page now says this in two bullets, without naming internals.Also, per the thread on agent hours being the unit Warp Factories are sold on: the section now leads with agent hours as the meter for platform usage, notes that Enterprise contracts set the rate, and says billing views show credits rather than hours (users don't see hours in-product today).
Changes
src/content/docs/support-and-community/plans-and-billing/platform-credits.mdxonly. Sibling billing pages already carry a one-line definition and link here for the full breakdown, so they're unchanged.How platform credits are measured now reads:
Plus "metered in agent hours" in the intro and "as credits rather than agent hours" in Where platform credits appear.
Verification against warp-server
router/handlers/generate_multi_agent_output.gocallsOpenSegmentForStreambefore the agent loop starts andCloseSegmentForStreamwhen the stream ends. Each stream handles one input (a user query or a single tool-call result); the client executes the tool between streams, so no segment is open while a command runs.in_progress_sincebetween the driver'sIN_PROGRESSreport and the terminal transition, somaybeChargeForPlatformUsageinlogic/ai/ambient_agents/task_lifecycle.gobills the entire window.warp/app/src/ai/agent_sdk/driver.rs) reportsIN_PROGRESSbefore environment setup, and the first Warp Agent stream'sEnsureInProgressSegmentStartedis a no-op on an already-open segment.IN_PROGRESSand opens a new one.billing/config/tiers/carriesplatform_credits_per_minute_override, read viaGetPlatformCreditsPerMinuteOverrideFromBillingMetadatainbilling/platform.go.ChargeForPlatformUsagemultiplies fractionalduration.Minutes()by the per-minute rate.Validation
style_lint --changed: no findings onplatform-credits.mdx(remaining findings are the same pre-existing ones listed on docs(billing): define agent hours for platform credits and refresh stale language #672).check_for_broken_links --internal-only: 3,972 internal links, 0 broken.npm run build: passes.