关于 LLM Chat Replay
LLM Chat Replay 是一款 React 应用,可将保存的 AI 对话记录以动画形式回放。它读取符合指定 Human/Assistant 格式的 Markdown 文件,并提供播放和导航控制。
主要功能
- 01上传 Markdown 对话记录
- 02播放和暂停对话回放
- 03调整播放速度
- 04拖动进度浏览对话
- 05逐字动画显示 Assistant 消息
- 06提取并显示对话标题
适用场景
- 01回放已保存的 AI 对话
- 02以动画形式分享对话记录
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
暂未收录安装方式
我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。
工具
还没有获取到工具列表
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
LLM 聊天回放
一个 React 应用,可通过打字动画和播放控制,以可视化方式回放 LLM 聊天记录。该应用为 AI 助手对话(如 Claude)而创建,但也适用于任何采用指定格式导出的 Markdown 聊天记录。
功能
- 拖放上传 Markdown 文件
- 播放控制(播放/暂停)
- 速度控制(0.5x 至 4x)
- 拖动进度条定位
- 聊天窗口自动滚动,并具备智能滚动行为
- 为 Human 和 Assistant 消息显示不同的气泡
- Assistant 回复的打字动画
- 自动提取并显示对话标题
演示
拖入任意符合以下格式的 Markdown 聊天记录:
# Title of Conversation
**Human**: Your question or prompt here
**Assistant**: The assistant's response here
快速开始
先决条件
- Node.js(v16+)
- npm 或 yarn
安装
git clone https://github.com/yourusername/llm-chat-replay.git
cd llm-chat-replay
npm install
npm run dev
使用方法
- 使用
npm run dev启动应用 - 将保存的 Markdown 聊天记录文件拖入界面,或点击浏览文件
- 使用播放控制回放对话
- 使用聊天窗口下方的控制项按需调整速度
- 使用进度条跳转到对话中的特定位置
创建兼容的聊天记录
与 AI 助手聊天时,通常可以请求导出聊天记录:
Ask the assistant: "please save the full transcript of this chat as a markdown file"
确保保存的 Markdown 文件在每条消息开头都使用“Human:”和“Assistant:”标记。
统一聊天记录格式的预提示词
为获得最佳效果,请将以下预提示词添加到 AI 助手的设置中(如 .clinerules 等),以确保聊天记录格式正确:
### Chat Transcripts
When asked to save a chat or a transcript, here are some rules that will allow you to replay chat in the LLM chat replay tool.
Please save a complete, properly formatted transcript of our conversation to the filesystem using tools. When creating this transcript:
1. Come up with a title for the chat, and add it to the document at the beginning as "# Title: [title]"
2. Format with `**Human**:` and `**Assistant**:` prefixes exactly as shown.. that's:
- Two asterisks (`**`)
- The identifier (Human or Assistant)
- Two asterisks (`**`)
- A colon (`:`)
- A space
- Then the message content
3. Preserve all original text formatting, but avoid special characters that might break markdown
4. For any file paths or code:
- Place them on their own lines when possible
- Wrap them in backticks like `this`
- Avoid ending lines with underscores or other markdown-sensitive characters
5. For function calls and results:
- Format them as <function_call> relevant information</function_call>
- Format them as <function_result>relevant information</function_result>
- Ensure they're on their own lines
- summarize the function results and don't print the entire thing. resist having any markdown inside the function results, as it causes formatting errors.
6. Maintain proper spacing between paragraphs
7. Use standard markdown for any lists or formatting
8. Save the file with a descriptive name in the format: chat_YYYYMMDD_topic_name.md
Please ensure the transcript contains our complete conversation with all content preserved, and ready to be played back in the chat replay tool.
构建工具
- React + Vite
- TypeScript
- Tailwind CSS
- 使用 Typed.js 实现打字动画
参与贡献
欢迎贡献!欢迎提交 Pull Request。
许可证
本项目采用 MIT License 许可,详情请参阅 LICENSE 文件。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。