Skip to main content

export-pi-session

Export a Coworker task checkpoint from its local SQLite database into Pi coding-agent session JSONL, preserving user, assistant, thinking, tool-call, and tool-result blocks. Use when the user asks to extract, reconstruct, inspect, or migrate a Coworker run in Pi's session format. Do not use for ordinary conversation exports or diagnostic logs.

설치로 이동

소스 정보

저장소
donvito/coworker
최근 소스 활동
2026년 9월 5일 11:26
감지된 SKILL.md 언어
영어
스타
32
포크
6

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
export-pi-session
description
Export a Coworker task checkpoint from its local SQLite database into Pi coding-agent session JSONL, preserving user, assistant, thinking, tool-call, and tool-result blocks. Use when the user asks to extract, reconstruct, inspect, or migrate a Coworker run in Pi's session format. Do not use for ordinary conversation exports or diagnostic logs.
# Export a Coworker checkpoint as a Pi session Use `scripts/export-pi-session.mjs` for deterministic conversion. It merges two database sources: authored conversation entries from `messages`, and per-task assistant/thinking/tool blocks from `task_checkpoints.messages_json`. Coworker's synthetic checkpoint user prompts are deliberately discarded because they embed prior `You:` and coworker transcript lines inside one user block. Run: ```bash node skills/export-pi-session/scripts/export-pi-session.mjs \ --db /absolute/path/to/coworker.db \ --task-id <task-uuid> \ --output /absolute/path/to/session.jsonl ``` If the user gives a conversation ID instead, pass `--conversation-id`; the script selects its latest checkpoint. A task export reconstructs its conversation through that task, including earlier task checkpoints from the same thread. Do not combine different coworkers or conversation branches. The database and checkpoint may contain private prompts, thinking, tool arguments, and tool results. Read or export them only when the user requests that content. Keep output in the user's workspace unless they explicitly choose another location. After export, check the script's structured summary and parse every JSONL line. The first line must be a version 3 `session` header. Remaining entries must form a linear `id`/`parentId` chain and message entries must retain their original order.
GitHub에서 보기