Bundle #31 — Users Recon Pack. Four NEW agent-native CLI harnesses that answer one question end to end: who exists on this host — which users, in what UID bands, which groups, who can elevate, who is logged in right now, and when did each account last log in? Every report carries its parse model and read_only:true; refused inputs are named exit-2 verdicts before any file is read; /etc/shadow is never opened; sudoers directive text is never printed.

CLI-Anything Bundle #31 — Users Recon Pack

Four NEW agent-native CLI harnesses that answer one question end to end: who exists on this host — which users, in what bands, which groups, who can elevate, who is logged in right now, and when did each account last log in? Every tool reads the account records Linux already keeps (/etc/passwd, /etc/group, /etc/sudoers, /etc/sudoers.d, who, lastlog) and every report carries its parse model beside the facts, with read_only:true asserted in every output. Filter values are gated (empty / NUL / newline / leading dash / >64 chars / out-of-range integers) into named exit-2 refusals BEFORE any file is read, so value-injected flags are structurally impossible. Read-only by construction: /etc/shadow is NEVER read or opened, sudoers directive line TEXT is NEVER printed (line-class census only), no group is joined, no user is modified, nothing is written anywhere. The only process spawns in the entire bundle are loginpeek's own declared views — who and lastlog, each at most once, argv exactly ["who"] / ["lastlog"], battery-recorded; userpeek, grouppeek, and sudopeek spawn ZERO processes. Stdlib only, Python 3.8+, Apache-2.0.

The four skills

skill answers sources
userpeek which users exist, in what UID band (login.defs model named), with what shell — login_shell rule echoed per row /etc/passwd + /etc/login.defs
grouppeek which groups exist, who is in which, duplicate-gid verdicts (whole-file truth), per-user primary+supplementary cross-view /etc/group + /etc/passwd
sudopeek who can elevate — sudo/wheel/admin PRESENT/ABSENT plus dedup union; sudoers surface as line-class census, contents never printed /etc/group + /etc/sudoers + /etc/sudoers.d/*
loginpeek who is logged in right now, when each account last logged in — missing binaries become honest-absence verdicts who + lastlog

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-05)

All four batteries fired twice from this tree, identical counts, zero failures, zero errors: userpeek 156 + sudopeek 118 + grouppeek 120 + loginpeek 100 = 494 checks x 2 fires. Refusal paths are battery-proven to fire BEFORE any file read; the zero-spawn law is battery-asserted for userpeek, grouppeek, and sudopeek, and loginpeek's argv law is recorded in-battery. Clean-room re-fired from this shipping zip (see the store listing for the count).

Read-only law

No tool in this bundle mutates account state. /etc/shadow is never opened; sudoers directive text is never emitted (a readable sudoers surfaces counts only — total/empty/comment/directive); who / lastlog are read-only views under a pinned bare-binary argv law. Refused inputs change nothing on the host. Reports are diffable JSON or aligned text; every verdict states its model; every honest absence is a named result, never an error to paper over.