Skip to content

Designing an Open-Source Product With Claude Code Sessions

How I designed Enterprise Applications Governance with Claude Code sessions in one weekend: the session split, the gates, the decision log, the human calls.

Alex Pechenizkiy 9 min read
Designing an Open-Source Product With Claude Code Sessions

On Saturday 2026-11-21, at about 4:30 PM Eastern, I set up a private workspace to design, with Claude Code sessions, the next version of Enterprise Applications Governance: an open-source product designed to govern AI development of the apps an organization runs. Open-source application portfolio management. Designed to work with Microsoft Power Platform and the apps around it. I published the first release in 2021: a Microsoft Dataverse solution, open source under MIT, last 2021 commit e1b6d20 on 2021-08-24. It was my own work, and it predates the Claude Code work this post describes.

By about 8:45 PM on Sunday the next version had a design, 28 recorded decisions, 128 Visio diagram pages, an offline code core with 1,734 passing tests, and 15 live website pages that describe it. The product itself is still in design. None of it is released, and none of it runs for any client.

This post is for AI builders and IT leads who want to know how that work was organized. It is about splitting the work across Claude Code sessions, putting gates in front of anything that ships, and keeping every real decision with a person.

The split: one job per Claude Code session

Each Claude Code session had its own repository and its own job. They coordinated by sending each other messages. The rule that held the whole thing together: no session could approve anything on my behalf.

SessionJob
Product designResearch, the design, the diagrams, the build plan, the offline code core, the checks and the decision log, in a private repository
Website and SEOOwns the Citizen Development Academy site. Wrote, checked and published the 15 pages, led the naming work, set the icon rules for diagrams
Peer sessionGave an outside view on the name and the platform, and checked licensing facts
Content pipelineThe drafting and publishing route the sites use, with topic, brief and publish approvals, a publish check, and visual checks at phone and desktop width

Inside a session, larger jobs ran as workflows. One agent builds, another integrates, and a critic checks the result before it counts as done. The base setup (memory, gates, pipelines) is the one in Agentic Development with Claude Code: The Setup That Actually Works.

The split matters more than the model. A session that owns the design should not also be deciding what the public website says about that design. When the website session needed facts, the design session wrote a fact block and a page brief, and the website session wrote from those. A peer could recommend a name. It could not pick one.

Saturday: questions, one at a time

The first plan was an upgrade of the 2021 release. By 6:41 PM it had been written and checked, and I put it on hold. I chose a clean, design-first rebuild instead: the problems and the Microsoft fit first, then the design, then a build plan.

From about 7:21 PM to 7:41 PM, and again from 9:10 PM to 11:11 PM, I answered design questions, one at a time. Each question arrived with background, an example, options with pros and cons, a recommendation, and what the answer would change. Some of the Saturday answers, in plain words:

  • The product is designed never to rebuild what a Microsoft tool already does, and to link to it or listen to it instead.
  • It is designed for people to work through AI clients over MCP first, with Claude Code as the reference client.
  • Risk tiers, decision rights and every rule are designed as configuration, never hardcoded.
  • AI is designed to make configuration changes on an admin’s instruction. Nobody edits rules by hand.
  • The change gate (record, flag, advise or enforce) stays open, chosen per client.

The decision log as a practice

A person decides. AI drafts the options and applies the answer. That sentence is the whole method, and the decision log is how it stays honest.

  • Every answer goes into the log with its date, time, reason and what it means for the design.
  • Agents read the log before they write.
  • When a later answer changes an earlier one, the log says what it supersedes.
  • Nothing settled is asked again.

By about 8:45 PM on Sunday the log held 28 entries, from Saturday at about 7:21 PM to Sunday at about 8:28 PM. Two more followed before midnight: D-29, on who pushes, and D-30, on sixteen hours of independent work. Two entries recorded questions left open at the time. Each decision also has a short public decision record under the same number: the context, the options, the choice and why. D-21 is not about the technical design, so its public record is a stub that keeps the number.

The log earned its keep on Sunday evening. At about 5:50 PM I decided to keep the code private until the main design choices were settled (decision D-24 in the log). At about 8:25 PM I replaced that call (D-27): open the technical work under MIT. Because the log records what each entry supersedes, D-27 is marked as replacing D-24, and the old call is not asked again.

Letting Claude Code sessions work unattended: the safety rules

At 11:35 PM on Saturday I stepped away for about 18 hours and delegated: keep working, coordinate with the other sessions, then plan, design, diagram and start the solution. Before anything else, the design session wrote an away plan with safety rules drawn from my standing rules:

  • No commit, no push and no branch in the design session’s own repositories while I was away. The website session published pages under a separate go-ahead from me.
  • No sign-in as me, no interactive sign-in, no writes to any tenant, no emails or posts.
  • Nothing internal goes into the public repository.
  • A peer session cannot approve anything on my behalf. The name is my pick.
  • Questions go into one list for my return, each with background, options and a recommendation.

The sessions made 35 smaller calls under that delegation. Each one is logged with its time, its reason and whether it can be undone. When I came back, I read one summary page with every open question in full context.

The verification gates before anything shipped

