https://github.com/tuchg/Lucarne
Stop babysitting local AI agents. Just notifications, approve, and resume your Codex,Pi, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/微信/飞书. No hooks, no skills, no MCP.
https://github.com/tuchg/Lucarne
agent-bridge agent-im agent-management agent-sessions ai-agents claude-code codex gemini managed-agents notification pi remote-agents remote-control telegram-bot zero-intrusion
Last synced: 1 day ago
JSON representation
Stop babysitting local AI agents. Just notifications, approve, and resume your Codex,Pi, or Claude code sessions anywhere. 0-Intrusion mobile control bridge via Telegram/微信/飞书. No hooks, no skills, no MCP.
- Host: GitHub
- URL: https://github.com/tuchg/Lucarne
- Owner: tuchg
- License: mit
- Created: 2026-05-17T05:23:22.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-06-03T08:51:46.000Z (about 1 month ago)
- Last Synced: 2026-07-07T16:30:23.281Z (10 days ago)
- Topics: agent-bridge, agent-im, agent-management, agent-sessions, ai-agents, claude-code, codex, gemini, managed-agents, notification, pi, remote-agents, remote-control, telegram-bot, zero-intrusion
- Language: Rust
- Homepage:
- Size: 4.28 MB
- Stars: 307
- Watchers: 1
- Forks: 14
- Open Issues: 16
-
Metadata Files:
- Readme: README.cn.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
- claude-code-skills-zh - tuchg/Lucarne
README

