On this page
Sommatic Docs
Open portal

Launch modes

A launch mode says where and why an app was opened, from the launcher to a task or the Command Center. Apps declare the modes they support in the manifest and adapt their layout to the current one.

View as Markdown
Open in

The same app can open full page from the launcher, inside a panel of the Command Center or in front of a person who has a task to finish. Each situation calls for a different layout and a different interaction. The launch mode tells the app which one it is in.

The app lists the modes it supports in manifest.json:

JSON
{
  "supported_launch_modes": ["launcher", "fullscreen", "command-center", "embedded"]
}

At runtime, the current mode is sdk.session.launchMode.

The modes

ModeOpened fromInputOutputTypical use
launcherThe app tile in the launcher.OptionalOptionalGeneral apps, dashboards, tools.
fullscreenDirect navigation, or the launcher with the fullscreen flag. Full viewport, no chrome.OptionalOptionalData-heavy dashboards.
embeddedAnother view, inside a panel, a modal or a sidebar. Compact.Usually from the parentOptionalContextual widgets, detail panels.
command-centerA Command Center command or agent routing. Panel inside the Command Center.From the commandExpectedQuick actions, lookups.
taskA person opens an assigned task.The task payloadA decisionApprovals, reviews, data validation.
workflowA workflow step that needs a person.The node payloadThe node outputForms inside a workflow.
notificationAn action button of a notification.The notification contextOptionalAcknowledge, respond, escalate.
deep-linkA direct URL with route and parameters.URL parametersOptionalBookmarks, shared links.

Choose the modes

Appsupported_launch_modes
Workspace: dashboards, tools, admin surfaces["launcher", "fullscreen", "command-center", "embedded", "deep-link"]
Task and human in the loop: review, approval, decision["task", "workflow", "command-center", "embedded"]
Utility: quick actions, lookups["launcher", "command-center", "embedded"]

A new app starts with ["launcher", "fullscreen", "command-center"].

Adapt the layout

JSX
function AppLayout({ sdk, children }) {
  const launchMode = sdk?.session?.launchMode;
  const isCompact = ['embedded', 'command-center', 'task'].includes(launchMode);

  return (
    <div style={{ padding: isCompact ? '8px' : '16px' }}>
      {!isCompact && <Sidebar sdk={sdk} />}
      <main>{children}</main>
    </div>
  );
}

When an app opens another app

sdk.apps.open({ slug }) with mode: 'auto' keeps the current mode only when the origin is fullscreen. From a modal, an embedded panel or the Command Center, the host opens the destination in fullscreen, carries the input and keeps the origin in the browser history, so the back button returns to it. The destination must support fullscreen.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs