Can I get an easily human readable log file with plain text that just shows the whole conversation? #2171

Open
opened 2026-02-16 17:34:31 -05:00 by yindo · 7 comments
Owner

Originally created by @621625 on GitHub (Oct 18, 2025).

Originally assigned to: @rekram1-node on GitHub.

Question

Hi guys,

Hope you are well.

Can I get an easily human readable log file with plain text that just shows the whole conversation history from a given session? I can't find that. The log files in .local/share/opencode are hardly human readable. Anyway I just want to see the conversation in txt format.

If this doesn't exist then I would really want it so please make it a feature request.

Originally created by @621625 on GitHub (Oct 18, 2025). Originally assigned to: @rekram1-node on GitHub. ### Question Hi guys, Hope you are well. Can I get an easily human readable log file with plain text that just shows the whole conversation history from a given session? I can't find that. The log files in .local/share/opencode are hardly human readable. Anyway I just want to see the conversation in txt format. If this doesn't exist then I would really want it so please make it a feature request.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 18, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1865: Requests auto-save session record feature with human-readable conversation history saved to disk

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 18, 2025): This issue might be a duplicate of existing issues. Please check: - #1865: Requests auto-save session record feature with human-readable conversation history saved to disk Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 19, 2025):

@bitcoinmeetups kinda depends what you want, few options:

  • when in your session run /export -> get a markdown export of the conversation
  • outside of opencode run opencode export -> get a json export of entire convo with lots of metadata
  • run /share and view it in the web

Let me know if these don't work and what you'd expect instead

@rekram1-node commented on GitHub (Oct 19, 2025): @bitcoinmeetups kinda depends what you want, few options: * when in your session run /export -> get a markdown export of the conversation * outside of opencode run `opencode export` -> get a json export of entire convo with lots of metadata * run /share and view it in the web Let me know if these don't work and what you'd expect instead
Author
Owner

@621625 commented on GitHub (Oct 25, 2025):

I would suggest following feature:

Config option to make Opencode automatically save every conversation locally as a human readable text:

E. g (when enabled)

log195832.txt:

AI:

Hey how are you

Human:

Fine

Just pure text, that's all. I don't want to have to manually export every time I browse through an old session. Also I can't read conveniently the current format. And I don't always want to be inside the TUI. I'm more of a CLI person so perhaps I will use opencode run more in the future. Also it's just pure cool and no-nonsense. User wants text logs saved? You got it. So that opencode constantly strives to empower the user, not a centralized entity.

Love opencode and hope that you continue to work on it.

@621625 commented on GitHub (Oct 25, 2025): I would suggest following feature: Config option to make Opencode automatically save every conversation locally as a human readable text: E. g (when enabled) log195832.txt: AI: Hey how are you Human: Fine Just pure text, that's all. I don't want to have to manually export every time I browse through an old session. Also I can't read conveniently the current format. And I don't always want to be inside the TUI. I'm more of a CLI person so perhaps I will use opencode run more in the future. Also it's just pure cool and no-nonsense. User wants text logs saved? You got it. So that opencode constantly strives to empower the user, not a centralized entity. Love opencode and hope that you continue to work on it.
Author
Owner

@rekram1-node commented on GitHub (Oct 25, 2025):

If you wanna save everything as plaintext you could write a plugin to this I think, Idk if we want to add an option to double save all conversations.

We could also make export from command line have a --format md or something but ik you said you didn't wanna export manually

@rekram1-node commented on GitHub (Oct 25, 2025): If you wanna save everything as plaintext you could write a plugin to this I think, Idk if we want to add an option to double save all conversations. We could also make export from command line have a --format md or something but ik you said you didn't wanna export manually
Author
Owner

@621625 commented on GitHub (Oct 26, 2025):

Exporting from command line is ok. As long as it's accessible from command line and not requiring using the TUI. Or if you know another tool that can export those logs to plain text files I could use that too. By the way is there a way to use command line to get the sesson ID's?

@621625 commented on GitHub (Oct 26, 2025): Exporting from command line is ok. As long as it's accessible from command line and not requiring using the TUI. Or if you know another tool that can export those logs to plain text files I could use that too. By the way is there a way to use command line to get the sesson ID's?
Author
Owner

@rekram1-node commented on GitHub (Oct 26, 2025):

you opencode export give the whole dump of a session (including its id), we should add a session list command or something tho.

@rekram1-node commented on GitHub (Oct 26, 2025): you `opencode export` give the whole dump of a session (including its id), we should add a session list command or something tho.
Author
Owner

@yonson40 commented on GitHub (Dec 29, 2025):

Any way to get full export of all sessions in one long conversation? Or have to save by each session?

@yonson40 commented on GitHub (Dec 29, 2025): Any way to get full export of all sessions in one long conversation? Or have to save by each session?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2171