All 16 Dependencies

Every package Tusk depends on, ranked by repo health score.

Tusk is an Apache-2.0 licensed, Go-based command-line tool from Use-Tusk (Y Combinator W2024) that bundles three AI-assisted testing workflows behind a single `tusk` binary: Tusk Drift for API traffic record/replay, Tusk Review for AI code review of your working tree, and Tusk Unit for retrieving and applying AI-generated unit tests. The CLI itself ships as prebuilt cross-platform binaries via an install script, a Homebrew tap, and GitHub Releases, with the source fully open on GitHub.

Tusk Drift is the most fully-featured piece: it captures real inbound/outbound API traffic through a language SDK (Node.js and Python SDKs exist, more are planned), then replays those recorded traces against your service through a local Unix-socket mock server. A priority-based mock matcher (`internal/runner/mock_matcher.go`) resolves each outbound call to the right recorded response, and the whole replay runs inside a sandbox powered by Use-Tusk's own `fence` project, which blocks live outbound connections to Postgres, Redis, or other services so results stay deterministic. Everything works entirely offline against `.tusk/traces` on disk, or optionally against Tusk Drift Cloud for hosted trace storage and PR-scoped deviation classification.

Tusk Review and Tusk Unit are thinner CLI surfaces over Use-Tusk's hosted service: `tusk review run` uploads a git patch of your uncommitted and untracked changes for AI review and prints results straight to the terminal (nothing is ever posted to GitHub or GitLab), while `tusk unit` commands let you pull AI-generated unit test runs, inspect scenarios, submit feedback, and apply diffs with `git apply`. Both require authenticating with `tusk auth login` or a `TUSK_API_KEY` since the actual AI analysis happens server-side.

A standout piece of the codebase is `internal/agent`, a Claude Sonnet 4.5-powered onboarding agent that drives `tusk drift setup`: it runs a phase-based tool-calling loop that detects your project's language, instruments the Drift SDK, writes configuration, and validates the whole thing with a live record-and-replay cycle before handing control back to you.

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search