# Fallow > Fallow is codebase intelligence for TypeScript and JavaScript: health, complexity, duplication, architecture, styling and unused code, from one graph of the repository. It is free and open source (MIT), and it serves people, CI and coding agents. Each docs page has a Markdown version at the page path plus `.md`, for example https://fallow.tools/docs/quickstart.md. The full text of all docs pages is in https://fallow.tools/llms-full.txt. A read-only docs MCP server (Streamable HTTP, no authentication) is at `https://fallow.tools/docs/mcp`. ## Agent access - [Agent guide](https://fallow.tools/AGENTS.md): What this site offers to agents and how to connect to it. - [Fallow agent skill](https://fallow.tools/skill.md): Instructions that teach a coding agent to run fallow and read its output. - [Authentication](https://fallow.tools/auth.md): Which parts need an account, and how the CLI and the API authenticate. ## Getting started - [Fallow: codebase analysis for TypeScript and JavaScript](https://fallow.tools/docs/index.md): Fallow is codebase analysis for TypeScript and JavaScript. It reports unused code, duplication, complexity, and architecture drift from one graph of your repo. - [Install fallow with npm, pnpm, yarn or cargo](https://fallow.tools/docs/installation.md): Install fallow with npm, pnpm, yarn, cargo, Docker, or a prebuilt binary for macOS, Linux, and Windows. Or run fallow with npx and no install step. - [Quick start: find unused code with fallow](https://fallow.tools/docs/quickstart.md): Run fallow with npx and get a first list of unused code, duplication, and complexity hotspots in a TypeScript or JavaScript project in under a minute. - [Adopt fallow in an existing TypeScript codebase](https://fallow.tools/docs/adoption.md): Adopt fallow in an existing TypeScript or JavaScript codebase. Clean up the backlog under one team policy, then use fallow audit to keep new changes clean. ## Analysis - [Static analysis for TypeScript and JavaScript](https://fallow.tools/docs/analysis/index.md): Static analysis for TypeScript and JavaScript with fallow: unused code, duplication, complexity, architecture boundaries, styling drift, and runtime coverage. - [Find unused exports and dead code in TypeScript](https://fallow.tools/docs/analysis/dead-code.md): Find unused files, exports, and dependencies to delete from a TypeScript or JavaScript project. Fallow also reports circular dependencies and unused members. - [Type-aware unused code checks for TypeScript](https://fallow.tools/docs/analysis/type-aware.md): Type-aware analysis confirms with the TypeScript checker that a symbol is unused before you delete it, with evidence for symbol usage and affected tests. - [Detect duplicate code in JavaScript and TypeScript](https://fallow.tools/docs/analysis/duplication.md): Detect duplicate code in TypeScript and JavaScript. Fallow finds copy-pasted code and shows which copies to extract first, with the same binary and config. - [Find semantically similar functions in TypeScript](https://fallow.tools/docs/analysis/similar-code.md): Find similar functions in JavaScript and TypeScript that may do the same job under other names and syntax. A pinned local model finds them; a person decides. - [Enforce architecture boundaries in TypeScript](https://fallow.tools/docs/analysis/boundaries.md): Enforce architecture boundaries in TypeScript and JavaScript. Define which directories may import from which, and fallow reports each import that breaks a rule. - [Remove unused exports and dependencies automatically](https://fallow.tools/docs/analysis/auto-fix.md): Remove unused exports, dependencies, enum members, and catalog entries from TypeScript and JavaScript with one command. Preview each change before you apply it. - [CRAP scores for TypeScript with Vitest coverage](https://fallow.tools/docs/analysis/crap-scores-vitest.md): Get CRAP scores per function for a TypeScript or JavaScript project with Vitest. Configure Vitest coverage, run fallow health, and gate new CRAP in CI. - [Find cold code with production runtime coverage](https://fallow.tools/docs/analysis/runtime-coverage.md): Runtime coverage shows which functions production traffic runs and which never run. Fallow merges it into fallow health, so you delete cold code on evidence. - [Analyze production code only, without tests](https://fallow.tools/docs/analysis/production-mode.md): Production mode limits fallow findings to the code you ship. It excludes test files, story files, and devDependencies, and flags type-only dependencies. - [Analyze Vue, Svelte, Astro, MDX, and HTML files](https://fallow.tools/docs/analysis/file-types.md): Vue, Svelte, Astro, MDX, and HTML support: fallow counts files that only these file types, GraphQL, or CSS reference as used, with no plugin or config. - [Find unused CSS Modules classes and Tailwind tokens](https://fallow.tools/docs/analysis/css-analysis.md): Find unused CSS Module classes and Tailwind tokens, and stop false unused-file reports for stylesheets. Fallow resolves SCSS partials, @use, and @forward. - [Debug fallow findings and false positives](https://fallow.tools/docs/analysis/debugging.md): Debug fallow findings: trace why an export, file, dependency, or clone is reported or missed, profile slow runs, and fix the common false positives. - [Known limitations and false positives of fallow](https://fallow.tools/docs/analysis/limitations.md): Known limitations of fallow: where it can miss a finding or report a false positive, and how to work around it for runtime patterns and framework edge cases. ## Configuration - [Configure fallow with .fallowrc.json or fallow.toml](https://fallow.tools/docs/configuration/overview.md): Configure fallow for a TypeScript or JavaScript project. Fallow runs with no config. Add .fallowrc.json or fallow.toml to set entry points, ignores, and rules. - [Set fallow rule severity to error, warn or off](https://fallow.tools/docs/configuration/rules.md): Fallow rule severity decides what fails the CI build. Set each issue type to error, warn, or off, and adopt fallow in CI one issue type at a time. - [Suppress fallow findings with inline comments](https://fallow.tools/docs/configuration/suppression.md): Suppress a fallow false positive with a fallow-ignore comment, a JSDoc tag such as @public or @internal, or @expected-unused. The rule stays on for other code. - [Configure fallow for a monorepo with workspaces](https://fallow.tools/docs/configuration/workspaces.md): Monorepo analysis with no workspace setup. Fallow detects npm, yarn, pnpm, and Deno workspaces, resolves cross-package imports, and supports per-package config. - [Configure architecture boundaries and zones](https://fallow.tools/docs/configuration/boundaries.md): Architecture boundaries for TypeScript and JavaScript. Fallow reports each import that crosses a layer. Start from a built-in preset or define your own zones. - [Fallow environment variables for CI and editors](https://fallow.tools/docs/configuration/environment.md): Fallow environment variables set defaults for a whole CI job, editor, or MCP server. Reference for FALLOW_FORMAT, FALLOW_QUIET, and the other variables. ## Integrations - [Fallow integrations: agents, editors, and CI](https://fallow.tools/docs/integrations/index.md): Get fallow findings in your coding agent, your editor, and CI. Connect fallow through MCP, VS Code, Neovim, GitHub Actions, and GitLab CI. - [MCP server for Claude Code, Cursor, and Windsurf](https://fallow.tools/docs/integrations/mcp.md): Connect fallow to Claude Code, Cursor, or Windsurf through MCP or the CLI. Your agent gets repeatable answers on unused code, duplication, and complexity. - [Fallow Node.js bindings: programmatic API](https://fallow.tools/docs/integrations/node-bindings.md): Call fallow from Node.js code with the NAPI bindings. Get typed results and the same JSON envelopes as the CLI, with no CLI subprocess and no JSON parsing. - [Fallow Agent Skills for Claude Code and Cursor](https://fallow.tools/docs/integrations/agent-skills.md): Install the fallow Agent Skills in Claude Code, Cursor, Windsurf, or Gemini CLI. Your coding agent then runs fallow with the right flags and reads the output. - [Fallow app for Codex: code health dashboard](https://fallow.tools/docs/integrations/codex-app.md): The fallow app for the Codex desktop app shows a code health dashboard, a Code Health tab per thread, a branch audit, a cleanup form, and a config editor. - [Claude Code hooks to block commits that fail fallow](https://fallow.tools/docs/integrations/claude-hooks.md): A Claude Code PreToolUse hook runs fallow audit before git commit or git push. When the audit fails, the hook blocks the command and sends the findings back. - [VS Code extension for unused code and duplication](https://fallow.tools/docs/integrations/vscode.md): The fallow VS Code extension shows unused code, duplication, complexity hotspots, and boundary violations as you edit. Fix them with one-click quick fixes. - [Fallow for Neovim: LSP diagnostics](https://fallow.tools/docs/integrations/neovim.md): Set up fallow in Neovim with the built-in LSP client. See unused code, duplication, circular dependencies, and complexity as you edit, with code actions. - [Fallow in GitHub Actions and GitLab CI](https://fallow.tools/docs/integrations/ci.md): Run fallow in GitHub Actions or GitLab CI on every pull request. Get SARIF upload, Code Quality reports, inline review comments, and baselines for changed code. - [Code health badge for your README](https://fallow.tools/docs/integrations/badges.md): Add a code health badge to your README. fallow shows the health score and letter grade of your project in a shields.io-compatible SVG badge. ## Explanations - [How fallow analysis works](https://fallow.tools/docs/explanations/index.md): How fallow analysis works: why fallow reports a finding, so you can trust it and act on it. Covers production data, linters, health, duplication, and dead code. - [Static analysis vs runtime coverage for dead code](https://fallow.tools/docs/explanations/static-vs-runtime.md): Static analysis vs production data: static analysis shows what is connected, production data shows what ran. Know which findings need production data. - [Fallow vs ESLint, Biome, and oxlint](https://fallow.tools/docs/explanations/fallow-vs-linters.md): Fallow vs ESLint, Biome, and oxlint: a linter checks one file at a time, and fallow checks the project graph. Find what a linter misses and run both in CI. - [Code complexity and hotspot metrics explained](https://fallow.tools/docs/explanations/health.md): Code complexity metrics explained: what each value in fallow health output means, how fallow computes it, and how to find hotspots and refactoring targets. - [Duplicate code explained: clone groups and families](https://fallow.tools/docs/explanations/duplication.md): Duplicate code reports explained: how to read fallow dupes clone groups and families, how clone detection works, and which duplicated code to extract first. - [Dead code findings explained: what to fix first](https://fallow.tools/docs/explanations/dead-code.md): Dead code findings in fallow explained: what each issue type means, which to fix first, and which are safe to keep, including class members and cycles. - [Fallow telemetry and privacy](https://fallow.tools/docs/explanations/telemetry.md): Fallow telemetry is opt-in and off by default. It sends no identifiers, and you can print the exact payload before you consent. Check what it sends. ## Frameworks - [React and Next.js static analysis with fallow](https://fallow.tools/docs/frameworks/react.md): React and Next.js static analysis that finds wrong client and server directives, colliding routes, dead server actions, and unused or drilled props. - [Built-in fallow plugins for Next.js, Vite and Jest](https://fallow.tools/docs/frameworks/built-in.md): Built-in fallow plugins detect Next.js, Vite, Jest, Tailwind, ESLint, and many other tools, so fallow knows the files and exports that each tool uses. - [Write a custom fallow plugin in JSON or TOML](https://fallow.tools/docs/frameworks/custom-plugins.md): A custom fallow plugin stops false positives from an internal framework or unknown tool. Declare entry points, config files, and used exports in JSON or TOML. ## Migration - [knip alternative: migrate from knip to fallow](https://fallow.tools/docs/migration/from-knip.md): Migrate from knip to fallow. One command converts your knip config to a fallow config. See what the command migrates and what to check after the move. - [jscpd alternative: migrate to fallow duplication](https://fallow.tools/docs/migration/from-jscpd.md): Migrate from jscpd to fallow. One command converts your jscpd config to fallow duplication settings for TypeScript and JavaScript. See how detection modes map. ## CLI reference - [fallow dead-code: find unused exports and dependencies](https://fallow.tools/docs/cli/dead-code.md): Find unused files, exports, dependencies, and types in TypeScript and JavaScript. fallow dead-code traces code from your entry points and reports the rest. - [fallow type-aware: check the TypeScript companion](https://fallow.tools/docs/cli/type-aware.md): Check that the optional fallow-type-aware companion is installed and compatible before you use --type-aware. The status command does not analyze the project. - [fallow dupes: find duplicate and copy-pasted code](https://fallow.tools/docs/cli/dupes.md): Find duplicate code in TypeScript and JavaScript projects. fallow dupes detects copy-pasted code blocks with suffix-array analysis and configurable thresholds. - [fallow similar-code: find semantically similar functions](https://fallow.tools/docs/cli/similar-code.md): Reference for fallow similar-code: flags, subcommands, and exit codes. Find functions that may do the same job with a pinned local model, then inspect and review them. - [fallow viz: visualize your codebase as an HTML map](https://fallow.tools/docs/cli/viz.md): Visualize dead code, duplication, boundary violations, and complexity in your codebase. fallow viz writes one HTML map with a treemap and an import graph. - [fallow health: find complex code and refactoring targets](https://fallow.tools/docs/cli/health.md): Find complex functions and files and the best places to refactor first. fallow health combines cyclomatic and cognitive complexity, git churn, and coverage. - [fallow license: activate a trial or license](https://fallow.tools/docs/cli/license.md): Activate a fallow trial or license to turn on continuous runtime coverage. fallow license also shows status, refreshes a license, or removes the local token. - [fallow cloud: log in to Fallow Cloud from the CLI](https://fallow.tools/docs/cli/cloud.md): Log in to Fallow Cloud from the CLI without copying an API key. fallow cloud login runs the device flow and stores a read-only key in the OS keychain. - [fallow telemetry: control opt-in telemetry](https://fallow.tools/docs/cli/telemetry.md): Control what fallow sends and see the exact payload first. fallow telemetry manages opt-in telemetry, off by default: status, enable, disable, or inspect. - [fallow coverage: find unused code with runtime coverage](https://fallow.tools/docs/cli/coverage.md): Runtime coverage shows which code runs in production and which code you can delete. fallow coverage analyzes it and uploads source maps and the inventory. - [fallow flags: find feature flags in your codebase](https://fallow.tools/docs/cli/flags.md): Find feature flags in TypeScript and JavaScript code to review and retire them. fallow flags detects environment variable gates, SDK calls, and config toggles. - [fallow security: find secret leaks and unsafe sinks](https://fallow.tools/docs/cli/security.md): Find security candidates in TypeScript and JavaScript: server secrets that reach client code, and untrusted values that reach dangerous sinks. Opt-in and local. - [Verify fallow security candidates with an agent](https://fallow.tools/docs/cli/security-agent-verification.md): Verify fallow security candidates with a coding agent and keep only the survivors that a verifier cannot dismiss. fallow itself makes no model calls. - [fallow audit: quality gate for pull requests](https://fallow.tools/docs/cli/audit.md): Quality gate for pull requests. fallow audit gives one pass, warn, or fail verdict for the changed files from dead code, complexity, and duplication checks. - [Mutation testing with fallow mutation](https://fallow.tools/docs/cli/mutation.md): Mutation testing for JavaScript and TypeScript. fallow mutation changes your code, runs Vitest, node:test, or bun test, and reports changes no test detects. - [fallow impact: a local report of fallow results](https://fallow.tools/docs/cli/impact.md): See what fallow has done in a project. fallow impact is a local-only report of current findings, the trend, commits stopped at the gate, and resolved findings. - [fallow inspect: all context for one file or export](https://fallow.tools/docs/cli/inspect.md): Get all context for one file or export before you edit it: trace, dead code, duplication, complexity, security, and optional Fallow Cloud production data. - [fallow trace: find callers and import paths](https://fallow.tools/docs/cli/trace.md): See what calls an exported symbol and what it calls before you change it, or how one module comes to import another. fallow trace uses the module graph. - [fallow trace-error: map a stack trace to your code](https://fallow.tools/docs/cli/trace-error.md): Map a runtime stack trace to the definitions in your code. fallow trace-error resolves each frame against the module graph, without reading source maps. - [fallow decision-surface: find the decisions to review](https://fallow.tools/docs/cli/decision-surface.md): Find the structural decisions in a code change that need a human judgment call. fallow decision-surface prints each one as a question with the expert to ask. - [fallow explain: what a finding means and how to fix it](https://fallow.tools/docs/cli/explain.md): Learn what a fallow finding means and how to fix it. fallow explain prints the rationale, an example, fix guidance, and a docs link for one issue type. - [fallow fix: remove unused exports and dependencies](https://fallow.tools/docs/cli/fix.md): Remove unused exports and dependencies automatically. fallow fix edits your TypeScript and JavaScript files in place, with a dry-run preview and JSON output. - [fallow watch: dead code analysis on every save](https://fallow.tools/docs/cli/watch.md): Get dead code results each time you save a file. fallow watch re-runs dead code analysis in your TypeScript and JavaScript project when files change. - [fallow init: create a fallow config file](https://fallow.tools/docs/cli/init.md): Create a fallow config file with editor autocomplete and validation. fallow init generates a .fallowrc.json or fallow.toml file with schema support. - [fallow agent: set up Claude Code, Codex and Cursor](https://fallow.tools/docs/cli/agent.md): Set up fallow for Claude Code, Codex, and Cursor with one command. It installs AGENTS.md, the skill, the MCP server, and a commit and push gate. - [fallow hooks: install Git and agent hooks](https://fallow.tools/docs/cli/hooks.md): Install, remove, and inspect the fallow-managed Git pre-commit hook and the Claude Code and Codex gate that runs fallow audit before git commit and git push. - [fallow recommend: get a proposed fallow config](https://fallow.tools/docs/cli/recommend.md): Get a proposed fallow config for your project and review it before you write it. fallow recommend is read-only and explains each decision behind the proposal. - [fallow doctor: check your project setup](https://fallow.tools/docs/cli/doctor.md): Check if fallow sees your project correctly before you trust its results. fallow doctor runs read-only checks on config, workspaces, plugins, and caches. - [fallow guard: architecture rules for a file before you edit](https://fallow.tools/docs/cli/guard.md): Check the architecture rules for a file before you edit it. fallow guard reports the boundary zone, allowed imports, forbidden calls, and rule-pack policies. - [fallow architecture: cycles, boundaries and shared state](https://fallow.tools/docs/cli/architecture.md): Find import cycles and boundary violations, or inspect an opt-in shared-state inventory in TypeScript and JavaScript projects. - [fallow rule-pack: create, list, and test rule packs](https://fallow.tools/docs/cli/rule-pack.md): Manage declarative fallow rule packs (policy as code). Create a pack from a template, list the configured rules, and test a pack against your project. - [fallow rule-pack-schema: print the rule pack JSON Schema](https://fallow.tools/docs/cli/rule-pack-schema.md): Print the JSON Schema of fallow rule pack files. Use it for editor autocomplete and validation of the policy rules in a rule pack. - [fallow plugin-check: debug a custom plugin](https://fallow.tools/docs/cli/plugin-check.md): See why a custom fallow plugin does not activate or seeds no entries. plugin-check is a read-only dry run that shows the matches of each manifestEntries rule. - [fallow plugin-schema: print the plugin JSON Schema](https://fallow.tools/docs/cli/plugin-schema.md): Print the JSON Schema of external fallow plugin files. Use it for editor autocomplete and validation while you write a fallow-plugin file. - [fallow migrate: convert knip, jscpd or stylelint config](https://fallow.tools/docs/cli/migrate.md): Migrate from knip, jscpd, or stylelint to fallow and keep your settings. fallow migrate converts your existing configuration to the fallow config format. - [fallow list: show files, entry points and plugins](https://fallow.tools/docs/cli/list.md): Debug your fallow setup. fallow list shows the discovered files, entry points, active plugins, boundary zones, workspaces, and the import weight of each entry. - [fallow workspaces: inspect monorepo workspace discovery](https://fallow.tools/docs/cli/workspaces.md): List the monorepo workspaces that fallow discovers, with diagnostics for malformed package.json files, unmatched globs, and missing tsconfig references. - [fallow config: print the resolved configuration](https://fallow.tools/docs/cli/config.md): Print the resolved fallow configuration and the file that fallow loaded, to find out why a setting is not applied. It works like eslint --print-config. - [fallow config-schema: print the config JSON Schema](https://fallow.tools/docs/cli/config-schema.md): Print the JSON Schema of the fallow config file. Use it for editor autocomplete and validation of .fallowrc.json, .fallowrc.jsonc, and fallow.toml. - [fallow schema: print the capability manifest](https://fallow.tools/docs/cli/schema.md): Print the full fallow capability manifest as one JSON document: commands, issue types, MCP tools, plugins, and environment variables, for agents and tooling. - [fallow suppressions: list every fallow-ignore comment](https://fallow.tools/docs/cli/suppressions.md): List every finding that your team chose to ignore, and why. fallow suppressions lists each fallow-ignore marker by file with its reason and a stale count. - [fallow baselines prune: remove stale baseline entries](https://fallow.tools/docs/cli/baselines.md): Remove stale entries from committed fallow baselines. One whole-project run prunes the dead-code, health, and duplication baselines and never adds an entry. - [fallow report: render saved results for CI](https://fallow.tools/docs/cli/report.md): Analyze once, then render every CI output from the saved JSON result. fallow report writes summaries, PR comments, annotations, and inline reviews. - [fallow ci: post PR and MR feedback from CI](https://fallow.tools/docs/cli/ci.md): Reference for fallow ci: post or update the sticky PR comment, post inline reviews, resolve fixed review threads, and post GitHub Check Runs from rendered fallow output. - [fallow ci-template: print or vendor the GitLab CI template](https://fallow.tools/docs/cli/ci-template.md): Print the fallow GitLab CI template, or vendor it with its helper scripts into your repository so pipelines run without a download from GitHub. - [Global CLI flags for every fallow command](https://fallow.tools/docs/cli/global-flags.md): Global CLI flags that work the same on every fallow command: project root, config, output format, scope, cache, workspaces, score, trend, and snapshot options. ## Fallow Cloud - [Fallow Cloud docs](https://docs.fallow.cloud/llms.txt): The paid production layer has its own docs and its own llms.txt on docs.fallow.cloud. ## Optional - [Changelog](https://fallow.tools/changelog): Releases of the fallow CLI. - [About](https://fallow.tools/about): Who makes Fallow and where the code is. - [Contact](https://fallow.tools/contact): Where to ask questions, report bugs and report security problems. - [Privacy policy](https://fallow.tools/privacy)