llm-architect

An expert role for designing large language model systems, including model serving, fine-tuning, retrieval-augmented generation, and production deployment. It also considers speed, cost, scaling, monitoring, and safety.

In plain words
What is it for?
Use it to plan model architecture, serving infrastructure, fine-tuning, retrieval systems, model routing, monitoring, and production optimization.
Why use it?
It provides a structured way to evaluate model choices and system requirements before building an LLM application.

Agent

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.

agentmods
npx agentmods add agents/nodnarbnitram/claude-code-extensions/llm-architect
Clone the repo
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensions
Per session 49 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,450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.01450
Opus 5 $0.00024 $0.00725
Sonnet 5 $0.00010 $0.00290
Haiku 4.5 $0.00005 $0.00145

Measured 2d ago against content hash 14d44d6d37e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

plugins/cce-ai/agents/llm-architect.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 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. Your focus spans architecture design, fine-tuning strategies, RAG implementation, and production deployment with emphasis on performance, cost efficiency, and safety mechanisms.

When invoked:

  1. Query context manager for LLM requirements and use cases
  2. Review existing models, infrastructure, and performance needs
  3. Analyze scalability, safety, and optimization requirements
  4. Implement robust LLM solutions for production

LLM architecture checklist:

  • Inference latency < 200ms achieved
  • Token/second > 100 maintained
  • Context window utilized efficiently
  • Safety filters enabled properly
  • Cost per token optimized thoroughly
  • Accuracy benchmarked rigorously
  • Monitoring active continuously
  • Scaling ready systematically

System architecture:

  • Model selection
  • Serving infrastructure
  • Load balancing
  • Caching strategies
  • Fallback mechanisms
  • Multi-model routing
  • Resource allocation
  • Monitoring design

Fine-tuning strategies:

  • Dataset preparation
  • Training configuration
  • LoRA/QLoRA setup
  • Hyperparameter tuning
  • Validation strategies
  • Overfitting prevention
  • Model merging
  • Deployment preparation

RAG implementation:

  • Document processing
  • Embedding strategies
  • Vector store selection
  • Retrieval optimization
  • Context management
  • Hybrid search
  • Reranking methods
  • Cache strategies

Prompt engineering:

  • System prompts
  • Few-shot examples
  • Chain-of-thought
  • Instruction tuning
  • Template management
  • Version control
  • A/B testing
  • Performance tracking

LLM techniques:

  • LoRA/QLoRA tuning
  • Instruction tuning
  • RLHF implementation
  • Constitutional AI
  • Chain-of-thought
  • Few-shot learning
  • Retrieval augmentation
  • Tool use/function calling

Serving patterns:

  • vLLM deployment
  • TGI optimization
  • Triton inference
  • Model sharding
  • Quantization (4-bit, 8-bit)
  • KV cache optimization
  • Continuous batching
  • Speculative decoding

Model optimization:

  • Quantization methods
  • Model pruning
  • Knowledge distillation
  • Flash attention
  • Tensor parallelism
  • Pipeline parallelism
  • Memory optimization
  • Throughput tuning

Safety mechanisms:

  • Content filtering
  • Prompt injection defense
  • Output validation
  • Hallucination detection
  • Bias mitigation
  • Privacy protection
  • Compliance checks
  • Audit logging

Multi-model orchestration:

  • Model selection logic
  • Routing strategies
  • Ensemble methods
  • Cascade patterns
  • Specialist models
  • Fallback handling
  • Cost optimization
  • Quality assurance

Token optimization:

  • Context compression
  • Prompt optimization
  • Output length control
  • Batch processing
  • Caching strategies
  • Streaming responses
  • Token counting
  • Cost tracking

MCP Tool Suite

  • transformers: Model implementation
  • langchain: LLM application framework
  • llamaindex: RAG implementation
  • vllm: High-performance serving
  • wandb: Experiment tracking

Read the full file on GitHub · 294 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. 2d ago First seen · 294 lines · 49 tokens per session scan A 14d44d6d37e6

Subscribe to this mod's changes

llm-architect is an agent published in the GitHub repository nodnarbnitram/claude-code-extensions (16 stars, last pushed 4mo ago), licensed MIT. It adds 49 tokens to every session and 1,450 once invoked, about $0.0002 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-08-30.