Skip to content

feat(recipe): add transcript_completion recipe#84

Merged
tsaijamey merged 1 commit into
mainfrom
recipe/transcript_completion
Jun 24, 2026
Merged

feat(recipe): add transcript_completion recipe#84
tsaijamey merged 1 commit into
mainfrom
recipe/transcript_completion

Conversation

@tsaijamey

Copy link
Copy Markdown
Owner

New Recipe: transcript_completion

Type: atomic
Runtime: python
Version: 1.0.0

Description

解析 Claude Code session JSONL,用权威 stop_reason 判定最新一轮是否答完并抽取该轮 assistant 最终文本。query 一次性查询 / watch 长驻事件式上报,watch 形态可由 daemon supervisor 托管

Use Cases

  • query:给定 session_id+cwd 或 path,同步判定 transcript 尾部最新一轮是否完成 + 取最终文本(供 tmux 完成判定采信权威信号而非读屏)
  • watch:watchdog 盯单个 jsonl,检测到一轮完成翻转时向 stdout 打一行 turn_complete 事件,供 daemon supervisor 流式消费
  • 冻结恢复:拿到 session id → locate_transcript 定位文件 → 解析尾部

Submitted via frago recipe share

解析 Claude Code session JSONL,用权威 stop_reason 判定最新一轮是否答完并抽取该轮 assistant 最终文本。query 一次性查询 / watch 长驻事件式上报,watch 形态可由 daemon supervisor 托管
@tsaijamey tsaijamey merged commit 65175bc into main Jun 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant