send

send is a command for Claude Code from MadAppGang/magus. It costs 14 tokens per session (1,158 once invoked), scanned A, original, MIT.

A command for sending typed text or special keyboard keys to an active terminal pane. It supports both ordinary commands and controls such as Enter, Escape, and interrupt signals.

In plain words
What is it for?
It helps answer prompts, control running processes, operate terminal interfaces, and send commands to interactive sessions.
Why use it?
It lets the agent interact with programs that are already running instead of starting them again or losing their current state.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the terminal plugin — 5 skills, 7 commands, 1 agent shipped together

Good fit It helps answer prompts, control running processes, operate terminal interfaces, and send…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madappgang/magus/send
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.

Clone the repo
git clone --depth 1 https://github.com/MadAppGang/magus

Made for: Claude Code.

Or install terminal, the plugin that ships this one along with the rest of its 5 skills, 7 commands, 1 agent.

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 send

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/magus/send.svg)](https://agentmods.dev/commands/madappgang/magus/send)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/send"><img src="https://agentmods.dev/badge/commands/madappgang/magus/send.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,158 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.00014 $0.01158
Opus 5 $0.00007 $0.00579
Sonnet 5 $0.00003 $0.00232
Haiku 4.5 $0.00001 $0.00116

Measured 2d ago against content hash fd6ed32f1ecc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

send 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 2d 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.

plugins/terminal/commands/send.md · 147 lines

How it starts

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

/terminal:send

Advanced command — For most tasks, use /terminal:run (one-shot commands), /terminal:repl (database/REPL queries), or /terminal:tui (TUI navigation) instead. Use this command only when you need to send raw keystrokes manually.

Send keystrokes or text input to an active terminal pane and see the result.

Usage

/terminal:send {paneId} {text or keys}
/terminal:send {paneId} key:{KeyName}

Pane IDs use the format %N (e.g., %3) or headless:%N (e.g., headless:%0).

send-keys Parameter Reference

mcp__tmux__send-keys({ paneId: "%66", keys: "...", literal: ? })

  literal: true  (default) — text is sent byte-for-byte; special characters are NOT
                             interpreted as key sequences. Use for typing commands.
  literal: false           — text is interpreted as tmux key names. Use for:
                             - Control sequences: "C-c", "C-d", "Escape", "Enter"
                             - Arrow keys: "Up", "Down", "Left", "Right"
                             - Function keys: "F1" through "F12"

To type text AND execute (press Enter):
  mcp__tmux__send-keys({ paneId, keys: "bun test --watch", literal: true })
  mcp__tmux__send-keys({ paneId, keys: "Enter", literal: false })

What It Does

Injects text or named keystrokes into an active terminal pane, then takes a capture-pane snapshot to show the result.

How to Use

Send plain text

Send a command or text string to be typed in the terminal:

/terminal:send %3 ls -la src/
/terminal:send headless:%0 SELECT count(*) FROM users LIMIT 1;

The text will be sent as-is with literal: true — it does NOT automatically add Enter at the end.

Send named keys

Use key: prefix for special keys (sent with literal: false):

/terminal:send %3 key:Enter
/terminal:send %3 key:Escape
/terminal:send %3 key:Tab
/terminal:send %3 key:C-c

Send text + Enter (run a command)

To send text and execute it — two separate calls:

Read the full file on GitHub · 147 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. 2d ago First seen · 147 lines · 14 tokens per session scan A fd6ed32f1ecc

Subscribe to this mod's changes

send is a command published in the GitHub repository MadAppGang/magus (9 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 1,158 once invoked, about $0.0001 per session on Opus 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-09-04.