interactive-cli

interactive-cli is a skill for Claude Code from DJRHails/dotfiles. It costs 70 tokens per session (1,714 once invoked), scanned A, original, MIT.

A method for controlling command-line programs that wait for typed input, using persistent terminal sessions across multiple turns. A command-line program runs through a text-based terminal.

In plain words
What is it for?
Handling confirmations, menu choices, Python debugging sessions, read-eval-print loops, and other programs that require input while running.
Why use it?
It prevents interactive commands from hanging or failing when they ask questions, open menus, or start a debugging session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Handling confirmations, menu choices, Python debugging sessions, read-eval-print loops, and other programs that require input while running.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/djrhails/dotfiles/interactive-cli
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 DJRHails/dotfiles --skill interactive-cli
Clone the repo
git clone --depth 1 https://github.com/DJRHails/dotfiles

Made for: Claude Code.

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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/interactive-cli/github.svg)](https://agentmods.dev/skills/djrhails/dotfiles/interactive-cli)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/interactive-cli"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/interactive-cli/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-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/djrhails/dotfiles/interactive-cli"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/interactive-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,714 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.00070 $0.01714
Opus 5.5 $0.00028 $0.00686
Sonnet 5.5 $0.00014 $0.00343
Haiku 4.5 $0.00007 $0.00171

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

Security

Grade A, and why

interactive-cli 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 3mo ago.

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.

modules/agents/skills/interactive-cli/SKILL.md · 173 lines

How it starts

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

Interactive CLI Process Control

Control interactive CLI processes across multiple bash tool calls using tmux sessions.

Session Management

Use a named tmux session with a descriptive cli_ prefix that captures the full context of what the session is doing:

# Start a detached session with a descriptive name
# Convention: cli_<what>_<where>_<why>
# Examples:
#   cli_ssh_saintmini01_for_running_saint_up
#   cli_pdb_debug_config_loading
#   cli_pyrepl_testing_math_functions
#   cli_ssh_thechurch_checking_docker_logs
tmux new-session -d -s cli_ssh_prod_deploying_v2 -x 120 -y 40 "<command>"

# Send input (use $'...\n' for newlines)
tmux send-keys -t cli_ssh_prod_deploying_v2 $'<input>\n'

# Send multiple commands
tmux send-keys -t cli_ssh_prod_deploying_v2 $'cmd1\ncmd2\n'

# Read current terminal output (print to stdout)
tmux capture-pane -t cli_ssh_prod_deploying_v2 -p

# Read with scrollback history (start from line -100)
tmux capture-pane -t cli_ssh_prod_deploying_v2 -p -S -100

# Stop the session
tmux kill-session -t cli_ssh_prod_deploying_v2

Workflow

  1. Start: Launch the interactive process in a detached tmux session
  2. Interact: Send commands with send-keys, read output with capture-pane
  3. Iterate: Continue sending commands and reading output as needed
  4. Cleanup: Kill the session when done

Examples

Python Debugger (pdb)

# Start pdb
tmux new-session -d -s cli_pdb_debug_config_loading -x 120 -y 40 "python3 -m pdb script.py"
sleep 2 && tmux capture-pane -t cli_pdb_debug_config_loading -p

# Step through code and print a variable
tmux send-keys -t cli_pdb_debug_config_loading $'n\n'
sleep 0.5 && tmux capture-pane -t cli_pdb_debug_config_loading -p
tmux send-keys -t cli_pdb_debug_config_loading $'print(my_var)\n'
sleep 0.5 && tmux capture-pane -t cli_pdb_debug_config_loading -p

# Set breakpoint and continue
tmux send-keys -t cli_pdb_debug_config_loading $'b 42\nc\n'
sleep 1 && tmux capture-pane -t cli_pdb_debug_config_loading -p

# Quit
tmux send-keys -t cli_pdb_debug_config_loading $'q\n' && tmux kill-session -t cli_pdb_debug_config_loading

Read the full file on GitHub · 173 lines

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. 3mo ago First seen · 173 lines · 70 tokens per session scan A efa38b933063

Subscribe to this mod's changes

interactive-cli is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 2d ago), licensed MIT. It adds 70 tokens to every session and 1,714 once invoked, about $0.0003 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

interactive-cli compared with skills from other repositories

interactive-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
interactive-cliDJRHails/dotfilesSkill22d agoMITA70Claude Code
todoist-clijoshukraine/dotfilesSkill4307d agoMITA68Claude Code
autopilot-batchjoshukraine/dotfilesSkill4307d agoMITA75Claude Code
autopilotjoshukraine/dotfilesSkill4307d agoMITA40Claude Code
qa-handoffjoshukraine/dotfilesSkill4307d agoMITA41Claude Code
walkthroughjoshukraine/dotfilesSkill4307d agoMITA33Claude Code
dustoffjoshukraine/dotfilesSkill4307d agoMITA64Claude Code