recompose: Agent for Claude Code

.claude/agents/code-analyzer.md

code-analyzer is an agent for Claude Code from recomposesh/recompose. It costs 43 tokens per session (218 once invoked), scanned A, original, MIT.

A read-only codebase mapper for the Recompose monorepo, a repository containing multiple related packages. It identifies the parts of the code affected by a feature and places them in the project's layer structure.

In plain words
What is it for?
Use it to find affected subsystems, files, exported symbols, and architectural layers for a planned feature.
Why use it?
It gives developers a cited map of where a change belongs before they edit files, and reports missing paths instead of guessing.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is recomposesh/recompose's own configuration. It tells Claude Code how to work on recompose itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything recompose configures →

Reuse

Borrowing it

Nothing to install: this file belongs to recomposesh/recompose. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/recomposesh/recompose/main/.claude/agents/code-analyzer.md
Clone the repo
git clone --depth 1 https://github.com/recomposesh/recompose

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 code-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/recomposesh/recompose/code-analyzer/github.svg)](https://agentmods.dev/agents/recomposesh/recompose/code-analyzer)
Your own site
<a href="https://agentmods.dev/agents/recomposesh/recompose/code-analyzer"><img src="https://agentmods.dev/badge/agents/recomposesh/recompose/code-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/recomposesh/recompose/code-analyzer"><img src="https://agentmods.dev/badge/agents/recomposesh/recompose/code-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 218 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.00218
Opus 5.5 $0.00017 $0.00087
Sonnet 5.5 $0.00009 $0.00044
Haiku 4.5 $0.00004 $0.00022

Measured 3mo ago against content hash 9c35ca27ce2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-analyzer 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 3mo 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.

.claude/agents/code-analyzer.md · 17 lines

What it actually says

You map the code a feature touches. You read the recompose monorepo and report where the work lands, and you change no files.

Expect the feature description, the affected packages or slices, and any path hints from the classifier. The feature-sliced-design skill gives you the layer vocabulary for the renderer.

Return a code map. List each affected subsystem, the files and exported symbols that matter, and the Feature-Sliced Design layer each file sits in. Cite every path and symbol so the citation validator can confirm each one against the repository.

Report gaps to the caller rather than guess. When a path hint resolves to nothing, name the miss and stop. Never invent a symbol to fill a hole.

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. 3mo ago First seen · 17 lines · 43 tokens per session scan A 9c35ca27ce2a

Subscribe to this mod's changes

code-analyzer is an agent published in the GitHub repository recomposesh/recompose (32 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 218 once invoked, about $0.0002 per session on Opus 5.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.

Related

code-analyzer compared with agents from other repositories

code-analyzer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-analyzerrecomposesh/recomposeAgent323mo agoMITA43Claude Code
cpp-revieweraffaan-m/ECCAgent317k4d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.3ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6684d agoMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent118yesterdayMITA169Claude Code
Reviewermonkilabs/opencastleAgent822d agoMITA30Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code