Skip to content
Yardmaster Guide

Check the health of a project's code

Codebase Stats sizes up a project folder: its files, code health, git history, packages, test coverage and what its sessions cost.

Intermediate3 minutes

Codebase Stats looks through a project's folder and shows how big it is, how healthy the code looks, how active it is in git, which packages it depends on, how well it is tested and what its sessions have cost. It reads your files on this computer and does not use AI.

Open Codebase Stats#

  1. In the sidebar, open the menu on a project.

  2. Click View Codebase Stats.

  3. Pick a tab: Overview, Files, Health, Git, Deps, Costs or Coverage.

The menu item only appears for projects with a folder on your computer, not for built-in pages such as Gmail or Stats. The header says when the project was last analyzed; click Refresh to analyze it again now. Results are reused for up to 24 hours.

What each tab shows#

  • Overview: the headline numbers: source and test lines, Commits (30d), Total Spend, Tests, TODO / FIXME, Dependencies and Vulnerabilities. A warning appears at the top if possible secrets were found.

  • Files: source, test and other files, with lines and size per file type.

  • Health: TODO and FIXME notes, loosely typed code (any), possible secrets and Large Files (>300 lines).

  • Git: the last 30 days of commits, Churn Hotspots (90 Days), Knowledge Silos (files only one person changed in 90 days) and Stale Files (untouched for 6 months or more).

  • Deps: how many packages the project uses, which are outdated, and known vulnerabilities by severity.

  • Costs: what this project's sessions cost, with turns, time and tokens. The dollars mean the same as in Stats: API prices, not necessarily what you paid.

  • Coverage: how much of the code your tests run, and which files have no tests.

Fix what it finds#

  • Fix in Session on a finding starts a new session in the project, with a prompt asking the agent to fix it. That session uses your Claude plan. Copy Prompt copies the same prompt instead.

  • Ignore (the X on a finding) hides it from future reports. The "ignored (show)" link brings hidden ones back, and Restore puts one back for good.

Measure test coverage#

  1. Open the Coverage tab.

  2. Click Run Coverage. Yardmaster runs the project's tests and shows progress as it goes.

It works with projects tested by Vitest, Jest, pytest or Cargo. If a Vitest project lacks the coverage add-on, it offers Install & Run Coverage.

Analysis in the background#

To open instantly, Yardmaster analyzes your projects in the background, one at a time, only after their files change, and it holds back when your computer is busy. It skips the package check, which needs the internet. To stop it, turn this off in Settings > Diagnostics:

Pre-compute codebase stats in the backgroundSettings, Diagnostics · Default: OnWhen on, Yardmaster quietly analyzes and caches each project’s codebase stats (size, languages, git activity, code health) in the background, so the "Codebase Stats" view opens instantly instead of computing on the spot. It is heavily throttled, one project at a time, only what changed, and it backs off when your computer is busy, so it never slows things down even with many projects. (Dependency security scans still run only when you open a project and refresh.)Open in YardmasterOpens Yardmaster. Don't have it? Download

Check packages for known problems (Preview)#

Dependency Security ScanSettings, Lab · Default: OffIn-development: warns you when a project depends on a vulnerable or malicious package. Hidden until shipped.Open in YardmasterOpens Yardmaster. Don't have it? Download

The first scan downloads a security database for the kinds of packages your project uses (about 200 MB for JavaScript packages). Scan now checks again; Mute hides a finding you have looked at.

Did this help?