baime
BAIME (Bootstrapped AI Methodology Engineering) — a self-referential framework for AI-assisted software development, built around two engines with opposite optimization targets:
| Engine | Input | Output | Dynamics | Optimizes |
|---|
Generation Engine (/methodology-bootstrapping) | A repeated workflow + human's project-external insight | A reusable skill / new scope | Diverges (its job is not to converge) | Maximizes human leverage per insight |
Execution Engine (/loop-backlog) | A backlog of tasks with DoD gates | Merged, verified software | Converges (toward a fixed point) | Minimizes human touch |
The two are not a pipeline. The generation engine decides what is worth doing and how to do it; the execution engine drives that scope to completion autonomously. One opens range; the other closes it. The other skills in this repo are products of the generation engine — the skill library is what methodology engineering produces.
What "Bootstrapped" Means — Self-Reference
BAIME's research subject is BAIME itself. This is not a slogan; it is the system's operating structure, along three axes the docs name explicitly (docs/baime-self-reference-analysis.md):
- Self-reference — the product is not "the output of a methodology" but "the methodology that develops methodologies." The OCA cycle works at the meta level: it does not prescribe how to write code, it prescribes how to codify "how we do things" into a skill.
- Self-knowledge — the system measures its own cognition at human decision points (GCL, premise-ledger) rather than assuming oversight stays meaningful.
- Self-bootstrap — the system improves itself with its own tools.
loop-backlog fixes bugs in loop-backlog; the OCA cycle refines the OCA cycle. The git log is the evidence.
How the two engines relate (without merging them). They form a feedback loop bridged by the human at the gate — execution produces observations → the human, via the generation engine, redesigns the next generation of scope → execution runs the improved version. The human sits on the boundary of the loop, not inside it: "human owns gates, autonomous loop owns execution." This is a feedback relationship, not a linear hand-off. Note the asymmetry the project openly acknowledges: the execution engine is heavily instrumented and measured, while the generation engine is still almost entirely uninstrumented — the project's current frontier (docs/proposals/proposal-self-direction-generative-engine.md).
Generation Engine (/methodology-bootstrapping)
The generation engine turns a repeated human workflow into a reusable Claude Code skill via the Observe → Codify → Automate (OCA) cycle:
- Observe — run
/methodology-bootstrapping on any workflow you repeat more than twice
- Codify — the skill produces a
SKILL.md spec: pseudocode + implementation + verification gates
- Automate — invoke the new skill via
/skill-name in any session
The OCA cycle is, formally, a fixed-point solver for methodology — it iterates f(method) = method: observe current practice → freeze it into a skill → automate execution → that automation generates new observations. Convergence means the method has stabilized; divergence is where the human injects project-external insight to redefine what the method should even be.
Skills live in plugin/skills/<name>/SKILL.md. The skills shipped in this repo are the output of this engine — each was extracted from a recurring engineering pattern and codified into reusable form. See Skills Built with the Generation Engine. This engine needs no backlog, no worker, no execution infrastructure.
Execution Engine (/loop-backlog)
The execution engine is an autonomous software-development worker. It solves the collaboration gap in AI-assisted development: LLM agents are powerful executors but lack reliable task coordination across sessions. The worker provides that coordination — humans control which work is admitted; the machine converges it to completion.
How it works
Invoke once per session:
/loop-backlog
It runs indefinitely until you stop it:
touch backlog/.loop-stop
A persistent daemon (plugin/scripts/basic-daemon.js) watches backlog/tasks/ and emits events over five channels:
| Channel | Trigger |
|---|
basic-ready | A kind:basic task is promoted to Ready |
epic-ready | A kind:epic task is promoted to Ready for decomposition |
child-done | A child task reaches Done; check if the parent epic is complete |
proposal-approved | Human approved a proposal; draft the plan |
plan-approved | Human approved a plan; finalise the task |