Skip to content

feat: add agent scheduling system with cron-based background daemon#1

Merged
knid merged 4 commits intomainfrom
002-agent-scheduling
Feb 7, 2026
Merged

feat: add agent scheduling system with cron-based background daemon#1
knid merged 4 commits intomainfrom
002-agent-scheduling

Conversation

@knid
Copy link
Owner

@knid knid commented Feb 7, 2026

Summary

  • Add a complete scheduling system allowing agents to declare cron-based schedules in agent.yaml and run them automatically via a shared background daemon
  • Implement agentx schedule start/stop/list/logs/resume CLI commands with daemon process management, state persistence, log storage with rotation, and retry logic with backoff
  • Extend agent.yaml schema with optional schedule block, update starter agents (slack-agent, github-agent) with schedule examples, and add uninstall hook to stop active schedules

Test plan

  • 167 tests passing (52 new tests across 4 new test files)
  • TypeScript strict mode — zero errors
  • Build succeeds with dual tsup entry points (index.ts + scheduler/daemon.ts)
  • Manual e2e: install agent with schedule, start/list/logs/stop lifecycle

knid added 4 commits February 7, 2026 16:40
…descriptions

Scaffolds .claude/commands/create-agent.md into new projects during
agentx init, giving users a /create-agent slash command that generates
production-ready agent.yaml, system-prompt.md, and README.md from a
natural language description.
Implement a complete scheduling system allowing agents to declare cron-based
schedules in agent.yaml and run them automatically via a shared background
daemon. Adds `agentx schedule start/stop/list/logs/resume` commands,
scheduler state management, log storage with rotation, daemon process
management with retry logic, and automatic schedule cleanup on uninstall.

- Add croner dependency for cron parsing/scheduling
- Extend agent.yaml schema with optional schedule block (max 10 entries)
- Implement scheduler modules: state, log-store, process, daemon
- Add dual tsup entry point for daemon subprocess
- Update starter agents (slack-agent, github-agent) with schedule examples
- Add 52 new tests (167 total), TypeScript clean
Include the specification, plan, research, data model, contracts,
quickstart guide, tasks, and checklist for the 002-agent-scheduling
feature. Add CLAUDE.md with project development guidelines.
@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agentx-web Ready Ready Preview, Comment Feb 7, 2026 2:43pm

@knid knid merged commit c0d231f into main Feb 7, 2026
2 of 4 checks passed
@knid knid deleted the 002-agent-scheduling branch February 7, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant