How to set up a weekly automation in Antigravity

Day 6, 25 minutes · beginner

Goal of this lessonSet up a weekly automation that checks the session dates on the site read-only, test its permissions, turn it on and read the report of a run.

Why it matters

Some jobs you could hand to Google Antigravity are small but easy to forget. Marijke's site lists the next six repair sessions. Every month one date passes, and if nobody adds new ones, the site slowly runs out of dates and visitors think the fix-it café has stopped. Checking that by hand every week is exactly the kind of task people forget.

Antigravity can run such a check by itself on a schedule. An automation starts a new agent conversation at the time you choose, does the job and leaves a report you can read later. Because nobody is there to approve anything, it may only do what you allowed in advance, and that is the part to get right.

Today you set up a weekly check of the session dates: every Monday morning the agent reads the home page and tells Marijke which dates are past and whether new ones are needed. At the end you have an automation that is switched on, tested with one run, and allowed to read files only.

Automation or schedule?

Antigravity has two ways to run work later:

  • /automation sets up a recurring job that keeps running across sessions until you turn it off. Each run starts a fresh conversation with no memory of earlier runs. You manage automations in the Automations tab in the left sidebar. This is the one for a weekly check. It is in the App only.
  • /schedule wakes the agent later in the current conversation, once or on a repeat, for example to check something again in ten minutes while you keep working. It ends with the conversation.

Automations are included on every plan, the free plan too.

How /automation sets it up

You describe the job in one line, or type /automation on its own and answer the questions. The agent then:

  1. Asks for the schedule (hourly, daily, weekly or custom) and the day and time. It always ties the schedule to a time zone, here Europe/Amsterdam.
  2. Writes a self-contained prompt. Each run starts with no history, so the prompt must say everything: which file, what to check, what to report.
  3. Saves the automation as paused. Nothing runs until you turn it on.
  4. Offers a test run to set the permissions.
  5. Summarizes the schedule, the task and the permissions.

Why the test run matters

An unattended run cannot ask you anything. Antigravity's docs say that anything that would normally ask for approval is refused automatically during such a run. The test run solves that: the agent does the job once while you watch, and records exactly the permissions the job needed, as narrow as possible, such as reading one folder.

Read those permissions before you turn the automation on. For a check that only reads, you want read permissions and nothing else. If the list contains a command or a write permission, ask the agent to take it out. This is the main safety step of the lesson. Running agents without anyone watching, and what can go wrong, is covered in more depth in Ship AI at the client.

The steps

  1. Describe the automation with /automation, the day, the time, the time zone and a read-only task.
  2. Answer the questions and check the schedule the agent confirms.
  3. Do the test run and read the permissions it recorded.
  4. Turn it on in the Automations tab, where new automations wait under Paused.
  5. Run it once now with Run Now, so you do not have to wait until Monday.
  6. Read the report of that run. Runs are normal conversations: search for them with the Only Automations filter.

Follow the guide for Google Antigravity below.

Example: Marijke's Monday check

The agent asked two questions: the day (Monday) and the time (9:00). It confirmed "every Monday at 9:00 Europe/Amsterdam". The test run read index.html and found six future dates. The summary listed one permission: read the brambleford-fixit-cafe folder. Marijke turned the automation on and clicked Run Now. The report said: "6 upcoming dates, none in the past. Next session: Saturday 9 January 2027."

Good to know

  • Runs are not exact to the minute. Antigravity spreads runs out a little, by up to 15 minutes.
  • The App runs the automation. The docs say automations run "even while you're away"; they do not say whether a run happens when the App is closed or the computer is off. Keep Antigravity running on Monday mornings to be safe, and check the first few runs.
  • Turn it off when you no longer need it, in the Automations tab.

Where to go next

You now have the core of working with a coding agent: clear tasks, plans, review, rules, goals with evidence and automations with narrow permissions. Next steps in Antigravity are skills and subagents, which the course One skill, every agent covers for the Antigravity CLI as well. What subagents are good for in general is explained in Subagents in Claude Code.

Deeper dive

Today's actions

Ticks are not saved without an account

Do it in Google Antigravity

Google Antigravity

  1. Start a new conversation in the brambleford-fixit-cafe project. Paste this request and press Enter.
    /automation every Monday at 9:00 Amsterdam time, read index.html in the brambleford-fixit-cafe folder, list the upcoming session dates it shows, say which dates are already in the past, and warn me when fewer than three future dates are left. Only read files. Do not change any file and do not run commands.
  2. Answer the questions in the cards and click Submit after each one. Check that the schedule the agent confirms says Europe/Amsterdam and Monday 9:00.
  3. When the agent asks whether to do a test run now to set the permissions, choose the test run. Unattended runs refuse anything that would need your approval, so the test run records what the job needs.
  4. Read the summary. The permissions should be none, or read access to your project folder only. If you see a command or a write permission, ask the agent to remove it.
  5. Click Open Automations Dashboard. Your automation is under Paused. Check its permissions, then turn it on. If it asks for a folder, choose brambleford-fixit-cafe.
  6. Open the automation's menu and click Run Now to start one run right away.
  7. Press Ctrl + K (Cmd + K on a Mac) to search conversations. Click the filter icon at the right of the search box, choose Filter and then Only Automations, and open the newest run.

Note: Each run starts a fresh conversation with no memory of earlier runs. Runs start close to the set time, not on the exact minute. Automations run on the Flash tier by default (Flash Lite, Flash or Pro can be chosen in the Automations tab). /automation is in the App only.

Checked on 4 December 2026 · Source: Antigravity docs: Automation command (/automation) (opens in a new tab)

Create a free account to save your progress. Sign in or sign up