[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114705":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":16,"compositeScore":17,"rankGlobal":8,"rankLanguage":8,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":8,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":13,"starSnapshotCount":13,"syncStatus":11,"lastSyncTime":27,"discoverSource":28},114705,"gardener","subsy\u002Fgardener","subsy",null,"JavaScript",65,2,52,0,4,6,12,50.63,"MIT License",false,"main",true,[],"2026-11-16 08:08:18","2026-11-23 12:58:28","# gardener\n\nWhen agents write most of your code, the codebase changes faster than anyone can read it.\nEvery PR can pass review and the whole can still get worse: files swell, fixes pile onto\ncode written last week, the test suite turns into a mirror of the implementation, and the\nloop your agents work in gets slower. You only notice once everything is harder.\n\n`gardener` measures that drift from git history alone. It tells you where the codebase\nstands, which parts keep needing repair, and whether a cleanup you shipped actually helped.\n\n```bash\nnpx repo-gardener history --weeks 26 --html garden.html\n```\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsubsy\u002Fgardener\u002Fmain\u002Fdocs\u002Fgarden-dark.png\">\n  \u003Cimg alt=\"The garden.html page: one small chart per measure over 26 weeks, each with its latest value and the change since the first week.\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsubsy\u002Fgardener\u002Fmain\u002Fdocs\u002Fgarden-light.png\">\n\u003C\u002Fpicture>\n\n_Example data, not a real repository: a team that starts using gardener in week 28. The steps are single cleanup PRs (splitting large files, deleting tests that only restated the code, scoping the pre-push checks). The slopes are habits: a ratchet on type escapes, a standing cleanup lane, a lint rule that bans a weed (timers) while its old copies get cleaned up, and corrections going into lint rules instead of AGENTS.md._\n\nThe name comes from [Lauren Tan (poteto)](https:\u002F\u002Fx.com\u002Fpoteto\u002Fstatus\u002F2090546476464451907):\nevery team needs a gardener, someone quietly watching the stream of PRs, noticing the\nsmells, and pulling the weeds (lint suppressions creeping like ivy) before slop takes over.\nTheo then made the case at length in \"[Coding isn't about code anymore](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=GtJKFhztgdM)\":\nwith agents writing the code, the engineer's job is keeping the garden healthy, which means\npulling weeds as they appear, fixing what made them grow, and putting stakes in that steer\nnew growth the right way. In \"[All Code Is Slop (Except Mine)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=O_zcc6Xl12g)\",\nLauren shows the loop that does it: every time you correct an agent, turn the correction into\na lint rule or a better API instead of another line in AGENTS.md, then clean up the copies\nthat already exist. You can't tend what you can't see, and gardener is the seeing part.\n\n## Contents\n\n- [Quick start](#quick-start)\n- [What to do with it](#what-to-do-with-it)\n- [Using it with your coding agent](#using-it-with-your-coding-agent)\n- [Why these measures](#why-these-measures)\n- [What it doesn't do](#what-it-doesnt-do)\n- [Adapting it to your codebase](#adapting-it-to-your-codebase)\n- [Commands](#commands)\n- [Measures, exactly](#measures-exactly)\n- [Configuration](#configuration)\n- [How it works](#how-it-works)\n- [Releasing](#releasing)\n\n## Quick start\n\nRun these at the root of any git repository. Nothing is installed in the repo and nothing\nis uploaded.\n\n```bash\nnpx repo-gardener snapshot                   # where the code stands today\nnpx repo-gardener hotspots --days 60         # what keeps breaking\nnpx repo-gardener history --weeks 12 --html garden.html   # how it got here\n```\n\nOpen `garden.html` in a browser: one small chart per measure, a green or red change since\nthe first week, and a table view. It follows your system's light or dark setting; `--theme dark`\nor `--theme light` fixes it.\n\nFor the rest of the picture, add the optional sources:\n\n- `--github` adds review load per merged PR, and how many PRs merged without a human\n  review. It needs the [GitHub CLI](https:\u002F\u002Fcli.github.com\u002F), signed in.\n- `--transcripts` adds how long your agents' `git push` takes (pre-push checks included),\n  how often it fails, and how much of their command time went to checking the work. It\n  reads Claude Code and Codex session logs on your machine.\n\nTo use the `gardener` command directly, install it with `npm i -g repo-gardener`. It needs\nNode 22.5+ and git 2.36+.\n\n## What to do with it\n\n### 1. Get a baseline before you change anything\n\n```bash\ngardener history --weeks 26 --github --transcripts --html garden.html\n```\n\nLook for lines that only go one way. Typical findings:\n\n- Source lines doubling while cleanup commits stay under 10% of the total.\n- More and more files over 800 lines, each one a place agents will keep re-reading and re-breaking.\n- Fixes making up half of all commits for weeks at a time.\n- Agent push time creeping from seconds to minutes.\n\nNone of these is a verdict on its own. Together they tell you whether the garden is growing\nor getting overgrown. Keep the HTML: it's the \"before\" for everything you do next.\n\n### 2. Pick what to clean, by evidence\n\n```bash\ngardener hotspots --days 60 --limit 20\n```\n\nHotspots ranks files by fix commits × √(lines). A file at the top keeps needing repair and is\nbig enough that each repair is expensive. That's where cleanup pays back fastest. Two\npatterns worth knowing:\n\n- **The god file:** thousands of lines, most of its commits are fixes, and a spec file even\n  bigger than it is. Split it by responsibility.\n- **The shared list:** a config or registry file that every feature edits by hand. Its fixes\n  are usually \"forgot to add X here too\". Generate it from one source instead.\n\n### 3. Ship the cleanup, then check whether it helped\n\n```bash\ngardener compare 1234 --days 14     # a merged PR number (needs gh), or a commit\n```\n\n`compare` shows the change in code state, then fixes and rework on the files the PR\ntouched, 14 days before against 14 days after. If the after window hasn't closed yet, it\nsays \"still measuring\". Run it again later.\n\nHere it is on [T3 Code](https:\u002F\u002Fgithub.com\u002Fpingdotgg\u002Ft3code)'s PR that deleted half its tests:\n\n```console\n$ gardener compare 22557 --days 14\n#22557 test: delete 11k low-signal tests so CI runs faster and flakes less: improved\n\nCode state\nMeasure                     Before   After    Change\nTest lines                  733,398  482,089  -251,309\nTest cases                  13,163   6,373    -6,790\nMocked modules              1,185    799      -386\n\nOutcomes on the touched files\nMeasure                            Before          After\nFix commits touching these files   1,056           1,046\nRewritten lines under 14 days old  32.8% of 7,121  19.8% of 9,826\n```\n\nHalf the test suite went, and fixes on those files didn't rise. That's the evidence the\ntests weren't catching much. The same repo's history then shows test cases climbing back\nfrom 6,563 to 8,781 within two weeks. A single cleanup doesn't stay done, which is why the\nnext step exists.\n\n### 4. Check in every week\n\n```bash\ngardener window --days 7 --github --transcripts\n```\n\nA one-screen summary of the last week: fix and cleanup share, rework, review rounds, push\ntime. Schedule it, or have an agent run it and act on it (see below). What you're watching\nfor is the weeds growing back.\n\n### 5. Fix the cause, then measure the fix\n\nWhen the same kind of fix keeps showing up, the cause is usually in the codebase: a\nmisleading example agents copy, a missing type, a list someone has to remember to update.\nFix that, then use `compare` on the fix. Whether the repairs stopped is the only proof that\ncounts.\n\n### 6. Ban a weed, then watch it shrink\n\nAgents copy whatever looks like the established pattern, so one workaround becomes fifty.\nWhen you catch one (a `useEffect` where a framework hook belongs, a `setTimeout` papering\nover a race, the renderer importing main-process code), add a lint rule so no new copies\nland, and tell gardener about it so you can watch the old copies go:\n\n```json\n{\n  \"weeds\": {\n    \"useEffect in product code\": { \"pattern\": \"\\\\buseEffect\\\\(\", \"except\": [\"src\u002Fframework\u002F**\"] },\n    \"timers\": \"\\\\b(?:setTimeout|requestAnimationFrame|requestIdleCallback)\\\\(\",\n    \"renderer imports main\": { \"pattern\": \"from ['\\\"][^'\\\"]*\u002Fmain\u002F\", \"in\": [\"src\u002Frenderer\u002F**\"] }\n  }\n}\n```\n\nEach weed gets its own chart in `history`, a row in `snapshot` with the files that hold the\nmost, and a line in `compare`. A weed without `in` is counted in source files, not tests.\n\nTwo charts tell you whether corrections are going into code or into prose: **lint rules\nturned on** should climb as you ban things, while **lines of agent instructions** stay flat.\nIf the instructions grow and the rules don't, each correction is becoming a paragraph agents\ncan talk themselves out of.\n\n## Using it with your coding agent\n\ngardener is built to be run by agents as much as by people. The output is plain text that\nreads well in a terminal, and `--json` gives agents something to parse. Some prompts that\nwork well with Claude Code or Codex:\n\n**Top 10 things to work on**\n\n> I want the ten pieces of cleanup work that would most improve this codebase, ranked.\n>\n> Gather evidence first, and don't change any code:\n> 1. `npx repo-gardener snapshot`, `npx repo-gardener hotspots --days 30 --limit 30` and\n>    `npx repo-gardener history --weeks 12 --github --transcripts`.\n> 2. For the ten hottest files, read the titles of their recent fix commits\n>    (`git log --since='60 days ago' --format='%s' -- \u003Cfile>`) and group them by what went wrong.\n> 3. Profile the tests: the largest spec files, the files with the most mocked modules, and\n>    the files where most assertions only check that a mock was called.\n>\n> Then rank ten pieces of work by how much repair work each would prevent. Group files that\n> break for the same reason into one item. For each give: the evidence (numbers and file\n> paths), what to do, how big it is, what could go wrong, and the exact `gardener compare` or\n> history measure that will show whether it worked. Include an item only if the evidence\n> supports it, and say what you looked for and didn't find. Don't recommend deleting a test\n> without saying what it fails to protect.\n\n**Weekly garden report**\n\n> Run `npx repo-gardener window --days 7 --github --transcripts` and\n> `npx repo-gardener hotspots --days 30 --limit 10`. Compare against last week's numbers in\n> `docs\u002Fgarden-log.md` if it exists. Tell me in five lines what got better, what got worse,\n> and the one file you'd clean next and why. Don't change any code.\n\n**Plan a cleanup from evidence**\n\n> Run `npx repo-gardener hotspots --days 60 --json`. Take the top file. Read it and its\n> recent fix commits (`git log --format='%h %s' -- \u003Cfile> | head -40`). Group the fixes by\n> what went wrong. Propose a split or a structural fix that would have prevented most of\n> them, as a plan with the new files and what moves where. Don't write code yet.\n\n**Prove a cleanup worked**\n\n> Run `npx repo-gardener compare \u003CPR number> --days 14`. If the result is \"still measuring\",\n> tell me when the after window closes and stop. Otherwise explain the result in plain words,\n> including what it can't tell us. It shows what moved on those files, not what caused it.\n\n**Find the stem of a recurring weed**\n\n> These PRs all fixed the same kind of bug: #… #… #…. For each, find what in the codebase\n> made the mistake easy: the example the author copied, the doc that misled them, the type\n> that allowed it. Propose one change that removes the cause for all of them, then the\n> `gardener compare` I should run after it ships.\n\n**Turn a correction into a check**\n\n> I keep correcting agents for \u003Cthe mistake>. Find every place in the codebase that does it\n> today (`git grep`), and what the right pattern is. Then: add a lint rule that bans new\n> copies, with an error message that says what to do instead; add the pattern to `weeds` in\n> `gardener.config.json`; and plan the cleanup of the existing copies, largest first. Don't\n> add a line to AGENTS.md for it.\n\n**Investigate a slow agent loop**\n\n> `npx repo-gardener history --weeks 8 --transcripts` shows agent push time rising. Find\n> which pre-push steps got slower and when, using git history of the hook and its scripts.\n> Propose the smallest change that brings a push back under a minute.\n\n**Rules to give your agent alongside**\n\nAdd something like this to your `AGENTS.md` or `CLAUDE.md`. Agents optimise whatever\nyou measure:\n\n```markdown\n## Garden health\n- Don't split a file just to get under the 800-line limit: a split has to follow\n  responsibilities, or the fixes just move to the new files.\n- Never delete a test only to improve a number; delete tests that mirror the\n  implementation or check things no code path can do.\n- Fix shares and rework are what count. If a cleanup doesn't reduce them on the files\n  it touched (`gardener compare`), say so; don't claim it helped.\n- Don't write a comment explaining why a workaround is fine. Fix the cause, or leave the\n  workaround uncommented so it shows up in review.\n```\n\n## Why these measures\n\nEach measure is here because it's cheap to compute from git, hard to fake for long, and\npoints at a cause you can fix. Each can also mislead you, and the table says how.\n\n| Measure | Why it's here | How it can mislead |\n|---|---|---|\n| Files over 800 lines | Big files are where agents lose the thread: they read part, change part, break the rest. Most hotspots are big files. | Generated or data files. Add them to `ignore`. |\n| Type escapes | Every `as any` or `@ts-expect-error` is a place the type system was switched off, usually to make an agent's code compile. A rising count in tests means mocks are being forced into shape. | It's a text match, so mentions in comments count too. Watch the trend, not the absolute number. |\n| Lint suppressions | Each one is a rule someone decided didn't apply. They creep in one PR at a time. | Some suppressions are legitimate. A sudden jump is the signal. |\n| Your weeds | The patterns you've banned. A lint rule stops new copies; this shows whether the old ones are going. | It's a text match, so it counts mentions in strings and comments too. |\n| Comments, and workaround comments | Agents write comments to justify a workaround (\"deliberately\", \"for now\", \"TODO\"), and the next agent copies the workaround with its excuse. Comments also go stale and can't be enforced. | Some comments earn their place. Watch the workaround count and the trend, not the density alone. |\n| Agent instructions and lint rules | Rules in prose need judgment and get argued away; a lint rule doesn't. Corrections should turn into rules, not paragraphs. | Rules are counted by text match in lint configs: a ban written as one `no-restricted-syntax` entry with ten selectors counts once. |\n| Kinds of tests | Property-based tests, end-to-end tests and formal specs check what the code is meant to do, not how it's written. Agents make them cheap to write. | Counts files, not how much they cover. |\n| Test weight | Test lines per source line, and mocked modules per 100 test cases. Mock-heavy suites restate the implementation and break on every refactor. | Some code genuinely needs mocks. Compare against your own history, not an ideal. |\n| SQL function size | Long stored procedures get rewritten in full by every migration that touches them, so each change is a big risky diff. | Only dollar-quoted bodies are measured. |\n| Fix share | The share of work spent repairing rather than building. Sustained high values mean the code is fighting back. | Depends on commit titles: it reads `fix:` prefixes and titles starting \"Fix …\". |\n| Cleanup share | Refactors plus any commit that removed more than it added. If this stays near zero while the code doubles, nobody is weeding. | A big feature removal counts as cleanup. Reverts don't. |\n| Revert share | Changes that had to be undone. It's the plainest sign that more output came with less care. Lauren's team ships 11,000 PRs a month at about 0.5%. | Only reads revert titles: git's `Revert \"…\"` and a `revert:` prefix. A fix that undoes a change by hand is a fix. |\n| Rework | Of the lines commits rewrote, the share written in the previous 14 days. High rework means code is being written, then immediately rewritten: churn without progress. | Early-stage features legitimately churn. Look at the fix-only variant. |\n| Commits after first review | How many rounds a PR goes through after review starts. Rising rounds mean reviewers keep finding the same kinds of problems. | Some teams push small fixups by habit. |\n| PRs merged without a human review | As checks catch more, less needs a person to read it. Read it next to revert share: rising with reverts flat is the goal; rising with reverts climbing is a warning. | Review bots and the author's own reviews don't count as human. A solo developer whose agents open PRs under their account will read near 100%. |\n| Agent push time | Agents feel slow feedback loops harder than people do, and wait on them more often. A slow pre-push or CI limits how much work you can run in parallel. | It includes the pre-push hook, so a hook that runs more checks on purpose shows up here too. |\n| Agent commands that check the work | Agents that run the tests, the type checker and the app itself before they say \"done\" need less review. Teams that trust their agents spend most of the agents' effort here. | Read from command text, so a check behind a script name it doesn't know (`.\u002Fci.sh`) isn't counted. Set `transcripts.verifyCommands`. |\n\n## What it doesn't do\n\nIt's deliberately small. Knowing the limits stops you from reading too much into it.\n\n- **It doesn't judge code quality.** No complexity scores, no \"maintainability index\", no\n  AI review. It counts things git can prove.\n- **It doesn't show cause.** `compare` shows what moved on the files a change touched. Other\n  work lands in the same weeks, so treat \"improved\" as evidence, not proof.\n- **It isn't a CI gate (yet).** There's no ratchet that fails a build when a number goes up,\n  and no PR comment. You can build either from `--json`.\n- **It doesn't run anything.** No tests, no builds, no coverage. It reads git objects and,\n  when asked, GitHub and local transcripts.\n- **It only knows some languages well.** The defaults are tuned for TypeScript and\n  JavaScript. Other languages work for size, churn, hotspots and rework; type-escape and\n  test patterns need configuring (see below).\n- **It only follows the first-parent history of one branch**, the way squash-merge teams\n  work. Merge-commit-heavy histories still work but read coarser.\n- **Review data is GitHub only, and transcripts are Claude Code and Codex only.** Without\n  them, those measures read `Unmeasured`.\n- **It doesn't fix anything.** That's your agents' job. gardener tells them where to look\n  and whether it worked.\n\nA measure that has no data for a week, or too little to mean anything (fewer than 5 commits,\nfewer than 100 rewritten lines), reads `Unmeasured`. It never reads zero.\n\n## Adapting it to your codebase\n\nTreat gardener as a starting point. The measures that matter most to your codebase are\nprobably ones only you know: Theo's team watched the bytes their wire protocol sent per\nthread. Ways to fit it to your context, from least to most effort:\n\n**1. Tell it what not to count.** Generated code, vendored data and lockfiles distort\neverything. Files headed `@generated`, and anything under `generated\u002F`, `_generated\u002F` or\n`*.gen.*`, are skipped already.\n\n```json\n{\n  \"ignore\": [\"packages\u002Ffixtures-data\u002F**\", \"src\u002Fproto\u002F**\"],\n  \"churnIgnore\": [\"public\u002Flocales\u002F**\", \"CHANGELOG.md\"]\n}\n```\n\n`churnIgnore` is for files every change touches (translations, registries). They still\ncount for size, but they'd drown out the hotspot list.\n\n**2. Teach it your language.** For a Python codebase:\n\n```json\n{\n  \"code\": [\"**\u002F*.py\"],\n  \"tests\": [\"**\u002Ftest_*.py\", \"**\u002F*_test.py\", \"tests\u002F**\"],\n  \"patterns\": {\n    \"typeEscapes\": { \"type: ignore\": \"#\\\\s*type:\\\\s*ignore\", \"Any\": \"\\\\bAny\\\\b\" },\n    \"suppressions\": { \"noqa\": \"#\\\\s*noqa\", \"pylint\": \"pylint:\\\\s*disable\" },\n    \"testCases\": \"^\\\\s*def test_\",\n    \"mockModules\": \"\\\\b(?:mock\\\\.patch|patch)\\\\(\",\n    \"callAssertions\": \"\\\\.assert_called\\\\w*\\\\(\",\n    \"assertions\": \"\\\\bassert\\\\b\",\n    \"comment\": \"^\\\\s*#|\\\\s#\\\\s\",\n    \"propertyTests\": \"@given\\\\(|from hypothesis\",\n    \"e2eTests\": \"from playwright\"\n  },\n  \"lintConfigs\": [\"**\u002Fruff.toml\", \"**\u002F.flake8\"]\n}\n```\n\n**3. Move the limits.** `largeFileLines` (800), `reworkDays` (14), `sharedFileShare` (5%),\n`minCommits` and `minReworkLines` are all configurable. Choose them for your codebase,\nthen leave them alone so the history stays comparable.\n\n**4. Add your own stakes.** Patterns you want gone go in `weeds` (see\n[step 6](#6-ban-a-weed-then-watch-it-shrink)). gardener doesn't run other custom metrics yet.\nUntil it does, keep the number you care about (bundle size, query count, wire bytes) in a\nsmall script that prints it, and have your agent run both. If you build something general,\nopen a PR.\n\n## Commands\n\n| Command | What it answers | Useful flags |\n|---|---|---|\n| `snapshot [rev]` | What state is the code in at this commit? Largest files, most-redefined SQL functions. | any commit, tag or branch |\n| `window` | How did the last N days go? | `--days 7`, `--github`, `--transcripts` |\n| `hotspots` | Which files keep needing repair? | `--days 60`, `--limit 20` |\n| `compare \u003Cpr or commit>` | Did this change help the files it touched? | `--days 14`, `--markdown` for a PR comment |\n| `history` | How has everything moved, week by week? | `--weeks 26`, `--html \u003Cfile>`, `--theme dark`, `--github`, `--transcripts` |\n\nEvery command takes `--json`, `--branch \u003Cref>`, `--config \u003Cfile>` and `--no-cache`.\n\n## Measures, exactly\n\n**Code state, per commit**\n\n| Measure | Definition |\n|---|---|\n| Source and test lines | Code files matching `code`, split by `tests`. Ignored and generated files are left out. |\n| Files over the size limit | Source files longer than `largeFileLines`, and the lines they hold. |\n| Type escapes | Matches of each `patterns.typeEscapes` regex, in source and tests separately. |\n| Lint suppressions | Matches of each `patterns.suppressions` regex. |\n| Weeds | Matches of each `weeds` pattern, in files matching its `in` globs (default: source files) and not its `except` globs. |\n| Comments | Source lines where `patterns.comment` matches (whole-line and trailing comments), and every line of a `\u002F* … *\u002F` block. Workaround comments are those whose comment text matches `patterns.workaroundComments`, case-insensitively. |\n| Agent instructions | Files matching `agentInstructions` (AGENTS.md, CLAUDE.md, Cursor rules, skills and more) and their lines. |\n| Lint rules | Matches of `patterns.enabledRule` (a rule set to `error` or `warn`) in files matching `lintConfigs`, and the number of files matching `lintRuleFiles`. |\n| Test weight | Matches of `testCases`, `mockModules`, `callAssertions` and `assertions` in test files. |\n| Kinds of tests | Test files matching `patterns.propertyTests` or `patterns.e2eTests`, and files matching `formalSpecs`. |\n| SQL | Migration count, and each function at its latest definition (replaying migrations in order, with drops applied, overloads kept apart), counted when longer than `largeFunctionLines`. |\n\n**Outcomes, per window**\n\n| Measure | Definition |\n|---|---|\n| Fix share | First-parent commits typed `fix`, by conventional prefix or leading verb. |\n| Cleanup share | `refactor` commits plus other commits, reverts aside, that deleted more than they added. |\n| Revert share | Commits titled `Revert \"…\"` or `revert: …`. Time to revert is from the reverted commit, found on the branch by its title (with or without a squash merge's ` (#123)`), to the revert. |\n| Rework | Lines rewritten in existing files whose `git blame --since` origin is within `reworkDays`, over an even sample of up to `reworkSample` commits. |\n| Commits after first review | Per merged PR, commits after its first review, from its last 40 commits. PRs whose 40 all follow the review are left out. |\n| Merged without a human review | Merged PRs with no review from anyone other than the author and bots (GitHub Apps, or logins ending `[bot]`). Only a PR's first 50 reviews are fetched; a PR with more, none of them from a person, is left out. |\n| Agent push time | Foreground `git push` calls from Claude Code transcripts and Codex sessions in this repository, deduplicated across resumed sessions. |\n| Agent commands that check the work | Of the shell commands and MCP tool calls agents ran, the share (by count and by time) where a step of the command matches `transcripts.verifyCommands` or the tool's name matches `transcripts.verifyTools`. Background and detached commands are left out. |\n\n**Compare** puts touched files that `sharedFileShare` of all commits also change to one\nside and lists them. A local branch that hasn't been fetched since the after window closed\nreads `unmeasured` until you fetch it.\n\n## Configuration\n\nOptional: `gardener.config.json` at the repository root. Lists extend the defaults in\n[`src\u002Fconfig.mjs`](src\u002Fconfig.mjs); everything else replaces them.\n\n| Key | Meaning |\n|---|---|\n| `branch` | History to measure. Default: the remote's default branch, else `HEAD`. |\n| `code`, `tests`, `ignore` | Globs for code, which of it is tests, and what is never measured. |\n| `churnIgnore` | Measured for size, left out of churn, hotspots and rework. |\n| `largeFileLines`, `reworkDays`, `reworkSample`, `sharedFileShare`, `minCommits`, `minReworkLines` | The limits described above. |\n| `patterns` | Regexes for type escapes, suppressions, test weight, comments, enabled lint rules and kinds of tests. |\n| `weeds` | Your banned patterns: name to regex, or to `{ \"pattern\", \"in\", \"except\" }`. |\n| `agentInstructions`, `lintConfigs`, `lintRuleFiles`, `formalSpecs` | Globs for instruction files, lint configs, custom lint rules and formal specs. |\n| `sql` | `schemas` and `migrations` globs, and `largeFunctionLines`. |\n| `transcripts` | `match`: text identifying this repository in agent transcript paths (default: its directory name); `claudeProjectsDir`, `codexSessionsDir`; `verifyCommands` and `verifyTools`, the regexes for commands and tools that check the work. |\n\n## How it works\n\n- **History straight from git.** Every number comes from git's object store (`ls-tree`,\n  `cat-file`, `log`, `blame`), so any past commit can be measured without a checkout, and\n  the same commit always gives the same answer.\n- **Cached per commit.** Results are cached in the repository's git directory\n  (`gardener-cache\u002F`) and shared across worktrees. A 26-week history of a large repository\n  takes a few minutes the first time and seconds after that.\n- **Private by default.** Nothing leaves your machine except the GitHub API calls you ask\n  for with `--github`. Transcripts are read locally and only timings are kept.\n\n## Releasing\n\nReleases are automatic. Every merge to `main` updates a release PR that bumps the version\nfrom the conventional commit titles (`fix:` a patch, `feat:` a minor) and writes the\nchangelog. Merging that PR tags the version, creates the GitHub release and publishes to npm\nfrom GitHub Actions, with provenance. If a publish fails, re-run the failed job, or run the\n`release` workflow from the Actions tab with the release's tag (such as `v0.2.0`). A version\nalready on npm is skipped. See [`.github\u002Fworkflows\u002Frelease.yml`](.github\u002Fworkflows\u002Frelease.yml).\n\n## Licence\n\nMIT\n","gardener 是一个面向 AI 编程时代的代码健康度监测工具，通过静态分析 Git 历史数据（无需运行代码或修改仓库），量化评估代码库的退化趋势与维护负担。它提供多维度指标（如文件膨胀率、测试冗余度、lint 抑制增长、类型逃逸频次等），生成时序图表，帮助团队识别需优先清理的模块及验证整改效果。核心特点是轻量无侵入（纯 CLI、零依赖安装、不上传代码）、聚焦可操作性，并专为 LLM 协同开发场景设计，适用于工程效能团队、AI 编程实践者及技术负责人持续监控代码演进质量。","2026-11-24 04:49:27","CREATED_QUERY"]