· 4 min read

Teach the What, Not the How: Rethinking Workshops for Coding Agents


At WordCamp Canada this year I ran a workshop on the Interactivity API. Before we got going, I asked the room whether they wanted to code along or watch me build it. Most of them picked watch, and the laptops stayed closed for pretty much the whole session.

The workshop went well. People asked good questions, the feedback was positive, and everyone left knowing what the Interactivity API is and when they’d use it. But afterwards, a few attendees and a couple of other speakers asked me some version of the same question.

Why not just point a coding agent at the repo and let it do what you were doing?

It’s a fair question. Most of what I did on stage was copy code in, explain it, and move to the next step. An agent can do that for you now, and it’s pretty good at it. So are workshops dead? I don’t think so. But I do think the way we run them has to change.

Most workshops teach imperatively

The classic coding workshop is a list of instructions. Open this file, paste this block, refresh the page and see what changed. If you fall behind, there’s a branch you can check out to catch up.

The idea was always that typing it yourself is how it sticks. That made sense when the typing was the hard part. With an agent in your editor, it isn’t anymore, and I think that’s a big part of why the laptops stayed closed.

Teach it declaratively instead

The Interactivity API is declarative. You add data-wp-* directives to your markup to describe what should happen, and the framework works out how to make it happen. I was teaching a declarative API with an imperative workshop, and I didn’t really notice until that workshop.

So what does a declarative workshop look like? I think it focuses on what the thing does, when you’d reach for it, and what good output looks like, and you hand the how to the tooling. For this workshop, that would mean a few changes.

  • Make the skills a prerequisite. The WordPress agent skills already include an Interactivity API skill, so I’d ask everyone to install them before the session. That way their agent already knows the basics when they sit down.
  • Spend the session on concepts and decisions instead of keystrokes, like where state should live and what the server renders before anything hydrates.
  • I’d let the agent do the build on screen and have the room review what it produced. Would you ship this? What would you change?

The “hey, check this out” talks stay exactly as they are. A new API and a good demo of what you can build with it never really depended on the how.

I don’t know yet if this is the right format. I haven’t run it. But it’s a lot closer to how people actually build things now.

The part an agent can’t do

So, am I talking myself out of a job here? I don’t think so. Most of what makes a workshop worth going to happens in the room, and an agent isn’t in the room.

People come to in-person events to be around other people. They want to ask a question and get an answer from someone who’s been stuck on the same thing. They get excited about a new API because the person at the front is excited about it. A skill can teach your agent how to write a store, but it can’t do any of that.

There’s also deciding what’s worth showing. An agent will build whatever you ask for. Somebody still has to pick what to ask for, and what deserves an hour of a room’s attention at a WordCamp.

If you’re putting together a workshop for your next WordCamp, go through it and ask which parts an agent could do for your attendees, then spend your time on everything else. And ask the room on day one whether they want to code along. I’m going to keep asking at mine.

Leave a Reply

Your email address will not be published. Required fields are marked *


Keep going