lark-agent-bridge

Routes Feishu/Lark bot messages into tmux-hosted AI agent sessions and sends replies back.

1|Updated Apr 9, 2026
Ready to run
npx skills add https://github.com/cntuzi/ai-playbook --skill lark-agent-bridge-cntuzi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: lark-agent-bridge
Source: https://github.com/cntuzi/ai-playbook/tree/main/cases/lark-agent-bridge/skill
Command: npx skills add https://github.com/cntuzi/ai-playbook --skill lark-agent-bridge-cntuzi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Connecting a Feishu/Lark bot to a local AI coding agent normally requires custom webhook servers and session plumbing. This Skill bridges incoming Lark bot messages directly into an existing Codex or Claude Code session running in a tmux pane, and sends progress updates and final results back to the originating chat. ## Core Features & Use Cases - Message Routing: Incoming Lark messages are pasted into a selected tmux pane so the running agent session receives them as user input, with echo filtering and quoted-message context. - Agent Management UI: A local web console lists configured bot profiles and tmux work sessions, starts/stops per-bot bridges, and previews redacted agent output. - Progress and Result Feedback: An automatic monitor watches the pane for new agent output and replies with redacted progress, while final answers are sent explicitly via the feedback script. - Use Case: A team member messages the Lark bot with a bug report; the bridge injects it into the Codex session, streams progress back to the chat, and the agent posts the final fix summary when done. ## Quick Start Ask the agent to start the Lark Agent Bridge manager on port 17654, then open the local page, pick a bot profile and a tmux pane, and start the bridge.

Frequently Asked Questions about lark-agent-bridge

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a Feishu/Lark bot to a local Codex or Claude Code session?▼

Configure a lark-cli profile for the bot, start the manager script on port 17654, then open the local page to bind the bot profile to the tmux pane running your agent session. Incoming messages are pasted into that pane automatically.

How do I send agent progress or results back to a Lark chat?▼

Run the feedback.mjs script with --profile, --kind progress or result, and --text. It replies to the latest received message by default, or you can target a specific message with --message-id or --chat-id.

What permissions does the Feishu/Lark bot need for message bridging?▼

The bot app needs an event subscription for im.message.receive_v1 to receive messages and the im:message scope to reply. Configure these in the Feishu developer console, then verify with lark-cli doctor.

Can multiple Lark bots run against different agent sessions at the same time?▼

Yes. Each bot profile gets its own detached tmux bridge session, and starting or restarting one profile does not affect the others. The manager page shows running status per bot.

Why does the bridge stop receiving Lark messages after running for hours?▼

Long-lived event connections can go stale, especially through local network proxies. The worker rotates the event connection every 360 minutes and the manager restarts exited workers after about 5 seconds.

Is it safe to expose agent terminal output through the bridge?▼

The manager and feedback scripts redact app secrets, tokens, and Lark object IDs before returning content, and the manager binds to localhost by default. Operators should still review outputs and avoid publishing logs or chat IDs.