Newt-Agent
An experimental agentic coder in Rust, built for local models first.

Newt is an experimental agentic coder in Rust, built for local models first. The operator grants each tool call a capability, and the grant is enforced in the kernel where the OS allows.
Each page is a step-through animation checked against the source, with a table of what is implemented and what is only design. The pages are revised as the project changes, and each names the source revision it came from.
Links: Source, Vision, Design laws, Terminal-Bench scoreboard, Changelog.
Try it:
git clone https://github.com/Gilamonster-Foundation/newt-agent
cd newt-agent
just install
newt
The first run opens a setup wizard. newt --help is the authority on what the binary does.
Source: newt-agent site/index.html at 67b24697. newt-agent is Apache-2.0.
- How Newt manages contextA model's window is small and every turn re-sends it. When the window nears its budget, Newt does not throw the middle away. It keeps the task, keeps the recent work, saves the rest verbatim, and leaves the model a way to ask for it back. Step through one compaction below.~5 min read
- Paged context over a derivation graphThe goal is the effect of a huge context window without a huge window: bounded residency, unbounded reach. The model is never told it holds everything. It is told what it holds and that it can reach the rest.~5 min read
- How agent-frame assists contextNewt has two ways of managing context. The default one, compaction, does not use agent-frame. The opt-in smart harness does: it records the session as content-addressed events, lets a small model propose what to keep, lets the host decide what is allowed, and renders the request from the result. Both stand on the same content-addressing crate.~5 min read
- How Newt grants and enforces authorityEvery tool call runs under a capability: what it may read, write, run, and reach. The operator sets the ceiling, the gate checks each call, and the kernel enforces it where the OS allows. Step through one write that is allowed and one network call that is not.~5 min read
- How Newt runs shell commands with brushModels write shell.~5 min read
- How Newt tracks who is actingTwo separate things carry identity. A key chain decides what a session may do. A ledger decides who is credited on a commit. They are not the same mechanism, and the animation keeps them apart.~5 min read
- How Newt sessions dock across machinesA hub can list, mirror and steer sessions running on another of the operator's own machines. The session never moves: the host stays the only writer. Step through discovery, pairing, approval, mirroring, injecting and revoking.~5 min read