Skip to content

MANUAL RUN: check codex, pi and opencode JSON usage against a live run #1135

Closed as not planned

Description

@QuinnsCode

Follow-up to #1118. codeSplitter now reads token usage from the JSON output of codex (exec --json), pi (--mode json) and opencode (run --format json). The shapes come from each CLI's own code: the codex-sdk ThreadEvent types, pi's docs/json.md, and the emitter in opencode run. None of the three was logged in on the agent's machine, so they haven't been checked against a live run yet (codex returned 401, pi had no key, and opencode's free tier refuses runs outside its own app).

With each CLI logged in, run one agent task through codeSplitter and check:

  • the run's ~N tokens line is close to what the provider's dashboard shows for that call
  • the reply (and any DONE/NEXT note) comes through as text, not JSON

If a shape is off, fix usageOf in apps/codesplitter/src/budget.ts and its test.

🤖 Generated with Claude Code

Activity

  1. added
    manual runNeeds the owner to run it by hand (tokens, sign-ins); agents can't close it
    on Oct 12, 2026
  2. QuinnsCode commented on Oct 14, 2026

    @QuinnsCode
    OwnerAuthor

    Folded into the one manual-run list, section 9 of #609 (easiest first, with times). This issue's steps stay here; tick the item in #609.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    manual runNeeds the owner to run it by hand (tokens, sign-ins); agents can't close it

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions