Skip to content

boloto1979/AI-Code-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Code Tracker

Tool for tracking AI vs human code contributions during git commits.

Installation

git clone https://github.com/your-username/ai-code-tracker.git
cd ai-code-tracker
pip install -e .

Usage

  1. Initialize in your project:

    ai-tracker init
    ai-tracker install-git-hook
  2. Make changes and commit:

    git add .
    git commit -m "Add feature"

    During commit, you'll be prompted to mark changes as AI or human-generated.

  3. Your commit messages will include tracking information:

    Add feature
    
    --- AI vs Human Tracking ---
    
    🤖 GitHub Copilot generated:
       • src/utils.py (lines 15-25)
    
    👨‍💻 Human written:
       • src/main.py (lines 10-12)
    

VS Code Extension

cd vscode-extension
npm install
npm run compile
code --install-extension .

Keyboard shortcuts:

  • Ctrl+Shift+A - Mark selection as AI-generated
  • Ctrl+Shift+H - Mark selection as human-written

Commands

  • ai-tracker init - Initialize tracking
  • ai-tracker install-git-hook - Install git hook
  • ai-tracker preview-commit-ai - Preview tracking
  • ai-tracker uninstall-git-hook - Remove git hook

Environment Variables

  • AI_TRACKER_QUICK_MODE=1 - Mark all changes as AI
  • AI_TRACKER_TOOL="ChatGPT" - Set AI tool name

License

MIT

About

Interactive tool for tracking AI vs human code contributions in git commits.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published