flue-eve

Migrate an Existing Eve Agent

Follow this guide to migrate an Eve agent project to flue-eve. The process is mostly automated when your project follows standard Eve conventions.

1. Scan the project

Run the migration scanner to understand what needs to change:

npx flue-eve scan

This produces a tiered report. Most Eve chat agents fall into Tier 0/1 (zero-touch or auto-scaffold). For CI enforcement, use --strict:

npx flue-eve scan --strict

See migration tiers for what each tier means.

2. Init the Flue runtime

npx flue-eve init

This creates or updates:

FilePurpose
src/agents/{name}.tsFlue agent with instructions + tools
src/flue-eve-shim.tsEve compat sidecar — mounts /eve/v1/*
src/app.tsFlue Hono app (auto-injected with mountEveCompat)
src/tools/*.tsTool adapters from agent/tools/*.ts
src/connections/*.tsConnection adapters from agent/connections/*.ts
eve.config.tsPlugin config (if needed)

Safe to re-run — existing files are not overwritten unless --force is passed.

Customizing

npx flue-eve init --agent-name support --model openai/gpt-4o

3. Update imports

The Vite plugin auto-aliases eve/clientflue-eve/client and eve/reactflue-eve/react. No import changes are needed for browser code.

For server code, replace Eve server imports:

- import { createEveServer } from 'eve/server';
+ import { eveCompat } from '@flue-eve/compat-server';

4. Start the dev server

pnpm dev

With mock admission (default), the agent returns deterministic responses without needing an LLM key:

curl -X POST http://localhost:5173/eve/v1/session \
  -H 'content-type: application/json' \
  -d '{"message":"Hello"}'

To test with a real LLM, start flue dev and set FLUE_BASE_URL:

FLUE_BASE_URL=http://127.0.0.1:3583 pnpm dev

5. Verify

curl http://localhost:5173/eve/v1/health
# { "ok": true, "status": "ready" }

Run the test suite:

vp test

Migration tiers reference

TierWhat it coversEffort
0useEveAgent, eve/client browser importsZero-touch
1instructions.md, tools/*.ts, eve.config.tsAuto-scaffold
2Custom tool patterns, non-standard layoutManual review
3Workflow SDK, channels, schedulesBlocked — see alternatives

Using the AI migration skill

A skills.sh-compatible skill is bundled in the repo. Install it and ask your AI coding agent to handle the migration:

npx skills add doeixd/flue-eve

Then ask:

"Migrate this Eve project to flue-eve"

The agent will scan, scaffold, configure the Vite plugin, connect the frontend, and verify the setup.

See deployment for production configuration.