Mesrai scans your repo
On install, Mesrai detects existing rule files for any supported tool — Cursor, Copilot, Claude, and the rest.
You already maintain rule files for your IDE assistant — Cursor, Copilot, Claude, Windsurf, and more. Mesrai imports them automatically so cloud PR reviews + the CLI use the exact same policy your local assistant does.
.cursorrules · .cursor/rules/**/*.mdc.github/copilot-instructions.md · .github/instructions/**CLAUDE.md · .claude/settings.json.windsurfrules.sourcegraph/**/*.rule.md.opencode.json.aider.conf.yml · .aiderignore.agents.md · .agent.md.rules/** · docs/coding-standards/**On install, Mesrai detects existing rule files for any supported tool — Cursor, Copilot, Claude, and the rest.
Parsed into the same Mesrai Rules format you use in the dashboard. Editable, taggable, audit-tracked.
When the rule file changes upstream, Mesrai re-syncs and the cloud reviewer + CLI pick up the new policy.
Your IDE assistant + Mesrai cloud reviewer + Mesrai CLI all use the exact same rules. No drift between local and remote review.
Cursor (`.cursorrules`, `.cursor/rules/`), GitHub Copilot (`.github/copilot-instructions.md`), Claude Code (`CLAUDE.md`, `.claude/`), Windsurf (`.windsurfrules`), Cody (`cody-rules.yaml`), OpenCode (`opencode.json`), Aider (`.aider.conf.yml`), and Agentic (`AGENTS.md`). Mesrai reads whichever rule files already exist in the repo — no migration needed.
On first install Mesrai scans the repo for any of the supported rule files, parses them into a normalised Mesrai Rules format, and shows you a one-screen import preview. You approve which rules to bring in; rejected ones are ignored. After that the cloud reviewer applies the same rules on every PR — your IDE and the cloud now agree on what 'good' looks like.
No. Sync is read-only by default — Mesrai never modifies the source rule files in your repo. Two-way sync (cloud rule changes flowing back to your IDE files) is an opt-in setting per repository, off by default.
No. The sync runs entirely off the rule files already committed in the repository — those files are what your IDE reads. There's no Mesrai extension to install. If you want IDE-side suggestions, your existing AI assistant (Cursor, Copilot, etc.) keeps doing that job using the same rule files Mesrai reads.
Yes. Mesrai Rules accept three formats: plain English (recommended for most rules), YAML (structured triggers + remediation), or a hybrid Markdown-with-frontmatter format. Each is converted to the same internal representation. Pick whatever your team already uses — Mesrai doesn't force a format.
By default it's one-way: IDE rule files are imported into Mesrai cloud. Two-way sync (cloud → IDE) is an opt-in flag — when a rule is added or edited in the Mesrai web app, Mesrai opens a PR back to your repo with the updated rule file. Useful for centralised rule management; off by default to avoid surprising the team with bot PRs.
Mesrai imports your existing rule files in seconds. No rewrites, no migration.