Varietyz/Disciplined-AI-Software-Development
Disciplined AI Collaboration: a method for building software with AI. One loop at every size, rules held by checks rather than attention, state derived rather than written, evidence in place of claims. Includes the PAG grammar, an architecture and a queryable ontology. Every page is also served as Markdown and JSON at banes-lab.com.
What it solves
Disciplined Methodology addresses the common failures encountered when using LLMs to build long-term software projects. It solves the problem of "architectural drift," where code quality degrades, patterns are duplicated, and context is lost as a conversation grows, leading to a situation where developers spend more time debugging AI-generated output than planning the input.
How it works
The method replaces conversational reminders with automated checks and project files. It employs a ten-step loop (Orient, Intent, See, Derive, Project, Act, Constrain, Verify, Commit, Terminate) applied to every task. Key mechanisms include:
- Automated Quality Gates: Rules are enforced by automated checks rather than human memory; if a rule cannot be automated, it is treated as a failure of automation.
- Project-Based Context: Rules and architectural intent are stored in files within the project tree rather than in chat history, ensuring consistency across sessions.
- PAG (Pattern Abstract Grammar): A structured, formal grammar used to write instructions, agents, and validation gates for LLMs to reduce ambiguity.
- Evidence-Based Verification: Changes are only considered verified once evidence (such as a passing check) is produced and read from the current state of the files.
Who it’s for
Developers who are building substantial, long-term software projects using LLMs and want to move from "hoping" for good output to a governed, predictable development process.
Highlights
- Governed Autonomy: Shifts the focus from managing the model's persona to managing the constraints and checks that shape the output.
- Check-First Development: Requires writing the check before the feature to ensure rules are enforced automatically.
- Formal Instruction Grammar: Uses PAG to define agents and planning templates as executable contracts rather than prose personas.
- Strict Stance: Operates on the principle that any manual step is a failure of automation and any claim is unverified until the current file is read.
Related
- Dispatch
- Project
- Project
- Project
- Dispatch