Personal command-line toolkit: 85+ Python tools, a dozen Go binaries, and a small Rust workspace. Built for daily use on macOS; most tools also work on Linux.
Built and maintained by Roger Dubar.
rogkit for AI agents
AI agents (Claude, Codex, and similar) are a first-class user of any machine rogkit is installed on, not just a human at a terminal — primer, drift, squeeze, why, recall, and toolfind are new tools built specifically to serve that use case. A few things worth knowing if you're an agent operating on a rogkit-equipped machine (or scripting around one):
- Start with
primer. It's a cold-start briefing for whatever machine you're on: uptime, disk headroom, dirty repos under~/dev, listening ports, recent notes, and (on Linux) the configured Pi media services plus/mnt/media1–/mnt/media4mount state. Once a baseline exists, it also includesdrift's summary of what changed since last time — one command instead of re-deriving all of that from scratch every session. driftis the closest thing to memory across sessions:drift --set-baseline morningonce, thendriftany time to see what actually changed, with exit codes (0/1/2) usable in scripts.memgives a grouped, per-app memory view (mem chromefor every matching process plus a total) — andwhydoes one-shot slowness triage by composingsysreboot/memrather than re-reading the same syscalls.squeezeis for compressing large log/output dumps before they hit a context window —squeeze --fit 4000 some.logdistills thousands of lines to their unique templates, keeping rare and error-shaped lines even under a tight budget. See the Go tools section below for the exact algorithm.recallandtoolfindhelp with session handoff and tool discovery respectively —recall yesterdayfor "what happened since I was last here,"toolfind "empty folders"instead of grepping this README for the right tool name.- The Go system tools start instantly.
space,mem,drift,squeeze,why,uprec, andsysreboothave nouv/Rich import cost, and all auto-detect a non-TTY stdout and switch to plain, uncolored output on their own — piping one from a shell tool never leaks ANSI codes into an agent's context, even without-q. --jsongives structured output onsysreboot,space,mem,drift,why,uprec(Go) anddoctor,scrape,primer,toolfind,recall(Python) — prefer it over parsing table output.-q/--quiet/--plainforces plain output even on a real TTY:space,mem,drift, andsqueeze(Go), and every Rich-table Python tool (ports,procs,dsize,system,note,pyinfo,purge,backup, and the rest — all 38 of them). Python tools without an explicit flag still auto-detect a non-TTY stdout via Rich, but Rich's own fallback only drops color, not table borders/box-drawing — so--plainis still the safer bet for an agent even when piping.
Highlights
A few tools you may find immediately useful, day to day:
| Tool | What it does |
|---|---|
pw |
Cryptographically secure password generator |
space |
Disk usage summary with a colored table, instant startup |
sys |
One-or-two-line reboot advisor — is this machine actually fine? |
uprec |
Longest uptime this machine has ever managed, and where the current run ranks |
json |
Pretty-print and query JSON from file or stdin |
jqsafe |
Inspect JSON safely: shape only by default, values only for paths you name, personal-looking keys never shown |
dedupe |
Find duplicate files by content across a directory tree |
serve |
Serve any folder over HTTP instantly |
httpcheck |
Check HTTP status, timing, redirects, and content type for URLs |
Prerequisites
- Python — 3.14+
- uv — used for dependency management and running tools
- Go 1.21+ — only needed to build the Go binaries (
go/) - Rust stable toolchain — only needed to build the Rust tools (
rust/) - Optional external tools — some media tools require
ffmpeg, HandBrake, Plex access, or API credentials
Installation
Try the packaged command
uvx --from git+https://github.com/rdubar/rogkit rogkit --help
This is useful for a quick smoke test without cloning the repository.
To keep the top-level command installed:
uv tool install git+https://github.com/rdubar/rogkit
rogkit
rogkit --help
rogkit --credits
The packaged rogkit command (also installed as the short alias rk) provides the project overview, credits, help, doctor, and update entry points. Use a full checkout for the short utility commands (json, pw, p, doctor, and so on), which are provided by the repository aliases file.
Full checkout
git clone https://github.com/rdubar/rogkit
cd rogkit
uv sync --all-extras
source "$(pwd)/aliases"
rogkit-dev
doctor
uv sync --all-extras creates the project environment and installs all optional dependency groups. You do not need to activate the .venv; the aliases run tools through uv run --directory.
The aliases file auto-detects the checkout path, so it can be sourced from any clone location. To load it automatically in future shells, run:
setup --apply
setup creates ~/.config/rogkit/config.toml if needed and adds the aliases source line to your shell profile. It previews changes by default; --apply writes them.
Use doctor for a health check covering config, secrets, aliases, common binaries, and media connectivity. It includes remediation hints for common warnings and failures.
rogkit-dev (short alias: rk) is the repo-local top-level command. It mirrors the packaged rogkit entry point while running from your checkout.
Command naming convention:
Short user-facing commands live in aliases (json, csv, envr) while the
underlying Python modules may use disambiguated names such as jsonr.py and
csvr.py to avoid collisions with standard-library modules or common utilities.
Tool categories
File management
| Tool | What it does |
|---|---|
backup |
Archive files/folders with compression, dry-run plans, manifests, and optional age-encrypted sets |
archive |
Inspect archive contents or extract them safely |
collate |
Merge files from multiple locations into one directory |
dedupe |
Find duplicate files by size and hash under a directory tree, with exclude globs and optional .gitignore filtering |
delete |
Delete or trash files/folders; accepts piped filenames with confirmation |
dsize |
Recursive directory size calculator with sorted output |
empties |
Find empty folders and sparse directory trees |
fuzzy |
Fuzzy file/text search helper with interactive selection |
hidden |
Find hidden files and folders |
large |
Find large files over SSH |
paths |
Full-path search with optional media metadata display |
purge |
Remove junk files (.DS_Store, __pycache__, etc.) by pattern |
renamer |
Bulk file rename with pattern matching and preview |
serve |
Serve a local directory over HTTP for quick previews |
Media
The media subsystem is the most complex component — see Media subsystem below.
| Tool | What it does |
|---|---|
imager |
Batch image conversion and processing (resize, format, optimise) |
iso |
Extract main feature from a DVD/ISO using HandBrake |
media_files |
Scan and report on media file collections |
media_play |
Experimental local/remote media player |
media_scan |
Scan media files using ffmpeg-python |
miso |
Convert DVD/ISO to movie file |
pdfer |
Create PDFs from image sequences |
shrink |
Compress video files to target size/quality |
spot |
Spotify liked-songs manager (list, export, search) |
transparent |
Strip or add transparency to images |
vido |
Movie downloader with metadata lookup |
System & network
| Tool | What it does |
|---|---|
cleaner |
System cleanup for macOS and Raspberry Pi |
rogkit |
Top-level toolkit entry point: help, version, credits, update, doctor, and setup |
doctor |
Diagnose rogkit setup: config, secrets, aliases, binaries, and media connectivity |
docker_bash |
Interactive bash into a running Docker container |
location |
Current location and weather data |
myip |
Show local IPv4 interfaces and your current external IP |
procs |
Find running processes by name/command, with optional termination |
ports |
Show listening TCP/UDP ports with the owning process |
primer |
Cold-start machine briefing: uptime, disk, dirty repos, ports, notes, recent drift changes |
toolfind |
Fuzzy-search rogkit's own tool catalogue by name or description |
recall |
Unified activity timeline: git reflogs, Claude session starts, and notes, merged and filterable |
httpcheck |
Check HTTP status, timing, redirects, and content type for URLs |
setup |
Create rogkit config.toml if missing and wire aliases into your shell profile |
speeder |
Python interpreter benchmark and version probe |
system |
Enhanced system snapshot (CPU, memory, disk, network) |
time_check |
System clock check and NTP sync status |
venv_set |
Locate and activate virtual environments |
Data & text utilities
| Tool | What it does |
|---|---|
bignum |
Convert large numbers to readable text (1e12 → 1 trillion) |
bytes |
Human-readable byte-size conversion (SI and binary units) |
hash |
Hash files or stdin with common digest algorithms |
clipboard |
Copy text to the system clipboard |
csv |
Render CSV files as terminal tables with column selection and sorting |
envr |
Pretty-print environment variables with key/value filtering |
fakes |
Generate fake names, emails, addresses using Faker |
fig |
ASCII art text via pyfiglet |
generations |
Genealogy calculator — ancestors and DNA percentages per generation |
json |
Pretty-print JSON or query simple paths from file/stdin |
jwt |
Decode JWT header and payload without verification |
note |
Append or list timestamped notes in a Markdown file |
plural |
Pluralise English words correctly, including irregulars |
randomcase |
Convert text to random case |
rounder |
Round decimals while stripping unnecessary trailing zeros |
scrape |
Extract readable text from a URL, with pagination support |
seconds |
Convert seconds to human-readable durations |
stars |
Star/pattern generator |
strike |
Apply Unicode strikethrough to text |
ts |
Convert timestamps between epoch seconds, local time, and UTC |
url |
Encode, decode, parse, and normalize URLs/query strings |
wikipedia |
Search and fetch Wikipedia articles |
Developer & integration tools
| Tool | What it does |
|---|---|
amaz |
AWS S3 file operations |
bmi_calc |
BMI calculator and progression tracker |
catyears |
Cat age to equivalent human years |
dice |
Dice roller (configurable count and sides) |
drying |
Clothes-drying weather advisor |
mapper |
Address geocoding and map link generation |
mongo |
MongoDB query helper and logger |
multical |
Multi-calendar date conversion |
nose |
Odoo/OpenERP nosetests wrapper |
pgscratch |
Disposable Postgres container (Apple container/Docker) for throwaway DB work |
pw |
Cryptographically secure password generator with strength analysis |
pyinfo |
Python environment info and CPU benchmark |
tomlr |
TOML config file manager (~/.config/rogkit/config.toml) |
tunnel |
SSH DB tunnel manager for ERP/Odoo13/P2P (live + test) with live Vaultwarden credential fetch |
xmlr |
Odoo/OpenERP XML-RPC connection manager |
AI chat clients
Talking to an AI from the shell, as distinct from the agent-native tools above — aish in particular overlaps heavily with just asking a coding agent directly now.
| Tool | What it does |
|---|---|
aish |
AI-powered shell assistant — describe a task, get a shell command |
chat |
ChatGPT CLI client |
lm |
Local LLM chat client for LM Studio |
Go tools
Fifteen compiled Go binaries live in go/bin/ and are built with ./scripts/build_go.sh.
| Binary | What it does |
|---|---|
finder |
Canonical filesystem search — honours .gitignore, supports hidden files, include/exclude extensions, smart casing |
fastfind |
Alternate-defaults variant of finder for scripting hooks |
dirfind |
Experimental fuzzy directory locator powered by fd and Go |
replacer |
Fast in-place text replacement across a file tree, with confirmation |
search |
Multi-term content search with batching |
ishtime |
Time zone conversion and "is it time?" helper |
sysreboot |
Ultra-fast one-or-two-line reboot advisor (aliased as sys) |
uprec |
Longest uptimes on record and where the current run ranks — works with or without the uptimed daemon |
space |
Disk usage summary with a colored table, sortable by size |
mem |
Memory usage summary, grouped by app; mem <name> filters to matching processes plus a total |
drift |
Snapshots disk/mem/ports/launch-agents/packages/dirty-repos and reports what changed since the last run or a named baseline |
squeeze |
Distills a log stream into unique templates, with --fit to budget output to roughly N tokens |
why |
One-shot slowness triage: swap pressure, CPU-bound, or memory-bound, with a named culprit |
netcheck |
Superfast network triage: DNS, latency, and throughput probed in parallel, one-line verdict |
rosetta |
Which running apps are executing under Rosetta 2 translation, grouped by app; --watch backgrounds a notifier for new launches |
Build all: ./scripts/build_go.sh
Usage examples:
finder "todo" --root ~/code # recursive content search
replacer --find TODO --replace DONE --write --confirm --path ./project
search --path ./project "TODO" "FIXME" --limit 10
ishtime --time 1530 # convert hhmm to readable delta
sys # "✅ No reboot needed (score 12%)" + stats line
sys -1 # squash to one line
uprec # ranked uptime table, current run marked with ->
uprec -1 # "up 9d 1h · rank 3 of 7 · record 16d 11h"
uprec -q # plain pipe-delimited rows for scripting
space # colored table: mount, total, used, free, usage
space -s -t # sorted by size, plus a combined totals row
space -q # plain pipe-delimited output, no color
mem # top 10 apps by memory, colored table
mem chrome # every matching process, plus a TOTAL row
mem -n 5 # top 5 apps instead of the default 10
drift # what changed since the last snapshot/run
drift --since 7d # diff against the nearest snapshot ~a week old
drift --set-baseline morning # name the current snapshot as a baseline
squeeze app.log # cluster a log file into unique templates
squeeze app.log --fit 4000 # budget output to ~4000 tokens, bulk noise elided first
why # "🔥 CPU-bound: load 8.1 on 4 cores — mediaanalysisd at 340% CPU"
rosetta # "🌀 2 processes running under Rosetta" grouped by app
rosetta --watch # background notifier: toast when a new app launches under Rosetta
rosetta --stop # stop the background notifier
sysreboot replaced the old Python syscheck tool: no psutil/Rich dependency, ~150ms→sub-10ms runtime, and on Linux it checks the canonical reboot marker directly (/run/reboot-required, with /var/run as a compatibility alias) instead of re-deriving reboot need from apt-cache policy heuristics. macOS stays native too: uptime, load, and swap come from sysctls, with only vm_stat left for the memory-pressure page counters. Exit code doubles as a script-friendly signal: 0 = fine, 1 = moderate, 2 = reboot required/advised. Memory warnings measure swap against RAM (25% tight, 50% sluggish, 75% freezing) rather than against swap total, which macOS grows on demand, and include the kernel's own pressure verdict (kern.memorystatus_vm_pressure_level on macOS, /proc/pressure/memory on Linux); why repeats them. mem ranks by physical footprint on macOS (compressed and swapped pages included, as in Activity Monitor) and adds VmSwap to RSS on Linux.
space replaced the old Python space tool for the same reason: no rich import cost, disk stats come straight from statfs(2) (Frsize on Linux, Bsize on macOS — mirroring os.statvfs()'s f_frsize semantics on each). The colored table and -q plain fallback are hand-rolled ANSI/box-drawing, with the same UTF-8-locale ASCII fallback sysreboot uses. Mount dedup uses stat(2)'s device id rather than statfs's Fsid, since macOS APFS firmlinks (e.g. / and /System/Volumes/Data) share one device but report different Fsid values.
mem fills a gap the Python procs --sort mem tool didn't: a grouped, per-app view instead of a flat PID list. It shells out to ps -axo pid=,rss=,comm= once and parses every line, rather than a psutil-style per-process syscall loop. Chromium/Electron helper processes (Google Chrome Helper (Renderer), Slack Helper (Plugin), etc.) are rolled up under their parent app's name via a suffix-stripping heuristic, so the default summary reads like Activity Monitor's grouped view rather than a dozen near-duplicate rows. %Mem comes from physical RAM total (hw.memsize sysctl on macOS, /proc/meminfo's MemTotal on Linux). Passing a name/substring switches to an ungrouped, per-PID view of just the matches plus a TOTAL row — matching processes are found by substring on the raw ps name, not the canonicalized one, so mem chrome still catches every helper.
drift is the missing time axis: every other system tool above (space, mem, sysreboot) is a point-in-time snapshot with no memory of yesterday. It gathers disk and memory data by shelling out to space --json/mem --json -n 30 — composition over a shared internal package, since a risky refactor of two already-working tools wasn't worth it just to save a couple hundred lines — and implements its own collectors for listening ports (lsof on macOS, ss on Linux), launch agents (~/Library/LaunchAgents filenames on macOS, enabled systemctl --user units on Linux), package inventory (brew/dpkg-query, whichever is present), and dirty/ahead git repos under ~/dev. Snapshots are gzipped JSON in ~/.local/state/rogkit/drift/ (one per run, pruned after 90 days unless named as a baseline via --set-baseline), diffed against conservative thresholds (2GB disk, 512MB per-app memory, any new listening port or launch agent) so it stays quiet on ordinary day-to-day variance. Exit codes mirror sysreboot: 0 = no changes, 1 = changes, 2 = a notable one (new port, new agent, crossed 90% disk).
squeeze masks variable fields (timestamps, UUIDs/hex IDs, IPs, paths, bare numbers) out of each line and clusters structurally identical lines into one template with a count — built for when the thing reading the output is a context window, not a scrollback buffer. --fit N budgets the rendered output to roughly N tokens (a documented ~4-chars-per-token estimate, not a real tokenizer): error-shaped templates and rare ones survive first, high-count bulk noise is elided, and an "N more templates elided" line accounts for what got cut.
why answers "why is this machine