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.

Questionpichecked at 1.4.0
Automatic names

Not supported

Stock Pi 1.4.0 has no built-in AI auto-naming caller in the inspected CLI/TUI/print/RPC/SDK paths. It exposes setSessionName and session_info_changed so a host or extension can implement it, including with custom providers. First-message picker text is a fallback label.

Rename a session

Run /name <name> in a session (plain /name shows the current name), or start Pi with --name <name> / -n <name>. In the /resume picker, select a session and press Ctrl+R to rename it. RPC clients send set_session_name, and extensions call pi.setSessionName().

Line breaks in a name are turned into spaces. Pi shows the name in the footer and the terminal title.

Find or resume by name

Partly

You can search for it in the /resume (or pi --resume) picker, which matches the name along with the ID, message text and folder; Ctrl+N limits the list to named sessions. --session, --fork and --continue take only a file path or session ID, not a name.

Where the name is kept

Each rename adds a session_info entry with a name field to the session's JSONL file, and the latest one wins (an empty name clears it), so the name survives restarts and resume. pi --fork copies the name along with everything else. /fork, /clone and /export <file>.jsonl copy only the active branch, so they keep the name only if it was set on that branch before the copy point.

Commands

From your shell

Commands you run in a terminal or script, outside a session.

Taskpichecked at 1.2.0
Use
Rename

pi --name <name>

also pi -n <name>

Set the session display name at startup.

Inside a session

Slash commands you type into an open session.

Taskpichecked at 1.2.0
Use
Rename

/name [name]

Set the session's display name, or show it.

Notes and sources

pi, 14 sources
Automatic names, 4
Rename a session, 5
Find or resume by name, 4
Where the name is kept, 3