1. What Is Eve? The Next.js for Agents
⏱ 0:00Eve treats durable agents as ordinary files in a TypeScript project, following the same philosophy as Next.js: app router maps to agent folders. It's file-system-first and durable by default.
Agent folder structure:
agent.ts+instructions.md— requiredtools/— custom tool definitionsskills/— on-demand knowledge & procedureschannels/— multi-surface channel configsconnections/— MCP server integrationssandbox/— isolated code executionsub-agents/— delegated specialist agentsschedules/— cron-like automation triggers
2. Setup & Scaffolding
⏱ 4:00Prerequisites: Node.js 24+ (use NVM for version management).
npx eve@latest init my-agent — creates the full project structure instantly.
Uses the Vercel AI Gateway for model connections. Set model credentials in your environment variables.
Two essential files:
agent.ts— model configuration (which LLM, options, cost tracking)instructions.md— the agent's system prompt / permanent identity
3. Adding Tools
⏱ 12:16Create a tools/ folder inside the agent directory. Each tool is one TypeScript file.
Use defineTool from eve/tools with Zod for input validation. Every tool needs:
- description — what the tool does (for the LLM)
- input schema — Zod schema for parameter validation
- execute function — the actual logic
get_weather tool fetching from a weather API. Each tool is a single file, and Eve auto-discovers them — no manual imports needed.
4. Agent Configuration
⏱ 32:53agent.ts defines the model, options, and cost tracking. Instructions form the agent's permanent identity, loaded every single turn.
- Identity — who the agent is
- Tone — how it communicates
- Standing Rules — always-on constraints
- Tools Guidance — when and how to use tools
- Escalation — when to hand off or ask for help
Length guidance: 1–2 lines for simple agents, 10–30 lines for medium complexity, 50+ lines → split into skills.
5. Instructions vs Skills
⏱ 34:00This is a critical distinction in Eve's architecture:
- Instructions — loaded every turn. Permanent identity, tone, and rules.
- Skills — loaded on-demand when the model calls
load_skill.
skills/ and compiles descriptions into a manifest. At runtime, the model sees all skill descriptions and decides whether to load one.
Skill formats:
- Markdown file (simplest)
- TypeScript (
defineSkill) - Split directory (for complex skills)
6. Channels: Multi-Surface Agents
⏱ 1:03:57One agent codebase, many surfaces. Every agent ships with a built-in HTTP channel. Add more via the Eve CLI:
eve channels — interactive CLI to add Slack, Discord, Telegram, WhatsApp, web chat, or CLI channels. Each channel is a folder with its own config.
The key insight: agent logic stays identical across all channels. The channel layer handles surface-specific I/O (message format, auth, webhooks) while the agent core remains unchanged.
7. Connections & MCP Servers
⏱ 1:10:00Connect external services via MCP (Model Context Protocol). The connections/ folder holds MCP server configurations.
- Agent can use tools from any connected MCP server
- Standard protocol — works with any MCP-compatible service
- Extends the agent's capabilities without writing custom tool code
8. Sandbox & Code Execution
⏱ 1:15:00Eve provides an isolated sandbox for agent code execution — the agent can write and run code safely.
- Sandbox configuration lives in the
sandbox/folder - Supports file system access within sandbox boundaries
- Secure by default — prevents agents from accessing host resources
9. Durable State & Sessions
⏱ 1:20:00Durability is a first-class feature of Eve, not an add-on:
- Every turn and tool call is checkpointed
- Sessions survive crashes and redeploys
- Resume from any breaking point naturally
- State management is built into the framework
10. Sub-Agents & Delegation
⏱ 1:34:02Built-in agent tool: the model can delegate subtasks to copies of itself — same instructions, same tools, shared sandbox, but fresh history.
sub-agents/ folder. Each sub-agent has its own agent.ts + instructions.md + optional tools/ and sandbox/.
Delegation patterns:
- Parallel fan-out — multiple sub-agents tackle tasks simultaneously
- Specialist handoff — route to domain-specific sub-agents
- Research-then-act (ReAct) — sub-agent researches, parent acts on results
Task mode: sub-agent runs to completion, returns a structured result via output schema.
11. Schedules & Automation
⏱ 1:40:00Define scheduled tasks in the schedules/ folder for autonomous, recurring agent execution.
- Agent runs autonomously on schedule — no user trigger needed
- Cron-like scheduling for recurring tasks
- Each schedule is a separate configuration file
- Combines naturally with tools, skills, and sub-agents
12. Deploy to Production
⏱ 1:45:00Deploy via Eve CLI or the Vercel plugin:
eve deploy — ships your agent to Vercel infrastructure with one command.
Production features:
- Scales to thousands/millions of users
- Evals as deploy gate — test before shipping
- Smoke tests run automatically on deploy
- Durable sessions in production
- Auto-scaling and monitoring built in
🎯 Key Takeaways
- Eve = "Next.js for agents" — file-system-first, convention over configuration
- Two required files:
agent.ts+instructions.md, everything else optional - Tools, skills, channels, sub-agents = just folders, auto-discovered on compile
- Zero boilerplate wiring — Eve compiler creates the manifest
- Instructions (every turn) vs Skills (on-demand) — critical distinction
- Five-section instruction pattern: identity, tone, rules, tools, escalation
- Multi-channel: same agent on HTTP, Slack, Discord, Telegram, WhatsApp, CLI
- Durable sessions: checkpointed, survives crashes and redeploys
- Sub-agent delegation: parallel fan-out, specialist handoff, ReAct patterns
- Skills follow Agent Skill Standard — portable across frameworks
- Deploy with one command:
eve deploy - Node.js 24+ required
📚 Resources
- 🌐 Eve Framework — Official documentation and guides
- 💻 Eve GitHub Repository — Source code and examples
- 🚀 Scaffold command:
npx eve@latest init my-agent - 🎬 Full Video on YouTube