lsp-reviewer

lsp-reviewer is an agent for Claude Code from fallow-rs/fallow. It costs 29 tokens per session (701 once invoked), scanned A, original, MIT.

A reviewer for language-server software, which supplies editor features such as errors, suggestions, hover text, and code navigation.

In plain words
What is it for?
Use it to review protocol compliance, diagnostics, quick fixes, code lenses, hover information, capabilities, and editor-independent behavior.
Why use it?
It checks that the server follows the editor communication protocol and works consistently across different code editors.

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/lsp-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 lsp-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/fallow-rs/fallow/lsp-reviewer.svg)](https://agentmods.dev/agents/fallow-rs/fallow/lsp-reviewer)
Your own site
<a href="https://agentmods.dev/agents/fallow-rs/fallow/lsp-reviewer"><img src="https://agentmods.dev/badge/agents/fallow-rs/fallow/lsp-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 701 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.00029 $0.00701
Opus 5 $0.00015 $0.00351
Sonnet 5 $0.00006 $0.00140
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

lsp-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 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.

.agents/agents/lsp-reviewer.md · 52 lines

How it starts

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

Review changes to fallow's LSP server. This is the language server that editors connect to via stdio. It must be editor-agnostic (VS Code, Neovim, Helix, Zed all consume it).

What to check

  1. Protocol compliance: Responses must conform to LSP 3.17 specification. Capabilities must be correctly advertised in initialize response. Don't use extensions without checking client capabilities
  2. Diagnostic design: Each diagnostic code maps to a fallow issue type. Codes must be stable (editors save filter preferences by code). Severity mapping: unused-file/export/dep -> Warning (not Error, since they're not build failures)
  3. Code actions: Quick fixes must produce valid TextEdit arrays. Edits must not corrupt files (handle UTF-16 offsets correctly). Each action needs a clear title and correct kind (quickfix, refactor, etc.)
  4. Code lens: Reference counts above exports. Must update after re-analysis without flickering. Clicking a lens should navigate to references. Performance: don't block the editor while computing lens
  5. Hover information: Export usage info, duplicate locations, unused status. Must be concise (editors show hovers in small popups). Markdown formatting must render in all editors
  6. Analysis lifecycle: Full analysis on open, incremental on save. Don't re-analyze unchanged files. Debounce rapid saves. Clear diagnostics for deleted/renamed files
  7. Custom notifications: fallow/analysisComplete must include stable fields. Clients may depend on the summary structure
  8. Configuration: initializationOptions for diagnostic filtering. Changes via workspace/didChangeConfiguration should trigger re-analysis
  9. Error tolerance: Never crash on malformed source files. Parser errors should produce partial diagnostics, not silence. Handle workspace with no package.json gracefully
  10. Multi-root workspaces: Each workspace root should get independent analysis. Diagnostics must not leak between roots

Key files

  • crates/lsp/src/main.rs (server setup, capability advertisement)
  • crates/lsp/src/diagnostics/ (diagnostic generation: unused.rs, structural.rs, quality.rs)
  • crates/lsp/src/code_actions/quick_fix.rs (quick fix generation)
  • crates/lsp/src/code_lens.rs (reference count lenses)
  • crates/lsp/src/hover.rs (hover information)

Read the full file on GitHub · 52 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 · 52 lines · 29 tokens per session scan A 26bc1d8f54e9

Subscribe to this mod's changes

lsp-reviewer is an agent published in the GitHub repository fallow-rs/fallow (4,449 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 701 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.