Workspace

Chats

How to run Cohub Chats: composer options, five-tab right panel, follow-up queues, steer and stop controls, read-aloud voice, archiving, and shortcuts.

This page explains how to send prompts and configure runs in a Chat, what each of the five right-panel tabs displays, how queued follow-ups, steering, Stop, voice read-aloud, and archiving work, and which keyboard shortcuts and CLI commands control them.

Running a Chat

Each Chat is a turn-based conversation thread inside a Space (called a session in the CLI and API). Every prompt starts a Turn that streams the Agent's response and tool calls until it settles.

Composer and model options

  • Model selector: Open with ⌘ Shift M / Ctrl Shift M (or click the model picker) to choose a platform model, a custom provider from Home Space .cohub/models.json, or a BYOK / shared ChatGPT (Codex) subscription (<username>/<name>).
  • Thinking level: Pick a thinking level in the composer or via CLI --thinking-level <off|minimal|low|medium|high|xhigh|max|ultra>.
  • Context window: Effective context windows layer platform < mod < user < prompt and are capped at the platform limit. Web shows the active context window in message token usage; set a per-session override from the CLI with --context-window <tokens> (or configure a model override in .cohub/models.json).
  • Compact first: When a long session's prompt cache expires, Web shows a cold-cache notice with a Compact first button to compact context before the next message. From the CLI, pass --compact-first.
  • Read-only mode: Pass cohub prompt --read-only to run a Cohub cloud turn with accessMode: "read_only", restricting the Agent to inspect-only tools (read, ls, find, grep). (The Web composer sends Cohub turns with full_access; Local Harness turns expose approval modes including read_only.)
  • Local Harness: When a Local Runtime is connected to the Space, select a local harness (pi, codex, claude, workbuddy, cursor, antigravity) instead of the default cloud cohub harness. Set approval mode (inherit, auto, full_access, read_only) and service tier (for example priority for Codex Fast) in Web or via CLI --harness, --approval-mode, and --service-tier.
  • Continuing a Chat: A prompt to an existing Chat continues whatever it leaves out, the same way Web does: the last Harness, then that Harness's model, thinking level, service tier, and approval mode. This applies to the CLI, the API, Channels, and scheduled prompts. If a continued model is no longer offered, the default runs; a model you name explicitly fails instead.
cohub -s <space> prompt "Audit src/auth.ts for token leaks" --read-only --thinking-level high --wait
cohub -s <space> prompt --session <sessionId> "Continue after summary" --compact-first --context-window 128000 --stream
cohub -s <space> prompt --harness codex --approval-mode read_only --service-tier priority "Run unit tests" --wait

Attachments, / prompts, mentions, and cross-Space replies

  • Attachments: Attach images or text files in the Web composer, or pass repeatable --image <path> flags to cohub prompt.
  • Slash commands and skills (/): Type / to insert prompt templates or skills (such as /skill:name) available from the Space, your Home Space, mounted Mods, or the platform (see Mods, Skills & Prompts). Prompt templates interpolate {{cohub.session.id}}, {{cohub.space.id}}, and {{cohub.user.uuid}}; unknown or unavailable variables stay literal.
  • Mentions: Use @space to pull context from another Space you can access, paste a public App URL to attach an App mention, or @ a Space member to notify them (only members with access to the Chat receive notifications; see Inbox & Notifications).
  • Notes without AI reply: Pass --note to cohub prompt to record a message in the Chat without triggering an Agent turn.
  • Cross-Space replies: Hand work to another Space and route its final reply back into the calling Chat with --reply:
cohub -s <targetSpace> prompt --reply "Summarize the latest changes in docs/"

Right panel (5 tabs)

The right-hand workspace panel (Ctrl ⌥ → / Ctrl Alt → to toggle) organizes context into up to five tabs (apps/web tab order):

