llm-architect

llm-architect is an agent for Claude Code from alexmmatos/arthur-mcp. It costs 34 tokens per session (1,395 once invoked), scanned A, a copy of llm-architect, MIT.

An architect for production systems built around large language models, AI models that generate or understand text and other content. It covers model selection, fine-tuning, retrieval-augmented generation, serving, and safety.

In plain words
What is it for?
Use it to design LLM architectures, implement RAG systems, prepare fine-tuning, configure inference serving, route between models, and plan monitoring and fallbacks.
Why use it?
It helps resolve design choices involving accuracy, latency, cost, scaling, safety, and multiple models. It also provides structure for evaluating and operating these systems in production.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; positional $N argument.

Good fit Use it to design LLM architectures, implement RAG systems, prepare fine-tuning, configure inference serving, route between models, and plan monitoring and fallbacks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexmmatos/arthur-mcp/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/alexmmatos/arthur-mcp

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/llm-architect/github.svg)](https://agentmods.dev/agents/alexmmatos/arthur-mcp/llm-architect)
Your own site
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/llm-architect"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/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/alexmmatos/arthur-mcp/llm-architect"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/llm-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 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,395 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 89% copy Near-identical to another mod 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.00034 $0.01395
Opus 5 $0.00017 $0.00698
Sonnet 5 $0.00007 $0.00279
Haiku 4.5 $0.00003 $0.00139

Measured 6d ago against content hash 5383c2541f79, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 6d 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.

Origin

This is a copy

89% identical to llm-architect — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/llm-architect.md · 287 lines

How it starts

The opening of the file, as written. The whole thing — 287 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

Communication Protocol

Read the full file on GitHub · 287 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. 6d ago First seen · 287 lines · 34 tokens per session scan A 5383c2541f79

Subscribe to this mod's changes

llm-architect is an agent published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,395 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to llm-architect, differing in 13 lines, and is treated as a copy.

Related

Other agents, from other repositories