An orchestration framework where AI conversations live as commits. Spawn subagents on branches. Rewind to any point.
Each conversation turn writes a git object. Your agent history is branched, diffed, and reverted — just like code.
Every message, tool call, and response becomes a git object with a SHA. Immutable. Inspectable.
Spawn child agents on isolated branches. Each gets its own context window and git history.
Jump to any SHA. Fork from there. Your entire history is a navigable graph.
Six capabilities. One framework. Zero lock-in.
Fork at any turn. Spawn child agents on isolated branches — each with its own context and history. Queue management, depth limits, auto-cleanup. No merge conflicts.
Token budgets, not token chaos. Dedup repeated reads, summarize older turns, vector search across your full history. Never overflow your context window again.
Connect to everything. Filesystem, git, browser, search — via Model Context Protocol. Add any MCP server with one command. Tools flow through to subagents automatically.
One interface, any provider. Switch between OpenAI, Anthropic, local models — or mix them per subagent. Cost-optimized routing built in.
Undo without starting over. Step back to any turn, diff between commits, compare branches. Your agent history is a manipulable graph — not a black box.
Inspect sessions, manage subagents, replay turns — all from the command line. Every operation in the framework is accessible via the CLI.
Create a session, add turns, spawn a subagent — git handles the rest.
from gitlord import Session, SessionConfig config = SessionConfig(model="gpt-4o") session = Session.create("my-agent", config) # Every turn is a git commit session.add("user", "Analyze the codebase for security issues") session.add("assistant", "I'll scan for SQL injection vulnerabilities...") # Spawn a subagent on its own branch sub = session.spawn("security-scanner") sub.add("user", "Focus on OWASP Top 10") # Rewind to any point session.rewind(session.log()[0].sha)
a3f2c1d security-scanner: OWASP Top 10 analysis complete b7e4a9f assistant: Scanning for SQL injection... c1d8f3a user: Analyze codebase for security issues e9a2b4c session: my-agent created
Every component is a Python module. Swap what you need. Inspect what you don't.
| session.py | Turn lifecycle, branching, rewind, snapshots |
| subagent.py | Spawn, queue, depth management, completion |
| context.py | Dedup, summarization, token budget, cache |
| rag.py | ChromaDB vector index, semantic search |
| mcp.py | MCP server management, tool dispatch |
| model.py | LiteLLM routing, provider abstraction |
| git.py | Git plumbing — the engine underneath |
| cli.py | Terminal interface for everything above |
Install in one command. Full stack included.
Requires Python 3.11+. Works with OpenAI, Anthropic, or any LiteLLM-supported provider.