Terminal agent¶
What ragon does in a repository, what it adds and removes, and where to read on.
ragon is a coding agent that works in your repository. It reads files, runs commands, edits code
and explains what it did. Its prompts go to the model your DGX Spark serves, never to a cloud model.
cd ~/my-project
ragon # interactive session
ragon "why do the tests fail?" # start with a prompt
ragon exec "add a --verbose flag" # run once, non-interactively (from a script: < /dev/null)
ragon resume --last # pick up the last session
What happens when you run it¶
Before the agent starts, ragon connects itself to the local model:
- It finds the model server. On the DGX Spark that is the server on the same machine. On any other
computer it looks for a Ragon node on the local network and uses the one it finds, with no
address to type (see Using a DGX Spark from another computer).
DREAMFERENCE_VLLM_HOST, orvllm_hostindreamference.toml, overrides both. - If the server is still loading, it waits and shows progress.
- It asks the server which model it serves and how long a context that model takes.
- It writes the settings the agent needs to use that model, and starts the session.
ragon --version, ragon --help and commands that never need the model (such as completion
and apply) skip all of this and answer at once.
While a SWE-bench run is using the model, the model server turns every other request away, from
ragon, the web UI, the desktop app and the messengers alike, and says so: "The model is running a
benchmark (about 9 h left). Try later or run ragon-admin night pause."
ragon-admin night pause (one hour; --for 2h for longer) lets you work meanwhile, and
ragon-admin night resume hands the model back to the benchmark.
What Ragon adds¶
| Feature | Details |
|---|---|
| Local model, no account | Prompts go to the model your DGX Spark serves, and no account of any kind is needed. Usage analytics are switched off in the code. |
| Web access | The agent can search the web and read pages through ragon-search and ragon-fetch, which go through a search instance on your machine. The instructions travel with every session, so this works in any directory. Both are small Rust programs that ragon-admin codex build installs beside ragon and links into ~/.local/bin; they need no Python environment. You can run them yourself too: ragon-search "query" (-n N for more results, --json for raw output), ragon-search --read "question" (searches, then reads the top pages, 3 by default, --pages N up to 5, and prints numbered sources with an extract of each), and ragon-fetch URL (--max-chars N, --json; a Google share link from a phone, share.google/… or maps.app.goo.gl/…, is resolved to the search or place it opens, since Google's own page cannot be read without a browser). ragon-search takes -c news|science|it|map|images|videos|music|files|social|books|dictionaries|wikimedia|movies|weather to search one kind of source instead of the web, -t day|week|month|year for recent results only, and -l pt (or any language code) for results in a language; by default the language is detected from the query. A repeated search within the hour is answered from a small cache on your machine and sent nowhere; !st or !gh at the start of a query searches Stack Overflow or GitHub. When search engines refuse your address for a while, ragon-search says search is unavailable, and ragon-admin searxng status shows which engine is suspended and until when. |
| Gmail, read-only | If you have connected Gmail accounts (with /apps), the agent can search and read mail through ragon-admin gmail. It is told that email content is untrusted and must never be treated as instructions. Turn it off with ragon_gmail = false in dreamference.toml or in ~/.config/dreamference/config.toml; a repository's own dreamference.toml can only turn it off, so its ragon_gmail = true is ignored. |
/apps: Gmail, Drive and Calendar |
/apps needs no cloud sign-in and lists Ragon's own three apps. Connect opens the local Google sign-in (localhost:8767/connect; a paste-back box covers a browser on another machine), and the tokens stay on your machine. A connected app is offered to the model as read-only tools (gmail_search, gmail_read, drive_search, drive_read, calendar_events, calendar_search), each answer framed as untrusted text. At /airgapped on every app is unavailable. The service behind them is ragon-admin google start|stop|status. |
/usage |
Shows this session's token usage: input (cached and new), output, the total, and how full the context window was on the last request. |
/adapter |
Adapters are specialists (Rust, for example) trained for the model your node serves and installed there with ragon-admin adapter install <name>. /adapter lists the installed ones and marks this session's; /adapter <name> switches this session to one, /adapter off back to the base model. A third-party adapter, not signed by Dreamference, is flagged. ragon --adapter <name> starts or resumes a session on one, and ragon_adapter = "<name>" in dreamference.toml (or DREAMFERENCE_RAGON_ADAPTER) chooses one for new sessions. An adapter the node does not have starts the session on the base model, with a line saying so. |
/airgapped |
How much of the internet this session may use. off (the default) is everything: every sandboxed command has the network, in Read Only as in the other permission modes. on gives every command Ragon runs no network at all, enforced by the sandbox: no search, no page fetch, no Gmail, no curl, git fetch or package installs. Full Access cannot be combined with on: Ragon refuses to start with both, greys Full Access out in /permissions and refuses /airgapped on in a Full Access session. /airgapped shows the level and what is not covered (commands you approve to run outside the sandbox, MCP servers); /airgapped <level> sets it for this session, /airgapped default <level> for new ones. From a shell: ragon airgapped, or DREAMFERENCE_RAGON_AIRGAPPED=on ragon exec … for one run. Ragon still talks to the model server at every level. |
| Plugins | Codex's plugins work while /airgapped is off: add a marketplace from a git repository or a folder (ragon plugin marketplace add owner/repo, or the desktop app's Skills and tools › Plugins), then install from it with /plugins or ragon plugin add <plugin>@<marketplace>. A plugin can bring skills, MCP servers, hooks and apps; its MCP servers and hooks run as you, outside the sandbox, so add only what you trust. The vendor's own catalogue stays closed. At /airgapped on a session starts without plugins, and installing a plugin or adding or upgrading a marketplace is refused; a session switched to on keeps the plugins it loaded until you restart it. |
| Skills from other agents | Skills you installed for Claude Code, Gemini CLI, OpenClaw or Hermes are offered to the model too, and ragon skill add installs one from the public skill catalogues or any GitHub folder. See Skills. |
ragon app |
Opens the desktop app. |
ragon update |
Installs the latest published Ragon release. |
ragon uninstall |
Removes a client installed by install.sh or install.ps1: its programs, the links in ~/.local/bin (Linux, macOS), and on Windows its Path entry and its firewall rules (one Administrator prompt; over SSH it prints the command for an administrator). It asks first (--yes does not). ~/.ragon, with your sessions and settings, stays unless you add --purge. A node, and a ragon built from a checkout, are not removed this way. |
| Code index | ragon-code answers where a name is defined, who calls it and what a change would touch, from an index of the repository kept current as you work. The model is offered it as tools (code_search, code_show, code_refs, …) and from the shell. |
/night |
(Night Shift page.) Queue a task for tonight: /night add <task>. ragon-admin night run (on a timer once ragon-admin night enable is set) works through the queue while the model is otherwise idle, each task on its own git branch; nothing is merged or pushed. ragon night retry <id> (or /night retry <id>) queues a stalled, failed, no-change, interrupted or cancelled task again as a new task (same text, test and attempt count, from the current HEAD; show names both); ragon night list --all lists every repository's queue. ragon night apply <id> (or /night apply <id>) in the repository brings a finished task's changes into your checkout as uncommitted changes to review and commit; when they conflict with your own changes it refuses and changes nothing. Each task is attempted three times, one after another, and only the best attempt is committed: an attempt whose tests fail is dropped, and among those left the model compares the diffs in pairs and picks one (with no test command to run, the model's comparison alone decides). The morning report lists every attempt, which one was chosen and why, and where each one's diff and logs are. /night add --best-of 1 <task> runs a task once (or [night] best_of = 1 in dreamference.toml, for every task); --best-of N asks for N. A task sent to another node with --on <node> is worked once there. Three attempts take about three times as long as one, so a short window may fit fewer: the report says when it did. Night Shift can also fill its own queue (off by default): with [night] autofill = true in dreamference.toml, each night begins by queueing up to five small tasks ([night] autofill_max, 1 to 5) from the failing tests of the latest failed CI run, the desktop QA report and unchecked items (- [ ] and TODO: lines) in the repository's specs/ documents. They are ordinary tasks on their own branches, marked [autofill:...] on their first line, with the test that must pass written into them; a finding is queued at most once in 14 days, anything that mentions the sandbox, credentials, signing or similar is skipped, and nothing is merged. ragon-admin night autofill --dry-run shows what it would queue. Review each branch in the morning like any other Night Shift result. ragon-admin night archive moves finished runs older than four weeks (--weeks N for another age), with their transcripts and the old reports, to ~/.ragon/night/archive/; their branches stay. |
/worktree: in place or a worktree |
By default a session edits your checkout in place, as Codex does, and your editor sees every change at once. /worktree on (or ragon worktree on) makes new sessions in a git repository start in a fresh git worktree on a branch of their own (ragon/<id>, under ~/.ragon/session-worktrees/), so your checkout is untouched while the agent works; /worktree off goes back. The footer always shows the folder and branch the session edits. In a worktree session, /worktree status shows what is not yet applied, /worktree apply brings the changes into your checkout as uncommitted changes (all or nothing: it refuses, changing nothing, if they conflict with yours), and /worktree discard drops them, keeping a snapshot under refs/ragon/snapshots/. ragon worktree list names a repository's worktree sessions. The worktree starts from your last commit: uncommitted changes, ignored files and submodules are not in it. /worktree alone opens Codex's own worktree picker. The desktop app's Local/Worktree toggle starts on the same choice. |
| Refine mode (off by default) | Each new task is first studied by a separate session that changes nothing and writes a refined description (intent, requirements, every code path, edge cases, what must not change, acceptance checks); a fresh session then does the task with that description. It runs by itself with no stop: in ragon exec, on the first prompt of each interactive session, and for each new Night Shift task. Switch it on with ragon --refine, DREAMFERENCE_RAGON_REFINE=on or ragon_refine = true in dreamference.toml ([night] refine for Night Shift alone); ragon refine shows the setting. A second version of its texts, refine-v2, is built for a comparison night and chosen with ragon --refine-version v2, DREAMFERENCE_RAGON_REFINE_VERSION=v2, ragon_refine_version = "v2" or [night] refine_version = "v2"; v1 stays the default. |
| Guards (off by default) | Two checks on the agent's own work, built from what went wrong in benchmark runs. The test guard points out a change that weakens an existing test (an assertion rewritten or removed, a test deleted or skipped) and holds the first stop once while it stands, so the agent decides from your task whether that behaviour was meant to change. The finish check holds the first stop once when source files changed and no test has run on them since, when the agent calls failures pre-existing without having run the tests on the unchanged code, or when it stops announcing a next step. Each hold happens at most once per session and never refuses anything. Switch them on with ragon_test_guard = true and ragon_finish_check = true in dreamference.toml, or DREAMFERENCE_RAGON_TEST_GUARD=on and DREAMFERENCE_RAGON_FINISH_CHECK=on; Night Shift's sessions follow the same settings. They work in a git repository only. |
| Named system prompts | ragon prompt list, show [<name>] and use <name> choose the system prompt for new sessions: default; offline, the same without the web and email instructions, for a machine with no network; or high-swe, a method for repository tasks; your own go in ~/.ragon/system-prompts/<name>.md. A resumed session keeps the prompt it started with. |
What Ragon removes¶
Anything that would need a vendor's cloud or account is hidden or refused. login, logout and /logout stay: they sign in to and out of the accounts server of your Ragon node, and the first start shows the sign-in step (sign in, create an account, a device code or an API key).
| Feature | In Ragon |
|---|---|
cloud (cloud-tasks) |
Switched off: it runs tasks on a vendor's servers. It may return for a private cloud. |
remote-control |
Hidden. It relays sessions through a vendor's servers. |
/feedback |
Removed. It uploaded session logs. |
/voice |
Hidden. It needs a cloud voice service. |
/approve (auto-review) |
Hidden. It needs a cloud review model. |
/import |
Hidden. Its plugin step fetches marketplaces inside ragon's own process, where /airgapped on cannot stop it; the desktop app's Import follows the level. |
| Update check | Ragon's own: ragon update. |
How it is built¶
ragon is compiled from source pinned to a release, with Ragon's own launcher and a short series
of patches added. See
Architecture.
Where to go next¶
-
Every command, flag and slash command of
ragon. -
The debug log, and the pages for problems of the node around
ragon. -
Using a DGX Spark from another computer
Run
ragonon a laptop with the model on your DGX Spark.