{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "dragonked2-alphacode--fix-bug-with-terminal-agent",
 "repo": "dragonked2/alphacode",
 "repo_url": "https://github.com/dragonked2/alphacode",
 "repo_slug": "dragonked2-alphacode",
 "title": "Fix a failing test or bug in a repo from the terminal",
 "page_title": "How to fix a failing test or bug in a repo from the terminal with Alphacode",
 "summary": "Give AlphaCode a bug report and let it inspect the code, edit files, and run tests.",
 "who": "A developer whose test suite is failing or whose app has a regression and who wants a first-pass fix to review.",
 "problem": "Tracing a failure through unfamiliar code and running the right tests takes time away from the actual fix.",
 "outcome": "A proposed change to the repo, with the relevant tests run and a report of what changed and what was checked.",
 "steps": [
  "Run `curl -fsSL https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.sh | bash` on macOS or Linux, or `irm https://raw.githubusercontent.com/dragonked2/alphacode/main/scripts/install.ps1 | iex` in PowerShell on Windows.",
  "Run `alphacode doctor` to check your environment.",
  "Change into your project folder and run `alphacode run \"fix the failing test\"`, or replace the quoted text with your own request.",
  "Review the diff and the test results the agent reports before you commit anything.",
  "Run `alphacode` to open the interactive UI if you want to follow up on the same task."
 ],
 "agent_prompt": "Use the dragonked2/alphacode repo to fix the failing test in <project path>. Run the relevant tests after the change and report the changed files and test results. Verify that the failing test now passes and that no other tests were newly broken.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says the built-in free AI lane works without an API key, but connected providers may require their own credentials and may incur charges.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A terminal on macOS, Linux, or Windows (use Windows Terminal or PowerShell on Windows)",
  "A project folder or repository you want the agent to work in",
  "Internet access to run the installer",
  "Optional: API keys for Claude, GPT, Gemini, or other providers, which may incur charges",
  "For browser tasks: Firefox with the AlphaCode Browser Agent extension installed",
  "For desktop tasks: a working platform accessibility backend (UI Automation, Accessibility API, or AT-SPI2)"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dragonked2-alphacode/fix-bug-with-terminal-agent/",
 "md": "https://dedupedai.com/use-cases/dragonked2-alphacode/fix-bug-with-terminal-agent/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/dragonked2-alphacode--fix-bug-with-terminal-agent.json",
 "api_version": "v1"
}
