Orkia – a Rust runtime where AI agents can't bypass governance
Type-system-enforced governance loop prevents agents from bypassing policy without code changes.
A small, typed, hookable agent loop. Provider-agnostic, sandbox-agnostic, tooling-agnostic. Battle tested on clarkchat.com
Typed, hookable agent loop in Rust when LangChain dominates Python.
Rust developers building LLM agent applications
LangChain · AutoGen · LlamaIndex
I wrote clark-agent, a small Rust library for running LLM tool loops.
The loop is:
context -> model -> tool call -> tool result -> repeat
The parts I wanted typed were:
- transcript messages - tool calls - tool results - stream events - tool schemas
The model/provider boundary is a StreamFn trait. Tools implement AgentTool. There are hooks for things like context transforms, tool gates, observers, and follow-up messages.
Type-system-enforced governance loop prevents agents from bypassing policy without code changes.
LangGraph patterns in Rust with type safety, 300 stars and real production examples.
Python FFI bridge via PyO3 is clever, but tool-calling frameworks are crowded.
Schema validation catches LLM output mismatches before they break downstream systems.
Kafka-native agent coordination with structured envelopes—but agentic Kafka routing is nascent and audience is infrastructure-only.
Type-safe AST verification for AI workflows before they corrupt your CRM or delete production data.