Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
budgetclaw
command
Command budgetclaw is a local telemetry reader and spend monitor for Claude Code.
|
Command budgetclaw is a local telemetry reader and spend monitor for Claude Code. |
|
internal
|
|
|
budget
Package budget loads budget rules from TOML and evaluates events against them.
|
Package budget loads budget rules from TOML and evaluates events against them. |
|
cli
Package cli wires the cobra command tree for budgetclaw.
|
Package cli wires the cobra command tree for budgetclaw. |
|
db
Package db persists parsed budgetclaw events and their per-day rollups in a local SQLite database.
|
Package db persists parsed budgetclaw events and their per-day rollups in a local SQLite database. |
|
enforcer
Package enforcer implements the two sides of budget-breach enforcement for budgetclaw:
|
Package enforcer implements the two sides of budget-breach enforcement for budgetclaw: |
|
ntfy
Package ntfy is a minimal client for ntfy.sh-compatible push notification servers.
|
Package ntfy is a minimal client for ntfy.sh-compatible push notification servers. |
|
parser
Package parser extracts billable events from Claude Code session JSONL logs.
|
Package parser extracts billable events from Claude Code session JSONL logs. |
|
paths
Package paths resolves filesystem locations for budgetclaw's config, state, data, and cache, following the XDG Base Directory Specification.
|
Package paths resolves filesystem locations for budgetclaw's config, state, data, and cache, following the XDG Base Directory Specification. |
|
pipeline
Package pipeline wires the six independent budgetclaw data-flow packages (parser, pricing, db, budget, enforcer, ntfy) into one Handler function suitable for the watcher.
|
Package pipeline wires the six independent budgetclaw data-flow packages (parser, pricing, db, budget, enforcer, ntfy) into one Handler function suitable for the watcher. |
|
pricing
Package pricing maps Claude model IDs to per-million-token USD rates and computes cost for a given token mix.
|
Package pricing maps Claude model IDs to per-million-token USD rates and computes cost for a given token mix. |
|
version
Package version exposes build-time version metadata.
|
Package version exposes build-time version metadata. |
|
watcher
Package watcher tails Claude Code's JSONL session logs under $HOME/.claude/projects and streams parsed events to a handler.
|
Package watcher tails Claude Code's JSONL session logs under $HOME/.claude/projects and streams parsed events to a handler. |
Click to show internal directories.
Click to hide internal directories.