返回顶部
a

ai-rebirth

AI Rebirth - Load conversation history from a previous CodeBuddy session into the current session. Use when the user wants to resume, reference, or continue a previous session's work. Supports session ID lookup, project-based listing, summary and full output modes.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
63
下载量
0
收藏
概述
安装方式
版本历史

ai-rebirth

# AI Rebirth AI 重生 - 让新的 session 继承前世的记忆。加载并展示之前 CodeBuddy session 的对话历史,用于恢复中断的工作或导入其他 session 的上下文。 ## Core Script `scripts/load_session.py` After installing, copy `scripts/load_session.py` to `~/.codebuddy/bin/load_session.py` for easy access. ## Usage ### List sessions for current project ```bash python3 scripts/load_session.py --project /path/to/project ``` ### Load a specific session (summary mode, default) ```bash python3 scripts/load_session.py --id <SESSION_UUID> ``` ### Load full message chain ```bash python3 scripts/load_session.py --id <SESSION_UUID> --mode full ``` ### Load last N turns ```bash python3 scripts/load_session.py --id <SESSION_UUID> --mode "tail 5" ``` ## Output Modes | Mode | Description | |------|-------------| | `summary` | Structured summary: stats, topics, user requests, last 3 turns (default) | | `full` | Complete message chain in Markdown | | `tail N` | Last N conversation turns (user+assistant pairs) | ## Workflow 1. User asks to load/resume/reference a previous session 2. If no session ID given, list available sessions for the current project 3. User selects or provides a session ID (can paste partial conversation to help identify) 4. Run the script with chosen mode 5. Present the output to the user as context for continuing work ## How It Works - Reads session JSONL files from `~/.codebuddy/projects/<project-name>/` - Extracts `type=message` records (user and assistant messages) - Extracts `type=topic` records for conversation topic tracking - Generates structured Markdown output ## Notes - Read-only: never modifies source session data - No external dependencies, pure Python 3 standard library - Handles large JSONL files (4MB+) via line-by-line streaming - Project directory name is derived from the working directory path (slashes replaced with dashes)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ai-rebirth-1775924523 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ai-rebirth-1775924523 技能

通过命令行安装

skillhub install ai-rebirth-1775924523

下载 Zip 包

⬇ 下载 ai-rebirth v1.0.0

文件大小: 4.24 KB | 发布时间: 2026-4-12 08:47

v1.0.0 最新 2026-4-12 08:47
AI Rebirth 1.0.0 — Initial release

- Load and display conversation history from previous CodeBuddy sessions into the current session.
- Supports session listing by project, summary and full message output modes, and loading the last N conversation turns.
- No external dependencies; pure Python 3, read-only operation, handles large history files efficiently.
- Provides a command-line script for flexible session lookup and loading.
- Documentation included for usage and workflow.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部