One statusline,
every LLM harness.
Fast (<2 ms), zero-fork, cross-platform statusline renderer in Rust.
Reads harness JSON from stdin, resolves Git branches, worktrees
and tags straight off disk without spawning git or
jq, and writes a width-adaptive TokyoNight bar to
stdout. One ~/.config/hudr/config.toml drives
Antigravity CLI, Claude Code, hrdr, and Codex CLI.
$ hudr preview --harness agy [Antigravity CLI (normal)] $ hudr codex sync synced Codex status_line -> ~/.codex/config.toml $ hudr doctor config: ~/.config/hudr/config.toml (found, valid) git: branch 'main' (48 us)
why
Shell scripts with jq and git burn 200 ms a turn.
Sub-millisecond, zero-fork
Pure Rust (#![forbid(unsafe_code)]) with no subprocess
spawns — std::process::Command::new is banned at lint time.
51 µs p50 in-process on standard repos; 303 µs on a 10,000-line
packed-refs.
Direct disk .git reader
Reads .git/HEAD, linked worktrees and submodules
(gitdir: and commondir), loose and peeled
packed-refs tags, and rebase/merge/bisect state without
ever executing git.
Two-run context gauge
Renders a filled/empty background bar across the token readout with
configurable warn and critical thresholds, hrdr compaction
triggers, and a readable plain fallback under $NO_COLOR.
Width-adaptive truncation
Measures true unicode-width display columns (CJK, emoji,
combining marks) against terminal_width, dropping
low-priority segments first or wrapping cleanly onto multiple lines.
TokyoNight defaults, TOML overrides
Ships with tokyonight, tokyonight-storm,
classic, catppuccin-mocha, and
nord palettes, 24-bit RGB with automatic 256-color and
$NO_COLOR fallback, plus Nerd, Unicode, ASCII, or no icons.
Hardened at every boundary
Bounded reads on stdin, configs, and .git
files, plus C0/C1/CSI/OSC/BiDi escape stripping on untrusted branch
names, directory paths, and model labels.
harnesses
One config across every coding agent you run.
| Antigravity CLI (agy) |
Detects product: "antigravity"; renders
model.effort (stripping duplicate effort suffixes),
tightest quota, active subagents,
task_count, and live terminal_width.
|
| Claude Code |
Reads stdin JSON and falls back to
${CLAUDE_CONFIG_DIR:-~/.claude}/settings.json for
effortLevel when omitted from the payload.
|
| hrdr |
Native ingestion of StatusInputs fields:
provider://model, auto_compact_at critical
threshold, sandbox, session, and
ttft.
|
| Codex CLI |
hudr codex sync surgically updates
[tui].status_line in
${CODEX_HOME:-~/.codex}/config.toml via
toml_edit (preserving comments and
[projects.*]), plus hudr codex print --flags
and a stdin JSON adapter.
|
| hudr preview |
Renders built-in sample payloads (normal, warn, compaction-critical,
narrow 60-col) using your live ~/.config/hudr/config.toml.
|
| hudr doctor |
Validates config, times local .git discovery in
microseconds, and inspects Antigravity, Claude, Codex, and
hrdr setup read-only.
|
Configuration lives in ~/.config/hudr/config.toml on Linux,
macOS, and Windows (overridable via $HUDR_CONFIG or
--config). Works out of the box with zero config files.
install
Every channel drops a hudr on your $PATH.
# Arch (AUR) $ paru -S hudr-bin # macOS (Homebrew tap) $ brew install kryptic-sh/tap/hudr # Windows (Scoop) $ scoop bucket add kryptic-sh https://github.com/kryptic-sh/scoop-bucket $ scoop install kryptic-sh/hudr # any platform (crates.io) $ cargo install hudr # Debian/Ubuntu, Fedora, Alpine: .deb / .rpm / .apk on the release page