Claude Code has a /loop command that runs a prompt on a recurring interval. Mine checks Slack every minute, reads threads, checks the codebase, and replies on my behalf while I’m on a family trip to Sydney. The problem: loops auto-expire after 3 days. And if the session dies, the loop dies with it. Here’s how I made it run indefinitely. The 3 pieces 1. Persistent memory for cross-session state. Claude Code has a memory directory at ~/.claude/projects/<project>/memory/. Files here survive...
No comments yet. Log in to discuss on the Fediverse