Seshat AIDocumentation

Documentation / Guides

Using the CLI

Every `seshat` command, the options you will use most, background runs, sessions and the terminal shortcuts.

seshat with no arguments opens the interactive terminal interface, the same as seshat chat. Everything else is a subcommand.

Commands at a glance

CommandWhat it does
seshat chatInteractive session in the terminal interface
seshat run "prompt"One task, then exit. Add --bg to run it in the background
seshat configSet the provider, model and keys, or show them with --print
seshat sessionsList, inspect, delete and prune saved sessions
seshat memoryRead and write the notes the agent keeps
seshat trustTrust the configuration files of a project
seshat loginSign in with a ChatGPT subscription (no API key)
seshat doctorCheck configuration, storage, credentials and helper tools
seshat repomapPrint a compact structural map of the repository
seshat workflow run <file>Run a workflow described in YAML or JSON
seshat companionConfigure the companion profile added to sessions
seshat ps, logs, attach, killManage background runs
seshat versionPrint the version

Chat

seshat chat                                   # new session
seshat chat --continue                        # resume the most recent session
seshat chat --resume <session-id>             # resume a specific one
seshat chat --model anthropic:claude-sonnet-4-20250514
seshat chat --permission-mode onRequest
seshat chat --no-tui                          # plain text mode, no full-screen interface

Useful options: --cwd DIR to work in another folder, --db PATH to use another session database, --show-thinking to display the model’s reasoning.

One-shot and background runs

seshat run "summarise the open TODOs in this repository"
seshat run --bg --name nightly-audit "review the last 20 commits for risky changes"

A background run is a local child process. Follow it with the other commands:

seshat ps                          # list background sessions
seshat logs nightly-audit -f       # follow the output (--stream stdout|stderr)
seshat kill nightly-audit          # stop it

Sessions

Sessions are stored in a local SQLite database.

seshat sessions list --status active --n 20
seshat sessions info <id>
seshat sessions delete <id...>        # or --all
seshat sessions prune --older-than 30 --closed

Permission modes

--permission-mode decides who approves the actions of the agent:

ModeBehaviour
onRequestThe default. Seshat asks before actions that need approval
acceptEditsSafe file operations in the working directory are allowed without asking
autoA classifier approves the actions
neverNothing is ever asked: a refused action goes back to the model as a failure. For headless and background runs
granularFine-grained control of each approval flow
bypassNo permission check at all

Shortcuts in the terminal interface

ShortcutAction
ctrl+pSettings and the list of shortcuts
ctrl+m or ctrl+lModels (on terminals that cannot tell ctrl+m from Enter, use ctrl+l)
ctrl+,Providers
ctrl+sSessions
ctrl+nNew session
ctrl+tShow or hide tasks
ctrl+dShow or hide details
ctrl+yToggle yolo mode
ctrl+jNew line in the prompt
ctrl+oOpen your editor
ctrl+f, ctrl+vAttach a file, paste an image
ctrl+uCopy the last message
ctrl+gMore help
ctrl+cQuit

Check your setup

seshat doctor          # add --json for machine-readable output

It checks the local configuration, the storage, provider credentials and the helper tools, so it is the first thing to run when something does not work.

Updated on 2026-10-07