Feishu Bridge banner
feir feir

Feishu Bridge

AI community

Description

在飞书中远程操控 Agent(包括 Codex、Claude Code、Pi),同时让 AI Agent 拥有飞书全平台操作能力。

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Feishu Bridge

在飞书中获得完整的 AI 编程助手体验 — 不只是聊天,而是流式输出、任务追踪、多 Agent 调度、上下文管理的全功能呈现。

普通 AI Bot 只转发文本。Feishu Bridge 不同:它将 AI 编程助手(Claude Code / Codex / OMP / Pi)的每一项能力——实时流式输出、todo 进度追踪、Agent 分发状态、context 用量监控、配额告警——**原生渲染到飞书消息卡片中**,同时利用飞书的交互按钮、内联链接、Markdown 排版增强体验。AI Agent 还能通过飞书 CLI 工具反向管理你的文档、表格、日历、任务等资源。

信息卡片

每条回复都是一张富信息卡片,而非纯文本:

┌──────────────────────────────────────────────────┐
│ 已完成代码审查,发现 2 个问题并修复。              │
│                                                  │
│ 1. `worker.py:128` — 重复 join 表达式...          │
│ 2. `ui.py:727` — 冗余注释...                      │
│                                                  │
│ ◉ Code review (Explore)        ← Agent 进度       │
│ ~~☑ Search patterns~~                             │
│ ☑ Fix lint errors (3/3)        ← Todo 追踪        │
│ ◻ Run tests (0/2)                                 │
│                                                  │
│ [📎 Open PR]  [✅ Confirm]  [❌ Cancel]  ← 交互按钮│
│                                                  │
│ ────────────────────────────────────── footer ─── │
│ ✅ 3/5 tasks · opus-4-6 · 2m15s · 45k tokens · feishu-bridge │
│ 🟡 Context 72% — 可考虑 /compact 压缩上下文        │
│ ⬆ v2026.06.20 已就绪,/restart 部署                  │
└──────────────────────────────────────────────────┘

**卡片内包含的实时信息:**

区域 内容 来源
主体 流式 Markdown 输出(100ms 级增量更新) Claude Code stdout
Agent 进度 多 Agent 并行分发的启动/完成状态 stream-json tool_use 事件
Todo 追踪 任务列表实时进度(☑/◻) TodoWrite 回调
交互按钮 确认/取消/选择,点击即响应 Action markers 解析
内联链接 URL 自动提取为侧边栏按钮 正则匹配 + 按钮渲染
Footer 状态图标 · 任务数 · 模型 · 耗时 · token 数 · 项目(/project 绑定的 project_id,未绑定时为默认 workspace 目录名) CLI result 元数据 + thread-projects 绑定
Footer Context 用量告警(70%/85% 阈值) input_tokens / context_window
Footer 版本更新提醒 后台 auto-update 检测

它能做什么

**通过飞书操控 AI Agent**

"帮我 review 一下这个 PR"                 → Claude Code 读代码、跑测试、给反馈
"/status"                                → 查看 context 用量、token 费用、配额
"