Overview
The assistant runs as a Dome agent in the workspace.- Enable the assistant on the workspace. Dome registers a
cedar-assistantagent and provisions its key. - Open the Rules editor. The chat thread lives in the right rail and shares context with the editor, including open files, agents, tools, and models.
- Send a prompt. Dome calls the model through the Dome Model Broker, validates each draft, and surfaces it as a draft you can apply.
- Apply or discard. Applied drafts land in the editor with changed lines highlighted. Deploy through the normal Apply Rules flow.
Editor scope
The assistant grounds every draft to the bundle you have open.
Switch scope by opening the agent’s Rules tab in the editor. The chat picks up the new scope on the next message.
Limits
The assistant enforces these limits.- Per-workspace rate limit on chat messages and draft requests. Bursts beyond the limit surface as a
rate_limitederror in the chat. - No tool-call replay across turns. The assistant sees current workspace state (open files, agents, tools, models) on every turn but not its own prior tool calls.
- Limited chat markdown. Bold, inline code, and
cedar-fenced code blocks render in chat.
Requirements
Before you begin, authenticate to Dome and select a workspace.Permissions
Assistant settings, chat, and draft apply use platform permissions. The same permissions apply across the dashboard, CLI, and MCP. Each operation restates its permission inline.Enable the assistant
Enable the Rules assistant for the workspace from Settings → Assistant. Enabling provisions thecedar-assistant agent and key. The assistant then becomes available in the Rules editor for every user with rules.deploy.
Requires
config.manage.Disable the assistant
Disable the assistant from Settings → Assistant when you want to suspend the integration without deleting state. Re-enable to resume with the same threads and history.Requires
config.manage.Purge the assistant
Purge the assistant from Settings → Assistant when you need to remove it completely. Purge deletes the agent, key, threads, and messages for this workspace. Use purge before re-onboarding a workspace from scratch.Requires
config.manage.Configure context
Configure which workspace context each message ships to the model. Toggle individual categories off to keep that data out of every prompt.Requires
config.manage.Govern assistant traffic
Govern the assistant the way you govern any other agent. Every request carries the metadata keycedar_asst=true, so workspace-scope Rules can target it without enumerating per-workspace agent IDs.
restrict-rules-assistant.cedar
Chat behavior
The chat surfaces draft work and diagnostics while you work.- Streaming responses. Text streams token-by-token. If no tokens arrive for 60 seconds, the chat surfaces a “Stream stalled” error.
- Tool chips. Each Rule validation and draft proposal appears as a chip with a spinner while it runs. Click a chip to inspect inputs and results.
- Stop. Cancels the in-flight response and clears any running chips.
- Validation diagnostics. Failures auto-expand with
file:lineand a message. After three consecutive validation failures the assistant pauses and asks for a draft instead. Empty messages return a prompt to type something first. - Drafts. Render inline in the chat. Apply moves the files into the editor with changed lines highlighted. The highlight clears on a successful deploy.
- Thread titles. The assistant sets a title on the first turn.
Next steps
- Write and apply Rules through the normal Rule lifecycle
- Simulate Rules before changing production behavior
- Authorization model concept for entity attributes a draft may reference