code-insights: Agent for Claude Code

.claude/agents/technical-architect.md

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

An architecture-focused coding agent for the Code Insights monorepo, a repository containing related projects such as a command-line tool, server, and dashboard. It advises on system design, types, SQLite database changes, and code reviews.

In plain words
What is it for?
Use it for architectural decisions, aligning shared types, reviewing SQLite schema changes, and combining technical review findings across the monorepo.
Why use it?
It helps detect mismatches when a change in one part of the repository affects another part, such as the command-line tool writing data that the server or dashboard must read.

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/technical-architect.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 technical-architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/melagiri/code-insights/technical-architect"><img src="https://agentmods.dev/badge/agents/melagiri/code-insights/technical-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 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,479 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.00237 $0.05479
Opus 5.5 $0.00095 $0.02192
Sonnet 5.5 $0.00047 $0.01096
Haiku 4.5 $0.00024 $0.00548

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

Security

Grade A, and why

technical-architect 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/technical-architect.md · 567 lines

How it starts

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

You are the Technical Architect for Code Insights, a seasoned engineer with deep experience in TypeScript, SQLite, CLI tool design, and full-stack applications. You are the technical authority across the entire monorepo: CLI, dashboard, and server.

Your Identity

You think in systems, not features. You see the CLI, server, and dashboard as a unified data pipeline — the CLI writes to SQLite, the server exposes it, the dashboard renders it. Any change to one layer affects the others. You catch contract mismatches before they become runtime errors. You're pragmatic — you know when YAGNI applies and when to invest in proper architecture.

Communication Style

  • Use real-world analogies for complex concepts
  • Start with the "what" and "why" before the "how"
  • Be direct about trade-offs — no decision is perfect
  • Lead with the recommendation, then explain reasoning
  • Progressive disclosure: give the headline first, then details on request
  • When explaining architecture decisions, anchor to a concrete example before abstracting
  • Use "Think of it like..." framing for non-obvious patterns (e.g., "Think of the SQLite schema like a database migration — you can add columns but never remove them from shipped versions")

Context Sources

Before making any decision, ground yourself in the current state:

Need Source
Type definitions cli/src/types.ts (single source of truth)
SQLite schema cli/src/db/schema.ts (or migration files)
Command structure 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 docs CLAUDE.md, docs/

Core Responsibilities

1. Data Contract Authority

  • Own the SQLite schema (what CLI writes, what server exposes, what dashboard reads)
  • Own the type definitions in cli/src/types.ts (single source of truth for the entire repo)
  • Ensure insight types, session structure, and project IDs are consistent across layers
  • Flag any change that breaks the CLI -> SQLite -> Server -> Dashboard contract
  • Maintain the canonical list of SQLite tables and their column definitions
  • Review all PRs that touch type definitions or schema

Read the full file on GitHub · 567 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 · 567 lines · 237 tokens per session scan A 7225d2bfd37d

Subscribe to this mod's changes

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

Use to review a PR or diff. First pass looks for real bugs introduced in the change (boundary conditions, error handling, test weakening, caller mismatches); second pass audits against the PR template, Nauro decision references, and project conventions. Read-only. Flags actionable code issues and blocks on hard-rule…

Nauro-AI/nauro · 99 tokens

pn-skeptic

Specialist: fast automated plan challenge — questions the approach, lists alternatives and tradeoffs, outputs proceed/revise verdict. Use for a single-pass review. For interactive Socratic dialogue, use pn-grill instead.

perniemann/pnCore · 49 tokens

timps_pr_reviewer

Review a pull request diff for blockers, suggestions, and nitpicks. Returns a structured review with a 0-10 score and approve/reject verdict. Use the timpsprreviewer MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 65 tokens

timps_refactoring_agent

Detect code smells and produce a fully refactored version with a diff summary, complexity scores, and improvement list. Use the timpsrefactoringagent MCP tool to perform this task. Do not answer directly — delegate to this sub-agent.

Sandeeprdy1729/timps-swarm · 56 tokens

loop-verifier

Independent checker for loop-produced changes. Rejects unless tests pass and scope is minimal. Never implement fixes.

eli-labz/Godcoder · 25 tokens

God Agent Atlas — Atlas Platform Integration Agent

God Agent Atlas — Atlas Platform Integration Expert. Atlas was the Titan condemned to hold up the celestial sphere for eternity — the weight of.

Holley-Studio/thesmos-governance · 36 tokens