Nothing shipped on a model’s say-so. These were the gates, with the weekend’s own numbers. (For the techniques behind them, see How to Align Claude Code With Your Codebase.)

  • Microsoft Learn checks. Every Microsoft fact is checked against Microsoft Learn, with the check date. A news sweep made 12 corrections; the guides carry 40 dated Learn links.
  • Scrub gate. A private list of terms that must never go public, run over every file and draft. 16 scrub checks of website drafts; the code’s scrub step covered 1,226 source files.
  • Claims check. Every next-version statement is matched against the public description and kept as “designed to”. 19 statements checked on the first two pages.
  • Adversarial fact checks. Independent checkers try to prove a claim wrong. Three checkers matched every Microsoft quote in one hand-over package to its live Learn page.
  • Adversarial probes. Attacks written to break the code’s rules. 108 probes against the write guard in one round.
  • Critics. A separate agent reviews each deliverable before it counts as done: briefs, design, diagrams, build plan, naming page, return page, every code round.
  • Visual QA. Checks of pages and designs at phone and desktop width; page designs checked at 390 px and 1280 px.

What went wrong, and what caught it

The gates are only worth describing because they caught real problems.

  • Present tense on several pages. Next-version features must read “designed to”, never “it does”. The claims check found four tense errors before four articles went live, and they were fixed first.
  • Dated deadlines. Three dated Microsoft deadlines were cut from one page in the claims check before it published.
  • Conflicts inside the design. A critic on the logical design found 16 internal conflicts and 23 questions. Seventeen became working defaults; six went to me.
  • Gaps in the write guard. Seventeen adversarial probes found older gaps. After hardening, 108 probes ran against the guard. It held on 90. Of the 18 breaks, 16 were fixed and 2 stay open as design questions instead of guesses. No probe got an AI to approve, accept or activate anything.

The design idea: governance inside the AI build loop

The decision I set on Sunday at about 8:28 PM (D-28) is the keynote: the product is about governing AI development of the apps, from the organization’s view and IT’s view, with one playbook for both. It is designed to enable AI development, not to slow it down.

The mechanism is the product’s own MCP server. It is designed so the AI builder can ask the governance questions while it builds: who owns this app, what tier is it, what needs a decision. The AI drafts. People decide. The same idea at the pipeline end is in Scanning AI-Generated Code in Pipelines.

The offline core already tests that boundary. It is a set of libraries on a developer machine, with fictional data, an in-memory store and a mock sign-in. It is deployed to no cloud and runs for no client. In the eighth code round, a scripted walkthrough with fictional people ran as a test. In step 4 the AI tries to approve three ways and is refused each time. An earlier review found no path for an AI to approve, accept or activate.

What still needed a human

The AI sessions drafted every document, option card and page. They compared seven candidate names and recommended. They compared two platforms and recommended. These calls stayed with me:

  • The platform. At about 6:10 PM on Sunday I decided the first release is designed to run in the client’s own Azure subscription (D-26). Most users are owners and reviewers, not builders, so it is designed so they need no Power Apps license for it, and it is designed to keep the data in the client’s subscription.
  • The name. The website session settled the interim public name under my delegation. The final name is mine and still open.
  • Authorship and licensing. I confirmed the 2021 name and release are my own work, and I decided to open the technical work under MIT. The reason I gave in the log: authorship.
  • Pushing. I decided who pushes (D-29). When I handed the push to one Claude Code session, it pushed only the two repositories I named, and it pushed the public one only after every final check was green.

Where the record lives

The working repository went to a private, dated backup: crmvet/enterprise-applications-governance-workspace, first commit b40968a at 2026-11-22 20:17:55 -0500 (Eastern), 1,894 files. The private GitHub repository was created and first pushed at about 11:17 PM that night.

The technical side went public under MIT in the public repository: the code, the technical design documents, the decision records, the public-safe diagrams, the playbook, the guidelines and a technical build log. It went public on Monday, November 23, 2026, in commit 4faba8f, made at 12:25 AM Eastern and pushed at about 12:26 AM, after the final checks passed. That commit held decision records D-01 to D-28; D-29 and D-30 followed in commit 60a08bc. Start with the overview and the decision records. The code is early work that follows the design, not a release. My internal notes, goals and plans stay private.

For a plain-language overview, the Enterprise Applications Governance product page explains what the product is designed to do. The Microsoft tools hub maps the Microsoft tools it is designed to link to rather than rebuild. The dated public record of authorship, with the commits, is on crm.vet: Enterprise Applications Governance V2: Building With AI.

If you are building with Claude Code, the parts worth copying are not the numbers. One job per session. Gates before anything ships. A decision log the agents read before they write. And a short list of calls no agent is allowed to make.

Get a second opinion on your AI build

If your team builds apps with Claude Code or other AI tools and you want to know how that work is governed, Citizen Development Academy runs a short review: we look at what your team has built or plans to build with AI, name the top three risks, and recommend one next step. Book a free 30-minute AI app review with Citizen Development Academy.

Stay in the loop

Get new posts delivered to your inbox. No spam, unsubscribe anytime.

Related articles