cd /news/ai-agents/an-agent-runtime-where-context-is-ex… · home topics ai-agents article
[ARTICLE · art-131473] src=discuss.huggingface.co ↗ pub= topic=ai-agents verified=true sentiment=· neutral

An Agent Runtime Where Context Is Explicit State You Can Read, Change, and Put Back

Developer ljedrz released nachalnik, a Rust agent runtime that treats context, tools, permissions, and requests as explicit state rather than framework-internal decisions. The runtime offers a /context view listing every item with its token cost and the reason it is excluded or elided, a /step state machine that stops at Ready so decided calls run none, and an append-only event log, with five transcripts published at ljedrz.github.io/nachalnik. The project's budget feature uses a Calibrating counter that learns from what providers actually charge, and its tool registry is live, so /tools drop shell stops offering a tool on the next request.

read1 min views3 publishedSep 16, 2026

TL;DR: A Rust agent runtime where the context, tools, permissions, and requests are explicit state — not decisions made inside a framework and reported afterwards. You get a /context view showing every item (what it is, its token cost, whether it’s going to the model, and why not), a state machine you can step through one transition at a time (/step), and an append-only event log. The agent is not the boss. You are.

Why It’s Different

most runtimes nachalnik
Context = list of strings Context = data structure (id, kind, source, label, content, size, state, note, metadata)
“Agent decided this is relevant” You see every item, its cost, and the reason it’s excluded/elided
Turn = content + tool calls (flattened) Turn preserves production order: reasoning → text → call → reasoning → call…
Approve command? /step stops atReady — calls decided,none run . Read, prune, drop, or continue.
Session = chat history Session = snapshot (items, states, pins, notes, call IDs) + append-only event log
Budget = estimate Budget = Calibrating counter that learns from what providersactually charge
Tools = fixed at startup Registry is live: /tools drop shell stops offering it next request
Model manages context? --introspect hands the modelamend (elide/exclude/revise/note/undo) — same API the UI calls

Five transcripts at https://ljedrz.github.io/nachalnik/:

── more in #ai-agents 4 stories · sorted by recency
── more on @ljedrz 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/an-agent-runtime-whe…] indexed:0 read:1min 2026-09-16 ·