Skip to content

Commit 75e634d

Browse files
authored
Merge pull request #3 from im4codes/dev
Dev
2 parents ecfe6d7 + 80c5498 commit 75e634d

159 files changed

Lines changed: 11187 additions & 1664 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,38 @@ jobs:
413413
fi
414414
echo "npm_version=${NPM_VERSION}" >> "$GITHUB_OUTPUT"
415415
416-
- name: Build and push
416+
# Build the image into the local docker daemon first so we can smoke-test
417+
# it BEFORE pushing. Without this step, an image whose Node process
418+
# crashes on startup (e.g. ERR_MODULE_NOT_FOUND from a missing prod dep)
419+
# would still get pushed and auto-deployed to production.
420+
- name: Build (load to local docker for smoke test)
421+
uses: docker/build-push-action@v6
422+
with:
423+
context: .
424+
file: server/Dockerfile
425+
platforms: linux/amd64
426+
tags: imcodes-smoke:test
427+
build-args: |
428+
BUILD_TIME=${{ steps.ts.outputs.value }}
429+
OTA_VERSION=${{ steps.ota.outputs.version }}
430+
APP_VERSION=${{ steps.version_meta.outputs.npm_version }}
431+
cache-from: type=gha
432+
cache-to: type=gha,mode=max
433+
load: true
434+
push: false
435+
436+
- name: Container startup smoke test
437+
run: |
438+
set -euo pipefail
439+
# Override entrypoint to run an import-only check inside the actual
440+
# production image. index.ts has an isMain guard so the import
441+
# resolves all static deps (including all routes/* modules) without
442+
# binding ports or hitting the database. Any ERR_MODULE_NOT_FOUND or
443+
# other top-level eval failure surfaces here, before the image ships.
444+
docker run --rm --entrypoint node imcodes-smoke:test \
445+
-e "import('./dist/server/src/index.js').then(() => { console.log('OK: image loads cleanly'); process.exit(0); }).catch(e => { console.error('FAIL:', e.message); console.error(e.stack); process.exit(1); })"
446+
447+
- name: Build and push (cache hit — only pushes layers)
417448
uses: docker/build-push-action@v6
418449
with:
419450
context: .

