DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to refactor code across a whole repo from one plain-language request with Baize

Describe a code change in plain language and let Baize find and edit every matching file in the repository.

Short answer: pip install https://github.com/Xu123-Bob/Baize.git; then open ~/.baize/config.toml, set active_provider to the backend you have a key for, and save your key in ~/.baize/.env; Change into the repository you want to edit, then run baize. All steps.

Who it is forA developer maintaining a Python project who needs the same change made in many files, such as swapping one HTTP library for another.

The problemFinding and editing every usage of a library by hand is slow and easy to get wrong.

The outcomeBaize searches the repo, edits the matching files, and reports what it changed.

What you need first

  • 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

Steps

  1. pip install https://github.com/Xu123-Bob/Baize.git
  2. 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)
  3. Change into the repository you want to edit, then run baize. (inferred, check the README)
  4. At the >>> Decree: prompt, type: Find all places in this repository that use requests and change them to httpx
  5. Run your tests or a grep for the old library name to confirm the change.

Prompt for your agent

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.

Caveat. Baize needs a working LLM backend, so you must add an API key or run Ollama before the first decree works.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Xu123-Bob/Baize and "Refactor code across a whole repo from one plain-language request"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer