Working with the agent
Jobs
Schedule an agent or a command: schedule syntax, Paris time and daylight saving, catch-up, overlap, retries, delivery, history, and background tasks.
A job is work that runs on its own: an agent with a prompt, or a command, at the times you choose or when something triggers it. Each run of an agent job is a new session you can open afterwards. The Scheduled jobs screen lists the jobs, shows each one's history, and creates, edits, pauses and runs them. The same screen lists the background tasks that sessions start for long commands. Times are in Paris time.
Read the list of jobs
Jobs are grouped:
| Group | Jobs in it |
|---|---|
| Active | Enabled, with a next run or triggered on event |
| Paused | Turned off by a person or because their file disappeared |
| Past | Enabled, but with no run to come (a one-time job whose date has passed) |
| System | Jobs of the platform itself (backups, checks). Shown last |
Each row shows:
| Column | Content |
|---|---|
| Name | The job name, its kind (agent · ventgris or command), and created by agent or job file when it applies |
| Schedule | In plain words: "Every day at 07:00", "Every Monday and Thursday at 07:30", "Every 30 minutes", "Once, on 2026-12-01 at 09:00", "On event only", or "Cron: 30 7 1-7 * 1" |
| Next run | Date and time, paused, none, or on event |
| Last run | Its state and how long ago, or never ran |
| Buttons | Run now (play), Pause, or Resume |
Refresh reloads the list. It also updates live as runs start and end.
If the workspace is frozen (see Autonomy), a banner says "This instance is on standby or frozen: no job starts here. You can still prepare and change jobs."
Create a job
- Click New job.
- Fill the form (below).
- Click Create the job. The job is enabled at once and its sheet opens.
| Field | What to enter |
|---|---|
| Name | Lowercase letters, digits, dots, dashes and underscores, 64 characters at most: crm.sync-daily. Unique. Names starting with sys. are reserved |
| What it runs | An agent, with a prompt or A command |
| Agent | An agent profile, for an agent job |
| Prompt | What the agent must do at each run, 32 KB at most. It runs with nobody watching: say where the result goes |
| Command | For a command job: a command line, run as the work user from the workspace root. Quote an argument that holds spaces. 64 arguments at most |
| When | A preset and its time (below) |
| Deliver to | Where the result arrives, for example discord:pulse, or activity. 200 characters at most |
| The run must deliver something | Checked by default. A run that ends well but delivers nothing is marked silent |
As you type the schedule, the form shows it in plain words, its canonical form, and the next due times ("Next runs, Paris time"). A schedule that cannot be read shows its error in red.
More settings
Click More settings:
| Field | Values | Default |
|---|---|---|
| Timeout, in seconds | 1 to 86400 | 3600 |
| If the previous run is still going | skip the new run, queue the new run, stop the old run and start the new one | skip |
| A due time missed during a stop | catch up once, skip what was missed | catch up once |
| Retries after a failure | 0 to 5 | 0 |
| First retry after, in seconds | 10 to 3600 | 60 |
| Priority | 2, scheduled job, 3, yields to apps, 4, background | 2 |
| Memory weight, in MB (0 = default) | 0 to 65536 | 0 |
| Time zone | Any IANA zone name, for example America/New_York |
Europe/Paris |
| Uniqueness key | A template such as {job}:{date}. Two runs with the same key: the second is skipped |
empty |
Placeholders of the uniqueness key: {job}, {date}, {hour}, {minute}, {week}, {month}, {event}, and {arg.NAME} for an argument given to the run.
Schedule syntax
The When list offers presets: Every day, Every week (pick the days), Every month (pick the day of the month), At a fixed interval (5, 10, 15, 20 or 30 minutes; 1, 2, 3, 4, 6, 8 or 12 hours), Once (a date), Cron expression, and On event only.
The same forms are accepted everywhere a schedule is written (job files, vg job create):
| Form | Example | Meaning |
|---|---|---|
daily HH:MM |
daily 07:30 |
Every day at 07:30. daily at 07:30 works too |
weekly DAYS HH:MM |
weekly mon,thu 07:00 |
Those days of the week |
monthly DAYS HH:MM |
monthly 28 20:00 |
Those days of the month |
hourly :MM |
hourly :15 |
Every hour at minute 15 |
every Nm, every Nh |
every 30m, every 2h |
Only steps that divide the hour or the day evenly |
once DATE TIME |
once 2026-12-01 09:00 |
One run |
| 5-field cron | 30 7 * * 1,4 |
minute hour day month weekday; lists, ranges, steps and names (mon, jan) |
| macros | @hourly, @daily, @weekly, @monthly, @yearly |
|
| empty | No schedule: On event only |
Everything but once is stored as a cron expression. An expression that never fires (0 0 31 2 *) is refused. every 7m is refused: use a cron expression.
In cron, when both the day of the month and the day of the week are restricted, either one matches. 0 and 7 both mean Sunday.
Paris time and daylight saving
Due times are computed in the job's time zone, Europe/Paris by default, so a job keeps its wall-clock hour all year: a job at 07:00 runs at 07:00 in summer and in winter.
| On the day clocks change | What happens |
|---|---|
| Spring: a time that does not exist (02:30) | The run is due at the first instant after the gap (03:00) |
| Autumn: a time that exists twice (02:30) | The run is due once, at its first occurrence |
An interval (*/30 * * * *, hour field *) |
It keeps its pace, and also fires in the repeated hour |
Jobs on event only
A job with no schedule starts only when triggered: with Run now, or from a session with vg enqueue JOB [--arg k=v].
Catch-up after a stop
A due time more than 2 minutes in the past was missed: the machine was stopped, or the workspace was frozen. What happens then depends on A due time missed during a stop:
| Setting | Effect |
|---|---|
| catch up once | One run, marked catch-up, stands for all the missed due times. A job every minute stopped for a day runs once, not 1440 times |
| skip what was missed | Nothing runs; the job waits for its next due time |
Overlap
When a run is due while the previous one is still queued or running:
| Setting | Effect |
|---|---|
| skip the new run | The new run is recorded as skipped, "the previous run was still going". Run now is refused with "A run of this job is already queued or in progress." |
| queue the new run | It waits for the previous run. At most 100 queued runs per job; beyond, the new one is skipped |
| stop the old run and start the new one | The running one is stopped, a queued one is skipped |
Retries
With Retries after a failure above 0, a run that failed or reached its timeout is queued again. The first retry waits First retry after; each next one waits twice as long, up to 1 hour. The history shows "retry at 10:42" and "attempt 2". A silent run is not retried.
Run, dry run, pause, edit, delete
Open a job by clicking its name. Its sheet has these buttons:
| Button | Effect |
|---|---|
| Run now | Queues a run at once, cause manual: "Run queued" |
| Dry run | Queues a rehearsal: brokered actions are checked and answer without executing. Shown as dry run in the history |
| Pause / Resume | Turns the schedule off or on. A paused job keeps its history |
| Edit | Opens the form with the current values. Save applies them |
| Delete | "Delete “name” and its history? This cannot be undone and asks for your second code." |
Run now and Dry run are disabled while the workspace is frozen. To stop a run in progress, click the stop button on its row in the history and confirm.
The sheet of a job
| Fact | Content |
|---|---|
| State | enabled or paused, and created by agent |
| Expression | The stored schedule |
| Time zone | |
| Next runs | The next five due times |
| Agent, Prompt, Job file | For an agent job. The job file opens in Files |
| Command | For a command job |
| Delivers to | The target, and must deliver |
| Timeout | |
| If the previous run is still going, After a stop | Overlap and catch-up |
| Retries | "2, first after 60 s, then doubling", or "none" |
| Uniqueness key | When set |
| Resources | Weight and priority |
| Created by | Who, and when: an account, a session id for a job an agent created, or file:jobs/<name>.toml |
History
The History table lists the runs, newest first, 50 at a time (Show older runs):
| Column | Content |
|---|---|
| Due | When it was due |
| State | See below, with retry time and attempt number |
| Cause | schedule, manual, event, catch-up, and dry run |
| In queue | How long it waited for room on the machine |
| Duration | |
| Summary | What the run said (600 characters at most), the exit code, a link to the session of an agent run (Open the session) and to the output of a command run (Open the output) |
| State | Meaning |
|---|---|
| queued | Waiting for room on the machine, or for its retry |
| running | In progress |
| ok | Ended well and delivered |
| failed | A non-zero exit code, or the agent turn did not complete |
| timeout | Stopped at its timeout |
| skipped | Not run (overlap, uniqueness key, full queue) |
| silent | Ended well but delivered nothing while it had to |
How a run executes
- An agent job starts a new session with the job's profile, titled with the job name, with the prompt as its first message. Its turn is limited by the job's timeout and by the profile's policy, whichever is shorter. A question the agent asks with
vg asktakes its default at once: nobody watches a job. - A command job runs as the work user (
vg-ai) from the workspace root. It receives the secrets granted in modeenvtojob:<name>on the Secrets screen. It may callvg notify,vg deliverandvg log, and no othervgcommand. - Jobs wait behind people in the interface and channel conversations when the machine is busy.
Jobs created by agents
An agent whose policy allows it (the ventgris policy does) can create, enable, disable and reschedule jobs by itself with vg job create, vg job enable, vg job disable. Such a job is enabled at once and tagged created by agent, inside caps:
| Cap | Value |
|---|---|
| Jobs managed by agents | 40 at most |
| New jobs created by agents | 10 per 7 days |
| Shortest interval between two due times | 5 minutes |
| Deliver to | Required |
| Policy | The job's profile cannot have a wider policy than the session that creates it |
A creation outside a cap is refused with the reason, for example "a job managed by an agent runs at most every 5 minutes". System jobs do not count.
Job files
A job can also be declared by a file jobs/<name>.toml in the workspace. The workspace is read every minute:
- a new file creates its job, tagged job file, enabled or paused as the file says;
- a changed file updates its job;
enabledis read only at creation, so a job you pause stays paused; - a removed file pauses its job, with its history kept;
- a job file gets the same caps as a job created by an agent:
deliver_torequired, at most one run every 5 minutes; - a file that cannot be read is listed in a banner, "Some files of the jobs/ folder were not taken:", with the reason.
# jobs/weekly-report.toml
kind = "agent"
agent = "weekly-report"
prompt = "Write the weekly report and post it."
schedule = "weekly mon 08:00"
deliver_to = "discord:reports"
The full format, with every key, is on Job files.
A new workspace comes with one job file: memory.daily-close, every day at 23:45 with the memory profile. See Memory.
Background tasks
Below the jobs, Background tasks lists the long commands that sessions run outside a turn: a test suite, a transcription, a video render. "Each one waits for room in memory, and its session is told when it ends." You do not start them from this screen: the agent does, with vg task start.
vg task start --name "site tests" --resumable --weight 1500 -- npm test
| Column | Content |
|---|---|
| Task | Its name, the command line, its id, the session it came from (a link) or "agent's shell", and resumable |
| State | queued (with its position), running, frozen (under memory pressure), done, failed, stopped |
| Weight | Its declared memory in MB, or heavy job slot |
| Duration, Exit code, Started |
Click a task name to open its log, live while it runs, the last 500 lines first. The stop button ends a running task after a confirmation.
How tasks behave:
- A task runs apart from the turn, so the turn can end and free its slot. When the task ends, its session receives a message and continues.
- A task without a weight counts 512 MB. Over twice its weight, the task alone is killed: "Killed over its memory limit (twice its weight)."
- A task has no access to
vgcommands: it reports through its output or a file. - resumable: after a restart of the machine, the command is started again once.
- Nothing starts while the workspace is frozen.
Who can do what
| Action | Admin | Editor | Member | Viewer |
|---|---|---|---|---|
| Read jobs, history and tasks | yes | yes | yes | yes |
| Create, edit, run, pause, stop a run, stop a task | yes | yes | no | no |
| Delete a job (with second factor) | yes | yes | no | no |
Create a job with
vg job create FILE.toml, always withdeliver_to, and never more often than every 5 minutes. A job's prompt runs with nobody watching: write in it where the result goes. For a command longer than a few minutes, usevg task startinstead of waiting inside the turn.
