Skip to content
Development
Skill

/thread-manager

Thread Manager 为 Claude Code 提供多线程对话管理功能,让你可以并行处理多个任务,保持上下文隔离和专注。

From plugin
ai-agent-team
44812 skills7 agents11 commands

Claude Code

$ npx -y skills add peterfei/ai-agent-team --skill thread-manager --agent claude-code

SKILL.md

thread-manager.SKILL.md

Thread Manager Skill

Thread Manager 为 Claude Code 提供多线程对话管理功能,让你可以并行处理多个任务,保持上下文隔离和专注。

功能特性

  • **多线程管理**: 创建、切换、更新和删除对话线程。
  • **上下文隔离**: 每个线程拥有独立的消息历史和上下文。
  • **文件变更追踪**: 自动记录每个线程中修改的文件和代码行数统计。
  • **持久化存储**: 使用 SQLite 本地存储所有数据,安全可靠。
  • **Git 集成**: 自动检测文件变更详情。

安装

本 Skill 通常作为 `ai-agent-team` 项目的一部分安装。如果需要单独安装:

1. 确保已安装 Node.js 18+。 2. 运行 `npm install` 安装依赖。 3. 运行 `npm run build` 编译代码。 4. 将本 Skill 添加到 Claude Code 配置文件 (`config.json`) 中。

MCP 工具

| 工具名称 | 描述 | |---------|------| | `create_thread` | 创建新线程 | | `list_threads` | 列出所有线程 | | `switch_thread` | 切换到指定线程 | | `get_thread` | 获取线程详情 | | `update_thread` | 更新线程信息 | | `delete_thread` | 删除线程 | | `get_current_thread` | 获取当前活跃线程 | | `track_file_change` | 记录文件变更 (支持自动检测) | | `search_messages` | 基于语义搜索历史消息 (支持自然语言) |

Slash Commands

  • `/thread new "Title"`: 创建新线程
  • `/threads`: 列出所有线程
  • `/thread <id>`: 切换线程
  • `/thread info`: 查看当前线程详情
  • `/memory search "query"`: 搜索历史消息 (需要调用 search_messages)

数据存储

数据存储在 `~/.claude/threads/threads.db` (默认) 或环境变量 `THREADS_DB_PATH` 指定的位置。

@peterfei
Ships withai-agent-team

💛 Sponsored by DolOffer — GPT & Claude 正版会员充值,输入优惠码 AI8888 享9折特惠 🚀 拥有24/7专业AI开发团队:产品经理、全栈开发、前端开发、后端开发、测试工程师、DevOps工程师、技术负责人 💾 Thread Manager 让 AI 拥有记忆! 语义搜索 | 任务线程管理 | 完整上下文恢复 | 自动 Git 版本控制 ⚡ 只需 3 步完成安装 → 马上开始使用!

44812 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
448
Star history of peterfei/ai-agent-team on GitHub, a chart by star-history.com

Other skills on ai-agent-team.

changelog-generator

changelog-generator

智能变更日志生成器 - 自动分析Git提交历史,生成符合规范的CHANGELOG.md。支持语义化版本管理、多种输出格式、增量更新和GitHub/GitLab集成。

drawnote

drawnote

智能笔记与流程图绘制工具(优化版-无权限读取)。根据用户提供的内容,自动生成精美的可视化笔记和流程图,支持多种风格(手写笔记、思维导图、流程图等),并导出为图片。使用内置模板,无需读取文件权限。适用于:(1) 学习笔记可视化,(2) 知识梳理与总结,(3)…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about thread-manager.

Which coding agents can use thread-manager?
thread-manager installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.