Skip to content

[Feature]: Add session timing breakdown to dry-run cost estimation #358

@sjnims

Description

@sjnims

Parent Issue

Sub-issue of #344 (Leverage Additional SDK v0.2.25 Capabilities)
Follow-up to #349 (SessionStart/SessionEnd hooks)

Feature Type

Cost estimation

Problem or Need

The --dry-run mode estimates costs and scenario counts but doesn't account for session lifecycle overhead. With #349 capturing session timing data, dry-run output could include timing projections that help users estimate total wall-clock time, not just API costs.

Currently, dry-run shows:

  • Estimated scenario count
  • Estimated cost per scenario
  • Total estimated cost

Missing:

  • Estimated session startup overhead per batch
  • Projected wall-clock time factoring in session lifecycle
  • Number of session starts/restarts expected per batch strategy

Proposed Solution

  1. Add timing estimates to dry-run output — Based on historical session timing data (if available from previous runs) or conservative defaults, include:

    • Estimated session startup time per batch
    • Estimated total wall-clock time
    • Number of expected session starts (1 per batch in batched_by_component, 1 per scenario in isolated)
  2. Use historical data — If previous run results exist in the state file, extract average session_timing durations to improve estimates

Pipeline Stage Affected

General / Multiple stages

Component Type

Not component-specific

Alternatives Considered

How important is this feature to you?

Low - Just a suggestion

Additional Context

This pairs with #357 (session timing in Stage 4 reports). Together they provide pre-execution estimates and post-execution actuals for session lifecycle overhead.

Risk Assessment

Low risk — Additive output in dry-run mode. No changes to execution behavior.

Files Affected

  • src/stages/3-execution/dry-run.ts (or equivalent) — Cost estimation output
  • CLI formatters for dry-run display

🤖 Created with Claude Code

Metadata

Metadata

Assignees

Labels

component:cliCLI entry point and pipeline orchestration (src/index.ts)cost-impactAffects API costs/budgeteffort:medium1-4 hoursenhancementNew feature or requestpriority:lowNice to havesdk:agentClaude Agent SDK usage (Stage 3)stage:executionStage 3: Agent SDK execution with tool capturestatus:analyzedIssue has been analyzed by Claude

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions