Sage, your assistant
Sage is the AutoSage assistant built into the terminal app. Type a question without ! and Sage answers. It can look things up by itself and, with your approval, make changes for you: run sagex commands, write and edit files in your workspace, and run shell commands.
❯ why did my last deploy fail?
❯ create a script that checks disk usage on Linux and push it
❯ run "Nightly Backup" and tell me if anything fails
Sage needs you to be signed in (sagex auth login).
Asking
- Type a line without
!. The reply streams into the transcript as Markdown.Escstops it. - Ask about what you just ran. Your next question carries the output of the command you just ran, so "why did that fail?" just works. Sage gets the end of the output, with obvious secrets masked, and never for
--revealor environment dumps. - Sage remembers the conversation until you start a new one with
/new.
What Sage can do
Every time Sage uses a tool, a card appears in the transcript with the tool, the exact command, and its output. Click a finished card to expand it.
| Sage can… | How it asks |
|---|---|
Look things up: list, show, render, trigger invoke, syntax, workspace show, and any command's --help | Runs them without asking (they don't change anything) |
Change things: run, create, update, rename, delete, push, copy, trigger fire / enable / disable | An approval card first |
| Read, write, edit and delete files in your workspace | An approval card first; writes show the new file or a diff |
| Run shell commands on your machine (check a version, install a tool) | An approval card first, in your current shell |
"Create a script that…" ends with the script written to scripts/ in your workspace and pushed to AutoSage. A workflow run that Sage starts draws its live graph inside the card.
Approval cards
An approval card shows a one-line description of what Sage wants to do and the exact command or file change. Answer with:
| Key | What it does |
|---|---|
y | Run it, this once |
a | Allow it for the rest of this app session (that command on that resource, that file, or that exact shell command) |
n | Don't run it. Sage is told you declined |
Esc | Withdraw the card and stop Sage's reply |
- Deletes always ask, and can't be allowed for the session. So do shell commands that delete things, need admin rights, or download and run code. Those carry a warning.
- An unanswered card declines itself after 10 minutes.
/permissionslists everything you've allowed./permissions revoke <n>takes one back,/permissions revoke alltakes back everything. The line under the prompt shows how many are allowed. Allowances last until you quit.
Files and the shell
- Sage works only in your workspace: its files, its sagex commands and its shell commands. Paths it gives sagex can't leave the workspace.
- Secret files are refused outright, before you're even asked:
.envfiles, keys and certificates, credential stores,.git,.sshand similar. - Shell commands run in the shell you've chosen (
F2), with no way to type into prompts. Sage can't see your SageCode key or print environment variables.
What Sage never does
- Sign in, take a secret, or show one.
auth, creating or changing vault keys, adding or changing model keys, trigger secrets and--revealare never available to Sage. - Type a secret for you. If a run needs a secret typed at a hidden prompt, Sage hands the command back to you to run yourself with
!.