Skip to main content

The Terminal App

Run sagex with no arguments to open the full-screen terminal app. It's the same SageCode, made for working interactively.

sagex

The SageCode terminal app: workflows, scripts, vault items, recent runs, triggers and the Sage Today block on the left; a live workflow run drawn as a graph and a reply from Sage on the right

Layout​

  • Left: your resources. Workflows, Scripts, Vault, your most recent Runs (with ✓ / ✗ / ⟳ status) and Triggers (● on / ○ off), loaded from your AutoSage account. At the bottom, the Sage Today block shows today's Sage requests and tokens, the model in use and the free requests left.
  • Right: a terminal-style transcript. Start a line with ! to run any command, such as !sagex run workflow Deploy or !git status. Output streams in live, and workflow runs draw a live node graph as they go. Type a line without ! to ask Sage.

Keys​

KeyWhat it does
! + commandRun a command (any shell command, or a sagex command)
A line without !Ask Sage
/ + command/permissions, /sessions, /new, /model, /usage (see Sage)
EscStop the running command, or Sage's reply
↑ / ↓Recall earlier commands
F3Switch the left panel between your server resources and your local workspace folder, where you can also change the workspace path
F2Switch the shell your commands run in: PowerShell, cmd and WSL on Windows; bash and sh elsewhere
F5Refresh the resources
Ctrl+QQuit

Good to know​

  • Not signed in? The status line says so, and the left panel shows your local workspace. Run !sagex auth login (or quit and run sagex auth login).
  • Full-screen programs such as vim, top or less need a real terminal, so the transcript doesn't run them. Use a normal terminal window for those.
  • Each terminal-app session counts as one command in your session's activity.
Ask Sage

Type a line without ! and Sage, the AutoSage assistant, answers. It looks things up for you and, with your approval, runs sagex commands, edits files in your workspace and runs shell commands. Your last command's output comes along as context, so "why did that fail?" just works. See Sage, Your Assistant.