# Sessions

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).

> A session is a named piece of work on a workstation that keeps running when you disconnect: a coding agent, or a set of terminal panes.


A session is a named piece of work on a workstation that keeps running when you disconnect.
An [agent session](https://docs.ringleader.dev/workstations/sessions/agent-sessions/) runs a coding agent
on a prompt you give it, keeps a transcript, and waits for you when it needs an answer.
A [terminal session](https://docs.ringleader.dev/workstations/sessions/terminal-sessions/) holds shells that
keep running after you close the application or lose your connection.
Both can start in a [worktree set](https://docs.ringleader.dev/workstations/sessions/worktree-sets/), a
directory that holds one git worktree of each repository you name, all on one branch.

For the fields of each kind, see [AgentSession and AgentSessionConfig](https://docs.ringleader.dev/reference/resources/agentsession/),
[TerminalSession and LocalTerminalSession](https://docs.ringleader.dev/reference/resources/terminalsession/)
and [WorktreeSet](https://docs.ringleader.dev/reference/resources/worktreeset/). For every command, see
[Agent session commands](https://docs.ringleader.dev/reference/cli/commands/agent-sessions/) and
[Terminal session and worktree set commands](https://docs.ringleader.dev/reference/cli/commands/terminal-sessions/).


## Pages in this section

- [Agent sessions](https://docs.ringleader.dev/workstations/sessions/agent-sessions/index.md): An agent session is a run of a coding agent that Ringleader starts, supervises and records on a workstation.
- [Terminal sessions](https://docs.ringleader.dev/workstations/sessions/terminal-sessions/index.md): A terminal session is a named set of shells on a workstation, called panes, that keep running when you close the app, sleep your laptop or lose your network.
- [Worktree sets](https://docs.ringleader.dev/workstations/sessions/worktree-sets/index.md): A worktree set is a directory on a workstation that holds a git worktree of each of up to eight sources, all on one branch, for sessions to work in.

