{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "xu123-bob-baize--bulk-refactor-repo-code-from-plain-language",
 "repo": "Xu123-Bob/Baize",
 "repo_url": "https://github.com/Xu123-Bob/Baize",
 "repo_slug": "xu123-bob-baize",
 "title": "Refactor code across a whole repo from one plain-language request",
 "page_title": "How to refactor code across a whole repo from one plain-language request with Baize",
 "summary": "Describe a code change in plain language and let Baize find and edit every matching file in the repository.",
 "who": "A developer maintaining a Python project who needs the same change made in many files, such as swapping one HTTP library for another.",
 "problem": "Finding and editing every usage of a library by hand is slow and easy to get wrong.",
 "outcome": "Baize searches the repo, edits the matching files, and reports what it changed.",
 "steps": [
  "`pip install https://github.com/Xu123-Bob/Baize.git`",
  "Open `~/.baize/config.toml`, set `active_provider` to the backend you have a key for, and save your key in `~/.baize/.env`. (inferred, check the README)",
  "Change into the repository you want to edit, then run `baize`. (inferred, check the README)",
  "At the `>>> Decree:` prompt, type: Find all places in this repository that use requests and change them to httpx",
  "Run your tests or a `grep` for the old library name to confirm the change."
 ],
 "agent_prompt": "Using the Baize CLI from the Xu123-Bob/Baize repo, run the instruction 'Find all places in <repo-path> that use requests and change them to httpx' inside <repo-path>. Expected output: a list of edited files. Verify that no file in <repo-path> still imports requests.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Baize needs a working LLM backend, so you must add an API key or run Ollama before the first decree works.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "javascript",
 "requirements": [
  "Python 3.10 or newer with pip",
  "An API key for DeepSeek or another supported backend, or a local Ollama install",
  "Optional: IBM SPSS Statistics or a reachable SQL database, depending on the use case"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/xu123-bob-baize/bulk-refactor-repo-code-from-plain-language/",
 "md": "https://dedupedai.com/use-cases/xu123-bob-baize/bulk-refactor-repo-code-from-plain-language/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/xu123-bob-baize--bulk-refactor-repo-code-from-plain-language.json",
 "api_version": "v1"
}
