rlshaw-ml/BlastLoop
Sobre
Structure-first operating process for AI coding agents: Blast / Mid / Inner build altitudes with clear ownership, then T1 structural, T2 bug/ops, T3 adversarial quality gates.
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- 0
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalBlastLoop
BlastLoop is Ross Shaw's practical coding framework for AI agents: Blast, Mid, and Inner write code at different altitudes, then T1 structural, T2 bug/ops, and T3 adversarial test it in order.
Why it exists: AI coding agents make teams faster, but they also make failure faster. BlastLoop applies an operations mindset to agent work: each change has an owner at the right altitude, and every result passes structural, operational and adversarial gates in a fixed order before it ships.
Open newsletter / public write-up is live. Fuller BlastLoop explanation: WORLDWRIGHT Issue 3, AI Did Not Remove Engineering Failure. It Made It Faster.
Version: 1.1.0 Tagline: structure first, function second, attack third.
1.1.0 adds three steps. A bounded grill runs before the brief. An optional cold review reads that packet in a fresh session. T3 adds a verifier that tries to disprove each candidate, plus a coverage ledger. Sources and licenses are in docs/ATTRIBUTION.md.
Use BlastLoop with an AI coding agent in under 5 minutes
- Clone this repo into the project where you want agent help.
- Point your agent at
AGENTS.md. - Run the grill before the brief:
prompts/grill.md. One question at a time, 10 at most. Stop when the next question would not change the brief. The answers go into the brief in the handoff packet. A task with no open decision recordsquestions: 0. - Load one build prompt based on the altitude named in the brief:
- system or repo shape ->
prompts/blast.md - subsystem or feature slice ->
prompts/mid.md - local file or unit change ->
prompts/inner.md
- system or repo shape ->
- Optional, before that altitude writes code:
prompts/cold.mdreviews the brief in a fresh session. The reviewer gets the packet only. The same pass can be a cold T1 on a build handoff. A cold T1 does not replace the code-reading T1. - Have the agent write code at that altitude. BlastLoop is not spec first, plan first, then one implementer. The grill is a short interview, not a spec. The build layer still produces code at its own scope.
- Run the test loop in order:
prompts/t1-structural.mdprompts/t2-bug-ops.mdprompts/t3-adversarial.md. Hunters propose candidates. A fresh verifier tries to disprove each one. Every candidate gets one verdict:confirmed,needs_validation, orrejected. The packet includes a coverage ledger of what was checked and what was not. This repo only.
- If T3 confirms a structural defect, restart through T1, route correction back to Blast, Mid, or Inner, then run T2 and T3 again. If T3 confirms a non-structural defect, send it to T2, then run T3 again. Exit only when T3 passes with no unfixed confirmed defects and no in-repo needs_validation still open.
- On every T3 pass, complete Public surface and abuse economics when the product is publicly reachable or spends money per request (a paid API, a model call, email, SMS, or any other metered call). Skip it only when the product has no public door and no per-request spend, and say why in one line. A missing or incomplete section restarts at T1, and Mid owns the correction.
That is the whole public cut: grill the open decisions, write at the right altitude, then test in the right order. A cold review is optional. A product that is publicly reachable or spends money per request also needs the abuse-economics section from T3. T3 also needs the verifier and the coverage ledger.
See docs/HANDOFFS.md for the required handoff packet and routing rules. A stage may recommend a fix from its own vantage, but the owning altitude still decides and implements the change.
B / M / I: three coding altitudes
Blast
Blast writes system-level code and structure.
Use Blast when the job changes repo shape, service boundaries, top-level interfaces, shared contracts, deployment structure, or the skeleton of a new capability.
Mid
Mid writes subsystem code.
Use Mid when the job is bigger than a local patch but smaller than a system redesign: a feature slice, a service module, an integration surface, or a subsystem refactor.
Inner
Inner writes local unit code.
Use Inner when the job is contained to a few files, functions, tests, or adapters. Inner is the local-unit altitude in BlastLoop: focused scope, clear ownership, and direct completion of the change.
T1 -> T2 -> T3 test loop
Run tests in this order.
T1 structural
T1 looks for structural issues: wrong boundaries, logic at the wrong altitude, leaky abstractions, broken file ownership, missing interfaces, or misplaced cross-cutting concerns.
T1 does not behave like a general bug fixer. Its job is to decide whether the code is shaped correctly and to route correction back to the right writer: Inner, Mid, or Blast.
T2 bug / ops
T2 fixes bugs and operational issues directly when the structure is already sound.
If T2 discovers the issue is actually architectural, it escalates back to T1 instead of papering over the problem locally.
T3 adversarial
T3 attacks the result: edge cases, misuse, race conditions, weird inputs, brittle assumptions, security posture, rollback paths, and failure behavior. On every pass it also runs the attack classes in prompts/t3-adversarial.md: each class needs an attempted attack and evidence, a confirmed hit blocks exit, and the list is a floor plus one product-specific novel probe.
T3 hunters propose candidates. A separate fresh verifier tries to disprove each one before it can block exit. The coverage ledger lists areas and files checked, and areas and files not checked. Single repo only. No fleet scan.
If T3 confirms a structural defect, the loop restarts like this:
T3 -> T1 -> B/M/I correction -> T2 -> T3
That restart rule matters. Structural breakage should be repaired structurally, not patched over as a local bug.
On every pass for a product that is publicly reachable or spends money per request, T3 also completes Public surface and abuse economics: unauthenticated routes and second doors, atomic budgets on expensive routes, account cost, clone surface, object-level authorization, server-side prices and credits, alerts, and release leftovers. Skip it only when the product has no public door and no per-request spend, and say why in one line. A missing or incomplete section restarts at T1, and Mid owns the correction. The checks live in prompts/t3-adversarial.md and in the T3 packet in docs/HANDOFFS.md. Evidence is a code read and a test. A comment that claims a limit is enforced leaves the section incomplete.
What this is not
- Not a fact-checker. BlastLoop is a coding and testing framework, not a truth engine.
- Not GitHub Spec Kit. Spec Kit is spec -> plan -> tasks -> implement -> converge. BlastLoop is multiple coding altitudes plus a staged test loop. The grill brief records decisions. It is not a spec stage.
- Not a competing "agent style." BlastLoop can work with Spec Kit, vibe coding, focused local implementation prompts, or red/blue testing. Those can sit inside an altitude or a test layer; BlastLoop is the structure-first loop that routes them.
- Not a multi-agent org chart. This public cut does not define management layers, bot hierarchies, or private automation. A cold reviewer and a T3 verifier are fresh sessions inside the existing loop, not new management layers.
- Not red/blue testing alone. Adversarial testing is T3 only, not the whole method.
Works with other agent styles
BlastLoop does not require one coding style or one planning school.
- Spec Kit can shape planning before code is written.
- Vibe coding or other implementation styles can operate inside Blast, Mid, or Inner, depending on scope.
- Focused local implementation prompts can be used inside Inner when they fit the task.
- Red/blue testing fits naturally in T3 adversarial work.
BlastLoop's job is to route the work: choose the right altitude, then run T1 -> T2 -> T3 in order.
See docs/COMPARISON.md for a short side-by-side.
Repository contents
AGENTS.md- routing card for which prompt to loadprompts/- loadable instructions for each build and test roleprompts/grill.md- bounded interview before the briefprompts/cold.md- optional fresh-session review of the packetdocs/HANDOFFS.md- required handoff packet, brief template, cold-review template, verdicts, and coverage ledgerdocs/UX-DX-AX.md- three-way test for user, developer, and agent experiencedocs/COMPARISON.md- short comparison to adjacent public methodsdocs/ATTRIBUTION.md- sources and licenses for the grill, the cold review, and the T3 verifierexamples/session.md- fictional walkthrough of a small feature through the loop
License
MIT. See LICENSE.
Explore projetos relacionados
Carregando…