# agents-cron

> Automate recurring agent tasks using cron schedules and a local CLI-driven task store.

agents-cron is a free AI agent skill on Agensi by fookhsu, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [fookhsu](https://www.agensi.io/creators/fookhsu)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agents-cron
- Tags: automation, cron, node-js, cli, workflow-automation

## About this skill

Standard AI agents are reactive, waiting for a prompt before they act. This skill enables scheduled and recurring agent execution within your local development environment, letting you automate code audits, documentation updates, or status reports without manual intervention.

### What it does
- **Schedule prompt execution** by storing prompts with specific time rules for later or recurring runs.
- **Manage task lifecycle** through commands to add, enable, disable, or remove tasks in a project-scoped store.
- **Inspect run history** via a local dashboard that tracks summaries, errors, and session records for every execution.
- **Multi-agent support** allows tasks to run through Pi, Claude Code, or Codex adapters.
- **Granular time control** supports ISO timestamps, duration intervals, and standard cron expressions.

### How it works
1. **Define the task** using commands like `/loop`, `/remind`, or `/schedule` followed by your prompt and timing.
2. **Assign an agent** to handle the task, such as pinning a headless Claude Code session for code-intensive work.
3. **External trigger** occurs when your system's scheduler calls the CLI to execute due tasks.
4. **Monitor via dashboard** by launching the local web view to debug failures or review successful completions.

### Frameworks & tools
Built for Node.js (v22.19+) environments. Integrates with the `agents-cron` CLI and supports agent adapters for Pi, Claude Code, and Codex.

### Why this beats prompting it yourself
Manually running the same maintenance prompts every morning is a waste of developer time. This skill provides a structured persistence layer and CLI for prompts, ensuring background tasks run reliably and providing a centralized dashboard to audit the results across multiple agent types.

### Use cases
- Schedule a daily code quality audit every morning at 8 AM.
- Remind an agent to check for outdated dependencies every Monday.
- Run a recurring documentation sync between source code and README files.
- Automate a project status summary for delivery every Friday afternoon.

### Known limitations
Execution requires an external scheduler (like system cron) to invoke the CLI. Headless Claude Code tasks require an explicit tool allowlist to bypass interactive permission prompts.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agents-cron skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill change the way I interact with my AI agents?

While agents are typically reactive, this skill allows you to transform them into proactive workers by storing prompts in a local task store and executing them based on cron schedules or time intervals.

### Which AI agents can I use with the scheduler?

The skill includes adapters for Pi, Claude Code, and Codex, allowing you to route specific scheduled tasks to the agent best suited for the job.

### What is included in this package and what do I need to provide?

You will receive the scheduler logic, the local CLI-driven task store, and the dashboard for monitoring run history; however, you must provide the external trigger (like system cron) to invoke the CLI.

### Are there specific environment requirements to run these scheduled tasks?

Yes, it requires Node.js (v22.19+) and is designed for local development environments where you can manage a project-scoped task store.

### How can I track if a scheduled task failed or succeeded?

The skill includes a built-in local dashboard that allows you to inspect run history, view session records, and debug errors from previous executions.

### Can this skill run code-heavy tasks autonomously without my intervention?

For agents like Claude Code, you will need to configure an explicit tool allowlist within your environment to ensure tasks run smoothly without waiting for manual interactive permissions.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