Tab Internal key What it shows Visibility
This chat session Media generated in this Chat and Changed files touched by Agent write/edit tools, with turn-jump links Always shown
Files files Workspace file tree, upload, create file/Board/folder, HTML preview, and live Sandbox ports Always shown
Media media Space-wide generated media feed Requires taskrun.view
Apps apps Published Apps in this Space, installed Apps, and marketplace access Always shown
Scheduled scheduled Scheduled prompts / cron jobs in this Space Shown when cronjob.view is available

To list the files changed by a Chat from the CLI:

cohub -s <space> spaces sessions files <sessionId> --limit 100

Turn controls, queue, steering, Stop, and Fork

Queued follow-ups

Messages sent while an Agent turn is running wait in the Chat queue as follow-ups. When the Agent finishes, queued follow-ups are claimed according to the sender's Home Space .cohub/agent.json:

{
  "version": 1,
  "followupDelivery": "one_by_one"
}
  • together (default when the file or Home Space is absent): merges queued follow-ups into one turn, up to one turn's message count or byte budget.
  • one_by_one: runs each queued follow-up as its own turn in sent order.

The earliest queued follow-up chooses the delivery mode for that claim.

Steer, Stop, Cancel, and Fork

  • Steer: Jumps the queue without aborting active tools. On a cloud turn, the Agent finishes its in-flight tool calls, stops before the next model request, and runs the steer next with those tool results in context. On a local Harness, the running turn stops immediately. Steers always run on their own regardless of followupDelivery. Click Steer now on a queued follow-up in Web, or use CLI --steer / turns steer.
  • Stop: Interrupts the active turn immediately. In Web, stopping also restores queued steers and follow-ups back into the composer in order ahead of your current draft (queued messages whose attachments cannot be restored stay in the queue). For an unreachable terminal run that has already exited locally, pass --confirm-stopped to turns stop.
  • Cancel: Removes a queued follow-up before it runs.
  • Fork: Branches a new Chat from any settled turn without modifying the original thread.
cohub -s <space> prompt --session <sessionId> --steer "Skip the refactor and write tests first"
cohub -s <space> spaces sessions turns steer <sessionId> <turnId>
cohub -s <space> spaces sessions turns cancel <sessionId> <turnId>
cohub -s <space> spaces sessions turns stop <sessionId> <turnId>
cohub -s <space> spaces sessions turns fork <sessionId> <turnId> --title "Alternative approach"
cohub -s <space> spaces sessions turns wait <sessionId> <turnId> --stream --timeout 10m

Voice (read aloud)

Completed Agent replies can be read aloud when a TTS voice is configured in .cohub/speech.json (see Models & Generation for audio and speech models):

{
  "tts": {
    "model": "qwen-audio-3.1-tts-flash",
    "meta": { "voice_prompt": "A calm, clear narrator with a warm tone" },
    "parameters": { "instructions": "Speak at a relaxed pace." }
  }
}
  • Precedence: Cohub checks .cohub/speech.json in order — Space → User (Home Space) → Platform — and uses the first level that defines tts as a whole (levels are never merged). Without a voice at any level, the speaker button is hidden. Space files apply immediately; User and Platform files apply after a Save is published.
  • Rendering and caching: Only a completed agent turn's final reply is spoken. Code blocks, links, URLs, and Markdown markup are stripped, and text over 6,000 characters is cut at a sentence boundary into segments (a short opening segment, then up to ~480 characters each). Audio is rendered once per reply and voice (turn.meta.speech[voice]), shared across viewers using that voice, and billed to the caller like a generation.
  • Web: Click the speaker button under a reply to play segments in order as soon as the first finishes (one reply plays at a time).
  • CLI:
cohub -s <space> spaces sessions turns speak <sessionId> <turnId>
cohub -s <space> spaces sessions turns speak <sessionId> <turnId> --no-wait --json

Without --no-wait, the command waits for all segments and prints their audio URLs; it exits with status 1 unless every segment completes.

