A zero-dependency terminal AI agent runtime in pure Rust.
Version 0.1.0 · nowii-core · Bounded Agent Loop · Sandboxed Tools · Deterministic Traces
Overview | Preview | Runtime Snapshot | Features | Quick Start | CLI Commands | Storage & Safety | Development | Contact
Most terminal agent runners bring in heavy external crates, complex runtimes, or opaque execution loops before you can inspect what the agent actually did. axon-cli takes a zero-dependency, systems-first approach: it implements a bounded agent execution loop, sandboxed tool calls, local persistent memory, and deterministic trace logging from scratch in pure Rust.
Designed as the execution layer for a local-first AI stack alongside vectorcore (hybrid vector & BM25 search) and contextshield (AI security gateway & secret redaction), axon-cli keeps execution inspectable, predictable, and self-contained.
axon-cli
├── CLI Commands (doctor, run)
├── Bounded Agent Execution Loop (list_dir -> read_file -> final respond)
├── Strict Sandbox & Shell Policy (disabled by default)
├── Local JSON Memory Store (.axon/)
└── Deterministic Execution Trace Logs (.axon/)
axon-cli is written in pure Rust with zero external runtime dependencies.
Deterministic Local Execution: Runs bounded goal loops (
list_dir,read_file,respond) with sub-millisecond local step timing and automatic offline fallback when no local LLM endpoint is active.
Measured on local release build (v0.1.0, goal: "Inspect workspace files and summarize README", strict sandbox):
| Metric / Component | Status / Result | Notes |
|---|---|---|
| Runtime Version | v0.1.0 |
Zero-dependency Rust release binary |
| Execution Loop | 3 steps (2 tool steps + respond) |
Bounded list_dir -> read_file -> final flow |
| Step Latency | 0ms per step |
Local deterministic execution |
| LLM Endpoint Fallback | OFFLINE FALLBACK (127.0.0.1:8080) |
Cleanly continues when local model endpoint is offline |
| Shell Policy | disabled (strict sandbox) |
Shell execution blocked by default |
Run it yourself:
./target/release/axon-cli doctorand./target/release/axon-cli run "Inspect workspace files and summarize README"
- Zero External Dependencies: Built in pure Rust with no external runtime dependencies for fast builds, small footprint, and predictable behavior.
- Sandboxed Tool Execution: Executes bounded step loops (
list_dir,read_file, finalrespond) under a strict sandbox with shell execution disabled by default. - Persistent Local Memory: Stores local JSON memory state under
.axon/across runs without requiring external databases. - Deterministic Trace Logs: Persists step-by-step execution records and timing details under
.axon/for inspection and debugging. - Runtime Diagnostics (
axon-cli doctor): Audits workspace and state directories, LLM endpoint status (with offline fallback), memory store state, saved trace count, and shell policy. - Goal Runner (
axon-cli run): Runs goal-oriented tasks and prints each step's type, latency, status, and final observation.
- Compiler: Rust toolchain (
cargoandrustc). - OS: macOS, Linux, or Windows.
git clone https://github.com/nowii-core/axon-cli.git
cd axon-clicargo test
cargo build --release./target/release/axon-cli doctor
./target/release/axon-cli run "Inspect workspace files and summarize README"Once built, you can run axon-cli directly from the workspace:
./target/release/axon-cli doctor./target/release/axon-cli run "Inspect workspace files and summarize README"axon-cli keeps state local to the workspace and enforces safe defaults:
- Local State & Traces (
.axon/): Persists local JSON memory entries and deterministic execution traces so every run can be reviewed. - Offline Fallback: If a local LLM server (such as
127.0.0.1:8080) is unreachable,axon-clifalls back cleanly to offline execution rather than failing hard. - Strict Sandbox: Shell execution is disabled by default so agent runs stay contained within permitted workspace tools.
cargo test
cargo build --releaseCargo.toml Package manifest (zero external dependencies)
README.md Project documentation and CLI usage guide
src/
main.rs CLI entry point and command dispatch (doctor, run)
json.rs Zero-dependency JSON parsing and serialization helpers
llm/
mod.rs Agent execution loop, tool orchestration, and LLM fallback
- Maintainer: @nowii-core
- Repository: github.com/nowii-core/axon-cli
- Ecosystem:
vectorcore·contextshield
