References: How AI Coding Agents Work and Fail¶
-
Large language model - Wikipedia - Explains how large language models are trained and how they predict text one token at a time. It is the base for understanding what an AI coding agent can and can't know.
-
Hallucination (artificial intelligence) - Wikipedia - Covers why models produce fluent but false statements, with examples and causes. It supports the chapter's warning about confident wrong answers from agents.
-
Vibe coding - Wikipedia - Describes the practice of building software mainly by prompting an AI and accepting its code. It names the working style this book wants to make safer.
-
AI Engineering: Building Applications with Foundation Models - Chip Huyen - O'Reilly Media, 2025 - Huyen is known for treating model output as something to evaluate, not trust, and for her clear account of context and prompts. It helps builders reason about agent failures.
-
Build a Large Language Model (From Scratch) - Sebastian Raschka - Manning, 2024 - Raschka builds a small model step by step, with diagrams of tokens, attention and context. Seeing the parts makes context windows and token costs concrete.
-
Best practices for Claude Code - Anthropic - Practical advice on planning before code, giving agents context and checking their work. It supports the chapter's sections on plan before code and agent instructions.
-
How Claude remembers your project - Anthropic - Explains how CLAUDE.md files give an agent standing project instructions. It shows how a project instruction file works in practice.
-
AGENTS.md - AGENTS.md - Describes the shared AGENTS.md format that many coding agents read for project rules. It is the cross-tool version of the project instruction file in this chapter.
-
Building effective AI agents - Anthropic - Explains how agents use tools in a loop and when simpler workflows are better. It helps builders understand agent tool use and subagents.
-
Context windows - Anthropic - Describes how much text a model can hold at once and what happens as a conversation grows. It backs the chapter's account of context drift and token cost.
-
Lost in the Middle: How Language Models Use Long Contexts - Nelson F. Liu and colleagues - Transactions of the Association for Computational Linguistics, 2024 - The study behind the chapter's point that models use information at the start and end of a long input better than information in the middle. It explains why an early instruction can fade while still in the window.