{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "oooscoos-benzi--headless-fix-in-ci",
 "repo": "oooscoos/Benzi",
 "repo_url": "https://github.com/oooscoos/Benzi",
 "repo_slug": "oooscoos-benzi",
 "title": "Run a headless Benzi fix on a failing test",
 "page_title": "How to run a headless Benzi fix on a failing test with Benzi",
 "summary": "Run benzi-headless from a terminal or CI job to attempt a fix, with syntax-checked edits and one-step rollback.",
 "who": "A developer or DevOps engineer who wants an agent to attempt a fix from a script or CI pipeline when a test fails.",
 "problem": "Failing tests in scripts and CI need a triage pass, and manual triage takes time away from other work.",
 "outcome": "Benzi attempts the fix on the repo, every write is syntax-checked and rolled back if it breaks the code, and you review the resulting changes.",
 "steps": [
  "Run `pip install benzi`.",
  "Run `benzi-login --login you@example.com`, then type the one-time code emailed to you.",
  "Run `benzi-login --model deepseek` and `benzi-login --nonanthropic-key YOUR_KEY`.",
  "Run `benzi-headless . \"fix the failing test in parser.py\"` from the repo root.",
  "Review the diff and run your test suite yourself before merging."
 ],
 "agent_prompt": "Run `benzi-headless . \"fix the failing test in <test file>\"` in the repo at <repo path>. Expected output: edited files plus a summary of the change. Verify by running the test suite and confirming the target test passes and no other test newly fails.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README measures Benzi's coding results on SWE-bench Verified with DeepSeek V4.1-Flash, but it does not promise a fix for any specific test, so always review the diff.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "html",
 "requirements": [
  "Python 3.11 to 3.14 on Windows, macOS or Linux, for the pip install",
  "An email address for the one-time login code",
  "An API key from Anthropic or a non-Anthropic provider (DeepSeek, Groq, Kimi and others) for the Benzi agent, or an existing MCP-capable agent such as Claude Code or Cursor for the MCP server"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The headless setup stores your model API key in the benzi-login config, so keep that config out of shared repos and CI logs."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/oooscoos-benzi/headless-fix-in-ci/",
 "md": "https://dedupedai.com/use-cases/oooscoos-benzi/headless-fix-in-ci/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/oooscoos-benzi--headless-fix-in-ci.json",
 "api_version": "v1"
}
