Scheduled tasks
Have Claude Code or Codex do something at a set time, like running the tests every morning, even with your phone off.
With Link Host 0.1.3 and the next app update, you can give an agent a job and a time: "every weekday at 07:00, run the tests and fix anything that fails". Link Host starts the agent on your computer when it's due, so your phone can be off. Each run is an ordinary session: open it from the phone afterwards to read what the agent did, or carry on the conversation.
Claude Code and Codex can be scheduled.
Set one up
- In Agents, tap Scheduled tasks under the list, then New scheduled task.
- Choose the agent, say what it should do, and choose the folder it works in.
- Choose when: Every day, Some days (pick the days), or Once, and a time. Times are your phone's time, 24-hour.
- Choose what it may do (below), and tap Save.
Run now starts it straight away, to try it. Turn off pauses it without deleting it.
What it may do
Nobody is there to answer the agent during a run, so anything that would ask you is refused. Choose how much it may do without asking:
| Claude Code | |
|---|---|
| Ask | Read and plan only |
| Accept edits | Edit files in the folder; commands that need approval are refused |
| Auto | Claude allows what looks safe and refuses the rest (on plans with Auto mode) |
| Don't ask | Run everything. Asks you to confirm when you choose it |
| Codex | |
|---|---|
| Read only | Look but change nothing |
| Auto | Edit and run commands in the folder, without network access |
| Full access | Run anything, anywhere. Asks you to confirm when you choose it |
Running the tests needs commands, so for Claude Code that means Auto or Don't ask. Run it once with Run now and read the session to see what it did.
Runs
The task shows its last 10 runs: Done, Failed (with the agent's last message, such as not being signed in), Stopped, or Missed. Tap a run to open its session. A run still going opens when it ends. Stop run ends it early, along with any commands the agent started, such as a test run; so does deleting the task. Runs stop by themselves after 6 hours. A run ends when the agent finishes, and anything it left running then, such as a dev server it started, is stopped with it.
When the computer is off or asleep
The computer has to be on and awake, with Link Host running, at the set time. If it was asleep and wakes within 2 hours of a run, the run happens then; later than that, it's marked Missed and the task waits for its next time. If Link Host isn't running, the app says so; start it with link-host setup.
Tasks are kept on the computer by Link Host (see Files on disk), and runs use the agent's own sign-in there, like when you run it yourself.