Skip to main content

Detects when code comments and docstrings go stale compared to actual code.

Project description

GitRekt Banner

GitRekt

Your codebase has a secret language. GitRekt translates it.

GitRekt is a VS Code extension that does two things: it finds places in your code where the explanations are missing or out of date, and it lets you ask plain-English questions about your entire project and get instant, accurate answers with clickable links to the exact file and line.


What can you ask GitRekt?

"Where is the database password stored?" "Which functions have no explanation?" "How does the login flow work?" "Where are HTTP requests made?" "What does the parseRetryAfterMs function do?" "Which files handle user authentication?" "Where is the API key set?" "How does error handling work in this project?"


Installation

Step 1 — Install Python

Download Python from python.org. Important: During installation, tick the box that says "Add Python to PATH".

Step 2 — Install GitRekt (backend + extension in one go)

Open a terminal and run both commands:

pip install gitrekt
gitrekt install-extension

The first command installs the Python backend. The second auto-installs the VS Code extension using the code CLI.

Alternative: If gitrekt install-extension doesn't work, install manually:

  1. Open VS Code → Press Ctrl+Shift+X
  2. Search for "GitRekt - Codebase Assistant"
  3. Click Install

Step 3 — Reload VS Code

Press Ctrl+Shift+P → type "Reload Window" → press Enter. GitRekt will start automatically.


AI Setup (Optional but Recommended)

GitRekt's scan and drift detection work 100% offline with no AI needed. But for the chat feature to give plain-English answers, you need at least one of these:

Option A — Free offline AI (Ollama)

Best for privacy. Works with no internet connection after setup.

  1. Download Ollama and install it
  2. Open a terminal and run:
ollama pull llama3
  1. GitRekt automatically detects and uses it — no config needed

Option B — Cloud AI (Groq, NVIDIA, Custom)

Faster responses. Requires an API key.

  1. Open GitRekt chat in VS Code (Ctrl+Shift+G)
  2. Click the ⚙️ (Settings) icon at the top right
  3. Paste your Groq, NVIDIA, or Custom API URL
  4. Click Save

Keys are stored securely in VS Code's encrypted secret storage and never saved to a file or shared anywhere.

No AI configured? GitRekt will show a banner in the chat with exact instructions. The core scan feature always works offline regardless.


How it works

  • Scans your project using real code analysis (no internet required, no AI needed for scanning)
  • Builds a searchable map of every function, class, and file in your project
  • Answers questions by finding the relevant code and explaining it in plain English

What GitRekt will never do

  • Never sends your code to the internet for scanning — the drift scan runs 100% on your machine
  • Never requires a paid subscription — the core features are completely free
  • Never stores your code anywhere — everything stays on your computer

Usage

Action How
Open chat Press Ctrl+Shift+G
Run a scan Click the search icon in the GitRekt sidebar
Ignore an issue Hover over it and click the 👁 button
Fix a missing comment Hover over it and click the ✨ button
Undo a fix Press Ctrl+Z in the file
Install extension from terminal Run gitrekt install-extension

Contributing

GitRekt is open source (MIT). Pull requests welcome.

git clone https://github.com/Gauravguddeti/gitrekt
pip install -e .

Built to make every developer's codebase feel like home.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitrekt-0.2.3.tar.gz (39.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitrekt-0.2.3-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file gitrekt-0.2.3.tar.gz.

File metadata

  • Download URL: gitrekt-0.2.3.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for gitrekt-0.2.3.tar.gz
Algorithm Hash digest
SHA256 3a92c83e617ad51489027401b57c2a93cf0d0eb4a907935e5be002236b09d0df
MD5 665aea241bf33f2c00ed246a62ac1114
BLAKE2b-256 ae940ee66cf5ab8ef354c5d97188ce0ef89b934a9b5b7d8625557e3487a3ef0a

See more details on using hashes here.

File details

Details for the file gitrekt-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: gitrekt-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for gitrekt-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e88133a87f956c38790945f0f41b1ec023b19ebb445339d2c7aa82b0e94923
MD5 e74b0c1e28091c62871664f98ebb509c
BLAKE2b-256 7add3da5958c6437ffe65e2c4ce5166f768fea2b75390bf453549e57ff971d2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page