ADK

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())
}
01

The loop

Steps, stops, retries and compaction of a long conversation, yours to set.

02

Tools and skills

bash, read, write, edit, MCP servers, skills in folders, and tools of your own.

03

Approvals and hooks

What asks a person first, what is refused, what is logged. A hook sees every call.

04

Sub-agents

Helpers with conversations of their own, several at once, each a harness too.

THE CLI

From a folder to a version.

Four commands. Each one says what it did.

  1. A Rust package with an agent, its evals and a folder of instructions.

adk · help-desk PAUSED
$cargo new help-desk
created Cargo.toml src/main.rs
In the code

It tells you what it is.

Every agent describes itself before it runs: its parts, and where each would run once deployed.

  1. 01Write itOne Rust package. src/agent.rs builds the harness from parts.
  2. 02Describe itpolka describe prints the tree: loop, tools, sandbox, evals.
  3. 03Talk to itpolka chat runs it in your terminal, sandboxed to a folder.
  4. 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}
Specifications

The details.

26crates
1file to start
0config files
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.

LIB.RSThe edge moduleedge::agent!(agent::agent) makes the same agent the module the edge loads per turn.
MAIN.RSThe terminalrunner::agent().front(Terminal).run() gives it your terminal while you build.
HOSTYour machinespolka deploy --host puts the same version on a machine of yours.
Domains

Where teams use it.

All domains

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.