Guides

Chat & sessions

The terminal chat assistant, project session mesh, run logs, checkpoints, and resume.

Updated Nov 13, 20263 min readv0.3.0-beta
On this page7 sections

sofuu chat is the terminal chat interface: streamed answers, a built-in tool belt, encrypted local memory, and a coordination layer for several sessions working in one project.

Shell
sofuu chat
FlagEffect
-m <model>Starts with a specific model.
-p <provider>Starts with a specific provider.
--sync offDisables the project session mesh for this session.

Model backend

Chat answers come from a configured model backend. A local backend needs its model files; a remote provider needs credentials and network access. Inside a session, /provider and /model switch between backends that are already configured.

Chat state, memory, and provider configuration are separate. Changing the chat model does not change the embedding space of an existing memory file. A missing provider key is a configuration problem rather than a chat problem; Troubleshooting covers the provider and model paths.

The tool belt

The built-in tools are read_file, write_file, edit_file, grep, glob, list_dir, and bash. /tools toggles the belt on or off for the session.

Project session mesh

When several terminal sessions run against the same project, sofuu chat synchronizes active tasks, notes, alerts, and shared context through bounded project storage. The mesh carries that coordination state, not file contents.

Use /work to claim a task before editing, /note for information another session should see, and /notify when a peer needs to stop and look. /context attaches shared context to the current session. Start with --sync off when you want a session isolated from the mesh.

Slash commands

CommandPurpose
/work <task>Broadcasts the active task so other sessions avoid conflicting work.
/doneMarks the active task complete and clears work status across the mesh.
/note <msg>Saves a note visible to all sessions on the project.
/notify <msg>Emits a high-priority banner to connected peer sessions.
/context [id]Inspects or attaches shared context across project sessions.
/remember <fact>Pins a durable fact or architecture rule into the local encrypted QTSQ brain.
/compactCompacts conversation history when the context window fills, preserving questions and decisions.
/ctx · /costLive context-window and spend meters. Accepts 1m, 128k, or raw token counts.
/effort <level>Sets reasoning effort: low, medium, high, or max.
/providerSwitches the LLM backend.
/modelSwitches the model.
/toolsToggles the active tool belt.
/sessionsLists past project sessions.
/resumeResumes a run by ID.
/helpPrints the interactive command documentation.

Sessions and checkpoints

/sessions lists the sessions stored for the project. The CLI exposes the same state:

Shell
sofuu session list
sofuu session show <id>
sofuu session repair
sofuu session prune

repair addresses a corrupted manifest. prune removes stale checkpoints. Both operate on stored session state rather than on project files.

Agent runs write durable checkpoints as they proceed. After an interruption or failure, sofuu resume <run_id> attempts to continue from the last usable checkpoint:

Shell
sofuu resume <run_id>

Resume is conditional. A checkpoint changed by redaction, or truncated at a known boundary, is refused rather than replayed with missing state. Not every interrupted run can be resumed.

Logs

CommandOutput
sofuu logsRecent runs with run ID, start time, step count, and exit status (DONE, ERROR, CANCELLED).
sofuu logs show <id>Human-readable trace of model calls, tool executions, and step summaries.
sofuu logs --followLive tokens and tool calls from an active background worker.
sofuu logs --last-errorFailure context, stack trace, and post-mortem card for the newest failure.

--last-error shows why a run stopped before you decide whether to resume it or start over.

Where to go next