Commands at a glance
| Command | What it does |
|---|---|
/sessions | List your recent REPL sessions with name, duration, and turn counts |
/resume <id> | Restore a past session’s conversation so you can keep asking questions |
/new | Start a fresh session while carrying forward the current conversation context |
Browsing past sessions — /sessions
Run /sessions inside the interactive shell to see your recent history:
Resuming a past session — /resume
When you want to continue a past investigation or conversation, use /resume with the first few characters of the session ID shown in /sessions:
/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.
OpenSRE restores the conversation so the assistant remembers what you were working on. It displays the past exchanges so you can see where you left off, then lets you continue typing:
Restored by /resume | |
|---|---|
| Full conversation context (what you asked, what the assistant said) | ✅ Yes |
| Infra context (service name, cluster, region learned mid-session) | ✅ Yes |
| Trust mode, reasoning effort | ❌ No — these are per-session preferences |
When you exit
When you leave the REPL, OpenSRE prints your session ID so you can resume later:| Exit path | Behavior |
|---|---|
/exit or /quit | Prints Resume this session with: and /resume <session-id>, then goodbye |
| Ctrl+C twice within 2 seconds | Same resume hint, then exits |
| Ctrl+D (EOF) | Same resume hint when no dispatch is running |
/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 so you don’t lose context:
/new after a long session to keep things tidy in /sessions without losing your place in the conversation.
/new vs /clear:
| Command | What it does |
|---|---|
/clear | Clears the terminal screen only — session and context unchanged |
/new | Opens a new session file; conversation context carried forward |
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
- Infra context discovered during investigations (service names, cluster names, regions)
- Turn counts for investigations and chats
~/.opensre/sessions/. Each file is plain text and human-readable.
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) - Full investigation results — stored separately under
~/.opensre/investigations/ - Token usage — tracked in
~/.opensre/prompt_log.jsonlwhen prompt logging is enabled
Related
- Interactive Shell Privacy — command history, prompt/response logging, and redaction settings
- Prompt Logging — full prompt/response logging configuration
Tracer