How To: Set Coding Preferences with Rules
Learn how to use Warp’s Rules feature to define your personal environment and tool preferences for every coding session.
This tutorial teaches you how to customize your development setup using Warp’s Rules — ensuring the AI agent always works in your preferred environment. Instead of constantly reminding it which package manager or environment to use, you can store those preferences as persistent Rules that apply automatically across projects.
The Problem
When using AI tools to write or modify code, they often default to outdated or undesired tools. For example, many agents still use npm instead of pnpm — or pip instead of miniconda.
Warp fixes this by letting you define your preferences once, and then applying them automatically whenever your agent runs commands.
The Rule Setup
You can set Rules for how you want the AI to handle environments, dependencies, and commands.
Example Rule
Rule: Environment Preferences
- Always use pnpm for Node.js projects unless the project already uses npm.
- Default to miniconda for Python environments.
- Use the Tauri CLI when building desktop apps.
This ensures the agent automatically chooses the right package manager or environment — no extra prompts required.
Last updated
Was this helpful?