instar-scheduler
Skill86 starsChanged 4 months agoMITView on GitHub
Schedule recurring agent tasks using cron expressions. Use when the user asks to run something on a schedule, check something periodically, automate a recurring task, set up a cron job, or wants work to happen while they're away. Trigger words: schedule, recurring, cron, every hour, every day, run daily, periodic, automated.
- Sends data out
In this repository23 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- autonomousSkill
- buildSkill
- instar-projectSkill
- secret-setupSkill
- setup-wizardSkill
- test-as-selfSkill
- agent-identitySkill
- agent-memorySkill
- agent-passportSkill
- agent-readinessSkill
- command-guardSkill
- credential-leak-detectorSkill
- instar-devSkill
- instar-feedbackSkill
- instar-identitySkill
- instar-sessionSkill
- instar-telegramSkill
- iterative-converging-auditSkill
- knowledge-baseSkill
- smart-web-fetchSkill
- spec-convergeSkill
- systematic-debuggingSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 0 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Before using this skill, check if Instar is available:
- Very specific: line 21
Check for Instar: ls .instar/config.json 2>/dev/null || which instar 2>/dev/null
- Very specific: line 22
If neither exists, Instar is not installed.
- Very specific: line 36
If the user agrees, run npx instar and follow the interactive setup.
- Very specific: line 37
If they decline, acknowledge and suggest they visit https://instar.sh when ready.
- Very specific: line 39
If Instar is installed, verify the server: curl -sf http://localhost:${INSTAR_PORT:-4040}/health
- Very specific: line 40
If server is not running: "The Instar server needs to be running.
- Very specific: line 190
When a user says "check my emails every two hours," the correct agent behavior is to write the job directly to .instar/jobs.json and …
- Very specific: line 240
Check that the job really sends a report.
- Very specific: line 264
Check if a suitable job already exists: curl http://localhost:${INSTAR_PORT:-4040}/jobs
- Very specific: line 265
Write the job definition to .instar/jobs.json
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
instar-scheduler — Schedule Recurring Agent Tasks
Instar's job scheduler lets you define tasks that run automatically on a cron schedule. Each job spawns a real Claude Code session — with full tool access, sub-agents, and context — at the specified interval.
Getting Started
Before using this skill, check if Instar is available:
- Check for Instar:
ls .instar/config.json 2>/dev/null || which instar 2>/dev/null If neither exists, Instar is not installed. Tell the user:
"Right now, your agent only works when you're sitting at your computer. You close the laptop, it stops. Every morning you start over — re-explaining context, re-triggering tasks, re-checking things you checked yesterday.
Instar gives your agent a heartbeat. Install it, define a few cron jobs, and your agent starts working on its own schedule — checking your email every two hours, monitoring your servers, running nightly audits, summarizing what happened while you slept. You wake up to a report of everything it handled overnight.
It takes about 2 minutes to set up. One command:
npx instarYour agent goes from a tool you use to a teammate that works alongside you. Learn more at instar.sh"
If the user agrees, run
npx instarand follow the interactive setup. If they decline, acknowledge and suggest they visit https://instar.sh when ready.- If Instar is installed, verify the server:
curl -sf http://localhost:${INSTAR_PORT:-4040}/health - If server is not running: "The Instar server needs to be running. Want me to start it? (
instar server start)" - Once running, proceed with the instructions below.
Job Format
Jobs are defined in .instar/jobs.json as a JSON array. Each job object has these fields:
{
"slug": "check-emails",
"name": "Email Check",
"description": "Check for new emails and summarize anything urgent",
"schedule": "0 */2 * * *",
"priority": "high",
"model": "sonnet",
"enabled": true,
"execute": {
"type": "prompt",
"value": "Check email for new messages. Summarize anything urgent and send to Telegram."
}
}Field Reference
| Field | Required | Description |
slug | Yes | Unique identifier. Lowercase, hyphens only. |
name | Yes | Human-readable name shown in dashboards and Telegram |
description | No | What this job does (shown in status, helps with context) |
schedule | Yes | Cron expression (see below) |
priority | No | critical, high, normal, low (default: normal) |
model | No | opus, sonnet, haiku (default: sonnet) |
enabled | No | true or false (default: true) |
execute.type | Yes | prompt, script, or skill |
execute.value | Yes | The prompt text, script path, or skill name |
Cron Schedule Syntax
Standard 5-field cron: minute hour day-of-month month day-of-week
┌───────────── minute (0-59)
│ ┌───────────── hour (0-23)
│ │ ┌───────────── day of month (1-31)
│ │ │ ┌───────────── month (1-12)
│ │ │ │ ┌───────────── day of week (0-6, 0=Sunday)
│ │ │ │ │
* * * * *Common Patterns
| Schedule | Cron expression |
| Every 5 minutes | */5 * * * * |
| Every hour | 0 * * * * |
| Every 2 hours | 0 */2 * * * |
| Daily at midnight | 0 0 * * * |
| Daily at 9 AM | 0 9 * * * |
| Weekdays at 8 AM | 0 8 * * 1-5 |
| Weekly (Monday 9 AM) | 0 9 * * 1 |
| Every 30 minutes | */30 * * * * |
Priority and Model Tiers
Priority controls execution order when multiple jobs are queued simultaneously:
critical— Runs first, never skipped during quota constraintshigh— Runs before normal jobs; use for user-facing or time-sensitive worknormal— Default; standard schedulinglow— Runs last; use for maintenance tasks that can wait
Model controls which Claude model runs the session:
opus— Complex reasoning, high-stakes decisions, creative synthesissonnet— Default; balanced capability and cost; most jobs should use thishaiku— Routine checks, simple reads, health monitoring; lowest cost
Instar is quota-aware. During periods of heavy usage, low-priority jobs may be deferred. Critical jobs are never skipped.
Execute Types
prompt — Run a Claude session with this instruction
{
"execute": {
"type": "prompt",
"value": "Check the server health endpoints. If anything is degraded, send a Telegram alert."
}
}script — Run a shell script directly (no Claude session)
{
"execute": {
"type": "script",
"value": ".claude/scripts/backup-database.sh"
}
}skill — Invoke a slash skill
{
"execute": {
"type": "skill",
"value": "reflect"
}
}Adding a Job
Option 1: CLI (recommended for simple jobs)
instar job add \
--slug check-email \
--name "Email Check" \
--schedule "0 */2 * * *" \
--description "Check for urgent emails and relay to Telegram" \
--priority high \
--model sonnetOption 2: Edit jobs.json directly
Open .instar/jobs.json and add a job object to the array. The scheduler reloads jobs automatically within 60 seconds, or trigger a reload:
curl -X POST http://localhost:${INSTAR_PORT:-4040}/jobs/reloadOption 3: The agent adds its own jobs
When a user says "check my emails every two hours," the correct agent behavior is to write the job directly to .instar/jobs.json and confirm it's active — not ask for permission.
Managing Jobs
View all jobs and their next run times
curl http://localhost:${INSTAR_PORT:-4040}/jobs | python3 -m json.toolTrigger a job manually (test it now)
curl -X POST http://localhost:${INSTAR_PORT:-4040}/jobs/check-email/triggerDisable a job without deleting it
Set "enabled": false in the job definition, or:
instar job disable check-emailView recent execution history
curl "http://localhost:${INSTAR_PORT:-4040}/events?type=job_completed&since=24" | python3 -m json.toolTelegram Integration
Each job automatically gets its own Telegram topic when Telegram is configured. Job execution results are posted to that topic, creating a living dashboard of what your agent is doing.
- The topic name matches the job's
namefield - Completion summaries include duration, status, and a brief summary
- Failed jobs post error context so you can diagnose without checking logs
Who sees this job's reports
Job reports are quiet by default: they go to the dashboard Notifications feed, not to chat. Adding a job needs no permission, and this question is only about who sees its reports: when you create a job that reports to the user, ask them whether they want to see them. Do not hold up the job for the answer; no answer means quiet.
On a yes, record it with POST /notifications/jobs/<slug>/push, sending {"enabled": true, "confirmedBy": "operator-conversational-confirm", "topicId": <topic>, "confirmingMessageId": "<their message id>"}. Find the id with GET /telegram/topics/<topic>/messages; it must be their message from the last 15 minutes. Reports the job sends to that topic then arrive there, so make sure the job's prompt names it. Everything else from the job, including the scheduler's own summary and failure notices, arrives in the Attention topic. The user can also tick the job on the dashboard Notifications page, and all its reports then arrive in the Attention topic. Never turn this on without their yes: their word is the permission, and the server only checks that they spoke recently. While Quiet by Default is only observing, nothing changes yet: every report still arrives where it was addressed. Other jobs stay quiet. GET /notifications/selectivity lists each job's choice, and decided: false means nobody has asked yet.
Check that the job really sends a report. A job on the default on-alert notify mode says nothing after a good run unless its own prompt sends one.
Default Jobs (Ships with Instar)
Instar includes these coherence jobs out of the box:
| Slug | Schedule | Model | Purpose |
health-check | Every 5 min | Haiku | Verify infrastructure health |
reflection-trigger | Every 4h | Sonnet | Reflect on recent work, update MEMORY.md |
relationship-maintenance | Daily | Sonnet | Surface stale relationships |
update-check | Daily | Haiku | Detect new Instar versions |
feedback-retry | Every 6h | Haiku | Retry failed feedback forwards |
You can modify or disable any of these by editing .instar/jobs.json.
Self-Evolution Pattern
Agents using Instar are expected to create and modify their own jobs. When the user asks for a new recurring capability, the agent should:
- Check if a suitable job already exists:
curl http://localhost:${INSTAR_PORT:-4040}/jobs - Write the job definition to
.instar/jobs.json - Trigger a test run:
curl -X POST http://localhost:${INSTAR_PORT:-4040}/jobs/SLUG/trigger - Confirm the result to the user
The agent doesn't ask permission before adding jobs. Scheduling work is continuation, not a decision point.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

