anomalyco / anomalyco/opencode
[FEATURE]: `opencode session export` to markdown or json
Open
@thdxr is already working on this.
Since Jan 19, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- Avg merge
- 7h 2m
- Merged PRs (30d)
- 384
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
We need a way to export opencode sessions to Markdown or Json format with a TUI flag.
% opencode session export -h
opencode session export [sessionID]
export session transcript to file
Positionals:
sessionID session id to export [string]
Options:
-h, --help show help [boolean]
-v, --version show version number [boolean]
--print-logs print logs to stderr [boolean]
--log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
--dir directory to run in [string]
-o, --output output file path [string]
-f, --format output format [string] [choices: "markdown", "json"] [default: "markdown"]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.