Session Workflow
Sessions are crosslink’s core mechanism for preserving context across AI conversations. They track what you’re working on, record breadcrumbs, and pass handoff notes to the next session.
The Session Lifecycle
session start → session work <id> → session action "..." → session end --notes "..."
↑ ↓
└──────────────── next session reads handoff notes ────────────┘
Starting a Session
crosslink session startOn startup, crosslink:
- Shows handoff notes from the previous session
- Checks for stale sessions (idle >4 hours) and auto-ends them
- Displays open and ready issues
Setting Your Focus
crosslink session work 3Marks issue #3 as your current focus. This is shown in session status and used by hooks to track which issue is active.
Ending a Session
crosslink session end --notes "Fixed auth bug #3. Token refresh now handles 401 responses. Dark mode (#2) is next priority."Handoff notes are the most important part of the workflow. Write them as if briefing a colleague who’s taking over your work.
Checking Status
crosslink session statusShows: session number, duration, current focus issue, last recorded action.
Retrieving Previous Handoff
crosslink session last-handoffRead the handoff notes from the most recent ended session.
Stale Session Detection
Sessions idle for more than 4 hours are automatically ended on the next session start. The auto-end message notes that handoff notes may be incomplete.
This prevents “ghost sessions” that accumulate when an AI session is abandoned without a clean end.
Context Compression Recovery
When Claude Code’s context window fills up, it compresses earlier messages. The session-start.py hook fires on resume and:
- Detects the active session is still running (resume vs. fresh start)
- Adds an auto-comment on the active issue noting the compression event
- Injects the last recorded
session actionas a breadcrumb - Displays current session state
Best practice: Run crosslink session action "..." before doing anything that might trigger context compression (large file reads, many tool calls).
Workflow Tips
- One session per conversation. Don’t manually start multiple sessions in one chat.
- Write handoff notes for your future self. Be specific about what’s done, what’s in progress, and what’s next.
- Use
session actionliberally. It’s your insurance against context loss. - Use
crosslink quickto create + label + start working in one step.