Skip to content

Copilot cost calculation module#108

Draft
DinahK-2SO wants to merge 3 commits into
mainfrom
user/DinahK-2SO/cost-calc-module
Draft

Copilot cost calculation module#108
DinahK-2SO wants to merge 3 commits into
mainfrom
user/DinahK-2SO/cost-calc-module

Conversation

@DinahK-2SO

@DinahK-2SO DinahK-2SO commented Jun 12, 2026

Copy link
Copy Markdown

The copilot cli cost calculation module.

Demo:

  1. launch copilot
copilot --allow-all-tools --output-format json --session-id $sid
  1. interact with copilot. For instance,
"You MUST use the 'task' tool to launch exactly 3 sub-agents in parallel in a single turn. " +
          "Give each one this exact instruction: 'Reply with one line: WORKER OK'. " +
          "Do not do the work yourself. After all three return, print: ALL DONE."
  1. in copilot cli, use /usage to see what is actual shown in copilot-cli /usage:
image
  1. get module calculation:
$events = Join-Path $env:USERPROFILE ".copilot/session-state/$sid/events.jsonl"
cd <win-dev-skills>\src\tools\cost-module

node -e "import('./src/copilot-cost.ts').then(async m => console.log(m.formatReport(await m.analyzeJsonlFile(process.argv[1]))))" $events
image

@DinahK-2SO DinahK-2SO marked this pull request as draft June 12, 2026 08:45
@DinahK-2SO DinahK-2SO changed the title cost calculation module Copilot cost calculation module Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant