The Architect's Protocol

A practical architecture for AI-assisted engineering: maintained Markdown knowledge, explicit task context, versioned decisions, and review of generated work.

Layered compute modules and linked information panels form a technical knowledge workflow.

There is a moment in every engineer's career when the tools stop being tools and start being partners. When the terminal isn't just executing commands but orchestrating entire systems alongside you. When you stop writing code and start conducting it. That moment happened to me, and it fundamentally rewired how I build software.

This is a technical blueprint for organizing AI-assisted software work. Its core is a maintained knowledge base and an explicit review loop, not a promise that one engineer replaces an engineering department.


The Command Center

Three screens. Not for vanity — for cognitive separation.

The left monitor runs terminal sessions for software work. Each session receives the task-relevant code, conventions and source evidence it needs. I use maximum reasoning effort for demanding architecture work, while checking what context was actually retrieved and which assumptions still need verification.

The center monitor runs Sublime Text. Not an IDE — a drafting surface. I keep a temporary markdown file on the Desktop where I compose prompts before sending them to Claude. This sounds trivial. It isn't. The difference between a productive AI session and a wasted one is the quality of the instruction. Writing prompts in a dedicated editor forces precision. You edit. You restructure. You think about what the AI needs to know before you hit enter.

The right monitor holds reference material. Documentation, API specs, architecture diagrams, the Slack thread I'm pulling context from.

This isn't ergonomic advice. It's a protocol for cognitive load management — execution on the left, composition in the center, reference on the right. Three cognitive modes, physically separated so they don't contaminate each other.


The First Principle: Data Quality Is Everything

Every framework, every methodology, every "10x developer" trick eventually reduces to one axiom: the quality of your output is bounded by the quality of your input. This is true for compilers, true for neural networks, and devastatingly true for working with large language models.

Most engineers using AI treat it like a search engine with attitude. Vague prompts, vague answers. Stack trace dumps and crossed fingers. "Refactor this" with no context on what this is, what it connects to, or why it exists. Then they complain that AI isn't useful for "real work."

Missing or ambiguous context can cause errors, but the model can also reason incorrectly from good evidence. Improve the input and test the output; neither step replaces the other.

The system aims to make maintained, structured evidence easy to retrieve through Markdown files in Git. Source freshness and successful retrieval still need checks.


The Knowledge Architecture

Every project I work on follows the same structural pattern. It doesn't matter if it's a large-scale enterprise platform or a personal blog managed through API automation. The architecture is identical:

CLAUDE.md sits at the project root. This is the instruction set — it tells Claude Code how to operate within this specific project. Conventions, rules, API patterns, things to never do, things to always do. Depending on the project's complexity, this file ranges from 50 to 300 lines. It's the difference between an AI that knows your codebase and an AI that knows your codebase and how you want it to behave inside it.

docs/ctx.md serves as an index and concise project overview. It records key architecture decisions and links to the full source documents for schemas, deployment procedures and historical reasoning. It is a maintained view, not a guarantee of complete project state.

As documentation grows, divide it into focused sources with an index and clear ownership. Retrieve the relevant complete sections instead of assuming one large file fits every task.

