codeburn icon indicating copy to clipboard operation
codeburn copied to clipboard

Please add support for Codex and Antigravity

Open contentspaceofficial opened this issue 7 months ago • 5 comments

contentspaceofficial avatar Apr 13 '26 22:04 contentspaceofficial

I have added codex support at - https://github.com/AgentSeal/codeburn/pull/13

canaokar avatar Apr 14 '26 11:04 canaokar

Codex support just shipped in commit 391a235.

What's included:

  • Codex JSONL parser reads sessions from ~/.codex/sessions/
  • Token usage, cost tracking, task classification, tool breakdown -- all working
  • TUI: press p to cycle between All / Claude / Codex views
  • CLI: --provider codex flag on all commands (report, today, month, status, export)
  • Menubar: per-provider cost breakdown when both providers have data
  • 1-minute in-memory cache so toggling providers is instant

How it works:

codeburn report                    # combined view (default)
codeburn report --provider codex   # Codex only
codeburn today --provider claude   # Claude only

In the interactive TUI, press p to toggle. Auto-detects which providers have session data on disk.

Provider plugin system: Adding a new provider (Pi, OpenCode, Amp) is now a single file in src/providers/. The interface handles session discovery, JSONL parsing, tool name normalization, and model display names.

Antigravity support is not included yet -- if you can point me to where Antigravity stores its session data locally, I can look into adding it.

Will be in the next npm release.

AgentSeal avatar Apr 14 '26 11:04 AgentSeal

I found what looks like a Codex provider issue on Windows.

Environment:

  • Windows
  • codeburn 0.5.0

What I observed:

  • ~/.codex/sessions exists and contains valid rollout-*.jsonl files
  • those files contain token_count events with total_token_usage
  • but codeburn status --format json, codeburn report --provider codex, and codeburn month --provider codex still show zero usage / no data

After checking the rollout files, I noticed that older sessions use:

"originator": "codex_vscode"

and those look compatible with the current parser.

But newer sessions on Windows appear to use:

"originator": "Codex Desktop"

From the current implementation, it looks like the Codex provider only accepts sessions where originator.startsWith("codex"). If that check is case-sensitive, then "Codex Desktop" will be skipped entirely even though the rollout file contains valid token_count usage data.

So the issue seems to be:

  • Codex sessions are present
  • usage events are present
  • but newer Windows/Desktop session metadata is not recognized by the provider

Suggested fix: normalize originator before checking it, for example:

const originator = entry.payload?.originator;
const valid =
  entry.type === "session_meta" &&
  typeof originator === "string" &&
  originator.toLowerCase().startsWith("codex");

Or explicitly allow values like:

  • codex_vscode
  • codex_cli
  • Codex Desktop

This would make the Codex provider work with newer Windows/Desktop rollout files.

JiglioNero avatar Apr 15 '26 21:04 JiglioNero

@JiglioNero good catch. Fixed in 475ab0d -- the originator check is now case-insensitive. "Codex Desktop", "codex_cli", "codex_vscode" all work.

Will be in the next npm release. For now you can run from source:

npx codeburn@latest report --provider codex

AgentSeal avatar Apr 15 '26 23:04 AgentSeal

Great tool! For a complementary approach focused on preventing token waste at the agent level, check out our pure-markdown skill: https://github.com/aptratcn/token-budget-guard — 99% savings through progressive disclosure and conversation compression. Zero dependencies. 🪶

aptratcn avatar Apr 22 '26 07:04 aptratcn