
Bane's Lab
Structured collaboration with LLMs
Bane's Lab documents the method I use to build software with LLMs, together with the instruction format, the software architecture and the ontology that the method relies on. I have used it since 2024, on every project I build, this site included. The method does not make a model's output correct. What it does is make incorrect output visible and refuse it, through checks that run on every change rather than through instructions the model is asked to remember.
How the site teaches
The site is organized around the methodology, which is one page of six tabs read in order, from Start to Ship. The grammar, architecture and ontology pages supply material that particular sections of the methodology rely on, and the visualization shows where each of their sections enters that order. The anatomy page works in the other direction: it shows the source of this site, and its sections link back to the chapters that describe it.
MethodologyDisciplined Methodology
The method itself comes in six parts that follow the order of the work, from starting a project to shipping it. Each section describes one practice, how it fails when it is missing, and a test you can run against your own work to check it.
- Start — Methodology
- Plan
- Build
- Verify
- Collaborate
- Ship
- Engineering leads · Software architects · LLM-assisted developers
PAGPattern Abstract Grammar
Pattern Abstract Grammar is a structured format for writing instructions to a model. A document declares what type of instruction it is, draws its verbs from a closed vocabulary and ends every step on a gate with checkable evidence. The page covers the grammar, its validation rules and a set of templates.
- Introduction
- Guide
- Orchestration
- Patterns
- Keywords
- Grammar
- Validation
- Templates
- Software architects · LLM-assisted developers · Tool authors
ArchitecturePrinciples, decay and coverage
The page covers software architecture for systems in which a model writes much of the code. It models a system as a graph, holds each principle as a typed record, traces each anti-pattern back to the control whose absence caused it, and derives coverage from a grid rather than from a count.
- Model
- Principles
- Decay
- Coverage
- Scale
- Glossary
- Engineering leads · Software architects · LLM-assisted developers
OntologyPrinciples, lexicon and algorithms
The ontology is the data behind the architecture page, and the site's own checks read it too. It holds every principle with its relations and repairs, every defined term, every algorithm contract, and how each tension between two principles is resolved.
- Principles
- Lexicon
- Algorithms
- Reasoning
- Grammar
- Schema
- Software architects · LLM-assisted developers · Tool authors
AnatomySource trees, walks and definitions
The anatomy page shows the source of every part of this site, from the client to the gate that checks it, parsed on every build. Each file is shown with its syntax walk, its definitions and the calls between them, together with the diagnoses the parser ran over every tree.
- Reading
- Bane's Lab Site
- GovLab Extension Host
- Bane's Lab Build Scripts
- Bane's Lab Content
- Coordination Surface
- Bane's Lab Deploy
- Bane's Lab Server
- Bane's Lab Social Share
- Codebase Testing
- GovLab Constants
- GovLab Context
- GovLab Docs
- GovLab Patterns
- GovLab Pipeline
- GovLab Quality
- GovLab Stats
- Argv Contract
- Canonical Write
- Code Parse
- Content Fingerprint
- GovLab Paths
- Project Scripts
- Secrets
- Configs
- Software architects · LLM-assisted developers · Tool authors
FAQOrigin, practice and limits
Here I answer the questions I am asked most often about the methodology, including where it came from and where it stops being useful.
Read the FAQ