You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Telegram bot that gives you remote access to `@openai/codex` through a Node.js runtime with two Codex backends: the Codex SDK and the legacy CLI/PTy path.
7
-
It is strictly inspired by `RichardAtCT/claude-code-telegram`, but this project is implemented for Codex SDK/CLI + MCP + Subagent routing.
7
+
It is strictly inspired by `RichardAtCT/claude-code-telegram`, but this project is implemented for Claude Code SDK/CLI + MCP + Subagent routing.
8
+
9
+
## Use This Like A Skill
10
+
11
+
### What It Does
12
+
13
+
- installs a Telegram-facing Codex runtime
14
+
- keeps Codex live sessions scoped to `chat + repo`
15
+
- manages bot-side MCP and GitHub subagents
16
+
- exposes repo switching, status, and minimal frontend dev-server control from Telegram
-`/gh confirm` -> confirm the pending GitHub write action and execute it
274
+
- plain-text write requests such as `create repo ...`, `commit`, or `push` are intercepted and converted into guidance; they no longer execute GitHub writes directly
221
275
-`/gh run tests` -> launch test job
222
276
-`/gh test status <jobId>` -> read test status/output tail
223
277
@@ -229,8 +283,12 @@ Telegram adaptation notes:
229
283
-`/new` is implemented by the bot and resets the current chat session
230
284
-`/new` only clears the current project's saved Codex conversation slot
231
285
-`/status` is implemented by the bot and reports local runtime state
286
+
-`/status` also surfaces the internal `superpowers` workflow system and the last detected workflow phase for the current chat/project session
232
287
-`/repo` is implemented by the bot and switches the per-chat working directory inside `WORKSPACE_ROOT`
233
288
-`/skill` is implemented by the bot and keeps per-chat skill switches in runtime state
289
+
-`/skill` only lists toggleable bot skills; `superpowers` is shown as an internal workflow, not a toggleable skill
290
+
-`/dev` is implemented by the bot and manages one frontend server per repo workdir, shared across chats
291
+
-`/dev start` prefers `package.json` script `dev` and falls back to `start`
234
292
-`/sh` is implemented by the bot, never invokes a shell interpreter, and only accepts configured command prefixes
235
293
-`/sh` is read-only by default; dangerous prefixes can be configured and require `--confirm` when writable mode is enabled
236
294
-`/plan` translates to a planning-only prompt instead of passing a raw `/plan` slash command to Codex
@@ -273,6 +331,23 @@ The bot now blocks a second Codex run when another bot-managed chat already has
273
331
- switching projects clears the pending blocked request
274
332
- this guard only sees bot-managed chats in this process; if you also use Codex directly in a terminal, use a separate git worktree to avoid conflicts
275
333
334
+
## Frontend Debugging Layer
335
+
336
+
The bot includes a minimal repo-scoped frontend runtime layer:
337
+
338
+
-`/dev start` starts the current repo's frontend command
339
+
-`/dev stop` stops it
340
+
-`/dev status` shows whether it is running
341
+
-`/dev logs` returns the recent output tail
342
+
-`/dev url` returns the first detected local URL from logs
343
+
344
+
Selection rules:
345
+
346
+
- prefer `package.json` script `dev`
347
+
- if `dev` is missing, fall back to `start`
348
+
- keep only one active frontend server per repo workdir
349
+
- do not expose arbitrary shell execution through `/dev`
350
+
276
351
## Backend Selection
277
352
278
353
Choose the execution backend with `CODEX_BACKEND`:
If `CODEX_SDK_SANDBOX_MODE` is unset, the bot now defaults SDK threads to `workspace-write` so normal coding tasks can modify files inside the active repo. Set it explicitly to `read-only` only if you want analysis-only behavior.
373
+
297
374
CLI-related options:
298
375
299
376
```bash
@@ -391,13 +468,16 @@ Recommended local release gate:
391
468
```bash
392
469
BOT_TOKEN=dummy-token ALLOWED_USER_IDS=1 npm run release:check
393
470
npm run healthcheck:live
471
+
npm run telegram:smoke
394
472
```
395
473
474
+
`v1.0.0` should only be tagged after the full release gate, Telegram smoke checks, and repository metadata sync are complete. The detailed checklist and topic sync command live in [release.md](/Users/ding/Documents/Code/Github/CodexClaw/docs/release.md).
Copy file name to clipboardExpand all lines: docs/enterprise-architecture.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Purpose
4
4
5
-
This document defines the target architecture when `codex-telegram-claws` is deployed as a financial enterprise engineering assistant for multiple subsidiary CTO teams. The current repository is a strong single-host beta. The enterprise target is a controlled multi-host platform.
5
+
This document defines the target architecture when `CodexClaw` is deployed as a financial enterprise engineering assistant for multiple subsidiary CTO teams. The current repository is a strong single-host beta. The enterprise target is a controlled multi-host platform.
6
6
7
7
## Target Operating Model
8
8
@@ -82,7 +82,7 @@ Subagents should be triggered only after:
0 commit comments