jev-harness (Rust)
Zero-overhead System One decision harness & token optimizer for AI coding agents and Tauri applications.
jev-harness wraps TypeSafe Jev System One micro-decisions with local fast heuristics (< 500ยตs) and remote sub-second inference (70-300ms). It prevents catastrophic token waste ($10-$50/M frontier reasoning calls) by detecting dependency errors, circular failure loops, and deterministic routing locally.
๐ Multi-Provider Support & OpenCode Zen (Free Tier)
Configure your preferred provider via environment variables or .env:
# Option A: OpenCode Zen Free Tier (No API key required!)
# Option B: TypeSafe Direct API
# Option C: OpenRouter
โก Key Capabilities
-
Test & Process Failure Triage (
triage_test_failure):- Detects missing modules (
TS2307,Cannot find module,ModuleNotFoundError,E0463), flaky network timeouts (ETIMEDOUT,ECONNRESET), and syntax errors in < 500ยตs locally. - Tells your agent or process runner to install dependencies or retry without invoking expensive frontier LLMs (
skip_llm: true).
- Detects missing modules (
-
Loop & Doom Prevention (
should_abort_trajectory):- Evaluates consecutive identical test failures and repetition loops to kill runaway agentic runs before burning budget.
-
Dynamic Model Routing (
route_model_tier):- Routes simple tasks, typos, and lint errors to fast deterministic models, and reserves expensive 2026 reasoning models (GPT-6 Astra, Claude Fable 5.1 / Claude Opus 5) only for complex architectural asks.
-
Step Completion Verification (
verify_step_completion):- Confirms criteria satisfaction before concluding multi-step workflows.
๐ฆ Installation
Add to your Cargo.toml:
[]
= "0.1.6"
= { = "1", = ["full"] }
Or add via cargo add:
Or install the standalone CLI:
๐ Usage
1. Test Failure Triage
use triage_test_failure;
async
2. Trajectory Loop Abort Guard
use should_abort_trajectory;
async
3. Model Tier Routing
use route_model_tier;
async
4. Dynamic Reasoning Effort Modulation (Astra-Jev)
use modulate_reasoning_effort;
async
5. CLI Usage
# Run triage on a traceback
# or alias
# Trajectory abort check
# Route model tier
# Check reasoning effort (Astra-Jev)
# Check system status
๐ License
MIT ยฉ Ismael Hosni Soilet de Lima