FeV
WorkAbout
0%//NAV
INDEX //FERMAS
Systems / Autonomous AgentsPure RustAsync Actor RuntimePrompt Cache IntegrityRatatui TUI

Fermas

Pure-Rust autonomous AI agent runtime. High-throughput async actor model across 15 Tokio crates, byte-stable prompt caching, Ratatui TUI, JIT skill discovery, and native Linux desktop daemon.

// System Dossier2026
ROLELead Systems Architect & Runtime Engineer
CATEGORYSystems / Autonomous Agents
TECHNOLOGY STACK
RustTokioRatatuiSQLite FTS5uinputPipeWireWASM
Source Repository ↗
★Verified ReceiptsEMPIRICAL
✓1/10th memory footprint and instant cold-start compared to Python agent runtimes with zero garbage collection overhead.
✓100% byte-stable prompt caching prefix verified across multi-turn sessions, reducing token latency by up to 70%.
✓Unified single static binary deploying zero external runtime dependencies with bundled SQLite FTS5 session persistence.
NAVIGATE DOSSIER01 · Media Hub & Theater02 · Engineering Challenge03 · 4-Step Pipeline04 · System Blueprint05 · Adjacent Systems
2K FLUID THEATER
Fermas
OFFLINE-FIRST ARCHITECTURE // FERMAS2026 ARTIFACT SPECIFICATION
// 01 · THE PROBLEM STATEMENT & ARCHITECTURAL CONSTRAINTS

Traditional Python agent frameworks suffer from garbage collection pauses, heavy memory footprints (>1.

Traditional Python agent frameworks suffer from garbage collection pauses, heavy memory footprints (>1.5 GB), fragile global state, and non-deterministic prompt cache invalidation that destroys LLM prefix caching. Building an autonomous agent in pure Rust required an actor-based runtime with sub-millisecond turn cycles, strict prompt-cache byte stability, and safe Linux desktop automation.

// 02 · 4-STEP SYSTEM ENGINEERING PIPELINE
STEP 01

Architected a modular 15-crate pure-Rust agent runtime on Tokio: decoupled state machines (fermas-core), model transport (fermas-llm), TUI presentation (fermas-tui), tool execution (fermas-tools), and subagent orchestration (fermas-orchestration).

STEP 02

Enforced strict prompt cache integrity: guaranteed byte-stable system prompts (SOUL.md, AGENTS.md) and strict user/assistant turn alternation to achieve 100% KV prefix cache hits across Anthropic, OpenRouter, and Ollama sessions.

STEP 03

Engineered a JIT skill engine with procedural memory: dynamic SKILL.md parsing with sandboxed WASM/C-ABI execution (wasmtime/libloading) and automated background curator usage telemetry.

STEP 04

Built native Linux desktop daemon (fermas-daemon): integrated MIT Niri and Hyprland Wayland compositors, PipeWire video frame capture, and a persistent kernel uinput virtual keyboard/mouse device.

// 03 · SYSTEM BLUEPRINT & DATA FLOW SCHEMATIC
PURE SVG VECTOR ENGINE
fermas-cli // ratatui tuizero node.js · native terminal uifermas-core (tokio actor)byte-stable prompt cache prefixfermas-llm transportanthropic · openrouter · ollamajit skill engine & memoryprocedural memory · wasm sandboxcurator background telemetryfermas-tools // sandboxportable-pty · ripgrep · cdp browsersecret redaction · smart approvalsfermas-daemon // linux osniri & hyprland wayland ipcuinput virtual kbd · pipewirefermas-orchestration // subagent dag schedulerisolated child channels · schema validation · tick-locked crontelegram & whatsapp multi-profile gatewaysfermas-state // sqlite fts5multi-profile isolation: Arc<ProfileContext>atomic rollback snapshots · zero gc pausespure rust 2021 · 15 tokio crates · zero gc pauses · 1/10th memory footprint vs python runtime
MORE SYSTEMS ARCHITECTUREFull Works Index →

Next System

Blinky

AI / Desktop Agent

Next System

VoiceNotes

Local-First / AI Platform

Next page

About me

→

You are one click away

Let's build something.

Open to collaboration, hackathons, and interesting systems problems.

EmailGitHubLinkedInX / TwitterAbout

© 2026 Gourish Julka

Amritsar, India