Making a PHP app legible to AI agents
Description and use
<h2> The problem: agents invent APIs </h2> <p>I've been building CMS software for web designers since 2015. This year I started building with coding agents every day, and I kept hitting the same failure.</p> <p>I'd ask an agent to add a section to a site, and it would confidently write a template that called a function that didn't exist. Plausible name, plausible arguments, wrong. Sometimes it came from an older version. Sometimes it was invented whole.</p> <p>The code looked right, and that was the problem. A broken build is easy to catch. Plausible code against an API that isn't there gets p
Problem
<h2> The problem: agents invent APIs </h2> <p>I've been building CMS software for web designers since 2015. This year I started building with coding agents every day, and I kept hitting the same failure.</p> <p>I'd ask an agent to add a section to a site, and it would confidently write a template that called a function that didn't exist. Plausible name, plausible arguments, wrong. Sometimes it came from an older version. Sometimes it was invented whole.</p> <p>The code looked right, and that was the problem. A broken build is easy to catch. Plausible code against an API that isn't there gets p
Outcome
<h2> The problem: agents invent APIs </h2> <p>I've been building CMS software for web designers since 2015. This year I started building with coding agents every day, and I kept hitting the same failure.</p> <p>I'd ask an agent to add a section to a site, and it would confidently write a template that called a function that didn't exist. Plausible name, plausible arguments, wrong. Sometimes it came from an older version. Sometimes it was invented whole.</p> <p>The code looked right, and that was the problem. A broken build is easy to catch. Plausible code against an API that isn't there gets p
Evidence
Making a PHP app legible to AI agents
- Record date: 2026-10-01T20:41:04.229Z