install-statusline

install-statusline is a command for Claude Code from tslateman/duet. It costs 15 tokens per session (497 once invoked), scanned B, original, MIT.

A command that installs the Duet status bar script for Claude Code and connects it to your user settings.

In plain words
What is it for?
Use it to install or update the Duet status bar in ~/.claude, compare it with an existing version, and choose whether to replace that version.
Why use it?
It avoids manually copying the script, changing permissions, and editing the settings file. It also checks whether an existing status bar would be overwritten.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Part of the duet plugin — 27 skills, 6 commands, 1 agent shipped together

Good fit Use it to install or update the Duet status bar in ~/.claude, compare it with an existing version, and choose whether to replace that version.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tslateman/duet/install-statusline
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/tslateman/duet

Made for: Claude Code.

Or install duet, the plugin that ships this one along with the rest of its 27 skills, 6 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 install-statusline

README.md
[![agentmods](https://agentmods.dev/badge/commands/tslateman/duet/install-statusline/github.svg)](https://agentmods.dev/commands/tslateman/duet/install-statusline)
Your own site
<a href="https://agentmods.dev/commands/tslateman/duet/install-statusline"><img src="https://agentmods.dev/badge/commands/tslateman/duet/install-statusline/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 install-statusline

Your own site · 80×15
<a href="https://agentmods.dev/commands/tslateman/duet/install-statusline"><img src="https://agentmods.dev/badge/commands/tslateman/duet/install-statusline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 497 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00015 $0.00497
Opus 5.5 $0.00006 $0.00199
Sonnet 5.5 $0.00003 $0.00099
Haiku 4.5 $0.00002 $0.00050

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

Security

Grade B, and why

install-statusline scanned grade B with 1 finding 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.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Current user statusline script: !`cat ~/.claude/statusline-command.sh 2>/dev/null || echo "(none)"`
commands/install-statusline.md · 50 lines

What it actually says

Install Statusline

Context

  • Duet statusline script: !cat statusline/statusline-command.sh
  • Current user statusline config: !jq -r '.statusLine // empty' ~/.claude/settings.json 2>/dev/null || echo "(none)"
  • Current user statusline script: !cat ~/.claude/statusline-command.sh 2>/dev/null || echo "(none)"

Your Task

Install the duet statusline script to ~/.claude/ and configure it in ~/.claude/settings.json.

  1. Check current state:

    • Does ~/.claude/settings.json already have a statusLine field?
    • Does ~/.claude/statusline-command.sh already exist?
    • Categorize: no existing statusline, identical, or different
  2. If identical: Report "Statusline already up to date" and stop.

  3. If different or new:

    • If a statusline script already exists, show the diff between duet's version and the existing one
    • Ask the user whether to install (replace) or skip
    • Make clear this will overwrite their current statusline
  4. Install:

    • Copy statusline/statusline-command.sh to ~/.claude/statusline-command.sh
    • Make it executable: chmod +x ~/.claude/statusline-command.sh
    • If ~/.claude/settings.json lacks a statusLine field, add it:
      "statusLine": {
        "type": "command",
        "command": "bash ~/.claude/statusline-command.sh"
      }
      
    • Use jq to merge the statusLine field without disturbing other settings
  5. Verify:

    • Confirm the script exists and is executable
    • Confirm settings.json has the statusLine field
    • Report success — note that the statusline will appear on next Claude Code session start

Note

To disable the statusline, delete the statusLine key from settings.json entirely. Setting it to null causes a settings validation error.

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 First seen · 50 lines · 15 tokens per session scan B 3d9530893539

Subscribe to this mod's changes

install-statusline is a command published in the GitHub repository tslateman/duet (1 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 497 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.