> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Move an agent from eve 0.78 to eve 1.0

> Upgrade a deployed agent from eve 0.78 to eve 1.0 and its platform packages: end its sessions, bump, fix what breaks, deploy, check it, roll back.

These steps take an agent made with `jaccard init` on eve 0.78 to eve 1.0.0 and the platform packages built for it. Agents on eve 0.78 keep running on Jaccard, so you choose when to move.

> [!TIP]
>
> A coding agent can do this for you. Install the `upgrade-eve` skill in the project, then ask your coding agent to upgrade the agent to eve 1.0. It follows these steps and stops to ask you before it deploys.
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> mkdir -p .claude/skills/upgrade-eve
> curl -fsSL https://jaccard.ai/skills/upgrade-eve/SKILL.md -o .claude/skills/upgrade-eve/SKILL.md
> ```

| Package | eve 0.78 | eve 1.0 |
| - | - | - |
| `eve` | `^0.78.0` or `~0.78.0` | `~1.0.0` |
| `@jaccard-ai/world` | `^0.1.0` | `^0.2.0` |
| `@jaccard-ai/eve-auth` | `^0.2.1` | `^0.2.2` |
| `@jaccard-ai/eve-metrics` | `^0.1.0` or `^0.2.0` | `~0.3.0` |
| `@jaccard-ai/eve-sandbox` | `~1.0.1` | `~2.0.0` |

## Before you start: end the agent's sessions

A session can only run on the eve version that started it. After you deploy eve 1.0, every session the agent has is stranded: its history stays readable, but it can't take another message.

> [!WARNING]
>
> Deploying eve 1.0 ends the work of every open session. A running turn, a pending approval and a subagent or background task stop, and they don't continue on eve 1.0.

What a caller sees after the deploy:

* **Slack:** the next message in a thread starts a new session in that thread, without the earlier conversation.
* **Your web app or service:** a send or stream to an old session id gets `409` with `code: "session_stranded"`. Start a new session.
* **Hosted sandboxes** of old sessions aren't stopped by the session. They stop after their idle timeout and are deleted once their workspace expires, and until then they count toward your organization's sandbox limit. A new session gets a new sandbox, and `prepare` runs again.

> [!WARNING]
>
> State the agent keeps in memory, such as a Chat SDK channel on `@chat-adapter/state-memory` or a map in a tool, is lost on every deploy, this one included.

So let open conversations finish first, then end the sessions your web app or service holds ids for. Slack threads need nothing: their next message starts a new session. Ending works on eve 0.78 with the session's id, when your organization membership can call the agent ([Who can call your agent](/docs/operate/access.md)):

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -s -X POST "https://my-agent-acme.jaccard.app/eve/v1/session/$SESSION_ID/reset" \
  -H "Authorization: Bearer $(jaccard auth token)"
```

On eve 1.0 the route is `/end`. Ending a session before the deploy also stops its sandbox. After the deploy you can still end a stranded session, but its sandbox only stops on its idle timeout.

## Bump the packages

From the project folder:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm add eve@~1.0.0 ai@^7.0.172 @vercel/connect@2.7.0 \
  @jaccard-ai/world@^0.2.0 @jaccard-ai/eve-auth@^0.2.2 \
  @jaccard-ai/eve-metrics@~0.3.0 @jaccard-ai/eve-sandbox@~2.0.0
```

Keep the tilde ranges: they hold `eve` on 1.0. From `eve-metrics` 0.3.1 and `eve-sandbox` 2.0.1 these packages also accept eve 1.1, so an agent can move on to eve 1.1 later with `@jaccard-ai/world@^0.2.1`. Then check the peers:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm peers check
```

If it flags a package eve 1.0 peers on, such as `chat` (eve 1.0 needs `^4.42.0`), `ai` or `@vercel/connect`, `pnpm add` it at the range it names and check again until it reports no issues.

