The harness is code.
Build your agent's loop from parts, in Rust, in your own repository. You decide how each part works, and the agent tells you what it is before it runs.
use harness::Agent;
use sandbox::Sandbox;
pub fn agent() -> Agent {
Agent::new("help-desk", MODEL)
.instructions(INSTRUCTIONS)
.sandbox(Sandbox::folder("docs"))
.tool(Orders)
.tool(Refund.ask_first())
.memory()
.evals(evals())
}The loop
Steps, stops, retries and compaction of a long conversation, yours to set.
Tools and skills
bash, read, write, edit, MCP servers, skills in folders, and tools of your own.
Approvals and hooks
What asks a person first, what is refused, what is logged. A hook sees every call.
Sub-agents
Helpers with conversations of their own, several at once, each a harness too.
From a folder to a version.
Four commands. Each one says what it did.
A Rust package with an agent, its evals and a folder of instructions.
It tells you what it is.
Every agent describes itself before it runs: its parts, and where each would run once deployed.
- 01Write itOne Rust package. src/agent.rs builds the harness from parts.
- 02Describe itpolka describe prints the tree: loop, tools, sandbox, evals.
- 03Talk to itpolka chat runs it in your terminal, sandboxed to a folder.
- 04Ship itpolka deploy builds it to WebAssembly and checks it first.
1use harness::{Agent, Compaction}; 2use sandbox::{Door, Sandbox}; 3 4pub fn agent() -> Agent { 5 Agent::new("help-desk", MODEL) 6 .instructions(include_str!("instructions.md")) 7 .section("Tone", "Short, plain sentences.") 8 .sandbox(Sandbox::folder("docs") 9 .door(Door::allow(["api.stripe.com"]))) 10 .tool(Orders) 11 .tool(Refund.ask_first()) 12 .compaction(Compaction::keep_plan()) 13 .memory() 14 .evals(evals()) 15}
The details.
- Language
- Rust, one package per agent
- Crates
- 26: harness, tools, sandbox, door, evals, front, voice, mcp, skills…
- Models
- Any through the gateway, or your own provider key
- Tools
- bash, read, write, edit, MCP servers, skills, your own
- Loop
- Steps, stops, retries, compaction; parallel calls per step
- Builds to
- A native binary and a WebAssembly module
One package, three places.
Where teams use it.
Questions.
Do I have to write Rust?
Agents are Rust. Your tools can call anything over HTTP or MCP, and Studio edits the common parts without touching code by hand.
Can I bring my own model?
Yes. Use any model through the gateway, or set your own provider key on the agent.
How is this different from a framework?
A framework gives you abstractions to host yourself. The ADK gives you the parts, and the same package runs in your terminal, on our edge and on your hosts, with evals and traces included.