Docs assistant

Searches these docs locally; a configured answer service can generate responses.

Ask about this page or the wider Carina docs. Try: “How do I roll back a patch?”

llms.txt

Skip to content

Markdown

Import conversations

Bring local Claude Code and Codex conversations into Carina without changing the source history.

Carina can copy visible conversation history from Claude Code and Codex into ordinary Carina conversations. The source files remain unchanged. This is a point-in-time import, not a live or bidirectional sync.

  1. Open the importer

    Run carina, open /sessions, then choose Import conversations. You can also enter /import directly.

  2. Choose what to scan

    Carina starts with Claude Code and Codex history for the current workspace. Press S to choose one source, or Tab to explicitly include all workspaces.

  3. Review and select

    Each row shows the source, title, message count, and whether it is new, up to date, or unavailable. The preview shows both the source workspace and the Carina target workspace.

  4. Confirm the local copy

    Select conversations with Space or Select all, choose Review import, and confirm. The result page shows exactly how many messages were added or skipped; open an imported conversation from there.

Imported user and assistant messages retain a Claude Code import or Codex import label in the transcript. They are historical context, not evidence that Carina ran the source tool calls.

Preview the current workspace before writing anything:

carina import list
carina import list --source claude-code
carina import list --source codex --json

Import one discovered source conversation, or every eligible conversation in the current view:

carina import apply --source claude-code --id SOURCE_CONVERSATION_ID
carina import apply --source codex --all

Use --workspace /path/to/repo to choose the Carina target workspace. --all-workspaces broadens discovery; it does not merge unrelated conversations into one workspace. For a non-default installation or a synthetic test fixture, pair --source-root /path/to/history with an explicit --source.

CopiedNot copied or trusted
Visible user textSystem or developer instructions
Visible assistant textHidden reasoning
Source name and conversation identityTool calls and tool results
Original message timestampApproval or permission settings
Source and target workspace provenanceCredentials, environment dumps, or binary attachments

Carina reads the selected local history through the daemon, records imported messages in its hash-chained audit log, and binds the new conversation to the shown target workspace with the safe-edit profile. A follow-up prompt receives a bounded, explicitly delimited untrusted imported conversation context. Imported instructions never become Carina authority.

Run Check again in the result page, reopen the importer, or repeat the CLI command. Carina uses stable source identity and per-message fingerprints, so an unchanged import creates no duplicate conversation or message. If the source appended messages, only the new visible messages are added.

Carina does not watch source files in the background. “Up to date” means up to date as of the last explicit check.

SymptomWhat to do
No conversations foundConfirm the source and current workspace; use Tab or --all-workspaces only when you intend to scan other projects.
Source history is in a custom locationUse --source SOURCE --source-root /path/to/history.
Conversation is unavailableIts recorded workspace is missing or outside the daemon’s allowed roots. Restore it, or use --all-workspaces --workspace /existing/target to discover it while choosing an existing target.
Some records were skippedUnknown or malformed source records are reported as warnings when usable user/assistant text remains.
Conversation says up to dateNo new visible messages were found. This is an idempotent no-op.
Import stops partway throughResolve the reported error and run it again. Already recorded fingerprints are skipped.

After import, inspect the normalized transcript with carina items SESSION and verify the audit chain with carina audit verify SESSION.

Was this page helpful?

One vote per page is recorded during this session.