Witr traces processes, ports, containers, and file locks back to the chain that started them. It outputs a readable report, JSON for scripts, or an interactive terminal dashboard.
Overview
Witr answers whether something on a system is running and why. It targets processes, services, ports, containers, and locked files when the cause spans supervisors, containers, shells, or other layers.
Ordinary tools such as ps, lsof, ss, systemctl, and docker ps show state but leave users to correlate outputs by hand. Witr makes causality explicit: for a given target it reports what is running, how it started, what keeps it alive, and what context it belongs to.
One command can produce a standard report, short or tree views, environment details, warnings-only output, or machine-readable JSON. Exit codes distinguish clean matches, warnings, not found, and other outcomes for use in scripts and automation. Coding agents can rely on --json and documented exit semantics instead of chaining several lookup utilities.
Running without targets or with -i opens an interactive TUI with tabs for processes, ports, containers, and file locks, including ancestry trees, container runtimes across Docker, Podman, Kubernetes tooling, LXC family, and jails, plus optional signals and renice from the UI on Unix.
Installers ship a single static binary for Linux, macOS, FreeBSD, and Windows, with package managers, npm, and manual options. A browser playground offers a guided tutorial on a simulated Linux host without local install.
Key features
- Trace PID ancestry and startup chain
- Map ports and services to owning processes
- Lookup containers across many runtimes
- Resolve file locks to holding processes
- JSON output for scripts and agents
- Interactive TUI with live refresh
- Meaningful exit codes for automation
- Shell tab completion for flags
Use cases
- Debugging ports already in use
- Incident response on servers
- Finding what started a stray process
- Inspecting container provenance
- Agent-driven system troubleshooting