
Cc Use
Register local heartbeat or cron schedules so cc-use keeps checking and running supervised agent work in persistent tmux sessions without you babysitting the host.
Install
npx skills add https://github.com/zc277584121/cc-use --skill cc-useWhat is this skill?
- Two schedule modes: heartbeat (tmux session health) and cron (timed prompt or script)
- Persists records under ~/.cc-use/schedules.json with logs in ~/.cc-use/logs/
- Registers host jobs via macOS launchd LaunchAgents or Linux crontab entries tagged #cc-use:<id>
- Callback execution through scripts/cc-use schedule-run <id> tied to the installed skill path
- Default scheduled policy: sandbox danger-full-access and approval never for unattended runs
Adoption & trust: 333 installs on skills.sh; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Recurring supervision and scheduled prompts are production-adjacent habits—you keep long-running agent sessions healthy after you have moved past one-off builds. Heartbeat mode explicitly checks that an inner tmux session stays responsive, which maps to ongoing monitoring rather than a single deploy or launch task.
Common Questions / FAQ
Is Cc Use safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Cc Use
# Scheduled Tasks cc-use can register local recurring tasks for long-running project supervision. The schedule feature has two modes: - `heartbeat`: periodically checks that a persistent inner tmux session is healthy and responsive. - `cron`: runs a scheduled prompt or executable script at a calendar time. Use schedules only when the user explicitly asks to keep a recurring local task running. Schedules are host-local state. They are not portable by themselves and should be migrated deliberately per machine. ## Storage And Registration cc-use stores schedule records under: ```text ~/.cc-use/schedules.json ~/.cc-use/logs/ ``` The helper also registers the task with the host scheduler: - macOS: launchd plist files under `~/Library/LaunchAgents/`. - Linux: user crontab entries marked with `#cc-use:<id>`. The registered command calls back into the installed helper: ```bash <skill_dir>/scripts/cc-use schedule-run <id> ``` This means the schedule behavior follows the installed cc-use skill code. If the helper path changes during migration, update the launchd or crontab entry. ## Agent Selection Schedules are agent-neutral. By default, `--agent auto` uses the same agent family as the outer session that creates the schedule. You may also pass an explicit supported agent family when the user asks for one. For scheduled tasks, the default execution policy is intentionally broad: ```text sandbox = danger-full-access approval = never ``` This avoids recurring tasks getting stuck on routine filesystem or network access. Use narrower settings only when the user asks for that tradeoff. For Codex schedules, `--profile NAME` is supported and stored in the schedule record. Scheduled Codex `exec` runs include `--skip-git-repo-check` so tasks can run from ordinary project or script directories that are not git repositories. ## Heartbeat Create or reuse a heartbeat schedule: ```bash <skill_dir>/scripts/cc-use schedule-add heartbeat NAME \ --project "$PWD" \ --interval-minutes 15 \ --agent auto \ --session ccu-my-project ``` Important options: - `NAME`: human-readable schedule name. - `--project DIR`: project root for state and tmux session derivation. - `--interval-minutes N`: run interval. Default is `15`. - `--agent auto`: use the same agent family as the creator. - `--profile NAME`: Codex profile, when the user explicitly asks for one. - `--session NAME`: explicit tmux session name. On first creation, cc-use creates this project-local file if missing: ```text <project>/.cc-use/heartbeat.md ``` The heartbeat runner delegates the heartbeat text to the persistent inner tmux session and records the latest state under: ```text <project>/.cc-use/heartbeat-state.json ``` The heartbeat should be small and cheap. It should ask the inner session to report whether it is healthy, blocked, or needs attention. ## Cron Create a cron-style scheduled task: ```bash <skill_dir>/scripts/cc-use schedule-add cron NAME \ --project "$PWD" \ --cron-expr "30 22 * * *" \ --prompt "Read ./daily-report.md and follow the instructions." \ --agent auto ``` For a script-backed task, pass the executable script path as the prompt: ```bash <skill_dir>/scripts/cc-use schedule-add cron NAME \ --project "$PWD" \ --cron-expr "30 22 * * *" \ --prompt "$PWD/.cc-use/daily-report.sh" \ --agent auto ``` If the prompt is an executable file path, `schedule-run` executes the script directly. Otherwise, it sends the prompt to the selected non-interactive agent runner. Use `--search` when the scheduled Codex task should enable web search: ```bash <skill_dir>/scripts/cc-use schedule-add cron NAME \ --project "$PWD" \ --cron-expr "30 9 * * 5" \ --prompt "Read ./weekly-report-prompt.md and follow the instructions." \ --agent codex \ --profile zilliz \ --search ``` ## Inspecting And Operating Schedules List schedules: ```bash <skill_dir>/scripts/cc-use schedule-list ``` Show all schedules or one schedule with its latest l