Talk to Claude from any terminal block. Get answers back. Resume any past Claude Code session by name.
An MCP server + shell toolkit that bridges Wave Terminal, Claude Desktop, and Claude Code — turning multi-tab terminal work into seamless AI-collaborative coding.
Quick start · Installation · Commands · Limitations · FAQ
SeaShell is a Model Context Protocol server (Swift) plus a small set of shell commands that together give you three things:
- Cross-terminal asynchronous messages. Leave a note for Claude from any Wave Terminal block; pick up the answer in another.
seashell-msg,seashell-ask. - Resume any Claude Code session by name. Walk away from a deep coding session in Claude Desktop's Code mode last night, open Wave this morning, type
hey continue with <project>— same conversation, same memory.hey,seashell-sessions. - Optional autonomous responses via a daemon. Without you ever touching a chat, a small daemon spawns
claude -pin the right project directory and answers your inbox. Uses your Claude subscription — no API key.
All three compose. You can mix-and-match.
$ hey continue with myapp
🔄 Resuming session a1b2c3d4 (project: myapp)...
> What's the latest update on the auth refactor?
We finished extracting the AuthService. Tests pass. Next is wiring it
into the API layer — I have a draft in routes/auth.py on line 142.
Want me to walk through it?
That's a fresh terminal. Same conversation history as last night's Claude Desktop Code-mode session. Full project memory. Fuzzy matching — hey continue with ma works too.
Each project has a pinned primary session at <project>/.seashell-inbox/primary-session.txt, so hey continue with <project> always lands you in the same conversation — even if you've spawned multiple parallel sessions for the same repo. The pin is set automatically the first time you seashell-init (largest existing session wins) or on the first claude startup in that directory. Re-pin any session anytime with seashell-sessions promote <id>.
# 1. Build
git clone https://github.com/M-Pineapple/seashell ~/Github/seashell
cd ~/Github/seashell && ./build.sh
# 2. Register the MCP server with Claude Desktop AND/OR Claude Code CLI
# (Desktop config edit OR `claude mcp add --scope user seashell ...`)
# 3. Sign in to your Claude subscription via the CLI
claude auth login
# 4. (Optional but highly recommended) Install the example bundle
cd ~/Github/seashell/examples/wave-config && ./install.sh
seashell-setup-hooks # wire SessionStart + PostToolUse into ~/.claude/settings.json
# 5. Try it
hey continue with <some-project> # resumes that project's latest session
hey what's the latest in <project>? # async question via inboxDownload Wave Terminal and launch it once.
You'll want at least one of:
- Claude Desktop — the GUI app from claude.ai/download. Use this for general chat. The "Code" mode here persists sessions to disk and IS resumable from SeaShell.
- Claude Code CLI — install via npm:
npm install -g @anthropic-ai/claude-code. This is whathey continue withactually invokes (viaclaude --resume <id>).
Most users want both.
git clone https://github.com/M-Pineapple/seashell ~/Github/seashell
cd ~/Github/seashell
./build.shbuild.sh produces .build/release/seashell (~16 MB).
You need to register SeaShell with whichever Claude clients you use. They're separate registrations.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"seashell": {
"command": "/absolute/path/to/seashell/.build/release/seashell",
"args": ["--port", "9876"]
}
}
}Restart Claude Desktop. The 60+ SeaShell tools appear in the available-tools list.
claude mcp add --scope user seashell \
/absolute/path/to/seashell/.build/release/seashell -- --port 9879The different port (9879) avoids a clash if you run both Desktop and CLI invocations in parallel. --scope user means the registration is global — visible from any directory.
claude auth loginThis opens a browser for OAuth into your Claude.ai account. No API key needed — claude -p (and the optional daemon) draws from your Pro/Max subscription via this auth.
cd ~/Github/seashell/examples/wave-config
./install.shThis snapshots your existing fish + Wave configs to ~/.seashell-backups/<timestamp>/, then installs:
~/.local/bin/seashell-msg,seashell-ask,seashell-init~/.local/bin/hey,seashell-sessions,seashell-setup-hooks~/.local/bin/seashell-session-start,seashell-post-tool-use(Claude Code hooks)~/.config/fish/(a working fish config with NL routing, atuin, fastfetch, theme-sync)~/.config/fastfetch/config.jsonc~/Library/LaunchAgents/dev.seashell.theme-sync.plist(auto light/dark for Wave)
seashell-setup-hooksAdds two entries to ~/.claude/settings.json:
- SessionStart hook — registers each interactive
claudeREPL in~/.seashell/sessions/<id>.jsonwith project label and Wave block ID - PostToolUse hook — appends every tool call to
~/.seashell/sessions/<id>/activity.logand updates a "current file" pointer when Claude does Edit/Write
The hooks only fire for interactive TTY sessions (a real claude REPL inside a Wave block). They do NOT fire for claude -p invocations. SeaShell's seashell-sessions command works regardless because it falls back to scanning ~/.claude/projects/.
cd ~/Github/seashell/examples/seashell-daemon
./install.shThe daemon polls every project's inbox every 5 seconds. When something lands, it spawns claude -p from that project's directory to read and respond. Uses your Claude subscription via the CLI auth from step 5.
See examples/seashell-daemon/README.md for details.
hey continue with myapp # resume project's latest session
hey resume ma # fuzzy match (initials work)
hey let's work on the seashell project # natural language continuation
hey what's the next thing on the refactor? # routes to inbox (waits for reply)
swift build 2>&1 | hey "fix these errors" # pipe + askIf the first words look like a session-resume intent (continue, resume, let's work on, go back to, pick up), hey runs claude --resume <id>. Otherwise it falls through to seashell-ask.
seashell-sessions # list everything
seashell-sessions latest <name> # print the most recent session id matching <name>
seashell-sessions primary <name> # print the project's pinned primary session id
# (falls back to latest if none pinned)
seashell-sessions promote # pin most-recent session as primary for $PWD
seashell-sessions promote <id> # pin a specific session (project inferred from its cwd)
seashell-sessions show <id> # full metadata for one session
seashell-sessions resolve <name> # fuzzy-match and print the best idReads from THREE sources:
~/.seashell/sessions/— hook-registered sessions (★ marker inlist)~/.claude/projects/<encoded-cwd>/<id>.jsonl— filesystem-discovered (every session, every project)~/Library/Application Support/Claude/claude-code-sessions/<account>/<bridge>/local_*.json— Claude Desktop's session wrappers, which contribute Desktop's user-friendly titles and archived flag
This three-source read means fuzzy matching works against Desktop titles too: hey continue with the current trader pro will find a session titled Current Trader Pro Development Session in Desktop, even if its on-disk cwd basename (e.g. Github) wouldn't match. Archived sessions get an A marker in list and are excluded from fuzzy matching by default — so a long-archived experiment can't be resurrected by accident.
The pinned primary session lives at <project>/.seashell-inbox/primary-session.txt and is what hey continue with <project> resumes.
seashell-msg "compare the test output to what we discussed"
swift build 2>&1 | seashell-msg "fix these errors"
seashell-msg --file /tmp/build.log "investigate this"
seashell-msg --global "skip cwd routing"Auto-routes to the nearest .seashell-inbox/ ancestor; falls back to ~/.seashell/inbox.jsonl.
seashell-ask "what's the status of the refactoring?" # blocks up to 600s
seashell-ask --timeout 60 "did the build pass?" # custom timeout
seashell-ask --no-wait "post and exit" # fire-and-forget with reply tokenPosts a message with a reply_token, polls for a matching reply in replies.jsonl, prints when found.
seashell-mirror-mcp --dry-run # preview what would be added (env values redacted)
seashell-mirror-mcp --list # just print the diff
seashell-mirror-mcp # apply: clone Desktop MCP entries to the CLI (additive)
seashell-mirror-mcp --update # force re-sync EVERY Desktop server (picks up rotated tokens,
# env-var changes, command edits). Removes + re-adds each entry.
# Doesn't touch CLI-only servers (e.g. seashell).Claude Desktop and Claude Code CLI use separate config files for MCP server registration (claude_desktop_config.json vs ~/.claude.json), even though they share the same session .jsonl storage. So a session resumed via hey continue with <project> may be missing tools that Desktop has — e.g. you can ask Claude about Trello in Desktop but the resumed CLI session has no Trello MCP. This script mirrors Desktop → CLI (additive only, never removes), making the tool surface match. Idempotent and safe to re-run whenever you add a new server in Desktop.
Dry-run output redacts env values for keys that look like secrets (anything matching the components KEY, TOKEN, SECRET, PASSWORD, API, AUTH, CREDENTIAL, PAT). The actual claude mcp add calls use the real values from your Desktop config.
cd ~/Github/your-project
seashell-initCreates .seashell-inbox/, registers the project in ~/.seashell/projects.jsonl, writes (or extends) CLAUDE.md with an inbox hint.
Grouped by tier. Used by Claude (in Desktop, in claude REPLs, in the daemon) — not typed by you.
read_user_inbox,inbox_count,inbox_history,reply_to_user,read_my_replies
read_session_transcript— read the most recent N turns of any project's primary session (or any session by id) without resuming it. Lets Claude Desktop answer "what's the status of project X?" by quoting the actual transcript instead of guessing.
wave_get_settings,wave_set_setting,wave_get_widgets,wave_create_widget,wave_update_widget,wave_delete_widget,wave_get_ai_presets,wave_set_ai_preset,wave_set_theme,wave_set_appearance,wave_get_backgrounds
wave_list_workspaces,wave_list_blocks,wave_get_scrollback,wave_get_block_meta,wave_set_block_meta,wave_create_block,wave_delete_block,wave_run_in_block,wave_view_file,wave_edit_file
wave_secret_list,wave_secret_set,wave_secret_get,wave_secret_delete
execute_command,execute_with_auto_retrieve,execute_with_streaming,execute_pipeline,get_command_output,list_recent_commands
save_template,run_template,list_templates,save_workspace_profile,load_workspace_profile,list_workspace_profiles,get_environment_context,capture_environment,diff_environment
See docs/ARCHITECTURE.md for the full tier table.
These aren't bugs — they're architectural realities worth knowing up front.
| Limitation | Why |
|---|---|
You can't target a specific Claude Desktop chat with seashell-msg / seashell-ask. The MCP server is shared across all Desktop chats — there's no chat ID exposed to MCP. |
Claude Desktop's MCP integration runs one shared MCP server per config entry, with no per-chat identifier. The workaround: use the daemon (project-scoped Claude per inbox) or use hey continue with <project> to resume a Claude Code session instead. |
Continuity works only for Claude Code sessions. Claude Desktop's "Chat" mode and "Co-work" mode aren't resumable. Claude Desktop's "Code" mode IS — it persists to the same ~/.claude/projects/ storage as the CLI. |
Chat and Co-work transcripts are internal to Desktop. Code mode shares the open .jsonl format with the CLI. Use Code mode if you want cross-day, cross-client continuity. |
Hooks (SessionStart, PostToolUse) fire only for interactive TTY sessions. They do NOT fire for claude -p invocations. |
This is a Claude Code behavior we accept. SeaShell's seashell-sessions falls back to scanning ~/.claude/projects/ so resume-by-name works regardless. The activity log + side blocks only populate during interactive sessions. |
Side blocks (activity tail + live code preview) only spawn from inside Wave Terminal. They use wsh createblock which requires WAVETERM_JWT. |
The hook checks for the env var before invoking wsh. When you start claude outside Wave (e.g. plain Terminal.app), the side blocks are silently skipped; everything else still works. |
The autonomous daemon's claude -p sessions don't update Claude Desktop's open chat in real time. |
Claude Desktop holds its own in-memory state. New turns appended to the .jsonl from claude --resume -p only become visible after Desktop refreshes/reopens the session. If you have a session open AND the daemon writes to it concurrently, last-write-wins on the file. Pick one or the other to be "live". |
| High-volume use can hit Claude.ai subscription rate limits. | The daemon batches one claude -p per project per polling cycle (default 5 s). For typical use this stays under limits. For heavy workloads, increase SEASHELL_DAEMON_POLL. |
| No cross-machine sync of inbox or session registry. | All state lives under ~/.seashell/ and ~/.claude/projects/. You could symlink these into iCloud Drive but it's untested. |
Hooks fire only for interactive TTY sessions. If you started Claude with claude -p "..." (non-interactive) or piped stdin into claude, the hook is skipped. Run claude normally inside a Wave Terminal block to trigger it.
They use the same conversation file format (~/.claude/projects/<encoded-cwd>/<uuid>.jsonl). Either can read/write a session. So you can:
- Start in Desktop Code mode, resume in Wave with
hey continue with <project>✅ - Start in
claudeREPL inside Wave, view in Desktop's Code mode sidebar later ✅ - Bounce back and forth across clients on the same conversation ✅
You cannot resume Desktop "Chat" or "Co-work" mode sessions — those are stored elsewhere and aren't exposed.
Claude Desktop and Claude Code CLI maintain separate MCP configurations. Desktop reads ~/Library/Application Support/Claude/claude_desktop_config.json; CLI reads ~/.claude.json. We register on different ports (9876 vs 9879) so they don't collide if both spawn SeaShell at once.
seashell-msg "..."always posts to the inbox (fire-and-forget).seashell-ask "..."posts and blocks waiting for a reply.hey ...is smarter: if the prompt looks like a session-resume request, itclaude --resumes; otherwise it acts likeseashell-ask.
Think of hey as the user-friendly umbrella; seashell-msg/seashell-ask are the lower-level primitives.
The daemon spawns claude -p which uses your Claude.ai subscription (Pro or Max), not the API. No per-token billing. You hit your subscription rate limits, not your wallet. If you don't have a subscription, the daemon won't work — install Claude Code from claude.ai.
Mostly yes. The MCP tools work in any client. The shell commands (hey, seashell-msg, etc.) work in any terminal. The side blocks (activity tail + live code preview) require Wave's wsh createblock — they silently no-op if run outside Wave.
Each gets its own UUID, its own .jsonl file, its own conversation. They're independent. hey continue with <project> resumes the most recently active one.
Install the daemon (step 8). Then any seashell-ask from any block will get answered by claude -p within ~5 seconds, no chat needed.
# Daemon
launchctl unload ~/Library/LaunchAgents/dev.seashell.daemon.plist
rm ~/Library/LaunchAgents/dev.seashell.daemon.plist
rm ~/.local/bin/seashell-daemon
# Theme sync
launchctl unload ~/Library/LaunchAgents/dev.seashell.theme-sync.plist
rm ~/Library/LaunchAgents/dev.seashell.theme-sync.plist
# Shell commands and hooks
rm ~/.local/bin/seashell-* ~/.local/bin/hey
# Hooks from Claude config (manual edit)
# Open ~/.claude/settings.json and remove the SeaShell entries from the "hooks" key
# State
rm -rf ~/.seashell
# MCP server registrations (manual)
# Remove "seashell" entry from ~/Library/Application Support/Claude/claude_desktop_config.json
# claude mcp remove seashell
# Restore old fish config
mv ~/.config/fish ~/.config/fish.removed
mv ~/.seashell-backups/<timestamp>/fish ~/.config/fishtail -f /tmp/seashell-daemon.logYou'll see every poll cycle, every spawned claude -p, and Claude's response timing.
The daemon's claude -p is restricted to four tools: inbox_count, inbox_history, read_user_inbox, reply_to_user. It can't post new inbox messages — only consume and reply.
Delete ~/.seashell/sessions/<bad-id>/ and ~/.seashell/sessions/<bad-id>.json. The next interactive claude will register fresh. Your ~/.claude/projects/ history is preserved.
Most likely your claude -p (e.g. from the daemon) called read_user_inbox and it returned messages from a different cwd's inbox. SeaShell aggregates inboxes across all known projects + global by default. Use inbox_count to see the per-project breakdown.
Open an issue at github.com/M-Pineapple/seashell/issues.
docs/ARCHITECTURE.md— System overview, layers, MCP tool surface, Wave object modeldocs/INBOX.md— Storage layout, routing rules, daemon architecture, troubleshootingdocs/WAVE_INTEGRATION.md— How SeaShell talks to Wave:wsh,WAVETERM_JWT, RPC mechanismdocs/HELPER_PROTOCOL.md— Wire protocol between the external server and the in-Wave helper
seashell/
├── README.md ← you are here
├── LICENSE ← MIT
├── Package.swift ← Swift package manifest
├── build.sh / clean.sh ← build scripts
├── setup.sh ← post-clone bootstrap
│
├── Sources/
│ ├── Seashell/ ← MCP server, tool handlers, Wave adapter
│ │ ├── InboxHandlers.swift ← inbox tools (read/count/history/reply/read_my_replies)
│ │ └── … ← 30+ other handler files
│ └── ConfigManager/ ← standalone config-management binary
├── Tests/SeashellTests/
│
├── helper/seashell-helper ← in-Wave Python helper (TCP proxy to wsh)
├── config/ ← Claude Desktop config template
├── docs/ ← architecture, INBOX, integration, helper protocol
├── prompts/ ← AI-assisted configuration prompts
│
└── examples/
├── wave-config/
│ ├── bin/ ← shell commands: hey, seashell-msg/ask/init/sessions/setup-hooks
│ ├── hooks/ ← Claude Code SessionStart + PostToolUse scripts
│ ├── fish/ ← starter fish stack
│ ├── fastfetch/ ← system-info banner config
│ ├── wave/ ← Wave widgets/settings templates
│ ├── theme-sync/ ← auto light/dark switcher
│ └── install.sh ← installs all the above into your $HOME
└── seashell-daemon/ ← autonomous inbox responder via claude -p
- Wave Terminal — the terminal SeaShell is built around. Open-source, block-based, deeply scriptable.
- Anthropic — for the Model Context Protocol, Claude Desktop, and Claude Code CLI.
- fish shell, atuin, starship, zoxide, fastfetch — small tools that make the example config worth running.
- Ollama + the Qwen team — for the local LLM that powers the optional natural-language fish layer.
MIT — see LICENSE.
Built with 🐚 by Pineapple 🍍