ZENE
Autonomous Coding Agent Governed by a Biological Connectome
A native multi-turn autonomous coding agent in Rust. Tree-sitter AST perception, 13 core filesystem and terminal tools, 3-tier skill architecture, and an embedded sub-15µs biological Drosophila connectome that executes involuntary spinal reflex safety gates.
The Fly Brain Sensory Reflex Gate
Traditional agents send full tool schemas to cloud LLMs on every single turn, leaving files vulnerable to hallucinated wipe commands and burning API tokens. ZENE runs an embedded 500-neuron connectome locally on CPU in under 15 microseconds before anything reaches the remote LLM.
Giant Fiber Reflex Lock
Modeled after the fruit fly's escape circuit that triggers in milliseconds when a shadow descends. Intercepts destructive commands (rm -rf /, unconstrained drive wipes) and locks workspace mutation before the prompt leaves the device.
Dynamic Tool Masking
Connectome neural attractors classify intent into 5 firing states (DISCUSSION, INSPECTION, PLANNING, EXECUTION, REFLEX_LOCK). Injects only minimal relevant tool definitions, cutting prompt token bloat by up to 74%.
Pure CPU L1 Residency
The 500-neuron connectome and 3,889 synapses are stored as an embedded 154 KB binary. Executed via 30 Euler numerical integration steps entirely in CPU cache with zero ONNX, LibTorch, or background daemon dependencies.
Biologically Grounded Decision Connectomes for Autonomous Coding Systems
Empirical data on Dale's principle adherence, Piéron's law response curves, and real-time attractor phase portraits.
13 Native Tools Implemented in Pure Rust
Every tool is written natively with zero shell wrappers or Node scripts, featuring precise line slicing, diff verification, and AST diagnostics.
| Tool | Category | Safety Type | Functionality |
|---|---|---|---|
| read_file | Filesystem | Read-only | Reads file contents with precise line slice notation |
| write_file | Filesystem | Destructive | Writes or creates new files on the filesystem |
| edit_file | Filesystem | Destructive | Targeted substring search and surgical replacement |
| search | Search | Read-only | High-speed ripgrep-style content and filename pattern matcher |
| run_terminal | Terminal | Requires Approval | Executes shell commands in the target workspace |
| get_diagnostics | Diagnostics | Read-only | Captures live compiler, linter, and typecheck diagnostics |
| git_diff | Git | Read-only | Inspects staged and unstaged git changes |
| create_plan | Planning | Read-only | Initializes multi-step architecture refactor roadmaps |
Quickstart & CLI Installation
Install the binary locally with Cargo or embed ZENE into your own Rust developer tools.
# Clone the repositorygit clone git@github.com:kabirajpan/zene.git cd zene# Installs `zene` binary to ~/.cargo/bincargo install --path .# Configure free Gemini or Groq keyexport GEMINI_API_KEY="your-api-key"# Start interactive REPLzene[dependencies]agent = { git = "https://github.com/kabirajpan/zene.git" }// In your Rust application:use agent::create_agent_for_model_and_workspace; let mut agent = create_agent_for_model_and_workspace( "gemini", "gemini-3.5-flash-lite", "./", )?;Experience ZENE inside Zenthree IDE
ZENE is compiled directly into Zenthree as an interactive sidecar assistant with native PTY terminal bindings, live diagnostics, and zero electron bloat.