AI and GenAI guides
RAG, vector databases, LLM serving, MCP and how AI systems run in production.
175 guides · Newest first · Updated
- Spec-Driven Development Explained: Make AI Agents Code to a ContractWrite the rules and tests first, protect them, and review the contract, shown on one bill-splitting function.AI and GenAI · 20 min read ·
- AI Coding Agent Customization Explained: Instruction Files, Hooks and Sub-AgentsInstruction files, custom commands, hooks that gate tool calls, sub-agents and MCP servers, and when to use each.AI and GenAI · 21 min read ·
- AI-Era Career Strategy for Software Engineers: Build and Prove JudgementWhich skills AI tools commoditise or amplify, what the evidence says, and a portfolio that proves judgement.Career and interviews · 18 min read ·
- AI Agent Payments: Mandates, Spend Limits and Safe RetriesMandates, spend limits, scoped cards and tokens, idempotent retries, refunds and audit trails.AI and GenAI · 18 min read ·
- AI Agent Benchmarks Explained: How Scores Get Inflated and How to Read ThemHow issue-fixing, assistant and tool-and-user benchmarks score agents, why pass^k matters and how leaderboard scores get inflated.AI and GenAI · 21 min read ·
- RAG Content Ops: Fix Stale, Duplicate and Conflicting Source DocsFinding stale, near-duplicate and contradictory source documents, giving each page an owner and review date, and why retrieval tuning cannot fix a bad wiki.AI and GenAI · 21 min read ·
- PyTorch 2.15 Explained: What Breaks When You Upgrade and How to Fix ItThe Python 3.10 cut-off, nested-tensor checkpoints, the rewritten NCCL backend and the smaller changes that fail tests.AI and GenAI · 18 min read ·
- Contextual Retrieval Explained: Chunk Context, Index Cost and RecallWhy chunks lose meaning when split, how a short context line helps BM25 and embedding search, what it costs at index time and which cheaper fixes to try first.AI and GenAI · 24 min read ·
- Multi-LoRA Serving Explained: Batching Many Fine-Tunes on One Base ModelWhy one base model can carry many small adapters, how much memory each adapter needs, how one batch mixes adapters, and the vLLM limits that matter.AI and GenAI · 23 min read ·
- State Space Models Explained: Linear-Time Sequences with a Fixed-Size StateThe linear recurrence, discretisation, the convolution and recurrent views, selective updates, parallel scans, memory maths against a KV cache and the exact-recall limit.AI and GenAI · 27 min read ·
- DuckDB Agent Mode Explained: How the CLI Detects and Adapts to AI AgentsHow the command-line tool spots an AI coding agent, what it prints instead, what DuckDB's own test saved, and how to copy the idea.AI and GenAI · 20 min read ·
- Hydra's October 2026 Instantiate Vulnerability Explained: Config Is CodeHow _target_ turns config into code, why the blocklist fixes kept being bypassed and why allowlists win.AI and GenAI · 17 min read ·
- PagedAttention Explained: How vLLM Pages the KV Cache to Stop Memory WasteWhy per-request KV caches fragment GPU memory, how block tables, copy-on-write sharing and preemption work in vLLM, and what paging does to batch size and cost per token.AI and GenAI · 24 min read ·
- RoPE Positional Encodings Explained: Token Order and Context ExtensionWhy attention ignores word order, how rotation gives relative positions, and how interpolation, NTK-aware scaling and YaRN stretch context.AI and GenAI · 23 min read ·
- vLLM's October 2026 RCE Vulnerability Explained: Request-Chosen Processor CodeHow one request field chose which processor code the server imported, why the API key and a pinned revision did not stop it, and how to check your server.AI and GenAI · 19 min read ·
- LLM Red Teaming: A Pre-Launch Playbook to Attack Your Own AppScoping, attack categories, safe test cases, scoring, CI regression tests and fixes.AI and GenAI · 20 min read ·
- SGLang's October 2026 KV Cache Exposure Explained: Stale Memory Between UsersHow an over-long prompt read other users' memory in split prefill and decode serving, which releases fix it and how to check your setup, shown on a runnable toy page pool.AI and GenAI · 20 min read ·
- EU AI Act Article 50 Deadline Explained: Mark AI Output by 2 December 2026Who must mark AI output, what the 2 December 2026 deadline covers, and how C2PA signing works.AI and GenAI · 21 min read ·
- Long-Context Attention Explained: Quadratic Cost, KV Cache and FlashAttentionWhy compute grows with length squared, how the KV cache grows, prefill vs decode and how FlashAttention speeds exact attention.AI and GenAI · 21 min read ·
- MCP TypeScript SDK's October 2026 Advisory Explained: One Server per ConnectionWhy a shared server object sent one client's replies to another, why 2.3.0 throws ALREADY_CONNECTED and how to restructure.AI and GenAI · 22 min read ·
- WebGPU Inference Explained: Running ML Models in the BrowserBrowser support, GPU buffer limits, the WebAssembly fallback, caching model weights and when a server is the better choice.Frontend · 20 min read ·
- AI Tutor System Design: Hint Ladders, Mastery Tracking and GuardrailsHint ladders that never hand over the answer, Bayesian Knowledge Tracing, leak checks, India's child data rules and evaluation.AI and GenAI · 23 min read ·
- FastMCP's October 2026 Vulnerabilities Explained: Secret Leaks and Hidden ToolsHow a malicious MCP server could collect OAuth client secrets, why hidden tools stayed callable, and what to do now.AI and GenAI · 19 min read ·
- LangGraph's October 2026 Namespace Flaw Explained: Why Dot-Joined Keys CollideWhy dot-joined namespaces collided, which versions fix it and how to check.AI and GenAI · 18 min read ·