If your project pins `zod` below 4.6.6, bump it: older versions can exhaust memory on oversized input ([GHSA-mrhx-c7xc-m3w5](https://github.com/advisories/GHSA-mrhx-c7xc-m3w5)).

You can commit the bump on its own now, before the fixes below, so each is easy to review.

eve 1.0 runs on Node 24 or later and targets Node 26. Agents run on Node 24 on the platform, so leave `engines.node` as it is.

## Fix what breaks

Run the typecheck and fix each error before you build. `eve build` doesn't type-check, so it builds an agent that still has the old sandbox option.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm typecheck
```

### The sandbox file

In `agent/sandbox/sandbox.ts`, the hosted sandbox's options move from `k8s` to `hosted`:

```ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
export const environment = defaultEnvironment({
  k8s: { image: IMAGE },     // [!code --]
  hosted: { image: IMAGE },  // [!code ++]
  docker: { image: IMAGE },
  prepare,
})
```

If the file has the comment ``// Exported: `eve build` prepares it before any session exists.``, replace it. On eve 1.0 it's wrong:

```ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
// Exported for `eve build`, which records the provider. `prepare` runs once
// per workspace, when a session first opens its sandbox.
```

If you import more than `defaultEnvironment`, `K8sPodSandbox` is now `HostedSandbox` and `podNameFor` is `sandboxNameFor`. The `eve-sandbox` package README lists every rename.

What else changes for sandboxes:

* **Commands run under `bash`** where the image has it, not `sh`. Scripts that rely on `sh` behaviour may need a change.
* **`prepare` still runs once per workspace**, the first time a session opens its sandbox, not at `eve build`.
* **Ending a session stops its sandbox** and keeps the workspace, as before. Deleting the session deletes the sandbox.

### Tools

`jaccard init` creates no tools, so these apply only to tools you added:

* **`bash` output:** the model sees plain output, and a non-zero exit ends with `[exit code: N]` as an error result. `bash` waits 60 seconds before it leaves a command running in the background, and the model can ask for up to 120. Truncated output names a file in the sandbox that holds all of it.
* **New `edit_file` tool:** every agent gets one. If you disabled, wrapped or require approval for `write_file`, do the same for `edit_file`.
* **`agentWithModel` is removed:** use `agent({ models })` from `eve/tools/agent`.
* **A dynamic tool can't replace a static tool of the same name.** Define a tool you change per session only in the dynamic file.
* **The code extension** no longer adds `code__apply_patch`, `code__grep` or `code__worker`.
* **Approvals:** `approvalKey` and `ApprovalContext.approvedTools` are removed, and `once()` remembers the latest answer for each tool for the rest of the session. eve's [agent files guide](https://eve.dev/docs/guides/upgrade/agent-files) has the details.

### Channels you added

`jaccard init` creates only `agent/channels/eve.ts`. For a channel you wrote with Chat SDK (`eve/channels/chat-sdk`):

* `messageToUserContent` is now `messageContentOf`.
* Pass `idempotencyKey: message.id` to `send`, so a retried webhook reaches the agent once.
* On adapters that can't show cards, such as email, approvals arrive as numbered options, and anyone who can reply in the thread can answer. Make the tool's `approval` refuse callers who mustn't approve.

eve's [channels guide](https://eve.dev/docs/guides/upgrade/channels) covers Slack, Teams, MCP and custom channels.

### Code that reads session events

Session events change format. A turn now ends with `turn.settled` and an `outcome`, instead of `turn.completed`, `turn.failed` or `turn.cancelled`. Update any web app or service that reads the stream before you deploy: one that matches the old names keeps working without errors and matches nothing. Hooks inside the agent show up in `pnpm typecheck`.

### Packages that need no change

* **`@jaccard-ai/eve-auth` 0.2.2:** `agent/channels/eve.ts` stays as it is when its `auth` list holds only `localDev()` and `jaccardOidc()`. If you added eve's `vercelOidc` with `allowToolStubs`, switch it to `eveVercelOidc` from `eve/channels/eve`.
* **`@jaccard-ai/eve-metrics` 0.3:** `agent/instrumentation/jaccard.ts` stays as it is, from 0.1 or 0.2. Metric names and labels are the same, so the **Metrics** tab and your dashboards keep working.
* **`@jaccard-ai/world` 0.2:** `agent/agent.ts` stays as it is. The platform already serves it.

## Build and check locally

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm typecheck
pnpm exec eve build
pnpm dev
```

Chat with the agent in `pnpm dev` and have it run a command, which uses the Docker sandbox. Commit the fixes once all three pass.

## Deploy and check it

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
jaccard deploy
```

Before uploading, `deploy` checks that `@jaccard-ai/world` matches the project's eve. If the bump missed it, `deploy` stops with an error that names the `pnpm add` line to run. This check runs only in `jaccard deploy`, which has no dry run.

Then check the deployed agent:

1. `jaccard agent connect` and send a message. The reply shows that the platform's auth, the model and sessions work.
2. Ask it to run `echo $BASH_VERSION` in its sandbox. A version number shows the hosted sandbox works under `bash`. `jaccard sandbox list --agent my-agent` shows the new sandbox.
3. Open the agent's **Metrics** tab in the [console](/docs/operate/console.md). The turn and the tool call show up in its charts.
4. `jaccard logs my-agent --since 15m --level warn` shows no errors. A warning that the world declares no `queueAuthMode` is expected.

## Roll back

Revert the upgrade commits and deploy again, naming the first of them:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
git revert --no-edit <first-upgrade-commit>^..HEAD
pnpm install
jaccard deploy
```

The agent is back on eve 0.78 once `deploy` returns.

> [!WARNING]
>
> Rolling back strands the sessions started on eve 1.0, the same way the upgrade stranded the eve 0.78 ones. End them first if you need them closed cleanly.

## More from eve

eve's [upgrade guide](https://eve.dev/docs/guides/upgrade), also in `node_modules/eve/docs/guides/upgrade/` for the eve you installed, covers what an agent made by `jaccard init` doesn't use, such as extensions, connections, memory providers, saved history and eve's client libraries.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.