闲社服务运行正常AI智能体自动化平台
o

林冠集成

技能标识:overstory-integration

Integrates overstory Claude Code agent swarm with nanobot orchestrator. Manages agent lifecycle, SQLite mail bridge, and git worktree coordination.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

林冠集成

overstory 集成

描述

将 overstory 的 Claude Code 代理集群系统与 nanobot 编排器集成。提供代理生命周期管理、代理间 SQLite 邮件桥接以及用于并行代理工作流的 git 工作树协调。

架构

┌──────────────┐ ┌───────────────────┐
│ nanobot │──────▶│ overstory_wrapper │──▶ overstory CLI (tmux 会话)
│ 编排器 │ └───────────────────┘
│ │ ┌───────────────────┐
│ │──────▶│ agentlifecycle │──▶ SQLite (agentlifecycle.db)
│ │ └───────────────────┘
│ │ ┌───────────────────┐
│ │──────▶│ mail_bridge │──▶ SQLite (.overstory/mail.db)
└──────────────┘ └───────────────────┘

  • - overstorywrapper.py — 围绕 overstory CLI 的轻量封装。通过 tmux 生成代理、管理工作树、安装钩子。
  • agentlifecycle.py — 在本地 SQLite 数据库中跟踪代理状态(已生成 → 运行中 → 已完成/失败/已终止)。提供异步监控和清理功能。
  • mail_bridge.py — 使用 overstory 原生 SQLite 邮件格式的线程安全消息桥接。支持直接消息、广播和线程化对话。

要求

  • - Python 3.9+
  • 已安装 overstory CLI 并配置在 PATH 中(或设置 OVERSTORY_BIN)
  • git(用于工作树管理)
  • tmux(overstory 使用 tmux 管理代理会话)
  • 无外部 Python 依赖(仅使用标准库)

环境变量

变量默认值描述
OVERSTORYBINoverstoryoverstory 二进制文件路径
OVERSTORYWORKSPACE
当前目录 | overstory 操作的工作空间根目录 |

命令

初始化工作空间

bash
python3 scripts/overstory_wrapper.py init --workspace /path/to/project

生成代理

bash
python3 scripts/overstory_wrapper.py sling \
--task-id TASK-42 \
--capability code \
--name builder-alice \
--description 实现认证模块 \
--worktree

检查状态

bash
python3 scripts/overstory_wrapper.py status
python3 scripts/overstory_wrapper.py status --agent builder-alice --verbose

查看代理记录

bash
python3 scripts/overstory_wrapper.py inspect --agent builder-alice --lines 100

终止代理

bash
python3 scripts/overstory_wrapper.py kill --agent builder-alice

工作树管理

bash
python3 scripts/overstory_wrapper.py list-worktrees
python3 scripts/overstory_wrapper.py cleanup-worktree --agent builder-alice

代理生命周期

bash
python3 scripts/agent_lifecycle.py spawn --task 修复登录错误 --capability code --name bug-fixer
python3 scripts/agent_lifecycle.py list-active --json
python3 scripts/agent_lifecycle.py wait --agent bug-fixer --timeout 1800
python3 scripts/agent_lifecycle.py cleanup --max-age 24

邮件桥接

bash
python3 scripts/mail_bridge.py send --from orchestrator --to builder-alice --subject 优先级变更 --body 切换到认证模块
python3 scripts/mail_bridge.py read --agent builder-alice --unread
python3 scripts/mail_bridge.py broadcast --from orchestrator --channel @all --message 停止工作
python3 scripts/mail_bridge.py create-thread --agents orchestrator,builder-alice --subject 认证设计
python3 scripts/mail_bridge.py reply --thread THREAD-ID --from builder-alice --body 第一阶段已完成

作为 Python 模块使用

python
from overstory_wrapper import OverstoryWrapper
from agent_lifecycle import AgentLifecycle
from mail_bridge import MailBridge

wrapper = OverstoryWrapper(/path/to/workspace)
wrapper.init()

lifecycle = AgentLifecycle()
agent = lifecycle.spawn_agent(task=构建 API, capability=code, name=api-builder)

bridge = MailBridge(/path/to/workspace)
bridge.send(orchestrator, api-builder, 上下文, 以下是规格说明...)

数据库模式

agentlifecycle.db (~/.nanobot/agentlifecycle.db)

列名类型描述
idINTEGER PRIMARY KEY自增
agent_name
TEXT UNIQUE | 代理标识符 | | capability | TEXT | 代理能力(code、research 等) | | status | TEXT | spawned/running/completed/failed/terminated | | task | TEXT | 任务描述 | | result | TEXT | 最终输出(可为空) | | start_time | REAL | Unix 时间戳 | | end_time | REAL | Unix 时间戳(可为空) | | timeout | INTEGER | 最大运行时间(秒) |

mail.db (.overstory/mail.db)

列名类型描述
idINTEGER PRIMARY KEY自增
thread_id
TEXT | 线程标识符(可为空) | | from_agent | TEXT | 发送代理名称 | | to_agent | TEXT | 接收代理名称 | | subject | TEXT | 消息主题 | | body | TEXT | 消息正文 | | priority | TEXT | normal/high/urgent | | read | INTEGER | 0=未读, 1=已读 | | created_at | REAL | Unix 时间戳 |

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 overstory-integration-1776289927 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 overstory-integration-1776289927 技能

通过命令行安装

skillhub install overstory-integration-1776289927

下载

⬇ 下载 overstory-integration v1.0.0(免费)

文件大小: 11.11 KB | 发布时间: 2026-4-16 17:04

v1.0.0 最新 2026-4-16 17:04
Initial release of overstory-integration.

- Integrates overstory Claude Code agent swarm with nanobot orchestrator.
- Provides agent lifecycle management with state tracking in SQLite.
- Implements a thread-safe SQLite mail bridge for inter-agent messaging.
- Supports git worktree coordination for parallel agent workstreams.
- Exposes CLI commands for agent, mail, and worktree operations.
- Requires only Python standard library and core system tools (overstory CLI, git, tmux).
返回顶部