Run an overnight refactor and wake up to it
Start the big refactor at bedtime, while nobody else is touching the code. The agent works through every limit while you sleep, and in the morning a finished branch waits for your review, with the agent's own report of what changed.
You need: a project, and a launch on a subscription or key connected in the dashboard.
1. Set the launch up for a long night
- Open the project on Projects and pick Edit on its default launch.
- Tick Continue after the limit resets. If a limit stops the agent at 2 a.m., it picks the task up again the minute the limit resets.
- Have a second subscription from the same provider? Tick Rotate subscriptions as they run out too, and the agent switches to it instead of waiting. Stretch several subscriptions through a night sets that up.
- Pick Save.
2. Hand over the task
Pick Launch on the default launch. Approvals are off, so the agent never stops to ask for permission. Brief it the way you would brief a colleague who works alone until morning:
Move the billing module from callbacks to async/await. Work on a new branch
refactor/async-billing. Run the tests after each step and commit when they pass. Write what you changed, what you skipped and why intoREFACTOR.md.
If the tests need a database or another service, start it in Docker in the same terminal and leave it running.
3. Hear only what matters
Open Notifications and tick Needs you and Done. Set Quiet hours to the hours you sleep: routine push and Telegram pings stay silent, and an out-of-memory email waits until quiet hours end.
4. Close the laptop
Close the browser and shut the laptop. The terminal keeps running on your Compute, and the agent in it. When a limit hits, detachbox types "continue" the minute it resets; with rotation on, the agent moves to the next subscription first.
5. Read the result in the morning
- Terminals shows where the agent stands, with the last line it wrote.
- Click
REFACTOR.mdin its output, and the report opens in the viewer, rendered. - Ask the agent for
git log --oneline, or read it yourself in the terminal. - Activity lists the night with the time of each event: every continue after a limit, every move to another subscription.
Something to try in a browser? Ask the agent to start the app on 0.0.0.0 and open the link from Files and previews.