ragent
Technical Specification
Version: 0.1.0-beta.28
Date: 2026-08-01
Author: Tim Hawkins <tim.thawkins@gmail.com>
github.com/thawkins/ragent
---
## Executive Summary
Ragent is an open-source AI coding agent for the terminal, written entirely in
Rust and distributed as a single statically-linked binary with zero external
runtime dependencies. It orchestrates multiple LLM providers — Anthropic,
OpenAI, GitHub Copilot, Google Gemini, Hugging Face, Ollama (local and cloud), xAI
Grok, Generic OpenAI-compatible endpoints, Azure AI Foundry, Azure Resource (File),
Amazon Bedrock, and a Model Router provider — behind a unified streaming interface,
giving developers a powerful,
provider-agnostic assistant that runs wherever a terminal does.
### What It Does
Ragent bridges the gap between conversational AI and hands-on software
engineering. An agent can read and write files, execute shell commands, search
codebases, manage Git and GitHub workflows, query language servers, read and
write office documents, and coordinate with other agents — all through a
large built-in tool library organised across multiple categories. Every tool
invocation passes through a multi-layered security and permission system that
gives the user full control over what the agent can and cannot do.
### How It Works
At its core, ragent follows a **session → agent → tool** loop. A session
processor manages the conversation with the LLM provider, the agent system
defines personality and capabilities via profiles, and the tool registry
dispatches execution requests. An asynchronous event bus (built on tokio)
connects all components, enabling real-time streaming of tokens, tool results,
and status updates to both the TUI and the HTTP API.
```mermaid
graph LR
User[User] --> TUI[TUI / HTTP API]
TUI --> SP[Session Processor]
SP --> LLM[LLM Provider]
SP --> AP[Agent Profile]
SP --> TR[Tool Registry]
TR --> Tools[File ops, bash, GitHub,