← 返回
未分类 中文

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...
AI 重生 - 将之前 CodeBuddy 会话的历史加载到当前会话,用于继续、参考或延续对话。
chenxinli001 chenxinli001 来源
未分类 clawhub v1.0.0 1 版本 99690.4 Key: 无需
★ 0
Stars
📥 322
下载
💾 0
安装
1
版本
#latest

概述

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

python3 scripts/load_session.py --project /path/to/project

Load a specific session (summary mode, default)

python3 scripts/load_session.py --id <SESSION_UUID>

Load full message chain

python3 scripts/load_session.py --id <SESSION_UUID> --mode full

Load last N turns

python3 scripts/load_session.py --id <SESSION_UUID> --mode "tail 5"

Output Modes

ModeDescription
-------------------
summaryStructured summary: stats, topics, user requests, last 3 turns (default)
fullComplete message chain in Markdown
tail NLast 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//
  • 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)

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,379 📥 320,526
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,082 📥 810,928
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,227 📥 267,916