You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

gitcron

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitcron

Cron for AI agents — git-native scheduling, tasks, and reminders compiled to GitHub Actions

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

gitcron mascot

npm version node version license typescript

Gitcron

Cron for AI agents.
Schedule any AI agent — gitclaw, gitagent, Claude Code SDK, OpenAI, or your own — using cron.yaml compiled to GitHub Actions.
No custom runtime. No infra. Just git.

Quick Startcron.yamlCLI CommandsCompatible AgentsBranch StrategiesAdapters

Why Gitcron?

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:

  • Define schedules, tasks, and reminders in cron.yaml
  • Run gitcron generate to compile into GitHub Actions workflows
  • Commit and push — GitHub runs your agents automatically

Works with any agent framework via gitagent adapters:

Agent / FrameworkAdapterHow it works
gitclawgitclawFull runtime with tools, hooks, audit, compliance
gitagentclaude / openaiFramework-agnostic agent standard
Claude Code SDKclaudeClaude-powered code agents
OpenAIopenaiGPT-powered agents
Any LLMsystem-promptGeneric system prompt export
Shell commandscommandAny CLI tool, script, or binary

Install

npm install -g gitcron

Quick Start

# Scaffold a new gitcron configuration
gitcron init --template standard

# Validate your configuration
gitcron validate

# Generate GitHub Actions workflow files
gitcron generate

# Preview without writing
gitcron generate --dry-run

cron.yaml

spec_version: "0.1.0"
name: my-project-cron

schedules:
  - name: nightly-code-review
    cron: "0 2 * * *"
    agent: code-reviewer
    adapter: claude
    prompt: "Review all open PRs"
    branch:
      strategy: pr
      base: main

  - name: weekly-lint
    cron: "0 6 * * 1"
    command: "npm run lint -- --fix"
    branch:
      strategy: commit
      base: main

tasks:
  directory: ".gitcron/tasks"
  states: [pending, in_progress, review, done, cancelled]
  transitions:
    pending: [in_progress, cancelled]
    in_progress: [review, done, cancelled]
    review: [in_progress, done]
    done: []
    cancelled: []

reminders:
  - name: quarterly-review
    type: recurring
    cron: "0 9 1 */3 *"
    action:
      type: issue
      title: "Quarterly Review Due"

CLI Commands

gitcron init

Scaffold a new configuration.

gitcron init                        # Standard template
gitcron init --template minimal     # Minimal template
gitcron init --template full        # Full template with all options

gitcron generate

Compile cron.yaml into GitHub Actions workflow files.

gitcron generate              # Write workflow files
gitcron generate --dry-run    # Preview output
gitcron generate --diff       # Show changes
gitcron generate --force      # Overwrite manually-edited files

gitcron validate

Validate cron.yaml against the schema.

gitcron validate              # Validate
gitcron validate --strict     # Treat warnings as errors

gitcron list

List schedules, tasks, and reminders.

gitcron list                  # Show everything
gitcron list --schedules      # Schedules only
gitcron list --tasks          # Tasks only
gitcron list --reminders      # Reminders only

gitcron status

Show an overview of your gitcron configuration.

gitcron task

Git-native task management. Every mutation creates a git commit.

gitcron task create "Update docs" --priority high --assignee alice
gitcron task list
gitcron task list --state pending
gitcron task update TASK-001 --state in_progress
gitcron task show TASK-001

gitcron remind

Manage reminders.

gitcron remind create weekly-sync --cron "0 9 * * 1" --title "Weekly Sync"
gitcron remind list
gitcron remind fire weekly-sync     # Manually trigger
gitcron remind pause weekly-sync
gitcron remind resume weekly-sync

Compatible Agents

Gitcron is the scheduling layer for the entire AI agent ecosystem. Any agent that can run as a CLI command can be scheduled:

  • gitclaw — Enterprise agent runtime with built-in tools, hooks, audit logging, and compliance. Best for regulated environments.
  • gitagent — Open git-native agent standard. Adapters for Claude, OpenAI, and any LLM.
  • Claude Code SDK — Build and schedule Claude-powered agents via the claude adapter.
  • OpenAI agents — Schedule GPT-powered agents via the openai adapter.
  • Custom agents — Use command to schedule any script, binary, or CLI tool.

Gitcron 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.

Branch Strategies

StrategyBehavior
prCreate branch, run, commit, push, open PR
createCreate branch, run, commit, push (no PR)
commitRun, commit, push directly to base branch
noneRun only (no git operations)

Schedule Types

Agent schedules

Run a gitagent agent on a schedule:

schedules:
  - name: code-review
    cron: "0 2 * * *"
    agent: code-reviewer
    adapter: claude
    prompt: "Review open PRs"

gitclaw agent schedules

Run an agent using the gitclaw runtime (full tools, hooks, audit, compliance):

schedules:
  - name: code-review
    cron: "0 2 * * *"
    agent: code-reviewer
    adapter: gitclaw
    prompt: "Review open PRs"
    agent_source:
      type: local
      path: "./agents/code-reviewer"
    secrets: [ANTHROPIC_API_KEY]

The generated workflow installs and runs gitclaw -d <dir> -p <prompt> instead of gitagent run.

Command schedules

Run any shell command on a schedule:

schedules:
  - name: lint-fix
    cron: "0 6 * * 1"
    command: "npm run lint -- --fix"

Adapters

AdapterRuntimeInstallBest for
claudeClaude Code via gitagentgitagentCode changes, PRs
openaiOpenAI API via gitagentgitagentAnalysis, reviews
gitclawgitclaw runtime (pi-agent-core)gitclawFull agent with tools, hooks, audit, compliance
system-promptSystem prompt export via gitagentgitagentGeneric LLM integration

Part of the open-gitagent ecosystem

  • gitagent — Git-native AI agent standard
  • gitclaw — Universal git-native agent runtime
  • gitcron — Git-native scheduling and task management

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT

Keywords

git

FAQs

Package last updated on 05 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts