Scheduled Tasks
Tasks are saved Agent instructions that run later, repeat on a schedule, or run on demand. The gateway still exposes the older internal namecron in CLI/RPC
surfaces, but the user-facing concept is Task.
Use Tasks vs Heartbeat if you are deciding
between scheduled work and the Agent heartbeat.
What tasks are for
Use a Task when Fased should:- run a prompt at a time or interval
- keep the run isolated from the main Agent session
- announce a result to a channel or webhook
- run with narrowed model, memory, or skill access
- keep reusable setup separate from run history
Quick start
- Open
http://localhost:18789/. - Go to Agents.
- Select the Agent that should own the task.
- Open Tasks.
- Create the task and choose its schedule.
- Run it once, then open the row’s run history if it needs review.
Create Task fields
The browser Create task dialog writes one saved task definition throughcron.add. The definition is attached to the selected Agent unless the global
Tasks view explicitly chooses another Agent.
| Field | Meaning |
|---|---|
| Name | Human label shown in Agent > Tasks. |
| Prompt | Instruction the Agent runs on each schedule. |
| Objective | Optional goal stored with the task for planning and review. |
| Success | Optional completion criteria for review and stop-on-success. |
| Schedule | One-time, interval, or cron expression. |
| Session | New task session isolates each run. Main Agent session posts into the Agent’s main lane. |
| Delivery target | No delivery keeps the result internal. Channel or webhook delivery sends the result to the selected target. |
| Execution | Auto, Agent turn, skill-only, or no-model execution. |
| Memory | Retrieval scope for this run. |
| Skill access | Inherit, narrow, or disable skills for the task. |
| Ask Agents | Optional helper Agents that add evidence before final synthesis. |
| Session key | Advanced routing key. Leave default unless you are wiring a specific route. |
| Presets | Policy shortcuts. They do not replace the task prompt or schedule. |
Definitions vs run history
Agent > Tasks starts with saved definitions:- Task
- Trigger
- Workflow
- Graph
- Program
Task templates
Task templates fill the whole task shape: schedule, prompt, objective, success criteria, execution policy, memory, skill access, and delivery. Saving the form turns the template into a normal Task definition.| Template | Use when |
|---|---|
| Mining strategy review | You want strategy review using mining status/history without changing funding, withdraw, start/stop, wallet send, or bond controls. |
| Mining status report | You want a read-only mining report: running/stopped state, current cycle, wallet SOL/SAT, capital, locked capital, claimable SAT, and blockers. |
| Strategy A/B review | You want evidence across balanced, top_k, ranked, crowd_aware, and adaptive while active commit settings stay unchanged. |
| Wallet reserve watch | You want alerts before Agent, Vault, or Mining wallet fee reserves get too low. |
| Staking rewards watch | You want a read-only Fased Network check for bond amount, claimable SAT, reward pool, and vault balance. |
| Provider health check | You want recurring checks for model providers, channels, tools, signer, and RPC readiness. |
| Marketplace follow-up | You want open orders with payment, delivery, receipt, or review state surfaced for manual action. |
| RPC pressure report | You want an operator report for RPC calls, getAccountInfo pressure, failover, and cost-reduction targets. |
Delivery
Tasks can keep results internal or deliver them outward.| Delivery | Behavior |
|---|---|
| None | The result stays in the Agent UI and run history. |
| Channel | The result is sent through a connected channel such as Telegram, Discord, WhatsApp, or Slack. |
| Webhook | The finished run payload is POSTed to the configured URL. |
Main vs isolated session
| Mode | Use when |
|---|---|
| Main Agent session | The run belongs in the Agent’s main conversation lane. |
| New task session | The run should stay isolated, quieter, or easier to audit by run. |
Storage and operations
The gateway manages scheduled tasks under~/.fased/cron/ internally.
- task definitions:
~/.fased/cron/jobs.json - run logs:
~/.fased/cron/runs/<jobId>.jsonl
Troubleshooting
If a task does not run:- confirm the gateway is running continuously
- confirm scheduling is enabled
- check timezone and cron expression assumptions
- run the task manually from Agent > Tasks or
fased task run <task-id> - open run history for the latest error
-1001234567890:topic:123.
For stale running rows, missing delivery state, or old queue records, use
Automation Troubleshooting and Advanced >
Debug.