Research scheduling in Claude Code: capabilities, costs, use cases
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 7
Description
Goal
Understand how Claude Code's scheduling primitives actually work — /schedule (remote cron-based agents), /loop (recurring or self-paced in-session), and the underlying CronCreate tool — and decide which use cases are worth committing to as team standards or new skills.
Current Behavior
We've referenced /schedule and /loop in conversation multiple times but haven't actually used either. Several open questions before we can recommend them confidently:
- Hosting: Where does a scheduled agent run? Anthropic-hosted, local laptop, cloud function?
- Auth & billing: Does it use the Claude Max subscription or require an API key with pay-per-token billing? (See related: GH #100, where the same question came up for the autonomous PR reviewer.)
- Capabilities: Can a scheduled agent push branches, open PRs, post issue comments? What's the permission model?
- State: What persists between runs — file system, conversation context, scratch files in the repo?
- Tool availability: Are MCP servers (ADO, Gmail, etc.) available inside a scheduled run, or only built-in tools?
- Failure handling: What happens when a run errors? Notification? Retry? Silent?
- Mental model: When do you reach for
/schedulevs/loopvsCronCreate? Are they layered, or alternatives?
Proposed Solution
- Read the official Claude Code docs on scheduling primitives — capture the authoritative answers to the questions above.
- Run one low-stakes experiment end-to-end to learn the lifecycle. Suggested test case: a weekly agent that runs
setup-env.shin dry-run mode and notifies ifstandards/CLAUDE.mdwould change anything. Picked because (a) we just discovered standards drifting 5+ weeks unnoticed, and (b) it doesn't push code or touch other systems if it goes wrong. - Catalog candidate use cases (initial list below — extend during research).
- Filter to a shortlist of routines worth standardizing across the team and propose them as separate follow-up issues.
Candidate Use Cases (initial)
Patterns observed in recent sessions where scheduling could help:
| Pattern | Example | Cadence |
|---|---|---|
| Standards drift detection | Notify if ~/.claude/CLAUDE.md is behind standards/CLAUDE.md (this happened — 5.5 weeks of drift, caught manually) |
Weekly |
| Sprint work item check-in | At end of sprint, review "Planned" items in a container user story (e.g., ADO 7282) and flag what didn't ship | One-off, end of iteration |
| Stale branch sweep | List branches/* that are merged into main or have no commits in N weeks; recommend deletion |
Weekly |
| PR babysit / triage | Check open PRs awaiting review, stuck on CI, or with merge conflicts | Daily during active sprint |
| Feature flag / gate cleanup | After a flag is shipped, open a removal PR N weeks later | One-off, scheduled at flag launch |
| Soak window verification | Post-rollout, query metrics and post results | One-off, scheduled at rollout |
| Long-running job status | Periodic check during a deploy with known ETA | One-off, every N minutes during deploy |
Recurring /improve-stories pass |
Weekly triage of newly opened issues that need fleshing out | Weekly |
Recurring /self-review digest |
Bundle session learnings from the week into a single review | Weekly |
Acceptance Criteria
- A short doc (most likely a new section in
standards/CLAUDE.md) describes when to use/schedulevs/loopvsCronCreate, with one concrete example each. - At least one real scheduled agent is running against this repo end-to-end (the standards-drift detector or equivalent) — proves the lifecycle works.
- Authentication, hosting, and billing model is documented unambiguously, including the "do I need an API key?" question that GH #100 also runs into.
- The candidate use-case table is filtered to a shortlist with a recommendation for each: ship as recurring routine, file as one-off scheduled agent, or skip.
- Any security concerns (push permissions, secret handling, repo write access from a scheduled context) are surfaced and addressed before any agent that mutates state is scheduled.
Open Questions
- Should this issue be split into research (the doc) + implementation (the first scheduled agent) PRs, per the team standard on phased work?
- Does the answer to "where does a scheduled agent run" overlap with GH #100's hosting decisions for the autonomous PR reviewer? If they share infrastructure, we should align early rather than build twice.
Related
- #100 — first autonomous agent (same hosting/auth/billing questions)
- #86 — local LLM infrastructure (could intersect if scheduled agents become a token-cost concern)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official Claude Code scheduling documentation and the related decisions in issues #100 and #86. Use setup-env.sh in dry-run mode for the proposed low-stakes experiment, then document the lifecycle, hosting, authentication, billing, permissions, and failure behavior in standards/CLAUDE.md. Done means the three primitives are compared, one scheduled agent runs end-to-end, and candidate use cases and security concerns have recommendations.
Written by the indexing model from the issue text.
Assessment
- Domain
- ai, devtools, documentation
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100