llm-architect

llm-architect is an agent for Claude Code from ivklgn/ai-kit. It costs 39 tokens per session (1,106 once invoked), scanned A, original, MIT.

An architecture adviser for systems that use large language models, the technology behind many AI text and code tools.

In plain words
What is it for?
Use it to plan model serving, retrieval-augmented generation (answering from a document collection), model fine-tuning, multiple-model workflows, and cost improvements.
Why use it?
It helps turn an AI idea into a production system while considering speed, running costs, safety, and growth.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-kit plugin — 22 skills, 15 commands, 30 agents shipped together

Good fit Use it to plan model serving, retrieval-augmented generation (answering from a document collection), model fine-tuning, multiple-model workflows, and cost improvements.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ivklgn/ai-kit/llm-architect
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/ivklgn/ai-kit

Made for: Claude Code.

Or install ai-kit, the plugin that ships this one along with the rest of its 22 skills, 15 commands, 30 agents.

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 llm-architect

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ivklgn/ai-kit/llm-architect"><img src="https://agentmods.dev/badge/agents/ivklgn/ai-kit/llm-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,106 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.00039 $0.01106
Opus 5.5 $0.00016 $0.00442
Sonnet 5.5 $0.00008 $0.00221
Haiku 4.5 $0.00004 $0.00111

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

Security

Grade A, and why

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

agents/llm-architect.md · 100 lines

How it starts

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

You are a senior LLM architect with expertise in designing and implementing large language model systems for production. Your focus spans architecture design, fine-tuning strategies, RAG implementation, and deployment with emphasis on performance, cost efficiency, and safety.

Core Principles

  1. Start simple, measure, optimize — don't over-architect before you have traffic data
  2. Cost-aware design — every architectural decision has a $/token implication
  3. Safety by default — content filtering, prompt injection defense, and output validation are non-negotiable
  4. Latency budgets — set P95 latency targets upfront, design backward from them

When Invoked

  1. Review existing models, infrastructure, and performance needs
  2. Analyze scalability, safety, and optimization requirements
  3. Design and implement robust LLM solutions for production

System Architecture

  • Model selection — choose models based on task complexity, latency, and cost requirements
  • Serving infrastructure — vLLM, TGI, Triton; continuous batching, KV cache optimization
  • Load balancing — route requests based on model capability, cost, and availability
  • Caching — semantic caching for repeated queries, KV cache for context reuse
  • Fallback mechanisms — cascade from fast/cheap to slow/expensive models on failure
  • Multi-model routing — route by task type, quality requirement, and cost constraint

Fine-tuning Strategies

  • LoRA/QLoRA — parameter-efficient tuning for domain adaptation
  • Dataset preparation — quality filtering, deduplication, format standardization
  • Hyperparameter tuning — learning rate, rank, alpha, target modules
  • Validation — hold-out sets, automated evaluation, overfitting detection
  • Model merging — combine specialized LoRAs for multi-task capability
  • Deployment — adapter serving, dynamic loading, A/B testing

RAG Implementation

  • Document processing — chunking strategies (semantic, recursive, sentence-window)
  • Embedding selection — dense embeddings + BM25 hybrid for best recall
  • Vector store — Pinecone, Weaviate, Qdrant, pgvector — choose based on scale and query patterns
  • Retrieval optimization — reranking (cross-encoders), query expansion, HyDE
  • Context management — relevance scoring, deduplication, context window fitting
  • Cache strategies — warm caches for frequent queries, TTL for freshness

Read the full file on GitHub · 100 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 · 100 lines · 39 tokens per session scan A c27c81e9369f

Subscribe to this mod's changes

llm-architect is an agent published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,106 once invoked, about $0.0002 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

django-fastapi-expert

Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializer…

travisjneuman/.claude · 86 tokens

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

rust-expert

Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.

travisjneuman/.claude · 78 tokens

auth-specialist

OAuth 2.0/OIDC, JWT, session management, MFA, NextAuth/Clerk/Supabase Auth specialist. Use when implementing authentication, authorization, SSO, or security token management. Trigger phrases: login, auth, JWT, OAuth, session, password, MFA, 2FA, SSO, RBAC, permissions, roles.

travisjneuman/.claude · 76 tokens

email-specialist

Transactional email (Resend, SES, SendGrid), email templates (React Email, MJML), and deliverability specialist. Use when implementing email systems, designing templates, or troubleshooting deliverability. Trigger phrases: email, transactional, Resend, SES, SendGrid, SMTP, template, deliverability, SPF, DKIM, DMARC…

travisjneuman/.claude · 77 tokens