hub-setup

hub-setup is a command for Claude Code from fiale-plus/fiale-claude-plugins. It costs 10 tokens per session (991 once invoked), scanned B, original, MIT.

A setup command that connects Claude Code’s status line—the small information bar shown in the tool—to Status Hub.

In plain words
What is it for?
Use it to install the Status Hub status line, save the previous configuration, and add the required file and command permissions.
Why use it?
It avoids manually editing Claude Code settings and preserves the existing status line unless you choose to replace it.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-status-hub plugin — 16 commands shipped together

Good fit Use it to install the Status Hub status line, save the previous configuration, and add the required file and command permissions.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add fiale-plus/fiale-claude-plugins
Claude Code
/plugin install claude-status-hub

Made for: Claude Code.

Or install claude-status-hub, the plugin that ships this one along with the rest of its 16 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 hub-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-setup"><img src="https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 991 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.00010 $0.00991
Opus 5.5 $0.00004 $0.00396
Sonnet 5.5 $0.00002 $0.00198
Haiku 4.5 $0.00001 $0.00099

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

Security

Grade B, and why

hub-setup 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.

Update `~/.claude/settings.json`:
plugins/claude-status-hub/commands/hub-setup.md · 140 lines

How it starts

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

Hub Setup

Configure Claude Code to use Status Hub's statusline.

Step 1: Parse Arguments

Check if --replace flag was provided.

Step 2: Preserve Existing Statusline

If NOT --replace, save existing statusline to ~/.claude/status-base-config.json:

  • statusLine.type == "command": save { "type": "command", "value": "<path>" }
  • statusLine.type == "text": save { "type": "text", "value": "<text>" }
  • No statusLine: detect shell prompt or use { "type": "default" }

If --replace: save { "type": "default" }.

Step 3: Update Settings

Update ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "${CLAUDE_PLUGIN_ROOT}/bin/statusline.sh"
  }
}

Step 4: Add Permissions

Add to permissions.allow (expand all variables to actual paths):

Read(${HOME}/.claude/status-config.json)
Write(${HOME}/.claude/status-config.json)
Read(${HOME}/.claude/status-base-config.json)
Read(/tmp/status-hub.json)
Write(/tmp/status-hub.json)
Read(${CLAUDE_PLUGIN_ROOT}/skills/*)
Read(${CLAUDE_PLUGIN_ROOT}/bin/*)
Bash(gh pr view:*)
Bash(${CLAUDE_PLUGIN_ROOT}/bin/update-bridge.sh *)
mcp__claude-in-chrome__javascript_tool
mcp__claude-in-chrome__tabs_context_mcp

Merge with existing permissions (deduplicate).

Step 5: Initialize Config Files

Status Config (~/.claude/status-config.json)

  • If missing: create {"background": null, "foreground": []}
  • If corrupt: restore from .bak or create fresh
  • If exists: migrate schema (add contextDisplay, calendar if missing)
  • Always backup before modifying

Bridge File (/tmp/status-hub.json)

Create: {"timestamp": null, "background": null, "foreground": []}

Legacy Daemon Cleanup

If /tmp/status-hub-daemon.lock contains old format (just PID, no VERSION:):

  • kill -9 <pid> and remove lockfile
  • New daemon spawns via SessionStart hook

Step 6: Configure Calendar (Optional)

Detect available methods, then present consolidated wizard:

{
  "question": "Enable Google Calendar meeting alerts?",
  "header": "Calendar",
  "options": [
    {"label": "Chrome browser tab", "description": "<dynamic status>"},
    {"label": "Playwright (headless)", "description": "<dynamic status>"},
    {"label": "Skip for now", "description": "Configure later with /hub-setup-gcalendar"}
  ]
}

Read the full file on GitHub · 140 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. 1mo ago First seen · 140 lines · 10 tokens per session scan B e40c739fd685

Subscribe to this mod's changes

hub-setup is a command published in the GitHub repository fiale-plus/fiale-claude-plugins (4 stars, last pushed 6mo ago), licensed MIT. It adds 10 tokens to every session and 991 once invoked, about $0.0000 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.