Four NEW agent-native CLI harnesses for read-only git repository recon: what the repo looks like right now (branch, HEAD, status classes as counts, remotes, ahead/behind divergence, stashes, in-progress ops), what changed and by how much (per-file numstat + name-status classes across three scopes — never the patch text), what the history looks like (bounded commit rows, author distribution, merges, day histogram — never an unbounded walk), and who wrote what in a file (author shares, churn via --follow, fixed age buckets, uncommitted class — never the file's lines).
Every tool: stdlib-only, Python 3.8+, --json for machines + clean
human output, exit contract 0 report · 1 named refusal · 2
surface unreadable · self-test battery inside (real temp git repos —
no mocks).
| Skill | What it answers |
|---|---|
| repopeek | What state is this repo in RIGHT NOW: branch/detached, HEAD identity, status classes (staged added/modified/deleted/renamed, worktree modified/deleted, untracked, conflicted) as counts + capped paths, remotes, upstream ahead/behind, stashes, tags, in-progress merge/rebase/cherry-pick/revert/bisect flags. |
| diffpeek | What changed and by how much: per-file added/deleted counts + name-status classes (A/M/D/R, rename detection always on) across worktree-vs-index, index-vs-HEAD, worktree-vs-ref scopes. Binary files counted, never decoded. Patch content NEVER emitted — no hunks in any mode. |
| logpeek | What the history looks like: bounded window of commit rows (ISO dates, authors, merge markers, subjects truncated at 120), author distribution, merge parentage, deterministic day histogram. The walk is ALWAYS bounded; diffs never fetched. |
| blamepeek | Who wrote what: per-author line shares, churn via log --follow, fixed age bucket grid (zeros included), uncommitted class by construction. Line content never emitted — counts not walls, deterministic via pinnable --now anchor. |
unzip CLI-Anything_Bundle18_GitRecon_v1.0.zip
# copy any skill folder into your agent's skills directory (OpenClaw, Claude Code, Codex, …)
python3 repopeek/agent-harness/cli_anything/repopeek/__main__.py --json
# or run as installed console tools:
python3 -m pip install ./repopeek/agent-harness # -> cli-anything-repopeek
python3 -m pip install ./diffpeek/agent-harness # -> cli-anything-diffpeek
python3 -m pip install ./logpeek/agent-harness # -> cli-anything-logpeek
python3 -m pip install ./blamepeek/agent-harness # -> cli-anything-blamepeek
Every skill ships its own battery that builds REAL git repositories in temp dirs and live-fires the allowlist (mutating verbs are fired AT the enforcement and must refuse; counts adapt to any repo shape):
python3 repopeek/agent-harness/cli_anything/repopeek/tests/test_core.py
python3 diffpeek/agent-harness/cli_anything/diffpeek/tests/test_core.py
python3 logpeek/agent-harness/cli_anything/logpeek/tests/test_core.py
python3 blamepeek/agent-harness/cli_anything/blamepeek/tests/test_core.py
Verified 2026-10-20 on the build host: 415 checks (135 + 106 + 73 + 101), 0 failed — plus clean-room fires from a fresh unzip of this exact zip.
Read-only by construction: every git invocation passes a single
checked entry point (_run_git) whose caller-provided verb must be on
the read-only allowlist — commit, push, reset, rebase,
checkout, clean, and every other mutating verb refuse as named
errors, proven twice in the batteries. Three leak laws hold across the
pack and are asserted in-band: repopeek never prints file contents
(status contributes counts + capped paths), diffpeek never emits patch
text (no hunks, no @@, planted markers proven to leak nowhere),
blamepeek never emits line contents (ownership + ages + counts only).
Unknown facts are reported as named nulls — upstream absent, binary
undecoded, uncommitted un-aged — never invented.
Bundle #18 of the CLI-Anything series — agent-native read-only recon skills. Companion bundles: #3 System Truth (cron/ports/packages),
Together: your agent reads the whole system — and git — without ever writing a byte.
Apache-2.0 · stdlib-only · Python 3.8+ · Support: [email protected] — subject "BUNDLE18 GIT"