[](https://github.com/tuchg/Lucarne/actions/workflows/release.yml)




[English](README.md) | 中文
**Agents 完成、卡住、需要你时,Lucarne 会在手机上叫你。**
- Agents 在本地电脑上跑,人可以放下电脑;微信 / Telegram 随时同步关键进展
- 0 侵入使用,无 hook、无 skills、无MCP,不动agent;扫码即可一键使用
- 权限审批、问题确认、失败通知,都变成手机上的可处理事件
- 微信扫码接收agents消息,引用消息即可自动接续对应上下文
- Telegram 控制台查看所有 Agent、工作区、历史会话
- 查看本机agents历史会话、本机当下正在运行的agent
- 高性能低内存的轻量常驻进程,闲置agent自动释放
- 无需在手机安装新的app,安全接收最及时的消息通知
---
## 快速启动
### 1. 安装
macOS / Linux:
```bash
curl -LsSf https://github.com/tuchg/Lucarne/releases/latest/download/lucarned-installer.sh | sh
```
Windows PowerShell:
```powershell
powershell -c "irm https://github.com/tuchg/Lucarne/releases/latest/download/lucarned-installer.ps1 | iex"
```
Homebrew(推荐)与发布包
Homebrew:
```bash
brew tap tuchg/Lucarne https://github.com/tuchg/Lucarne
brew install lucarned
```
也可以在 GitHub Releases 下载 macOS、Linux、Windows 的 x86_64 / aarch64 发布包。
### 2. 初始化
```bash
lucarned init
```
初始化会引导你:
- 选择启用的 Agent:`claude`、`codex`、`copilot`、`gemini`、`pi`、`grok`(Grok Build)
- 配置 Telegram Bot Token 和已开启 Topics/Thread mode 的入口 chat(可选)
- 扫码登录微信(可选)
- 生成配置文件:`~/.lucarned/lucarned.yaml`
### 3. 启动后台服务
```bash
lucarned autostart install --start
```
Homebrew service 命令(推荐)
```bash
brew services start lucarned
brew services restart lucarned
brew services stop lucarned
```
平台说明
`lucarned autostart` 使用各系统的用户级服务管理器:
- macOS:LaunchAgent
- Windows:Task Scheduler 登录任务
- Linux:systemd user service
Linux autostart 需要 systemd user service。非 systemd Linux 可以手动运行 `lucarned`。
### 4. 打开 Telegram 面板 (可选)
```text
/panel
```
看到 Lucarne 面板后,即可新建 workspace、绑定 Agent、恢复历史 session、审批命令。
### 常用命令
```bash
lucarned doctor
lucarned paths
lucarned autostart status
lucarned autostart start
lucarned autostart stop
lucarned update
```
Homebrew service 命令
```bash
brew update
brew upgrade lucarned
brew services start lucarned
brew services restart lucarned
brew services stop lucarned
```
```text
macOS/Linux 配置: ~/.lucarned/lucarned.yaml
Windows 配置: %LOCALAPPDATA%\lucarned\lucarned.yaml
日志: lucarned paths
```
---
## 配置示例
完整示例见 [`examples/lucarned.yaml`](examples/lucarned.yaml)。
初始化后,实际配置位于:`~/.lucarned/lucarned.yaml`。
也可用环境变量覆盖:
```bash
export TELEGRAM_BOT_TOKEN="123456:..."
export TELEGRAM_CHAT_ID="123456789"
export LUCARNE_AUTHORIZED_USER_IDS="111111,222222"
```
---
## 使用方式
完整命令参考见 [`docs/commands.md`](docs/commands.md)。README 只保留核心路径。
### WeChat:引用即路由
1. Lucarne 把 Agent 进展推送到微信。
2. 引用通知并回复,Lucarne 自动恢复对应 agent session。
3. 继续追问,自动接续原上下文。
4. 若官方限流导致消息积压,发送 `/latest` 或快捷指令 `/l` 可清除积压并只推送各工作区最新一轮通知(不回复帮助菜单;不会全量刷出历史积压)。
微信引用路由支持双策略:优先 `message_id`,失败后用引用文本哈希兜底。
### Telegram:移动端多 Agent 控制台
Telegram 入口 chat 需要开启 Topics/Thread mode。可以直接使用 Bot 私聊里的 Bot 自带话题模式(Bot API 9.4+ 的 `getMe` 会返回 `has_topics_enabled`);`entry_chat_id` 填这个私聊 ID。Forum supergroup 也可用,但不是必须。
1. 在入口 chat 发送 `/panel`。
2. 点 `New` 或发送 `/aN` 新建 Agent workspace。
3. 进入 workspace topic,像聊天一样给 Agent 派任务。
4. Agent 请求权限时,点 `[Approve]` / `[Deny]`。
5. 需要查看状态时发 `/status`;需要中断时发 `/interrupt`;需要分支时发 `/fork`。
Telegram workspace 映射为 Forum Topic。一个项目一个 topic;一个 topic 可绑定一个 live Agent session。
- Telegram支持WeChat所有功能
---
## 架构概览
```
┌─────────────┐ ┌─────────────┐
│ Telegram │ │ WeChat │ ← 用户接触面
└──────┬──────┘ └──────┬──────┘
│ │
lucarne- lucarne-
telegram wechat ← Channel adapter(命令、通知、队列、重试)
│ │
└───────┬────────┘
lucarne-adapter ← Plugin registry
│
lucarne ← Core: runtime bus, control plane, history, daemon
│
agent-sessions ← Provider parse / discovery / watch
│
┌──────┬──────┬──────┬──────┬──────┐
Claude Codex Gemini Copilot Pi Grok ← Agent CLI 进程
```
---
## Agent 能力矩阵
| 能力 | Claude | Codex | Gemini | Copilot | Pi | Grok Build |
|---|---:|---:|---:|---:|---:|---:|
| 推理 / Thinking | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 工具调用 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 结构化审批 | ✅ | ✅ | ✅ | — | ✅ | ✅ |
| AskUserQuestion | ✅ | ✅ | ✅ | — | — | ✅ |
| 使用量追踪 | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| 中断 | ✅ | ✅ | ✅ | — | ✅ | ✅ |
| Resume | ✅ | ✅ | ✅ | — | ✅ | ✅ |
| 子 Agent | ✅ | ✅ | — | — | — | — |
| 原生命令 | ✅ | ✅ | ✅ | — | ✅ | ✅ |
| Fork(创建分支会话) | ✅ | ✅ | — | — | ✅ | ✅ |
---
## 开发
```bash
git clone https://github.com/tuchg/Lucarne.git
cd agents
cargo +nightly check -Zbuild-dir-new-layout
cargo +nightly test -Zbuild-dir-new-layout
```
---
## Roadmap
- [x] Linux 支持:补齐安装说明、服务管理、发布包与 smoke test
- [x] Windows 支持:补齐安装说明、后台运行、路径 / 进程兼容与发布包
- [ ] 消息模式 steer/queue
- [ ] agent-sessions 整理为独立crate
- [ ] 支持远程 agent 环境
- [ ] 更多 Agent Provider:Cursor、opencode 等
- [ ] More channels:Discord、Slack、飞书、钉钉、Matrix、QQ 等更多入口
- [ ] ....
---
## License
MIT