interactive-command

interactive-command is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 43 tokens per session (646 once invoked), scanned A, original, MIT.

A helper for running commands that need a separate interactive window and waiting until that window closes. It also explains how to close a herdr tab safely.

In plain words
What is it for?
Use it only when another skill asks for an interactive command or safe herdr-tab closure.
Why use it?
Some commands need direct interaction in a terminal window and cannot be handled as a normal background task.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the ls-interactivity plugin — 6 skills shipped together

Good fit Use it only when another skill asks for an interactive command or safe herdr-tab closure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/interactive-command
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LandonSchropp/agent-toolkit --skill interactive-command
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-interactivity, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for interactive-command

README.md
[![agentmods](https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/interactive-command/github.svg)](https://agentmods.dev/skills/landonschropp/agent-toolkit/interactive-command)
Your own site
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/interactive-command"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/interactive-command/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for interactive-command

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/interactive-command"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/interactive-command.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.00646
Opus 5.5 $0.00017 $0.00258
Sonnet 5.5 $0.00009 $0.00129
Haiku 4.5 $0.00004 $0.00065

Measured 1mo ago against content hash 5c55bee5d7ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

interactive-command scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/interactive-command.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ls-interactivity/skills/interactive-command/SKILL.md · 32 lines

How it starts

The opening of the file, as written. The whole thing — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Interactive Command

Run scripts/interactive-command.sh --command '<command>' --name <name>. It opens the command in a new herdr tab in the agent's workspace and blocks until that tab closes. The command persists its own result — an editor saves the file it was given, so write a scratch file first and read it back after.

The script also exits with the command's own exit code once the tab closes (or 1 if the tab is closed before the command finishes). Read this exit code if the wrapped command's own success/failure is meaningful to the caller. If it isn't, ignore it explicitly — wait "$command_pid" || true — so set -e doesn't abort the caller on an exit code it doesn't care about.

Always run the script in the background, with no timeout, so it can run until the tab closes. After running the command, print a short message provided by the calling skill to let the user know it has been opened. You're notified when the tab closes.

Closing a Tab

The tab you opened is yours. You put it on the user's screen, so you take it off again, and never end a turn asking them to close a window you opened.

On the normal path there is nothing to do: the user closes the tab, and the script exits carrying the command's result. Close it yourself the moment you stop waiting on that result, whatever the reason — the user redirects the session, or the workflow it belongs to is abandoned. A result you have stopped waiting for is worth nothing, so losing it costs nothing.

The script traps termination signals and closes its own tab on exit, so end the script rather than closing its tab: run it with the Bash tool's run_in_background and stop it with TaskStop on the task id it returns.

  • Never background a script with &. run_in_background gives you a task id to stop it by and tells you when it finishes. & gives you neither.
  • Never hunt for a script's process. pkill -f, killall, and ps | grep | xargs kill match every workspace and agent session on the machine, killing other sessions' tabs and the user's editors along with yours. A filter that looks scoped, like grep "name review", is the worst: that label is identical in every workspace.

Read the full file on GitHub · 32 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +4 lines 5c55bee5d7ac
  2. 1mo ago Changed · +1 lines · +3 tokens per session 64a34f29b955
  3. 1mo ago First seen · 27 lines · 40 tokens per session scan A f37e99398666

Subscribe to this mod's changes

interactive-command is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 646 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cf-cli

Cloudflare's official cf CLI (beta) for the public Cloudflare API and Workers projects. Use for finding and running Cloudflare commands from the terminal — sign-in and profiles, cf cli search, cf schema, cf deploy/dev/build, resource commands for DNS, zones, D1, KV, and R2 — and for choosing between cf and Wrangler in…

cloudflare/skills · 78 tokens

workers-best-practices

Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.

cloudflare/skills · 25 tokens

find-journalists

Build a researched, fit-checked journalist list for a specific PR campaign. Prefer Medialyst's asynchronous media-list research workflow when available, with explicit approval before credit spend; otherwise produce a best-effort local list without guessed contacts.

elvisun/newsjack · 52 tokens

story-origin-check

Recover the first public timestamp and canonical major coverage for a newsjacking signal, then decide whether newer coverage is the same story, a different story, or a materially new development.

elvisun/newsjack · 40 tokens

relevance-coarse-filter

Cheap, high-recall first-pass filter that removes obvious junk from a detector candidate pool before expensive story-origin research and PR judgment. Decides keep, monitoronly, or reject — never ranks, writes angles, verifies dates, or decides whether to pitch.

elvisun/newsjack · 57 tokens

ai-visibility-writing

Audit, question, suggest, or fact-preservingly revise a press release, blog post, contributed article, or expert explainer so AI answer systems can more easily retrieve, understand, quote, and cite its useful information. Use when someone asks for AI visibility, AI search, answer-engine, AEO, GEO, AI Overview, or…

elvisun/newsjack · 137 tokens