by fallow-rs
Codebase intelligence for TypeScript and JavaScript. Health, complexity hotspots, duplication, architecture boundaries, circular dependencies, design-system drift, and unused code, from one graph. CLI, GitHub Action, LSP, MCP, and VS Code. Rust, MIT licensed.
# Add to your Claude Code skills
git clone https://github.com/fallow-rs/fallowGuides for using mcp servers skills like fallow.
fallow is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by fallow-rs. Codebase intelligence for TypeScript and JavaScript. Health, complexity hotspots, duplication, architecture boundaries, circular dependencies, design-system drift, and unused code, from one graph. CLI, GitHub Action, LSP, MCP, and VS Code. Rust, MIT licensed. It has 5,442 GitHub stars.
fallow's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/fallow-rs/fallow" and add it to your Claude Code skills directory (see the Installation section above).
fallow is primarily written in Rust. It is open-source under fallow-rs on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh fallow against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Run it in the root of any JS or TS project:
npx fallow
A pull request gate on a fictional storefront monorepo might look like this:
$ npx fallow audit --base HEAD~15
Audit scope: 73 changed files vs HEAD~15
● Circular dependencies (24)
packages/storefront/src/orders/process.ts (6 cycles)
→ payment.ts → context.ts → process.ts
── Duplication ────────────────────────────────────
⚠ 185 lines (0.2%) duplicated across 6 files
● High complexity functions (28)
packages/storefront/src/orders/payment.ts
:566 processPayment CRITICAL
32 ! cyclomatic 47 ! cognitive 203 lines
── Styling ────────────────────────────────────────
font sizes mix 3 units (3 px, 2 rem, 1 em; candidate, standardize unless intentional)
✗ dead code: 68 issues · complexity: 28 findings · duplication: 7 clone groups · 73 changed files
audit gate excluded 98 inherited findings (run with --gate all to enforce)
Illustrative output for a fictional project. The gate fails (exit code 1) on findings in changed files. Findings that existed before the change are excluded.
fallow builds a repository graph of modules, exports, dependencies, functions, and styling tokens. Its analyses use that graph to find complexity, architecture drift, duplication, unused code, and risks in a pull request.
fallow runs in four places. All four read the same config file and use the same analysis engine.
| Where | Start with |
|---|---|
| Your terminal | npx fallow |
| Pull requests | uses: fallow-rs/fallow@v3 |
| Your editor | The VS Code extension or fallow-lsp |
| Coding agents | npx fallow agent install |
| Question | Analysis | Command |
|---|---|---|
| Is this change safe to merge? | Changed-file gate over complexity, duplication, unused code, and styling drift, with a pass, warn, or fail result | fallow audit |
| Where is the code hard to change? | Complexity hotspots, a 0 to 100 health score, and refactoring targets, with git churn and ownership | fallow health |
| Does the architecture hold? | Boundary violations with bulletproof, layered, hexagonal, feature-sliced, and deep-modules presets, and circular dependencies |
fallow architecture, fallow guard |
| What is copied? | Code duplication in JS, TS, CSS, and Vue, Svelte, and Astro components | fallow dupes |
| Does the UI follow the design system? | Styling drift in CSS and CSS-in-JS | fallow health --css |
| What does nothing use? | Unused files, exports, types, class and enum members, and dependencies, with an auto-fix and a dry-run preview | fallow dead-code, fallow fix |
| Do the tests detect a code change? | Mutation testing: small changes in the source that no test detects (opt-in, runs the project tests) | fallow mutation |
| Which code paths are risky? | Security candidates, ranked by reachability from entry points (opt-in) | fallow security |
| Which functions do the same job? | Functions with the same intent and different syntax (opt-in, uses a local model that you download once) | fallow similar-code |
| Where are the feature flags? | Feature-flag patterns across the codebase | fallow flags |
npx fallow viz opens an interactive HTML map of the project with lenses for health, duplication, architecture, and unused code.
Add --type-aware for exact TypeScript symbol identity across aliases, re-exports, and packages. This optional pass removes false positives from interfaces and base classes (how type-aware analysis works). A Homebrew, cargo install or release-archive binary gets the type-aware companion with fallow type-aware setup. Runtime coverage from production is an optional add-on that fallow merges into health and audit reports.
The CLI reference lists every command. fallow schema prints all commands, flags, output formats, and exit codes as JSON.
fallow keeps these properties from release to release:
similar-code command uses a pinned local model.fallow audit fails only on findings that a change introduces. Existing findings do not fail the check.--workspace <name> scopes a run to one package.The analyzer is written in Rust and uses Oxc for syntactic analysis. Static analysis needs no TypeScript compiler and no Node.js runtime.
npx fallow # health, duplication, and unused code in one run
npx fallow audit # only the findings that your change introduces
npx fallow fix --dry-run # preview the auto-fixes, then run `npx fallow fix`
npx fallow health --score # health score with the largest deductions
npx fallow dead-code --trace src/api.ts:client # prove an export is unused before you delete it
To keep fallow in the project, install it as a dev dependency:
npm install --save-dev fallow
The npm package includes the fallow, fallow-lsp, and fallow-mcp launchers. For pnpm, yarn, cargo install fallow-cli, and Docker, see the installation guide.
To check each commit before it leaves your machine, install the managed pre-commit hook:
npx fallow hooks install --target git
You do not have to fix every finding before you add fallow to CI.
npx fallow recommend. It detects the stack and proposes a config. It changes no files.fallow audit in pull requests. It compares each pull request with its base branch and blocks only the findings that the pull request adds. It needs no baseline file.fallow, dead-code, dupes, or health, save a baseline once with npx fallow --save-baseline fallow-baseline.json. Pass --baseline fallow-baseline.json on each later run, so that only new findings fail.fallow fix --dry-run shows the fixes and changes no files. fallow fix applies them.If findings are caused by missing entry points or generated files, add the missing entry points and exclude the generated files