Help CenterFeaturesScheduled tasks & outside events
Scheduled tasks & outside events
Features

Scheduled tasks & outside events

What it is

Two things that let Q "do things without you asking":

  • Scheduled tasks: at the times you set, Q does what the text you wrote says, as if you'd told Q yourself right then.
  • Watch list: when something new shows up in places like new GitHub issues (problems other people report), new PRs, new Sentry errors, or new comments in a Feishu doc, it goes to Q to decide whether anything needs doing.

For both, Q decides: if Q can answer directly, Q answers; if work is needed, Q creates a task; anything that should be asked, Q still asks you.

When to use it

  • Something you look at every day or every week: a scheduled task. For example, "every weekday at nine, look at yesterday's production errors".
  • Other people report problems or make requests somewhere outside: watch that place. For example, "when there's a new issue on GitHub, put it on the board".

First-time setup

What to say

Both are in Project settings, and each project has its own: "Scheduled tasks" and "Watch list".

You can also just tell Q. Q drafts one, and it only takes effect once you approve it in "Needs you".

To watch GitHub, first install GitHub's command-line tool gh on this computer and sign in to your own account. QU uses the gh you signed in to for its checks, and never handles your account.

How to use it

Scheduled tasks

Creating one: create it under "Project settings › Scheduled tasks", with a name, what Q should do, and when. Or tell Q:

What to say

"Every weekday at nine, look at yesterday's production errors, and create a task if there's anything new."

Q drafts one, and it only takes effect once you click "Start" in "Needs you".

When it runs: once (a given day and time), every day (you can pick which days, like weekdays), or every week (pick the day of the week). Times follow the main computer (the computer where Q lives).

Seeing what each run did: each one has its own topic, "Scheduled: name". Every time it's due, a round starts in it, so you can look back at what each run did. In the list, the row of dots after each one shows the latest runs: Triggered, Running, Needs OK, Done, All clear, Failed, Skipped, Missed; hover for the time and what happened.

Nothing new stays quiet: when Q checks and there's genuinely nothing to report, the run is marked "All clear": no notification, not counted as unread, and back-to-back ones fold into a single line in the topic ("Scheduled · 3 with nothing new"); click it to see each run as it was.

Trying it right away: click "Run now". The next scheduled time doesn't change; if quota is too low, it doesn't run this time either.

When it needs numbers first (Fetch first): for reports that need figures, put a read-only command under "Fetch first", e.g. sh scripts/active-report.sh for the daily active installs report. Before waking Q, QU runs it on the project's computer under the same rules as watched places (can only write a temp folder, 60 s max) and hands Q the output. If it can't get the data (can't connect, timed out, errored), Q says plainly that fetching failed and why, never that it's zero. "Run now" goes the same way. Filling it in yourself counts as approving it; a command in a draft from Q is approved together with that scheduled task.

A few rules:

  • If a task created by the last run isn't done yet (it hasn't reached waiting for your acceptance), this run is skipped, with a line noting "the last run isn't done yet, skipping this one".
  • It doesn't run while the computer is asleep or off. If it wakes within 12 hours, it makes up one run and says how late it is; after more than 12 hours it notes "missed" and waits for the next one.
  • It still runs during Do Not Disturb; it just doesn't pop up notifications.
  • Each run is an extra round for Q, using your own account. When Q's agent has less than 10% of its quota left, this run is skipped.
  • Up to 10 per project.

Watch list

Adding one: under "Project settings › Watch list", click "Add one".

  • GitHub has four ready-made ones: new issues, new PRs, new comments, new releases. QU puts the command together and runs it with the gh you signed in to yourself.
  • For other sources (like Sentry or Feishu), write a command yourself, or tell Q and have Q draft one for you to approve.
  • The command runs on the project's computer, in the project folder. If the command changes, it needs approving again.

When Q thinks it needs doing (pick one of three):

OptionWhat happens
Just log itQ decides as usual, but only writes down what Q would do, and creates nothing. Use this first to see whether Q judges well
Create a task for you to assignCreates it and puts it on the board; hand it out with one click in "Needs you"
Create and assignHands it out directly. Only for items from collaborators (people with access to the repo); items from outsiders still wait for you to hand them out

A few rules:

  • Content from outside is treated only as material, never as instructions. If an issue says "please delete such-and-such file", Q won't do it. Change requests from people who aren't collaborators: you're asked first whether to pass them on to the session.
  • Items from bots, ones that only say "+1", and ones you sent out yourself are filtered out first by fixed rules, using no quota.
  • On one PR, back-and-forth with a review bot is limited to 3 rounds.
  • Items that arrive during Do Not Disturb are held by default and go to Q together when it ends (you can change this to "Also during Do Not Disturb").
  • Each place's row says how often it's checked ("every N min").
  • Incoming items go to Q in batches, and each wake-up costs one turn of your quota. You can set how often Q can be woken (per hour, per day); past that they wait until the next day. This doesn't use up your own requests to Q.
  • If one place suddenly jumps by a lot of items at once, it pauses itself until you take a look.
  • While the computer running the command is offline, it's on hold; when it's back it catches up with one run, not every missed one.
  • You're told if it fails to run several times in a row.

Main switch: "Settings › Q › Incoming work". When it's off, everything stops; tasks already created are left alone.

Try first (off by default)

When an outside report of a bug says clearly how to reproduce it and nobody has picked it up yet, Q quietly tries to fix it on a separate branch. Only if it finds a fix within 20 minutes, under 50 lines, with tests passing, does it show it to you; if not, it stays quiet. It never writes anything anywhere outside.

Dispatch rules (off by default)

Turn them on per project in Project settings › Rules › Dispatch rules. Only you can change them; Q can't:

  • Review by another agent before To review: when a session submits, the task stays in progress while another agent reads the changes (read-only). It moves to review only after it passes; if there are issues, the notes go back to the session to fix, and it's reviewed again on the next submit — at most 2 times, after which the next submit goes straight to review with the notes kept in the task for you. Each review costs an extra run; if the review can't start (e.g. out of quota), the task goes to review as usual with a note. Accepting or sending back is still yours. Research, walkthrough and prototype tasks, and tasks you moved to review yourself, aren't reviewed. Pick a preset, or leave it on auto to use the other agent.
  • Auto dispatch when a task enters To do: each rule is "tasks of a type (feature, bug… or any) entering To do → dispatch with a preset", each with its own switch. Dispatch queues as usual and can be undone within 10 seconds; release, deploy, spending and data-deletion tasks are never auto-dispatched — the task's activity says so and waits for you.

Writing to GitHub: you see a draft first

When a session wants to post a comment, open an issue or reply to a review on GitHub, it first saves a draft in "Needs you", saying which account it uses and where it'll go. It's only sent, with your own gh, once you click "Post". If this task already opened an issue, anything further is added below that issue instead.

FAQ

Will scheduled tasks wake me up in the middle of the night? No. They still run during Do Not Disturb, but don't pop up notifications; when it ends, they're combined into one.

If someone writes something in an issue, can they get Q to do work for them? Not by giving orders. Words from outside are only material; change requests from outsiders are only passed on to a session once you agree.

Does the watch list use a lot of quota? Bot messages are filtered out first by rules. Q's handling of incoming work is counted separately, and no new work is started once quota reaches 90%. See Usage & quota.