witr
$ witr Community Low Riskwitr (pranshuparmar/witr) answers why a process, port, container, or file lock is running by walking causal OS ancestry—systemd/launchd units, Docker/Podman/Kubernetes containers, cron jobs, and parent shells. Emits structured --json reports alongside tree (--tree) and interactive TUI (--interactive) views.
brew install witr Single read-only diagnostic command (witr --port 8080 --json) gives instant causal process JSON without running any MCP server.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean --json causal report output paired with targeted -p/--pid, -o/--port, and -c/--container flags.
- Supports
--json,--port,--pid,--container, and--tree
Strictly read-only diagnostic CLI with zero destructive actions, zero credentials, and zero network egress.
- Read-only local OS process and socket inspection
Native Go binary available via brew install witr, go install, winget/scoop, and install script.
- Homebrew, Go, winget/scoop, and shell installer
Replaces multi-step lsof + ps + docker inspect debugging with one causal JSON trace.
- Single-command process, port, and container ancestry resolution
Rapidly adopted Apache-2.0 OSS tool (pranshuparmar/witr, 23.6k+ stars).
pranshuparmar/witrrepository
Clear README and Go package documentation covering flags and JSON output.
- GitHub README and pkg.go.dev docs
Security, Auth & Guardrails
Zero credentials; inspects local OS process tables, sockets, and container metadata read-only.
Apache-2.0 open-source and free.
# witr Agent Rules - Always pass `--json` (and never `-i` / `--interactive`) in agent shells. - Run `witr --port <port> --json` before killing an unexpected listener so you do not terminate a supervisor or container daemon blindly.
Agent-Ready Command Recipes
Safe Read-Only Queries
witr --port 8080 --json
Emits the full process ancestry, parent service, and container context for port 8080 as JSON.
witr --pid 1234 --json
Resolves the parent chain and launch origin of PID 1234 in machine-readable JSON.
Strengths for Agents
- + One
--jsoncall explains process, port, container, and file-lock origins. - + 100% read-only local diagnostics—safe for unrestricted agent troubleshooting.
- + Cross-platform native binary with zero runtime dependencies.
Caveats & Pitfalls
- ! Inspecting root-owned or privileged system processes may require elevated privileges depending on OS.