tzro — Durable Local-First Agentic Engine
Deterministic topological task compilation, hybrid relational memory, and sandboxed WASM/stdio execution coordinated securely on resource-constrained offline hardware.
Surgically Separate Strategy & Tactics
Traditional AI loops throttle inside expensive, high-latency cloud cycles. tzro resolves this by surgically separating cognitive loads: a frontier cloud planner constructs abstract blueprints ONCE, delegating physical execution to local, GBNF-constrained tacticians.
The Strategist
- Execution Frequency: Invoked exactly once at task startup.
- SOP & Skill Indexing: Ingests compressed procedural skill signatures using Hybrid Vector keyword and cosine similarity rankings.
- Abstract Graph Declaration: Compiles a coarse cycle-free JSON blueprint defining dependency edges and tool white-lists.
- Cost Efficiency: Yields up to **80% prompt reduction**, completely avoiding expensive cloud context window slot thrashing.
The Tactician
- Execution Frequency: Runs sequentially per active compiled topological action node.
- GBNF-Constrained Completion: Backus-Naur grammar structures guarantee 100% syntactically correct tool arguments.
- 5-Layer Compaction Pipeline: Hoists homogeneous tabular CRM tables into TSV format to save 85% of attention context space.
- Priority Cache Preemption: Wipes background task context slots instantly to serve sub-450ms human chats.
1. Kahn Parallel Execution Simulator
Observe the Go runtime compiler topological Kahn sort sequencer. Independent nodes at the same topological level run in parallel goroutines, satisfying dependency edges before unblocking downstream nodes.
| ID | Subsystem | Engine |
|---|---|---|
| 01 | Durable Execution | SQLite Checkpoints |
| 02 | Kahn Graph Compiler | DAG Topological Sorter |
| 03 | Relational Memory | FTS5 Vector ONNX |
| 04 | WASM Micro-Skills | Isolated Sandbox Wasmtime |
| 05 | Stdio MCP Gateway | Process Host Auto-Healing |
Kahn Parallel Execution Simulator
Watch goroutines compile abstract strategic nodes and execute them concurrently based on dependency limits.
2. 5-Layer Context Compaction Pipeline
Prevent context window slot thrashing. Select homogeneous CRM tables, diagnostic stack traces, or scraped HTML scrapings, and watch the executor compress key structures natively before prompting local LLMs.
Context Compaction & SQLite Cache Playground
Select structured raw data inputs and watch the Go system compile them into compressed, attention-friendly layers.
3. Go SDK & Synchronous Middleware Hooks
Fully typed Go SDK packages handle configuration loading, custom native tool registrations, Kahn sorted runs, and async telemetry streams. Inject blocking middleware hooks to scrub PII, enforce safety guardrails, or trigger HITL gates.
// Loading snippet...
Synchronous Hook Playground
Inject custom Go middleware hook events natively into the active DAG task loop to intercept executions dynamically.
AfterNode
delete_all_records tool
nodes
Zero-Setup Quickstart
curl -sSL https://tzro.network/install.sh | bash
tzro --offline
go run cmd/tzrod/main.go