Harness Notes

Thread naming

Updated 2026-11-22,

On this page

How sessions get their titles and how you rename and find them. Where the sessions themselves are saved is on the Transcripts page.

QuestionOpenCodechecked at 2.2.4
Automatic names

Yes in shared V2 core, including headless/server clients: admitted input in an untitled top-level session starts background generation. Configure agents.title.model or disable with agents.title.disabled. It emits durable session.renamed; native API clients can adopt it. ACP live title forwarding is not established by that core event.

Rename a session

In the TUI, /rename <title> sets the title, /rename with nothing after it regenerates it from the conversation, and ctrl+r opens a rename dialog. opencode run --title "..." names a new session, and PATCH /api/session/{id} with title renames one (an empty string regenerates it).

Find or resume by name

Partly

The /sessions picker searches titles (a substring match), but --session only takes an ID, and with an unknown ID it creates a new session. opencode session list prints titles next to IDs.

Where the name is kept

The title is the title column of the session_v2 table in ~/.local/share/opencode/opencode.db (opencode debug paths db). It survives restarts, is included in opencode session export JSON, and comes back with opencode session import; titles of migrated V1 sessions are kept.

Commands

Inside a session

Slash commands you type into an open session.

TaskOpenCode 2.xchecked at 2.0.28
Use
Rename

/rename [title]

Rename the session, or regenerate its title with an empty argument.

Notes and sources

OpenCode, 20 sources
Automatic names, 12
Rename a session, 4
Find or resume by name, 2
Where the name is kept, 3