Starting a session
Runrbs agent from anywhere inside a workspace:
--mode that allows them.
On startup the agent loads the workspace — WORKSPACE.rbs and every BUILD.rbs — so its graph tools answer from your real target graph, and connects any MCP servers declared in the workspace.
Providers and API keys
The native engine discovers model providers from your environment:Keys come from the environment on purpose — workspace files are committed, and an API key in a committed file is a leaked key. When the hosted service is configured, it also acts as a fallback for models no local provider serves.
Choosing a model
Pass--model with a model ID, a short alias, or a provider/model reference:
/models lists every model your configured providers can serve. Useful aliases include opus, sonnet, fable, haiku, fast, gpt5, gemini, and grok.
For models with controllable reasoning, --effort low|medium|high|max sets how hard the model thinks per step.
Permission modes
The agent asks before doing anything destructive. The session’s mode sets its default posture toward mutating tools:y/n. You can allow a tool “for the rest of the session” so you are not asked repeatedly — that consent does not carry over if you later switch to a more permissive mode. Switch modes mid-session with /mode:
Flags
The global
rbs flags also apply — notably -e/--env to select the workspace environment and --workspace-root to point at a workspace explicitly.
Slash commands
In the plain REPL:--tui interface supports those plus /clear, /model, /tools, /skills, /skill <name>, /status, /session, /save, and /history. Every loadable skill is also offered as its own slash command — typing /verification, for example, asks the agent to load and apply that skill.
Isolating edits with a worktree
On a branch node several people (and several agents) can share one checkout. To keep an agent’s edits out of the shared tree, give the session its own git worktree:Saving and reviewing sessions
In the TUI,/save writes the current chat to the committed .reasonos/ai/chats/ tree and /history lists recent saved chats. Because chats are committed, they travel with the branch — a teammate pulling the branch can read what the agent did and why.
The CLI does not resume a saved chat into a live session — each
rbs agent run starts fresh (with the branch’s lessons and taste memory already loaded). Editor sessions on the branch node persist across reconnects.Delegation and background agents
The agent can fan work out rather than doing everything in one context:delegate/delegate_parallel— hand scoped tasks to subagents and wait for their conclusions. Good for large searches and self-contained investigations.- Background agents —
start_agentlaunches a named agent that keeps working while the conversation continues;/agentslists them, and the session can read from, message, or stop them.
native.define_subagent(...) in any loaded .rbs module, then request them by name when delegating.
Headless agent tasks in the build graph
ai_task targets make agent-driven work a first-class part of the graph. Declared with kind = "test" (the default) they are discoverable by rbs test; they can start services first, connect MCP servers, and run the agent through an ordered list of steps in auto mode.
The most common form is a browser QA test, using the bundled ai_qa_test wrapper — it wires up a Chrome DevTools MCP server so the agent can drive a real browser:
ai_task rule, which you can use directly for non-browser tasks: