Vercel Eve — Full Course: Build & Deploy AI Agents (End-to-End)

Vercel Eve — Full Course: Build & Deploy AI Agents (End-to-End)

Sabi AI and Automations · ~103 min · Full course / tutorial
Vercel Eve — Full Course: Build & Deploy AI Agents (End-to-End)
🤖 AI Agents ▲ Vercel 📁 File-System-First 🔧 TypeScript 🚀 Full Course 🔌 Multi-Channel

1. What Is Eve? The Next.js for Agents

⏱ 0:00

Eve 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.

Multi-channel out of the box: HTTP, web chat, Slack, Discord, Teams, WhatsApp, and CLI — all from one codebase. Built on the Vercel AI SDK.

Agent folder structure:

  • agent.ts + instructions.mdrequired
  • tools/ — custom tool definitions
  • skills/ — on-demand knowledge & procedures
  • channels/ — multi-surface channel configs
  • connections/ — MCP server integrations
  • sandbox/ — isolated code execution
  • sub-agents/ — delegated specialist agents
  • schedules/ — cron-like automation triggers

2. Setup & Scaffolding

⏱ 4:00

Prerequisites: Node.js 24+ (use NVM for version management).

Scaffold a new project: 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:16

Create 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
Example: A 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:53

agent.ts defines the model, options, and cost tracking. Instructions form the agent's permanent identity, loaded every single turn.

Five-section pattern for good instructions:
  1. Identity — who the agent is
  2. Tone — how it communicates
  3. Standing Rules — always-on constraints
  4. Tools Guidance — when and how to use tools
  5. 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:00

This 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.
How skills work at build time: Eve scans 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)
Skills follow the broader Agent Skill Standard — they're portable across frameworks, not locked to Eve.

6. Channels: Multi-Surface Agents

⏱ 1:03:57

One 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:00

Connect 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:00

Eve 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:00

Durability 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
Zero manual persistence code. You don't write save/load logic — Eve handles it automatically. This is what "durable by default" means in practice.

10. Sub-Agents & Delegation

⏱ 1:34:02

Built-in agent tool: the model can delegate subtasks to copies of itself — same instructions, same tools, shared sandbox, but fresh history.

Override with declared sub-agents in 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:00

Define 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:00

Deploy 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