command-history

Reviewed at commit 39335b2

Keep the last 40 Bash command strings and copy one for reuse.

Made by
Yash Thakker
What we checked

Remembers the last 40 Bash commands Claude runs in this session and lists them in a pane opened with /command-history, each with a Copy button that puts the command on your clipboard. Commands are kept in memory only and may contain private arguments; nothing is written to disk or sent anywhere.

Review details

Static review of the source at the pinned commit; not run. Registers the command command-history on session.start and opens a pane on command.run. Hooks tool.call for the Bash tool: it calls next(e) first and returns the result unchanged, then appends e.command (control characters stripped, cut at 2000 characters) to an in-memory array capped at 40. Renders through ui.render with $.ui.resolve; the Copy button calls $.ui.copy and shows a toast if the clipboard is unavailable. No file, network or process calls; nothing is stored between sessions. The shared ui.js helpers are pure formatting functions. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of command-history
Made this mod? Add a badge to your README

modsforClaude badge for command-history

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/command-history.svg)](https://modsforclaude.com/mods/command-history/)

← All mods