Harness Notes

Migration

Updated 2026-11-22,

On this page

Moving between harnesses: what each one can import from another, which of another harness's files it reads as-is, and what it can export.

QuestionOpenCodechecked at 2.0.29
Import setup from another harness

Partly

Only from OpenCode V1. V2 reads V1 opencode.json(c) and .opencode/ agents, commands, skills, and MCP servers from the same locations and normalizes them in memory, migrates global tui.json into ~/.config/opencode/cli.json on first start, and you can ask OpenCode to rewrite your config into the native V2 shape. V1 plugins must be ported, and nothing is imported from other harnesses apart from the skills it reads directly.

Other harnesses' files it reads directly

Partly

Automatic compatibility discovery covers skills: .claude/skills and .agents/skills in the project (walking up), and ~/.claude/skills and ~/.agents/skills globally. V2 does not automatically discover CLAUDE.md guidance or other harnesses' agents, commands, MCP configs, or hooks. Since 2.0.30, explicitly listing CLAUDE.md in instructions loads it as configured guidance.

For the V1 CLAUDE.md fallback, move guidance to AGENTS.md or, since 2.0.30, list it explicitly in instructions.

Since 2.0.30, instructions config entries can explicitly load CLAUDE.md or another guidance file. This is explicit configuration, not automatic discovery or transcript import.

Import sessions or history

Partly

V1 sessions are copied automatically: on first start the V2 server migrates the V1 session tables in the same opencode.db (and any opencode-next.db beta database) into V2 format and shows a progress overlay in the TUI. opencode session import <file|url> accepts only V2 export JSON, and nothing imports other harnesses' sessions.

Migrated V1 sessions lose their per-session permission overrides.

Export for use elsewhere

Partly

opencode session export [id] writes a session as JSON (--sanitize redacts it) and /export in the TUI saves a transcript. These use OpenCode's own format, sharing is not available in V2 yet, and there is no exporter for another harness.

Commands

No commands recorded.

Notes and sources

OpenCode, 11 sources
Import setup from another harness, 1
Other harnesses' files it reads directly, 4
Import sessions or history, 3
Export for use elsewhere, 3