Live Release: v0.1.0 on GitHub

The Durable, Provider-Neutral
AI Agent Runtime in Go

Append-only event sourcing, deterministic prefix caching, multi-provider streaming, and single-binary zero-dependency execution.

Stars: 0
Release: v0.1.0
Latest Commit: ...
License: Apache-2.0
zagent — bash / powershell
> zagent --session feature-audit -p "Analyze project files and prepare release notes"
# Engine initialized session 'feature-audit' (lock acquired via owner.lock)
# Context builder: cached prefix matched 4,120 tokens (100% KV cache hit)
✔ Model turn complete · 3 tool calls executed · 0 HTTP 413 retries
> zagent --session feature-audit --ui web
# Detached control server listening on 127.0.0.1:58432 (token authenticated)
# Opening dashboard in default browser...

Get Started in Seconds

Choose your preferred installation or build method

# Download and run zagent on Windows Invoke-WebRequest -Uri "https://github.com/ranjanlive/zagent/releases/latest/download/zagent-0.1.0-windows-amd64.zip" -OutFile "zagent.zip" Expand-Archive -Path "zagent.zip" -DestinationPath "zagent" cd zagent\zagent-0.1.0-windows-amd64 # Initialize agent home & configure .env .\zagent.exe init notepad .env # Verify and run .\zagent.exe doctor .\zagent.exe -p "Hello from zagent!"
# Download and extract on Linux / macOS curl -sSL -O "https://github.com/ranjanlive/zagent/releases/latest/download/zagent-0.1.0-linux-amd64.tar.gz" tar -xzf zagent-0.1.0-linux-amd64.tar.gz cd zagent-0.1.0-linux-amd64 # Initialize agent home & configure .env ./zagent init nano .env # Verify and run ./zagent doctor ./zagent --ui cli
# Install directly using Go (1.26+) go install github.com/ranjanlive/zagent/cmd/zagent@latest # Verify installation zagent version
# Clone the repository git clone https://github.com/ranjanlive/zagent.git cd zagent # Run tests & verify go test ./... go vet ./... # Build binary go build -trimpath -o zagent ./cmd/zagent

Engine Architecture & Capabilities

Designed for absolute resilience and high-performance local AI automation

Append-Only Event Log

Sessions are stored as immutable JSONL events paired with content-addressed SHA-256 binary blobs. State reconstruction is crash-proof and reproduces exact previous context.

Deterministic Prefix Cache

Pure context builders with sorted-key serialization guarantee byte-identical renders. Each conversational turn strictly extends history at the tail, keeping remote KV cache hit rates near 100%.

Multi-Provider Streaming

First-class streaming adapters for Gemini, OpenAI-compatible (Ollama, vLLM, OpenRouter), Anthropic Messages, and custom gateways with thought-signature retention and token usage tracking.

OS-Level Concurrency & Locks

Single-writer session ownership is guarded by true operating system file locks (`owner.lock`). Process termination cleanly relinquishes claims without stale heartbeat leaks.

Strict Size & 413 Guards

Requests are sized pre-flight. When nearing body limits, aged tool attachments are pruned first, followed by intelligent compaction prompt generation, completely avoiding gateway 413 rejections.

Tri-Modal Interfaces

Headless execution, terminal Bubbletea TUI, and embedded web UI all connect to a single local control server over SSE. Closing an interface never interrupts a working agent.

Official Release Binaries

Fetching latest assets from GitHub API...

v0.1.0 Latest
Synced with GitHub
File / Package Platform / Architecture Size Action
Loading release assets from GitHub...