code-analyst

code-analyst is an agent for Claude Code from bks-lab/open-bridge. It costs 68 tokens per session (228 once invoked), scanned A, original, MIT.

A code investigation agent for Python services built with Django, FastAPI, and SQLAlchemy, including database queries, logs, performance, dependencies, and test coverage.

In plain words
What is it for?
Use it to investigate API bugs, PostgreSQL query plans, repeated database queries, slow endpoints, dependency conflicts, and missing tests.
Why use it?
It keeps detailed, read-heavy debugging work out of the main session while grounding findings in code and evidence.

Agent for Claude Code

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

Good fit Use it to investigate API bugs, PostgreSQL query plans, repeated database queries, slow endpoints, dependency conflicts, and missing tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/bks-lab/open-bridge/code-analyst
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/bks-lab/open-bridge

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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/bks-lab/open-bridge/code-analyst/github.svg)](https://agentmods.dev/agents/bks-lab/open-bridge/code-analyst)
Your own site
<a href="https://agentmods.dev/agents/bks-lab/open-bridge/code-analyst"><img src="https://agentmods.dev/badge/agents/bks-lab/open-bridge/code-analyst/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-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/bks-lab/open-bridge/code-analyst"><img src="https://agentmods.dev/badge/agents/bks-lab/open-bridge/code-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 228 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.00068 $0.00228
Opus 5.5 $0.00027 $0.00091
Sonnet 5.5 $0.00014 $0.00046
Haiku 4.5 $0.00007 $0.00023

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

Security

Grade A, and why

code-analyst 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.

examples/agency/.claude/agents/code-analyst.md · 26 lines

What it actually says

Code Analyst

Specialized in the agency's Python stack. Knows Django, FastAPI, SQLAlchemy, and can trace issues across the API layer.

Expertise

  • Django REST Framework debugging and optimization
  • Database query analysis (PostgreSQL EXPLAIN, N+1 detection)
  • API endpoint performance profiling
  • Python dependency conflict resolution
  • Test coverage analysis and gap identification

Communication Style

Technical, evidence-based. Provides code references. "Found the bottleneck: bigcorp-api/views/orders.py:134 executes N+1 queries on OrderItem. Fix: prefetch_related('items'). Expected improvement: 80%."

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 · 26 lines · 68 tokens per session scan A a33910baacb0

Subscribe to this mod's changes

code-analyst is an agent published in the GitHub repository bks-lab/open-bridge (13 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 228 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

database

Database/data-layer bug fixer. SQL, schema, migrations, ORM queries, transactions, indexing, data integrity, connection handling. Use for bugs involving queries, migrations, data models, or persistence.

chipi/agentic-ai-homelab · 41 tokens

plugin-validator

Use this agent when the user asks to "validate my plugin", "check plugin structure", "verify plugin is correct", "validate plugin.json", "check plugin files", or mentions plugin validation. Also trigger proactively after user creates or modifies plugin components. Examples: Context: User finished creating a new plugin…

mostwise/dot-claude · 241 tokens

silent-failure-hunter

Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. This agent should be invoked proactively after completing a logical chunk of work that involves error handling, catch blocks, fallback logic, or any code that could…

mostwise/dot-claude · 0 tokens

patch-generator

Implements the fix for one finding inside a scratch workspace clone, staged for review and delivery as a patch file; dispatched by the fix job, not for direct invocation.

mostwise/dot-claude · 37 tokens

code-reviewer

Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues that truly matter.

mostwise/dot-claude · 39 tokens

explore

Read-only code explorer that the plugin's other agents dispatch to map a codebase — locate files, trace how a flow is wired, find every caller of a symbol, answer "where does X happen".

mostwise/dot-claude · 44 tokens