Skip to main content

About the project

RepoMedic AI — An AI-Powered Code Repair Assistant

RepoMedic AI is a local-first AI coding assistant that helps developers investigate bugs, understand root causes, propose code fixes, and validate repairs through regression testing.

Instead of blindly modifying code, RepoMedic follows a structured, multi-stage workflow:

  • AI-powered bug analysis: Uses Google’s Gemma 4 E4B model locally through Ollama to analyze code and produce structured debugging results.
  • Model harness: Orchestrates the workflow, manages analysis stages, and reports progress to the frontend.
  • Root-cause analysis: Presents the suspected cause of a bug along with relevant code references and a proposed fix.
  • Human-in-the-loop approval: Requires user approval before applying a proposed patch.
  • Controlled code changes: Applies approved changes to a disposable working copy rather than directly modifying the original project.
  • Regression testing: Runs a configured test command against the modified copy and captures the command, exit code, output, and execution status.
  • Local-first AI: Runs inference on the developer’s machine instead of requiring a hosted AI API for the Gemma-powered workflow.

The project currently demonstrates its workflow using a bundled sample Node.js repository, including a user lookup bug. Its goal is to make AI-assisted code repair more transparent, controlled, and testable.

GitHub: https://github.com/MeerabShahid18/RepoMedic

Built with

next.jsreacttailwindtypescriptnode.jsexpress.jsollamaCustom model harnessstructured workflowbounded model callsZod schema validationServer-Sent Events (SSE)Validated patchesdisposable working copieshuman approvalgithubgitmongodbgemma

AI tools

Coded withGitHub Copilot

Prize Categories Entered

  • Deepmind Google

    Best Use of Gemma 4

    Submitted
  • DigitalOcean

    Best Open-Source AI Project

    Submitted