ccpoke 1.6.15 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +65 -57
- package/README.md +84 -76
- package/README.zh.md +76 -68
- package/dist/agent/agent-handler.js +5 -1
- package/dist/agent/agent-handler.js.map +1 -1
- package/dist/agent/agent-registry.js +2 -0
- package/dist/agent/agent-registry.js.map +1 -1
- package/dist/agent/chat-session-resolver.d.ts +1 -0
- package/dist/agent/claude-code/claude-code-installer.js +11 -8
- package/dist/agent/claude-code/claude-code-installer.js.map +1 -1
- package/dist/agent/claude-code/claude-code-provider.d.ts +1 -0
- package/dist/agent/claude-code/claude-code-provider.js +1 -0
- package/dist/agent/claude-code/claude-code-provider.js.map +1 -1
- package/dist/agent/codex/codex-installer.d.ts +12 -0
- package/dist/agent/codex/codex-installer.js +158 -0
- package/dist/agent/codex/codex-installer.js.map +1 -0
- package/dist/agent/codex/codex-parser.d.ts +16 -0
- package/dist/agent/codex/codex-parser.js +75 -0
- package/dist/agent/codex/codex-parser.js.map +1 -0
- package/dist/agent/codex/codex-provider.d.ts +17 -0
- package/dist/agent/codex/codex-provider.js +76 -0
- package/dist/agent/codex/codex-provider.js.map +1 -0
- package/dist/agent/cursor/cursor-installer.js +28 -6
- package/dist/agent/cursor/cursor-installer.js.map +1 -1
- package/dist/agent/cursor/cursor-parser.js +22 -7
- package/dist/agent/cursor/cursor-parser.js.map +1 -1
- package/dist/agent/cursor/cursor-provider.d.ts +1 -0
- package/dist/agent/cursor/cursor-provider.js +16 -1
- package/dist/agent/cursor/cursor-provider.js.map +1 -1
- package/dist/agent/cursor/cursor-state-reader.js +3 -2
- package/dist/agent/cursor/cursor-state-reader.js.map +1 -1
- package/dist/agent/types.d.ts +1 -0
- package/dist/agent/types.js +1 -1
- package/dist/agent/types.js.map +1 -1
- package/dist/channel/telegram/escape-markdown.d.ts +2 -0
- package/dist/channel/telegram/escape-markdown.js +123 -1
- package/dist/channel/telegram/escape-markdown.js.map +1 -1
- package/dist/channel/telegram/permission-request-handler.js +1 -1
- package/dist/channel/telegram/permission-request-handler.js.map +1 -1
- package/dist/channel/telegram/prompt-handler.d.ts +3 -1
- package/dist/channel/telegram/prompt-handler.js +5 -2
- package/dist/channel/telegram/prompt-handler.js.map +1 -1
- package/dist/channel/telegram/session-list.d.ts +1 -1
- package/dist/channel/telegram/session-list.js +2 -0
- package/dist/channel/telegram/session-list.js.map +1 -1
- package/dist/channel/telegram/telegram-channel.d.ts +6 -1
- package/dist/channel/telegram/telegram-channel.js +84 -9
- package/dist/channel/telegram/telegram-channel.js.map +1 -1
- package/dist/channel/telegram/telegram-sender.js +7 -2
- package/dist/channel/telegram/telegram-sender.js.map +1 -1
- package/dist/commands/setup.js +83 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/uninstall.js +2 -0
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/i18n/locales/en.js +12 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/vi.js +12 -2
- package/dist/i18n/locales/vi.js.map +1 -1
- package/dist/i18n/locales/zh.js +12 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/i18n/types.d.ts +11 -1
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/tmux/session-map.d.ts +3 -1
- package/dist/tmux/session-map.js +10 -6
- package/dist/tmux/session-map.js.map +1 -1
- package/dist/tmux/session-state.d.ts +3 -1
- package/dist/tmux/session-state.js +7 -4
- package/dist/tmux/session-state.js.map +1 -1
- package/dist/tmux/tmux-bridge.d.ts +4 -3
- package/dist/tmux/tmux-bridge.js +36 -11
- package/dist/tmux/tmux-bridge.js.map +1 -1
- package/dist/tmux/tmux-scanner.d.ts +18 -12
- package/dist/tmux/tmux-scanner.js +64 -35
- package/dist/tmux/tmux-scanner.js.map +1 -1
- package/dist/tmux/tmux-session-resolver.d.ts +1 -0
- package/dist/tmux/tmux-session-resolver.js +13 -0
- package/dist/tmux/tmux-session-resolver.js.map +1 -1
- package/dist/utils/constants.d.ts +10 -0
- package/dist/utils/constants.js +15 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/paths.d.ts +4 -0
- package/dist/utils/paths.js +8 -2
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/shell-completion.d.ts +1 -0
- package/dist/utils/shell-completion.js +61 -4
- package/dist/utils/shell-completion.js.map +1 -1
- package/dist/utils/version-check.d.ts +6 -0
- package/dist/utils/version-check.js +72 -19
- package/dist/utils/version-check.js.map +1 -1
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
[Tiếng Việt](./README.md) · [中文](./README.zh.md)
|
|
4
4
|
|
|
5
|
-
>
|
|
5
|
+
> Two-way interaction with Claude Code, Codex CLI, Cursor CLI and more via Telegram — code anytime, anywhere.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## Problem
|
|
10
10
|
|
|
11
|
-
You're using Claude Code or Cursor on your computer. You step away with your phone but have no idea if the AI agent is done yet
|
|
11
|
+
You're using Claude Code, Codex CLI or Cursor CLI on your computer. You step away with your phone but have no idea if the AI agent is done yet, and you want to send more prompts without opening your laptop.
|
|
12
12
|
|
|
13
|
-
**ccpoke** is a
|
|
13
|
+
**ccpoke** is a two-way bridge between AI agents and Telegram — receive notifications, send prompts, answer questions, manage multiple sessions — all from your phone.
|
|
14
14
|
|
|
15
15
|
```
|
|
16
16
|
AI agent completes response
|
|
@@ -24,31 +24,28 @@ AI agent completes response
|
|
|
24
24
|
|
|
25
25
|
## Supported Agents
|
|
26
26
|
|
|
27
|
-
| | Claude Code | Cursor |
|
|
28
|
-
|
|
29
|
-
| Telegram notifications | ✅ macOS · Linux · Windows | ✅ macOS · Linux · Windows |
|
|
30
|
-
| 2-way chat (Telegram ↔ Agent) | ✅ macOS · Linux |
|
|
27
|
+
| | Claude Code | Codex CLI | Cursor CLI |
|
|
28
|
+
|---|---|---|---|
|
|
29
|
+
| Telegram notifications | ✅ macOS · Linux · Windows | ✅ macOS · Linux · Windows | ✅ macOS · Linux · Windows |
|
|
30
|
+
| 2-way chat (Telegram ↔ Agent) | ✅ macOS · Linux | ✅ macOS · Linux | ✅ macOS · Linux |
|
|
31
31
|
|
|
32
32
|
Adding new agents is easy via the plugin architecture — contributions welcome!
|
|
33
33
|
|
|
34
34
|
## Features
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- ⏱ **Processing time** — know how long the agent took
|
|
40
|
-
- 📝 **Response summary** — quick glance at what the agent replied
|
|
41
|
-
- 🔐 **User whitelist** — only authorized users can use the bot
|
|
42
|
-
- 📄 **Auto-split messages** — long responses are automatically paginated `[1/N]`
|
|
36
|
+
- 🔔 **Push notification** — AI agent done → notification pushed instantly, no polling, no delay
|
|
37
|
+
- 💬 **Two-way interaction** — chat with your AI agent from Telegram, view sessions, send prompts, answer questions, approve permissions
|
|
38
|
+
- 🔀 **Multi-session** — manage multiple AI agent sessions simultaneously, switch quickly, parallel monitoring
|
|
43
39
|
|
|
44
40
|
## Requirements
|
|
45
41
|
|
|
46
42
|
- **Node.js** ≥ 20
|
|
43
|
+
- **tmux** — required for two-way interaction (auto-installed on first run)
|
|
47
44
|
- **Telegram Bot Token** — create from [@BotFather](https://t.me/BotFather)
|
|
48
45
|
|
|
49
46
|
## Getting Started
|
|
50
47
|
|
|
51
|
-
### Option 1: npx (
|
|
48
|
+
### Option 1: npx (zero install)
|
|
52
49
|
|
|
53
50
|
```bash
|
|
54
51
|
npx -y ccpoke
|
|
@@ -56,22 +53,13 @@ npx -y ccpoke
|
|
|
56
53
|
|
|
57
54
|
First run → auto setup → start bot. One command, that's it.
|
|
58
55
|
|
|
59
|
-
### Option 2: Global install (
|
|
56
|
+
### Option 2: Global install (recommended — faster startup)
|
|
60
57
|
|
|
61
58
|
```bash
|
|
62
59
|
npm i -g ccpoke
|
|
63
60
|
ccpoke
|
|
64
61
|
```
|
|
65
62
|
|
|
66
|
-
### Option 3: Clone repo (for development)
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
git clone https://github.com/kaida-palooza/ccpoke.git
|
|
70
|
-
cd ccpoke
|
|
71
|
-
pnpm install
|
|
72
|
-
pnpm dev
|
|
73
|
-
```
|
|
74
|
-
|
|
75
63
|
The setup wizard will guide you step by step:
|
|
76
64
|
|
|
77
65
|
```
|
|
@@ -100,32 +88,17 @@ The setup wizard will guide you step by step:
|
|
|
100
88
|
◆ ✓ Connected! User ID: 123456789
|
|
101
89
|
│
|
|
102
90
|
◇ Select AI agents (space to toggle)
|
|
103
|
-
│ Claude Code, Cursor
|
|
91
|
+
│ Claude Code, Codex CLI, Cursor CLI
|
|
104
92
|
│
|
|
105
93
|
◆ Config saved
|
|
106
94
|
◆ Hook installed for Claude Code
|
|
107
|
-
◆ Hook installed for
|
|
95
|
+
◆ Hook installed for Codex CLI
|
|
96
|
+
◆ Hook installed for Cursor CLI
|
|
108
97
|
◆ Chat ID registered
|
|
109
98
|
│
|
|
110
99
|
└ 🎉 Setup complete!
|
|
111
100
|
```
|
|
112
101
|
|
|
113
|
-
<details>
|
|
114
|
-
<summary>Manual setup (without wizard)</summary>
|
|
115
|
-
|
|
116
|
-
Create `~/.ccpoke/config.json`:
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
{
|
|
120
|
-
"telegram_bot_token": "123456:ABC-xxx",
|
|
121
|
-
"user_id": 123456789,
|
|
122
|
-
"hook_port": 9377
|
|
123
|
-
}
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
Then run `ccpoke setup` to install the hook and register your chat ID.
|
|
127
|
-
|
|
128
|
-
</details>
|
|
129
102
|
|
|
130
103
|
## Usage
|
|
131
104
|
|
|
@@ -138,19 +111,58 @@ npx -y ccpoke
|
|
|
138
111
|
# Or global install
|
|
139
112
|
ccpoke
|
|
140
113
|
|
|
141
|
-
# Or local dev
|
|
142
|
-
pnpm dev
|
|
143
114
|
```
|
|
144
115
|
|
|
145
|
-
Once running, use Claude Code / Cursor as usual → notifications will arrive on Telegram.
|
|
116
|
+
Once running, use Claude Code / Codex CLI / Cursor CLI as usual → notifications will arrive on Telegram.
|
|
117
|
+
|
|
118
|
+
### View multi-agent sessions
|
|
119
|
+
|
|
120
|
+
When running multiple agents in parallel, ccpoke creates a tmux session to manage them. To view:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# Regular terminal
|
|
124
|
+
tmux attach
|
|
125
|
+
|
|
126
|
+
# iTerm2 (native integration)
|
|
127
|
+
tmux -CC attach
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Register Projects
|
|
131
|
+
|
|
132
|
+
Register projects to create new agent sessions directly from Telegram — no need to open your computer.
|
|
133
|
+
|
|
134
|
+
**Step 1: Add a project via CLI**
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
ccpoke project
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
┌ 📂 Manage Projects
|
|
142
|
+
│
|
|
143
|
+
◇ Select action
|
|
144
|
+
│ ➕ Add new project
|
|
145
|
+
│
|
|
146
|
+
◇ Project path
|
|
147
|
+
│ /path/to/your/project
|
|
148
|
+
│
|
|
149
|
+
◇ Project name
|
|
150
|
+
│ my-project
|
|
151
|
+
│
|
|
152
|
+
└ ✅ Added: my-project → /path/to/your/project
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Step 2: Create agent sessions from Telegram**
|
|
156
|
+
|
|
157
|
+
Send `/projects` on Telegram → pick a project → choose agent (Claude Code / Codex CLI / Cursor CLI) → agent starts in a new tmux pane.
|
|
146
158
|
|
|
147
159
|
### Telegram Commands
|
|
148
160
|
|
|
149
|
-
| Command
|
|
150
|
-
|
|
151
|
-
| `/start`
|
|
152
|
-
| `/
|
|
153
|
-
| `/
|
|
161
|
+
| Command | Description |
|
|
162
|
+
|-------------|-----------------------------------------------------|
|
|
163
|
+
| `/start` | Re-register chat (auto during setup, rarely needed) |
|
|
164
|
+
| `/sessions` | View active AI agent sessions |
|
|
165
|
+
| `/projects` | View project list and start new sessions |
|
|
154
166
|
|
|
155
167
|
### Sample Notification
|
|
156
168
|
|
|
@@ -161,11 +173,6 @@ Once running, use Claude Code / Cursor as usual → notifications will arrive on
|
|
|
161
173
|
Fixed authentication bug in login.go. Main changes:
|
|
162
174
|
- Fix missing error check at line 42
|
|
163
175
|
- Add input validation...
|
|
164
|
-
|
|
165
|
-
📂 Changes:
|
|
166
|
-
✏️ src/login.go
|
|
167
|
-
➕ src/validator.go
|
|
168
|
-
❌ src/old_auth.go
|
|
169
176
|
```
|
|
170
177
|
|
|
171
178
|
## Uninstall
|
|
@@ -178,7 +185,8 @@ ccpoke uninstall
|
|
|
178
185
|
┌ 🗑️ Uninstalling ccpoke
|
|
179
186
|
│
|
|
180
187
|
◆ Hook removed from Claude Code
|
|
181
|
-
◆ Hook removed from
|
|
188
|
+
◆ Hook removed from Codex CLI
|
|
189
|
+
◆ Hook removed from Cursor CLI
|
|
182
190
|
◆ Removed ~/.ccpoke/ (config, state, hooks)
|
|
183
191
|
│
|
|
184
192
|
└ ccpoke uninstalled
|
package/README.md
CHANGED
|
@@ -1,78 +1,66 @@
|
|
|
1
|
-
# 🐾 ccpoke — AI Agent
|
|
1
|
+
# 🐾 ccpoke — Cầu nối thông báo AI Agent
|
|
2
2
|
|
|
3
3
|
[English](./README.en.md) · [中文](./README.zh.md)
|
|
4
4
|
|
|
5
|
-
>
|
|
5
|
+
> Tương tác 2 chiều với Claude Code, Codex CLI, Cursor CLI và nhiều AI agent khác qua Telegram — lập trình mọi lúc mọi nơi.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## Vấn đề giải quyết
|
|
10
10
|
|
|
11
|
-
Bạn đang dùng Claude Code hoặc Cursor trên máy tính. Ra ngoài cầm điện thoại nhưng không biết AI agent đã xong chưa,
|
|
11
|
+
Bạn đang dùng Claude Code, Codex CLI hoặc Cursor CLI trên máy tính. Ra ngoài cầm điện thoại nhưng không biết AI agent đã xong chưa, muốn gửi thêm yêu cầu mà không cần mở laptop.
|
|
12
12
|
|
|
13
|
-
**ccpoke** là cầu nối
|
|
13
|
+
**ccpoke** là cầu nối 2 chiều giữa AI agent và Telegram — nhận thông báo, gửi yêu cầu, trả lời câu hỏi, quản lý nhiều phiên làm việc — tất cả từ điện thoại.
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
AI agent
|
|
16
|
+
AI agent hoàn thành phản hồi
|
|
17
17
|
↓
|
|
18
|
-
Stop Hook
|
|
18
|
+
Stop Hook kích hoạt
|
|
19
19
|
↓
|
|
20
|
-
ccpoke nhận
|
|
20
|
+
ccpoke nhận sự kiện
|
|
21
21
|
↓
|
|
22
|
-
Telegram
|
|
22
|
+
Thông báo Telegram 📱
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Agent hỗ trợ
|
|
26
26
|
|
|
27
|
-
| | Claude Code | Cursor |
|
|
28
|
-
|
|
29
|
-
|
|
|
30
|
-
|
|
|
27
|
+
| | Claude Code | Codex CLI | Cursor CLI |
|
|
28
|
+
|---|---|---|---|
|
|
29
|
+
| Thông báo Telegram | ✅ macOS · Linux · Windows | ✅ macOS · Linux · Windows | ✅ macOS · Linux · Windows |
|
|
30
|
+
| Trò chuyện 2 chiều (Telegram ↔ Agent) | ✅ macOS · Linux | ✅ macOS · Linux | ✅ macOS · Linux |
|
|
31
31
|
|
|
32
|
-
Thêm agent mới qua kiến trúc plugin —
|
|
32
|
+
Thêm agent mới qua kiến trúc plugin — hoan nghênh đóng góp!
|
|
33
33
|
|
|
34
34
|
## Tính năng
|
|
35
35
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
- ⏱ **Thời gian xử lý** — biết agent chạy bao lâu
|
|
40
|
-
- 📝 **Tóm tắt response** — xem nhanh agent trả lời gì
|
|
41
|
-
- 🔐 **Whitelist user** — chỉ user được phép mới dùng được bot
|
|
42
|
-
- 📄 **Auto-split message** — response dài tự động chia page `[1/N]`
|
|
36
|
+
- 🔔 **Thông báo đẩy** — AI agent xong → Telegram nhận tin ngay, không cần kiểm tra liên tục, không trễ
|
|
37
|
+
- 💬 **Tương tác 2 chiều** — trò chuyện với AI agent từ Telegram, xem phiên làm việc, gửi yêu cầu, trả lời câu hỏi, phê duyệt quyền
|
|
38
|
+
- 🔀 **Đa phiên** — quản lý nhiều phiên AI agent cùng lúc, chuyển đổi nhanh, giám sát song song
|
|
43
39
|
|
|
44
40
|
## Yêu cầu
|
|
45
41
|
|
|
46
42
|
- **Node.js** ≥ 20
|
|
43
|
+
- **tmux** — cần cho tương tác 2 chiều (tự cài khi chạy lần đầu)
|
|
47
44
|
- **Telegram Bot Token** — tạo từ [@BotFather](https://t.me/BotFather)
|
|
48
45
|
|
|
49
46
|
## Bắt đầu
|
|
50
47
|
|
|
51
|
-
### Cách 1: npx (
|
|
48
|
+
### Cách 1: npx (không cần cài đặt)
|
|
52
49
|
|
|
53
50
|
```bash
|
|
54
51
|
npx -y ccpoke
|
|
55
52
|
```
|
|
56
53
|
|
|
57
|
-
Lần đầu chạy → tự động
|
|
54
|
+
Lần đầu chạy → tự động thiết lập → khởi động bot. Một lệnh duy nhất.
|
|
58
55
|
|
|
59
|
-
### Cách 2:
|
|
56
|
+
### Cách 2: Cài đặt toàn cục (khuyến nghị — khởi động nhanh hơn)
|
|
60
57
|
|
|
61
58
|
```bash
|
|
62
59
|
npm i -g ccpoke
|
|
63
60
|
ccpoke
|
|
64
61
|
```
|
|
65
62
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
git clone https://github.com/kaida-palooza/ccpoke.git
|
|
70
|
-
cd ccpoke
|
|
71
|
-
pnpm install
|
|
72
|
-
pnpm dev
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
Setup wizard sẽ hướng dẫn từng bước:
|
|
63
|
+
Trình hướng dẫn cài đặt sẽ dẫn bạn từng bước:
|
|
76
64
|
|
|
77
65
|
```
|
|
78
66
|
┌ 🤖 ccpoke setup
|
|
@@ -100,72 +88,91 @@ Setup wizard sẽ hướng dẫn từng bước:
|
|
|
100
88
|
◆ ✓ Connected! User ID: 123456789
|
|
101
89
|
│
|
|
102
90
|
◇ Chọn AI agents (ấn cách để chọn)
|
|
103
|
-
│ Claude Code, Cursor
|
|
91
|
+
│ Claude Code, Codex CLI, Cursor CLI
|
|
104
92
|
│
|
|
105
93
|
◆ Config saved
|
|
106
94
|
◆ Hook installed for Claude Code
|
|
107
|
-
◆ Hook installed for
|
|
95
|
+
◆ Hook installed for Codex CLI
|
|
96
|
+
◆ Hook installed for Cursor CLI
|
|
108
97
|
◆ Chat ID registered
|
|
109
98
|
│
|
|
110
99
|
└ 🎉 Setup complete!
|
|
111
100
|
```
|
|
112
101
|
|
|
113
|
-
<details>
|
|
114
|
-
<summary>Thiết lập thủ công (không dùng wizard)</summary>
|
|
115
|
-
|
|
116
|
-
Tạo file `~/.ccpoke/config.json`:
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
{
|
|
120
|
-
"telegram_bot_token": "123456:ABC-xxx",
|
|
121
|
-
"user_id": 123456789,
|
|
122
|
-
"hook_port": 9377
|
|
123
|
-
}
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
Sau đó chạy `ccpoke setup` để cài hook và đăng ký chat ID.
|
|
127
|
-
|
|
128
|
-
</details>
|
|
129
102
|
|
|
130
103
|
## Sử dụng
|
|
131
104
|
|
|
132
105
|
### Khởi động bot
|
|
133
106
|
|
|
134
107
|
```bash
|
|
135
|
-
# npx (
|
|
108
|
+
# npx (không cần cài đặt)
|
|
136
109
|
npx -y ccpoke
|
|
137
110
|
|
|
138
|
-
# Hoặc
|
|
111
|
+
# Hoặc cài đặt toàn cục
|
|
139
112
|
ccpoke
|
|
140
113
|
|
|
141
|
-
# Hoặc local dev
|
|
142
|
-
pnpm dev
|
|
143
114
|
```
|
|
144
115
|
|
|
145
|
-
Bot chạy xong → dùng Claude Code / Cursor bình thường →
|
|
116
|
+
Bot chạy xong → dùng Claude Code / Codex CLI / Cursor CLI bình thường → thông báo tự đến Telegram.
|
|
146
117
|
|
|
147
|
-
###
|
|
118
|
+
### Xem phiên làm việc đa agent
|
|
148
119
|
|
|
149
|
-
|
|
150
|
-
|-----------|---------------------------------------------------|
|
|
151
|
-
| `/start` | Đăng ký lại chat (tự động khi setup, ít khi cần) |
|
|
152
|
-
| `/ping` | Kiểm tra bot còn sống không |
|
|
153
|
-
| `/status` | Xem trạng thái bot |
|
|
120
|
+
Khi chạy nhiều agent song song, ccpoke tạo phiên tmux để quản lý. Để xem:
|
|
154
121
|
|
|
155
|
-
|
|
122
|
+
```bash
|
|
123
|
+
# Cửa sổ dòng lệnh thường
|
|
124
|
+
tmux attach
|
|
156
125
|
|
|
126
|
+
# iTerm2 (tích hợp gốc)
|
|
127
|
+
tmux -CC attach
|
|
157
128
|
```
|
|
158
|
-
🤖 Claude Code Response
|
|
159
|
-
📂 my-project | ⏱ 45s
|
|
160
129
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
130
|
+
### Đăng ký dự án
|
|
131
|
+
|
|
132
|
+
Đăng ký dự án để tạo phiên agent mới trực tiếp từ Telegram — không cần mở máy tính.
|
|
133
|
+
|
|
134
|
+
**Bước 1: Thêm dự án qua dòng lệnh**
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
ccpoke project
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
┌ 📂 Quản lý dự án
|
|
142
|
+
│
|
|
143
|
+
◇ Chọn thao tác
|
|
144
|
+
│ ➕ Thêm dự án mới
|
|
145
|
+
│
|
|
146
|
+
◇ Đường dẫn dự án
|
|
147
|
+
│ /path/to/your/project
|
|
148
|
+
│
|
|
149
|
+
◇ Tên dự án
|
|
150
|
+
│ my-project
|
|
151
|
+
│
|
|
152
|
+
└ ✅ Đã thêm: my-project → /path/to/your/project
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Bước 2: Tạo phiên agent từ Telegram**
|
|
156
|
+
|
|
157
|
+
Gửi `/projects` trên Telegram → chọn dự án → chọn agent (Claude Code / Codex CLI / Cursor CLI) → agent khởi chạy trong ô tmux mới.
|
|
158
|
+
|
|
159
|
+
### Lệnh Telegram
|
|
160
|
+
|
|
161
|
+
| Lệnh | Chức năng |
|
|
162
|
+
|-------------|-------------------------------------------------------------|
|
|
163
|
+
| `/start` | Đăng ký lại cuộc trò chuyện (tự động khi cài đặt, ít cần) |
|
|
164
|
+
| `/sessions` | Xem danh sách phiên AI agent đang hoạt động |
|
|
165
|
+
| `/projects` | Xem danh sách dự án và mở phiên mới |
|
|
166
|
+
|
|
167
|
+
### Thông báo mẫu
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
🤖 Phản hồi Claude Code
|
|
171
|
+
📂 my-project | ⏱ 45 giây
|
|
164
172
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
❌ src/old_auth.go
|
|
173
|
+
Đã sửa lỗi xác thực trong login.go. Thay đổi chính:
|
|
174
|
+
- Sửa thiếu kiểm tra lỗi ở dòng 42
|
|
175
|
+
- Thêm kiểm tra đầu vào...
|
|
169
176
|
```
|
|
170
177
|
|
|
171
178
|
## Gỡ cài đặt
|
|
@@ -178,17 +185,18 @@ ccpoke uninstall
|
|
|
178
185
|
┌ 🗑️ Uninstalling ccpoke
|
|
179
186
|
│
|
|
180
187
|
◆ Hook removed from Claude Code
|
|
181
|
-
◆ Hook removed from
|
|
188
|
+
◆ Hook removed from Codex CLI
|
|
189
|
+
◆ Hook removed from Cursor CLI
|
|
182
190
|
◆ Removed ~/.ccpoke/ (config, state, hooks)
|
|
183
191
|
│
|
|
184
192
|
└ ccpoke uninstalled
|
|
185
193
|
```
|
|
186
194
|
|
|
187
|
-
##
|
|
195
|
+
## Giấy phép
|
|
188
196
|
|
|
189
197
|
MIT
|
|
190
198
|
|
|
191
|
-
##
|
|
199
|
+
## Người đóng góp
|
|
192
200
|
<a href="https://github.com/lethai2597">
|
|
193
201
|
<img src="https://github.com/lethai2597.png" width="50" />
|
|
194
202
|
</a>
|