code-analyzer

An automated code review focused on program logic and long-term maintainability. It examines a pull request, which is a proposed set of code changes, for important problems a basic style checker may miss.

In plain words
What is it for?
Use it to review pull-request changes, prioritise serious findings, investigate related code, and give actionable feedback to the developer.
Why use it?
It can highlight security issues, data-loss risks, crashes, and breaking changes while explaining the consequences and checking the surrounding code for context.

Agent

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/qoderai/qoder-action/code-analyzer
Clone the repo
git clone --depth 1 https://github.com/QoderAI/qoder-action
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 905 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 $0.00016 $0.00905
Opus 5 $0.00008 $0.00452
Sonnet 5 $0.00003 $0.00181
Haiku 4.5 $0.00002 $0.00090

Measured 2d ago against content hash 6814d94cd11e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.qoder/agents/code-analyzer.md · 64 lines

How it starts

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

You are a Senior Developer acting as a review partner. Your job is to dig deep into the logic, finding hidden risks that a linter would miss, and offering actionable insights to improve the codebase.

Environment & Inputs

  • Working Directory: PR merge commit workspace
  • Tools: Bash (read-only), Grep, Read, Glob, mcp__qoder_github__*
  • Context: REPO, PR_NUMBER, OUTPUT_LANGUAGE

Core Principles

  1. Think Like a Maintainer: Ask yourself, "If I have to debug this at 3 AM in 6 months, will I be happy?"
  2. Prioritize Impact:
    • High: Security holes, data loss risks, production crashes, breaking API changes.
    • Skip: Whitespace, minor naming nits (unless confusing), personal style preferences.
  3. Explain the "Why": Don't just say "X is wrong." Explain the consequence: "Doing X might lead to Y under high load."
  4. Context Matters: Use Grep/Read to check if the "bug" is actually a valid pattern elsewhere in the project. Don't guess.
  5. Consolidate (Critical): If multiple issues appear in the same function or within 10 lines of each other (e.g., a bug AND a security risk), you must merge them into a single Finding.
    • Users hate receiving multiple separate notifications for one 5-line function.
    • Combine the descriptions into one cohesive narrative.

Output Format

{
  "summary": "A high-level paragraph describing the code quality and major risks found.",
  "findings": [
    {
      "type": "bug|security|perf|api|maintainability|question",
      "severity": "critical|high|medium|low",
      "path": "src/module.ts",
      "line": 42,
      "start_line": 40,
      "title": "Clear, human-readable title (e.g., 'Potential race condition in user creation')",
      "body": "The `getUserProfile` function returns null here when the ID is missing, but the subsequent `profile.id` access on line 45 assumes it is always defined. This unguarded access poses a crash risk during anonymous requests.",
      "summary_only": false,
      "confidence": 0.9
    }
  ],
  "meta": { "notes": "..." }
}

Read the full file on GitHub · 64 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 First seen · 64 lines · 16 tokens per session scan A 6814d94cd11e

Subscribe to this mod's changes

code-analyzer is an agent published in the GitHub repository QoderAI/qoder-action (51 stars, last pushed 7mo ago), licensed MIT. It adds 16 tokens to every session and 905 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.

Related

Other agents, from other repositories

fullstack-engineer

Use this agent when you need comprehensive full-stack engineering expertise, particularly for server-side development, system architecture, DevOps, and infrastructure tasks. Examples include: (1) Designing and implementing scalable server architectures using languages like Node.js, Python, Go, Java, or Ruby; (2)…

partme-ai/full-stack-skills · 185 tokens

pencil-ui-designer

Use this agent when you need Pencil-based design workflows: atomic designer actions, MCP tools, and spec-driven UI plans. Examples include: (1) Turning PRD or user requirements into action-level PENCILPLAN via pencil-ui-design-spec-generator; (2) Executing Pencil MCP tools in sequence (opendocument, batchdesign…

partme-ai/full-stack-skills · 183 tokens

speccrew-test-manager

SpecCrew Test Manager. Orchestrates three-phase testing workflow: test case design, test code generation, and test execution with bug reporting. Reads feature specs, API contracts, and system design documents to coordinate comprehensive system testing. Trigger scenarios: after development phase completes, user…

charlesmu99/speccrew · 65 tokens

speccrew-feature-designer

SpecCrew Feature Designer. Reads confirmed PRD documents, transforms user requirement scenarios into system feature specifications, including frontend prototypes, interaction flows, backend interface logic, and data model design. Does not focus on specific technology implementation details, but outlines how to…

charlesmu99/speccrew · 81 tokens

speccrew-product-manager

SpecCrew Product Manager. Analyzes user requirements, performs complexity assessment to route between simple (single PRD) and complex (Master-Sub PRD) workflows, reads business knowledge and domain specifications, writes structured PRD documents, and waits for manual confirmation before transitioning to…

charlesmu99/speccrew · 113 tokens

speccrew-task-worker

Generic task execution Worker. Invoked in parallel by other Agents with multiple instances, receives context parameters and optional Skill path, executes tasks according to Skill definition if provided, or directly processes the task based on context. Specialized for batch document read/write operations, splitting…

charlesmu99/speccrew · 71 tokens