mngr-schedule
Run AI agents on a schedule.
A plugin for mngr that adds the mngr schedule command for scheduling recurring invocations of mngr commands (even on remote providers)
Overview
mngr schedule lets you set up cron-scheduled triggers that automatically run mngr commands (create, start, message, exec) at regular intervals -- for example, a nightly code review agent or a periodic test runner.
Usage
# Add a nightly agent that runs at 2am in modal
mngr schedule add --command create --args "--type claude --message 'review recent PRs' --provider modal" --schedule "0 2 * * *" --provider modal
# Pin the timezone the cron is interpreted in (modal only). Without --timezone,
# the schedule uses the deploying machine's local timezone, so the fire time
# depends on where you deployed from.
mngr schedule add --command create --args "..." --schedule "0 0 * * *" --timezone America/Los_Angeles --provider modal
# Add a named trigger that runs locally
mngr schedule add nightly-test-checker --command create --args "--message 'make sure all tests are passing'" --schedule "0 3 * * *" --provider local
# List all active local schedules
mngr schedule list --provider local
# List all modal schedules including disabled ones
mngr schedule list --provider modal --all
# Update an existing trigger
mngr schedule update my-trigger --schedule "0 4 * * *"
# Disable a trigger without removing it
mngr schedule update my-trigger --disabled
# Test a trigger by running it immediately
mngr schedule run my-trigger
# Remove a trigger
mngr schedule remove my-trigger
# Remove multiple triggers without confirmation
mngr schedule remove trigger-1 trigger-2 --force
Subcommands
Run mngr schedule <subcommand> --help for more details on each subcommand:
add-- Create a new scheduled triggerremove-- Remove one or more scheduled triggersupdate-- Modify fields of an existing triggerlist-- List scheduled triggersrun-- Execute a trigger immediately for testing
Packaging code for remote execution
Running mngr commands in a scheduled environment like Modal requires four things to be available in the Modal Function execution environment:
- The
mngrCLI itself. - For the
createcommand: the target project code the agent will run (or it must be supplied via the command, e.g.--snapshot <snapshot-id>). - The environment variables and files the command refers to.
- The
mngrconfiguration.
The mngr schedule plugin handles all of these automatically. The sections below describe how.
1. mngr CLI availability
The function's base image is built from the mngr Dockerfile, which already includes mngr and all its dependencies. Your project is then layered on top: it is packaged and extracted into the container at a configurable path (default /code/project, set by --target-dir), which becomes the working directory.
2. Code availability for create commands
There are two modes for how the target repo is packaged:
- incremental (default): the current HEAD commit hash is resolved and reused across deploys from the same repo, so the project doesn't need to be repackaged and uploaded each time.
- full: the entire current HEAD state of the repo (or the whole folder, if not a git repo) is packaged and uploaded on each deploy. Pass
--full-copyto enable.
Auto-merge at runtime
For a git repo, the scheduled function fetches and merges the latest code from the deployed branch before each run, so the agent always works with up-to-date code.
This requires GH_TOKEN to be available in the deployed environment (via --pass-env or --env-file).
Use --no-auto-merge to disable this behavior, or --auto-merge-branch <branch> to merge from a specific branch (defaults to the current branch at deploy time).
3. Ensuring environment variable and file availability for remote execution
The mngr schedule plugin automatically forwards any secrets and files required by the scheduled create or start commands. The "message" and "exec" commands need no files or environment variables.
4. Ensuring mngr configuration availability for remote execution
The mngr schedule plugin automatically syncs the relevant mngr configuration into the execution environment. This includes much of the data in ~/.mngr/ (except your own personal SSH keys, which are never transferred).
So that you can connect to the newly created agent, mngr schedule add automatically includes your SSH key as a known host for "create" and "start" commands.
Metadata
Release files for imbue-mngr-schedule 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| imbue_mngr_schedule-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for imbue_mngr_schedule-0.2.0-py3-none-any.whl |
Release files / imbue_mngr_schedule-0.2.0-py3-none-any.whl
| Download URL | imbue_mngr_schedule-0.2.0-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50f8afb64bccbac699ecaad65df34740691e3bee9cac3f8d32689a499aa8e390
|
|
BLAKE2b-256 checksum How to use checksums |
a9a086d18f1d3372f563609af2eb44af5c5a85e70ea6283bb487494de7bf2e3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for imbue-mngr-schedule 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for imbue_mngr_schedule-0.2.0-py3-none-any.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.