feat(codex): add tool-excluded active Tok/s metrics#805
Open
ihearttokyo wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
During code review, model found more and more discrepancies. This might be too big a merge but these models get really out of hand and I'm not expert enough to know what I should or should not include. Perhaps just have a model review the changes. The tok/s column is really useful and if you dont want to incorporate these bugfixes then feel free to just reimplement the tok/s column and dump my PR. I worked about an hour on it manually and the code review / bug bash lasted an hour and 8 minutes haha |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This contribution adds a low-CPU, retrospective throughput view for Codex rollouts. CodeBurn now reports generated tokens per second (
Tok/s) from persisted JSONL timing while excluding recorded tool wait, so the estimate reflects active model work more closely than wall-clock turn duration.What changed
codeburn codex-tpswith one-shot text output,--json, bounded--limit, and incremental--watchmode.durationfields are not mistaken for the payload duration.Tok/simmediately after1-shotin the TUI’s By Model panel, with a concise explanation of the active-time denominator and excluded tool wait.Presentation
The repository’s generic dashboard image shows the existing CodeBurn visual language and is included here as a neutral reference:
This is an offline JSONL estimate—not live decoder speed. Server, prompt, and other unrecorded latency can still be included when the rollout does not expose a more precise interval.
Validation
npx tsc --noEmitpasses.npm run build:clipasses.npm run buildpasses for the CLI and dashboard; Vite reports its existing large-chunk advisory only.find-bugsandcode-reviewerpasses at GPT-5.6 Sol High approved the staged tree, including 5 MiB MCP argument/result collision fixtures for object and string durations.The unrelated full repository renderer harness remains environment-limited because its current setup lacks the Testing Library Chai matchers and has teardown noise; the feature-focused suite is green.
npm audit --omit=dev --audit-level=highstill reports the repository’s existing transitive advisories;npm audit fix --forcewould require a breaking MCP SDK change and was not applied.Thank you for maintaining CodeBurn and for making room for focused contributions like this—your project made it possible to diagnose the gap from real rollout data.