Skip to main content
An agent sandbox’s hourly compute price does not describe its full cost. Measure the complete session lifecycle, including waiting for the user, installing dependencies, saving state, transferring files, and retaining outputs. This is an architecture guide. Springwinter Workers are continuous ECS services. Springwinter does not currently expose a first-class per-session microVM API or memory-preserving sandbox pause. See coding agent sandboxes.

Separate execution from waiting

Record these durations for a representative workload:
  • Time from the user’s request to the first successful command.
  • Time spent running tools and waiting for model responses.
  • Time the user leaves the session open without work.
  • Time spent suspended or stopped, where the runtime supports it.
  • Time spent checkpointing, restoring, and cleaning up.
A running process that is waiting can still incur compute charges. Suspending a Lambda MicroVM removes its compute charge while suspended, but checkpoint operations and retained state still have costs. Stopping EC2 removes instance compute charges, while retained EBS storage still has costs. Confirm the runtime’s current lifecycle limits separately.

Model the whole bill

Use a consistent workload, AWS Region, architecture, and billing period:
Include image storage, build jobs, secrets services, and a credential proxy where used. A desktop can add continuous streaming traffic. An idle agent can also keep sockets open and prevent the runtime’s idle policy from suspending it.

Allocate warm capacity honestly

For an EC2 host pool, divide the total host and storage bill by completed sessions or useful agent hours. Include unused capacity needed for fast assignment and burst handling. Assigning an already-running environment quickly is different from provisioning a new host quickly. Compare actual usable CPU, memory, disk performance, and contention. Several configured vCPUs on shared hardware do not establish equivalent performance to dedicated cores. A lower hourly price can cost more per completed task if execution or retries take longer.

Choose a useful benchmark

Test repository checkout, dependency installation, a representative build, tests, and artifact upload. Record success rate, median and tail readiness time, wall time, peak memory, network bytes, and cost per completed task. Keep model and prompt settings consistent when comparing the entire agent workflow. Separate measured results from estimates. Show the measurement date, region, resource size, concurrency, warm-pool assumptions, exclusions, and the underlying price sources. Do not publish a savings percentage without a comparable baseline.

Sources