CACode v0.3.0

Sovereign Dev CLI & Autonomous Chat Agent

Rust 2024 Native • ReAct Loop • 5 Sovereign Tools • Cost Proxy :8000 • 100% BYOK

Full-Lifecycle Sovereign Development CLI & Chat-Agent

Full-lifecycle sovereign Rust development assistant with interactive ReAct agent loop (reedline), 5 core sovereign tools (read, patch, write, bash, search_files), Hyper local token proxy & cost detector (:8000), 100% BYOK execution, and zero telemetry.

INTERACTIVE TUI & REPL SHOWCASE

Deterministic ReAct Loop & Live Cost Proxy Meter

CACode never hallucinates blind rewrites. It plans sequentially, inspects with 5 sovereign tools, and meters every token locally through port 8000.

cacode — reedline interactive REPL
PROXY: :8000 BYOK: Anthropic Claude 3.7 LEDGER: costs.db
CACode Sovereign CLI v0.3.0 (x86_64-unknown-linux-gnu)
Type /help for slash commands or enter natural language engineering prompt.
> Refactor auth middleware to reject expired JWT tokens with 401 Unauthorized and add unit test.
🧠 [REASON: PLAN FORMULATION]
1. Inspect internal/middleware/auth.rs to locate token verification handler.
2. Identify timestamp validation operator (<= instead of strict expiry check).
3. Apply surgical AST patch using sovereign patch_file tool.
4. Execute cargo test test_expired_token via sandboxed shell to verify zero regression.
⚡ [ACT: tool_call] read_file(path="internal/middleware/auth.rs", offset=40, limit=25)
[OK: 25 lines read | 182 tokens cached | 0.4ms]
🛠️ [ACT: tool_call] patch_file(path="internal/middleware/auth.rs", old="if exp < now", new="if exp <= now { return Err(AuthError::Expired); }")
[SUCCESS: Unified diff applied cleanly. Syntax validated: 0 errors.]
🚀 [ACT: tool_call] execute_command(command="cargo test test_expired_token -- --nocapture")
running 1 test ... test tests::test_expired_token ... ok (0.02s)
Tokens: 1,420 in / 380 out | Cache Hit: 68% | Cost: $0.0099
Immutable Ledger: ~/.cacode/costs.db (TX #1042)
SOVEREIGN ARCHITECTURE PROFILED

Real-World Coding Agent Benchmarks

Benchmarked on Linux x86_64 Fedora 44, Rust 1.85, 120k LOC multi-crate workspace.

Evaluation MetricCACode (v0.3.0)Claude Code (Node.js)Cursor (Electron)Aider (Python)Windsurf (Electron)
Cold-Start Launch< 15ms (Native Rust)~1,200ms~2,500ms~1,800ms> 3,200ms
RAM Usage (Idle)< 25 MB~120 MB~350 MB~95 MB> 450 MB
Proxy Interception Latency0ms (Embedded Hyper :8000)N/A (No proxy)N/A (Proprietary)N/A (Direct)N/A (Proprietary)
Code & Query Telemetry0 bytes (Zero Telemetry)Opt-out onlyContinuous telemetryTelemetry opt-inContinuous telemetry
Offline Local Models (Ollama/vLLM)100% First-Class (BYOK)Cloud-locked (Anthropic only)Limited / Cloud-firstSupportedCloud-locked
Autonomous Sub-Agent ConcurrencyBuilt-in Parallel FleetSingle threadSingle threadSingle threadSingle thread
12 SOVEREIGN CAPABILITIES

Sovereign Engineering & Autonomous Agent Features

Engineered for software engineers who require maximum AI autonomy without giving up code confidentiality or suffering bill shock.

🔄
ReAct Loop

Interactive ReAct Agent Loop (reedline)

Multiline terminal REPL powered by reedline with syntax highlighting, smart completion, and autonomous Reason + Act planning that self-corrects upon test failures.

🛠️
5 Core Tools

5 Core Sovereign Tools

High-performance native primitives: windowed read_file, AST fuzzy patch_file, embedded ripgrep search_files, sandboxed execute_command, and tree-sitter inspect_symbols.

📊
Cost Proxy :8000

Token-Usage & Cost Detector Proxy (:8000)

Embedded Hyper reverse proxy on localhost:8000 intercepting LLM inferences, accelerating prompt caching, metering live token consumption, and enforcing hard session budgets.

📜
SQLite Ledger

Immutable SQLite Cost Ledger

Every token consumed and dollar spent is recorded to an immutable local SQLite database (~/.cacode/costs.db) with zero external ledger reporting.

🛡️
100% BYOK

100% BYOK & Zero-Telemetry

Bring your own keys for OpenAI, Anthropic, Ollama, vLLM, Groq, and 9Router. Your API keys and source code never leave your local environment.

🗂️
Sub-Agent Fleet

Sub-Agent Concurrency & Fleet

Orchestrate parallel sub-agent workers for simultaneous bug fixing, test coverage repairs, and documentation generation in isolated workspaces.

⚡
Slash Commands

Deterministic Slash Commands

Rapid engineering workflows via /plan, /review, /test, /diff, /compact, /model, /undo, /cost, and /settings directly from the prompt bar.

🔒
Sandboxed

Sandboxed Execution Sandbox

All file edits, unified diff applications, and terminal script executions run inside verified security sandboxes with explicit user approval gates.

🏎️
Rust 2024 Core

Extreme Rust Performance (<15ms, <25MB RAM)

Engineered in pure Rust 2024. Cold launch in under 15 milliseconds and idle memory consumption under 25 MB RAM—10x lighter than Node or Python agents.

🔍
Pre-Commit Diff

Automated Pre-Commit Diff Review

Structural AST validation of git diffs before committing, guaranteeing zero hallucinated imports or breaking API regressions enter your repository.

📑
Multi-Tab Sync

Multi-Tab Workspace & State Sync

Seamlessly switch across multiple repositories and branch contexts with persistent session journals that restore instantly without loss of context.

🌐
Zero Telemetry

Complete Cryptographic Data Sovereignty

Fully compatible with offline local models via Ollama and vLLM. Zero telemetry, zero analytics tracking, and complete code ownership in your hands.

CACode Licensing & Pricing

100% BYOK. Bring your own keys. Pay once for permanent pro features with zero predatory subscription lock-in.

CACode Free Core

Perfect for individual developers and researchers wanting a sovereign terminal coding assistant with local BYOK models.

$0 / free forever
  • ✓ Interactive ReAct Agent Loop (reedline)
  • ✓ 5 Core Sovereign Tools (read, patch, write, bash, search)
  • ✓ Local Token & Cost Proxy (:8000)
  • ✓ Immutable SQLite cost ledger (~/.cacode/costs.db)
  • ✓ 100% BYOK (Ollama, vLLM, OpenAI, Anthropic)
  • ✓ 100% Offline-ready with zero telemetry
Most Popular

Sovereign Pro Lifetime

For power engineers and professionals who require sub-agent concurrency, prompt cache optimization, and lifetime commercial licensing.

$39 / one-time payment
  • ✓ All features from CACode Free Core
  • ✓ Parallel sub-agent concurrency orchestration
  • ✓ Priority LLM routing & prompt cache optimizer
  • ✓ Automated test repair & self-healing regression loop
  • ✓ Persistent multi-tab workspace synchronization
  • ✓ Lifetime commercial license & all minor updates

Ultra Pro Autonomy

For engineering leads and teams requiring unlimited concurrent sub-agent fleets, custom tool extensions, and proxy clustering.

$89 / one-time payment
  • ✓ All capabilities in Sovereign Pro
  • ✓ Unlimited concurrent sub-agent fleet
  • ✓ Custom sovereign tool extension framework
  • ✓ Local proxy clustering & automatic multi-node failover
  • ✓ Team budget allocation & spend audit dashboard
  • ✓ Direct priority SLA developer support

Frequently Asked Questions (FAQ)

Everything you need to know about code privacy, ReAct loop, and the :8000 cost proxy.

How does CACode protect my source code and API keys?

CACode operates under strict 100% BYOK and Zero-Telemetry principles. All configuration (~/.cacode/config.toml) and cost ledgers (~/.cacode/costs.db) reside exclusively on your local disk. No telemetry, prompt logs, or source code snippets are ever transmitted to Fathforce servers.

What are the 5 Core Sovereign Tools used by CACode?

CACode's sovereign primitives include: read_file (windowed offset file reader), patch_file (fuzzy AST-aware unified diffing that avoids destructive rewrites), search_files (embedded ripgrep regex and file search), execute_command (sandboxed terminal runner with user confirmation gates), and inspect_symbols (tree-sitter symbol outline navigator).

How does the Token & Cost Detector Proxy (:8000) operate?

CACode runs an ultra-lightweight Hyper reverse proxy on localhost:8000. Every inference call is metered in real-time to compute token counts, prompt cache hits, and exact dollar costs recorded into local SQLite. You can set hard budget caps (e.g. abort if session spend exceeds $0.50) to prevent runaway loops.

Can I run CACode completely offline with local open-weights models?

Absolutely. CACode features native integration with Ollama, vLLM, and LM Studio. Simply point your provider to your local server (e.g. http://localhost:11434 for Qwen 2.5 Coder or DeepSeek) and CACode will function seamlessly with zero internet access required.