
A universal git-native AI agent framework. Your agent lives inside a git repo — identity, rules, memory, tools, and skills are all version-controlled files.
Repo open-gitagent/gitagent, read from GitHub 5 h ago. open-gitagent has not joined Take My Repo.
gitagent 3 is a rewrite of gitagent in Rust. It ships as one static binary with no runtime to install, through npm as before or with a one-line install script, and it runs the agents, hooks, schedules and SDK code written for the TypeScript gitagent (1.x and 2.x) unchanged.
npm install -g @open-gitagent/gitagent@latest # if you installed with npm gitagent --version # 3.0.0 gitagent validate ./my-agent # warns about old spellings, never fails
Most agents need no changes. MIGRATING.md goes through the upgrade step by step, and npm install -g @open-gitagent/gitagent@2 goes back.
plan tool splits a large job into phases of tasks, runs them in parallel and reconciles the results. A shared throttle adapts to the provider's rate limits.gitagent --sandbox (with gitmachine) runs the agent's commands and edits in an E2B VM as before, through the npm command; query({ sandbox }) does the same in the SDK.npm install -g @open-gitagent/gitagent installs the binary for your platform and the gitagent command, so npm users update the way they always have. The same package is the TypeScript SDK.gitagent --ipc), and any language that can start a process can do the same. The Rust crate gitagent-sdk runs the loop in your own process.task_complete is accepted only when the agent's last change has been exercised, by a test, a run of the program or a request.sandbox-exec on macOS.gitagent learn --from <runs>, or learning: online in gitagent.yaml, turns finished runs into short lessons. A lesson is used only once two different tasks support it, and the lesson file is reviewed like code.--events jsonl streams each step, and OTLP export sends traces and metrics.gitagent validate checks a folder against the format, giving the file and line of every problem.GITAGENT_BIN).loadAgent, discoverSkills, CostTracker and the schedule, history, compaction and telemetry helpers remain importable but throw when called; see MIGRATING.md.@open-gitagent/voice works with 2.x only.--voice;entry JavaScript (plugins now contribute tools, skills, hooks and prompt text through files);sandbox: off in gitagent.yaml.-p runs, schedules and the SDKs stop after 30 minutes unless you set timeout_s, --timeout-s or timeoutMs. The console has no limit.GITAGENT_BIN.cli, read, write, edit, memory), so background shell sessions and write_stdin are not available inside it. It runs through the npm command only.pip install ./clients/python) and needs the binary.curl -fsSL https://raw.githubusercontent.com/open-gitagent/gitagent/main/scripts/install.sh | sh # or npm install -g @open-gitagent/gitagent
The archives below hold the binary and the README for each platform. To check a download:
sha256sum -c SHA256SUMS --ignore-missing # on macOS: shasum -a 256 -c SHA256SUMSTo build from source, see the README's Install section.
This release adds rust/gitagent-rs: a Rust rewrite of the gitagent engine (ira) and a complete local-first desktop product built on it (Lyzr Edgespace).
pi core: agent loop, provider fallback + auto-continue on truncation, streaming channel splitter for reasoning modelsPOST /v1/chat/completions)curl -fsSL https://github.com/NeuralgoLyzr/lyzr-edgespace/releases/latest/download/install.sh | bashDMG attached as an alternative (right-click → Open on first launch, or see the in-DMG README).
39/39 integration tests passing.
First release with Model Context Protocol (MCP) client support — connect gitagent to local and remote MCP servers and expose their tools to the agent.
MCP client (#59)
mcpServers option on query() (and mcp_servers in agent.yaml).<server>__<tool> and merged into the agent's tool set.@modelcontextprotocol/sdk.import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ prompt: "List my open PRs", mcpServers: { github: { command: "mcp-github", args: ["--stdio"] }, api: { type: "http", url: "https://mcp.example.com" }, }, })) { /* … */ }
npm i @open-gitagent/gitagent@2.1.0
Note: 2.0.1 is deprecated (a Windows hook-guard regression). Use 2.0.2+ / 2.1.0.
Fixes the "Your session hit the maximum duration of 60 minutes" failure in voice mode — previously, once OpenAI terminated the Realtime session, every subsequent message returned "server had an error while processing your request" and the agent was stuck until restart.
On `session.created`, a 55-minute timer is armed. When it fires, the adapter tears down the WS and opens a fresh one with the same instructions, tools, and voice. Users notice a sub-second pause instead of a hard failure. Visible in the Logs tab as `[voice] Refreshing Realtime session (proactive refresh before 60-min cap)`.
If the server somehow terminates the session before our timer fires (e.g. tier with a 30-min cap), we also watch for error payloads containing `maximum duration` / `session_expired` and trigger the same reconnect path instead of propagating the error to the user.
Both paths reuse the existing `connectWs` + `sendSessionUpdateOn` logic, including the ephemeral-token fallback for WebContainer-style hosts.
Full Changelog: v1.4.2...v1.4.3
The agent can now modify files without rewriting them in full. Works on both the local filesystem and inside the E2B sandbox.
Modes:
Example:
```json
{ "path": "src/foo.ts", "old_string": "const x = 1", "new_string": "const x = 2" }
```
With regex:
```json
{
"path": "package.json",
"old_string": ""version":\\s*"\\d+\\.\\d+\\.\\d+"",
"new_string": ""version": "2.0.0"",
"regex": true
}
```
Built-in protections: refuses identical old/new strings, refuses no-op replacements, and reports the number of replacements applied.
Full Changelog: v1.4.1...v1.4.2
Enhances the Logs UI with much deeper server-side instrumentation so that even the smallest error becomes visible.
uncaughtException, unhandledRejection, and Node warning handlers — captures crashes that would otherwise disappear silently/api/* request logged with method, path, status, and durationjsonReply auto-logs any 400+ response with the error messageerror and clientError handlers (port conflicts, malformed requests)req/res error handlers (dropped connections, broken pipes)wss.on('error') and per-connection browserWs.on('error') handlersFull Changelog: v1.4.0...v1.4.1