feat(cli): add /brief for terse-response mode#188
Merged
emal-avala merged 1 commit intomainfrom Apr 23, 2026
Merged
Conversation
Toggles a session-local flag that tells the model to keep responses under 3 sentences unless the task genuinely needs more. The instruction is injected near the top of the system prompt (before the tool docs) so it stays salient in long contexts. /brief → Brief mode enabled. (responses go terse) /brief → Brief mode disabled. (restored) Not persisted — brief mode resets on a new session. Useful during long pair-programming sessions where the model's default verbosity creates friction.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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
A new
/briefslash command that toggles brief mode — a session-local flag that instructs the model to keep responses under 3 sentences unless the task genuinely needs more.When on, an instruction block is injected near the top of the system prompt (before the tool docs) so it stays salient in long contexts:
Why
During long pair-programming sessions the model's default "paragraphs with headers and a recap" style creates friction. The user wants a one-line way to say "cool it" without editing the system prompt config. Not persisted — brief mode resets on a new session.
Behaviour
/briefwhen off →Brief mode enabled. Responses will be kept terse (≤3 sentences)./briefwhen on →Brief mode disabled. Response style restored.# Response styleblock accordingly# Available Toolsso it's not buriedTest plan
cargo fmt --all— cleancargo clippy --workspace --all-targets -- -D warnings— cleancargo test -p agent-code-lib --lib state— 5/5 pass (existing state tests updated for new field)cargo test -p agent-code-lib --lib system_prompt— 4/4 pass (2 new)system_prompt_omits_brief_block_when_offsystem_prompt_injects_brief_block_when_on(also verifies position)