October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

AI Coding Project Rules: Keep the System in Files, Not Prompts

Derek Wang argues that durable AI coding rules belong in project files the model reads—not only in chat prompts. Here’s how his constraint pyramid works, and where it can fail.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For AI-assisted software work, Derek Wang’s proposal is to keep durable project rules in files the coding model is instructed to read before generating code, rather than relying on chat prompts alone. The files can make intent and boundaries easier to carry from one generation to the next, but they do not guarantee compliance: rules still need working checks and regular maintenance.

Why put project rules in files?

A chat prompt can guide one interaction, but Wang argues it is a poor place to store a project’s lasting architecture and conventions. His concise formulation is, “A prompt is a memory, not an architecture.” In practice, the prompt can point the model to the project’s rules; the rules themselves belong in maintained project files.

As an Amazon Associate I earn from qualifying purchases.

This is an engineering thesis, not a demonstrated universal result. Wang’s essay, published September 16, 2026, describes a practice and one project anecdote, not an independent evaluation of whether file-based instructions reliably improve every coding project.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How Wang’s constraint pyramid is meant to work

Wang connects project intent to code through five layers. Each layer should inform the one below it, while experience from implementation can reveal when an upper layer needs revision.

  1. Strategy: State the project’s purpose and guiding principles in a README or constitution.
  2. Architecture: Record accepted architectural decisions in ADRs (architecture decision records).
  3. Contracts: Specify how work should be carried out in specifications and runbooks.
  4. Gates: Turn verifiable requirements into pre-submit checks.
  5. Implementation: Have the model produce code within those constraints.

The pyramid is Wang’s framework, not a settled industry standard. Its practical point is to connect high-level intent with rules a developer or automated check can inspect, rather than expecting a model to infer all of that from a growing conversation.

Make each rule’s strength explicit

The essay divides constraints into three levels. This distinction helps teams avoid treating a suggestion as if it were enforced, or leaving a critical requirement as informal prose.

  • L1 — Hard constraints: Requirements enforced through code and gates, such as automated checks that reject a prohibited change.
  • L2 — Architecture constraints: Accepted decisions represented in ADRs and the project’s file layout. They shape where and how code belongs, but documentation alone does not enforce them.
  • L3 — Execution suggestions: Advisory guidance in a runbook, skill, or checklist. These can help direct work but remain suggestions unless backed by enforcement.

These labels describe Wang’s proposed classification. A team should make the distinction visible in its own project files instead of assuming that a model will recognize how binding each sentence is.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A practical starting point for a project

Wang recommends beginning with a file that the coding model is instructed to read before each generation. Keep the first version focused on the information needed to make changes safely: the project’s purpose, module boundaries, and naming rules. As the project grows, connect that entry point to deeper architecture records, contracts, and checks rather than turning one document into an unwieldy catch-all.

  1. Write down the durable rules. Describe the project’s purpose, module responsibilities, and naming conventions in a project file.
  2. Label the rules. Indicate whether each requirement is a hard constraint, an accepted architecture decision, or advice.
  3. Tell the model to read the file. Make this part of the generation workflow so the instructions are available in each relevant session.
  4. Automate what must not be violated. Add a pre-submit check for requirements that can be tested mechanically, and ensure that the check actually runs.
  5. Use repeated deviations as feedback. If the same problem keeps appearing, consider whether an advisory step needs a gate, a contract is missing an instruction, or an architectural boundary needs reconsideration.

What the reported 636-line example does—and does not—show

Wang says a README in one project grew to 636 lines as it accumulated boundaries, path conventions, naming rules, and layering guidance. He reports that after the model read the file before each generation, weekly style drift “nearly vanished.” Both the line count and the outcome are his account of that project. The essay provides no study design, sample size, independent measurement, or comparison group, so the anecdote does not establish that a long README—or file-based rules generally—will produce the same result elsewhere.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Files can drift; gates can fail to run

Written rules help only while they remain connected to the implementation. Wang warns that documentation can drift from the code, that an ADR not mapped back to implementation can become a diary, and that a gate that never executes is only a wish. A rule may be clearly written and still be ignored if it is not loaded into the session or checked in the development workflow.

Keep the files and enforcement mechanisms in the same maintenance loop as the code. When architecture changes, update the relevant decision and implementation together. When a check is added, confirm that it runs at the intended point in the workflow. When deviations recur, decide whether to strengthen enforcement, clarify the contract, or revise the boundary rather than merely adding more prose.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.