config

config is a command for coding agents from JasperSui/claude-code-iterm2-tab-status. It costs 24 tokens per session (546 once invoked), scanned A, original, MIT.

A command for configuring an iTerm2 tab-status plugin, which changes terminal-tab labels and activity indicators on macOS.

In plain words
What is it for?
Use it to view current settings and change prefixes, flashing, badges, notification behavior, sound, display location, activity subtitles, and signal age.
Why use it?
It lets you control how running, idle, or attention-needed work appears, including colors, badges, sounds, and notifications.

Command

Part of the iterm2-tab-status plugin — 3 commands, 7 hooks shipped together

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.

agentmods
npx agentmods add commands/jaspersui/claude-code-iterm2-tab-status/config
Clone the repo
git clone --depth 1 https://github.com/JasperSui/claude-code-iterm2-tab-status

Or install iterm2-tab-status, the plugin that ships this one along with the rest of its 3 commands, 7 hooks.

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 config

README.md
[![agentmods](https://agentmods.dev/badge/commands/jaspersui/claude-code-iterm2-tab-status/config.svg)](https://agentmods.dev/commands/jaspersui/claude-code-iterm2-tab-status/config)
Your own site
<a href="https://agentmods.dev/commands/jaspersui/claude-code-iterm2-tab-status/config"><img src="https://agentmods.dev/badge/commands/jaspersui/claude-code-iterm2-tab-status/config.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00024 $0.00546
Opus 5 $0.00012 $0.00273
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00002 $0.00055

Measured 4d ago against content hash 9feaf0d5bca7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

config 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 4d 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.

commands/config.md · 35 lines

What it actually says

Read the current config file at ~/.config/claude-tab-status/config.json (create the directory if it doesn't exist). Merge with these defaults for any missing keys:

# Setting Key Default
1 Running prefix prefix_running
2 Idle prefix prefix_idle 💤
3 Attention prefix prefix_attention 🔴
4 Flash color R (0-255) color_r 255
5 Flash color G (0-255) color_g 140
6 Flash color B (0-255) color_b 0
7 Flash interval (seconds) interval 0.6
8 Flash enabled flash_enabled true
9 Badge enabled badge_enabled true
10 Badge text badge ⚠️ Needs input
11 macOS notifications notify false
12 Sound file path sound (empty)
13 Display target display_target title
14 Subtitle activity source subtitle_activity_source off
15 Signal max age (seconds) signal_max_age 1800

Display all settings with their current effective values in a numbered table. Then ask the user which setting(s) they want to change. After they respond, update only the specified values and write the full config to ~/.config/claude-tab-status/config.json. The adapter will hot-reload the changes within ~1 second.

Validation rules:

  • color_r, color_g, color_b: integers 0-255
  • interval: positive float
  • flash_enabled, badge_enabled, notify: boolean
  • display_target: one of title, subtitle, or both
  • subtitle_activity_source: one of off or prompt; prompt appends a compact sanitized snippet to the subtitle and is opt-in because prompt text may be sensitive
  • sound: valid file path or empty string
  • signal_max_age: integer seconds; expire signals not refreshed within this window (guards against tabs stuck on a stale status); 0 or negative disables age-based expiry
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. 4d ago First seen · 35 lines · 24 tokens per session scan A 9feaf0d5bca7

Subscribe to this mod's changes

config is a command published in the GitHub repository JasperSui/claude-code-iterm2-tab-status (38 stars, last pushed 14d ago), licensed MIT. It adds 24 tokens to every session and 546 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-08-30.