You're offline — showing cached data

Rotate Luci's main claude session daily — fresh context

rotate-luci-session
2026-06-13 06:13:17 SAST
← Back to Tasks

Daily at 03:00 SAST.

Claude Code's --resume re-hydrates the entire prior transcript, so pinning a session_id across days lets context grow unbounded. This task clears the pinned session_id and kills the claude process; the claude-persistent wrapper respawns without --resume, and Luci boots fresh from CLAUDE.md + memory/.

Implemented 2026-04-17 after the two-day MC/Telegram incident where my session ran for 48+ hours on the same transcript. Fresh rotation keeps the context window usable.

Logs to ~/workspace/logs/luci-session-rotation.log. The last rotation timestamp is also written to a memory file so fresh Luci knows yesterday's session was intentionally rotated (not a crash).

Daily at 03:000 3 * * *
Yes
shell
60s
No
in 21h (2026-06-14 03:00)

Task Definition

tasks/rotate-luci-session.md
shell
set
No
No
/home/lucienne/workspace/scripts/rotate-luci-session.sh

Edit Schedule

Result:
8
Runs (7d)
8
Completed
0
Failed
0
Timeout
100%
Success (7d)
0s
Avg Duration
infrastructure maintenance context

Run History (8)

StartedFinishedStatusDurationOutputLog
3h ago 3h ago completed 0s
View log
1d ago 1d ago completed 0s
View log
2d ago 2d ago completed 0s
View log
3d ago 3d ago completed 0s
View log
4d ago 4d ago completed 0s
View log
5d ago 5d ago completed 0s
View log
6d ago 6d ago completed 0s
View log
7d ago 7d ago completed 0s
View log

Comments (0)

No comments yet — add instructions for Luci
Help