[codex] add token guidance and checkpoint comparison#1400
Merged
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
f7bd582 to
c26b87f
Compare
158cc79 to
fe471f4
Compare
Entire-Checkpoint: f1dfd807cfdc
Entire-Checkpoint: cea04e74bd49
Entire-Checkpoint: 210fe202c7ca
Entire-Checkpoint: abbcd842b704
Entire-Checkpoint: 7a1b83ebd234
Entire-Checkpoint: 70741de008a8
Entire-Checkpoint: 65d01316b402
Entire-Checkpoint: 84e842d92745
dc21b4e to
dd4bc64
Compare
9f8f867 to
b11488c
Compare
Entire-Checkpoint: cdebea3708fd
Entire-Checkpoint: e945a42148c6
Entire-Checkpoint: c04a3bb165a4
Entire-Checkpoint: aa9d6a1ab8b0
Entire-Checkpoint: e46d5e136530
Entire-Checkpoint: 1051aa7485b2
Entire-Checkpoint: 1869a59c64b1
Entire-Checkpoint: caff12e75277
Entire-Checkpoint: 642c25c2fd0c
Entire-Checkpoint: 1bbc15069665
Soph
approved these changes
Jun 23, 2026
d7b4bc4 to
b7a0bf6
Compare
[codex] add token profile history diagnostics
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.

https://entire.io/gh/entireio/cli/trails/547
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.