A declarative, strongly typed, Effect-native agent harness for TypeScript. Define agents as JSON-serialisable specs, run them headless, stream normalised events.
Docs: https://nc9.github.io/drover/
bun add @droveragent/all@next @sinclair/typebox@droveragent/all is the umbrella: defineAgent and runAgent from one import. To depend
on less, install the scoped packages instead: bun add @droveragent/facade@next @droveragent/core@next (runAgent from @droveragent/facade, defineAgent from
@droveragent/core). Until 0.3.0 is stable, @next is needed: latest still points at the
older 0.1 / 0.2 releases.
Drover runs on Bun 1.3+. Default model aliases route through OpenRouter, so set OPENROUTER_API_KEY before running.
import { Type } from "@sinclair/typebox";
import { defineAgent, runAgent } from "@droveragent/all";
const echo = defineAgent({
id: "echo",
systemPrompt: "Reply with a JSON object matching the outputSchema. No prose.",
inputSchema: Type.Object({ word: Type.String() }),
outputSchema: Type.Object({ upper: Type.String(), length: Type.Integer() }),
model: "cheap",
tools: [],
quota: { maxTurns: 2 },
});
const handle = runAgent(echo, { word: "drover" });
for await (const event of handle.events) {
if (event.kind === "assistant_text") console.log(event.text);
}
const result = await handle.result;
console.log(result.status, result.output, result.usage);The same file lives at packages/droveragent/examples/quickstart.ts and is typechecked in CI. For a full walkthrough see the quickstart guide.
- Typed agent specs (TypeBox) with schemaed input and output and an output retry budget.
- A normalised
HarnessEventstream, plus plugin hooks around every tool call and run. - Built-in tools, subagents, skills, commands, MCP, pause and resume, storage and an opt-in runtime.
- A sandbox interface with a just-bash virtual sandbox by default.
- An eval suite and viewer.
| Package | What it is | Status |
|---|---|---|
@droveragent/all |
Umbrella entry point: defineAgent and runAgent |
Preview |
@droveragent/core |
AgentSpec, HarnessEvent, RunContext, tagged errors |
Preview |
@droveragent/harness |
Effect-native run loop, compaction, registry | Preview |
@droveragent/facade |
Promise and AsyncIterable wrapper over the Effect surface |
Preview |
@droveragent/plugins |
Built-in plugin bundles (loop-detect, confirm-gate, step-tracer, ...) | Preview |
@droveragent/tools |
Built-in tools (bash, read, write, edit, grep, ...) | Preview |
@droveragent/skills |
SKILL.md loader and skill_load tool |
Preview |
@droveragent/commands |
Markdown command loader and registry | Preview |
@droveragent/prompt |
Prompt templates and cache analyzer | Preview |
@droveragent/memory |
Agent memory | Preview |
@droveragent/mcp |
MCP runtime, per-agent allowlist, transports | Preview |
@droveragent/model |
Model aliases, routing interface, circuit breaker | Preview |
@droveragent/sandbox |
SandboxAdapter interface and in-process none implementation |
Preview |
@droveragent/sandbox-just-bash |
just-bash virtual sandbox (default) | Preview |
@droveragent/sandbox-vercel |
Vercel sandbox adapter | Preview |
@droveragent/sandbox-cloudflare |
Cloudflare sandbox adapter | Preview |
@droveragent/storage |
StorageAdapter interface, memory and libsql implementations |
Preview |
@droveragent/storage-d1 |
Cloudflare D1 storage adapter | Preview |
@droveragent/runtime |
Opt-in worker pool, lease queue, run API, crash recovery | Preview |
@droveragent/eval |
ScenarioRunner, Scorer, Reporter |
Preview |
Preview means the API is stabilising and may change between 0.x releases.
See CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md.
MIT (c) 2026 Nik Cubrilovic