When I ask an AI agent to get a site online, a working page is the easiest thing for both of us to check. If a new handler or a special case gets the page working, the agent might take that route. Sometimes that's fine, especially when I'm trying something out. I usually find out whether it was a good fit when I come back to make the next change.
That happened when I asked an agent to build documentation sites for Antsand and C-Kernel-Engine. Both sites worked. Then I went to add another chapter. After writing it in Docs, I still had to go into Databoard and make a page for it. The agent had solved the task I gave it. I hadn't told it what adding the next chapter should look like.
Where the extra work came from
In Antsand, Docs already knows the chapter's title, Markdown, place in the outline and whether it's published. Databoard does a different job. I think of it as an HMVC compiler: it takes a site's configuration and generates modules, controllers, actions and views. An action handles a request and gives the view the data it needs. It can render a different chapter based on one parameter.
The first version used Databoard to define a page for every chapter. As far as the agent was concerned, that got the job done. But we were now maintaining the list of chapters in two places. If a chapter moved or a new one appeared, there was a second configuration to keep up with. You wouldn't notice that from the public page. The person editing the docs would notice it the next time they published.
One guide action, many chapter URLs
On each site, Databoard now defines the docs landing page and the shared guide page. When you open /guides/inkling, the generated guide action takes inkling as its slug, looks it up in that site's published Docs snapshot, and hands the chapter to the shared template. A missing or withdrawn chapter returns a 404. The URL shows a readable name rather than an internal record ID.
The deployed copy is still a snapshot. The site can render a chapter without asking the Docs editor for it on every visit. The difference is that nobody edits that copy as a second source of truth. When I need to change the text or move a chapter, I go to Docs. When I need to change the layout or routing, I go to Databoard. The publishing guide shows the mapping, and the Databoard architecture guide shows what the compiler generates.
If you work in C, the closest analogy I have is a reference to data. The Databoard configuration tells the generated site where to get its chapter data and how to present it. It doesn't need to recreate a handler for every record. The template sends HTML and CSS to the browser, and JavaScript handles interactions such as the guide search. I wrote about that preference in my React Brain Rot article. This particular issue was about who owns the content, though. You can duplicate ownership in server-side code just as easily as in a frontend.
Why the architecture matters to the next agent
A lot of what we call factory patterns in Antsand comes from using AI on our own software and then having to maintain what we build. We bring the same software principles to that work: give the data a clear owner, put shared behaviour in one place, and test the standards we depend on. Your codebase doesn't have to look like Antsand. The useful question is what architecture you want the next change to follow, and whether the agent knows what that looks like in your repo.
A capable model may be able to follow a handful of special cases and still make the right change. Sometimes I'm happy with that trade-off. But if every change adds another exception, I have to give the next agent more context or ask it to read more code. A smaller model might miss the one exception that matters. And if I come back to it myself, I have the same detective work to do.
Here's a small example from HMVC. If I'm asking an agent to add an action to a protected part of Antsand, it doesn't need to read the framework's dispatch hooks from top to bottom. It needs to know which controller and action path to use, what the shared access checks already cover, and what the action still has to check itself. In Docs, for example, the controller checks for a signed-in session before running the editing actions, while the public reader is handled separately. I'd test both paths. The point of the abstraction is that neither I nor the agent has to rebuild the session check on every edit.
How I steer the next change
Before the agent writes code, I ask it to trace one existing request and tell me where it plans to make the change. That gives me a chance to catch a detour while it's still an idea. For the docs, I'd give it a brief like this:
- Name the owner. Docs owns titles, chapter text, slugs and publication state. Don't add a second editable chapter list to Databoard.
- Name the path to reuse. Follow the existing guide action and shared view. A new chapter is another record, not a reason to generate another controller or action. If the existing path can't handle the request, show me where it falls short before adding a workaround.
- Test the next ordinary change. Publish a new chapter and follow its URL. Move it and check the navigation. Withdraw it and check for a 404. Confirm Databoard's configuration didn't change throughout.
The repository already has a check that publishes a chapter, changes its icon, moves it, and withdraws it against the same Databoard configuration. I'd make that check part of the release gate for changes to Docs or the generator. A skill can point the agent toward the right module; the gate can stop a change that quietly brings back the second publishing step. The test is narrow on purpose. It doesn't try to decide whether every line of code is good.
What I look for before I call it done
First, I use it. I start where the user would start and do the next ordinary task. For Docs, that means adding a chapter, publishing it, and opening it from the guide navigation. If I have to open a second tool, enter the same information twice, or ask the agent to wire up every new chapter, that's worth looking at even if the demo worked.
Then I follow one request through the code. Which route handles it? Where does it get the data? What checks run before it can read or change anything? I compare that path with a similar feature that's already working. A new endpoint, a second copy of the same record, or a fresh permission check next to an existing one gives me a place to ask why. For an editing action, I'd try it signed out and with a signed-in account that doesn't have access. Checking that the right person can save only tells me half the story.
For me, the useful result is what happens the next time I publish a chapter. I can do it in Docs, and an agent can do it there too. Neither of us needs to know the history of how every guide page was built.