介绍
# Prompt Log
## 快速开始
在会话文件上运行附带脚本:
```bash scripts/extract.sh <session-file> ```
## 输入
- **会话文件**:来自 Clawdbot、Claude Code 或 Codex 的 `.jsonl` 会话日志。 - **可选过滤器**:`--after` 和 `--before` ISO 时间戳。 - **可选输出**:Markdown 转录本的 `--output` 路径。
## 输出
- 写入 Markdown 转录本。默认为当前项目中的 `.prompt-log/YYYY-MM-DD-HHMMSS.md`。
## 示例
```bash scripts/extract.sh ~/.codex/sessions/2026/01/12/abcdef.jsonl scripts/extract.sh ~/.claude/projects/my-proj/xyz.jsonl --after "2026-01-12T10:00:00" --before "2026-01-12T12:00:00" scripts/extract.sh ~/.clawdbot/agents/main/sessions/123.jsonl --output my-transcript.md ```
## 依赖项
- 需要 PATH 中包含 `jq`。 - 如果在 macOS 上可用则使用 `gdate`;否则回退到 `date`。