docs/*.md supplements the core with research documents — deep dives on specific subsystems, spike investigations, architectural proposals. Not every project needs them, but the ones that do typically have three to five of these files.

scripts/ contains automation. API helpers, report generators, image generation pipelines, data migration tools — whatever the project needs to reduce manual overhead to zero.

.env holds credentials. Git-ignored, always. Never in code, never in docs.

That's the entire system. Markdown files. Git. A folder structure any junior developer could understand in thirty seconds. The power isn't in the sophistication of the tooling — it's in the discipline of the data.


The Ingestion Layer

A knowledge base is only as valuable as the information flowing into it. My system ingests data from every source that produces signal:

  • Emails — client communications, requirement changes buried in reply chains, technical decisions made in threads that never reach official documentation
  • Slack messages — architecture discussions, incident responses, informal decisions that shape the codebase but never get written down
  • Meeting notes and transcripts — authorized records can capture decisions and follow-ups. Check completeness and retain references to the original evidence.
  • Documents — PRDs, design specs, compliance requirements, onboarding guides, SOWs
  • API connections — live data from project management tools, CI/CD pipelines, monitoring dashboards
  • MCP servers — Model Context Protocol integrations that give Claude direct access to external systems and structured data sources
  • Images and scans — whiteboard photos, architecture diagrams, scanned documents, screenshots
  • Web pages — reference documentation, competitor analysis, vendor APIs, relevant research

None of these sources are valuable in isolation. A raw meeting transcript is noise. A Slack thread is chaos. An email chain is archaeology. The value is created when this raw material gets processed, structured, and integrated into the knowledge base — distilled into something the system can reason about.


The Continuous Refinement Loop

This is where the system becomes more than the sum of its parts. The workflow isn't linear — it's a continuous feedback loop:

AI-assisted engineering workflow from evidence gathering through knowledge maintenance, verified output and refinement.
The Continuous Refinement Loop — A generic engineering workflow connects authorized evidence, analysis, a versioned knowledge base and verified output.

Ingest — raw data enters the system from any source. An email with a new requirement. A meeting where the team changed direction. A Slack message revealing a production issue nobody documented.

Analyze — this is the partnership. An engineer and Claude process the authorized evidence together. What does this mean for the project? Does it change the architecture? Does it invalidate a previous decision? What needs to be updated, and where?

Store — the processed information gets written into the knowledge base as structured markdown. Every decision includes the why. Every change is tracked. The knowledge base doesn't just record what happened — it records the reasoning, the constraints, the tradeoffs.

Refine — updated evidence is recorded with provenance and made discoverable for later sessions. The next session must retrieve it and check freshness. A versioned knowledge base preserves recorded work; it cannot recover a decision that nobody captured.

Output — products ship, documentation gets written, reports get generated, insights emerge that wouldn't have been visible without the accumulated context. And even the outputs feed back — a shipped feature updates the knowledge base with its final implementation details, closing the loop.

The loop runs when work produces meaningful evidence. Explicit updates, source checks and review keep the record useful; continuous perfect capture is not assumed.


Operating at Scale

The same basic pattern can be adapted to complex platforms, focused migrations and publication tooling. Its value depends on maintained sources and the checks around each workflow.

On a complex project, separate architecture records, authentication design and deployment evidence into focused documents. Instructions describe confidentiality boundaries; access controls, tool restrictions and review enforce the applicable requirements.

On focused migrations and refactors, the knowledge base stays lean but surgically precise. Phase-based work logs tracking every decision and why it was made. When you're migrating APIs on a live platform, you need to know exactly why you chose approach A over approach B six weeks ago.

On product-driven work, the knowledge base captures business context alongside technical architecture. PERT estimation with dual tracks: one for AI-assisted development, one for traditional timelines. Because when you're estimating work in this paradigm, you need two sets of numbers — and the gap between them keeps growing.

A technical blog can use API helpers for maintenance, internal links and generated illustrations. CLAUDE.md documents its publication procedure; actual approval and validation checks must enforce the required boundaries.

The pattern can be adapted across project sizes. Retrieval, access control and maintenance must scale with it; a larger collection does not become usable merely because it is Markdown in Git.


What the System Produces

Output isn't just code. That's the reductive view of engineering that this paradigm renders obsolete. The system produces:

Products — a maintained knowledge base can reduce missing-context errors. Generated features, services and applications still require review and testing against the current requirements.

Documentation — record accepted changes and their rationale as part of the workflow, then check that the relevant sources and links remain current. Documentation does not update itself unless an explicit process performs and verifies the update.

Reports and analysis — sprint summaries, architecture assessments, migration progress reports, PERT estimates. When all project data lives in structured markdown, generating a report is a query — not a two-day research project.

Insights — the unexpected output. When an AI has access to thousands of lines of accumulated project knowledge, it sees patterns you missed. Connections between decisions made months apart. Implications of recent changes on distant parts of the system. The knowledge base becomes a thinking partner, not just a reference document.

Artifacts — technical proposals, estimates and onboarding material can reuse maintained evidence. Their accuracy and preparation time depend on source coverage and the review required.


The Protocol

Twenty years of software engineering taught me that the best systems aren't the most complex. They're the ones with the clearest abstractions and the most disciplined data flows. This system is, at its core, embarrassingly simple:

  • Markdown files that both humans and AI can read and write
  • Git for version control, to preserve the changes that are actually recorded
  • A consistent folder structure replicated across every project
  • A continuous loop of ingestion, analysis, storage, and refinement
  • An AI partner operating at maximum capability with task-relevant verified context

No proprietary platforms. No vendor lock-in. No complex infrastructure. If Claude disappeared tomorrow, the knowledge bases would still be there — readable, portable, valuable. Every line of every ctx.md is plain text under version control. If I switched to a different AI partner, the onboarding would take minutes: point it at the markdown files and go.

This is what I mean by the architect's protocol. Not a tool. Not a framework. A discipline — for treating data as the most valuable asset in your engineering practice, for structuring that data so it compounds over time, and for collaborating with AI not as a code generator but as a genuine intellectual partner.

We're in the early chapters. The models improve every few months. Context windows expand. Agent capabilities compound. The protocol stays the same because it was never about any specific AI — it's about the data architecture that can support different AI tools.

Once model capability is sufficient for a task, context quality and verification can become major constraints. Building a useful knowledge system means improving those inputs while checking whether the resulting work meets its requirements.

Initialize your system. Build your knowledge base. Start the loop.

The protocol is running.