Skip to content

stainwoortsel/gitcontext

Repository files navigation

GitContext 🧠📦

Tests PyPI version Python versions License: MIT

Git for AI context management - Track, version, and manage AI thoughts, decisions, and context alongside your code.

Features

  • 🌿 Branch contexts - Different AI contexts for different features
  • 📝 Commit thoughts - Save OTA (Overthinking Analysis) logs
  • 🔀 Smart merging - Squash detailed logs into summaries
  • 🤖 Multiple LLM providers - OpenAI, Anthropic, Ollama, DeepSeek
  • 🎯 Decision tracking - Record key decisions and rejected alternatives
  • 🔗 Git integration - Works alongside your existing Git workflow
  • 🖥️ Beautiful CLI - Rich terminal output with colors and tables
  • 🐍 Python API - Use programmatically in your scripts

Installation

# From PyPI
pip install gitcontext

# With specific LLM support
pip install "gitcontext[openai]"      # OpenAI support
pip install "gitcontext[anthropic]"   # Anthropic support
pip install "gitcontext[ollama]"      # Ollama support
pip install "gitcontext[all]"         # All providers

# From source
git clone https://github.com/yourname/gitcontext
cd gitcontext
pip install -e ".[dev]"

Basic usage

Setup gitcontext

cd gitcontext
pip install -e .

Check this up

git-context --help

Let's start any project

cd ~/my-project
git-context init

Feature branch creation

git-context branch feature/new-api

Writing OTA log

git-context ota

Doing commit

git-context commit "Added new API endpoint"

Getting status

git-context status

Get log

git-context log

Merging

git-context merge feature/new-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors