Skip to content

Instantly share code, notes, and snippets.

@ichux
Last active August 13, 2026 06:21
Show Gist options
  • Select an option

  • Save ichux/da4280f722d2d9ea38f55976e2b74af0 to your computer and use it in GitHub Desktop.

Select an option

Save ichux/da4280f722d2d9ea38f55976e2b74af0 to your computer and use it in GitHub Desktop.
opencode session list 2>&1 | head -20; echo ===; opencode db path 2>&
To continue this exact session (the one you exported):
opencode --session ses_00a9152b4ffehE1UW2JL7JSzoY
or shorthand for last session:
opencode -c
And --fork creates a fresh session continuing from it without modifying the original:
opencode --session ses_00a9152b4ffehE1UW2JL7JSzoY --fork
If you specifically want a brand-new session seeded from the markdown file — opencode import won't accept .md, so instead open a new session and attach the file as context:
opencode run --file ~/devcode/intron/worldbank/session-ses_00a9.md "continue from here"
opencode run --dir /home/iam/devcode/airbits --file markdown/SESSION_HANDOVER.md --message "Start by reading markdown/SESSION_HANDOVER.md (my session handover), then markdown/RESEARCHES.md §58, then load my semantic memory (entities: airbits-project-rules, airbits-evidence-discipline, airbits broadcast playout engine, Test suite (tests/)). Then review git diff — there are uncommitted changes to audit."
the "opencode -c" if it ends and breaks out of the session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment