Files
Gary Lobermier 813a6a185e feat: Daedalus — autonomous Claude Code agent framework
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.
2026-02-10 16:17:59 -06:00

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)"