Only in troupekit
Why it exists
I was building an app with agents in it, in Rust. I looked for a framework that was simple and still complete: agents described as personas, runs that could stop and pick up again from the same point, and something I could rely on. Rig and langchain-rust were there, and they were the starting point, but neither let me pause a run and continue it from where it stopped. Local and on-device models were missing too.
So I built the framework inside that app, and it gave better results there than the other frameworks had. On 2026-11-20 the app's first agent layer was Rig. Within a day the plan changed to writing an own framework, because no mature Rust framework had declarative agents. The name troupekit came on 2026-11-21, and on 2026-11-23 it moved to its own repository, with zero app code in it. Version 0.1.0 shipped on 2026-11-25 and 0.3.1 reached crates.io on 2026-11-28.
The ideas were taken in the open. The provider layer follows the design of Rig 0.47: wire encoding with no I/O in it, and one path for streaming and non-streaming calls. Middleware ideas come from AutoAgents, and features from Agno, LangChain and LangGraph.
Rig has moved on since then. Its library now has a run you can serialize, store yourself and resume, its coding agent resumes sessions after a crash, and the Rig comparison says exactly what it offers today.
Who it is for
- Developers already building agents and generative AI apps in Rust.
- Developers moving to Rust from Python or TypeScript, and people curious about Rust.
- People building agents in Python or TypeScript today, who want to see what a compiled core changes.
- Application, backend, mobile and JNI developers who want an agent inside their own program rather than next to it.
What you get that the others do not combine
Many frameworks have one or two of the pieces below. What we did not find in the frameworks in the comparison, as checked on 2026-11-28, is all of them in one library, in one process, with one SQLite file for state.
| Strength | What it guarantees today | Page |
|---|---|---|
| Durable kill and resume | With Storage::sqlite checkpoints, every step of a run is checkpointed and a new process resumes a killed run by its id and finishes it. The default in-memory store is lost when the process exits. | Durable runs |
| Spend limits and a ledger | A run checks the USD limits you set against an estimate before every model call, and pauses or fails instead of making a call the estimate says would cross one. | Spend limits |
| Bend proofs and laws | CI checks two proofs about the run state machine and the route planner. Law files on an agent are validated, not enforced yet. | Proofs and laws |
| Runtime assertions | Internal invariants are checked while the program runs, in release builds too. | Assertions |
| On-device models | llama.cpp runs a GGUF model inside your process, and a route policy picks device or cloud per call. | On-device models |
| One Rust core | The same crate builds for Linux, macOS, Windows, iOS and Android; Swift, Kotlin and Python bindings over it since 0.4, built from source. | One core |
| A real end-to-end suite | Tests that build agents through the public API and run them against a real model and a real GGUF, nothing mocked. Shipped in 0.4.0. | Tested end to end |
What it does not do yet
Being fair works both ways, so here is what is missing, with the release that plans it: SPM, Maven and PyPI packages for the bindings (later), team and crew patterns (0.5), MCP tools (0.6), troupekit verify, record and replay, and an eval harness (0.7), and external vector databases (2.0). The Roadmap lists them all. Troupekit is young and its community is small; every comparison page says where the other project is the better pick.