Night shift: coding agents that work while you sleep
Queue the work you didn’t finish today and give each task to an open agent or to a new agent opened for the night. Every project and every group has its own shift. In the morning you get one report with each task’s result, the draft pull requests opened and anything that got stuck.
This feature is in the Pro and Team plans. On the free plan it shows as locked; sign in with your AgentVera account and upgrade to unlock it. Compare plans
A shift for each project and group
Every project and every group has its own hours, settings, queue, start and stop buttons and morning report. A project’s shift sits in the Night shift tab of its Details page, and all shifts are behind the Night shift button on the home screen.
- The default window is 23:00–07:00; “start automatically every night” runs it on its own.
- Add tonight’s tasks, then queue them or start right away.
- Two tasks run at once by default, up to six.
- Ending the shift starts no new tasks; running ones carry on and the morning report is written.
Who does the task
For each task you pick who does it. The agent you choose works on it overnight in its own folder and its own conversation and is not closed afterwards; tasks given to the same agent run one after another. A group’s shift gives tasks only to the group’s agents. A queued task can be handed to another agent.
- With “open a new agent”, a new Claude Code or Codex agent is opened for the night.
- The new agent works in its own worktree on a night/<date>-<slug> branch and closes when it is done.
- A draft pull request is opened on GitHub for its finished work.
Rules for the agent
The agent is told you are asleep: it must not ask questions, it commits but does not push, runs the tests and ends with a done or stuck marker. If it stops without a marker it is nudged up to twice, then marked stuck. Tasks waiting for an approval are not approved overnight; they are listed in the morning report.
Morning report
When the window ends you get a desktop notification and the report is saved as a Markdown file. With Telegram on, a summary is sent too; it carries counts only (done, PRs opened, stuck, still running), not task titles.
Questions
Does it run while my computer is off?
No. The night shift needs the app open and the computer awake.
Will the agent push to my main branch?
No. The agent is told not to push. A new agent’s work stays on its own night/ branch and the app opens a draft pull request for it.
Can I give a task to an agent that is already open?
Yes. The agent you pick does the task in its own folder and conversation and is not closed afterwards. In a group’s shift only that group’s agents can be picked.
What happens to a task that asks for approval at night?
It is not approved; it waits and is listed in the morning report.
How many tasks run at once?
Two by default, up to six. Tasks given to the same agent run one after another.
Related features
Related terms:Git worktreePermission modes
Bring your agents to one desk.
Start on the free plan. Download it, add a project folder and open your first agent.
Posts on this topic
Blog- October 27, 2026Claude Code headless mode: claude -p for scripts and CIClaude Code headless mode explained: claude -p, JSON and stream-json output, --allowedTools, --max-turns, --bare, resuming sessions, piping input, and use in cron and CI.
- October 24, 2026Schedule Claude Code tasks with cron in AgentVeraSchedule Claude Code tasks: send a message to any coding agent on a cron schedule, choose what happens when it is busy, and move up to event-driven automations.
- October 22, 2026How to run Claude Code overnight safelyRun Claude Code agents unattended overnight: Auto mode instead of skipping permissions, a worktree per task, tests and limits, and apps that queue the work.