CRON-SCHEDULED CLAUDE CODE TASKS IN ISOLATED GIT WORKTREES
A community plugin, Claude Matrix (on claudeonrails.dev), adds a "Dreamer" mode to schedule Claude Code tasks via cron/launchd or natural language, run them in ...
A community plugin, Claude Matrix (on claudeonrails.dev), adds a "Dreamer" mode to schedule Claude Code tasks via cron/launchd or natural language, run them in isolated git worktrees/branches, then auto-commit/push and clean up. Use cases include running tests and fixing failures, pruning dead code/dependencies, and updating docs/changelogs from recent commits/PRs. It avoids touching your working branch by creating a new worktree/branch per run.
Automates routine code maintenance overnight without risking mainline branches.
Worktree isolation and auto-commits keep AI changes auditable and easy to revert.
-
terminal
Pilot on a non-critical repo with required CI checks before merging AI commits and a file-path allowlist.
-
terminal
Measure accuracy of "fix failing tests" and "dead code detection" jobs, and enforce execution timeouts and token budgets.
Legacy codebase integration strategies...
- 01.
Verify worktree compatibility with monorepos, submodules, and repo-specific Git hooks, and use a bot account with scoped credentials.
- 02.
Run the scheduler as a CI nightly job (not on dev laptops) with branch protections, CODEOWNERS review, and signed commits.
Fresh architecture paradigms...
- 01.
Establish bot user conventions (branch naming, commit signatures) and path-level policies for autonomous changes from day one.
- 02.
Define scheduled AI jobs as code (cron + scripts), persist logs/artifacts, and pipe diffs to your observability tooling.