Bring Claude Code and Codex into Feishu/Lark group chat — with permission cards
说明与用途
将 Claude Code 和 Codex 集成到 Feishu/Lark 聊天中,使用权限卡片来保持上下文、管理权限并维持持久会话。
问题
Teams using Feishu/Lark lack integrated coding agent context, leading to lost context, verbal approvals, and no shared session.
结果
The workflow enables seamless coding agent interactions within Feishu/Lark, preserving context, managing permissions, and maintaining session continuity.
工作流
- Install Node.js ≥20 and the agent-feishu-channel package via npm.
- Create a Feishu bot app at open.feishu.cn and obtain app_id and app_secret.
- Run
afc initto configure the bot, setting app credentials and the allowed_open_ids allowlist. - Ensure
claudeand/orcodexexecutables are on $PATH. - Start the bot with
afcand interact using slash commands such as /new, /stop, /status, /provider, /config set, etc. - Use permission cards for sensitive calls; approve or reject via the Feishu UI.
- Leverage session commands (/sessions, /resume) to persist and resume work across restarts.
- Switch providers with /provider per session without rewiring the bot.
- Interrupt or queue messages using ! and observe interactive status cards.
- Adjust runtime configuration on the fly with /config set.
- Monitor context warnings and use the 50MB hard‑reset fallback if needed.
证据
agent-feishu-channel bridges Claude Code and Codex sessions into a Feishu bot — a complete coding-agent workflow inside group chat.
Permission brokering: sensitive calls become Feishu approval cards
- 记录日期: 2026-09-15T18:00:45.023Z