{"id":46700183,"url":"https://github.com/open-gitagent/gitcron","last_synced_at":"2026-03-11T08:00:49.655Z","repository":{"id":342243181,"uuid":"1172934957","full_name":"open-gitagent/gitcron","owner":"open-gitagent","description":"Git-native scheduling, tasks, and reminders — cron.yaml to GitHub  Actions                                                                              ","archived":false,"fork":false,"pushed_at":"2026-03-05T11:06:34.000Z","size":403,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-10T12:59:44.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-gitagent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-04T21:00:56.000Z","updated_at":"2026-03-09T13:45:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/open-gitagent/gitcron","commit_stats":null,"previous_names":["open-gitagent/gitcron"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/open-gitagent/gitcron","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-gitagent%2Fgitcron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-gitagent%2Fgitcron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-gitagent%2Fgitcron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-gitagent%2Fgitcron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-gitagent","download_url":"https://codeload.github.com/open-gitagent/gitcron/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-gitagent%2Fgitcron/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30375452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-09T06:34:33.645Z","updated_at":"2026-03-11T08:00:49.631Z","avatar_url":"https://github.com/open-gitagent.png","language":"TypeScript","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./mascot.png\" alt=\"gitcron mascot\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/gitcron?style=flat-square\u0026color=blue\" alt=\"npm version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-%3E%3D20-brightgreen?style=flat-square\" alt=\"node version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/open-gitagent/gitcron?style=flat-square\" alt=\"license\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-5.7-blue?style=flat-square\u0026logo=typescript\u0026logoColor=white\" alt=\"typescript\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eGitcron\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eCron for AI agents.\u003c/strong\u003e\u003cbr/\u003e\n  Schedule any AI agent — gitclaw, gitagent, Claude Code SDK, OpenAI, or your own — using \u003ccode\u003ecron.yaml\u003c/code\u003e compiled to GitHub Actions.\u003cbr/\u003e\n  No custom runtime. No infra. Just git.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#quick-start\"\u003eQuick Start\u003c/a\u003e \u0026bull;\n  \u003ca href=\"#cronyaml\"\u003ecron.yaml\u003c/a\u003e \u0026bull;\n  \u003ca href=\"#cli-commands\"\u003eCLI Commands\u003c/a\u003e \u0026bull;\n  \u003ca href=\"#compatible-agents\"\u003eCompatible Agents\u003c/a\u003e \u0026bull;\n  \u003ca href=\"#branch-strategies\"\u003eBranch Strategies\u003c/a\u003e \u0026bull;\n  \u003ca href=\"#adapters\"\u003eAdapters\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Why Gitcron?\n\n**AI agents need cron.** Agents review PRs, fix lint, run audits, validate models, and track compliance — but there's no standard way to schedule them. Gitcron is **cron for AI agents**:\n\n1. Define schedules, tasks, and reminders in `cron.yaml`\n2. Run `gitcron generate` to compile into GitHub Actions workflows\n3. Commit and push — GitHub runs your agents automatically\n\nWorks with **any agent framework** via gitagent adapters:\n\n| Agent / Framework | Adapter | How it works |\n|---|---|---|\n| **gitclaw** | `gitclaw` | Full runtime with tools, hooks, audit, compliance |\n| **gitagent** | `claude` / `openai` | Framework-agnostic agent standard |\n| **Claude Code SDK** | `claude` | Claude-powered code agents |\n| **OpenAI** | `openai` | GPT-powered agents |\n| **Any LLM** | `system-prompt` | Generic system prompt export |\n| **Shell commands** | `command` | Any CLI tool, script, or binary |\n\n## Install\n\n```bash\nnpm install -g gitcron\n```\n\n## Quick Start\n\n```bash\n# Scaffold a new gitcron configuration\ngitcron init --template standard\n\n# Validate your configuration\ngitcron validate\n\n# Generate GitHub Actions workflow files\ngitcron generate\n\n# Preview without writing\ngitcron generate --dry-run\n```\n\n## cron.yaml\n\n```yaml\nspec_version: \"0.1.0\"\nname: my-project-cron\n\nschedules:\n  - name: nightly-code-review\n    cron: \"0 2 * * *\"\n    agent: code-reviewer\n    adapter: claude\n    prompt: \"Review all open PRs\"\n    branch:\n      strategy: pr\n      base: main\n\n  - name: weekly-lint\n    cron: \"0 6 * * 1\"\n    command: \"npm run lint -- --fix\"\n    branch:\n      strategy: commit\n      base: main\n\ntasks:\n  directory: \".gitcron/tasks\"\n  states: [pending, in_progress, review, done, cancelled]\n  transitions:\n    pending: [in_progress, cancelled]\n    in_progress: [review, done, cancelled]\n    review: [in_progress, done]\n    done: []\n    cancelled: []\n\nreminders:\n  - name: quarterly-review\n    type: recurring\n    cron: \"0 9 1 */3 *\"\n    action:\n      type: issue\n      title: \"Quarterly Review Due\"\n```\n\n## CLI Commands\n\n### `gitcron init`\n\nScaffold a new configuration.\n\n```bash\ngitcron init                        # Standard template\ngitcron init --template minimal     # Minimal template\ngitcron init --template full        # Full template with all options\n```\n\n### `gitcron generate`\n\nCompile `cron.yaml` into GitHub Actions workflow files.\n\n```bash\ngitcron generate              # Write workflow files\ngitcron generate --dry-run    # Preview output\ngitcron generate --diff       # Show changes\ngitcron generate --force      # Overwrite manually-edited files\n```\n\n### `gitcron validate`\n\nValidate `cron.yaml` against the schema.\n\n```bash\ngitcron validate              # Validate\ngitcron validate --strict     # Treat warnings as errors\n```\n\n### `gitcron list`\n\nList schedules, tasks, and reminders.\n\n```bash\ngitcron list                  # Show everything\ngitcron list --schedules      # Schedules only\ngitcron list --tasks          # Tasks only\ngitcron list --reminders      # Reminders only\n```\n\n### `gitcron status`\n\nShow an overview of your gitcron configuration.\n\n### `gitcron task`\n\nGit-native task management. Every mutation creates a git commit.\n\n```bash\ngitcron task create \"Update docs\" --priority high --assignee alice\ngitcron task list\ngitcron task list --state pending\ngitcron task update TASK-001 --state in_progress\ngitcron task show TASK-001\n```\n\n### `gitcron remind`\n\nManage reminders.\n\n```bash\ngitcron remind create weekly-sync --cron \"0 9 * * 1\" --title \"Weekly Sync\"\ngitcron remind list\ngitcron remind fire weekly-sync     # Manually trigger\ngitcron remind pause weekly-sync\ngitcron remind resume weekly-sync\n```\n\n## Compatible Agents\n\nGitcron is the scheduling layer for the entire AI agent ecosystem. Any agent that can run as a CLI command can be scheduled:\n\n- **gitclaw** — Enterprise agent runtime with built-in tools, hooks, audit logging, and compliance. Best for regulated environments.\n- **gitagent** — Open git-native agent standard. Adapters for Claude, OpenAI, and any LLM.\n- **Claude Code SDK** — Build and schedule Claude-powered agents via the `claude` adapter.\n- **OpenAI agents** — Schedule GPT-powered agents via the `openai` adapter.\n- **Custom agents** — Use `command` to schedule any script, binary, or CLI tool.\n\nGitcron ships with **skills** that teach agents how to manage their own schedules, tasks, and reminders — enabling self-scheduling agents that can create follow-up jobs, track work items, and set compliance deadlines autonomously.\n\n## Branch Strategies\n\n| Strategy | Behavior |\n|----------|----------|\n| `pr` | Create branch, run, commit, push, open PR |\n| `create` | Create branch, run, commit, push (no PR) |\n| `commit` | Run, commit, push directly to base branch |\n| `none` | Run only (no git operations) |\n\n## Schedule Types\n\n### Agent schedules\n\nRun a gitagent agent on a schedule:\n\n```yaml\nschedules:\n  - name: code-review\n    cron: \"0 2 * * *\"\n    agent: code-reviewer\n    adapter: claude\n    prompt: \"Review open PRs\"\n```\n\n### gitclaw agent schedules\n\nRun an agent using the gitclaw runtime (full tools, hooks, audit, compliance):\n\n```yaml\nschedules:\n  - name: code-review\n    cron: \"0 2 * * *\"\n    agent: code-reviewer\n    adapter: gitclaw\n    prompt: \"Review open PRs\"\n    agent_source:\n      type: local\n      path: \"./agents/code-reviewer\"\n    secrets: [ANTHROPIC_API_KEY]\n```\n\nThe generated workflow installs and runs `gitclaw -d \u003cdir\u003e -p \u003cprompt\u003e` instead of `gitagent run`.\n\n### Command schedules\n\nRun any shell command on a schedule:\n\n```yaml\nschedules:\n  - name: lint-fix\n    cron: \"0 6 * * 1\"\n    command: \"npm run lint -- --fix\"\n```\n\n## Adapters\n\n| Adapter | Runtime | Install | Best for |\n|---------|---------|---------|----------|\n| `claude` | Claude Code via gitagent | `gitagent` | Code changes, PRs |\n| `openai` | OpenAI API via gitagent | `gitagent` | Analysis, reviews |\n| `gitclaw` | gitclaw runtime (pi-agent-core) | `gitclaw` | Full agent with tools, hooks, audit, compliance |\n| `system-prompt` | System prompt export via gitagent | `gitagent` | Generic LLM integration |\n\n## Part of the open-gitagent ecosystem\n\n- [gitagent](https://github.com/open-gitagent/gitagent) — Git-native AI agent standard\n- [gitclaw](https://github.com/open-gitagent/gitclaw) — Universal git-native agent runtime\n- **gitcron** — Git-native scheduling and task management\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-gitagent%2Fgitcron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-gitagent%2Fgitcron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-gitagent%2Fgitcron/lists"}