What this page covers
Windsurf is an AI editor that works inside your repository. In June 2026 it became Devin Desktop; the docs moved to docs.devin.ai and older Windsurf rules files are still read. This page uses both names.
It is about measuring the app you build with it, not about the editor's own usage stats. That is the measure step of the vibe coding loop.
Facts about the editor come from the Devin Desktop docs, last checked December 4, 2026. Menus are moving with the rename, so check the docs if a path below does not match what you see.
You need an Orwel workspace (the Free plan is enough to start) and your project open in the editor.
Step 1: Give the agent the rules
You have two options, and they combine well.
The Orwel skill. From the project root:
npx skills add hyperlabs-ai/hyper-skills/orwel
It works with agents that support skills, and teaches the agent the full SDK and its rules.
A rules file. The agent reads AGENTS.md at the project root and in subfolders. Paste the rules block from the CLAUDE.md analytics template there. For a rule of its own, create .devin/rules/orwel.md with a trigger that keeps it always on:
---
trigger: always_on
---
(paste the Orwel rules block here)
Existing .windsurf/rules/*.md files and a .windsurfrules file are still imported, so a project set up before the rename keeps working. You can manage rules from Customize, then Rules.
Step 2: Put the key in an environment variable
Copy the development key (orwel_dev_...) from your workspace into .env with the name your framework uses:
| Framework | Variable |
|---|---|
| Next.js | NEXT_PUBLIC_ORWEL_KEY |
| SvelteKit, Astro | PUBLIC_ORWEL_KEY |
| Vite (React, Vue, Svelte) | VITE_ORWEL_KEY |
| Nuxt 3 | NUXT_PUBLIC_ORWEL_KEY |
Add an empty line for it in .env.example and make sure .env is in .gitignore. In production, set the variable to the production key (orwel_...) in your hosting provider.
Step 3: Ask the agent to install and instrument
Install Orwel in this project following the Orwel rules. Read the key from the env var for this
framework, create one wrapper module and init once on the client. Identify users when they sign
in and await a conversion with the email when they submit the contact form. Then propose an
event catalog from the service layer and wait for my confirmation.
The agent can run terminal commands on its own, within the allow, ask and deny rules you set, so it will run npm install orwel for you. Review the diff: track() codes must come from the catalog, events fire after the action succeeds and conversions are awaited. More prompts are in vibe coding prompts.
Step 4: Verify in Dev mode
Run the app with the development key and debug: true, then trigger a sign in, each tracked action and one form submit. Open Dev mode in Orwel:
- Errors mean rejected:
event_not_found,invalid_field,missing_session_id. - Warnings mean accepted with a problem:
conversion_no_email,missing_attribution,identify_no_email.
Paste any warning back to the agent. Deploy with the production key once Dev mode is clean.
Step 5: Add the Orwel MCP server
The editor supports remote MCP servers over Streamable HTTP. In Orwel, open Settings, API keys and create a key with the mcp scope, set to server only. In the editor, open Customize, then MCPs, or create .devin/mcp_config.json in the project:
{
"mcpServers": {
"orwel": {
"serverUrl": "https://api.orwel.io/mcp",
"headers": { "Authorization": "Bearer orwel_sk_..." }
}
}
}
The docs show the address as serverUrl in one place and url in another, and say both are accepted. That key reads customer data, so keep the project file out of version control or use the user level config instead. On Teams and Enterprise an administrator may need to allow the server first.
On the Orwel Free plan the server answers with aggregated data; individual leads and visitors need Pro.
Step 6: Ask about real usage
- "Show conversions and the issues Orwel detected in the last 14 days."
- "Which campaign brought qualified leads?"
- "How many leads came in this week compared with last week?"
That closes the vibe coding feedback loop. The same steps for other editors are in the Cursor and Claude Code guides.