Skip to content

[FEATURE] Add "github" scheduling backend - schedules as Actions workflows in a .routines repo #1055

Description

@edenreich

Summary

Add a github scheduling backend: cloud scheduling with zero user-owned infrastructure. Instead of requiring a long-running infer daemon on a machine the user operates (and, for remote access, SSH tunnels - see the previous revision of this issue), schedules are materialized as GitHub Actions scheduled workflows in a repository the user configures. GitHub runs the jobs; the user owns nothing but a repo.

The earlier proposal (a desktop channel to a remote daemon) assumed the user runs a server. That is too complex for beginners who just want "run this prompt every morning". Deferred, not dropped - it can return as a later backend.

How it works

  • New scheduling backend named github, configurable in .infer/config.yaml:

    scheduler:
      backend: github
      github:
        repository: <owner>/.routines   # default: .routines under the authenticated user
  • Each scheduled job maps to one workflow file in the repo (.github/workflows/<job-id>.yml) that runs on schedule: cron and executes the job's prompt via inference-gateway/infer-action.

  • Every save (create/update/delete of a job) renders the workflow files and opens a pull request against the repo. Merging the PR deploys the schedule. The PR is the review step and the audit trail.

  • If the configured repo does not exist, create it (private by default) on first save.

  • Provider credentials are repo Actions secrets; the PR body reminds the user which secrets the workflow expects. The CLI never writes secrets.

Notes

  • GitHub Actions cron is UTC-only, 5-minute minimum granularity, and does not support @every/@daily descriptors - validate and reject or translate on save.
  • Job output lives in the Actions run logs (and whatever infer-action commits/opens in the repo). No daemon, no channel delivery for these jobs in the first cut.

Out of scope (first cut)

  • desktop channel / remote daemon connectivity (previous scope of this issue).
  • Channel delivery (Telegram etc.) of GitHub-backed job output.
  • Syncing runs back into local storage / RunRecords.
  • Other cloud backends.

Acceptance Criteria

  • scheduler.backend: github with a configurable repository (default .routines) is supported in config.
  • Saving a schedule renders one Actions workflow per job using inference-gateway/infer-action with the job's cron and prompt.
  • Every save opens a pull request with the rendered changes; nothing is pushed to the default branch directly.
  • The repo is created automatically (private) if it does not exist.
  • Cron expressions unsupported by GitHub Actions are rejected or translated with a clear error at save time.
  • The scheduled job produce the workflows conversation output (~/.infer/conversations/*.jsonl) as an artifacts the cli can pull it locally 10 min (poll for artifacts every 10min after that) after the run, all is configurable
  • Docs: a short guide covering setup, required secrets, and the save-to-PR flow.

Activity

  1. added
    enhancement
    on Aug 12, 2026
  2. moved this to Todo in 2026on Aug 12, 2026
  3. changed the title [-][FEATURE] Add desktop channel for remote daemon notifications and control[/-] [+][FEATURE] Add "github" scheduling backend - schedules as Actions workflows in a .routines repo[/+] on Aug 12, 2026
  4. inference-gateway-releaser commented on Aug 12, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.168.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. moved this from Todo to Done in 2026on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions