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 the GitRekt backend

Open a terminal (search for "Terminal" or "Command Prompt" on your computer) and run:

pip install gitrekt

Step 3 — Install the VS Code extension

  1. Open VS Code
  2. Press Ctrl+Shift+X to open the Extensions panel
  3. Search for "GitRekt"
  4. Click Install

Note: GitRekt will try to install the Python backend automatically when it first starts. If that doesn't work, run pip install gitrekt manually in your terminal.

Step 4 (Optional) — Install Ollama for offline AI

Ollama lets GitRekt answer questions about your code even without an internet connection.

  1. Download Ollama from ollama.com
  2. After installing, open a terminal and run: ollama pull llama3
  3. GitRekt will automatically detect and use the best model you have installed

Step 5 (Optional) — Get a free NVIDIA API key

For faster, cloud-powered answers, get a free key from build.nvidia.com. Add it to .docdrift/config.json in your project:

{
  "nvidia_api_key": "nvapi-your-key-here"
}

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

Setup for your project

Copy .docdrift/config.example.json to .docdrift/config.json and fill in your API key (optional):

{
  "nvidia_api_key": "nvapi-your-key-here"
}

Never commit config.json — it's already in .gitignore.


Contributing

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

git clone https://github.com/your-username/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.0.tar.gz (37.5 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.0-py3-none-any.whl (39.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitrekt-0.2.0.tar.gz
  • Upload date:
  • Size: 37.5 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.0.tar.gz
Algorithm Hash digest
SHA256 6ee27445ecba9f948fa82a30baf83ed26f511ac1bd2995fdf4e93f789320ad7c
MD5 fc96cbe044bd2539c58323a903887f27
BLAKE2b-256 fd7cc6c9b7615dfd301d3581016e636d5bee5e0228c697098052514a20de26ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitrekt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 39.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eff4d98db05abd15cf007efc01a9c850d13e4e7b587e77bced1c73513a8313e7
MD5 d6d9c04c343b967e1d6db59bcb6f731a
BLAKE2b-256 4fff9e72c08e991f5a457ecf7cc1c6d05a7f9e65c01c5084d212e8f533d4df9d

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