Skip to main content

Anubis

AI-native version control. Semantic commits and reasoning traces on top of git.

Anubis helps AI coding assistants (Claude, Cursor, Copilot) preserve context across sessions. Create checkpoints that capture not just code state, but why changes were made.

The Problem

When working with AI coding assistants:

  • Sessions end and context is lost
  • You can't resume exactly where you left off
  • There's no record of the reasoning behind changes
  • Code review lacks the "why"

The Solution

Anubis wraps git and adds:

  • Checkpoints with reasoning traces ("I'm trying approach A because...")
  • File snapshots capturing content and diffs at each checkpoint
  • Semantic analysis detecting what changed (added function, renamed class)
  • AI-friendly output for injecting context into new sessions

Installation

pip install anubis-vcs

Requires Python 3.11+ and git.

Quick Start

# One-command setup (initializes + configures Claude Code)
cd your-project
anubis setup

# Or initialize manually
anubis init

# Create a checkpoint with reasoning
anubis checkpoint "Refactoring auth" -r "Trying JWT approach, moving from sessions"

# View checkpoint history
anubis log

# Resume with AI-optimized output (perfect for pasting into Claude/ChatGPT)
anubis resume abc123 --format=prompt

# See semantic analysis of changes
anubis analyze

Commands

Command Description
anubis setup One-command setup (init + MCP + hooks)
anubis init Initialize Anubis in a git repo
anubis checkpoint "msg" -r "reasoning" Create checkpoint with reasoning
anubis status Show current state and recent checkpoints
anubis log View checkpoint history
anubis resume <id> View checkpoint details
anubis resume <id> --format=prompt AI-optimized output for context injection
anubis resume <id> --format=json Machine-readable output
anubis analyze Semantic analysis of current changes
anubis commit "msg" -r "reasoning" Semantic commit (wraps git commit)
anubis hooks setup Set up Claude Code integration

Example: AI-Friendly Resume

$ anubis resume abc123 --format=prompt

Output:

# Checkpoint: abc123
**Message:** Refactoring auth system
**Created:** 2024-01-15T10:30:00

## Reasoning
Trying JWT approach. Sessions were causing issues with horizontal scaling.
Planning to add refresh token rotation next.

## Changed Files

### src/auth.py (modified)
diff
- from flask import session
+ import jwt
+
+ def create_token(user_id: str) -> str:
+     return jwt.encode({"user_id": user_id}, SECRET_KEY)

Copy this into your AI assistant to resume exactly where you left off.

Claude Code Integration

MCP Server (Recommended)

Connect Anubis directly to Claude Code via MCP for seamless checkpoint access:

# Add Anubis MCP server to Claude Code
claude mcp add anubis -- anubis-mcp

# Verify connection
claude mcp list

Once connected, Claude Code can:

  • List and resume from checkpoints automatically
  • Create checkpoints with reasoning during coding
  • Access semantic analysis of changes

Hooks (Auto-checkpoint)

Auto-checkpoint when Claude Code makes changes:

anubis hooks setup

Add the output to ~/.claude/settings.json to enable automatic checkpoints on file edits.

How It Works

  • Metadata stored in .anubis/ directory (gitignored)
  • Wraps git for file versioning
  • SQLite database for checkpoints and semantic data
  • AST parsing for Python/JavaScript semantic analysis

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anubis_vcs-0.4.2.tar.gz (384.3 kB view details)

Uploaded Source

Built Distribution

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

anubis_vcs-0.4.2-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file anubis_vcs-0.4.2.tar.gz.

File metadata

  • Download URL: anubis_vcs-0.4.2.tar.gz
  • Upload date:
  • Size: 384.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for anubis_vcs-0.4.2.tar.gz
Algorithm Hash digest
SHA256 cd7e61a885770fda72c48a7fc2f2ba3db23ee2005fc764b80143471b48eaa6c6
MD5 ec6820dde8b0d119c0a41c28ab941880
BLAKE2b-256 acce3d112f3b3856d98ec32437edc6023e506956bb9a24ff4ef20bd8a43f33d8

See more details on using hashes here.

File details

Details for the file anubis_vcs-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: anubis_vcs-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for anubis_vcs-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7c01cf076fed8dcae5a1a809b484a68919264eec54d4cf25e7e0319b006333
MD5 02bb76cae64aa3b71e19571a2510ac1c
BLAKE2b-256 066819275f9f496ef05c1cc8a092c7019b4983b1119df8426382cc6a8c7d9eba

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.5

2 files

This release

0.4.2 This release

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page