Sessions, worktrees, and resume
Create an isolated worktree
Section titled “Create an isolated worktree”From a Git repository:
mj --worktreeMjolnir creates a linked worktree under
<project>/.mjolnir/worktrees/<adjective-noun>. Pass a name to reuse an existing
Mjolnir worktree:
mj --worktree quiet-forgeFreshly created worktrees offer cleanup when the TUI exits. Reused worktrees do not, because the explicit name indicates continued ownership. Mjolnir prints the path before cleanup decisions so it is not lost when terminal state changes.
Resume a session
Section titled “Resume a session”mj resume opens a searchable picker. A session ID resumes directly:
mj resume <session-id>Saved provenance pins the session back to its original ACP adapter and model when that route is still launchable. It does not automatically infer a prior worktree directory. Reuse it explicitly:
mj resume <session-id> --worktree quiet-forgeMjolnir prints a complete resume hint after an interactive session.
List sessions
Section titled “List sessions”mj resume --listmj resume --list --cwd /work/project --format jsonLegacy session IDs can be ambiguous across adapters. If direct resume cannot identify one route, use the interactive picker first.
Session provenance is persisted separately from provider-owned session data. Read Storage and network activity before deleting state or moving a worktree.