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 에이전트›Ch2. Source Code Atlas
한국어English

Ch2. Source Code Atlas

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

Key takeaways

  • packages/eve/src is easiest to read as public API, discovery/compiler, runtime/harness, and execution layers.
  • Discovery and compilation turn authored files into manifests before runtime execution.
  • Enterprise review should focus on runtime graph assembly, tool registry construction, and durable execution behavior.

This chapter is a map for reading Eve 0.11.4 source. The codebase is broad, but the responsibility split is clear.

Directory Responsibilities

DirectoryResponsibilityWhy it matters
public/User-facing APIs and framework integrationsDefines authoring contracts.
discover/Scans agent/ file slotsDetermines which files become capabilities.
compiler/Builds compiled manifests and module mapsDefines deployable artifacts.
runtime/Hydrates compiled graph into registriesMerges defaults, authored files, subagents, hooks, sandbox.
harness/Runs one turn's model/tool loopControls compaction, tool execution, HITL, model IO.
execution/Durable session/turn/step driverGoverns checkpointing, park/resume, replay.
evals/Evaluation runner and assertionsDrives real HTTP/session surfaces.
cli/eve init, build, dev, eval, etc.Operator entrypoints.

Public API Starts In public/

packages/eve/src/public/index.ts exports the primary helpers. Nested public paths expose tools, connections, channels, sandbox, evals, hooks, instrumentation, and framework bindings.

Review point: public helpers are the contract that authored files rely on. When upgrading Eve, compare exported helpers and types before changing production agents.

Discovery And Compiler Do Not Trust Authored Modules

Discovery reads file paths, extensions, directories, and static metadata. It does not execute arbitrary authored tool code. The compiler then writes .eve/ artifacts and diagnostics.

FileWhat to check
discover/project.tsFlat vs nested project resolution
discover/discover-agent.tsSlot discovery and subagent discovery
compiler/compile-agent.tsArtifact writes and diagnostic failures
compiler/manifest.tsCompiled manifest schema/version

The enterprise value is release evidence: .eve/diagnostics.json, discovery manifests, compiled manifests, and module maps show what the agent really contains.

Runtime Builds The Agent Graph

Runtime graph resolution combines:

  • framework default tools and channels
  • authored overrides and disabled defaults
  • authored tools, skills, instructions, hooks, schedules, sandbox
  • connections and connection tools
  • subagents and remote agents
  • dynamic capabilities

The model-visible tool surface is not just agent/tools/. It is the merged registry.

Harness Runs The Turn

The harness is where model calls, tool calls, provider options, compaction, approval, and stream events meet.

ConcernSource area
Tool loopharness/tool-loop.ts
ToolSet assemblyharness/tools.ts
Message conversionharness/messages.ts
HITL requestsharness/input-requests.ts
Tool executionharness/execute-tool.ts

Review point: every privileged authored tool should be evaluated as an app-runtime execution surface, not a sandboxed action.

Execution Is The Durable Driver

execution/ shows why Eve durability is more than retry. The session snapshot, stream events, input requests, continuation tokens, and step results move through durable workflow steps.

FileRole
workflow-entry.tsSession workflow entry and park/resume
turn-workflow.tsTurn dispatch contract
workflow-steps.tsStep-level harness execution
durable-session-store.tsSession snapshots and migration-aware state
session.tsSession hydration and compaction config

Enterprise Code Review Lens

SurfaceReview question
agent/tools/**Does it have schema, redaction, idempotency, approval, and audit?
agent/connections/**Are token scope, allow/block filters, and approval correct?
agent/channels/**Does route auth differ from session ownership ACL?
agent/sandbox/**Is network egress explicit and are secrets absent from workspace?
agent/subagents/**Does delegation reduce authority or accidentally expand it?
.eve/* artifactsDo compiled outputs match the intended capability set?

Related docs

Ch4. Compiler and Runtime Graph

How Eve transforms source manifests into compiled manifests and runtime agent graphs.

Ch1. Eve Mental Model

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

Context Management

Claude Code Complete Guide · Keep Claude Code sessions accurate through memory, compaction, and concise handoffs.

Sandbox Tool Runtime

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

Repo-Readable Systems

Harness Engineering · Use AGENTS.md, docs, observability, executable SSOT, MCP, skills, hooks, and plugins as one work environment.

Ch1. Eve Mental Model

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

Ch3. Project Layout and Discovery

How Eve turns agent directory slots into a source manifest, and why path-derived identity is an operations contract.

On this page

Directory ResponsibilitiesPublic API Starts In public/Discovery And Compiler Do Not Trust Authored ModulesRuntime Builds The Agent GraphHarness Runs The TurnExecution Is The Durable DriverEnterprise Code Review Lens