Free chapter, full text

Prologue: From punch cards to agents

Seventy years of automating the making of software, and what each era teaches agent builders.

Free in full. The figures and the end-of-chapter exercises are in the PDF.

In 1957, IBM shipped a compiler that let a scientist write 47 statements where hand-coded machine instructions had needed up to a thousand (IBM, Fortran). Teams then argued about trusting generated code, as teams now argue about agents.

Seventy years of crafting software

Every era starts with a capability jump and ends with a discipline that makes it safe at scale; agents are at the start.

By 1968, programs had outgrown their authors. Dijkstra argued that unrestricted jumps made programs impossible to reason about (Dijkstra, EWD215), and a NATO conference chose the phrase "software engineering" as a provocation (conference report). Objects, open source and the Agile Manifesto of 2001 (Agile Manifesto) followed. Then continuous integration (Fowler), "You build it, you run it" in 2006 (ACM Queue), and microservices in 2014 (Lewis and Fowler). Small services, owned by small teams, deployed many times a day: that is the environment agents now run inside.

The automation lineage

Hollerith's tabulator processed the 1890 US census (US Census Bureau). BPMN 2.0 made process diagrams executable in 2010 (OMG): if you can draw the flowchart, you can run it deterministically (Chapter 2).

Robotic process automation took the opposite route, driving user interfaces like a human, and broke when those interfaces changed (TechTarget). EY saw "as many as 30 to 50% of initial RPA projects fail" (EY, 2016). Agents repeat that wall with more force: Gartner forecasts over 150,000 agents at an average Fortune 500 enterprise by 2028, and only 13% of organizations believe they have the right agent governance (Gartner, Apr 2026).

The AI lineage

After the 1973 Lighthill report, UK funding cuts brought the first British AI winter (IEEE Spectrum). Expert systems "worked well on examples they were designed for but failed on anything slightly different", and their market collapsed in 1987 (DataCamp).

Data and compute changed the game. In June 2017 the Transformer arrived, "based solely on attention mechanisms" (Vaswani et al.). Scaling laws showed loss falling as a power law with size, data and compute (Kaplan et al.), and ChatGPT launched on 30 November 2022 (OpenAI).

From chat to tools

ReAct interleaved reasoning with actions (Yao et al.); OpenAI shipped function calling on 13 June 2023 (OpenAI). In April 2023, Auto-GPT had more GitHub stars than PyTorch, yet it "struggles to effectively break complex tasks into simpler sub-tasks" (TechCrunch). Code was the first domain where agents worked, because code can be checked: SWE-bench started at 1.96% of real issues resolved (Jimenez et al.), and terminal coding agents that edit files, run tests and commit followed in 2025, such as Claude Code (February, Anthropic) and OpenAI's Codex CLI (April, OpenAI).

Reasoning models, MCP and the standards era

OpenAI's o1 (September 2024) was built to "spend more time thinking" (OpenAI), which made cost per task a design variable. Anthropic open-sourced the Model Context Protocol on 25 November 2024 (Anthropic); 2025 brought agent SDKs from every major lab. On 9 December 2025, Anthropic, Block and OpenAI co-founded the Agentic AI Foundation (AAIF) under the Linux Foundation, with MCP as a founding project (Anthropic); A2A joined in August 2026 (AAIF) and Agent Skills in October 2026 (Anthropic), for 10 hosted projects (Linux Foundation, Oct 2026). As of late 2026, the agent stack resembles the web stack around 2015: shared protocols, competing runtimes, an operations discipline still being written.

Lessons from history

# Then Agent practice Chapter
1 Software crisis: power without method Prompts, tool schemas and skills are code: versioned, reviewed, tested 9, 16
2 Expert systems: brittle off the design cases Narrow scope, eval set from real traffic 1, 9
3 Structured programming: goto destroys reasoning Workflow where you can draw it, caps where you cannot 2
4 RPA: sprawl before value Registry from agent one: agent owner, risk tier, retirement date 12
5 DevOps: you build it, you run it Agent team carries the pager and the cost per task 8, 10
6 Hype cycles: two winters, then Auto-GPT Measure before you announce 8, 9
7 Standards: LSP turned per-editor support into one server (Microsoft) Bet on open protocols, keep adapters thin 4
8 Infrastructure as code Model, prompt, tools and budgets as code; log the version of every run 16

Checklist

  • ☐ Every agent has a named agent owner on a team that also runs it in production.
  • ☐ Prompts, tool schemas and model choices live in version control.
  • ☐ An eval set built from real inputs exists before users see the agent.
  • ☐ Loops have hard caps on steps, tokens, time and money.
  • ☐ Every agent is in a registry with its agent owner and risk tier.
  • ☐ No agent drives a UI where an API or MCP server exists.