Loading...
Loading...
Create and manage Codex app automations stored in the local SQLite database (~/.codex/sqlite/codex-dev.db). Use when you need to add, list, update, enable/disable, delete, or run-now automations; edit automation names, prompts, RRULE schedules, or cwd scopes; or inspect automation records while troubleshooting app automation behavior.
npx skill4agent add tkersey/dotfiles croncroncronskills-zig/Users/tk/workspace/tk/skills-zigcronhomebrew-tap/Users/tk/workspace/tk/homebrew-taprun_cron_tool() {
install_cron_direct() {
local repo="${SKILLS_ZIG_REPO:-$HOME/workspace/tk/skills-zig}"
if ! command -v zig >/dev/null 2>&1; then
echo "zig not found. Install Zig from https://ziglang.org/download/ and retry." >&2
return 1
fi
if [ ! -d "$repo" ]; then
echo "skills-zig repo not found at $repo." >&2
echo "clone it with: git clone https://github.com/tkersey/skills-zig \"$repo\"" >&2
return 1
fi
if ! (cd "$repo" && zig build build-cron -Doptimize=ReleaseFast); then
echo "direct Zig build failed in $repo." >&2
return 1
fi
if [ ! -x "$repo/zig-out/bin/cron" ]; then
echo "direct Zig build did not produce $repo/zig-out/bin/cron." >&2
return 1
fi
mkdir -p "$HOME/.local/bin"
install -m 0755 "$repo/zig-out/bin/cron" "$HOME/.local/bin/cron"
}
local os="$(uname -s)"
if command -v cron >/dev/null 2>&1 && cron --help 2>&1 | grep -q "cron.zig"; then
cron "$@"
return
fi
if [ "$os" = "Darwin" ]; then
if ! command -v brew >/dev/null 2>&1; then
echo "homebrew is required on macOS: https://brew.sh/" >&2
return 1
fi
if ! brew install tkersey/tap/cron; then
echo "brew install tkersey/tap/cron failed." >&2
return 1
fi
elif ! (command -v cron >/dev/null 2>&1 && cron --help 2>&1 | grep -q "cron.zig"); then
if ! install_cron_direct; then
return 1
fi
fi
if command -v cron >/dev/null 2>&1 && cron --help 2>&1 | grep -q "cron.zig"; then
cron "$@"
return
fi
echo "cron binary missing or incompatible after install attempt." >&2
if [ "$os" = "Darwin" ]; then
echo "expected install path: brew install tkersey/tap/cron" >&2
else
echo "expected direct path: SKILLS_ZIG_REPO=<skills-zig-path> zig build build-cron -Doptimize=ReleaseFast" >&2
fi
return 1
}run_cron_tool listrun_cron_tool show --id <id>run_cron_tool create --name "Weekly release notes" --prompt-file /path/to/prompt.md --rrule "RRULE:FREQ=WEEKLY;BYDAY=FR;BYHOUR=9;BYMINUTE=0"run_cron_tool update --id <id> --rrule "RRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0"run_cron_tool enable --id <id>run_cron_tool disable --id <id>run_cron_tool run-now --id <id>run_cron_tool delete --id <id>run_cron_tool run-duerun_cron_tool run-due --dry-runrun_cron_tool scheduler installrun_cron_tool scheduler uninstallrun_cron_tool scheduler statusseqcasliftskills-zig--helpcwdscreate--prompt-filecroncron scheduler installcron run-duecodex execautomations.last_run_atautomations.next_run_atautomation_runscron run-due --dry-runautomation_runsautomations.last_run_atnext_run_atmemory.md--codex-bin$CODEX_BINcodexPATH--lock-labelCRON_LAUNCHD_LABEL--lock-label[A-Za-z0-9._-]run-due10--limit~/Library/LaunchAgents/<label>.plistrun-duecron~/Library/Logs/codex-automation-runner/out.log~/Library/Logs/codex-automation-runner/err.loglist--status <ACTIVE|PAUSED>--jsonshow--id <id>--name <name>--jsoncreate--name--prompt|--prompt-file--rrule--status--cwd--cwds-json--clear-cwds--next-run-atupdate--id|--name--new-name--prompt|--prompt-file--rrule--status--cwd--cwds-json--clear-cwds--next-run-at--clear-next-run-atenable|disable|run-now|delete--id--namerun-due--id--limit--dry-run--codex-bin--lock-label[A-Za-z0-9._-]scheduler install--label--interval-seconds--path--codex-binscheduler uninstall|status--label--label[A-Za-z0-9._-]RRULE:cwdsACTIVEcwdRRULE:FREQ=...BYHOURBYMINUTEHOURLYBYMINUTEDAILYBYHOURBYMINUTEWEEKLYBYDAYBYHOURBYMINUTERRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0RRULE:FREQ=WEEKLY;BYDAY=FR;BYHOUR=9;BYMINUTE=0RRULE:FREQ=HOURLY;INTERVAL=24;BYMINUTE=0Summarize yesterday's git activityRRULE:FREQ=DAILY;BYHOUR=9;BYMINUTE=0Draft weekly release notesRRULE:FREQ=WEEKLY;BYDAY=FR;BYHOUR=9;BYMINUTE=0Summarize CI failuresRRULE:FREQ=DAILY;BYHOUR=8;BYMINUTE=30references/db.md