Skip to main content
reopt Handbook
reopt Handbook
Enterprise Eve Agent Development

Core Architecture

Ch1. Eve Mental ModelCh2. Source Code AtlasCh3. Project Layout and DiscoveryCh4. Compiler and Runtime Graph

Agent Quality Design

Ch5. agent.ts, Models, CompactionCh6. Context, Skills, Dynamic CapabilitiesCh7. Tools, Approval, ConnectionsCh8. Sandbox Secure Runtime

Operational Runtime

Ch9. Channels, Auth, StreamingCh10. Subagents, Workflows, Remote AgentsCh11. Schedules, State, HooksCh12. Evals and Quality Gates

Production Operations

Ch13. Observability and DeploymentCh14. Enterprise PatternsCh15. Migration and Governance

Appendix

Official Docs CrosswalkVerification ReportUpdates
Handbook›엔터프라이즈 Eve 에이전트›Ch1. Eve Mental Model
한국어KOEnglishEN

Ch1. Eve Mental Model

Understand Eve as filesystem authoring, durable workflow execution, runtime harness, and channel protocol.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • Read Eve as four surfaces: filesystem authoring, compiled manifests, runtime harness, and delivery channels.
  • Durable execution is checkpointed as session -> turn -> step; interrupted steps may rerun.
  • Enterprise Eve design starts by separating app runtime, sandbox, and channel responsibilities.

The first things you notice in Eve are helpers such as defineAgent, defineTool, and eveChannel. For enterprise design, the more important questions are: what code runs where, what data crosses which boundary, and what can be replayed after failure?

SurfaceResponsibilityRepresentative files/conceptsOperator question
AuthoringHuman-authored agent capability surfaceagent/agent.ts, instructions.md, tools/, skills/What can the model see and request?
CompileStable manifest and module-map generationdiscoverAgent, compileAgent, .eve/*What exactly ships?
RuntimeA turn-level model/tool loopresolveRuntimeAgentGraph, ToolLoopAgent, harnessWhere do tools, approval, compaction, and dynamic capabilities run?
DeliveryExternal session start/resume/streamingchannels, client SDK, NDJSON streamWho called the agent and which continuation token is valid?

Filesystem-first Design

Eve derives identities from paths.

agent/tools/refund_charge.ts        -> tool refund_charge
agent/skills/release/SKILL.md       -> skill release
agent/connections/linear.ts         -> connection linear
agent/subagents/researcher/agent.ts -> subagent researcher

This is useful because review boundaries become obvious. A new file under agent/tools/ is a new executable capability. A file under agent/connections/ is a new external system surface. A subagent directory creates a new delegation unit.

The same property makes naming a governance concern. Tool names, connection names, and subagent names can appear in model traces, evals, approval logs, and prompts. Treat renames as behavior changes.

Durability: Session, Turn, Step

UnitMeaningDesign point
SessionLong-lived conversation or jobHistory, state, sandbox state, and continuation token survive across turns.
TurnOne user input and all work it triggersIncludes model calls, tool calls, and subagent calls.
StepDurable checkpoint unitA model call plus requested actions are recorded together.

The key is the step. A completed step does not rerun; its recorded result is replayed. A step interrupted mid-execution can run again. Non-idempotent side effects need one of these safeguards:

  • provider idempotency keys
  • Eve approval
  • an external "already executed" ledger
  • separate read-only and write tools, with writes gated

App Runtime vs Sandbox

ConcernApp runtimeSandbox
process.envAvailableNot available by default
authored tool executeRuns hereDoes not run here
built-in shell/file effectsProxiedApplied in /workspace
secretsCan be heldShould not be injected
networkruntime environmentsandbox network policy

Custom authored tools run in the app runtime. Built-in shell/file tools operate against the sandbox. This split is the central trust boundary.

Task typeRecommended Eve surface
API call needing secretsauthored tool or connection
model-driven code/file worksandbox built-in tools
sensitive external writetool + approval + audit hook
internal data lookupconnection allow-list + least-privilege token
long analysis or artifact generationsandbox workspace + subagent

Channels Are Not Session Queues

Message sends in 0.82.0 default to turnPolicy: "steer"; select "queue" when the active turn should finish first. Current-caller steering retains durable arrival order and may be folded together at a boundary. Use structured inputResponses to address a pending approval. A new non-answer from that caller can cancel the approval rather than wait behind it.

Keep tenant/session ownership checks above transport authentication. For the current delivery contract, see Sessions, runs, and streaming, rather than treating the early continuationToken implementation as the complete interface.

One Sentence To Keep

Eve is not "a model running code." It is a durable workflow runtime where the model requests capabilities declared as files, and Eve mediates approval, isolation, recording, and resume.

Related docs

Ch7. Tools, Approval, Connections

Design Eve authored tools, human approval, MCP/OpenAPI connections, and OAuth boundaries as enterprise security surfaces.

Ch15. Migration and Governance

Migrate existing agents into Eve and establish enterprise governance for agent portfolios.

Sandbox Tool Runtime

Vercel Enterprise AI Platform · Isolate code, file, browser, and shell execution for AI agents.

AI SDK Runtime

Vercel Enterprise AI Platform · Use AI SDK as the application runtime layer for streaming, tools, agents, and telemetry.

Case: Anthropic

Harness Engineering · Analyze Anthropic's long-running harness through planner/evaluator, Managed Agents, and auto approval patterns.

Enterprise Eve Agent Development

A practical enterprise handbook for building high-quality durable AI agents with Vercel Eve, updated for Eve 0.82.0 public APIs, with a historical source atlas.

Ch2. Source Code Atlas

Read packages/eve/src by implementation responsibility and identify the files enterprise reviewers should understand.

On this page

Filesystem-first DesignDurability: Session, Turn, StepApp Runtime vs SandboxChannels Are Not Session QueuesOne Sentence To Keep