Skip to content

feat(cli): add /brief for terse-response mode#188

Merged
emal-avala merged 1 commit intomainfrom
feat/brief-mode
Apr 23, 2026
Merged

feat(cli): add /brief for terse-response mode#188
emal-avala merged 1 commit intomainfrom
feat/brief-mode

Conversation

@emal-avala
Copy link
Copy Markdown
Member

@emal-avala emal-avala commented Apr 23, 2026

Summary

A new /brief slash 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:

# Response style

Brief mode is enabled. Keep responses under 3 sentences unless the user
asks for detail or the task genuinely requires a longer answer ...

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

  • /brief when off → Brief mode enabled. Responses will be kept terse (≤3 sentences).
  • /brief when on → Brief mode disabled. Response style restored.
  • System prompt gains/loses a # Response style block accordingly
  • Block appears before # Available Tools so it's not buried

Test plan

  • cargo fmt --all — clean
  • cargo clippy --workspace --all-targets -- -D warnings — clean
  • cargo 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_off
    • system_prompt_injects_brief_block_when_on (also verifies position)

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.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@emal-avala emal-avala merged commit ada6a4f into main Apr 23, 2026
13 of 14 checks passed
@emal-avala emal-avala deleted the feat/brief-mode branch April 23, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant