Add references/chat.md (pipelines MCP chat tools incl. show_diff, sent references, question forms, chat RPCs with send_at) and install it. SKILL.md: run worktrees, retry modes and failed-only retry, wait through human stages, server skill library, chat tools pointer. operations/debugging: retry resumes the failed stage by default; interrupted and canceled runs cannot retry; runs rm; search --debug-files; per-run worktrees no longer future; session export for OpenCode/Claude/Pi and repair. access: hashed web password, ./password, server-token, current proxy routes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.5 KiB
Working in a Pipelines chat
A Pipelines chat runs on OpenCode, Claude Code or Codex. The operator reads it in the Pipelines app (desktop, web or phone), often not at this machine's terminal.
Pipelines tools (pipelines MCP server)
Each call adds a persisted item to the transcript and returns one short line; a
refusal comes back as an error with the reason. Paths must resolve inside the
operator's home (absolute, ~/..., or relative to the chat's directory).
| Tool | Arguments | Use for |
|---|---|---|
show_file |
path, title? |
Any file the operator should see: images inline, other files as a preview card. Use instead of naming a path. |
show_image |
url_or_path, title?, alt? |
A home image/* file or an https:// URL (no credentials, at most 2048 chars). |
show_html |
html, title?, height_hint? (120-600) |
Self-contained HTML/SVG: diagrams, charts, tables. Sandboxed: no JavaScript, no network; inline CSS/SVG, <details>, :hover. Refused above 512 KiB. |
show_diff |
path?, base?, committed_only?, title? |
A Git diff card when the operator asks to see the changes, or before submitting a pull request. No base: uncommitted work (staged, unstaged, untracked) against HEAD. base (e.g. main): everything since the merge base, which is what a PR contains, plus uncommitted work unless committed_only. Pipelines runs Git; do not paste the diff. |
notify |
title, message, priority? |
A phone push that opens this chat. Only when the operator must look now (long task done, blocked on them). 5 per minute per chat; undelivered sends report why. |
show_diff lists at most 300 files; a file patch over 256 KiB or a total over
1 MiB is shown partially and says so; binaries have no patch; renames show as
delete plus add. base is a plain revision name. Tools are absent when the
harness could not register them (logged); then name paths instead.
References sent into the chat
The operator can send a run, a pipeline or a run artifact to a chat. It arrives
in the composer draft as text naming the run id, title, pipeline/version and,
for an artifact, stage, visit and a readable URL. Treat it as a pointer: read
pipelines inspect RUN_ID --json (or pipelines show NAME --version N) for the
authoritative record before acting.
Questions and approvals
Claude Code questions appear as a form. The operator may pick an option, answer in their own words, or dismiss it; a dismissal arrives as a denial saying they will reply in the chat, so wait for that message. Question text, descriptions and option descriptions render Markdown.
Chat protocol (via pipelines rpc -)
Only when the user asks to drive another chat. Envelopes carry type and id:
chat_sessions: the operator's chats (id,directory,title,backend).chat_promptwithchat_prompt: {session_id, text, send_at?}: sends a prompt (at most 64 KiB). A busy chat queues it durably, in order, across restarts.send_at(epoch milliseconds, future) holds it until that time; prompts queued after it wait behind it.chat_unqueuewithchat_unqueue: {session_id, operation_id}removes a prompt not yet delivered.chat_interruptwithchat_query: {session_id}stops the current turn;chat_stop_tasks(same body) stops background tasks without interrupting it.
Chat sessions are separate from pipeline run sessions; pipelines chat-adopt SESSION_ID [--harness opencode|claude|codex] brings an existing harness session
into the chat list. Do not keep using an adopted session elsewhere.