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 .gitrekt/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 .gitrekt/config.example.json to .gitrekt/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.2.tar.gz (38.4 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.2-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gitrekt-0.2.2.tar.gz
  • Upload date:
  • Size: 38.4 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.2.tar.gz
Algorithm Hash digest
SHA256 b7c94a9d24393c4652f6e0647391b1a2bd11663051d8aac86c420c1359d12590
MD5 941e03f714b892f5ae327a16a3a40dea
BLAKE2b-256 243e0d0f2ab744f4ae84832fde1906b9d3178701a5050848835358026a9ae3d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitrekt-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 40.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 843379238b8af32e3e01520a85a17da3f5efc47a50794dcea1ebcca98ade9ff6
MD5 3b3ef530025b8491a6c8092dbabe9b1f
BLAKE2b-256 152a5de5aab308c5038cb55aa76e6c312ea000b55ceffcf480d6d25bb453f257

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