Skip to content

Cortex Workspaces

Everything in Cortex is organized around a workspace — a project folder that holds your agents, connections, environments, and UI state. Workspaces are designed to live in git so a whole team shares the same control-plane setup.

A workspace is a folder containing a .cortex/ directory with two files:

FileCommitted?Holds
.cortex/workspace.jsonYesConnections, environments, UI state
.cortex/local.jsonNo (auto-gitignored)Secrets and API keys
my-project/
├── .cortex/
│ ├── workspace.json # committed: connections, environments, UI state
│ └── local.json # gitignored: API keys, secrets
└── agents/
└── my-agent.yaml

Cortex has two shells you toggle with Ctrl+M:

  • Runtime mode — Local development against the Local Runtime (or a saved remote connection).
  • Nexus mode — Cloud operations against the Nexus Kubernetes control plane, with Cluster, Workloads, Observability, and Catalog views.

You author agents two ways, kept in bidirectional sync:

  • Agent YAML editor — Monaco Editor with schema validation and autocomplete against the Astromesh agent schema (via monaco-yaml).
  • Visual agent builder — An @xyflow drag-and-drop canvas. Inspectors let you configure model, tools, memory, guardrails, permissions, and orchestration without leaving the canvas.
  • Agent Console / playground — An interactive chat to test running agents directly.
  • Trace timeline — Hierarchical spans showing per-step latency, inputs, and outputs.
  • Terminal — An embedded xterm.js terminal.
  • Activity log — A running record of what Cortex and the runtime are doing.

Cortex helps you wire agents up to messaging channels:

  • WhatsApp setup wizard — A 4-step flow integrating with the Meta Graph API: create the app → configure tokens → auto-register the webhook → send a test message.
  • Channel Activity panel — A live SSE stream of channel events across all your agents.
  • Telegram — Coming soon.

To receive webhooks during local development, Cortex manages an ngrok or cloudflared tunnel for you: it auto-downloads the binaries, starts and stops the tunnel, and exposes a public URL. In the WhatsApp wizard, the webhook URL switches between the tunnel (DEV) and the runtime (PRODUCTION) target.

Each workspace can define named environments with key/value variables — edit inline and clone an environment to spin up a variant.

  • The active environment’s variables are injected into the local runtime process when it starts.
  • Environments are also selectable when provisioning Cloud Run via Orbit.
ShortcutAction
Ctrl+SSave
Ctrl+BToggle sidebar
Ctrl+JToggle bottom panel
Ctrl+MToggle Runtime / Nexus mode
Ctrl+Shift+PCommand palette

Cortex also supports tabs, resizable panels, and the deploy split-button with per-tab target persistence.

  • Quick Start — Install Cortex and ship your first agent
  • Runtimes — Local, GCP (Orbit), and Nexus targets in depth
  • Introduction — How Cortex fits in the Astromesh ecosystem