Credentials. The headless setup stores your model API key in the benzi-login config, so keep that config out of shared repos and CI logs.
Who it is forA developer or DevOps engineer who wants an agent to attempt a fix from a script or CI pipeline when a test fails.
The problemFailing tests in scripts and CI need a triage pass, and manual triage takes time away from other work.
The outcomeBenzi 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.
What you need first
- 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
Steps
- Run
pip install benzi. - Run
benzi-login --login [email protected], then type the one-time code emailed to you. - Run
benzi-login --model deepseekandbenzi-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.
Prompt for your agent
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.
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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for oooscoos/Benzi and "Run a headless Benzi fix on a failing test"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer