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

bandwhich

$ bandwhich Community Med Risk
imsnif · Browser & Web · MIT · macos / linux / windows

bandwhich sniffs network interfaces to display live upload/download throughput broken down by local process, connection, and remote address (sudo bandwhich). Supports a --raw stdout mode (-n to skip DNS) for text capture, though it streams continuously without JSON or a built-in sample limit.

FCRS-1.0 Score
67 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install bandwhich
CLI vs MCP Decision CLI Only

Sniffs local NIC packets and correlates socket tables with OS PIDs (bandwhich --raw); MCP tools cannot perform live kernel socket-to-packet attribution.

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 13 / 25

Offers --raw to bypass the TUI for stdout streaming, but streams indefinitely with no finite count flag, no JSON format, and typically needs sudo.

  • --raw prints unformatted text lines to stdout
  • No JSON output, no --count limit, and requires sudo
Trust & Safety 17 / 25

Strictly read-only traffic accounting with no disk writes, though packet sniffing requires root/sudo or CAP_NET_RAW/CAP_NET_ADMIN.

  • Read-only passive monitor requiring elevated packet-capture privileges
Setup & Portability 13 / 15

Single Rust binary via brew install bandwhich, cargo install, and GitHub Releases for macOS, Linux, and Windows.

  • Cross-platform binary via Homebrew, Cargo, and releases
Utility & Efficiency 10 / 15

Uniquely maps live bandwidth to local processes (-p), connections (-c), and remote addresses, though streaming text is noisy for agents.

  • Correlates packet throughput to local process names/PIDs
Maintenance & Lineage 7 / 10

Community Rust project (imsnif/bandwhich) under MIT license.

  • Maintained at imsnif/bandwhich
Docs & Verifiability 7 / 10

Concise README and bandwhich --help covering --raw and privilege setup.

  • GitHub README and bandwhich --help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No authentication credentials required; requires sudo or CAP_NET_RAW/CAP_NET_ADMIN packet capture privileges.

Side Effects
Read-Only
Cost & Quotas

Free, MIT-licensed open-source Rust binary.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# bandwhich Agent Rules
- Never run bare `bandwhich` in an agent shell—it launches an infinite curses TUI; always use `--raw` under an explicit timeout.
- Confirm user approval before invoking `sudo bandwhich` for packet capture privileges.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect bandwhich CLI flags and interface options
bandwhich --help

Prints options (--raw, -i, -n, --processes, --connections) without capturing packets.

Stream raw per-process bandwidth lines briefly
sudo bandwhich --raw -n -p

Emits plain-text per-process throughput snapshots (--raw -p) without DNS lookups (-n) until terminated.

Strengths for Agents

  • + Attributes real-time interface bandwidth directly to local OS processes and remote endpoints.
  • + --raw mode avoids curses TUI rendering when stdout capture is needed.

Caveats & Pitfalls

  • ! Streams continuously until killed—lacks a built-in --count or duration flag and has no JSON output.
  • ! Requires sudo (or Linux capabilities) to capture raw packets.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI