> ## Documentation Index
> Fetch the complete documentation index at: https://harbor-framework-harbor.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Handoff

> Resume a completed trial in your local agent CLI.

`harbor trial handoff` copies a completed trial's native session to your local
agent CLI and resumes it in the current directory. Use it to continue the
conversation or ask the agent about its work.

```bash theme={"system"}
# Local trial directory
harbor trial handoff "jobs/<job>/<trial>"

# Harbor Hub trial ID
harbor trial handoff 594025f3-7d65-4655-8576-4bee95002eae
```

<video controls src="https://mintcdn.com/harbor-framework-harbor/AA53Bak3s_44xndu/videos/handoff-demo.mp4?fit=max&auto=format&n=AA53Bak3s_44xndu&q=85&s=79db288610639f259413fa95a03f0b09">
  Your browser does not support video playback.
</video>

Trial handoff to Claude Code

For a Hub trial ID, Harbor downloads the trial first. For `claude-code`, handoff
copies the session to the local Claude Code store and runs
`claude --resume <session-id>`.

## Requirements

* The agent supports `capabilities.handoff`. Currently, only `claude-code` does.
* The agent CLI is installed locally. For `claude-code`, `claude` must be on `PATH`.
* The trial contains one session. Multi-session trials are not supported.

## What is restored

Handoff restores the native session history, not files from the trial sandbox.
See [loading trajectories](https://harbor-framework-harbor.mintlify.site/core-concepts/jobs/loading-trajectories.md) to seed a
new Harbor run instead.


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