{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "r1c7-cluxmate--one-shot-fix-in-ci-or-scripts",
 "repo": "r1c7/CluxMate",
 "repo_url": "https://github.com/r1c7/CluxMate",
 "repo_slug": "r1c7-cluxmate",
 "title": "Run a one-shot coding fix from a script or CI job",
 "page_title": "How to run a one-shot coding fix from a script or CI job with Clux Mate",
 "summary": "Send one prompt to the headless CLI and review the file changes it makes.",
 "who": "A developer or CI maintainer who wants an agent to fix a small, well-defined problem in a repository without opening an interactive session.",
 "problem": "Routine fixes such as a failing test or a small refactor take time to set up interactively, and scripts need a non-interactive way to call an agent.",
 "outcome": "The agent runs one prompt, edits the files it decides to change, and reports a result that you can review as a diff.",
 "steps": [
  "Install Clux Mate by following the install section of the README.",
  "Point Clux Mate at your provider by setting its base_url to an OpenAI-compatible endpoint, as the README describes.",
  "Run `cluxmate -p \"Fix the failing unit tests in <path> and summarize what you changed\"` from the repository root. (inferred, check the README)",
  "Run `git diff` and read every changed file before you commit anything. (inferred, check the README)"
 ],
 "agent_prompt": "Use the CluxMate repo (r1c7/CluxMate) to run the headless command cluxmate -p with a prompt that targets <path>. Expected output: a short summary from the agent and a set of changed files. Verify with git diff that only files inside <path> changed and that the tests named in the prompt now pass.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README excerpt does not show the config file format or install commands, so confirm those in the full README before the first run.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "A CluxMate install (install steps are not in the README excerpt provided, so follow the README's install section)",
  "An OpenAI-compatible API endpoint, its base_url, and an API key",
  "A git repository for the project you want the agent to work on"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The API key for your provider must be supplied to Clux Mate, so store it in your CI secret store and not in the repository."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/r1c7-cluxmate/one-shot-fix-in-ci-or-scripts/",
 "md": "https://dedupedai.com/use-cases/r1c7-cluxmate/one-shot-fix-in-ci-or-scripts/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/r1c7-cluxmate--one-shot-fix-in-ci-or-scripts.json",
 "api_version": "v1"
}
