# Channel command contracts

Source: https://usecns.dev/cortex-topic-channel-command-contracts/

[Start here](https://usecns.dev/manual-cortex/)
[CLI commands](https://usecns.dev/commands-cortex/)
[Configuration & integration](https://usecns.dev/cortex-topics/)

Slack, Linear and SMS translate an initial `$` to their legacy `!` command dispatcher; `!` spellings remain recognized. Prefer `$` controls to distinguish them from ordinary text. Focus controls shared by all three are `$focus` / `$tree`, `$focus <seat>` / `$seat <seat>`, `$up` / `$back` with optional `top`. They navigate/rebind the channel session, not the CLI's defaults. Other commands differ:

| Control | Slack | SMS | Linear |
| --- | --- | --- | --- |
| `$status`, `$abort` | Status card / abort | TwiML status / abort reply | Activity status / abort; `$stop` alias |
| `$model <provider/model>` | Conversation model | Requires slash form | Also accepts bare model (provider defaults openai) and optional `low`, `medium`, `high` |
| `$sys1 …` | Backend selection only | Exact catalog backend selects it; other nonempty text is classified for operator action | No arg or `classify <text>` classifies issue/text; backend plus optional `live`, `mock`, `reject` configures |
| `$fork …` | Optional numeric entry, rebind thread | Optional numeric entry, rebind phone; empty history reported | Optional title, forks latest and rebinds session; seeds a checkpoint if history is empty |
| `$steer <text>`, `$followup <text>` | Submit (empty becomes `Continue`) | Submit (requires text) | Not registered control commands; use ordinary issue/session prompts or explicit API |
| `$state <name or ID>` | Not registered | Not registered | Changes external issue state |

For example `$fork alternate approach` is a title in Linear but is not a valid numeric-entry request in Slack/SMS. Unknown Slack controls fall through as input; unknown Linear controls produce an explanatory response. Do not use unknown controls as a harmless capability probe. SMS command matching is case-sensitive; Slack/Linear command names are normalized to lowercase.

Slack live cards expose steer, queue-followup, fork-thread, abort and configuration-modal actions. Applying the modal changes model, thinking, System 1 backend and voice; opening it alone does not submit work. Slash-command payloads reuse the thread command handling (empty text becomes status). Linear sessions publish response/thought/action/error/elicitation activities, can update plans and external URLs, and bind delegated issues to durable conversations; provider authorization/allowlists still apply.

For daemon-hosted Linear OAuth, open GET `/webhooks/linear/oauth/install` (optional `client_id`, `redirect_uri`). This stores a pending PKCE verifier and redirects (302); its callback consumes `code` and `state`, exchanges credentials and persists connector credentials. Provider errors or unknown state return 400 text. The JSON `install-url` API instead returns a verifier for a client-managed exchange; it does not register the daemon's callback state. Do not mix those two workflows.

Callbacks are `/webhooks/slack/events`, `/webhooks/slack/interactions`; `/webhooks/linear` (`/linear/webhook` alias), GET OAuth install/callback under `/webhooks/linear/oauth/…` (`/linear/install`, `/linear/callback` aliases); `/webhooks/twilio/sms`, `/webhooks/twilio/voice`, and WebSocket `/webhooks/twilio/media-stream`. They consume provider event/form/signature contracts, not daemon operator JSON requests. Invalid signatures, stale/replayed events and disallowed senders can be rejected before routing. Twilio voice issues a single-use media stream token; never treat a known callback URL as permission to stream audio. Use provider-delivered, signed fixtures when validating an integration; do not handcraft unsigned production requests.