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
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 Deployor!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
| Key | What it does |
|---|---|
! + command | Run a command (any shell command, or a sagex command) |
A line without ! | Ask Sage |
/ + command | /permissions, /sessions, /new, /model, /usage (see Sage) |
Esc | Stop the running command, or Sage's reply |
↑ / ↓ | Recall earlier commands |
F3 | Switch the left panel between your server resources and your local workspace folder, where you can also change the workspace path |
F2 | Switch the shell your commands run in: PowerShell, cmd and WSL on Windows; bash and sh elsewhere |
F5 | Refresh the resources |
Ctrl+Q | Quit |
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 runsagex auth login). - Full-screen programs such as
vim,toporlessneed 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.