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.5.tar.gz (38.7 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.5-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitrekt-0.2.5.tar.gz
  • Upload date:
  • Size: 38.7 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.5.tar.gz
Algorithm Hash digest
SHA256 c0f7ab5a32571fd316aafd27767a1ed2b0d4fb568bf3342a8d6a7ed13ec583ee
MD5 088a599650fd218b7a42427c31030322
BLAKE2b-256 ca6805a84f615a87266535dfbf24e0d66bc0e89b466552bb53515d903a75a64f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitrekt-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 40.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e3d20bfba7dbb19cd6774bb4a88253cd6dac141f99d7aada987e57dca4fd7d
MD5 335da43d2f8ef6e10a4d40cc4a690a91
BLAKE2b-256 c665ff9d52b9b798645bcc5862f9f9dc7cb254bd734ccddb6e5d3bfe3140a16c

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