feat: add daily auto-trigger with --schedule and --watch modes#2
Open
feat: add daily auto-trigger with --schedule and --watch modes#2
Conversation
Summaries are now saved to data/summaries/YYYY-MM-DD/summary-HHMMSS.md in addition to the root git_commit_summaries.md (backward compatible). Each run produces a timestamped file, building a history of daily summaries that supports the planned auto-trigger feature. Adds chrono dependency for date formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds three new CLI flags for automated daily summarization: - --schedule: generates platform-specific scheduling config (macOS LaunchAgent plist or crontab entry) - --watch: foreground daemon using tokio sleep, wakes at the configured time each day - --time HH:MM: configurable schedule time (default 09:00) - --help: usage documentation Extracts core summarization into run_summarize() so both one-shot and watch modes share identical logic. Existing positional-arg CLI behavior is fully preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
Adds the #1 priority feature from the README TODO list: auto-triggered daily summaries.
Three new CLI flags:
--schedule— generates a macOS LaunchAgent plist or crontab entry (copy-paste install)--watch— foreground daemon that wakes at the configured time and runs summarization--time HH:MM— configurable schedule time (default:09:00)Usage
Implementation
run_summarize()frommain()so both one-shot and watch modes share identical behavior--schedule: detects OS, generates appropriate config with correct binary path--watch: usestokio::time::sleepto compute seconds until next occurrence, runs, then sleeps past the minute boundary to avoid re-trigger--help/-h: full usage docsDependencies
dirs = "5.0"for home directory resolution in LaunchAgent path generationcargo checkpasses clean.TODO Items Addressed