# Set up Pulse with your AI coding agent

Source: https://pulse.mightys.dev/docs/ai-setup/

Paste one prompt into Claude Code, Cursor, Codex, Copilot or any other coding agent. It reads the official guide for your platform and adds Pulse to your project. Review the change like any other.

## The prompt

Choose your platform and copy the prompt. Replace YOUR_APP_KEY with the key of your app. On the setup page of your app in the dashboard, the same prompt is ready with your key filled in.

Swift:

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/swift.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

Android (Kotlin):

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/kotlin.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

Flutter:

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/flutter.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

Unity:

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/unity.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

JavaScript:

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/javascript.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

.NET:

```
Add MightyS Pulse analytics to this project.
1. Read https://pulse.mightys.dev/docs/dotnet.md and follow it exactly. Do not use other sources for Pulse.
2. Install the package the way that guide says. If it gives an editor step instead of a command (Xcode, Unity Package Manager), make the same change in the project files.
3. Initialize Pulse once at app start with the app key YOUR_APP_KEY. Keep the key out of source control if this project already has a place for config or secrets.
4. Track one signal at a meaningful place (for example "onboarding.complete"), with no personal data in properties.
5. Show me the diff and tell me how to see the signal in the Pulse dashboard (Test mode shows signals from debug builds).
```

## What the agent does

- It reads the Markdown version of the SDK guide on this site. The guide is the same README that ships with the package, so the install command and the version match what you get.
- It installs the package, starts Pulse once when your app starts, and sends one signal from a place you would want to count.
- It shows you the change before you keep it. Nothing is sent to Pulse until you run the app.

## Check the result

1. Run a development build of your app and do the thing that sends the signal.
2. Open the setup page of your app in the dashboard. It shows the signal arriving.
3. A development build sends test signals. Turn on Test mode above the charts to see them.

[How Test mode works](https://pulse.mightys.dev/docs/test-mode/)

## A guide file for your agent

Some agents read instructions from a file in the project. pulse-for-agents.md has the install and start code of every SDK, the opt-out call and the rules for properties, written from the same guides at every release of this site. Save it in your project, or in the folder your agent reads, and tell the agent to read it before any other source about Pulse.

[Open pulse-for-agents.md](https://pulse.mightys.dev/pulse-for-agents.md)
