Field notes on using AI for actual life.
Real receipts, not advice.

AN OPEN LAB NOTEBOOK
← BACK TO THE LOG

Check what's already there

Sunday was the work before the work, twice. First: weekend-build research for an MCP server giving AI agents one-click access to a hosting platform's API, starting with spinning up a site cloned from a template. Before writing a line of code, I had the agent survey what already exists — good thing, because the raw coverage problem is solved. Someone already built it: 66 tools generated from the API's spec, tiered safety gates, response summarization, even drift detection. It's also obscure, untouched since February, and has no license — a pattern library, not a dependency. Another repo turned out to be slash-command snippets only: no MCP server, no dashboard, no support for half the agents people use.

So the project reframed itself before it started. Don't build another API wrapper; I'd lose that fight. The actual gap is distribution: one-click install buttons, a dashboard where a customer connects their account, support for the agents nobody covers yet, and the clone-from-template workflow as the hero demo. The API is the easy part. The last mile is the product.

Then: a cleanup audit on the WordPress demo site. After migrating products to WooCommerce, I was sure there'd be dead code everywhere — old post types, migration tools, orphaned plugins. I had the agent audit first instead of deleting first, and the honest verdict was less dead code than I'd hoped: the migration was clean. What was actually dead got switched off; what was still load-bearing stayed. The one thing left is a two-tap plugin delete the automation kept fumbling, so that's mine.

WHAT I TRIED

  • Having the agent map the prior art before scoping the build: public repos, their tool counts, their safety models, their gaps. Checking the "obvious" alternative instead of assuming it was equivalent — it wasn't.
  • A read-only audit of the demo site before touching anything: what's registered, what's actually queried, what's truly dead.

WHAT WORKED

  • Research first. Half a day of reading saved weeks of building the wrong thing. The steal list — spec codegen with drift checks, tiered safety, composite tools named after workflows — is all liftable as patterns.
  • Audit first. The migration was clean, so most suspected cruft wasn't cruft. Dead stuff off, load-bearing stuff kept, and nothing broke.

WHAT FLOPPED

  • My original mental model, which was "wrap the API." The API was never the hard part — that's exactly why someone already did it and nobody noticed.
  • My cleanup instinct, which was "there must be dead code everywhere." There wasn't. Deleting first would have broken the thing that powers the site's finder.

THE LESSON

Check what's already there before you build or break. The wrapper existed; the cruft mostly didn't. The work before the work is looking.