AIMother

AI 代理管理系统,监控和管理其他 AI 代理(Claude Code、Codex、OpenCode 等)

AI Mother 飞书交互图

AI Mother 飞书交互界面

核心功能

  • 自动发现和监控

    自动检测所有运行中的 AI 代理,包括 Claude Code、Codex、OpenCode 等

  • 智能健康检查

    检测停止、空闲、速率限制、权限等待或错误状态

  • 自动修复

    安全地恢复停止的进程,发送 Enter/Continue,请求状态更新

  • 灵活的权限处理

    检测任何权限提示格式,通过飞书通知所有者,并接受任何响应格式

  • 动态巡逻频率

    自动切换到活跃对话的 5 分钟巡逻,其他情况下为 30 分钟基线

  • 任务完成通知

    当 AI 完成任务时通知您,避免重复通知

工作流程

1

巡逻扫描

运行 patrol.sh 扫描所有 AI 代理,检测状态和问题

2

诊断分析

获取 AI 上下文,分析问题,确定最佳行动方案

3

行动或升级

自动修复安全问题,或通过飞书通知所有者需要手动干预

安装与配置

# 从 ClawHub 安装
clawhub install ai-mother

# 或手动克隆
git clone <repo-url> ~/.openclaw/skills/ai-mother
cd ~/.openclaw/skills/ai-mother

# 安装 Python 依赖
pip3 install -r requirements.txt

# 运行设置向导
./scripts/setup.sh

获取飞书 open_id

  1. 在飞书上向您的 OpenClaw 机器人发送任意消息
  2. 运行: openclaw logs --tail 20 | grep 'ou_'
  3. 查找: received message from ou_xxxxx
  4. 复制 ou_xxxxx 字符串

使用方法

1手动巡逻

~/.openclaw/skills/ai-mother/scripts/patrol.sh

2自动修复问题

# 检查并修复所有代理
~/.openclaw/skills/ai-mother/scripts/health-check.sh

# 修复特定代理
~/.openclaw/skills/ai-mother/scripts/auto-heal.sh <PID>

3查看仪表盘

~/.openclaw/skills/ai-mother/scripts/dashboard.sh

4性能分析

# 所有代理
~/.openclaw/skills/ai-mother/scripts/analytics.py

# 特定代理
~/.openclaw/skills/ai-mother/scripts/analytics.py <PID>