Articles November 2, 2026

Theory.md: managing cognitive and intent debt in AI-assisted development

In our newfound AI powered workplaces, one problem is slowly building up, a cognitive burden that is getting harder to manage as AI keeps building.

Theory.md: managing cognitive and intent debt in AI-assisted development

Before we attempt any solution, it’s important to define the problem else the solution will be reduced to a mere gimmick to most readers. AI has pushed software development to a new age where humans are no longer required to read and write code. “Be” and lo and behold; something is built in exchange of water and electricity offered to some complex rocks. This new power has not only increased the speed of development, it outran an engineer’s understanding of what they are building. This is the first problem that needs most of our attention because when building something for a single user or a few it might not matter much but as complexity and scale increases it becomes necessary that engineers have understanding of the system they are building. Margaret-Anne Storey’s “Triple Debt Model” article defines this accumulated loss of understanding of what a system does, why and who on the team has the understanding as “Cognitive Debt”. This makes it harder to maintain and onboard new engineers.

The solution might not be just another harness or more complicated software. The solution is in small cultural shifts between team members or even simplifying this it could be a small checklist of dos and don’t which can later be enforced by software.

Here’s what we (me and my team) are doing. We use obsidian for developing a “theoretical model” of our software. This is something I called it at first. But when digging for related works I found Peter Naur’s 1985 essay “Programming as Theory Building” to have explained it more in-depth. Calling the text a theory is simpler than theoretical model, this is against Naur’s explanation of theory being something that cannot be fully written down, the text is just a trace. For simplicity sake we’ll just call this theory. Naur’s essay questions what programming produces, it’s evident it produces code and documentation but Naur argues it’s “theory”. Theory as he defines in our line of work, is the understanding that a programmer builds in their heads of how the program relates to the problem it solves. Naur’s work helps us define the 2nd problem that needs addressing, accountability. How do you verify if someone on the team is being responsible for certain parts they build; that they know what they have built and simply did not let AI take control? Naur defines understanding of theory based on the following:

Meaning, a sober engineer will be able to explain what the program represents in the real world and what it ignores. Individual should know the why behind each rule and can respond to any request for change in the system. We can use the same theories to test ownership. This helps us make sure no one loses track while building.

Theory.md is an open source simple obsidian plugin that uses gh (github gli tool) and claude code to control context. Instead of writing unorganized prompts, engineers collaborate on a theory repository inside obsidian. They write the what and whys with, proper guardrails in the code repositories. Instead of spending hours on manually prompting engineers write rules with IDs inside each note.md named after their feature and then multiple changes (diffs) are compiled to code after committing them to project’s theory repository. So, far it seems useful but we’ll be more confident once we use it more. Have a look at the plugin respository. We are building theory.md using theory.md

Repository: https://github.com/imtiazkun/theory-obsidian Reach out to me by email if you want to collaborate or create an issue on githug if you have anything interesting.