Reference
How it works
What runs where, and how Pelican follows and continues your sessions.
- The web app talks to the server over REST and a WebSocket, which carries Claude’s reply as it is written, permission requests and status changes. Each terminal has a WebSocket of its own, for its output and your keys; the server keeps a copy of its screen to show a page that comes back.
- To run a turn, the server starts Claude Code with the Agent SDK, resuming the session, and passes your approvals back. An idle process closes after a while; the next message resumes the session.
- Everything else comes from Claude Code’s own files. The transcripts in
~/.claude/projects, read incrementally and across compactions, give each session’s history, whichever app wrote it; they are followed while anyone watches. The process registry in~/.claude/sessionstells which sessions another app is running, and whether they are working or waiting for you.