File DA-009 View as Markdown
Lovable, Emergent, Bolt, v0, Replit
This page shows how to get Double Agent into a site built with Lovable, Emergent, Bolt, v0 or Replit. You paste one prompt into the builder's chat and it does the edit. You don't need to write code.
Paste the prompt
Open your project's chat and paste this:
Install Double Agent on this site. Briefing: https://doubleagent.so/install.md
The builder reads the briefing, finds the shared page head (usually index.html on Lovable and Bolt, or app/layout.tsx on v0) and adds two script lines. The install is keyless: no account and no key.
You can add lines under the first one to give it more to work with. They are read as values, not as instructions:
Install Double Agent on this site. Briefing: https://doubleagent.so/install.md
Site: shop.example.com
Public key: pk_live_…
Profile: ecommerce
| Line | What it does |
|---|---|
Site: | The domain the builder checks once the site is live |
Public key: | Adds your key to the script, for signed tokens and live presence. See Capabilities. |
Profile: | What kind of site this is, instead of auto. See Site profiles. |
Never paste a secret key (sk_…) into a builder chat. It would end up in the page.
Publish and check it worked
The edit only goes live when you publish. Then run the check from your own terminal:
npx @doubleagent-so/cli verify https://your-site.example
It should end with Installed correctly. Check the builder's own URL first, and again once you connect your custom domain. The editor preview doesn't count.
Builders whose agent can run terminal commands, such as v0 and Replit, can run the check for you: ask the agent to run that command and fix anything it reports. Lovable's agent can't run commands, so run it yourself there.
If your builder works on a code repo with your own coding agent (Claude Code, Cursor, Codex), the Agent Skill does the same job: npx skills add doubleagent-so/skills.
Next: claim your domain to see who is visiting.