[codex] add token guidance and checkpoint comparison#1400
Draft
peyton-alt wants to merge 4 commits into
Draft
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f0a30be. Configure here.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an --agent-brief output mode to entire session tokens to provide compact, agent-oriented next-step guidance, while preventing conflicting output modes.
Changes:
- Added
--agent-briefflag tosession tokenswith brief output formatting (usage line, next best action, signals). - Enforced
--jsonand--agent-briefmutual exclusivity. - Added test coverage for agent-brief prioritization, cache-replay-only scenarios, missing token data, subcommand routing, and flag validation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cmd/entire/cli/session_tokens.go | Adds --agent-brief flag handling and implements brief-format output helpers. |
| cmd/entire/cli/sessions_test.go | Adds tests validating agent-brief output content, routing, and mutual exclusivity with JSON. |
5e86ec3 to
f7bd582
Compare
Entire-Checkpoint: f1dfd807cfdc
Entire-Checkpoint: cea04e74bd49
Entire-Checkpoint: 210fe202c7ca
Entire-Checkpoint: abbcd842b704
f7bd582 to
c26b87f
Compare
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.

Stacked on #1393.
Summary
Validation
Real checkpoint comparison observed
Follow-up lane
Historical profiling/memory recommendations, e.g. entire tokens profile, is intentionally left out of this PR. That should aggregate repeated high cache replay, high API calls, broad search/read loops, subagent-heavy sessions, and cases where usage rose after recommendations.