Commands at a glance
Browsing past sessions — /sessions
Resuming a past session — /resume
Use /resume with the first characters of the session ID from /sessions:
opensre --resume 9b2e4f7a, or o --resume OOM when o is your shell alias):
/resume opens an interactive picker of recent sessions. New turns after a resume append to that same session file — /resume does not create a duplicate entry in /sessions.
To resume a specific branch point, append an entry ID prefix after the session ID:
You can also search by name instead of ID:
When you exit
When you leave the REPL, OpenSRE prints your session ID so you can resume later:
Example:
/resume … or opensre --resume … line from the terminal, or find the session later with /sessions.
Starting fresh with context — /new
/new closes the current session and opens a new one, but carries the conversation forward:
/new after a long session to keep /sessions tidy without losing your place in the conversation.
Compacting long sessions — /compact
/compact summarizes older conversation context, keeps the recent turns, and writes a durable compaction entry into the session file:
/resume calls can replay the compacted branch.
/new vs /clear:
What OpenSRE saves
Each session records:- When it started and ended, and how long it ran
- Every message you sent and every response from the assistant
- Tool calls, tool updates, tool results, model/tool changes, labels, custom messages, and compaction summaries
- Infra context discovered while working (service names, cluster names, regions)
- Turn counts
~/.opensre/sessions/. Each file is plain text and human-readable.
Inspecting a turn’s decisions
Local session traces record the model’s original closing, the reason a stop was accepted or rejected, the plan and pending questions, and the displayed and saved answers separately. These diagnostic records stay out of resumed conversation context. Known credential patterns are redacted; ordinary conversation text is retained. Run/sessions to find the session ID, then use jq in your terminal. Replace
3f8a1c2d with the ID prefix shown for your session:
goal_review and conclusion to understand stopping, agent_finished
for the original closing, response_composition for display filtering, and
response_displayed / assistant_persisted for the two outputs. Rejected closing
attempts appear as model_conclusion records. The records include the prompt turn
ID when available; assistant_persisted.message_id identifies the saved message.
These records are added on new runs; older traces cannot recover text that was
never recorded.
Privacy and what is not saved
- Secrets or credentials — known token shapes are redacted from the prompt log by default (set
OPENSRE_PROMPT_LOG_REDACT=0to store raw text instead) - Token usage — tracked in
~/.opensre/prompt_log.jsonlwhen prompt logging is enabled
Related
- Interactive Shell Privacy — command history, prompt/response logging, and redaction settings
- Environment variables — full prompt/response logging configuration