anomalyco / anomalyco/opencode

[FEATURE]: Collapsible tool output (code/diff/blocks) in TUI

Open
#40,096 3 comments 0 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 1, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

  • I have verified this feature I'm about to request hasn't been suggested before.

Tool output blocks (Write, Edit, Shell, GenericTool) render fully expanded, adding noise in long sessions and making chain-of-thought hard to follow.

Request: Add a global toggle (/collapse slash command + optional keybind) that collapses all tool blocks to a summary line (file name / diff stats / line count). Per-block click-to-expand via local override on top of the global mode.

Working prototype on my fork: https://github.com/aravasio/opencode/tree/collapse-tool-output

Happy to open a PR if this direction is accepted.

Screenshots for reference

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.