Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
55a67ee
feat(workbench): import Calli daemon and web as apps/workbench (c26e45f)
maxliux5 Nov 15, 2026
c0395a0
fix(workbench): finish step-1 acceptance — e2e harness, EPIPE crash, …
maxliux5 Nov 15, 2026
06ee43e
refactor(workbench)!: rename Calli to loochat, brand the UI as LoopX
maxliux5 Nov 15, 2026
630ec12
feat(chat): goal.create open_session=false for callers that own their…
maxliux5 Nov 15, 2026
a93acf9
feat(loochat): proxy the LoopX core HTTP surface at /api/loopx/*
maxliux5 Nov 15, 2026
6c4ad6c
feat(loochat): LoopX Goal conversations in the daemon (adapters/loopx)
maxliux5 Nov 15, 2026
93228ea
fix(loochat): Goal workspace_auto writes only the Goal directory
maxliux5 Nov 15, 2026
25b457a
feat(workbench-web): hand a new conversation to LoopX as a Goal
maxliux5 Nov 15, 2026
cd4dae5
chore(workbench): default LoopX core wiring in workbench.sh (core URL…
maxliux5 Nov 15, 2026
792ae07
test(loochat): a missing loopx CLI reads as unavailable
maxliux5 Nov 15, 2026
71a32a6
feat(workbench-web): batch A — Goals in the sidebar, goal work page, …
maxliux5 Nov 15, 2026
541c9c5
fix(workbench-web): move the Goal UI's Chinese into the i18n dictiona…
maxliux5 Nov 15, 2026
749768b
fix(workbench-web): say plainly when the LoopX core service is down
maxliux5 Nov 15, 2026
8986ab3
feat(loochat): POST /api/loopx/launch/join opens a conversation on an…
maxliux5 Nov 15, 2026
bbf52e7
fix(loochat): send proxied request bodies with Content-Length, not ch…
maxliux5 Nov 15, 2026
4812066
feat(workbench-web): batch B — steward conversation, Goal lifecycle, …
maxliux5 Nov 15, 2026
9da2d43
feat(workbench): grant Goal workspaces to the core one --scan-path each
maxliux5 Nov 16, 2026
4994931
fix(workbench-web): show the LoopX mark in the demo, greyed out
maxliux5 Nov 16, 2026
48f7c14
chore(workbench): portable defaults for the Workbench launcher
maxliux5 Nov 16, 2026
2b63ddc
fix(workbench): lock dompurify 3.4.18 for GHSA-cg2g-xh64-v4q7, GHSA-c…
maxliux5 Nov 16, 2026
5921418
feat(workbench-web): Goal notifications, bell red dot, ⌘K command pal…
maxliux5 Nov 16, 2026
0369935
feat(workbench): switch on the session board by default; the board no…
maxliux5 Nov 16, 2026
511370d
fix(workbench-web): palette input keeps focus; notification rows no l…
maxliux5 Nov 16, 2026
a92bb65
feat(workbench-web): Goal acceptance card on the overview (#15)
maxliux5 Nov 16, 2026
a3ea347
feat(workbench-web): Goal Files tab — accepted reports and the worksp…
maxliux5 Nov 16, 2026
4ac6df6
fix(loochat): write a new Goal's first task and objective labels in t…
maxliux5 Nov 16, 2026
ef53a48
fix(workbench-web): space the Goal confirm note from its buttons
maxliux5 Nov 16, 2026
660593c
workbench: Goal task board (#9) as a Tasks tab and a sidebar shortcut
maxliux5 Nov 16, 2026
8c10ed6
fix(workbench-web): readable Goal status words, no core port in the c…
maxliux5 Nov 16, 2026
866df9d
feat(workbench-web): the steward page becomes chat-first
maxliux5 Nov 16, 2026
9a79bb7
feat(workbench-web): a Goal with no conversation here asks where to work
maxliux5 Nov 16, 2026
b5a4431
feat(workbench-web): the steward page speaks in the thread's own parts
maxliux5 Nov 16, 2026
ae96c3b
feat(workbench-web): a Codex palette, and the default look
maxliux5 Nov 16, 2026
45e9af2
feat(workbench-web): a Claude palette beside the Codex one
maxliux5 Nov 16, 2026
8a451d8
fix(workbench): lock body-parser 2.4.0 for the compressed-body DoS ad…
maxliux5 Nov 16, 2026
0e1c2ab
fix(workbench): lock zod 4.6.6 for the oversized-collection memory ad…
maxliux5 Nov 16, 2026
1ca6f33
fix(workbench): a Goal launch dispatches what the core reviewed
maxliux5 Nov 16, 2026
ed71bf1
refactor(workbench): drop the Doubao CLI agent
maxliux5 Nov 16, 2026
9edb787
feat(chat): list external-session bindings read-only
maxliux5 Nov 16, 2026
ae753bf
fix(workbench): one thread per Goal launch under concurrent confirms
maxliux5 Nov 16, 2026
764a9ce
fix(workbench): start with an agents.json that names a retired agent
maxliux5 Nov 16, 2026
49ec423
fix(workbench): lock patched @hono/node-server, hono, fast-uri, ip-ad…
maxliux5 Nov 16, 2026
6cfa244
feat(workbench): list every local session and bind LoopX Goal ones
maxliux5 Nov 16, 2026
030bf00
feat(workbench): LoopX filter, session rows and Goal group in the panel
maxliux5 Nov 16, 2026
fdc3355
feat(workbench-daemon): login links, the temporary kind of key
maxliux5 Nov 16, 2026
02d36e4
feat(workbench-web): login through a link, and the All Goals page
maxliux5 Nov 16, 2026
756eccf
fix(workbench): import LoopX sessions without waiting on the slowest …
maxliux5 Nov 16, 2026
a4efd3c
fix(workbench-web): every 401 says how a login link died
maxliux5 Nov 16, 2026
172b5dc
fix(workbench): lock mermaid 12.3.0 for the patched KaTeX
maxliux5 Nov 16, 2026
3e0ce91
fix(workbench-web): the review's four — notice pinned, names first, h…
maxliux5 Nov 16, 2026
f8f66a2
fix(workbench-web): one crab, drawn in currentColor — and rows that s…
maxliux5 Nov 16, 2026
d33a257
Merge branch 'codex/wb-sessions' into codex/wb-final
maxliux5 Nov 16, 2026
8dc9103
Merge login links and the All Goals page into the Workbench LoopX branch
maxliux5 Nov 16, 2026
221cb65
fix(workbench): choose the agent, permission and directory when creat…
maxliux5 Nov 16, 2026
ebd10ab
fix(workbench-web): Codex is the neutral palette, Claude the warm one
maxliux5 Nov 16, 2026
af598a6
fix(workbench-web): the steward's buttons in the topbar, and menus wo…
maxliux5 Nov 16, 2026
65e8c48
feat(workbench-web): the steward's menu headings open All Goals on th…
maxliux5 Nov 16, 2026
3bae7f2
fix(workbench-web): "新对话" instead of "新线程"
maxliux5 Nov 16, 2026
2b4cc9b
fix(workbench): call a conversation 对话, never 线程, in Chinese
maxliux5 Nov 16, 2026
2f8542a
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 16, 2026
2baffcd
fix(workbench-daemon): a launch's first message counts as sent only o…
maxliux5 Nov 16, 2026
5863a46
fix(workbench-daemon): the core proxy drops hop-by-hop headers, inclu…
maxliux5 Nov 16, 2026
d21de95
fix(workbench-web): the steward sends again after a dropped stream or…
maxliux5 Nov 16, 2026
aae25bd
fix(chat): goal.create refuses start_execution together with open_ses…
maxliux5 Nov 16, 2026
909cf50
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 16, 2026
beaba04
fix(workbench): product bugs found while bringing the e2e suite back
maxliux5 Nov 16, 2026
e88d304
test(workbench): bring the e2e and unit tests in line with the shippe…
maxliux5 Nov 16, 2026
c158285
fix(goals): a Goal channel is named by its registry display name
maxliux5 Nov 16, 2026
eb0e499
fix(workbench-daemon): pi keeps reporting prompt_sent itself, after i…
maxliux5 Nov 16, 2026
934665e
fix(workbench-web): the steward folds stream events into its turn ref…
maxliux5 Nov 16, 2026
c2c5494
fix(workbench-daemon): prompt_sent alone leaves a launch's first mess…
maxliux5 Nov 16, 2026
e1087d9
fix(workbench-web): the steward opens its conversation once the core …
maxliux5 Nov 16, 2026
3eaf1bd
fix(workbench-web): cancelling a Goal confirmation keeps the draft wi…
maxliux5 Nov 16, 2026
88a3503
fix(workbench-daemon): a stopped registered Goal is not marked deleted
maxliux5 Nov 16, 2026
4ab00da
fix(workbench-daemon): retain active schedule runs when trimming history
maxliux5 Nov 16, 2026
58a6c1c
fix(workbench-daemon): publish proactive reverts only after the whole…
maxliux5 Nov 16, 2026
0eeccb3
fix(workbench-daemon): carry transcript line state across usage scans
maxliux5 Nov 16, 2026
ee783cb
fix(workbench-daemon): advance cron searches by timezone date boundaries
maxliux5 Nov 16, 2026
edb1371
fix(workbench-daemon): preserve full Codex file content in change cards
maxliux5 Nov 16, 2026
eaba24e
fix(workbench-daemon): read escaped TOML strings without truncation
maxliux5 Nov 16, 2026
f557316
fix(workbench-daemon): contain MCP and pi stdin failures
maxliux5 Nov 16, 2026
d46f9f8
fix(workbench-web): preserve custom cron expressions when renaming sc…
maxliux5 Nov 16, 2026
e35c756
fix(workbench-web): retain unedited MCP argument arrays when saving n…
maxliux5 Nov 16, 2026
9f9681d
fix(workbench-web): keep stale history from replacing the steward's n…
maxliux5 Nov 16, 2026
0f30362
fix(workbench-web): clear only the draft that finished sending
maxliux5 Nov 16, 2026
05a3dc4
fix(workbench-web): show Goal read failures with a working retry
maxliux5 Nov 16, 2026
f06eb4e
fix(workbench-daemon): record ACP submission after native preparation
maxliux5 Nov 16, 2026
0a2bd73
fix(workbench-web): keep first-send identity across conversation crea…
maxliux5 Nov 17, 2026
e201252
fix(workbench-e2e): wait for activity data and settled fixture turns
maxliux5 Nov 17, 2026
a02a9f1
fix(workbench-web): phone browser bars take the page colour
maxliux5 Nov 17, 2026
8c71fe0
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 17, 2026
470211a
style(workbench): remove trailing whitespace from imported sources
maxliux5 Nov 17, 2026
a5d904b
fix(workbench): detach source servers when setsid is unavailable
maxliux5 Nov 17, 2026
44da67a
fix(workbench): install versioned sources from the LoopX monorepo
maxliux5 Nov 17, 2026
79ce1f8
test(workbench-e2e): install from the monorepo layout and select refs
maxliux5 Nov 17, 2026
f7aedf6
fix(workbench-e2e): scroll glass checks through the user gesture path
maxliux5 Nov 17, 2026
3407e28
test(workbench-e2e): pin the installer's sparse scope, data and no-se…
maxliux5 Nov 17, 2026
0623674
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 17, 2026
296c971
fix(workbench): keep optional port probes from failing service instal…
maxliux5 Nov 17, 2026
953c823
fix(workbench): read Goal roots through the canonical registry CLI
maxliux5 Nov 17, 2026
5a2a358
test(workbench): mark synthetic credentials as explicit placeholders
maxliux5 Nov 17, 2026
b086b08
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 17, 2026
3f1da70
test(workbench): cover the packaged Goal journey against a real Core
maxliux5 Nov 17, 2026
981c43e
fix(workbench): stop showing a closed turn's unfinished tools as running
maxliux5 Nov 18, 2026
b5613c8
test(workbench): load the authority fixture without late module imports
maxliux5 Nov 18, 2026
4e843c3
fix(canary): route binary video fixtures to visual review in premerge
maxliux5 Nov 18, 2026
00e20a0
fix(contract): recognise source references in credential boundary hits
maxliux5 Nov 18, 2026
cff0d38
fix(workbench): bind sending state to its draft owner across thread s…
maxliux5 Nov 18, 2026
825d47d
fix(workbench): guard steward turn submission and late POST acceptanc…
maxliux5 Nov 18, 2026
8997a41
fix(workbench): accept whitespace and trailing comments on TOML MCP h…
maxliux5 Nov 18, 2026
d9b6a18
fix(workbench): separate git checkout root from workbench app root in…
maxliux5 Nov 18, 2026
66843a5
Merge origin/main into codex/loochat-workbench
maxliux5 Nov 18, 2026
b816ec9
fix(workbench): keep other threads' drafts when a new thread's first …
maxliux5 Nov 18, 2026
f7f860f
fix(workbench): build updates from a snapshot and leave the running c…
maxliux5 Nov 18, 2026
fb13aef
Merge remote-tracking branch 'origin/main' into codex/loochat-workbench
maxliux5 Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
53 changes: 53 additions & 0 deletions apps/workbench/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copy to .env and fill in. .env is git-ignored.

# Address the daemon listens on. Keep 127.0.0.1 for local use.
# For remote access over VPN, set this to the VPN interface address.
LOOCHAT_HOST=127.0.0.1
LOOCHAT_PORT=8787

# Static access token. Generate a long random value, e.g. `openssl rand -hex 32`.
LOOCHAT_TOKEN=

# Where the SQLite database is stored. Relative paths resolve from the directory the daemon starts in.
LOOCHAT_DATA_DIR=./data

# Agent executables. Claude: leave empty to use the bundled ACP adapter. pi, agy, traex, codex and dsh:
# leave empty to use the one on PATH. An agent that is not installed is simply shown as unavailable.
LOOCHAT_CLAUDE_ACP_BIN=
# The claude CLI itself, for local one-shot runs (quota reads, signed-in account discovery).
LOOCHAT_CLAUDE_BIN=
LOOCHAT_PI_BIN=
LOOCHAT_AGY_BIN=
LOOCHAT_TRAEX_BIN=
LOOCHAT_CODEX_BIN=
# DeepSeek Harness; the ACP profile it serves is `dsh --profile acp`.
LOOCHAT_DSH_BIN=

# Working directories offered in the UI, comma-separated. Empty means the daemon's start directory.
LOOCHAT_WORKDIRS=/path/to/project-a,/path/to/project-b

# Shell that runs in a web terminal. Empty means $SHELL, then /bin/bash.
LOOCHAT_TERM_SHELL=

# Private Unix socket used by this node's relay client. Keep it enabled when joining a hub.
# Empty means ~/.local/state/loochat/daemon.sock; `off` disables it.
LOOCHAT_SOCKET=
# Join settings generated on the hub: leave empty for a standalone machine.
LOOCHAT_HUB_URL=
LOOCHAT_HUB_TOKEN=

# Your own browser on this machine, shown on the VNC desktop; agents drive it with agent-browser.
# Profile (holds your sign-ins). Empty means browser/profile under the data directory.
LOOCHAT_BROWSER_PROFILE=
# X display to show it on. Empty follows the VNC desktop; `off` turns the browser off.
LOOCHAT_BROWSER_DISPLAY=
# Chrome to start. Empty prefers Google Chrome, then Chromium.
LOOCHAT_BROWSER_EXECUTABLE=
# agent-browser, when it is not on PATH (npm install -g agent-browser).
LOOCHAT_AGENT_BROWSER=

# Built web UI to serve at `/`. Leave empty to use packages/web/dist when it exists.
LOOCHAT_WEB_DIR=

# Used only by `npm run dev:web` (Vite dev server) to find the daemon.
LOOCHAT_DAEMON_URL=http://127.0.0.1:8787
45 changes: 45 additions & 0 deletions apps/workbench/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# AGENTS.md

在远程主机上跑 coding agent,用手机或电脑浏览器操作。
要做的事看 `docs/TODO.md`,架构看 `docs/PLAN.md`,设计图在 `docs/design/`。

## 开始前

先跑 `scripts/init.sh --check`:装依赖(缺时)、构建,再起一个用假 agent 的临时 hub 跑一轮冒烟测试。不过就先修好,再做新的事。要在浏览器里看改动,去掉 `--check`,它会打印地址、token 和 PID,一直运行到 Ctrl-C 或按这个 PID 停止,退出时清理临时目录。

## 三条原则

1. **简单,不干扰 agent。** 不改 agent 的目录、配置和会话。不做 IDE:没有补全、调试、多面板那一套。终端例外,是给人的运维工具(见 `TODO.md` 第 10 节),不碰 agent 的会话。文件默认只读:能浏览这台机器的目录(线程目录、项目目录、家目录,见第 11 节),回复里明确引用的单个文件也照旧能开。需要人写字的地方可以有纯文本编辑,像写字一样干净好看,不像代码编辑器;现在只有写作模式的正文(见 `docs/writing-design.md`)。
2. **界面要好看。** 标准是 Codex,目标是超过它。丑就是 bug。
3. **先参考再动手。** 新功能和改交互前,先看两三个同类开源项目怎么解这个问题(如 Codex、Claude Code、Chatwoot、LibreChat、Open WebUI),对比分析、择优借鉴,再开始写;参考结论一句话写进回复,让取舍有据可查。

## 界面

- **渐进展示也约束数据加载。** 先加载正文与概况,重详情在展开时再读取、传输和构建,不能只在界面折叠。错误、待处理事项和做决定所需的信息直接可见;详情明确区分未加载、加载失败和确实为空。
- **默认少展示,详情按需展开。** 首屏只保留当前决策需要的内容;额度、状态等辅助信息用紧凑的图形或短数字,让人一眼看出概况,不把完整信息堆成小看板。优先单行横排,空间不足时收起次要项,并提供明确的详情入口,不为展示全部数据反复换行或撑高列表。
- **渐进展示必须兼顾手机。** 桌面可通过 hover 查看详情,同时提供点击与键盘入口;手机通过点击访问同样的信息。查看详情与主操作分开,例如点击额度不能误选账号。隐藏的是细节,不是重要异常或数据状态;未知、过期和零值不能混淆。
- **视觉克制。** 避免重复标签、解释文字和装饰性颜色;正常状态用中性色,颜色留给需要注意的状态。辅助信息不抢账号名、正文和主操作的注意力。
- **布局稳定,避免明显跳变。** 首次进入、异步加载、刷新和状态切换时,保持顶栏、正文阅读位置与输入区稳定。额度等数据刷新时保留上次有效读数,在原有按钮或固定状态位显示进度,不因“更新中…”出现或消失临时增减一整行、让两行变三行。首次加载用与最终内容布局相当的占位,未知不能显示成零。重要错误与待处理事项仍直接可见。用户主动展开等必要布局变化应可预期,不能只加动画掩盖布局抖动。手机和电脑都要检查菜单、完整页和详情从加载到稳定的全过程。
- 不用浏览器原生控件:弹窗用 `Dialog`,选择器用 `Popover`,图标用 `icons.tsx`,不用 emoji。
- 颜色、圆角、阴影只用 `styles.css` 顶部的变量。
- 界面文字不写在组件里,写进 `packages/web/src/i18n/locales/`:`zh.ts` 是源语言,`en.ts`、`ja.ts` 同时补上(缺了类型检查不过)。带数值的写成函数,英文要分单复数。按钮写动作("删除",不写"确定")。
- 交给 agent 解析的协议文字(`[注释 N]`、`评论:`、`来自 X 的结果`)不翻译。
- 改完要在真实浏览器里看过:桌面和手机,亮色和深色。没看过就说没看过。

## 代码

- 这个仓库要开源:不写入 token、IP、主机名、个人路径。
- agent 之间的差异只放在 `packages/daemon/src/adapters/`。前端靠 `capabilities` 判断,不按 agent 名字分支。
- 新接口要有测试;适配器的新行为要在 `test/fixtures/` 的假 agent 里有对应实现。
- 文档中文,代码和注释英文。

## 进程

- 重启 hub 只用 `scripts/restart.sh`。不要 `kill`、`pkill -f` 或 `grep dist/index.js` 找进程:你自己就跑在 hub 里,会把正在用的 hub 和你自己一起杀掉。
- 测试时起的 daemon,记下 PID,只按这个 PID 或端口清理。

## 提交前

```bash
npm run typecheck && npm test && npm run build
```
21 changes: 21 additions & 0 deletions apps/workbench/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 LooChat contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading