Adding CLI Option to hide tool activity

Open 💬 10 comments Opened May 5, 2026 by Timandilu
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

CLI

What feature would you like to see?

Problem

The TUI transcript can become dominated by tool-call cells during long sessions. This makes the conversation hard to scan when the user mainly wants reasoning summaries and final answers.

Proposal

Add an opt-in TUI setting:

[tui]
hide_tool_activity = true

When enabled, Codex hides agent tool activity from the TUI transcript while preserving reasoning summaries, final assistant answers, approvals, and user shell commands.

Also add a live slash command:

  • /tool-activity toggles the setting for the current session.
  • /tool-activity hide
  • /tool-activity show
  • /tool-activity toggle
  • /tool-activity status

How it works

The setting only changes what the TUI adds to the visible transcript. Tool calls still run normally, approvals still appear when needed, and user shell commands remain visible. When hiding is enabled, Codex skips inserting agent tool-history cells for exec, MCP, web search, image, patch, and collaboration tool events, while continuing to render reasoning summaries and final assistant messages.

Prototype

I tested a local prototype on Windows against rust-v0.128.0.

Covered behavior:

  • config TOML deserializes the new setting
  • hidden tool activity does not insert transcript cells
  • reasoning summaries and final answers remain visible
  • slash command toggles the behavior without sending a core op
  • slash-command parsing and recall behavior follow existing patterns

Tests

Focused tests used in the prototype:

cargo test -p codex-core config_toml_deserializes_tui_hide_tool_activity
cargo test -p codex-tui hide_tool_activity_keeps_reasoning_and_answer_visible
cargo test -p codex-tui slash_tool_activity
cargo test -p codex-tui slash_command

Additional information

I realised this implementation locally with codex itself and it showed significant visual clarity improvements.

<img width="1265" height="306" alt="Image" src="https://github.com/user-attachments/assets/d4fcc410-b585-4e82-8881-817c7e6c6472" />

View original on GitHub ↗

10 Comments

maddada · 3 months ago

Agreed, the transcript gets huge and can't scroll through it easily.
My fix is to have hotkeys to toggle between states, I added it in my own fork before and it worked well.
Btw, do you use transcript mode (ctrl + t) or just scroll in the main scroll back?

NN1985 · 3 months ago

Will this be merged?

binaryfire · 3 months ago

+1. I'm coming from Claude Code and I'm really missing the CC's verbosity level control. Something like this, or a dedicated verbosity setting, is pretty essential.

abhirvjatar · 2 months ago

It's astounding this still hasn't been implemented yet, as such an important feature.

StarkBotha · 1 month ago

+1 please

ninoz · 27 days ago

+1 please :)

Skandesh · 22 days ago

+1 please @Timandilu raised a PR for this??

nisimcode · 21 days ago

Can't see the forest for the trees.
This simply must be added.

etraut-openai contributor · 16 days ago

This commit reduces the tool call output significantly and brings the TUI in line with the desktop app in terms of what is displayed for tool calls. You can still use Ctrl+T to show full tool outputs. This change will be in the 0.148.0 release. Let's see how that feels. I'm hoping that we can avoid adding another toggle or config option since we already have Ctrl+T.

siddhpant · 7 days ago

@etraut-openai The commit unconditionally hides it as opposed to what the user requested for - an option to hide.

Ctrl+T is not equivalent and is impossible to follow.