Multiple sessions, delegation, and the host
With several sessions on, the TUI keeps earlier sessions running in the
background while you work in another one. nori host goes further: it keeps
sessions running with no terminal at all, and nori attach opens them from
any terminal.
Turn it on
Section titled “Turn it on”[features]multi_session = true
[tui]max_sessions = 8 # most sessions running at once; values below 1 count as 1On stable it is off by default; restart Nori after changing it. On the
next release channel several sessions are always on, and the
multi_session key is ignored. With it on, /new,
/resume, /agent, and forking to an earlier message keep the previous
session running instead of ending it. They also work while the session on
screen is busy. One session is on screen at a time.
At the cap, /new and /agent refuse to start another session and tell you
how to close one.
Move between sessions
Section titled “Move between sessions”| Key (default) | Action | What it does |
|---|---|---|
alt+, / alt+. |
previous_session / next_session |
move through sessions in the order they were opened |
alt+down |
next_waiting_session |
jump to the next session waiting on you |
alt+s, Left on an empty prompt, or /sessions |
open_session_list |
open the session list |
alt+up |
parent_session |
from a delegated child, go back to its parent |
Rebind them under [tui.hotkeys]. Moving between sessions skips closed and
done ones.
In the session list:
| Key | What it does |
|---|---|
arrows or j/k |
move |
| Enter | open the session |
| Tab | show only sessions waiting on you; Tab again shows all |
/, f, or Ctrl+F |
search by title or agent |
| Ctrl+R | restart a failed session from its transcript, in the same place |
| Ctrl+D | close the selected session and stop its agent; a busy session needs a second Ctrl+D |
| Ctrl+D on a closed or done row | remove it from the list |
| Esc | leave the search, then close the list |
Statuses: starting, working, waiting on you, ready, failed, closed, done.
/close closes the session on screen. The last open session cannot be
closed this way; use /quit.
Delegate a task
Section titled “Delegate a task”/delegate codex write the migration for the new users table/delegate <agent> <task> starts a child session on that agent. The agent
can also delegate on its own through its delegate tool.
- A child on the same agent starts at once. A child on a different agent asks first: “Yes, start it” or “No, decline” (Esc declines).
- The parent shows one line,
↳ you delegated to <agent> · <name> · working. The full brief and result are in the transcript view (Ctrl+T). - When the child ends, a short result block shows up to six lines of its result, and the result goes back to the parent agent on its own.
- Inside a child, a breadcrumb shows the path from the top-level session;
alt+upreturns to the parent.
Keep sessions running: nori host
Section titled “Keep sessions running: nori host”The host is a background process that owns agent sessions. It keeps running when every terminal detaches and when the last session ends.
| Command | What it does |
|---|---|
nori host [--port 7420] |
start the host on loopback (--port 0 picks a free port) |
nori host new [--cwd DIR] [--agent A] [--prompt TEXT] [--json] |
start a session and print its ID ({"session_id", "cwd"} with --json) |
nori host ls |
list sessions; piped output is plain ID AGENT STATUS AGE CWD TITLE rows |
nori attach [SESSION_ID] |
open the session list, or one session (any unique start of its ID works) |
nori host stop |
stop the host and all its sessions |
On stable, nori attach needs multi_session. --host <URL> --token-file <FILE>
points nori host new and nori attach at a host other than the local one.
- Every connection needs the host’s private token, stored under
$NORI_HOME/host/. Local commands read it automatically. It changes each time the host starts. - The first terminal that attaches controls the host. Later terminals watch: they see everything but cannot prompt or answer permissions until they press Alt+T to take control.
- Ctrl+D detaches the terminal. The sessions keep running.
/new [DIR] [AGENT]in an attached terminal starts a session in another folder, with Tab completion. Each session uses its own folder’s trust and config.- After
nori host stopor a restart, earlier sessions are no longer listed. Their transcripts remain, and/resumein plainnorireopens them. - Sessions started by plain
noristay private to that terminal and end when you quit it. Only sessions onnori hostcan be attached.
On the next release channel, nori attach opens the same TUI as plain
nori, with most commands available. See
join from another terminal for what works attached,
what terminals share, and why ! commands run only on the host’s machine.
On the next release channel, the host is also a standard ACP agent that
editors and scripts can connect to over stdio or an authenticated
WebSocket, and nori exec runs through it. See
nori host.
Common questions
Section titled “Common questions”Is this the same as Nori Cloud? No. These sessions run on your machine. For cloud sessions, see cloud.
Does a background session lose work while I look at another one? No. It keeps running; the status line above the prompt names a background session that is waiting on you.
Can scripts start work? Yes. nori host new --cwd DIR --prompt TEXT --json
starts a session and returns its ID; attach later to watch it.
How deep can delegation go? At most two levels below the top-level session.
this page as markdown: /cli/guides/multi-session.md· index for agents: /llms.txt