Bundle #33 — Shell Surface Recon Pack. Four NEW agent-native CLI harnesses that answer one question end to end: what is the trust surface of the shell every agent runs inside — which startup files actually load for the declared shell class and what are they configured to do (names, never secret values), which PATH directories are silently world-writable, duplicated, relative, or empty entries that resolve to the current directory, which shell hook variables (BASH_ENV, ENV, PROMPT_COMMAND, PS0, ZDOTDIR) are live and what command structure rides inside them, and which home dotfiles drifted from the pristine /etc/skel skeleton. Every report names its read caps and refusals as exit-2 verdicts before any work; secret values NEVER enter a report; the shell's most dangerous lines — fetch-and-execute — are surfaced with line numbers and masked prints, because that is the signal worth seeing and the only line class that deliberately prints.

CLI-Anything Bundle #33 — Shell Surface Recon Pack

Four NEW agent-native CLI harnesses: profilepeek (startup-chain census for bash / sh / zsh / universal-fallback with per-file present/absent/unreadable verdicts, truncated bytes+mtime, directive counts with values masked ***:LEN, secret-named assignments flagged, bash login-trio WINNER law, ZDOTDIR override row, and fetch-and-exec trust lines — curl|sh pipes and bash <(wget …) / eval "$(curl …)" forms — with line numbers and truncated masked prints; zero spawns), pathpeek (directory-level PATH trust census: raw verbatim, order preserved, EMPTY_ENTRY_CWD / RELATIVE_PRESENT / present_not_dir / missing verdicts, octal mode, world- and group-writable flags, uid/gid, traversal accessibility, symlink targets, duplicate-of first position — no per-command resolution: that is whichpeek's job), hookpeek (hook registry by shell class with honest unset rows; values are classified, not dumped: $() and backtick substitution counts, newline and semicolon segments, pipe-into-shell segments, fetch-pipe class flag, source tokens, and a truncated value_print with SECRET-named assignments masked by name; declared --set/--env-file sources make audits deterministic without touching the live environment), rcdiffpeek (dotfile drift vs a pristine baseline: MATCH / CHANGED / ABSENT / EXTRA / UNREADABLE verdicts from sha256 + size + octal mode, mode-drift reported on identical content, size deltas and sha prefixes carried, symlink skip tally, walk depth/file caps reported when hit — content is NEVER printed, a battery-asserted law).

The four skills

skillanswerssources
profilepeekwhich startup files load, what they configure (names only, values masked), and which lines fetch-and-execute remote content/etc/profile + profile.d + /etc/bash.bashrc or zsh stage files + home dotfiles; declared via --shell / SHELL / --home / --etc-root
pathpeekwhich PATH entries are CWD-empty, relative, world-writable, group-writable, duplicated, missing, symlinks — with modes and accessibilityprocess PATH env or a declared --path value; entries stat/readlink/access only
hookpeekwhich shell hooks are set and what command anatomy their values carry, with secret-named assignments masked inside printsprocess environment (read-only) + declared --set pairs + strict --env-file fixtures
rcdiffpeekwhich dotfiles drifted from the pristine baseline, which match byte-for-byte, which are extras — sha truth, no content--baseline dir (default /etc/skel) vs --home dir (default $HOME), capped walk + sha256 per file

Install (one step per skill)

Unzip the pack and copy a skill folder into your agent's skills directory. Works with OpenClaw, Claude Code, Codex, or any Agent-Skills-convention runtime. Every skill also runs as a plain CLI (Python 3.8+, standard library only) with --json output:

cd <skill>/agent-harness
python3 -m cli_anything.<skill>            # human report
python3 -m cli_anything.<skill> --json     # JSON, the agent contract

Battery truth (2026-11-06)

All four batteries fired twice on the final bytes and once more from this shipping zip, identical counts, zero failures, zero errors: profilepeek 138 + pathpeek 127 + hookpeek 90 + rcdiffpeek 96 = 451 checks per full sweep. The zero-spawn law is battery-asserted for all four tools against each tool's own source; the masking laws are asserted by planting secret values and grepping the output for their absence; rcdiffpeek's content-never-printed law is asserted the same way, and its fixture trees are hash-compared before and after every run to prove nothing was touched. Fire #1 surfaced five real tool defects (a sources/umask count-vs-list key collision, dropped name lists, a double-slash etc-root template, missing control-flow aggregates, a relative-verdict masking) — all repaired before any green fire, zero test weakening.

Read-only law

No tool in this bundle mutates host state: nothing is written anywhere, no subprocess is ever spawned, no network socket exists in any source. Assignment values print as ***:LEN masks; secret-named variables are flagged and their values stay masked even inside the deliberately-printed fetch-and-exec lines; rcdiffpeek carries no file content into any output. Refused inputs change nothing on the host. Reports are diffable JSON or aligned text; every verdict states its model; every honest absence — an absent startup file, an unset hook, a missing PATH entry — is a named result, never an error to paper over.