Agent Mode
Agent mode keeps RightNow running as a server for clients that use the Agent Client Protocol (ACP). Use it to connect an editor or application through JSON-RPC.
1. Start the stdio transport
rightnow agent stdioThe stdio transport reads JSON-RPC from standard input and writes it to standard output. The client exchanges protocol messages rather than terminal prompts.
2. Set agent options
Put agent options after agent and before the transport name; put server options such as --bind after serve.
| Option | What it does |
|---|---|
| -m, --model <MODEL> | Select a configured model-entry ID. |
| --reasoning-effort, --effort <EFFORT> | Set reasoning effort for a reasoning model. |
| --reauth | Accepted by the parser, but currently has no effect. |
| --agent-profile <PATH> | Load an agent profile file. |
| --leader / --no-leader | Use the warm agent service, or force a new local agent. |
A requested sandbox profile other than off prevents leader mode so tools remain in the confined process.
Always-approve automatically approves offered tool executions; deny rules and hooks still apply.
rightnow agent --always-approve stdioWebSocket server alternative
rightnow agent serve --bind 127.0.0.1:2419The default bind address is 127.0.0.1:2419.
Set --secret or RIGHTNOW_AGENT_SECRET to use your own token; otherwise the agent generates one.
Startup writes the address, secret, and WebSocket URL to standard error.
Clients connect to the /ws endpoint and provide the token in an Authorization: Bearer header or the server-key query parameter. Invalid or missing authentication is rejected.
3. Exchange protocol messages
- Send initialize with the client capabilities.
- Send session/new with the working directory.
- Send session/prompt with the user message.
- Read session/update notifications and handle permission requests when the selected mode requires them.
Updates identify response text, reasoning, tool calls, tool results, and plans through their sessionUpdate field.
Recovery and related guides
For startup or terminal problems, begin with diagnostics and the troubleshooting guide.
rightnow doctorRelated guides: Troubleshooting, Providers, Permissions and Safety, and Headless Mode.
