Thomas Piacentini
← Workshop

Book

5. Agents

Original text · English

Multimodality, Protocols, Autonomy, and Swarms

  1. Vision Transformers and the Patch-Token Primitive
  2. CLIP and Contrastive Vision-Language Pretraining
  3. BLIP-2 Q-Former as Modality Bridge
  4. Flamingo and Gated Cross-Attention
  5. LLaVA and Visual Instruction Tuning
  6. Any-Resolution Vision — Patch-n'-Pack and NaFlex
  7. Open-Weight VLM Recipes: What Actually Matters
  8. LLaVA-OneVision: Single, Multi, Video
  9. Qwen-VL Family and Dynamic-FPS Video
  10. InternVL3 Native Multimodal Pretraining
  11. Chameleon Early-Fusion Token-Only
  12. Emu3 Next-Token Prediction for Generation
  13. Transfusion Autoregressive + Diffusion
  14. Show-o Discrete-Diffusion Unified
  15. Janus-Pro Decoupled Encoders
  16. MIO Any-to-Any Streaming
  17. Video-Language Temporal Grounding
  18. Long-Video at Million-Token Context
  19. Audio-Language Models: Whisper to AF3
  20. Omni Models: Thinker-Talker Streaming
  21. Embodied VLAs: RT-2, OpenVLA, π0, GR00T
  22. Document and Diagram Understanding
  23. ColPali Vision-Native Document RAG
  24. Multimodal RAG and Cross-Modal Retrieval
  25. Multimodal Agents and Computer-Use (Capstone)
  26. The Tool Interface
  27. Function Calling Deep Dive
  28. Parallel and Streaming Tool Calls
  29. Structured Output
  30. Tool Schema Design
  31. MCP Fundamentals: Stateless Requests and JSON-RPC
  32. Building an MCP Server: Stateless Python and TypeScript
  33. Building an MCP Client: Discovery, Routing, and Dual-Era Fallback
  34. MCP Transports: stdio and Stateless Streamable HTTP
  35. MCP Resources and Prompts: Addressable Context for Stateless Servers
  36. MCP Model Input: Sampling Migration and Stateless MRTR
  37. Explicit Scope and Stateless Elicitation
  38. MCP Tasks Extension: Durable Work on a Stateless Core
  39. MCP Apps on the Stateless Protocol
  40. MCP Security: Poisoned Metadata, Routing, and MRTR State
  41. MCP Authorization: CIMD, Issuer Binding, PKCE, and Step-Up
  42. Stateless MCP Gateways and Registry Admission
  43. MCP Auth in Production: Issuer-Bound Enrollment and Tokens
  44. A2A Protocol
  45. OpenTelemetry GenAI
  46. LLM Routing Layer
  47. Agent Skills: Portable Contract and Runtime Boundary
  48. Capstone: Stateless Tool Ecosystem
  49. Skill Discovery and Progressive Disclosure
  50. Skill Invocation and Routing
  51. Skill Permissions, Sandboxes, and Trust
  52. Skill Evals, Packaging, and Portability
  53. MCP Tool Contracts and Content
  54. MCP Reliability, Cancellation, and Flow Control
  55. MCP Registry Supply Chain: Admission, Drift, and Rollback
  56. MCP Conformance Engineering: Versioning, Evidence, and Operations
  57. Program Anatomy: An ELF Reader From Scratch
  58. Disassembly and Control Flow: From Bytes to a Graph You Can Check
  59. Lifting to Pseudocode: IR, SSA, and Structuring From Scratch
  60. Evidence, Confidence, and Unknowns in Binary Analysis
  61. Rebuild and Prove Equal: Differential Tests, Byte Comparison, and the Evidence Loop
  62. The Reverse Engineering Landscape: History, Tool Families, and How a Decompiler Is Built
  63. Calling Conventions and Stack Frames: System V, Windows x64, and AArch64
  64. Compiler Idioms: What Optimization Does to Your Code and How to Read It Back
  65. Linking, Loading, and Stripped Binaries: PLT, GOT, Imports, Fixups, and Function Identification
  66. Recovering Data and Types: Structs, Arrays, C++ Objects, and DWARF
  67. Dynamic Analysis of Your Own Program: Debuggers, Traces, and Confirming Static Claims
  68. Beyond Native Code: Python, JVM, .NET, and WebAssembly Bytecode
  69. Binary Diffing and Symbolic Execution: Matching Functions and Solving for Inputs
  70. AI-Assisted Reverse Engineering: LLM Decompilers, Analysis Agents, and Ground Truth
  71. The Agent Loop
  72. ReWOO and Plan-and-Execute
  73. Reflexion and Verbal Reinforcement Learning
  74. Tree of Thoughts and LATS
  75. Self-Refine and CRITIC
  76. Tool Use and Function Calling
  77. Agent Memory — Virtual Context and Memory Paging
  78. Memory Blocks and Sleep-Time Compute
  79. Hybrid Memory — Vector + Graph + KV
  80. Skill Libraries and Lifelong Learning (Voyager)
  81. Planning with HTN and Evolutionary Search
  82. Anthropic's Workflow Patterns
  83. Stateful Graph Orchestration — Durable Execution and Checkpoints
  84. The Actor Model for Agents
  85. Role-Based Agent Teams — Roles, Tasks, Processes
  86. OpenAI Agents SDK — Handoffs, Guardrails, Tracing
  87. The Harness as a Library — Subagents and Session Store
  88. Production Agent Runtimes
  89. Benchmarks — SWE-bench, GAIA, AgentBench
  90. Benchmarks — WebArena and OSWorld
  91. Computer Use — Claude, OpenAI CUA, Gemini
  92. Voice Agents — Pipecat and LiveKit
  93. OpenTelemetry GenAI Semantic Conventions
  94. Agent Observability — Langfuse, Phoenix, Opik
  95. Multi-Agent Debate and Collaboration
  96. Failure Modes — Why Agents Break
  97. Prompt Injection and the PVE Defense
  98. Orchestration Patterns — Supervisor, Swarm, Hierarchical
  99. Production Runtimes — Queue, Event, Cron
  100. Eval-Driven Agent Development
  101. Agent Workbench: Why Capable Models Still Fail
  102. The Minimal Agent Workbench
  103. Agent Instructions as Executable Constraints
  104. Repo Memory and Durable State
  105. Initialization Scripts for Agents
  106. Scope Contracts and Task Boundaries
  107. Runtime Feedback Loops
  108. Verification Gates
  109. Reviewer Agent: Separate Builder from Marker
  110. Multi-Session Handoff
  111. The Workbench on a Real Repo
  112. Capstone: Ship a Reusable Agent Workbench Pack
  113. Frame the Task Before the Agent Writes Code
  114. Build an Evidence-Backed Execution Plan
  115. Delegate Agent Work with Isolation and Merge Contracts
  116. Turn Every Agent Correction into a System Improvement
  117. Define the Outcome Before You Choose the Output
  118. Discover the Workflow People Actually Perform
  119. Map Assumptions and Resolve the Riskiest One First
  120. Choose the Smallest Slice That Can Change the Decision
  121. Write Specifications That Preserve Judgment
  122. Design Success Metrics Before the Result Exists
  123. Choose Prototype, Pilot, or Production Deliberately
  124. Build a Feedback Ratchet with Ownership and Retirement
  125. From Chatbots to Long-Horizon Agents (METR)
  126. STaR, V-STaR, Quiet-STaR: Self-Taught Reasoning
  127. AlphaEvolve: Evolutionary Coding Agents
  128. Darwin Gödel Machine: Self-Modifying Agents
  129. AI Scientist v2: Workshop-Level Research
  130. Automated Alignment Research (Anthropic AAR)
  131. Recursive Self-Improvement: Capability vs Alignment
  132. Bounded Self-Improvement Designs
  133. Autonomous Coding Agent Landscape (SWE-bench, CodeAct)
  134. Permission Modes for Autonomous Agents
  135. Browser Agents and Indirect Prompt Injection
  136. Durable Execution for Long-Running Agents
  137. Action Budgets, Iteration Caps, Cost Governors
  138. Kill Switches, Circuit Breakers, Canary Tokens
  139. HITL: Propose-Then-Commit
  140. Checkpoints and Rollback
  141. Constitutional AI and Rule Overrides
  142. Llama Guard and Input/Output Classification
  143. Anthropic Responsible Scaling Policy v3.0
  144. OpenAI Preparedness Framework and DeepMind FSF
  145. METR Time Horizons and External Evaluation
  146. CAIS, CAISI, and Societal-Scale Risk
  147. Why Multi-Agent
  148. FIPA-ACL Heritage and Speech Acts
  149. Communication Protocols
  150. The Multi-Agent Primitive Model
  151. Supervisor / Orchestrator-Worker Pattern
  152. Hierarchical Architecture and Decomposition Drift
  153. Society of Mind and Multi-Agent Debate
  154. Role Specialization — Planner / Critic / Executor / Verifier
  155. Parallel Swarm and Networked Architectures
  156. Group Chat and Speaker Selection
  157. Handoffs and Routines (Stateless Orchestration)
  158. A2A — The Agent-to-Agent Protocol
  159. Shared Memory and Blackboard Patterns
  160. Consensus and Byzantine Fault Tolerance
  161. Voting, Self-Consistency, and Debate Topology
  162. Negotiation and Bargaining
  163. Generative Agents and Emergent Simulation
  164. Theory of Mind and Emergent Coordination
  165. Swarm Optimization (PSO, ACO)
  166. MARL — MADDPG, QMIX, MAPPO
  167. Agent Economies, Token Incentives, Reputation
  168. Production Scaling — Queues, Checkpoints, Durability
  169. Failure Modes — MAST, Groupthink, Monoculture
  170. Evaluation and Coordination Benchmarks
  171. Case Studies and 2026 State of the Art
Code and artifacts 1
What you take away

Saved in your notebook on this device.

Sources and limits

Reading checkpoints are self-reported. Test results are recorded separately and apply to the executed cases.

AI Engineering from Scratch · 3f9715c · MIT

Download this file ↓