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.
npx agentmods add commands/helloayushisharma/ghostty-claude-code-setup/setup-terminalgit clone --depth 1 https://github.com/helloayushisharma/ghostty-claude-code-setupWrote 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.
[](https://agentmods.dev/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal)<a href="https://agentmods.dev/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal"><img src="https://agentmods.dev/badge/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00046 | $0.01142 |
| Opus 5 | $0.00023 | $0.00571 |
| Sonnet 5 | $0.00009 | $0.00228 |
| Haiku 4.5 | $0.00005 | $0.00114 |
Grade C, and why
setup-terminal scanned grade C with 2 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 3d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf lsd-v1.2.0-x86_64-apple-darwin* Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
cd /tmp && curl -LO https://github.com/lsd-rs/lsd/releases/download/v1.2.0/lsd-v1.2.0-x86_64-apple-darwin.tar.gz How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Terminal Setup Command
Set up a complete modern terminal experience on macOS. Auto-detects your terminal emulator.
What This Command Does
- Auto-detects terminal (Ghostty, Warp, iTerm2, or Apple Terminal)
- Backs up existing configs (creates .backup files)
- Installs packages:
- lsd (colorized ls with icons) - direct binary download
- zsh-autosuggestions (history suggestions)
- zsh-syntax-highlighting (command coloring)
- Configures detected terminal:
- Ghostty: Catppuccin theme, transparency, IDE keybindings
- Warp: Custom theme, keybindings guide
- iTerm2: Color scheme, key mappings
- Configures Zsh:
- lsd aliases (ls, ll, la, lr, lt)
- Colored grep, man pages
- Autosuggestion keybindings
- Configures Vim:
- IDE-like keybindings (Cmd+S, Cmd+Z, etc.)
- Word/line navigation with Option/Cmd arrows
- Line numbers, mouse support, system clipboard
Instructions
When the user runs this command:
Step 0: Auto-detect Terminal
# Detect which terminal is running
if [[ -n "$GHOSTTY_RESOURCES_DIR" ]]; then
DETECTED_TERMINAL="ghostty"
elif [[ "$TERM_PROGRAM" == "WarpTerminal" ]]; then
DETECTED_TERMINAL="warp"
elif [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
DETECTED_TERMINAL="iterm"
elif [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
DETECTED_TERMINAL="terminal"
else
DETECTED_TERMINAL="unknown"
fi
Inform the user which terminal was detected and ask for confirmation.
-
Parse arguments to determine scope:
--ghostty-only: Only configure Ghostty--zsh-only: Only configure zsh and install packages--vim-only: Only configure vim--allor no args: Do everything
-
Create backups before modifying any file:
# For each config file that exists, create a backup cp ~/.zshrc ~/.zshrc.backup.$(date +%Y%m%d_%H%M%S) cp ~/.vimrc ~/.vimrc.backup.$(date +%Y%m%d_%H%M%S) cp "~/Library/Application Support/com.mitchellh.ghostty/config" \ "~/Library/Application Support/com.mitchellh.ghostty/config.backup.$(date +%Y%m%d_%H%M%S)"
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.
- 3d ago First seen · 114 lines · 46 tokens per session scan C b2f620746f0c
setup-terminal is a command published in the GitHub repository helloayushisharma/ghostty-claude-code-setup (4 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 1,142 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
minutes-ideas
Surface recent voice memos and ideas captured from any device. Use when the user asks "what ideas did I have?", "what were my recent memos?", "what did I record while walking?", or wants to recall a captured thought.
engage.actions
Execute Phase 7 - Actions on Objectives and Goal Achievement.
sync-linear
Sync current work with Linear ticket status.
version
Show installed vs latest ai-sdlc plugin version. Bypasses the 24h SessionStart cache.
thread
Manage conversation threads (create, switch, update, delete, show).
d1-migration
Run D1 migration workflow — generate, inspect, apply.