Lights Off Integration
Let a software factory fix the problems your users report
What is Lights Off?
Lights Off is a software factory. It reads the problems reported for your app — from your users’ feedback, from error alerts, or from your own code — decides which it can fix, writes the fix on a branch of your project’s repository, opens a pull request, and follows the deploy.
Perfect for:
- Bug reports from the Get Feedback widget turning into pull requests without anyone copying them over
- Error alerts that get a first fix while your team is busy elsewhere
- Keeping a backlog of small fixes moving
Lights Off never pushes to your default branch. It opens pull requests, and merges them only if you allow it — see Step 3.
What Lights Off can and cannot reach
Turning on Lights Off gives it, for this project only:
- Read access to the project — its name, repository address, deployed address and deploy logs. Every token, password, key and other connector’s value is hidden from it.
- Short-lived access to the repository — credentials valid for at most one hour, for one repository at a time, that can read files, push any branch except the default branch and open, update and comment on pull requests. They can merge a pull request only while you allow merging. The repository is the project’s main one, or the repository of one of the project’s web microapps. A mobile microapp, a microapp without a repository, or another project’s microapp is refused.
- Your Get Feedback submissions — when the project’s Get Feedback connector was set up by auto-provisioning, Lights Off gets a key that reads that tenant’s submissions only.
Lights Off never receives the project’s MCP token, its git token, the data service’s administrator credential or any other connector’s values. Disconnecting Lights Off takes all of this away within seconds.
Step 1: Connect Lights Off
Open Connectors
Open your project → Connectors in the sidebar, and find the Lights Off card.
Connect
Click Connect, then Auto-provision now. Buildpad registers the project with Lights Off; there is nothing to paste. The card’s badge changes to Connected and the card goes dark.
Wait for acceptance
Projects of most organisations wait until a Lights Off administrator accepts them: the card says Waiting for Lights Off to accept this project. Once accepted, that note goes away. If Lights Off later needs attention, pauses the project or disconnects it, the card says Needs attention in Lights Off, Paused in Lights Off or Disconnected in Lights Off. If Lights Off declines the project, the card says Lights Off declined this project and Lights Off’s access ends.
The card says Lights Off is not configured in this environment when this Buildpad environment has no Lights Off to connect to. Contact Buildpad support.
Step 2: Watch what it does
The Lights Off card shows Lights Off’s status for the project and a link to the app in Lights Off. Everything else — the problems it received, its work and the pull requests — is in Lights Off. While Lights Off is connected, its card is dark.
When the project also has Get Feedback, Get Feedback can push new submissions to Lights Off as they arrive. Settings on the card opens Lights Off settings, which shows one line for this push:
| Line | Meaning |
|---|---|
| Feedback push: on since a date | Get Feedback sends new submissions to Lights Off. |
| Feedback push: pending | Lights Off is ready, and Get Feedback has not been told yet. |
| Feedback push: not supported by Get Feedback | The push is not available, so Lights Off fetches the submissions instead. |
| Feedback push: error: a reason | Get Feedback could not be set up for the push within 24 hours. |
| Feedback push: off | The push was turned off. |
The line does not show when the project has no Get Feedback for Lights Off.
In the repository, Lights Off’s branches are named xbot/… and its pull requests have titles starting with xbot:. To ask for a change on one of them, comment on the pull request with a line starting with /xbot fix.
Step 3: Decide who merges
Allow Lights Off to merge to main is off by default: Lights Off opens pull requests and people merge them on the project’s Code page (see Code and Pull Requests). Turning it on asks you to type the project name, because merged changes deploy. While it is off, the repository itself refuses Lights Off’s merges, whatever Lights Off is set to do.
Allow Lights Off’s coding agent to change hosting in Development is off by default too. When it is on, Lights Off’s coding agent gets a token of its own for each job, which can set the app’s hosting variables, redeploy it and restart workers in Development. That token can never read secret values, get repository credentials, stop the project, or change Production. Turning the switch off stops every such token at once.
Rotating and disconnecting
- Rotate Lights Off credential gives Lights Off a new token; the old one stops working once Lights Off confirms, or after 10 minutes.
- Disconnect revokes Lights Off’s token and any repository credentials it holds at once, revokes its Get Feedback key, and removes the project from Lights Off.
Deleting the project, or moving it to another organisation, disconnects Lights Off first.
Sending problems from your own code
Your coding assistant knows Lights Off’s signal API from the xbot.instructions.md reference in your project. Ask it, for example:
When the payment page throws an error, send it to Lights Off as an error alert.