🧠 AI Agent / LLM application engineer: panoramic knowledge map

Repository mind map · 92 questions / four engineering layers / 4 translations / 83 glossary entries · 中文

This map threads together everything in the repository. Cross-drill four lenses: the four engineering layers, the interview categories, the classic translations, and the glossary.

Click each node's ▶ to expand the next level. Any blue link jumps straight to the matching HTML chapter, question, or glossary entry. Glossary links also open a popover without leaving the current page.

The reading entrance is the English portal. index.html is the Chinese portal. This page is the review map, not a substitute for the portal.

1. The four engineering layers (the core skeleton)

prompt → context → agent → harness is a four-layer stack of abstractions. Each layer is its own discipline, and a production system needs all four.

🎯 Layer 1 · Prompt engineering Prompt

Core question: How do you get an LLM to produce controllable, high-quality output in a single call?

Transformer foundations — Attention / Multi-head / Position encoding
Training stack — Pretrain → Post-train → SFT → RLHF/DPO/GRPO/RLVR
Inference and decoding — Greedy / Top-k / Top-p / Temperature / Beam
Classic prompting techniques — CoT / Self-Consistency / ToT / ReAct / Self-Refine / Reflexion / Long CoT
Automatic optimization — DSPy / OPRO / APE / prompt versioning
Evaluation and red teaming — LLM-as-judge / Prompt Injection / Jailbreak

🧱 Layer 2 · Context engineering Context

Core question: How do you fit the most relevant information into a limited context window?

Physics of long context — KV cache / Attention sink / Lost in the Middle / RULER
Inference acceleration — PagedAttention / FlashAttention / vLLM / continuous batching / prefix caching
Full-stack RAG — Chunking / Embedding / Hybrid Search / Reranker / Vector DB / RAGAS
Memory systems — MemGPT / Letta / Mem0 / Zep / working vs episodic vs semantic
Context management — sliding window / summarization / sub-agent isolation / compaction
MCP / A2A protocols — Resources / Tools / Prompts / cross-vendor

🤖 Layer 3 · Agent engineering Agent

Core question: How do you let an LLM decide on its own, call tools, and finish a task across many steps?

Anthropic's 6 patterns — Augmented LLM / Prompt Chaining / Routing / Parallelization / Orchestrator-Workers / Evaluator-Optimizer
How agent paradigms evolved — ReAct → Plan-and-Execute → Reflexion → long-horizon autonomy
Agent frameworks — LangChain / LangGraph / LlamaIndex / Haystack / Anthropic SDK
Multi-agent collaboration — Supervisor (recommended) / Hierarchical / Swarm (anti-pattern)
Tool Use / Function Calling — schema design / granularity / Deny-first / Error as prompt
Four major agent failure modes + Loop of Death — Anthropic's empirical summary
Agent evaluation — general benchmarks vs business domains

🛡️ Layer 4 · Harness engineering Harness

Core question: How do you engineer the environment so the agent is physically unable to repeat a mistake?
"anytime you find an agent makes a mistake, take the time to engineer a solution such that the agent never makes that mistake again." — Hashimoto

Naming the harness, and where it sits — Hashimoto 2026-02 · boundary with the other three layers
Two core laws + four pillars — strong constraints / self-healing loop · context / specialization / persistence / structure
Supporting infrastructure — MCP / Sandbox / Guardrails
Production-stack reference architecture + maturity model L0–L4 — full 8-layer stack / role matrix / self-diagnosis
2026 model comparison + cost optimization — 8 ROI levers
Scenario selection checklist — internal tools / customer support / coding / multi-agent business systems

2. 92 interview questions · 11 categories

CategoryCore coverageDifficultyEntry
A. LLM fundamentals (11)Transformer / RoPE / KV cache / long context / inference optimization / prefill·decode1⭐ 8⭐⭐ 2⭐⭐⭐→ A
B. Training / fine-tuning (10)SFT / DPO / GRPO / LoRA / R1 emergence1⭐ 7⭐⭐ 2⭐⭐⭐→ B
C. Prompt engineering (9)CoT / Self-Consistency / ReAct / automatic prompt optimization1⭐ 7⭐⭐ 1⭐⭐⭐→ C
D. RAG (10)Hybrid / Reranker / GraphRAG / Self-RAG / RAGAS1⭐ 7⭐⭐ 2⭐⭐⭐→ D
E. Agent (12) core6 patterns / multi-agent / failure modes / harness1⭐ 6⭐⭐ 5⭐⭐⭐→ E
F. Memory (8)MemGPT / Letta / Mem0 / progress files / corruption1⭐ 5⭐⭐ 2⭐⭐⭐→ F
G. System design (8)customer support / coding / search / gateway / high concurrency / cost / sandbox / closed loop0⭐ 1⭐⭐ 7⭐⭐⭐→ G
H. Evaluation (6)judge bias / pairwise / benchmark hacking / drift0⭐ 2⭐⭐ 4⭐⭐⭐→ H
I. Safety / guardrails (6)OWASP / Prompt Injection / NeMo / EU AI Act0⭐ 1⭐⭐ 5⭐⭐⭐→ I
J. Behavioral / practice (7)Hashimoto closed loop / 0-to-1 rollout path / debug hallucination0⭐ 2⭐⭐ 5⭐⭐⭐→ J
K. Agent evaluation (5)general benchmarks / trajectory / tool-use / production monitoring / business domains0⭐ 2⭐⭐ 3⭐⭐⭐→ K

