Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By juulsvernev0.4.0In 1 marketplace
A band above the prompt: session and last-message cost, plus git branch, status, CI, pull and push (push commits any uncommitted changes first, with a generated message)
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; calls a model on your account.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code mod: a band above the prompt. The left side shows what the session costs. The right side shows git and CI for the repo you're in.
Session $4.12 · Last message $0.38 ai-playground ⎇ [main ▾] ●3 ↑2 ↓0 ✅ CI [Pull] [Push 2]
⎇ [main ▾]). Picking a branch runs git switch. The list holds your 15 most recently committed local branches. On a surface with no picker element (VS Code, mobile), the branch is plain text.●N uncommitted files, and ↑ahead ↓behind the upstream.gh. It's hidden when there's none.git pull --ff-only.git push, with -u origin <branch> when there's no upstream.Commit & push (or Commit & push 3 when commits are already waiting). The second click stages everything (git add -A), commits with a one-line message Haiku writes from the diff (falling back to Update N files), then pushes. If the commit fails (a pre-commit hook, say), it shows git's error and doesn't push.git fetch every 5 minutes. Outside a git repo the whole right side hides.It's on by default. /meter hides or shows it. There are no toasts or alerts. The CI badges and timings are at the top of hooks/register.tsx.
The cost is the engine's own /cost figure. A session.measure hook fires after each turn, reads cost.usd and stores { total, lastTurn, startedAt } in $.state. Git state is read with $.process.run (git and gh, in the session's directory) into a git state value. The AbovePrompt render hook only reads state and draws. A $.clock.every timer runs the count-up while the session figure is moving, and another runs the 5-minute fetch.
Install it from the marketplace this repo provides:
/plugin marketplace add juulsverne/claude-code-mods
/plugin install cost-git@playground-mods
Or try it in one session from a clone:
claude --plugin-dir cost-git
claude plugin validate claude-code-mods/cost-git: passes with no warnings.tsc against Claude Code 2.1.286's plugin types: the hooks module is clean; the test file has fixture typing errors (the BAND props), which don't affect running the tests.claude plugin test claude-code-mods/cost-git: 10 tests pass on the terminal and desktop surfaces. They cover:
Session $0.00 · Last message $0.00 with no emojigit switchgit switch refuses when uncommitted changes would be overwritten. The band shows git's error and stays put; it never stashes.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
cost-git@claudemods is listed by omarcevi/claudemods — review the source before installing
npx claudepluginhub omarcevi/claudemods --plugin cost-git