{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "templetongroup-radiant--self-checking-loop-build",
 "repo": "templetongroup/radiant",
 "repo_url": "https://github.com/templetongroup/radiant",
 "repo_slug": "templetongroup-radiant",
 "title": "Run a build loop that retries until a test command passes",
 "page_title": "How to run a build loop that retries until a test command passes with Radiant",
 "summary": "Give each step a shell check, and let failed steps retry with the reason until the check exits 0.",
 "who": "A developer with a test or lint command who wants an agent to keep fixing a change until it passes.",
 "problem": "Agents often stop after one attempt, and you have to rerun and re-explain each failure yourself.",
 "outcome": "A loop that repeats each failed step with the failure reason until the check passes, or stops when a check reports blocked or the budget runs out.",
 "steps": [
  "Open a session with the workspace folder set to your project.",
  "Create a loop with one step per change. Give each step a check: a shell command that must exit 0, such as your own test command.",
  "Set a spend budget. Long builds have no round cap, so the budget is the ceiling.",
  "Start the loop and watch the Activity panel as each failed step goes round again with its reason.",
  "If a check answers blocked, the loop ends at once. Review the reason before you restart it."
 ],
 "agent_prompt": "Using the repo templetongroup/radiant, set up a loop in a Radiant session on <project folder> where each step must pass a shell test command that exits 0, and run it. Expected output: a loop report showing the rounds each step took and whether each check passed. Verify that the report lists the spend against the budget you set.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Loop checks only prove what your command tests, so a weak test command will let a wrong change pass.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "A Mac. The release DMG is for Apple Silicon.",
  "Either a cloud model API key (for example Anthropic or OpenAI) or Ollama or LM Studio running on the Mac.",
  "A project folder to point the agent at.",
  "npm, only if you build from source instead of using the DMG."
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/templetongroup-radiant/self-checking-loop-build/",
 "md": "https://dedupedai.com/use-cases/templetongroup-radiant/self-checking-loop-build/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/templetongroup-radiant--self-checking-loop-build.json",
 "api_version": "v1"
}
