fallow

fallow is a skill for Claude Code, Codex from gotgenes/pi-anthropic-auth. It costs 38 tokens per session (1,095 once invoked), scanned A, original, MIT.

A codebase analysis workflow using Fallow, a TypeScript and JavaScript tool that finds unused code, repeated code, complex areas, and possible refactoring targets. Refactoring means improving the internal structure of code without changing what it does.

In plain words
What is it for?
Use it to audit changed files, find dead files or exports, detect unused dependencies and duplicated code, measure complexity, and identify refactoring targets.
Why use it?
It helps locate maintenance problems that are difficult to spot by reading changed files alone. The documented commands also explain how to interpret normal findings separately from real tool errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gotgenes/pi-anthropic-auth/fallow
Any agent
npx skills add gotgenes/pi-anthropic-auth --skill fallow
Clone the repo
git clone --depth 1 https://github.com/gotgenes/pi-anthropic-auth

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fallow

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/fallow.svg)](https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/fallow)
Your own site
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/fallow"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/fallow.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01095
Opus 5 $0.00019 $0.00548
Sonnet 5 $0.00008 $0.00219
Haiku 4.5 $0.00004 $0.00110

Measured 6d ago against content hash 0dd4a60a147e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

fallow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.pi/skills/fallow/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fallow

Fallow is a static analysis tool for TypeScript/JavaScript installed as a devDependency. It finds unused code, duplication, complexity hotspots, and refactoring targets. Run it via pnpm fallow scripts — never npx.

Quick reference

pnpm fallow                # full analysis: dead code + dupes + health
pnpm fallow:audit          # changed-file audit (PR gate)
pnpm fallow:health         # complexity, hotspots, refactoring targets
pnpm fallow:dead-code      # unused files, exports, types, deps
pnpm fallow:dupes          # duplicated code blocks

JSON output for programmatic use

Always invoke via pnpm --silent fallow … --format json --quiet 2>/dev/null and append || true. The --silent is load-bearing: fallow exits 1 when issues are found (normal), and without --silent pnpm appends [ELIFECYCLE] Command failed with exit code 1. to stdout after the JSON — json.load then fails with "Extra data", and 2>/dev/null does not strip it. Only exit code 2 is a real error.

pnpm --silent fallow dead-code --format json --quiet 2>/dev/null || true
pnpm --silent fallow health --score --targets --format json --quiet 2>/dev/null || true

Useful flags

Flag Purpose
--unused-exports Filter to only unused exports
--unused-files Filter to only unused files
--changed-since main Only files changed since a ref
--score Show health score (0–100)
--hotspots Riskiest files by churn × complexity
--targets Ranked refactoring recommendations
--mode semantic Duplication: catch renamed-variable clones

Configuration

Config lives at .fallowrc.json in the repo root. This is a single package, so the config declares one entry point manually — the Pi extension entry ["src/index.ts"] — since fallow does not know that convention. Rules use "error" (fail CI), "warn" (report only), or "off" (skip).

Suppressing findings

// fallow-ignore-next-line unused-export
export const keepThis = 1;

// fallow-ignore-next-line unused-type
export type KeepThisType = string;

// fallow-ignore-file

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 93 lines · 38 tokens per session scan A 0dd4a60a147e

Subscribe to this mod's changes

fallow is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (232 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 1,095 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.