hub-setup

hub-setup is a command for coding agents 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

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the claude-status-hub plugin — 16 commands 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/fiale-plus/fiale-claude-plugins/hub-setup
Clone the repo
git clone --depth 1 https://github.com/fiale-plus/fiale-claude-plugins

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.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.svg" alt="Measured on agentmods" 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. 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.00010 $0.00991
Opus 5 $0.00005 $0.00495
Sonnet 5 $0.00002 $0.00198
Haiku 4.5 $0.00001 $0.00099

Measured 4d ago against content hash e40c739fd685, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 4d 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 4mo ago), licensed MIT. It adds 10 tokens to every session and 991 once invoked, about $0.0001 per session on Opus 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.