pranshuparmar

witr: Trace Processes, Ports, Containers, and Files to Their Cause

witr is a Go CLI and TUI that traces processes, ports, containers, and files back to the chain that started them. It supports Linux, macOS, Windows, and FreeBSD, with human-readable and JSON output for troubleshooting and automation.

Stars
23.5k
Forks
834
Last commit
10 days ago
Contributors
46
Releases, 12 months
22

Our take

Activeregular commits and releases

Health score

52/100

How it is scored
Activity
68
Community
56
Issues
49
Pull requests
34
  • Releases more often than 76% of the projects we track
  • Slower to merge pull requests than 92% of the projects we track

witr is a focused, actively maintained troubleshooting tool with broad platform support and useful structured output, while its best-effort tracing and platform permission limits mean findings still need context.

Good fit if

  • You need to connect a process, port, file, or container to its likely origin on Linux, macOS, Windows, or FreeBSD.
  • You want a CLI or TUI for investigation, or JSON and exit codes for scripts and AI coding agents.
  • Apache-2.0 licensing suits your project, and you can use the Go-based tool or install a prebuilt binary.

Look elsewhere if

  • You need a monitoring or alerting service rather than an on-demand investigation tool.
  • Your environment requires complete tracing in cases where the original parent has exited or permissions restrict process visibility.
  • You need a Windows TUI for file locks or process actions, which the README lists as unavailable.
All health signals
Last commit2026-11-21 (10 days ago)
Commits, last 90 days54
Releases, last 12 months22 (latest v0.3.4, 2026-10-04)
Contributors46 (top contributor: 71% of commits)
Issues closed, last 90 days13 (typically closed in 36 days)
Pull requests merged, last 90 days16 (typically merged in 7 days)
Project age12 months

Checked on 2026-12-02 with the GitHub API.

Project history

Daily GitHub snapshots since Dec 2, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

23,525

Forks

834

More snapshots will appear as the daily collection continues.

Overview

witr is a Go CLI and interactive terminal dashboard for answering “Why is this running?” It traces a process, port, container, or file back through its ancestry and, where possible, to the service or supervisor that started it. This brings together context that would otherwise require correlating tools such as ps, lsof, ss, and container commands.

It supports Linux, macOS, Windows, and FreeBSD. Results can be read as a report or tree, emitted as JSON for scripts and AI coding agents, or explored in the TUI. The project is aimed at developers and system administrators diagnosing unexpected processes, occupied ports, and container behavior.

Key Features

  • Look up processes by name or PID, and find process owners by port or open file.
  • Trace process ancestry and identify a managing source such as systemd, launchd, a container, or a shell when detectable.
  • Search containers across supported runtimes, including Docker, Podman, Kubernetes via crictl, Incus, LXC, and FreeBSD jails.
  • Use repeatable, mixed target arguments to investigate several names, PIDs, ports, files, or containers in one run.
  • Choose human-readable, short, tree, warning-only, verbose, or JSON output, with defined exit codes for automation.
  • Browse live processes, ports, containers, and file locks in a four-tab TUI, with process details and Unix process actions.
  • Inspect contextual details such as working directory, Git repository, sockets, service metadata, and available container information.

Use Cases

  • A developer can identify which process is occupying a development port and trace it to a supervisor or service before deciding what to do.
  • An on-call engineer can investigate an unfamiliar process during an incident, using ancestry, source details, and warnings to understand its origin.
  • A platform or DevOps engineer can look up a container across supported runtimes and relate it to its host process and, for Compose services, project metadata.
  • A coding agent or shell script can query JSON output and exit codes to diagnose a failed server startup without manually combining several system tools.

What you need

Detected in the repository

  • Go 1.25.0 or newer (from go.mod)
  • Automated checks on GitHub Actions

License in plain words

Apache-2.0permissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the license, the NOTICE file and a note of your changes
  • Share your changes: no
  • Includes an explicit patent grant from the contributors:

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

On Linux, macOS, or FreeBSD, install the latest release with:

curl -fsSL https://raw.githubusercontent.com/pranshuparmar/witr/main/install.sh | bash

Then try witr --port 8080 or run witr to open the TUI. See the README for Windows installation, package-manager options, flags, and platform details.

Considerations

  • Health data describes an active project: it reports regular recent commits and releases, with issue and pull-request activity. The contributor base is not marked as concentrated in the supplied health data.
  • Tracing is best effort. The README notes that permissions can hide process details, and that an exited original parent may leave the cause unknown. Running with elevated privileges can reveal more, but has its own operational implications.
  • Platform capabilities differ. For example, Windows does not provide the TUI Locks tab or process actions, and several diagnostics are partial or unavailable on particular systems.
  • The Go runtime requirement is Go 1.25.0 when building from source; prebuilt binaries and package-manager installations are also offered.
  • The repository uses Apache-2.0. Teams should review that license’s terms before redistributing or incorporating the project.
  • The supplied requirements data does not indicate a test suite, so teams that need verified test coverage should assess the repository and their intended use before adoption.

Found this useful?

Share it with someone who would like witr.