Skip to main content

AI-powered developer onboarding and context recovery system for git repositories

Project description

Code Checkpoint

Code Checkpoint is an AI-powered developer onboarding and context recovery tool for git repositories. It automatically generates living documentation that evolves with every commit, so returning developers can get up to speed instantly and new developers can understand the codebase without reading every file.

Python License

What it does

  • Master Context (MASTER_CONTEXT.md) — A full architectural overview of the codebase, regenerated on every PR merge. Perfect for new developers.
  • Personalized Catchup (checkpoints/Checkpoint_<email>.md) — A "While You Were Gone" briefing per developer, updated on every push. Shows exactly what changed since their last commit.
  • Commit Checkpoints — Per-commit summaries stored in checkpoints/, used as the source material for catchups.
  • PR Summaries — A consolidated summary for each pull request.

All generation runs via GitHub Actions — no local hooks required.

Installation

pip install checkpoint-agent

Quick Start

# Navigate to your git repository
cd /path/to/your/repo

# Run the interactive setup wizard
checkpoint --init

# Install the GitHub Actions workflow
checkpoint --install-ci

# Generate the master context (first time)
checkpoint --onboard

The setup wizard will ask for your LLM provider, model, and API key, then write .checkpoint.yaml and .env.

Commands

# Setup
checkpoint --init                        # Interactive setup wizard
checkpoint --install-ci                  # Install GitHub Actions workflow
checkpoint --config                      # Show current configuration
checkpoint --install-hook                # Install local git post-commit hook (optional)
checkpoint --uninstall                   # Remove git hook

# Generation
checkpoint --onboard                     # Generate MASTER_CONTEXT.md
checkpoint --catchup                     # Generate your personal catchup
checkpoint --catchup user@email.com      # Generate catchup for a specific user
checkpoint --catchup-all                 # Generate catchups for all active developers

# Commit analysis
checkpoint --commit <hash>               # Analyze a specific commit
checkpoint --commit <hash> --dry-run     # Preview without saving

# Info
checkpoint --stats                       # Show checkpoint statistics

GitHub Actions (recommended)

Run checkpoint --install-ci to install the workflow, then add your LLM API key as a GitHub secret (e.g. MISTRAL_API_KEY).

The workflow runs three jobs automatically:

Trigger Job Output
Push to any branch Generate commit checkpoints + catchups for all developers checkpoints/Checkpoint-*.md, checkpoints/Checkpoint_*.md
PR opened/updated Generate per-commit checkpoints + PR summary checkpoints/PR-*.md
PR merged to main Regenerate master context MASTER_CONTEXT.md

Configuration

.checkpoint.yaml:

llm:
  provider: mistral          # openai, anthropic, mistral, ollama, google, azure
  model: mistral-medium-2508
  temperature: 0.7
  max_tokens: 2000

repository:
  output_dir: ./checkpoints
  master_context_file: MASTER_CONTEXT.md

features:
  git_hook: false            # Local hook (GitHub Actions is preferred)
  diagrams: true             # Generate Mermaid diagrams in master context
  auto_catchup: false

languages:
  - Python

API keys go in .env:

MISTRAL_API_KEY=...
# OPENAI_API_KEY=...
# ANTHROPIC_API_KEY=...

Supported LLM Providers

Any provider supported by LiteLLM: OpenAI, Anthropic, Mistral, Google Gemini, Azure, Ollama (local), and more. Set provider and model in .checkpoint.yaml.

Project Structure

checkpoint_agent/
├── __main__.py          # CLI entry point
├── agents.py            # LLM prompts (CheckpointGenerator, CatchupGenerator, etc.)
├── graph.py             # Commit analysis pipeline
├── llm.py               # LiteLLM configuration
├── config.py            # Pydantic config models
├── storage.py           # Checkpoint file I/O
├── git_utils.py         # GitPython wrappers
├── mermaid_utils.py     # AST-based diagram generation (Python)
├── llm_diagrams.py      # LLM-based diagram generation (other languages)
├── setup_wizard.py      # Interactive setup wizard
├── git_hook_installer.py
└── templates/
    └── checkpoint.yml   # Bundled GitHub Actions workflow

Development

git clone https://github.com/BurntDosa/Checkpoint
cd Checkpoint
pip install -e ".[dev]"
pytest tests/

License

MIT

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

checkpoint_agent-1.0.3.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checkpoint_agent-1.0.3-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file checkpoint_agent-1.0.3.tar.gz.

File metadata

  • Download URL: checkpoint_agent-1.0.3.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for checkpoint_agent-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d5df3ce1b5dfa7f4fc50abc724b49d5c2d794598703c9bc122490a4c54106723
MD5 bca1e8122709d3cdd88d65a54b5af6c7
BLAKE2b-256 656e6c8afce475d87ae1546f12e4c4f0bae0504577a1a6196154c11d486d0978

See more details on using hashes here.

Provenance

The following attestation bundles were made for checkpoint_agent-1.0.3.tar.gz:

Publisher: publish.yml on BurntDosa/Checkpoint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file checkpoint_agent-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for checkpoint_agent-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5c24da4d6b275a948134855b48928a08507d89aa52e3199483c80d55b442cd3d
MD5 2eeb08bebd83cbb3dedfaf253a357cd3
BLAKE2b-256 7bd292540d9598b6ba036d672e5ecfe85a68149b1137f51b220da9fcfddd86d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for checkpoint_agent-1.0.3-py3-none-any.whl:

Publisher: publish.yml on BurntDosa/Checkpoint

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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