feat: add agent scheduling system with cron-based background daemon#1
Merged
feat: add agent scheduling system with cron-based background daemon#1
Conversation
…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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent.yamland run them automatically via a shared background daemonagentx schedule start/stop/list/logs/resumeCLI commands with daemon process management, state persistence, log storage with rotation, and retry logic with backoffscheduleblock, update starter agents (slack-agent, github-agent) with schedule examples, and add uninstall hook to stop active schedulesTest plan