OpenCode Transcript Summary
Launches OpenCode when Tuple transcription completes and asks it to summarize the completed transcript.
Launches OpenCode when Tuple transcription completes and asks it to summarize the completed transcript.
The trigger writes a launch-opencode-summary.command wrapper next to the transcript files and opens it in your preferred terminal. The wrapper runs as #!/bin/zsh -li, so opencode is resolved from the same interactive shell environment you get in a new terminal. No install location is hard-coded.
OpenCode starts in the transcription directory with a focused summary prompt. It reads the whole call by running Tuple's bundled watcher (tuple-call-watcher.py --catchup, shipped with this trigger), produces a concise summary with decisions, action items, and open questions, then stays available for transcript-backed follow-up questions.
Prerequisites
- macOS
- OpenCode installed so
opencodeworks in a new terminal python3(the bundled watcher needs it; install withxcode-select --install)- Tuple transcription enabled for the call
Installation
Drop this directory into your Tuple triggers folder:
~/.tuple/triggers/opencode-transcript-summary/
The trigger fires when call transcription completes.
How it works
When call-transcription-complete fires, Tuple provides TUPLE_TRIGGER_CALL_ARTIFACTS_DIRECTORY, the directory containing the completed transcription artifacts. This trigger:
- Copies the fixed
tuple-call-watcher.pyand writesopencode-summary-prompt.mdinto that directory. - Writes an executable
launch-opencode-summary.commandwrapper into that directory. - Opens it in your preferred terminal via
open(Ghostty → iTerm → Alacritty → Terminal; setPREFERRED_TERMto choose). No AppleScript, so it triggers no macOS accessibility prompt. - The wrapper starts a login interactive zsh shell, changes into the transcription directory, and runs
opencode . --prompt "$(cat opencode-summary-prompt.md)".
For local script testing without opening a terminal, set OPENCODE_TRANSCRIPT_SUMMARY_DRY_RUN=1.