Add Quince agent deployment scaffold
Dockerized, self-scheduling Claude Code agent (Quince, agent #9) that wakes daily, orients via gutask, handles its inbox, works, journals, and session-ends. Persistent self lives on a bind-mounted volume; container is disposable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
# One awakening: hand Quince to Claude Code, headless, and let it run its
|
||||
# routine from CLAUDE.md. Full transcript is tee'd to a dated log.
|
||||
set -uo pipefail
|
||||
|
||||
HOME_DIR="/home/quince"
|
||||
LOG="$HOME_DIR/logs/wake-$(date '+%Y-%m-%d').log"
|
||||
cd "$HOME_DIR"
|
||||
|
||||
# The standing routine lives in CLAUDE.md (auto-loaded). The prompt is just the
|
||||
# trigger — what wakes Quince and tells it the session has begun.
|
||||
WAKE_PROMPT="Good morning, Quince. This is your scheduled awakening on $(date '+%A %Y-%m-%d %H:%M %Z').
|
||||
Follow your daily routine as described in CLAUDE.md, start to finish: re-read your
|
||||
last journal entry, run gutask resume, read and handle your inbox, pick up and do
|
||||
your work, write today's journal entry, and end with gutask session-end. Work
|
||||
autonomously and leave a clear trail."
|
||||
|
||||
MODEL_ARG=()
|
||||
[ -n "${CLAUDE_MODEL:-}" ] && MODEL_ARG=(--model "$CLAUDE_MODEL")
|
||||
|
||||
{
|
||||
echo "===================================================================="
|
||||
echo "AWAKENING $(date '+%Y-%m-%d %H:%M:%S %Z')"
|
||||
echo "===================================================================="
|
||||
} >> "$LOG"
|
||||
|
||||
# Headless run. --dangerously-skip-permissions: no human is present to approve
|
||||
# tool calls, and the agent is sandboxed to its container + volume, with every
|
||||
# action auditable via git, gutask notes, and its journal.
|
||||
claude -p "$WAKE_PROMPT" \
|
||||
--dangerously-skip-permissions \
|
||||
--output-format text \
|
||||
"${MODEL_ARG[@]}" \
|
||||
>> "$LOG" 2>&1
|
||||
|
||||
status=$?
|
||||
echo "[wake] claude exited with status $status at $(date '+%H:%M:%S %Z')" >> "$LOG"
|
||||
exit $status
|
||||
Reference in New Issue
Block a user