Repository navigation
fix(supervisor): turn off Claude Code's own schedulers in bots - #70
Merged
Merged
Conversation
Asked to check something every day, bots called CronCreate. That job lives only in the bot's process: it dies on a restart, expires in 7 days and never shows in the Routines tab. Bots now run with --disallowedTools for CronCreate, CronDelete, CronList, ScheduleWakeup and RemoteTrigger, and their rules send the owner to the Routines tab instead.
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.
Problem
Asked to do something at a set time ("check the inbox every day at 8"), bots called Claude Code's built-in
CronCreate. It needs no permission, and its own result says the job is session-only: it dies when the process exits and expires after 7 days. Botloft never sees it, so nothing shows in the Routines tab, and the bot tells the owner the work is scheduled.Change
--disallowedTools CronCreate,CronDelete,CronList,ScheduleWakeup,RemoteTrigger(spec 7.4).A follow-up PR adds a
schedule_routinetool so bots can propose a real routine for the owner to approve.Tested with real Claude Code (2.1.284)
claude -p --output-format stream-json --verbose --setting-sources project,local --strict-mcp-config: thesystem/initlists the five scheduling tools among 28; with the flag they are gone (23).Manual check