Home/ Part XII — Building Real Products (End-to-End Projects)/34. Project 3: "Vibe Coder" Assistant for Your Own Repo

34. Project 3: "Vibe Coder" Assistant for Your Own Repo

Overview and links for this section of the guide.

The Goal

We are going to build a CLI tool (or VS Code extension) that understands your project. You can ask it:

"Where is the user authentication logic?"

"Refactor the `User` class to add a `phoneNumber` field and update all call sites."

It won't just hallucinate generic code—it will read your actual files and propose a diff.

High-Level Architecture

  1. Indexer: A script that walks your directory, respects `.gitignore`, and creates a "map" of your codebase (file paths + summaries).
  2. Retriever: When you ask a question, it finds the relevant files using the map.
  3. Context Builder: It packages the user query + the file contents into a prompt.
  4. Generator: The model generates a response (answer or code patch).

Where to go next