What are rules?
A rule is a set of instructions stored as a file:- Name: Identifier used to reference the rule
- Description: What the rule does (optional)
- Body: The actual instructions (up to 20,000 characters)
- Type: When the rule applies
Rule types
Always rules
Applied automatically to every conversation:- Loaded at the start of each generation
- Combined with other always rules
- No action needed to activate
- Coding style preferences (“Always use type hints”)
- Domain conventions (“Use SI units for all measurements”)
- Safety guidelines (“Never delete files without confirmation”)
Manual rules
Invoked explicitly when needed:- Not automatically loaded
- Activated with
@rule:rule-namein chat - Useful for context-specific guidance
- Workspace-specific conventions
- Specialized workflows
- Instructions that only apply sometimes
Pipelines
Pipelines use saved instructions to produce an artifact in a workspace. In Customize agent → Pipelines, select a pipeline and click Run now to start a new run. This works in local workspaces and Qualia Cloud. Each run opens its own chat and stores its artifact separately. In a shared workspace, pipeline definitions and schedules belong to the person who creates them. Other collaborators can see the resulting workspace files and run chats, but manage their own pipeline definitions and schedules. Pipelines with the same name created by different people have separate run histories. You can also ask in chat: “Make a pipeline that downloads Hacker News data and visualizes current trends.” The agent investigates the sources and establishes the requirements first, asking you about missing decisions when needed. It then saves reusable instructions and continues in the same chat as run 1, keeping the context from your conversation. The first run builds its report, dashboard, or presentation in its own output directory. Existing exploratory files stay where they are. Later runs follow the saved instructions, write separate outputs, and can read previous results to explain what changed.Scheduled runs
On Qualia Cloud workspaces, pipelines can also run on a recurring schedule. Open the pipeline in Customize agent → Pipelines, click the pencil (Edit pipeline), and use the Schedule section:- Frequency — every N minutes, hourly, daily, weekly (choose the weekdays), or monthly (choose the day of month), at a time of day.
- Timezone — schedules are evaluated on their own wall clock, so “9 AM in New York” stays 9 AM across daylight-saving changes.
- Ends — never, on a date, or after a set number of runs. A schedule that reaches its end turns itself off; skipped occurrences don’t count against a run limit.
- A plain-English summary and the next few run times appear as you edit, so you can confirm the schedule before saving. Picking the Custom cron frequency lets you write the cron expression directly.
Rule scope
Every rule is either global or scoped to the current workspace:- Global rules apply in every workspace.
- Workspace rules apply only in the current workspace.
File path rules
Besides free-form rules, you can add a file path rule (click New file path in the Rules tab). It points the agent at a folder of code on disk: when the rule applies, the agent assumes imports in your notebooks resolve from that path. File path rules are always active, and like other rules they can be global or scoped to a workspace. A global file path applies in every workspace, so use one for shared code — and make sure the path exists on the machine running the backend.Creating rules
- Open Customize agent and select Rules
- Click Create Rule
- Enter:
- Name: Lowercase with hyphens (e.g.,
python-style) - Description: Brief explanation
- Body: The instructions
- Type: Always or Manual
- Name: Lowercase with hyphens (e.g.,
Using manual rules
Invoke a manual rule by typing@rule: followed by the rule name in your chat message:
“@rule:data-analysis Analyze this dataset and find anomalies”The rule’s instructions are included in that message’s context.
Workspace rules
Qualia also recognizes rules files in your workspace root:- CLAUDE.md: Instructions in Claude’s standard format
- AGENTS.md: Agent-specific guidance
Importing rules
Import rules from other tools. These options read directories on the machine your workspace runs on, so they appear for local workspaces only:From Cursor
- Open Customize agent and select Rules
- Click Import from Cursor
- Rules from
~/.cursor/rules/are imported
.mdc files) include frontmatter with globs for file-specific matching. Imported rules preserve this metadata.
From Claude Code
- Click Import from Claude Code
- Rules from
~/.claude/rules/are imported
Re-importing
Importing is a copy, so a rule you already imported is left alone the next time you import from the same source. If the source has changed since, Qualia lists the rules it would replace and asks before touching them: Keep mine leaves your copies as they are, and Update from Cursor / Update from Claude Code replaces each listed copy with the current source version, discarding any edits you made to it in Qualia. Rules that are new to Qualia are imported either way. Workspace-scoped rules and rules named after a built-in are skipped during re-import.From a file
- Click Import from file…
- Enter the full path to a file (such as a
CLAUDE.md) on the machine running the backend - Its contents become a new always rule
CLAUDE.md that lives outside the standard ~/.cursor/rules or ~/.claude/rules locations. Importing from a file always creates a new rule: if the name is already taken it is skipped rather than replaced, so rename the existing rule first if you want the file’s contents to win.
Rule organization
For complex workspaces, consider:- One always rule for global preferences
- Manual rules for different contexts (data analysis, model training, visualization)
- Workspace rules (CLAUDE.md) for workspace-specific conventions
Rules stack — an always rule plus a manual rule plus workspace rules all apply together when invoked.
Viewing rule files
On local workspaces, click Open Rules folder to open the rules directory in your file manager. Each rule is stored in its own folder with aRULE.md file.
You can edit rules directly on disk if you prefer — changes are picked up automatically. (Cloud workspaces store rules with your account, so there is no folder to reveal; edit rules from the Rules tab instead.)

