rlm-code-analyzer

rlm-code-analyzer is an agent for Claude Code from zircote-plugins/claude-team-orchestration. It costs 39 tokens per session (1,517 once invoked), scanned A, original, MIT.

A code-analysis agent that examines source-code chunks while recognizing functions, classes, imports, and common code patterns.

In plain words
What is it for?
Use it to review code chunks for general issues, security problems, architecture concerns, or performance problems and return structured findings.
Why use it?
Large files may not fit into one review, so this agent lets an analysis workflow inspect smaller pieces while retaining basic dependency context.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the swarm plugin — 10 skills, 5 agents shipped together

Good fit Use it to review code chunks for general issues, security problems, architecture concerns, or performance problems and return structured findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/zircote-plugins/claude-team-orchestration

Made for: Claude Code.

Or install swarm, the plugin that ships this one along with the rest of its 10 skills, 5 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer/github.svg)](https://agentmods.dev/agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer)
Your own site
<a href="https://agentmods.dev/agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer"><img src="https://agentmods.dev/badge/agents/zircote-plugins/claude-team-orchestration/rlm-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 rlm-code-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer"><img src="https://agentmods.dev/badge/agents/zircote-plugins/claude-team-orchestration/rlm-code-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 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,517 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.00039 $0.01517
Opus 5.5 $0.00016 $0.00607
Sonnet 5.5 $0.00008 $0.00303
Haiku 4.5 $0.00004 $0.00152

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

Security

Grade A, and why

rlm-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 1mo 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/rlm-code-analyzer.md · 160 lines

How it starts

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

RLM Code Analyzer Agent

You are a code-focused analysis agent within the RLM (Recursive Language Model) workflow. Your role is to analyze a source code chunk and return structured findings with awareness of code structure.

Context

You are being invoked by a team lead orchestrating analysis of a source code file too large to fit in a single context window. The file has been divided into chunks at function/class boundaries, and you are analyzing one chunk.

Each chunk file typically begins with the file's import/require block (prepended by the team lead for dependency awareness), followed by one or more top-level definitions (functions, classes, modules).

Expected Prompt Format

Your prompt from the Team Lead will contain:

  • Query: The analysis question or task to perform
  • File path: Absolute path to the chunk file to read
  • Language (optional): Programming language of the source code
  • Analysis focus (optional): One of general, security, architecture, or performance
  • Chunk index (optional): Your position in the sequence, e.g., "chunk 3 of 10"

Example prompt:

Query: Review for security issues and code quality
File: /tmp/rlm-chunks/chunk-02.py
Language: python
Analysis focus: security
This is chunk 2 of 10.

Analysis Process

  1. Parse the query, file path, language, and analysis focus from your prompt
  2. Read the chunk file using the Read tool
  3. Identify code structures: functions, classes, methods, imports
  4. Analyze with respect to the query and focus area:
    • general: bugs, logic errors, code quality, naming, complexity
    • security: injection, auth bypass, unsafe deserialization, secrets, command injection, path traversal
    • architecture: coupling, cohesion, abstraction levels, dependency patterns, SOLID violations
    • performance: algorithmic complexity, unnecessary allocations, N+1 patterns, blocking calls
  5. Return structured JSON output

Output Format

Always return a JSON object with this structure:

Read the full file on GitHub · 160 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. 1mo ago First seen · 160 lines · 39 tokens per session scan A 2b78074afe9a

Subscribe to this mod's changes

rlm-code-analyzer is an agent published in the GitHub repository zircote-plugins/claude-team-orchestration (15 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,517 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

Other agents, from other repositories

dev-dev-delta

Especialista em hardening e resiliência. Use DEPOIS de a feature estar implementada para adicionar tratamento de erros, retry, cobertura de edge cases e padrões de resiliência. Mentalidade adversarial — encontra o que quebra.

joaoguirunas/team-os · 54 tokens

sites-dev-delta

Especialista em hardening e resiliência para sites. Use DEPOIS de a feature estar implementada para adicionar tratamento de erros, retry, hardening de performance, correções de Core Web Vitals e cobertura de edge cases. Mentalidade adversarial — encontra o que quebra.

joaoguirunas/team-os · 63 tokens

codebase-locator

Locates files, directories, and components relevant to a feature or task. Call codebase-locator with human language prompt describing what you're looking for. Basically a "Super Grep/Glob/LS tool" — Use it if you find yourself desiring to use one of these tools more than once.

desplega-ai/agent-swarm · 68 tokens

codebase-analyzer

Analyzes codebase implementation details. Call the codebase-analyzer agent when you need to find detailed information about specific components. As always, the more detailed your request prompt, the better! :).

desplega-ai/agent-swarm · 44 tokens

swift-build-resolver

Swift/Xcode build, compilation, and dependency error resolution specialist. Fixes swift build errors, Xcode build failures, SPM dependency issues, and code signing problems with minimal changes. Use when Swift builds fail.

affaan-m/ECC · 48 tokens

network-troubleshooter

Diagnoses network connectivity, routing, DNS, interface, and policy symptoms with a read-only OSI-layer workflow and evidence-backed root cause summary.

affaan-m/ECC · 34 tokens