open-gitagent/gitagent
A Git-native Rust agent framework for versioning behavior, tools, and memory
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
gitagent treats the agent folder as the unit of configuration and review. agent.yaml declares the model, tools, runtime and compliance settings; SOUL.md, RULES.md, and the skills, workflows and memory directories contribute to a system prompt assembled in a fixed order at startup. Working memory is committed on save, whereas .gitagent/ holds uncommitted session, audit and schedule state. A Git commit therefore captures the versioned files, not the complete execution record.
The Rust 2021 workspace sets a minimum Rust version of 1.89, forbids unsafe code in its workspace lint configuration, and separates loading, context, providers, hooks, guards, sandboxing, and SDK integration into internal crates. Local plugins contribute tools, skills, hooks, or prompt text. Tool declarations can invoke scripts or HTTP calls; MCP adds local stdio and remote HTTP connections. Python and TypeScript SDKs and line-oriented --ipc provide application integration without requiring callers to embed the Rust engine.
Key Capabilities & Differentiators
The CLI supports interactive sessions, one-shot prompts, named workflows, JSONL events, and clone-based branch runs. A repo-mode run commits only when files change and pushes only with --push. Cron-style schedules run through a long-lived gitagent schedule start process. Optional parallel execution gives each task a fresh context and shell, runs tasks in phases, and reconciles the results with another sub-agent. Concurrency defaults to four and drops when the provider rate-limits requests.
Provider support covers Anthropic, OpenAI's Responses API, Gemini, and OpenAI-compatible endpoints such as OpenRouter, Ollama, and vLLM. The harness limits model-visible command output to 8,000 tokens, retains the full output separately, and uses provider-side context editing to clear older tool results after the conversation exceeds 50,000 tokens. The published Terminal-Bench 2.1 run scored 93.03% ±0.8 with Claude Opus 5.5 across 89 tasks and five runs per task; two tasks requiring nested VMs failed on that host. The result describes that model, harness, and environment, not performance across all backends.
Trade-offs & Limitations
Compared with using Codex CLI or Claude Code as a terminal coding assistant, the adoption case for gitagent is stronger when changes to agent behavior need Git review or when one agent definition must serve both CLI and SDK callers. That control comes with maintenance: repository layout and hooks become operational configuration, and versioned memory needs a retention policy because deleting a file does not remove it from Git history. Parallel phases can shorten independent work but add model calls, and provider-specific caching or context editing should not be assumed to behave the same across endpoints.
Repo mode keeps commits and pushes off the base branch and excludes force-pushes. Provider keys are kept out of the agent shell, but neither control makes an untrusted agent folder safe to run: shell-backed tools, hooks, and MCP servers still require explicit trust and permissions. Set tool allowlists, turn and time limits, and scoped Git credentials before unattended use. The MIT license permits commercial use, but it does not address the separate terms or data-handling requirements of model providers and connected services.
Hardware & Deployment Guide
The v3.0.0 Rust rewrite ships one static binary through npm or the install script for Linux and macOS on x86_64 and arm64. Running the installed binary does not require Node or a Rust toolchain; npm is needed only for that installation route or the TypeScript integration. Source builds use the pinned toolchain in rust-toolchain.toml and cargo build --release. The release preserves compatibility with 1.x and 2.x agent definitions, hooks, schedules, and SDK code, and can load OpenGAP agent folders. MCP client support arrived in v2.1.0, and v2.2.0 introduced the Rust engine before the v3 rewrite became the main distribution.
For self-hosting, run the CLI or manage the IPC process from your application; keep a scheduler process alive for timed work. Hosted inference requires provider credentials and network access. A local compatible model endpoint can keep inference local, but a fully offline deployment also requires local repositories, tools, and data. No GPU is needed on the gitagent host for remote inference; local inference hardware depends on the separate model server. Size CPU, RAM, and disk for concurrent shells, repository work, and retained logs.
Engineering teams that want to review agent behavior in Git, run branch-scoped automation, and share one agent definition across the CLI and application integrations.
You want a managed service with a ready-made web console and no processes to operate, or you need to run untrusted agent folders without reviewing their scripts, tools, and permissions.
Quick Start & Installation
curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitagent/main/scripts/install.sh | sh
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| gitagent ★ | 758 | +3 | Rust | MIT | A Git-native Rust agent framework for versioning behavior, tools, and memory |
| zeroclaw | 33.7k | +75 | Rust | Apache-2.0 | Self-hosted Rust runtime for multichannel AI assistants and approval-gated autom |
| langchain | 150.4k | +290 | Python | MIT | Modular Python framework for building agents across model providers |
| browser-use | 122.7k | +477 | Python | MIT | Python REPL and CDP for adaptive browser automation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/open-gitagent/gitagent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about gitagent
How do I embed a versioned agent in an existing application?
--ipc and implement the line-oriented protocol. Validate the agent folder with gitagent validate before integrating it, and treat the binary as a process your application must manage, not as a hosted HTTP API.Do I need a GPU, and what should I size for?
Can we use gitagent commercially and self-host it?
When should we pick gitagent over Codex CLI or Claude Code?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy