run-script

run-script is a Claude Code mod by MatheusChiodi that /run runs a package.json script with the project's package manager and prints the exit code and last lines.

Updated 2026-10-18

What is run-script?

run-script is a Claude Code mod by MatheusChiodi that /run runs a package.json script with the project's package manager and prints the exit code and last lines. It is listed under Interface and has 2 GitHub stars.

TypeClaude code mod
AuthorMatheusChiodi
RepositoryMatheusChiodi/cockpit
Popularity2 GitHub stars
CategoryInterface
SecurityReview before installing (72/100)
Rank#2,880 of 9,397 Claude Code mods; #1,223 in Interface
LicenseMIT
Last commit2026-10-18
Hooks2 events
Seesonly the events it hooks
Draws onnothing

Is run-script safe to install?

run-script scores 72/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.process.runruns processes
$.session.root
$.state.get

How do I install run-script?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/MatheusChiodi/cockpit
    claude plugin validate ./cockpit/mods/run-script
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add MatheusChiodi/cockpit && claude plugin install run-script@cockpit

Or ask Claude to set it up

Paste this into Claude Code and it installs run-script for you:

Install the "run-script" Claude Code mod from https://github.com/MatheusChiodi/cockpit/tree/main/mods/run-script. Run claude plugin validate on it first and show me what it can access before you enable it.

More from MatheusChiodi/cockpit

This repository has at least 9 Claude Code mods on MCPMods.

  • a11y-rules: In web projects, keeps Claude to accessibility rules when editing markup: labels, alt text, keyboard, focus, contrast (Low risk)
  • activity-status: Live status line with the tool Claude is running right now (Low risk)
  • agent-cap: /agentcap caps how many subagents run at once and asks before each one past the cap (Low risk)
  • agent-done-notify: Sends a native notification when a subagent that ran for 30 seconds or more finishes (Low risk)
  • agent-model-note: A toast naming the model a subagent resolved to when it differs from the main one, and /agentmodels lists them all (Low risk)
  • agent-pane: /crew opens a pane with the session's subagents, their type and status, refreshed while any is running (Low risk)
  • agent-straggler: A toast when a subagent has been running more than three times as long as the ones that finished (Low risk)
  • agent-trivial-note: A toast when a subagent is spawned for a task one Read, Bash or Grep call would answer (Low risk)