If your team lives in Feishu / Lark, but coding agents live in personal terminals, you get lost context, verbal “is it OK to run that?”, and no shared session.
agent-feishu-channel bridges Claude Code and Codex sessions into a Feishu bot — a complete coding-agent workflow inside group chat.
-
npm:
agent-feishu-channel -
CLI:
afc - Repo: https://github.com/Blackman99/agent-feishu-channel
- Docs: https://blackman99.github.io/agent-feishu-channel/
Why this exists
Chat is where decisions happen. The agent should show up there with local-style controls: approve dangerous tools, keep sessions across restarts, and switch providers without rewiring the bot.
What it does
-
Dual providers: Claude or Codex;
/providerper session - Permission brokering: sensitive calls become Feishu approval cards
-
Session persistence: survives restarts; auto-resume;
/sessionsand/resume -
Queue & interrupt: messages queue while generating;
!interrupts - Interactive cards: streaming status and tool activity
-
Runtime config:
/config setwithout restart - Context mitigation: early warnings and a 50MB hard-reset fallback
Quick start
Needs Node.js ≥ 20, a Feishu bot app at open.feishu.cn, and claude and/or codex on $PATH. Install with npm install -g agent-feishu-channel, then run afc init and fill in app_id, app_secret, and the access allowlist before running afc.
Migrating from claude-feishu-channel? The command is now afc (was cfc); state auto-renames and history is kept.
Commands and caveats
/new /stop /status /cost /context /compact /provider /mode /model /config set /project /cd /memory
Permission modes: default, acceptEdits, plan, bypassPermissions. You own Feishu credentials and the allowed_open_ids allowlist; don’t default to bypassPermissions in shared groups.
MIT. Issues: https://github.com/Blackman99/agent-feishu-channel/issues
Top comments (0)