Whistle
$ w2 Community High RiskWhistle (w2) is a Node.js web debugging proxy supporting HTTP, HTTPS, and WebSocket inspection, mock responses, and host/header rewriting (w2 start -p 8899). Provides non-interactive daemon lifecycle commands (w2 start, w2 stop, w2 status, w2 proxy), while traffic inspection and rules live primarily in its web UI.
npm install -g whistle Runs a local Node.js MITM HTTP/WebSocket proxy daemon (w2 start) and toggles OS system proxy settings (w2 proxy); MCP tools cannot intercept local browser HTTP traffic.
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
Provides clean daemon management subcommands (w2 start, w2 stop, w2 status, w2 run), though captured traffic and rules are managed via its web UI rather than JSON CLI output.
- Non-interactive
w2 start/stop/statuscommands - No
--jsonCLI inspection of captured HTTP requests
HTTPS interception requires trusting a local root CA (~/.WhistleAppData) and w2 proxy modifies OS-level system proxy settings.
- MITM CA cert generation and OS proxy mutation via
w2 proxy
Cross-platform npm package (npm install -g whistle) requiring Node.js.
- Runs on macOS, Linux, and Windows via Node.js
Rich hosts-like rule DSL for mocking APIs, rewriting headers, throttling, and debugging WebSockets.
- Rule-based HTTP/HTTPS/WebSocket interception and mocking
Actively maintained community project (avwo/whistle) under MIT license.
- Active
avwo/whistlerepository on GitHub
Detailed documentation at wproxy.org/whistle/ and built-in w2 --help.
- Official docs at wproxy.org/whistle/
Security, Auth & Guardrails
Stores MITM root CA certificates, capture history, and rule sets under ~/.WhistleAppData; optional web UI auth via -n/-w flags.
Free, MIT-licensed open-source Node.js package.
# Whistle (w2) Agent Rules - Prefer `w2 start -p <port>` with explicit `HTTP_PROXY` over `w2 proxy` so OS-wide network settings are not left broken if a run aborts. - Always run `w2 stop` (and `w2 proxy off` if enabled) when debugging finishes.
Agent-Ready Command Recipes
Safe Read-Only Queries
w2 status
Reports whether a w2 proxy instance is currently running along with its PID and port.
Controlled Writes & Previews
w2 start -p 8899
Starts the w2 background proxy daemon on port 8899 without altering OS-wide proxy settings.
Strengths for Agents
- + Built-in daemon lifecycle (
w2 start,w2 stop,w2 status) avoids manual background PID management. - + Concise rule syntax for host mapping, mocking, and header/body rewriting.
Caveats & Pitfalls
- ! Captured request/response inspection is primarily web-UI driven without structured JSON CLI queries.
- ! Enabling
w2 proxyalters OS system proxy settings and leaves traffic broken ifw2stops unexpectedly.