Archiving, labels, and access

  • Archive a Chat: Archiving attaches the Space system label session:archived (Archived) for every member of the Space and hides the Chat from default active lists. Sending any new message to an archived Chat automatically restores it. A running Chat must be stopped before it can be archived.
  • Labels and inspection: Attach labels via cohub prompt --label <ref>, rename a Chat, inspect settled-turn stats, stream live events, or configure per-Chat anonymous/override access.
cohub -s <space> spaces sessions ls
cohub -s <space> spaces sessions ls --archived
cohub -s <space> spaces sessions ls --all
cohub -s <space> spaces sessions archive <sessionId>
cohub -s <space> spaces sessions unarchive <sessionId>
cohub -s <space> spaces sessions rename <sessionId> "Release checklist"
cohub -s <space> spaces sessions stats <sessionId>
cohub -s <space> spaces sessions tail <sessionId>
cohub -s <space> spaces sessions access get <sessionId>

Keyboard shortcuts

Shortcuts defined in the in-app Help panel (?):

Scope Action Shortcut
Global Search everywhere ⌘K / Ctrl K
Global New chat ⌘O / Ctrl O
Global Focus my chats ⌘⇧U / Ctrl Shift U
Global Capture & mark ⌘⇧S / Ctrl Shift S
Global Toggle left sidebar Ctrl ⌥ ← / Ctrl Alt ←
Global Toggle right sidebar Ctrl ⌥ → / Ctrl Alt →
Global Open help ?
Session page Open model selector ⌘ Shift M / Ctrl Shift M
Session page Focus composer i
Session page Scroll down / up j / k
Session page Next / previous turn Shift J / Shift K
Session page Top / bottom g g / G
Model selector Next / previous model ↓ or Ctrl N / ↑ or Ctrl P
Model selector Select / close Enter / Esc
Composer Send / force send Enter / ⌘↵ or Ctrl ↵
Composer New line / blur Shift ↵ / Esc
Files Save file ⌘S / Ctrl S

Boundaries and common failures

  • Chat vs session terminology: Docs and the Web UI call a conversation thread a Chat; the CLI (cohub spaces sessions ..., cohub prompt --session <id>), SDK, and HTTP API (/api/sessions/:id) call the same resource a session.
  • Invalid .cohub/agent.json stalls queued follow-ups: Home Space .cohub/agent.json must be a regular file inside the workspace, at most 4,096 bytes, with valid version (1) and followupDelivery (together or one_by_one) and no unknown fields. An invalid file makes queue claim fail so follow-ups remain queued until the file is fixed and a new message is sent or a turn finishes.
  • Changed files only track Agent write/edit tools: This chat → Changed files and cohub spaces sessions files record only Agent write and edit tool calls targeting /workspace. Files written by shell commands or outside /workspace do not appear there; run cohub -s <space> spaces files diff to inspect all uncommitted workspace changes.
  • Cannot archive a running Chat: Archiving while a turn is active fails with HTTP 409 (session is running; stop it before archiving). Stop the turn first.
  • Speech errors: Calling speak fails with 404 speech_unavailable when no voice is configured at any level, 409 turn_not_speakable when the turn is not a completed agent reply or has no text left after stripping code/links/Markdown, and 503 speech_config_preparing while a Space is still preparing (it does not fall back to another level).
  • Always use cohub prompt: Send prompts with the top-level cohub prompt command rather than the hidden legacy subcommand.

Next steps

  • Spaces — manage Spaces, Home Space config, and Space Settings
  • Files & Sandbox — inspect workspace files, diffs, and Sandbox ports
  • Saves — checkpoint workspace milestones and fork Spaces
  • Local Runtime — bind a local folder and run local harnesses
  • Tasks & Scheduled prompts — inspect background runs and schedule recurring prompts
  • BYOK — add custom model providers or connect a ChatGPT (Codex) subscription
  • CLI — full cohub prompt and session command reference