JD research: 30+ roles in China and abroad → JD Requirements chapter


3. Chinese translations of classic essays

EssayCore ideaEntry
Building Effective AgentsWorkflow vs Agent / 6 patterns / simplicity firstAnthropic 2024→ Chinese notes · original
Effective Harnesses4 failure modes and countermeasures / progress files / 5-step startup protocolAnthropic 2025→ Chinese notes · original
Multi-Agent Research SystemOrchestrator-Workers / sub-agent isolation / VerifierAnthropic 2025→ Chinese notes · original
OpenAI Harness EngineeringAgent = Model + Harness / Humans steer, Agents executeOpenAI 2026→ Chinese notes · original

4. Glossary (83 entries × 10 topics)

Every HTML page embeds the full glossary in the lower-right corner. Click an orange marked term in the text and a popover opens without leaving the page. Grouped by topic below (click to jump):

Software engineering basics (10)

lint type check CI/CD sandbox canary A/B test HITL SLO/SLI/SLA TTL GMV / UV / CSAT / NPS / conversion rate

LLM fundamentals (9)

token embedding context window prefill/decode KV cache autoregressive logit temperature attention sink

Transformer architecture (5)

LayerNorm/RMSNorm RoPE YaRN/NTK GQA/MQA MoE multi-head attention

Inference acceleration (8)

FlashAttention PagedAttention vLLM continuous batching speculative decoding prefix caching TTFT TPOT

Quantization (4)

FP16/BF16/FP8 INT4/INT8/NF4 AWQ GPTQ

Fine-tuning and alignment (10)

SFT LoRA QLoRA RLHF RM DPO PPO GRPO RLVR catastrophic forgetting

Prompting and reasoning paradigms (7)

CoT ToT ReAct Reflexion Self-Refine Self-Consistency few-shot/zero-shot

RAG (9)

RAG chunking BM25 hybrid search reranker vector DB embed models RAG variants RAGAS

Agent engineering (11)

harness MCP tool use Computer Use sub-agent AGENTS.md deny-first progress file Loop of Death Memory Corruption LangChain

Evaluation and safety (10)

Eval LLM-as-judge eval benchmarks Trace + Eval tool stack Lost in the Middle prompt injection hallucination guardrails jailbreak


5. Suggested review paths

Path A · New graduate / beginner (2–4 weeks)

Week 1: Engineering foundation concepts — L1 §1.1–§1.3 + glossary (LLM basics + Transformer) + A1–A11 Week 2: Prompting + RAG introduction — L1 §1.4 + L2 §2.4 + C1–C9 + D1–D5 Week 3: Agent concepts — L3 §1–§3 + E1, E2, E3, E5, E8 + translation Building Effective Agents (Chinese notes) (original) Week 4: Safety + practice — L1 §1.6 + I1, I2 + J7 (0-to-1 rollout path)

Path B · Mid-level (3–6 years, 1–2 months)

Foundations (already in place) → deepen: • All of categories A–F • Read L1–L4 straight through • Parts of G/H (system design + evaluation) • Read all 4 translations • Prepare category J behavioral answers from your own projects

Path C · Senior / staff (depth + breadth)

• All 11 categories (A–K) • L4 §3.4 production-stack architecture + §3.4.6 maturity-model self-check • §3.5.6 eight cost-optimization levers • §3.6 scenario selection checklist • Memorize: Hashimoto's and Anthropic's own wording on harnesses • Have ready: 1–2 quantified project cases (GMV / conversion rate / accuracy, with numbers)

Path D · Scenario-driven (tailored to the target role)

Target roleFocus chapters
LLM application SaaS (customer support / document QA)L2 RAG + L3 Agent + G1 (customer support) + I (safety) + K5 (business evaluation)
AI coding toolsAll of L3 + L4 + G2 (Coding Agent) + E7 (harness) + translations of Effective Harnesses and OpenAI Harness Engineering
Multi-agent business systemsL3 §6 multi-agent + E4/E10 + K5 (business-domain evaluation) + G1/G3 + J1 STAR + numbers from your projects
Infrastructure / inference / trainingA4–A9 inference acceleration + B1–B10 training stack + G4/G5 gateway and high concurrency
Security / red teamC7 + I1–I6 + L1 §1.6 + L4 three-layer defense