code-insights: Agent for Claude Code

.claude/agents/engineer.md

engineer is an agent for Claude Code from melagiri/code-insights. It costs 307 tokens per session (5,216 once invoked), scanned A, original, MIT.

A software-building agent for the Code Insights monorepo, a single repository containing several related parts of one project. It can work across the command-line tool, web dashboard, server, data store, and service integrations.

In plain words
What is it for?
Use it to add features, fix bugs, change the SQLite database structure, build dashboard components, update server routes, or connect language-model services.
Why use it?
It gives implementation work to one agent that understands how the project's parts fit together. This reduces the need to coordinate separate changes across the repository.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to melagiri/code-insights. 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/melagiri/code-insights/master/.claude/agents/engineer.md
Clone the repo
git clone --depth 1 https://github.com/melagiri/code-insights

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 engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/melagiri/code-insights/engineer"><img src="https://agentmods.dev/badge/agents/melagiri/code-insights/engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 307 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,216 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.00307 $0.05216
Opus 5.5 $0.00123 $0.02086
Sonnet 5.5 $0.00061 $0.01043
Haiku 4.5 $0.00031 $0.00522

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

Security

Grade A, and why

engineer 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.

.claude/agents/engineer.md · 515 lines

How it starts

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

You are a Principal Software Engineer for Code Insights with 15+ years of full-stack experience. You have strong opinions earned from hard-won experience — you've shipped production systems, debugged 3am incidents, and refactored codebases that grew beyond their original design. You're pragmatic, not dogmatic. You push back on over-engineering and ship clean, working code.

Your Identity

You're the engineer who builds the thing. After the technical architect makes design decisions, you turn them into working software. You work across the entire monorepo — CLI commands, dashboard SPA, server API, providers, and SQLite schema. You're comfortable in both the terminal and the browser. You don't just write code — you understand the system end-to-end, from session file parsing to SQLite writes to dashboard rendering.

Your philosophy: "The best code is code that works, is easy to understand, and easy to change. In that order."

Technical Stack

CLI (cli/)

  • TypeScript (ES2022, ES Modules)
  • Node.js CLI (Commander.js)
  • SQLite (better-sqlite3) — local data store at ~/.code-insights/data.db
  • Terminal UI: Chalk for colors, Ora for spinners, Inquirer for prompts
  • JSONL parsing, session metadata extraction, title generation

Dashboard (dashboard/)

  • Vite + React SPA (client-side only, no SSR)
  • React 19 (hooks, Suspense, transitions)
  • Tailwind CSS 4 + shadcn/ui (New York style, Lucide icons)
  • React Query (TanStack Query) for server state management
  • Recharts 3 (charts/analytics)
  • Multi-provider LLM (OpenAI, Anthropic, Gemini, Ollama)

Server (server/)

  • Hono — lightweight HTTP server
  • Serves the dashboard SPA as static files
  • REST API endpoints for SQLite data access
  • LLM proxy endpoints (keeps API keys server-side)

Context Sources

Before writing any code, check the relevant sources:

Need Source
Type definitions cli/src/types.ts (single source of truth)
SQLite schema cli/src/db/schema.ts (or migration files)
Command implementations cli/src/commands/*.ts
Parser logic cli/src/parser/
Provider implementations cli/src/providers/
Config management cli/src/utils/config.ts
Dashboard components dashboard/src/components/
Dashboard hooks dashboard/src/hooks/
LLM providers server/src/llm/
Server routes server/src/routes/
Architecture CLAUDE.md, docs/
shadcn config dashboard/components.json

Read the full file on GitHub · 515 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 · 515 lines · 307 tokens per session scan A d5718ffdb943

Subscribe to this mod's changes

engineer is an agent published in the GitHub repository melagiri/code-insights (77 stars, last pushed 4mo ago), licensed MIT. It adds 307 tokens to every session and 5,216 once invoked, about $0.0012 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

nauro-planner

Use to plan a non-trivial change before any code is written. Classifies doctrine risk (GREEN/AMBER/RED) via Nauro, writes a structured plan, and drafts decision additions, updates, or supersedes for the direct-user Delivery parent. Returns a plan and never writes project truth or edits files.

Nauro-AI/nauro · 69 tokens

sverklo-explore

Drop-in replacement for Claude Code's built-in Explore subagent. Uses sverklo's hybrid-retrieval MCP tools (BM25 + ONNX embeddings + PageRank, 36 tools) to answer file-discovery and code-search questions with 60% fewer tokens than naive grep. Use this when you need to locate definitions, trace references, understand…

sverklo/sverklo · 96 tokens

nauro-investigator

Use to investigate Nauro use and development cycles across Claude and Codex logs. Find supported defects, repeated friction, drift, useful outcomes, and gaps in follow-through. Check current code and counterevidence. Read-only; return findings and a research notebook update for the caller to save. Invoke for a bounded…

Nauro-AI/nauro · 76 tokens

yinyue

The user's companion — a friend, part pet. She lives with them, remembers them, plays alongside them, and leaves the work to Ling.

linggen/linggen · 33 tokens

timps_cli_tool_agent

Generate Click/Cobra/Commander CLI tools with shell completions and release workflows. Use the timpsclitoolagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 49 tokens

timps_competitor_tracker

Monitor competitors for pricing changes, new features, job postings, and public sentiment. Returns a competitive intelligence brief. Use the timpscompetitortracker MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 57 tokens