mirror of
https://github.com/galoryber/daedalus
synced 2026-06-21 13:51:16 +00:00
813a6a185e
A framework for running Claude Code as a fully autonomous agent via cron, with persistent memory, task management, and session handoff. Core features: - Checkpoint-based session handoff (save game system) - File-based state: tasks, worklog, questions, lessons-learned - Full autonomy with human-in-the-loop via questions + Pushover - PID management with stale session detection - 11-step autonomous workflow prompt - Customizable for any project via CLAUDE.md + ADAPTING.md guide Named for the myth: Daedalus, the master craftsman who built autonomous machines that worked tirelessly without supervision.
14 lines
396 B
Bash
Executable File
14 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
# Clean up logs older than N days
|
|
# Usage: ./rotate-logs.sh [days-to-retain]
|
|
set -euo pipefail
|
|
|
|
LOG_DIR="$(cd "$(dirname "$0")/.." && pwd)/logs"
|
|
RETAIN_DAYS="${1:-30}"
|
|
|
|
echo "Removing logs older than $RETAIN_DAYS days from $LOG_DIR"
|
|
find "$LOG_DIR" -name "*.log" -mtime "+$RETAIN_DAYS" -delete -print
|
|
|
|
echo "Done. Remaining logs:"
|
|
ls -lh "$LOG_DIR"/*.log 2>/dev/null || echo "(none)"
|