Heartbeat - Keep Session Alive
Send a heartbeat to prevent your session from timing out.
What It Does
- •Verifies you have an active session via
crane_contextMCP tool - •Refreshes the session heartbeat timestamp
- •Prevents 45-minute session timeout
When to Use
- •Working on long tasks (>30 minutes)
- •Want to keep session active while reading/researching
- •Need to maintain "active" status visibility
Not needed if you're actively using sod, update, or eod - those refresh heartbeat automatically.
Execution
1. Check Session
Call crane_context MCP tool. If no active session, tell the user to run sod first.
2. Confirm Active
Display:
code
Heartbeat sent.
Session: {session_id}
Your session will stay active for 45 minutes from this heartbeat.
Session Timeout
Sessions become "abandoned" after 45 minutes without heartbeat.
- •Recommended interval: every 10-15 minutes during long tasks
- •Safe to call frequently (idempotent)