run-command

Reviewed at commit abada94 New version, not yet reviewed

Pick a reply's `! <command>` suggestion by click or digit to fill it into the shell prompt

Made by
Ben Drucker
What we checked

When you press ! to enter shell mode, it finds lines like `! git status` in Claude's latest reply and offers them as buttons and a numbered list. Clicking one, or typing its digit in the empty shell prompt, fills the command into the prompt; you still press Enter yourself. It runs nothing, reads no files and makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Whole plugin reviewed again because the diff against the previous review was too large for a delta review. Declares a dependency on the mod-events plugin. Registers session.start, session.end, ui.render (PromptHint, AssistantMessage, AbovePrompt), prompt.edit and ui.press hooks. It parses the text of assistant messages with regular expressions (commands.ts) for lines that are only `! <command>` or inline code spans, skips prose and placeholders, and groups adjacent commands into blocks; a 'run all' button joins a block with ' && ' only when each command passes a conservative check (no ;, ||, #, lone &, heredoc, source/eval, or open quotes). Pressing a button calls $.prompt.fill in insert mode, which only puts text in the prompt; nothing is submitted or executed. prompt.edit replaces a single digit typed into the empty shell prompt with the matching command (and 0 with the run-all chain), only while the list is shown. It reads the hint text of the prompt to detect shell mode. No fetch, process, file, env or settings access. It emits events through $.modEvents.emit (session.start, list.shown, pick, pick.all); pick events include the chosen command text, which the mod-events plugin writes to a local JSONL file. Nothing was left unreviewed; there are no npm dependencies.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: no
  • 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: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for run-command

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/run-command.svg)](https://modsforclaude.com/mods/run-command/)

← All mods