Skip to content

Quick Start

Get gitmind running on a real project in under 5 minutes.


Prerequisites

1. Install Ollama

curl -fsSL https://ollama.ai/install.sh | sh
curl -fsSL https://ollama.ai/install.sh | sh

Download the installer from ollama.ai

2. Pull the model

ollama serve          # start the Ollama server
ollama pull qwen2.5-coder:7b

3. Python 3.9+

python3 --version

Install gitmind

git clone https://github.com/chanakyavasantha/gitmind
cd gitmind

Install into your project

# Install into any git repo
bash hooks/install.sh /path/to/your/project

# Or install into the current directory
bash hooks/install.sh .

This: - Copies gitmind/core/ into your-project/.gitmind/core/ - Creates a virtualenv at your-project/.gitmind/venv/ - Installs the post-commit hook into your-project/.git/hooks/


Make a commit

cd /path/to/your/project
git add .
git commit -m "your message"

You'll see:

[gitmind] Analyzing commit...
[gitmind] Feature tracked: your_feature_name
[gitmind] One sentence summary of what changed

A metadata.json file appears in .gitmind/metadata.json.


Query the metadata

# From your project root
python3 .gitmind/../path/to/gitmind/cli/query.py features

Or add the CLI to your PATH for convenience:

alias gitmind="python3 /path/to/gitmind/cli/query.py"
gitmind features
gitmind history
gitmind stale

Verify it's working

cat .gitmind/metadata.json

You should see structured JSON with your feature names, files, and history.


First commit edge case

On the very first commit in a repo (no parent), gitmind uses git show HEAD instead of git diff HEAD~1 HEAD. This is handled automatically.