amp-statusline

A command that installs, removes, or previews an AMP status line in Claude Code. AMP is a messaging system for AI agents, and the status line displays agent and session details at the bottom of the terminal.

In plain words
What is it for?
Use it to install or uninstall the status line, preview its output, and see the agent address, unread-message count, model, context usage, and session cost.
Why use it?
It keeps messaging and session information visible without opening separate status commands or tools.

Command

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/agentmessaging/claude-plugin/amp-statusline
Clone the repo
git clone --depth 1 https://github.com/agentmessaging/claude-plugin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 319 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.00319
Opus 5 $0.00000 $0.00160
Sonnet 5 $0.00000 $0.00064
Haiku 4.5 $0.00000 $0.00032

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

Security

Grade B, and why

amp-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 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.

Reads agent configuration directoriesmediumAgent snooping

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

5. Working directory → walks up to find `.claude/settings.local.json` containing a `CLAUDE_AGENT_NAME=` reference
commands/amp-statusline.md · 51 lines

What it actually says

amp-statusline

Install or manage the AMP status line for Claude Code.

Usage

amp-statusline.sh --install     # Add to Claude Code settings
amp-statusline.sh --uninstall   # Remove from Claude Code settings
amp-statusline.sh --test        # Preview output with current agent

What It Shows

The status line appears at the bottom of your Claude Code terminal:

[email protected] | 3 unread
Opus 4.6 | ctx 42% | $1.23
  • Line 1: Your AMP agent address and unread message count
  • Line 2: Model name, context window usage, and session cost

How It Finds Your Agent

The script resolves your AMP identity automatically:

  1. AMP_AGENT_ID env var (explicit UUID)
  2. CLAUDE_AGENT_NAME env var (AI Maestro sets this for managed agents)
  3. tmux session name
  4. Working directory → AI Maestro API (matches agents by their configured working directory)
  5. Working directory → walks up to find .claude/settings.local.json containing a CLAUDE_AGENT_NAME= reference

If no agent is resolved, it shows "AMP: not configured (run amp-init)".

Setup

# Install (one-time)
amp-statusline.sh --install

# Restart Claude Code to see the status bar

Uninstall

amp-statusline.sh --uninstall
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 · 51 lines · 0 tokens per session scan B 84b4166fba28

Subscribe to this mod's changes

amp-statusline is a command published in the GitHub repository agentmessaging/claude-plugin (5 stars, last pushed 14d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 319 tokens. 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.