Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

witr

$ witr Community Low Risk
pranshuparmar (OSS) · Files & Search · Apache-2.0 · macos / linux / windows

witr (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.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install witr
CLI vs MCP Decision CLI Only

Single read-only diagnostic command (witr --port 8080 --json) gives instant causal process JSON without running any MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Clean --json causal report output paired with targeted -p/--pid, -o/--port, and -c/--container flags.

  • Supports --json, --port, --pid, --container, and --tree
Trust & Safety 24 / 25

Strictly read-only diagnostic CLI with zero destructive actions, zero credentials, and zero network egress.

  • Read-only local OS process and socket inspection
Setup & Portability 14 / 15

Native Go binary available via brew install witr, go install, winget/scoop, and install script.

  • Homebrew, Go, winget/scoop, and shell installer
Utility & Efficiency 13 / 15

Replaces multi-step lsof + ps + docker inspect debugging with one causal JSON trace.

  • Single-command process, port, and container ancestry resolution
Maintenance & Lineage 8 / 10

Rapidly adopted Apache-2.0 OSS tool (pranshuparmar/witr, 23.6k+ stars).

  • pranshuparmar/witr repository
Docs & Verifiability 8 / 10

Clear README and Go package documentation covering flags and JSON output.

  • GitHub README and pkg.go.dev docs

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Zero credentials; inspects local OS process tables, sockets, and container metadata read-only.

Side Effects
Read-Only
Cost & Quotas

Apache-2.0 open-source and free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Trace what started a process listening on a port
witr --port 8080 --json

Emits the full process ancestry, parent service, and container context for port 8080 as JSON.

Inspect a PID or container ancestry as JSON
witr --pid 1234 --json

Resolves the parent chain and launch origin of PID 1234 in machine-readable JSON.

Strengths for Agents

  • + One --json call 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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI