feat(cli): /info one-page snapshot of session state#211
Merged
emal-avala merged 1 commit intomainfrom Apr 23, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
a9794cb to
bb16417
Compare
Rolls the things currently scattered across /cost, /status, /sandbox, and /model into a single view: Session id / cwd / additional dirs Model current model + /fast paused-main / fast_model / base_url Usage turns, tokens (in/out/cache split), cost, message count Modes plan, brief, style, fast, sandbox — all in one line Environment os, arch, shell, mcp server count, hook count Independent helper `info_modes_line` is unit-tested for flag ordering and default-style omission so future changes don't silently drop flags.
bb16417 to
40e3bf8
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.
Summary
Adds `/info` — a single-screen view of the stuff that's currently spread across `/cost`, `/status`, `/sandbox`, `/model`, and `/mcp`.
```
Session
id : 9f2d1a34-...
cwd : /home/user/project
Model
current : your-preferred-model
fast : your-fast-model (configured; toggle with /fast)
Usage
turns : 12
tokens : 48512 total (in: 12000, out: 8500, cache_read: 27000, cache_write: 1012)
cost : $0.1834
messages : 25
Modes
brief, style=concise, sandbox=on
Environment
os : linux
arch : x86_64
shell : /bin/bash
mcp : 3 server(s) configured
hooks : 1 configured
```
Why
When you want a quick "where am I" check mid-session, running four separate commands is friction. `/info` is read-only, fast, and adds nothing to the conversation history.
Test plan