Configuration
AGIT works out of the box with sensible defaults, but you can customize its behavior.
Generated Files
When you run agit init, these files are created:
.agit/ Directory
The neural graph storage, similar to .git/:
.agit/
├── objects/ # Content-addressable object store
├── refs/ # Branch references
│ └── heads/ # Branch head pointers
├── HEAD # Current branch pointer
└── index # Staging area (JSONL format)
Editor Configuration Files
AGIT generates configuration files for AI editors:
| File | Editor | Purpose |
|---|---|---|
CLAUDE.md | Claude Code | Instructions for Claude to log thoughts |
.cursorrules | Cursor | Instructions for Cursor AI |
.windsurfrules | Windsurf | Instructions for Windsurf AI |
These files tell your AI assistant to:
- Call
agit_log_stepwhen planning - Record user intents and AI reasoning
- Help create meaningful commit summaries
Git Integration
AGIT works alongside Git, not replacing it:
- Parallel Storage:
.agit/lives alongside.git/ - Linked Commits: Neural commits reference git commits
- Branch Tracking: AGIT follows your git branches
Recommended Workflow
# 1. Work on your feature with AI assistance
# (AI automatically logs thoughts)
# 2. Stage changes
git add .
# 3. Commit with AGIT (creates git + neural commit)
agit commit -m "Add feature X"
MCP Server Configuration
The AGIT MCP server starts automatically when needed. For manual configuration:
# Start server manually
agit server
# With custom port (if needed)
agit server --port 8080
Ignoring AGIT Files
Add to your .gitignore if you don't want to share neural commits:
# Ignore AGIT data (optional)
.agit/
However, we recommend committing the editor config files so your team shares the same AI instructions:
# Don't ignore these
# CLAUDE.md
# .cursorrules
# .windsurfrules