rynhardt81/forgeFlow/tree/main/mods/forge-band
forge-band
A Claude Code mod (function hooks plugin) that draws a bordered status band above the prompt showing prompt-cache countdown, installed version, next ready task, registry drift, and one-press /reflect, /create-pr and /run-epic buttons.
About this mod
forge-band is a Claude Code mod, a plugin of function hooks (Claude Code v2.1.287+), that renders a bordered band above the prompt. The band shows the cache countdown (an estimated minutes-until-lapse, green >15m, yellow ≤15m, red ≤5m), the installed Forge Flow version from forge version, the first ready task from forge task ls --ready --json, and the drift count from consistency-banner.py --json. Buttons trigger /reflect status|resume|handoff, /create-pr review <PR#> when an open PR exists for the branch, and /run-epic <epic of next task> (needs a confirming second press within 10s); buttons whose skill is not installed are hidden. The band's refresh only reads files and never writes. Load via CLAUDE_CODE_PLUGIN_DIRS in ~/.claude/settings.json for every session, or claude --plugin-dir .claude/mods/forge-band for one session. Validate with claude plugin validate and test with claude plugin test.
Installation
Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.
claude plugin marketplace add rynhardt81/forgeFlow claude plugin install forge-band
Original text / README
forge-band
A Claude Code mod (a plugin of function hooks, Claude Code v2.1.287+) that draws a bordered band above the prompt:
╭──────────────────────────────────────────────────────────────────────────────────────────╮
│ ◆ forge v4.8.0 ● 42m cache · 180k ctx ▸ T313 · E16 · 7 ready ✓ in sync [Status] [Resume] [Handoff] [Review PR #89] [Run E16] × │
╰──────────────────────────────────────────────────────────────────────────────────────────╯
- Cache — minutes left before the prompt cache lapses, counted 60 minutes from the last main-thread reply (an estimate: the mod cannot read the real TTL, which drops to 5 minutes under usage overage). Green > 15m, yellow ≤ 15m, red ≤ 5m; one toast at 5m.
- Version — installed Forge Flow version from
forge version(hidden on pre-4.2 installs that have noVERSIONfile). - Next task — first entry of
forge task ls --ready --json. - Drift — finding count from
consistency-banner.py --json(check only, no--fix). - Buttons —
/reflect status|resume|handoff,/create-pr review <PR#>(only whengh pr viewfinds an open PR for the current branch) and/run-epic <epic of next task>. Run needs a second press within 10s. A button whose skill is not installed is hidden. /forge-bandprints the same line as text;/forge-band showunhides the band.
The band's own refresh only reads: it never writes a file or task state. Its buttons are
different — a press runs that skill, and /run-epic or /reflect handoff can change files,
task state and git history, which is why Run needs a confirming second press.
Python settings hooks stay the floor: mods can be switched off
(disableAllHooks, --safe-mode, an organisation's allowManagedModsOnly).
Load
Refresh copies this folder to <project>/.claude/mods/forge-band/; in the framework repo
it lives at mods/forge-band/. Claude Code does not load it on its own.
Every session — add the folder to the env block of ~/.claude/settings.json
(a project's settings are not read for this), then restart Claude:
"env": { "CLAUDE_CODE_PLUGIN_DIRS": "/absolute/path/to/forge-band" }
The path must be absolute (~ allowed); separate several with :. One copy serves
every project: the band finds Forge Flow under .claude/ or at the repo root, and outside
a Forge Flow project it shows the cache alone.
One session only — the flag lasts until you exit:
claude --plugin-dir .claude/mods/forge-band # mods/forge-band in the framework repo
Develop
claude plugin validate mods/forge-band
cd mods/forge-band && claude plugin test
