Sanity helps you review AI-generated code, restructure vibe-coded apps, and navigate unfamiliar codebases with confidence.
Fig. 1: Relationships between impacted files are shown and tests are highlighted in green.
Fig. 2: New files are marked with a 🪴 emoji.
- Dart
- Go
- Kotlin
- TypeScript
Install on Linux and Mac using Homebrew:
brew install LegacyCodeHQ/tap/sanityFor other installation methods (pre-built binaries, build from source, Go install), see the Installation Guide.
Generate dependency graphs for Dart and Go files.
Flags:
| Flag | Description | Notes |
|---|---|---|
--repo, -r |
Git repository path | Default: "." |
--commit, -c |
Git commit to analyze | |
--format, -f |
Output format (dot, json) | Default: "dot" |
Examples:
# Analyze uncommitted files in current repository (most common use case)
sanity graph
# Output dependency graph in JSON format
sanity graph --format=json
# Analyze files changed in a specific commit
sanity graph --commit 8d4f78
# Analyze uncommitted files in a different repository
sanity graph --repo /path/to/repo --commit HEAD~1
# Analyze specific files directly
sanity graph --input file1.dart,file2.dart,file3.dart- List all commands:
sanity --help - Command-specific help:
sanity <command> --help - Help command alias:
sanity help <command>