Skip to content

Add run-once cost breakdown to PR summaries #107

Description

@rochecompaan

Summary

Add an automatically generated Patchmill run-cost section to pull requests created by successful patchmill run-once executions.

Requirements

  • Aggregate the current run's planning, development-environment, implementation, parent, and subagent Pi sessions.
  • Deduplicate copied session history by stable session-entry ID.
  • Break usage down by stage and model, including prompt tokens, output tokens, and estimated USD cost.
  • Update the existing PR body idempotently on both GitHub and Forgejo/Gitea.
  • Preserve the successful PR handoff when cost calculation or PR-body publication fails.
  • Persist the report and publication checkpoint for finish-stage recovery.

The authoritative design spec and implementation plan will be attached with patchmill set-spec and patchmill set-plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyReady for automated agent processingplan-approvedImplementation plan approved for automationspec-approvedSpecification approved for automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions