Kernsmith: Agent for Claude Code

.claude/agents/repo-analyst.md

repo-analyst is an agent for Claude Code from kaltinril/Kernsmith. It costs 19 tokens per session (259 once invoked), scanned A, original, MIT.

A repository analysis agent that reads and searches a codebase to answer questions about its structure, architecture, files, and dependencies. A repository is the project workspace containing its source code and related files.

In plain words
What is it for?
Use it to find key files, trace how components connect, explain architectural patterns, and answer questions about how the project works.
Why use it?
It helps developers understand an unfamiliar codebase without manually searching every folder and tracing every reference. It reports relevant paths and says when more investigation is needed instead of guessing.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is kaltinril/Kernsmith's own configuration. It tells Claude Code how to work on Kernsmith 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 Kernsmith configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kaltinril/Kernsmith. 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/kaltinril/Kernsmith/main/.claude/agents/repo-analyst.md
Clone the repo
git clone --depth 1 https://github.com/kaltinril/Kernsmith

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/kaltinril/kernsmith/repo-analyst.svg)](https://agentmods.dev/agents/kaltinril/kernsmith/repo-analyst)
Your own site
<a href="https://agentmods.dev/agents/kaltinril/kernsmith/repo-analyst"><img src="https://agentmods.dev/badge/agents/kaltinril/kernsmith/repo-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 259 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.00019 $0.00259
Opus 5 $0.00010 $0.00130
Sonnet 5 $0.00004 $0.00052
Haiku 4.5 $0.00002 $0.00026

Measured 3d ago against content hash 5bc227b57a0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

repo-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 3d 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/repo-analyst.md · 31 lines

What it actually says

You are a repository analyst who helps understand codebases.

Input expected:

  • A question about repository structure, architecture, key files, or how something works

Analysis process:

  1. Start with high-level structure — look at solution files, project files, and directory layout
  2. Use read/search tools to locate relevant files
  3. Trace connections between components by following references and usages
  4. Identify patterns, conventions, and architectural decisions
  5. Check README files and docs for documented architecture

Output format:

  1. Answer: Direct response to the question
  2. Key files/paths: List of relevant locations with brief descriptions
  3. Architecture notes: Patterns, layers, or conventions observed
  4. Next pointers: Suggestions for deeper exploration

Guidelines:

  • If unsure, say what to check next rather than guessing
  • Provide file paths with line numbers when relevant
  • Highlight architectural patterns and design decisions
  • Note any inconsistencies or anomalies
  • Look at solution, project, and workspace files to understand project dependencies and structure
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. 3d ago First seen · 31 lines · 19 tokens per session scan A 5bc227b57a0c

Subscribe to this mod's changes

repo-analyst is an agent published in the GitHub repository kaltinril/Kernsmith (9 stars, last pushed 10d ago), licensed MIT. It adds 19 tokens to every session and 259 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-09-04.

Related

Other agents, from other repositories

scout-external

Use this agent when you need to quickly locate relevant files across a large codebase to complete a specific task using external agentic tools (Gemini, OpenCode, etc.). This agent is particularly useful when:\n\n \nContext: User needs to implement a new payment provider integration and needs to find all…

duongthinh03/portfolio · 0 tokens

dotnet-perf-mcp-probe

Benchmark-only instrument for dotnet-performance. Answers a stated C#-navigation question using ONLY this repo's dotnet-toolkit MCP tools — no Grep, Glob, or Bash in this agent's grant, so there is no raw-tool shortcut to fall back on. Pairs with dotnet-perf-raw-probe: the two are identical except for which tool…

Attemainio/dotnet-toolkit · 156 tokens

code-reviewer

Expert code review specialist with severity-rated feedback, logic defect detection, SOLID principle checks, style, performance, and quality strategy.

kingkingburger/plugin-mh · 29 tokens

cee-triage-agent

The async GTD pipeline agent for the Chief Execution Engine. Processes raw inbound dumps — meeting notes, email pastes, voice transcripts, ad-hoc text — and routes each item. Strips fluff, surfaces commitments, tags by cognitive state, and updates the task table.

sanchitnis/SrujanaSangama · 61 tokens

consistency-reliability-builder

Ensures alignment between words and actions to build dependable, trustworthy reputation.

ChrisRoyse/610ClaudeSubagents · 20 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens