SuperAPI AI 工具集

fleetops

智能体与模型

查看项目

更新于 10-15 23:58

技能介绍

用途:FleetOps 为智能体集群提供单一事实来源,集中保存智能体状态、事件、唤醒记录与日志。CLI 命令 fleetops 读写共享 SQLite 库 ~/.fleetops/fleet.db,取代逐个检索各智能体 .servitor/journal.md 的做法。

主要能力:跨智能体查询状态与活动;结构化唤醒日志;对 SOP、kata、doctrine、memory、dreams 做 FTS 全文检索;查看知识产物;新增、更新、查看、检索与渲染日志段落;健康检查;列出已注册智能体;一次性采集。数据由 harvest 循环从 .servitor/state.json、journal.md、fleetmail 与知识树采集,智能体也可通过 fleetops journal add 直接写入。数据库为权威来源,markdown 仅为镜像。

使用方式:常用命令包括 fleetops show-state daystrom、fleetops tail-events --agent adama -n 20、fleetops wakes --agent pike -n 10、fleetops search-knowledge "heartbeat autonomy"、fleetops show-artifact 4217、fleetops journal add --wake-number 268 --source heartbeat --reason "CI green" --body-file /tmp/stanza.md、fleetops journal render --diff .servitor/journal.md、fleetops doctor、fleetops list-agents、fleetops harvest --once --source all。写入前需 eval "$(fleetops session-stamp cic)" 设置 FLEETOPS_SESSION_ID,并导出 FLEETOPS_AGENT。读取命令支持 --json。退出码 0 成功、1 运行时错误、2 用法错误。

适用场景:查找过去工作记录、查看集群当前活动、确认 doctrine 是否覆盖某主题、关闭唤醒、检查采集器是否正常、启动交互式 shell。

限制:日志写入类命令为新上线,参数名可能变动,应以 <verb> --help 为准;search-knowledge 为 SQLite FTS5 分词检索,非语义检索;harvester 在内容哈希一致时不重放 state.json 变更;多个 shell 未设置不同 FLEETOPS_SESSION_ID 时写入归属会混乱;不要直接编辑 .servitor/journal.md。依赖 fleetops 二进制、已初始化的 fleet.db、Go 1.25+(从源码重建时)。