From 75b88553c6d3cbdb83b9b024fba784e377569777 Mon Sep 17 00:00:00 2001 From: m3ta-chiron Date: Thu, 2 Jul 2026 20:00:58 +0200 Subject: [PATCH] docs: add README for talk and crunch packages Each README covers usage, environment variables, integration patterns, NixOS installation, and how-it-works diagrams. --- pkgs/crunch/README.md | 130 ++++++++++++++++++++++++++++++++++++++++++ pkgs/talk/README.md | 87 ++++++++++++++++++++++++++++ 2 files changed, 217 insertions(+) create mode 100644 pkgs/crunch/README.md create mode 100644 pkgs/talk/README.md diff --git a/pkgs/crunch/README.md b/pkgs/crunch/README.md new file mode 100644 index 0000000..faa1500 --- /dev/null +++ b/pkgs/crunch/README.md @@ -0,0 +1,130 @@ +# crunch + +Voice-notified reminders and AI crunch jobs via systemd transient timers. Schedules tasks that fire through `talk` (ElevenLabs TTS) — no NixOS rebuild needed, survives reboots. + +## Usage + +### Simple voice reminders + +```bash +crunch at "14:30" "Müll rausbringen" +crunch at "2026-07-03 10:00" "Zahnarzttermin" +crunch in "30m" "Build checken" +crunch daily "09:00" "Daily standup" +crunch weekly "Mon 09:00" "Weekly review" +crunch weekly "Montag 09:00" "Weekly review" # German day names +``` + +### AI crunch jobs + +Runs a prompt through `pi` or `opencode` in print mode, pipes result to `talk`: + +```bash +crunch ai pi in "1h" "Fasse die neuesten Commits zusammen" +crunch ai opencode daily "08:00" "Review offene Issues und gib 3 Key-Points" +crunch ai pi weekly "Mon 09:00" "Generiere Weekly Summary aus git log" +``` + +### Custom script jobs + +Runs any shell script on schedule. Script stdout → `talk`: + +```bash +crunch script daily "08:00" ~/scripts/basecamp-daily.sh +crunch script in "2h" ~/scripts/deploy-check.sh -- --verbose +crunch script weekly "Mon 09:00" ~/scripts/weekly-report.sh +``` + +Example script: + +```bash +#!/usr/bin/env bash +# ~/scripts/basecamp-daily.sh +TODOS=$(basecamp todos --today 2>/dev/null) || exit 0 +echo "$TODOS" | pi -p "Erstelle Summary als ~/reports/daily.md. Antworte mit Top 3." +``` + +### Management + +```bash +crunch list # List active jobs +crunch cancel crunch-mll-rausbringen-12345 # Cancel a job +crunch purge # Remove fired one-shot jobs +``` + +## Command Reference + +``` +crunch at