json-output-reviewer

json-output-reviewer is an agent for Claude Code from fallow-rs/fallow. It costs 21 tokens per session (1,465 once invoked), scanned A, original, MIT.

A reviewer for the JSON format that software tools use to exchange structured data.

In plain words
What is it for?
Use it to review JSON schemas, versioning, action lists, grouped output, error responses, metadata, and deterministic results.
Why use it?
It helps prevent breaking changes, inconsistent fields, unclear null values, and output that machines cannot reliably read.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; installed under .agents/ (shared by several agents).

About the project

Fallow is a command-line static-analysis tool that builds a dependency graph of TypeScript and JavaScript code to identify unused code, duplication, circular dependencies, complexity hotspots, boundary violations, and styling drift. It is for developers reviewing codebases and verifying changes, with catalogue entries that add agent, editor, and workflow integrations.

fallow-rs/fallow · 4,449 stars · on GitHub · docs.fallow.tools

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 agents/fallow-rs/fallow/json-output-reviewer
Clone the repo
git clone --depth 1 https://github.com/fallow-rs/fallow

Made for: Claude Code.

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 json-output-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/fallow-rs/fallow/json-output-reviewer.svg)](https://agentmods.dev/agents/fallow-rs/fallow/json-output-reviewer)
Your own site
<a href="https://agentmods.dev/agents/fallow-rs/fallow/json-output-reviewer"><img src="https://agentmods.dev/badge/agents/fallow-rs/fallow/json-output-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,465 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.00021 $0.01465
Opus 5 $0.00010 $0.00732
Sonnet 5 $0.00004 $0.00293
Haiku 4.5 $0.00002 $0.00146

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

Security

Grade A, and why

json-output-reviewer 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 2d 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.

.agents/agents/json-output-reviewer.md · 85 lines

How it starts

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

Review changes to fallow's JSON output format. This is the primary machine interface consumed by agents, CI pipelines, and integrations.

What to check

  1. Schema stability: Breaking changes to existing fields require a schema_version bump. Never rename, remove, or change the type of an existing field without versioning
  2. Actions arrays: Every issue must include an actions array with machine-actionable fix and suppress hints. Check auto_fixable is set correctly
  3. Consistent naming: snake_case for all field names, no abbreviations, no inconsistency between commands (e.g., unused_exports not unusedExports)
  4. Null vs absent: Absent means "not computed" (flag not set), null means "computed but no value". Never mix these semantics
  5. Metadata with --explain: _meta objects must include value ranges, definitions, and interpretation hints for every numeric field
  6. Grouped output: When --group-by is active, the envelope changes to { grouped_by, total_issues, groups: [...] }. Verify both grouped and ungrouped paths
  7. Error output: Exit code 2 errors must emit {"error": true, "message": "...", "exit_code": 2} on stdout, not stderr
  8. Determinism: Same input must produce byte-identical JSON output. No random ordering, no timestamps unless explicitly requested

Surface-specific checks

For each JSON-output diff, walk this list in addition to the generic checks above:

  • Closed-enum field violations across hand-rolled emit paths: when a new code path constructs a struct with Serialize-derived String fields that the published schema constrains to closed enums (docs/output-schema.json enum: [...]), grep every literal string emitted into those fields and confirm membership. Concrete recipe: for each new <StructWithSchema> { field: "...".to_owned(), } in the diff, run grep -nE '"<field>"' docs/output-schema.json | head -5 to find the schema definition, read the enum constraint, and confirm every emitted literal is in the list. Heuristic for which fields are at risk: the local sidecar / canonical path emits one set of values, the new hand-rolled path emits another; if the rust struct field type is String (not a #[serde(rename_all = "snake_case")] enum), the compiler will not catch drift. Pattern target list for runtime coverage: evidence.static_status (["used","unused"]), evidence.test_coverage (["covered","not_covered"]), evidence.v8_tracking (["tracked","untracked"]), verdict (already enum-typed, safe). Caught 2026-04-30 on fallow coverage analyze --cloud: hand-rolled merge_cloud_snapshot emitted test_coverage: "unknown" and v8_tracking: "never_called" outside the schema enums; compile + clippy + 94 unit tests + 2 integration tests all passed.
  • Plugin-count drift sweep across non-companion surfaces: when the change bumps the plugin count, beyond the companion-repo flag-gate sweep AND the existing README.md / detection.md updates, ALSO grep these additional in-repo and internal locations for stale counts:
    /usr/bin/grep -nE "\b[0-9]{2,3}\+? (built-in |framework )?plugins?\b" \
      .claude/rules/plugins.md \
      .claude/rules/core-crate.md \
      npm/fallow/package.json \
      npm/fallow/README.md
    
    Positioning and marketing copy live outside this repository and are swept separately. Each hit must either be the new count or have an explicit reason to lag (e.g., historical tables). For npm/fallow/skills/**, the existing project memory project_npm_skills_vendored_drift.md is authoritative; those refresh at release time only and do NOT need a manual bump. The .claude/rules/*.md files specifically are easy to forget because they live OUTSIDE the user-facing docs surface but feed every Claude session's system context, so a stale count there silently misinforms future implement passes. Principle: the hardcoded-count check covers WHAT to compare against (the registry), not WHERE all the ascending surfaces live. Each surface that ever cites the count must be enumerated explicitly so the next bump catches all of them. Caught 2026-05-04 on the tap+tsd plugin addition: README + detection.md + companion repos got bumped, but .claude/rules/plugins.md, .claude/rules/core-crate.md, docs/positioning.md, npm/fallow/package.json, and npm/fallow/README.md all silently retained 89/90/91.

Read the full file on GitHub · 85 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. 2d ago Changed ad64901af8f7
  2. 6d ago First seen · 85 lines · 21 tokens per session scan A 81e31b5594a2

Subscribe to this mod's changes

json-output-reviewer is an agent published in the GitHub repository fallow-rs/fallow (4,449 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 1,465 once invoked, about $0.0001 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.