A coding-agent harness built around Jev, TypeSafe's System One decision model: explicit typed state, per-turn context assembly, cost-priced routing, tiered tools, and policy-gated permissions.
//! Token estimation.
//!//! A byte heuristic is enough for budgeting and cost lines. Swap in the
//! provider's `count_tokens` endpoint if exact accounting matters.
/// Roughly 3.8 bytes per token for mixed code and prose.
pubfncount(text:&str)->u32{((text.len()asf64)/3.8).ceil()asu32}pubfnfmt_k(tokens:u32)-> String{if tokens >=1000{format!("{:.1}k", tokens asf64/1000.0)}else{
tokens.to_string()}}