Crate agit

Crate agit 

Source
Expand description

AGIT: AI-Native Git Wrapper

AGIT captures the “Context” (Why/How) alongside the “Code” (What). It maintains a “Neural Graph” parallel to Git’s commit graph.

§Philosophy

“Code is the Artifact. Context is the Source.”

§Architecture

AGIT uses the “Seamless Echo Strategy” where AI editors (Cursor, Claude, etc.) push context to AGIT via MCP, eliminating the need for LLM API keys in the CLI.

§Example

# Initialize AGIT in a git repository
agit init

# Record a thought manually
agit record "Planning to refactor the auth module"

# Commit with context
agit commit -m "Refactor auth module"

# View history with context
agit log

Re-exports§

pub use domain::Category;
pub use domain::IndexEntry;
pub use domain::NeuralCommit;
pub use domain::Role;
pub use error::AgitError;
pub use error::Result;

Modules§

cli
CLI module for AGIT.
core
Core business logic for AGIT.
domain
Domain models for AGIT.
error
Error types for AGIT operations.
git
Git integration module.
mcp
MCP (Model Context Protocol) server module.
safety
Safety primitives for AGIT.
search
Full-text search module using Tantivy.
storage
Storage layer for AGIT.
templates
AI tool instruction file templates.