CLAUDE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ Node.js process that manages AI agent sessions via tmux. Entry point: `src/index
5252
- `session-manager.ts` manages all sessions, auto-restart with loop prevention. `provider-registry.ts` manages transport provider lifecycle.
5353
- **Transport relay** (`src/daemon/transport-relay.ts`): Converts transport provider callbacks (`onDelta`, `onComplete`, `onError`) to unified timeline events (`assistant.text`, `session.state`, `tool.call`).
5454
- **Routing** (`src/router/`): `message-router.ts` routes inbound messages to the correct session. `command-parser.ts` handles `/bind`, `/status`, `/send`, etc.
55-
- **Brain dispatcher** (`src/agent/brain-dispatcher.ts`): Parses `@w1`, `@status`, `@reply` commands from the brain session's output, dispatching to workers.
5655
- **Server link** (`src/daemon/server-link.ts`): WebSocket client connecting to the server at `/api/server/:id/ws`. Sends `{ type: 'auth', serverId, token }` on open. Credentials stored in `~/.imcodes/server.json` after `imcodes bind`.
5756
- **Session store** (`src/store/session-store.ts`): JSON file at `~/.imcodes/sessions.json`, debounced writes.
5857

README.i18n/README.es.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ Previsualiza tu servidor de desarrollo local desde cualquier dispositivo sin des
8484
### Móvil, reloj y notificaciones
8585
Soporte completo para móvil, autenticación biométrica, notificaciones push, entrada interactiva para sesiones shell y respuestas rápidas desde Apple Watch.
8686

87-
### Discusiones y auditoría multiagente
88-
Puedes ejecutar rondas rápidas de discusión donde varios agentes, incluso de distintos proveedores, revisan o auditan el mismo tema.
87+
### Auditoría cross-modelo y discusiones P2P
88+
La salida de un solo modelo no debería confiarse ciegamente. Las discusiones P2P permiten que múltiples agentes — de distintos proveedores y estilos de pensamiento — colaboren en el análisis del mismo código antes de escribir una sola línea. Cada ronda sigue un pipeline multifase personalizable, donde cada agente lee todas las contribuciones anteriores. Diferentes modelos detectan diferentes tipos de problemas. Esta revisión cruzada entre proveedores encuentra la mayoría de los problemas antes de la implementación, reduciendo drásticamente el retrabajo.
89+
90+
Modos integrados: `audit` (pipeline estructurado audit → review → plan), `review`, `discuss` y `brainstorm` — o define tu propia secuencia de fases. Funciona con Claude Code, Codex, Gemini CLI y Qwen.
8991

9092
### Agentes transport con streaming
9193
Soporte nativo de streaming para agentes transport como OpenClaw y Qwen, sin scraping de terminal.

README.i18n/README.ja.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ SSH、VPN、ポート開放なしで、任意のブラウザから agent session
8080
### モバイル、Watch、通知
8181
生体認証、push 通知、shell session の入力、Apple Watch での素早い確認と返信に対応します。
8282

83-
### マルチエージェント議論と監査
84-
複数の agent による discuss / audit / review / brainstorm ラウンドを実行できます。
83+
### クロスモデル監査と P2P ディスカッション
84+
単一モデルの出力を盲信すべきではありません。P2P ディスカッションでは、異なるプロバイダーや思考スタイルを持つ複数の agent が、コードを書く前に同じコードベースで協調分析を行います。各ラウンドはカスタマイズ可能なマルチフェーズパイプラインに従い、各 agent は前の貢献をすべて読んだ上で出力します。異なるモデルは異なる種類の問題を発見します。このクロスプロバイダー相互審査により、実装前に大部分の問題を発見し、手戻りを大幅に削減できます。
85+
86+
組み込みモードは `audit`(構造化された audit → review → plan パイプライン)、`review``discuss``brainstorm` で、独自のフェーズ構成も定義可能。Claude Code、Codex、Gemini CLI、Qwen で動作します。
8587

8688
### Streaming Transport Agents
8789
OpenClaw や Qwen のような transport 型 agent に対して、terminal scraping ではなくネイティブなストリーミングを提供します。

README.i18n/README.ko.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ SSH, VPN, 포트 포워딩 없이 브라우저에서 agent session의 터미널
8080
### 모바일, 워치, 알림
8181
생체 인증, 푸시 알림, shell session 입력, Apple Watch 빠른 응답을 지원합니다.
8282

83-
### 멀티 에이전트 토론과 감사
84-
여러 agent가 discuss / audit / review / brainstorm 라운드를 수행할 수 있습니다.
83+
### 크로스 모델 감사와 P2P 토론
84+
단일 모델의 출력을 맹목적으로 신뢰해서는 안 됩니다. P2P 토론은 서로 다른 프로바이더와 사고 방식을 가진 여러 agent가 코드 작성 전에 동일한 코드베이스에서 협력 분석을 수행합니다. 각 라운드는 커스터마이징 가능한 멀티 페이즈 파이프라인을 따르며, 각 agent는 이전 기여를 모두 읽은 후 출력합니다. 서로 다른 모델이 서로 다른 유형의 문제를 발견합니다. 이 크로스 프로바이더 교차 검토로 구현 전에 대부분의 문제를 찾아내어 재작업을 대폭 줄일 수 있습니다.
85+
86+
내장 모드는 `audit`(구조화된 audit → review → plan 파이프라인), `review`, `discuss`, `brainstorm`이며, 사용자 정의 페이즈 구성도 가능합니다. Claude Code, Codex, Gemini CLI, Qwen에서 작동합니다.
8587

8688
### 스트리밍 Transport Agents
8789
OpenClaw, Qwen 같은 transport agent에 대해 네이티브 스트리밍을 제공합니다.

README.i18n/README.ru.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ Claude Code и Codex теперь поддерживают два способа
8080
### Мобильные устройства, часы и уведомления
8181
Есть биометрическая аутентификация, push‑уведомления, ввод для shell‑сессий и быстрые ответы на Apple Watch.
8282

83-
### Многоагентные обсуждения и аудит
84-
Можно запускать быстрые discuss / audit / review / brainstorm раунды между несколькими агентами.
83+
### Кросс-модельный аудит и P2P обсуждения
84+
Выходу одной модели нельзя доверять слепо. P2P обсуждения позволяют нескольким агентам — от разных провайдеров и с разными стилями мышления — совместно анализировать одну кодовую базу ещё до написания кода. Каждый раунд следует настраиваемому многоэтапному пайплайну, где каждый агент читает все предыдущие вклады. Разные модели находят разные типы проблем. Такая перекрёстная проверка выявляет большинство проблем до реализации, резко сокращая переделки.
85+
86+
Встроенные режимы: `audit` (структурированный пайплайн audit → review → plan), `review`, `discuss` и `brainstorm` — или определите собственную последовательность фаз. Работает с Claude Code, Codex, Gemini CLI и Qwen.
8587

8688
### Потоковые transport‑агенты
8789
OpenClaw и Qwen работают через структурированный transport‑stream вместо terminal scraping.

README.i18n/README.zh-CN.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ Claude Code 和 Codex 现在都支持两种接入方式:CLI 和 SDK。
8888

8989
完整支持移动端,包含生物识别认证和推送通知。Shell 会话在手机上也支持交互式键盘输入(类似 SSH)。子会话预览卡始终显示最新消息。Toast 通知可直接跳转到对应会话。Apple Watch 支持会话快速查看、未读计数和快速回复。
9090

91-
### 多 Agent 讨论与审计
91+
### 跨模型审计与 P2P 讨论
9292

93-
单模型输出不应被盲目信任。你可以快速发起多轮讨论,让多个 agent——甚至跨 provider——围绕同一主题进行 review、audit 或 brainstorming。每个 agent 会读取前面的内容,再追加自己的分析。支持 `discuss``audit``review``brainstorm` 模式。侧边栏中的环形进度条会显示 round / hop 完成情况。支持 Claude Code、Codex、Gemini CLI,也兼容带 sandbox 的 agent。
93+
单模型输出不应被盲目信任。P2P 讨论让多个 agent——跨不同 provider 和思维风格——在写代码之前就对同一代码库进行协作分析。每轮遵循可自定义的多阶段流程,每个 agent 读取所有前序贡献并在此基础上输出。不同模型捕获不同类别的问题:一个发现竞态条件,另一个指出遗漏的 migration,第三个质疑 API 设计。这种跨 provider 交叉审查能在实现前发现绝大部分问题,大幅减少返工。
94+
95+
内置模式包括 `audit`(结构化 audit → review → plan 流水线)、`review``discuss``brainstorm`,也可以自定义阶段序列。侧边栏中的环形进度条会显示 round / hop 完成情况。支持 Claude Code、Codex、Gemini CLI 和 Qwen,也兼容带 sandbox 的 agent。通过 `@@all(config)` 或 UI 配置参与者、轮次、模式和 P2P 设置。
9496

9597
### 流式 Transport Agents
9698

README.i18n/README.zh-TW.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ Claude Code 和 Codex 現在都支援兩種接入方式:CLI 和 SDK。
8888

8989
完整支持移动端,包含生物识别认证和推送通知。Shell 会话在手機上也支持交互式键盘输入(类似 SSH)。子会话預覽卡始终显示最新消息。Toast 通知可直接跳转到对应会话。Apple Watch 支持会话快速檢視、未读计数和快速回复。
9090

91-
### 多 Agent 討論與審計
91+
### 跨模型稽核與 P2P 討論
9292

93-
单模型输出不应被盲目信任。你可以快速发起多轮讨论,让多个 agent——甚至跨 provider——围绕同一主题进行 review、audit 或 brainstorming。每个 agent 会读取前面的内容,再追加自己的分析。支持 `discuss``audit``review``brainstorm` 模式。侧边栏中的环形进度条会显示 round / hop 完成情况。支持 Claude Code、Codex、Gemini CLI,也兼容带 sandbox 的 agent。
93+
單一模型的輸出不應被盲目信任。P2P 討論讓多個 agent——跨不同 provider 和思維風格——在寫程式之前就對同一代碼庫進行協作分析。每輪遵循可自訂的多階段流程,每個 agent 讀取所有前序貢獻並在此基礎上輸出。不同模型捕獲不同類別的問題:一個發現競態條件,另一個指出遺漏的 migration,第三個質疑 API 設計。這種跨 provider 交叉審查能在實現前發現絕大部分問題,大幅減少返工。
94+
95+
內建模式包括 `audit`(結構化 audit → review → plan 流水線)、`review``discuss``brainstorm`,也可以自訂階段序列。側邊欄中的環形進度條會顯示 round / hop 完成情況。支持 Claude Code、Codex、Gemini CLI 和 Qwen,也相容帶 sandbox 的 agent。透過 `@@all(config)` 或 UI 配置參與者、輪次、模式和 P2P 設定。
9496

9597
### 串流 Transport Agents
9698

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ Preview your local dev server from any device — phone, tablet, or remote brows
8484

8585
Full mobile support with biometric auth and push notifications. Shell sessions allow interactive keyboard input on mobile (SSH-like). Sub-session preview cards always show latest messages. Toast notifications navigate directly to the relevant session. Apple Watch support adds quick session monitoring, unread counts, and quick replies from the wrist.
8686

87-
### Multi-Agent Discussions & Audit
87+
### Multi-Agent Discussions & Cross-Provider Audit
8888

89-
Single-model output shouldn't be trusted blindly. Spawn quick discussion rounds where multiple agents — across different providers — review, audit, or brainstorm on the same topic. Each agent reads prior contributions and adds their own. Modes include `discuss`, `audit`, `review`, and `brainstorm`. Ring progress indicator shows round/hop completion in the sidebar. Works across Claude Code, Codex, and Gemini CLI, including sandboxed agents.
89+
Single-model output shouldn't be trusted blindly. P2P discussions let multiple agents — across different providers and thinking styles — collaborate on the same codebase before a single line is written. Each round follows a customizable multi-phase pipeline where every agent reads all prior contributions and builds on them. Different models catch different classes of issues: one spots a race condition, another flags a missing migration, a third questions the API design. This cross-provider scrutiny catches the majority of problems before implementation, dramatically reducing rework cycles.
90+
91+
Built-in modes include `audit` (structured audit → review → plan pipeline), `review`, `discuss`, and `brainstorm` — or define your own phase sequence. Ring progress indicator shows round/hop completion in the sidebar. Works across Claude Code, Codex, Gemini CLI, and Qwen, including sandboxed agents. Configure participants, round counts, modes, and per-session P2P settings via `@@all(config)` or the UI.
9092

9193
### Streaming Transport Agents
9294

0 commit comments

Comments
 (0)