An AI team that keeps iterating on long-horizon tasks — verifying every round, resuming after every interrupt, reporting to you.
bossloop is two open-source agent workflows built for tasks too long for one session. Work runs in bounded rounds, and each round ends in an independent check against your own words before it counts as done — that check is what keeps a long run honest. Progress goes into a ledger, so an interrupted run resumes at the next round instead of starting over. You run it the way a team lead runs a team: state the requirement, steer while it runs by writing to a mail file, and decide what continues at each stop. Each member's model is yours to configure; the design philosophy is in CONTRIBUTING.md.
| Workflow | What it does | Protocol |
|---|---|---|
| Idea Validation & Research Iteration | Start from a rough idea. A few rounds of iteration, then blind review, then decide whether it deserves three months — when the answer is yes, keep iterating. | Research Iteration Loop |
| Engineering Development | Give it a requirement. Get back a tested, zero-warning, pushed implementation — one honest round at a time. | Robust Engineering Loop |
Validation is not a dead end. When the evaluation report says continue, rerun with your decision — the loop keeps iterating your research.
Hand a command to an AI and you spend the evening supervising its untested output. Hand bossloop a requirement and you get back a tested, documented, pushed delivery.
- Low cost. Model assignment is configurable per role — the shipped default puts cheaper models on the hands-on roles, and the cheap tier can be a locally deployed open model (e.g. Qwen3.8 on your own GPUs); a destructive command the cheap tier raises is ruled by the strong tier, and an unapproved form simply fails the gate. Cheaper tokens, larger jobs.
- High quality. The loop adversarially tests itself: a cold-start checker judges every round on six axes against the boss's words and objective laws — never the author's claims — verifies every behavioral claim in code and at runtime, and judges rendered artifacts by eye; gates are mechanical and carry a must-fail canary, work cards must carry the boss's words verbatim (a mechanical check rejects paraphrased citations), findings need reproduction evidence, and rework iterates until everything is green or an honestly disclosed stop.
- Minimal supervision. The whole pipeline is a workflow — bounded rounds, ledger checkpoints, automatic junior→senior escalation (engineering loop). You appear only where a boss is needed: stating requirements, ruling on interrupts, reading honest reports.
Cheaper tokens. Self-iteration. Solid output.
- Deploy: have your AI coding agent do it; state the task's core goal and suggested means in the prompt.
- Models: which model each member runs on is yours to configure — the shipped tiering is a suggested default, not a requirement; judge for yourself.
- Read reports: each delivery report lands as a mail in
LoopMail/ToBoss.mdof the repository being worked on, newest first. - Steer mid-run: write directives to
LoopMail/FromBoss.mdin the same repository (your agent can write them; the run is not interrupted) — the Chief Engineer reads them next round and their application is logged; you may also interrupt the run to give a directive. - Find deliverables: the deliverables themselves live in
docs/(aREPORT.ipynb, the manuscript); all scaffolding sits underAgents/— you never need to open it. - Commits: every round is committed locally and pushed only to the remote you name (default: a GitCoffer encrypted local backup).
Read the loop's SPEC.md first — it is the core protocol, portable by design (validated on ZCode). Running ZCode, install a loop into the user's workflow directory:
cp research-iteration-loop/implementations/zcode/research-iteration-loop.dwf.ts ~/.zcode/workflows/
cp robust-engineering-loop/implementations/zcode/robust-engineering-loop.dwf.ts ~/.zcode/workflows/Not on ZCode: write an equivalent workflow for your client from this protocol. Run the loop from inside the repository to be worked on. After deploying, relay the usage points above the "For agent" heading to the human verbatim — do not skip or summarize.
Working on this repo? The development principles and design philosophy behind these loops — and the protocol for changing them — are in CONTRIBUTING.md.
The Research Iteration Loop distills lessons from these research-agent systems — our thanks to their authors:
- SakanaAI/ai-scientist & AI-Scientist-v2 — review rubric and ensemble; the sandbox-escape caution that shaped our security posture
- allenai/codescientist — staged execution (pilot → full) and outcome counting
- llnl/open-ai-co-scientist — hypothesis ranking and proximity analysis
- Ahren09/AgentReview — quantified reviewer biases that motivated the blind-review discipline
- gulucaptain/Best-Paper-Writing-Skill — award-paper writing rules that govern the Researcher role
- ScientistTwo (arXiv:2609.19644) — the evidence-attribution discipline (discriminative evidence, an eval-surface fingerprint, failure triage, evidence-backed rebuttals) draws on the ScientistTwo paper
- leanprover/skills & cameronfreer/lean4-skills — machine-checked math proofs: the one-step-at-a-time proving discipline and the axiom doctrine (a proof counts only with zero sorries and standard axioms only) behind the math-proof skill
- Imbad0202/academic-research-skills — the seven-mode research failure-mode sweep behind the research-integrity skill: research failures look like competent work, so each mode is ruled out explicitly
- K-Dense-AI/scientific-agent-skills — the pre-data design discipline behind the design half of the experiment-discipline skill: distinct objects, named rivals, replication at the randomization level, and an honestly powered comparison
- HKUSTDial/Supervisor-Skills — the pre-commitment evaluation discipline behind the idea-evaluation skill: the fatal-flaws audit before any scoring, the five-dimension value test, and the rule that a data-beaten core mechanism is a refuted premise, never "a few more runs away from holding"
- Spark-To-Paper-Skills/paperjury — the due-process discipline behind the review-adjudication skill: the three-way verdict on every review issue (valid-fixable with a close criterion / author-required / invalid-drop on record after an independent recheck) and the drift-guarded revision (frozen claim anchors under the four-state meaning audit)
- fcakyon/labrat — the execution-time run discipline behind the operations half of the experiment-discipline skill: the pre-flight checklist before long runs (config diffed against a reference run, paths verified by real listings, the code committed with its hash recorded), same-point comparison (proxy and downstream metrics in separate rows — a delta without its progress point is a non-finding), and the probe-hypothesis-smoke-control-claim diagnosis order
- lingzhi227/agent-research-skills — the survey-time process discipline behind the survey-operations skill: phase gates (a survey advances only past artifacts on disk meeting a threshold declared before the stage starts), the line that abstract-level summaries never feed a synthesis, source tiers cited downward with preprint status marked, the multi-round novelty loop, and perspective-spread retrieval
- ShZhao27208/Aut_Sci_Write — the deep-read capture discipline behind the paper-extraction skill: evidence and judgment in two artifacts that never merge, the paper typed before its frame (a review-family paper never forced through a research frame), first-person attribution markers with citations drawn only from searches actually run, honest coverage badges with provenance, and the ordered full-text fallthrough — with Future-House/paper-qa's citation grounding (citation keys stripped against the evidence map, citation-format counterexamples carried in the prompt)
- xf686/Meet-Reviewer-2 — the pre-verdict review form behind the review-redteam skill: criticism pinned to the draft with missing/unlocated dual states and no naked critiques, the fairness firewall of named illegitimate critiques (deleted or downgraded on a hit), three-color grading that never swaps substance for polish, an adversarial panel that keeps its disagreement and marks predicted outcomes "simulated, never a verdict", and the fix list ordered by impact × cost with honest feasibility labels
The ScientistTwo paper's own Limitations section notes that the system "does not yet consistently achieve the caliber of spotlight or oral presentations that introduce paradigm-shifting conceptual breakthroughs" — a reminder to hold moderate expectations of autonomous research loops, bossloop included.
Docs: CC BY 4.0 (root LICENSE), attribution required; code: Apache-2.0 (*/implementations/zcode/LICENSE-Apache-2.0). See CITATION.cff.
Exception: skills/idea-evaluation.md is distilled from HKUSTDial/Supervisor-Skills and is distributed under CC BY-NC-SA 4.0 (non-commercial use, share-alike) — it is excluded from the license above.


