Building a Dojo to Keep Up with Code Generation
- Entry
- No. 61
- Date
- Reading time
- 7 min
- Status
- Borne out
- Author
- Jeff Breece
Summary: This post is about three things in teh Agentic AI age:
- self paced learning systems to build competence
- combatting the inevitable cognitive debt a human or organization experiences as a result of AI enablement
- the sad trombone experience of being a solution architect who introduces a great deal of technical change but leaves his organization struggling to keep up, which was the idea behind this in-progress build
We’ve been working with Gen AI now for enough time to understand it’s value. I told a colleague recently, it’s not the LLM’s that excite me, it’s the “agentic” orchestration tier that loops around a given build spec. That’s what got my attention plus the generative tooling. As a critic of mediocrity, but not a hypocrite, I have been working with Azure Foundry in my own tenant, Open AI Codex for work, Git Hub Co Pilot, and then Anthropic’s Claude. It was clumsy at first until I abandoned the “chat” mode and began to treat it like an expensive “mainframe” to control not just the qaulity of the output, but also to manage the cost in dollars, energy and water that these massive platforms demand.
So, I’m building something I call the Dojo, a term I borrow loosely from when I was much younger and in an Aikido school. It loads a body of knowledge I pick (an exam blueprint, a set of runbooks, the architectural and code patterns behind a system I built, or need to understand, etc.) and the Dojo turns it into various keikos, drills, hints and spaced practice, so the material is still in my head after the agent sessions close. As stated earlier, the problem behind it has a name now, cognitive debt: the more of my thinking I hand to AI, the less of it seems to stay with with the engineer. The Dojo uses AI to pay some of that back. This is something I will be putting out on my now purged GitHub (out with the old, in with the new) as an Open Source project so feel free to grab the code, or the patterns and ideas, or to do it better because all of us now live in an AI world, but that does not mean we have to lose sight of our responsibility to think.
Cognitive debt
This is now seen in the erosion of a team’s shared understanding of a software system over time. It becomes especially important with AI-assisted development because AI can produce working code faster than humans build a mental model of what that code does, why it exists, and how it fits together. I know from personal experience after an eight month self driven training path I have just completed toward getting ready to take yet more certification tests.
A useful model from Margaret-Anne Storey separates software debt into three related layers:
- Technical debt: problems accumulate in the code, making the system harder to change.
- Cognitive debt: understanding deteriorates in the people, making the system harder to reason about.
- Intent debt: rationale, goals, and constraints aren’t adequately externalized, making it harder to understand why the system exists or why decisions were made.
Studying for a certification is one use for the Dojo, and, after a nervous conversation with a colleague about the cloud architecture changes I have introduced at work, it’s also about giving my team a place to rehearse a P1 before it happens. What I’m after is a bit wider than either: being able to dynamically load up a corpus of knowledge and work through it with two less expensive models that are not hard coupled into the system (Ollama local and GPT minis in Azure Foundry in my own case with pre indexed information in order to accomplish this), so the knowledge ends up in our heads as well as in a model’s context window. I’m human, I need to do the keiko’s, then master the moves, hence the name.
What it does with a corpus
I give the Dojo the material I want to practice. That might be an Azure or GitHub exam blueprint, a set of runbooks (100+ in my case from the lab I have built), a design or architectural framework, or the notes behind a system nobody else has touched in years.
Agents read those sources and write drills from them, and every question cites the passage it came from. Before I see a drill, a second model answers it blind and checks each citation. The reason for that check is fairly simple: the agent that wrote the question already knows the answer it had in mind, so it’s a poor judge of whether the passage supports it. A model that gets only the question and the source is in a better position to notice when a citation points at the wrong paragraph, or when the answer isn’t in the source at all.
Note: I’m using more AI for this for the reason that the system I am creating is meant for larger volumes of knowledge to support intellectual growth.

Practice that keeps track of what I’m forgetting
When I get stuck, a sensei coaches me through a hint ladder: a small nudge first, then something more specific if I’m still stuck, so I do as much of the remembering, via the Wax On Wax Off paradigm, as I can before it gives anything away. Spaced repetition brings items back around the time I’m likely to forget them, and mastery fades on screen when I stop practicing, which is a slightly uncomfortable thing to watch (and that’s the point of showing it).
An early wireframe of a practice session, with a sample exam track. The finished app will look different.
On every answer I rate how confident I am, and the Dojo tracks how well that confidence matches what I got right. A wrong answer I was unsure about is a gap I already know about. A wrong answer I was sure of is the more dangerous kind, because it’s the one I’d act on at 2 a.m. when things catch on fire without checking.
Cropped from an early wireframe of the readiness page. The numbers are sample data.
There are also hands-on labs and scenario walkthroughs, where I can rehearse a failure on recorded evidence before it happens for real. A review board and a timed exam simulator are there to tell me when I’m ready.
An early wireframe of the lab bay, with a sample lab.
Built by agents, checked by a different one
There’s a bit of irony in using agentic AI to build a tool meant to keep more of my thinking in my own head, and I’m aware of it. The Dojo itself is a learning exercise. With my local AI, it was meant for me to avoid the pattern I have seen with people trying to adopt AI and, instead, becoming a token burner. I got good enough with this on my own dime, then used it for a trial at my office with Codex and learned… I had more to learn when I ended up on the leader board - not a title I want. As a benefit of that “honor,” I have refined my agentic patterns and now can confidently run several agentic “teams” with the builder, author, and auditor pattern with myself as the architect, or “human at the wheel.”
Builder agents write each piece of work. A separate auditor agent reviews it and tries to break it before it can merge, and the auditor is never the agent that built it. I direct the decisions that matter. It’s the same idea I wrote about in the ledger post: a model checking its own work tends to agree with itself, so the check comes from somewhere else. The blind checker on the drills is that same idea, applied to the content instead of the code.
Privacy and spending
The Dojo runs on my own Azure OpenAI deployment, with a hard monthly spending limit, so a runaway loop should cost no more than a number I picked in advance. Private sources stay in that deployment. The design is that whoever runs it sets their own AI spending limit, and can see, export or delete everything it holds about them. When I complete the build and push to GitHub this system will be easily reusable by anyone with configurations for whatever AI system they have to send calls back and forth from. Thus, decoupled from any specific vendor or platform.
Wrapping Up
I’m about 50% through with the build with a goal of publishing it in about a week so I can start the certification track and, of course, keep up with my own use of agents via keikos daily.
If you want to try the core idea without any of this, the confidence rating is probably the cheapest place to start. Next time an assistant answers something you used to know, guess first, write down how sure you were, and then compare.
I’m not averse to AI, it’s a great tool and I’m certain human culture will drive toward positive change, not necessarily, the shareholders. It’s our responsibility to keep up with these platforms and not accept cognitive debt as a fact of life as we begin to realize just how powerful these things are.