Skip to content

About

Fold omp tool calls into one line, or group consecutive calls into one summary row.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

omp-compact-tools

Fold omp tool calls into a single line, or group consecutive calls into one summary row. Display only — tool calls, results, and what the model sees are unchanged.

See the landing page.

English | 中文

Three modes

  • default — use omp's configured tool display.
  • line (default) — one line per tool call, truncated to the terminal width.
  • group — consecutive tool calls collapse into one summary row.

line looks like this:

❯ Bash: ls -la · 12 lines
● Read /path/to/file.ts
⌕ Grep: TODO 3 matches · 2 files
✎ Edit: /path/to/file.ts +3/-1

group looks like this:

• 4 tools: Bash · Read · Grep · Edit

Press Ctrl+O in any mode to expand and see the original tool cards.

Install

Option 1: omp plugin command (recommended)

omp plugin install github:OneLastHuman/omp-compact-tools
omp config set extensionRenderers.transcriptPresenters true

Restart omp. OMP 19.3 ships with extension transcript presenters turned off. The setting above enables them for installed extensions.

Option 2: copy the plugin directory

From the repository root:

mkdir -p ~/.omp/agent/extensions/omp-compact-tools
cp -R package.json extensions lib ~/.omp/agent/extensions/omp-compact-tools/
omp config set extensionRenderers.transcriptPresenters true

If upgrading a manual installation, remove the old standalone ~/.omp/agent/extensions/omp-compact-tools.ts. Restart omp.

Local development

omp plugin link /path/to/omp-compact-tools
omp config set extensionRenderers.transcriptPresenters true

Usage

Inside omp:

/compact-tools                 # cycle default → line → group
/compact-tools line            # one line per call
/compact-tools group           # group consecutive calls
/compact-tools default         # back to omp's normal display
/compact-tools status          # show the current mode

Or edit ~/.omp/agent/compact-tools.json:

{ "mode": "line" }

Restart omp after changing the file.

Uninstall

omp plugin uninstall omp-compact-tools

For a manual installation, delete the ~/.omp/agent/extensions/omp-compact-tools/ directory.

Notes

  • Version 2 requires omp 19.3 or newer. For omp 18.13–18.14, use plugin version 1.0.0.
  • Display only: tool calls, results, and what the model sees are unchanged.
  • OMP's display.toolActivity: hidden setting also hides compact rows.
  • This repo only contains the tool-call folding extension. It does not include prompts or personal configuration.

License

MIT

About

Fold omp tool calls into one line, or group consecutive calls into one summary row.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages