Scheduled tasks & reminders
Schedule local cron routines (AI or direct tools) and get the DEVFLOW.md to-dos when you open the project.
Scheduled tasks are routines that DevFlow AI's local engine runs on its own on a project, without you typing the message every time. For example:
- Check outdated dependencies every morning and summarise the changes.
- Run the unit tests every night.
- Audit the project's security every Monday.
On top of that, when you open a project the app reminds you of the pending tasks in DEVFLOW.md.
How it works
Everything happens on your machine, through the app's local engine (Express on port 4545):
- The scheduler (
node-cron) checks the cron expression of every active task. - When the time comes, it runs the task in the background.
- It stores the result in the task (
lastRun,lastResult), in the history and in.app_context/progress_log.md. - The app shows a notification with the result (and a system notification if the window is in the background).
Tasks are stored in the engine's SQLite database and in .app_context/scheduled_tasks.json, a readable copy that travels with the repository: if you clone the project on another machine, the tasks are imported when you open it.
Create a task
- Open a project with an initialised DevFlow context.
- Click ⏰ Tasks in the top bar and then + New task.
- Enter a title (for example "Dependency audit").
- Choose the frequency with a shortcut (every morning, every night, every Monday, weekdays, every hour, every 15 minutes) or type a custom cron expression.
- Write the instruction and click Schedule task.
Two kinds of instruction
| Kind | How you write it | Who runs it |
|---|---|---|
| AI agent | Free text: "Check the dependencies and summarise the recommended changes. Do not modify files." | The AI agent, in Agent Mode and in the background. Uses tokens (or your BYOK key). Requires the app open and signed in. |
| Tools | tool blocks with exact calls. | The engine directly, with no AI and no tokens. |
Example of a no-AI task that runs the tests every night:
```tool
{"tool": "execute_command", "command": "npm test"}
```
Cron expressions
Five space-separated fields: minute hour day-of-month month day-of-week (0 = Sunday), in your machine's local time.
| Expression | Meaning |
|---|---|
0 9 * * * | Every day at 9:00 |
0 2 * * * | Every night at 2:00 |
0 9 * * 1 | Every Monday at 9:00 |
0 8 * * 1-5 | Monday to Friday at 8:00 |
*/15 * * * * | Every 15 minutes |
Practical use cases
1. Daily dependency check (AI agent)
- Frequency: every morning (
0 9 * * *). - Instruction:
Run npm outdated and composer outdated. Summarise the outdated packages in a
table, separating patch, minor and major versions, and point out which ones
have breaking changes. Do not modify any file.
Every morning you will get the report in the app notice, in the history and in progress_log.md.
2. Nightly automated tests (no AI)
- Frequency: every night (
0 2 * * *). - Instruction:
```tool
{"tool": "execute_command", "command": "php artisan test"}
```
```tool
{"tool": "execute_command", "command": "npm test"}
```
It uses no tokens. If a test fails, the run is marked With errors and in the morning you can ask the agent to fix it.
3. Weekly status report (AI agent)
- Frequency: every Monday (
0 9 * * 1). - Instruction:
Read .app_context/progress_log.md and DEVFLOW.md and write a status report for
the last week: completed tasks, pending ones, risks and next steps. Save it in
docs/reports/ with the date in the file name.
AI agent tasks need the app open and signed in; Tools tasks only need the local engine running (that is, the app open).
Manage your tasks
From ⏰ Tasks you can, for each task:
- See the next run, the last one and its result.
- ▶ Run it now (handy to test it).
- ⏸ Pause or ⏵ Resume it: the task keeps its configuration and history; it simply stops firing until you resume it.
- ✎ Edit the title, frequency, instruction or whether it is enabled. When you click Save changes, the engine reschedules it right away with the new timing and updates
scheduled_tasks.json. - 🕘 open the history filtered to that task only.
- 🗑 Delete the task and its history.
History and change audit
The History tab shows the latest runs with their status: Completed, With errors, Skipped (for example, an AI task while the app was signed out) or No response. Use the All tasks selector to filter it by task.
Every run includes the line Agent changes: N modifications · M tools. Expand it to see, one by one, the tools that ran (which file was created or modified, which command was launched) and whether each one succeeded or failed. That way you know exactly what the agent touched while you were away. The same changes are logged in .app_context/progress_log.md.
Example: change a task's schedule
- In ⏰ Tasks, click ✎ Edit on "Nightly tests".
- Change the frequency from Every night (2:00) to Custom and type
30 23 * * 1-5(Monday to Friday at 23:30). - Click Save changes. The Next column shows the new run time.
Reminders when you open a project
When you open a project, the engine reads DEVFLOW.md and the app shows a notice with the pending items:
- Unchecked boxes (
- [ ] task), wherever they are. - Lists under headings such as "Pending tasks", "Next steps", "Próximas tareas" or "TODO".
From the notice you can expand the full list or open the tasks panel.
Security
Tasks use exactly the same filters as Agent Mode:
- They never write to
.app_context/,.git/,node_modules/orvendor/. - Destructive commands and processes that never finish (servers, watchers) are blocked.
- Every modified file keeps a
.bakcopy. - Everything runs locally: no DevFlow AI server ever accesses your code.
Last updated: November 26, 2026