Rules in DeepAgent Desktop help you guide your AI desktop agent with specific instructions - from automation preferences to workflow decisions, desktop interaction patterns, and even how the assistant communicates with you. Think of them as reusable, always-on instructions that act like a persistent memory for your assistant - ensuring consistency in your workflows, across applications and sessions.
Large language models don't retain memory between tasks. Rules solve this by injecting persistent context into your AI prompts — helping the assistant respond consistently across your desktop applications and projects.
Whenever a Rule applies, its contents are included automatically at the start of the model's context.
Rules apply in:
They are scoped using two settings:
*.py
, code_editors/*
, browsers/*
)You may find the different rules here in this Rule directory and add them to the list - https://rules.abacusai.app/
Help DeepAgent Desktop understand your desktop environment and application-specific workflows.
description: "Desktop environment and application preferences"
globs: ["*"]
ruleType: always
---
- My primary code editor is VS Code with Python extension
- I use Chrome as my default browser for development
- My project files are organized in ~/Projects/ directory
- I prefer using terminal commands over GUI interactions when possible
- Always use dark theme for any new applications or configurations
📌 Tip: Add to .deepagent-desktop/rules to apply across all desktop interactions.
Define reusable templates for common desktop automation tasks.
description: "Development workflow automation"
globs: ["*.py", "*.js", "*.ts"]
ruleType: auto-attached
---
Use this workflow for new development tasks:
1. Open VS Code in the project directory
2. Create or navigate to the relevant file
3. Run any necessary setup commands (npm install, pip install, etc.)
4. Start the development server if applicable
5. Open browser to localhost if needed
- Always check for existing virtual environments before creating new ones
- Use consistent naming conventions for branches and commits
- Automatically format code before saving
Enforce how desktop automation should be structured across different applications.
description: "Desktop automation guidelines"
globs: ["browsers/*", "editors/*"]
ruleType: always
---
- Use keyboard shortcuts over mouse clicks when possible
- Implement error handling for all automation tasks
- Add delays between actions to ensure reliability
- Use application-specific APIs when available
- Always verify success before proceeding to next step
- Take screenshots for debugging failed automation
Control how the assistant talks in desktop automation context — great for technical teams or specific workflows.
description: "Technical desktop automation tone"
globs: ["*"]
ruleType: always
---
- Use technical terminology appropriate for desktop automation
- Provide detailed step-by-step instructions for complex workflows
- Include error handling and troubleshooting steps
- Use concise, action-oriented language
- Always explain the purpose of each automation step
Adapt the response style to your desktop automation proficiency and workflow preferences. Really helpful for non-technical users and beginners for setting up desktop automation in a manner that you can understand.
description: "Beginner-friendly desktop automation"
globs: ["*"]
ruleType: always
---
- Adjust responses to match the proficiency of a desktop automation beginner
- When suggesting automation tasks, always include:
- Why the automation is useful
- What applications will be involved
- Expected outcomes and potential issues
- If the task involves complex desktop interactions, provide:
- Clear step-by-step instructions with screenshots
- Alternative methods if the primary approach fails
- How to verify the automation worked correctly
- Use simple language and avoid technical jargon
- Always include safety measures to prevent data loss
Open DeepAgent Desktop
Navigate to DeepAgent Desktop's Settings in the top right corner on the sidebar by clicking the gear.
Click on 'Create Rule"
Add the Rule File name in the Top bar
This adds a .deepagent-desktop/rules/
folder to your project with the given file name
Fill out the following details:
📌 Tip: You can also copy-paste existing rule files between projects!
✅ Good Practice | ❌ Avoid This |
---|---|
Be specific about desktop applications and workflows | Vague guidance like "automate everything" |
Keep rules modular and application-specific | One giant rule covering all desktop interactions |
Add concrete examples with actual applications | Generic instructions without desktop context |
Use globs smartly for different application types | Overusing * everywhere |
Test your rules on sample desktop workflows | Assuming automation works without trying |
Yes, absolutely! Just make sure they don't conflict with each other and are specific to their intended applications.
Yes, just mention it in your prompt with @file
to attach it manually.
For further assistance, please contact our support team: support@abacus.ai.