setup

setup is a command for Claude Code from alwinpaul1/claude-hud-enhanced. It costs 11 tokens per session (13,213 once invoked), scanned D, original, MIT.

A setup command for configuring claude-hud-enhanced as Claude Code's status line, the small display that shows session information.

In plain words
What is it for?
Use it to check for leftover plugin files, cache entries, and registry records, then configure the status line with the detected paths and commands.
Why use it?
It helps detect incomplete or inconsistent installations before applying the configuration.

Command for Claude Code

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

Part of the claude-hud-enhanced plugin — 2 commands shipped together

Good fit Use it to check for leftover plugin files, cache entries, and registry records, then configure the status line with the detected paths and commands.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/alwinpaul1/claude-hud-enhanced/setup
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/alwinpaul1/claude-hud-enhanced

Made for: Claude Code.

Or install claude-hud-enhanced, the plugin that ships this one along with the rest of its 2 commands.

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 setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/alwinpaul1/claude-hud-enhanced/setup/github.svg)](https://agentmods.dev/commands/alwinpaul1/claude-hud-enhanced/setup)
Your own site
<a href="https://agentmods.dev/commands/alwinpaul1/claude-hud-enhanced/setup"><img src="https://agentmods.dev/badge/commands/alwinpaul1/claude-hud-enhanced/setup/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 setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/alwinpaul1/claude-hud-enhanced/setup"><img src="https://agentmods.dev/badge/commands/alwinpaul1/claude-hud-enhanced/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 13,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00011 $0.13213
Opus 5 $0.00005 $0.06606
Sonnet 5 $0.00002 $0.02643
Haiku 4.5 $0.00001 $0.01321

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

Security

Grade D, and why

setup scanned grade D with 3 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 700 "$PREVIOUS_COMMAND_DIR" 2>/dev/null || true

Reads agent configuration directoriesmediumAgent snooping

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

1. Find the most recent backup: `ls -t ~/.claude/settings.json.bak.* | head -1`

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf "$CLAUDE_DIR/plugins/cache"/*/claude-hud-enhanced
plugins/claude-hud-enhanced/commands/setup.md · 970 lines

How it starts

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

Note: Placeholders like {RUNTIME_PATH}, {SOURCE}, and {GENERATED_COMMAND} should be substituted with actual detected values.

Step -1: Am I the version that is installed? (Run before anything else)

This command's own version is 0.7.7, written in the comment above and kept equal to plugin.json by a test.

/plugin update replaces the files on disk, but a running Claude Code session keeps the slash command it loaded at startup. So immediately after an update you can be executing an old setup command against a new plugin — and older versions of this file carried an escaping bug that wrote a statusline which never ran. Running stale setup silently reinstates that bug.

Compare this command's version against the newest version on disk:

CLAUDE_DIR="${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
ls -d "$CLAUDE_DIR"/plugins/cache/*/claude-hud-enhanced/*/ 2>/dev/null \
  | awk -F/ '{ print $(NF-1) }' \
  | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' \
  | sort -t. -k1,1n -k2,2n -k3,3n | tail -1

Windows (PowerShell):

$claudeDir = if ($env:CLAUDE_CONFIG_DIR) { $env:CLAUDE_CONFIG_DIR } else { Join-Path $HOME ".claude" }
(Get-ChildItem (Join-Path $claudeDir "plugins\cache\*\claude-hud-enhanced\*") -Directory -ErrorAction SilentlyContinue |
  Where-Object { $_.Name -match '^\d+\.\d+\.\d+$' } | Sort-Object { [version]$_.Name } -Descending |
  Select-Object -First 1).Name

If the printed version does not equal 0.7.7, STOP. Do not continue, and do not write anything to settings.json. Tell the user:

Your session is running the setup command from an older version, while is installed on disk. Run /reload-plugins (or quit and relaunch Claude Code), then run /claude-hud-enhanced:setup again. Continuing now would write the old, broken statusline.

If the versions match, continue to Step 0.


Step 0: Detect Ghost Installation (Run First)

Check for inconsistent plugin state that can occur after failed installations:

Read the full file on GitHub · 970 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. 3d ago Changed 4e8730fdad1f
  2. 4d ago Changed · +114 lines db56a508cd31
  3. 8d ago First seen · 856 lines · 11 tokens per session scan D 609e545ee5ad

Subscribe to this mod's changes

setup is a command published in the GitHub repository alwinpaul1/claude-hud-enhanced (10 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 13,213 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.