Skip to content

Meet Sage [v2.0.0]

Choose a tag to compare

@Lagnajit09 Lagnajit09 released this 22 Nov 10:02
· 3 commits to main since this release

[2.0.0] - 2026-11-22

Meet Sage, your Autosage assistant in the terminal app. Type a question without ! and Sage answers, looks things up, and with your approval changes things for you: it runs sagex commands, writes and edits files in your workspace and runs shell commands. Conversations are saved, you can bring your own model, and you can see what you've used.

Added

Sage

  • Type a question (no !) and the reply streams into the transcript as Markdown. Esc stops it. Your next question carries the output of the command you just ran (the end of it, with obvious secrets masked; never for --reveal or environment dumps), so "why did that fail?" just works.
  • Sage looks things up by itself: it runs read-only sagex commands (list, show, render, trigger invoke, syntax, workspace show) and reads any command's help. Every call shows in the transcript as a card with the exact command and its output; click a finished card to expand it.
  • Sage makes changes only with your say-so. Runs, creates, updates, renames, deletes, pushes and copies each appear as an approval card with a one-line description and the exact command: y runs it once, a allows that command on that resource for the rest of the session, n declines. Deletes always ask and carry a warning. A workflow run draws its live graph inside the card.
  • /permissions lists what you've allowed and /permissions revoke <n> (or revoke all) takes it back. The line under the prompt shows how many are allowed.
  • Files in your workspace: Sage reads them, writes them (showing the new file, or a diff, before you approve), edits just the lines that need changing, and deletes them (always asks). Never outside the workspace, and never files that usually hold secrets (.env, keys, certificates, .git, .ssh…). "Create a script that…" ends with the script written and pushed.
  • Shell commands on your machine (check a version, install a tool), in your current shell, each one approved. Sage can't type into prompts, see your SageCode key or print environment variables; commands that delete things, need admin rights or download-and-run code always ask, with a warning.
  • Sage plans before acting: it says up front when something isn't possible with its tools, knows your OS, shell and workspace, and stops with a short summary if it reaches its step limit for one request.
  • Works with models that don't support tool calling: calls a model writes out as text (in any of the common formats) run like normal ones, behind the same approval cards, and never show up in the reply, and neither do a model's private reasoning (<think>…) or stray template tokens.

Conversations

  • Conversations with Sage are saved. /sessions lists your recent ones (when, device, workspace folder), /sessions <n> reopens one with Sage remembering it, /sessions delete <n> deletes one and /new starts fresh. A dropped connection picks the same conversation back up. Your latest 100 are kept. Long tool output and file contents are trimmed before saving, so your files' contents aren't stored.
  • Long conversations stay fast and sharp: older tool output is shortened in what Sage remembers (it re-reads a file when it needs the exact text), and when a conversation grows long Sage summarizes its older part and carries on from the summary.

Your own model

  • sagex create model "<name>" --provider <provider> --model <model id> adds a model with your own provider API key: Gemini, Groq, OpenRouter, Anthropic, OpenAI, Azure OpenAI, NVIDIA NIM or any LiteLLM-compatible endpoint. The key is typed at a hidden prompt or read from --key-file, never a flag; it's stored encrypted on Autosage and never shown again.
  • sagex use model <name> (or --free) picks what Sage answers with; list, show, update (--new-key replaces the key), rename and delete model manage them. These are the same models as Autobot's Customize panel on the web, and the choice applies to both.
  • In the terminal app, /model lists them with the one in use marked, and /model <number or name> (or /model free) switches. Sage can list your models and, with your approval, switch them, but never add one or change a key.

Usage

  • A "Sage Today" block at the bottom of the left panel shows today's requests and tokens, the model in use and how many free requests are left, updated as Sage replies. It also says when your own model failed and Sage fell back to the free models.

  • /usage adds the last 7 days and all time, requests per day, the models and devices you used, and a link to the Agent Dashboard on the web, which now has a SageCode tab. The free daily allowance is shared with Autobot on the web.

  • SAGEX_AI_URL points sagex at an Autobot running on its own port (defaults to <api url>/api/ai).

Changed

  • The workspace is the one place for local resources. Every relative path a command takes (push, render --file, new --output) is relative to the workspace, never the folder you're in. The terminal app opens in the workspace and moves there when you change it (F3). Sage works only there. (Files for --secret-file are still read from wherever you point.)
  • A blank line under the prompt, so it doesn't sit against the footer.

Security

  • Sage's replies can't control your terminal: escape sequences (colours, cursor moves, hidden hyperlinks, window titles) and text-direction tricks are removed before anything is shown, in replies and on tool cards.
  • Only web (http, https) and mailto links in Sage's replies are clickable. Anything else (a program on your disk, a Windows settings page, a local file) is shown as plain text, and a link whose text names one website but points to another shows where it really goes.
  • Commands that sign in, take a secret or print one (auth, vault keys, model keys, trigger secrets, --reveal) are never available to Sage; a run that needs a secret typed at a hidden prompt is handed back to you to run with !.

Fixed

  • push script <name> could upload the wrong file: a same-named file in the current folder (such as a leftover sagex new script template) won over the one in <workspace>/scripts/. Push now looks only in the workspace, lists both files if <workspace>/x and <workspace>/scripts/x differ, and always prints which file it used.
  • "No value for 'NAME'" now says it's the script's {{NAME}} input with no default.
  • Saving a setting (your shell, your workspace) also saved the Autosage server address, which then overrode the address in every later install. Only settings you changed are saved now, and auth login and auth status say which server you're using whenever it isn't the built-in one.

Sage uses your selected personal model when you've set one; otherwise it uses Autosage's free models and the daily free allowance shared with Autobot on the web.