@cortex-agent/server 2026.10.15-2 → 2026.10.21

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.
Files changed (171) hide show
  1. package/README.md +70 -31
  2. package/defaults/board/board.css +140 -62
  3. package/defaults/board/scaffold.html +36 -13
  4. package/defaults/plugins/cortex-board/skills/board/SKILL.md +30 -22
  5. package/defaults/plugins/cortex-system/plugin.json +2 -2
  6. package/defaults/plugins/cortex-system/skills/browser/SKILL.md +56 -0
  7. package/dist/agent-adapter/claude/adapter.d.ts +2 -5
  8. package/dist/agent-adapter/claude/adapter.js +6 -5
  9. package/dist/agent-adapter/claude/assistant-blocks.d.ts +5 -0
  10. package/dist/agent-adapter/claude/assistant-blocks.js +61 -0
  11. package/dist/agent-adapter/claude/cache-refresh.d.ts +58 -0
  12. package/dist/agent-adapter/claude/cache-refresh.js +145 -0
  13. package/dist/agent-adapter/claude/cache-touch.d.ts +12 -0
  14. package/dist/agent-adapter/claude/cache-touch.js +75 -0
  15. package/dist/agent-adapter/claude/event-parser.d.ts +8 -3
  16. package/dist/agent-adapter/claude/event-parser.js +33 -17
  17. package/dist/agent-adapter/claude/event-translator.d.ts +2 -0
  18. package/dist/agent-adapter/claude/event-translator.js +2 -0
  19. package/dist/agent-adapter/claude/session-options.d.ts +0 -4
  20. package/dist/agent-adapter/claude/session-options.js +0 -9
  21. package/dist/agent-adapter/claude/spawn-args.d.ts +0 -3
  22. package/dist/agent-adapter/claude/spawn-args.js +2 -5
  23. package/dist/agent-adapter/claude/transcript-clear.d.ts +42 -0
  24. package/dist/agent-adapter/claude/transcript-clear.js +217 -0
  25. package/dist/agent-adapter/claude/turn-machine.d.ts +3 -2
  26. package/dist/agent-adapter/claude/turn-machine.js +21 -68
  27. package/dist/agent-adapter/claude/window-warmup.d.ts +13 -0
  28. package/dist/agent-adapter/claude/window-warmup.js +38 -0
  29. package/dist/agent-adapter/continuation-phase.js +3 -0
  30. package/dist/agent-adapter/normalize/event-types.d.ts +8 -0
  31. package/dist/agent-adapter/pi/event-parser.d.ts +1 -1
  32. package/dist/agent-adapter/pi/event-parser.js +43 -27
  33. package/dist/agent-adapter/pi/mcp-bridge.d.ts +1 -1
  34. package/dist/agent-adapter/pi/pi-session.d.ts +2 -0
  35. package/dist/agent-adapter/pi/pi-session.js +15 -0
  36. package/dist/agent-adapter/pi/session-options.d.ts +2 -6
  37. package/dist/agent-adapter/pi/session-options.js +2 -11
  38. package/dist/agent-adapter/run-events.d.ts +10 -0
  39. package/dist/agent-adapter/run-events.js +2 -0
  40. package/dist/agent-adapter/types.d.ts +1 -1
  41. package/dist/client-bundle/manifest.json +1 -1
  42. package/dist/core/locales/en.d.ts +1 -0
  43. package/dist/core/locales/slices/commands.d.ts +1 -0
  44. package/dist/core/locales/slices/commands.js +2 -0
  45. package/dist/core/settings-spec.d.ts +25 -0
  46. package/dist/core/settings-spec.js +34 -0
  47. package/dist/domain/agents/engine-selection.js +1 -1
  48. package/dist/domain/agents/subagent/registry.d.ts +2 -0
  49. package/dist/domain/agents/subagent/registry.js +8 -0
  50. package/dist/domain/agents/subagent/runner.js +0 -1
  51. package/dist/domain/browser/broker.d.ts +99 -0
  52. package/dist/domain/browser/broker.js +487 -0
  53. package/dist/domain/costs/claude-account.js +21 -0
  54. package/dist/domain/costs/rate-limit-throttle.js +3 -1
  55. package/dist/domain/costs/reset-account.d.ts +2 -0
  56. package/dist/domain/costs/usage-service.d.ts +1 -1
  57. package/dist/domain/costs/usage-service.js +20 -7
  58. package/dist/domain/mcp/tools/ui-file.js +1 -1
  59. package/dist/domain/remote/device-browser.js +1 -1
  60. package/dist/domain/remote/device-chrome-commands.js +2 -0
  61. package/dist/domain/remote/device-port.js +2 -2
  62. package/dist/domain/runs/builders.d.ts +2 -2
  63. package/dist/domain/runs/builders.js +2 -3
  64. package/dist/domain/runs/engine-spec.d.ts +5 -0
  65. package/dist/domain/runs/engine-spec.js +1 -2
  66. package/dist/domain/runs/request.d.ts +0 -1
  67. package/dist/domain/sessions/session-lifecycle.d.ts +0 -4
  68. package/dist/domain/sessions/session-lifecycle.js +1 -1
  69. package/dist/domain/system/own-bin-path.d.ts +13 -0
  70. package/dist/domain/system/own-bin-path.js +36 -0
  71. package/dist/domain/system/terminal-cli/index.d.ts +58 -0
  72. package/dist/domain/system/terminal-cli/index.js +100 -0
  73. package/dist/domain/system/terminal-cli/posix-profiles.d.ts +23 -0
  74. package/dist/domain/system/terminal-cli/posix-profiles.js +74 -0
  75. package/dist/domain/system/terminal-cli/registrar.d.ts +12 -0
  76. package/dist/domain/system/terminal-cli/registrar.js +1 -0
  77. package/dist/domain/system/terminal-cli/shims.d.ts +27 -0
  78. package/dist/domain/system/terminal-cli/shims.js +108 -0
  79. package/dist/domain/system/terminal-cli/state.d.ts +7 -0
  80. package/dist/domain/system/terminal-cli/state.js +36 -0
  81. package/dist/domain/system/terminal-cli/windows-user-path.d.ts +13 -0
  82. package/dist/domain/system/terminal-cli/windows-user-path.js +67 -0
  83. package/dist/domain/tui-session/tui-session-service.js +1 -1
  84. package/dist/domain/tui-session/types.d.ts +1 -1
  85. package/dist/domain/ui-service/app-router.d.ts +17 -6
  86. package/dist/domain/ui-service/app-router.js +3 -1
  87. package/dist/domain/ui-service/assistant-snapshots.js +2 -0
  88. package/dist/domain/ui-service/inline-media-types.d.ts +18 -0
  89. package/dist/domain/ui-service/inline-media-types.js +1 -0
  90. package/dist/domain/ui-service/input-schemas.d.ts +17 -17
  91. package/dist/domain/ui-service/input-schemas.js +9 -9
  92. package/dist/domain/ui-service/mutate/models.d.ts +3 -0
  93. package/dist/domain/ui-service/mutate/models.js +21 -2
  94. package/dist/domain/ui-service/mutate/resolve-media.d.ts +4 -0
  95. package/dist/domain/ui-service/mutate/resolve-media.js +17 -0
  96. package/dist/domain/ui-service/mutate/sessions.js +1 -4
  97. package/dist/domain/ui-service/query/sessions.js +1 -1
  98. package/dist/domain/ui-service/types.d.ts +8 -10
  99. package/dist/domain/ui-service/ui-service.d.ts +9 -6
  100. package/dist/domain/ui-service/ui-service.js +4 -1
  101. package/dist/entry/app.js +23 -0
  102. package/dist/entry/browser-cli.d.ts +39 -0
  103. package/dist/entry/browser-cli.js +317 -0
  104. package/dist/entry/cli-help.d.ts +1 -0
  105. package/dist/entry/cli-help.js +30 -0
  106. package/dist/entry/cli.js +2 -0
  107. package/dist/entry/daemon.js +2 -0
  108. package/dist/entry/path-cli.d.ts +4 -0
  109. package/dist/entry/path-cli.js +65 -0
  110. package/dist/entry/shutdown.js +7 -0
  111. package/dist/entry/start-ui-http.js +8 -0
  112. package/dist/entry/ui-service-wiring.js +2 -0
  113. package/dist/events/event-types.d.ts +2 -1
  114. package/dist/orchestration/agent-runner.d.ts +2 -2
  115. package/dist/orchestration/agent-runner.js +6 -6
  116. package/dist/orchestration/browser-webhook.d.ts +11 -0
  117. package/dist/orchestration/browser-webhook.js +28 -0
  118. package/dist/orchestration/cache-keep-warm.d.ts +77 -0
  119. package/dist/orchestration/cache-keep-warm.js +213 -0
  120. package/dist/orchestration/claude-window-warmup.d.ts +40 -0
  121. package/dist/orchestration/claude-window-warmup.js +126 -0
  122. package/dist/orchestration/conversation-request.d.ts +4 -7
  123. package/dist/orchestration/conversation-request.js +1 -2
  124. package/dist/orchestration/delta-coalescer.d.ts +4 -2
  125. package/dist/orchestration/delta-coalescer.js +5 -5
  126. package/dist/orchestration/edit-retry.js +3 -6
  127. package/dist/orchestration/inline-media-eager.d.ts +13 -0
  128. package/dist/orchestration/inline-media-eager.js +58 -0
  129. package/dist/orchestration/inline-media.d.ts +22 -0
  130. package/dist/orchestration/inline-media.js +151 -0
  131. package/dist/orchestration/interactions/ask-user-resume.js +3 -7
  132. package/dist/orchestration/routing/commands/usage-format.js +3 -0
  133. package/dist/orchestration/routing/webhook.js +4 -0
  134. package/dist/orchestration/session-compact.js +5 -7
  135. package/dist/orchestration/session-events.d.ts +2 -1
  136. package/dist/orchestration/session-events.js +1 -0
  137. package/dist/orchestration/transcript-sink.d.ts +6 -0
  138. package/dist/orchestration/transcript-sink.js +21 -2
  139. package/dist/orchestration/turn/turn-prep.d.ts +0 -8
  140. package/dist/orchestration/turn/turn-prep.js +0 -51
  141. package/dist/orchestration/turn/turn.js +4 -0
  142. package/dist/platform/adapters/tui/ports.d.ts +1 -1
  143. package/dist/platform/adapters/tui/tui-transcript.js +2 -0
  144. package/dist/platform/browser/agent-browser.d.ts +50 -0
  145. package/dist/platform/browser/agent-browser.js +165 -0
  146. package/dist/platform/browser/managed-browser.d.ts +1 -11
  147. package/dist/platform/browser/managed-browser.js +4 -12
  148. package/dist/platform/ui-http/browser-stream.d.ts +110 -0
  149. package/dist/platform/ui-http/browser-stream.js +447 -0
  150. package/dist/platform/ui-http/ui-http-server.d.ts +12 -0
  151. package/dist/platform/ui-http/ui-http-server.js +23 -6
  152. package/dist/store/conversation-history-reader.js +8 -0
  153. package/dist/store/conversation-history-repo.d.ts +8 -1
  154. package/dist/store/conversation-history-repo.js +5 -0
  155. package/dist/store/session-registry-journal.d.ts +0 -8
  156. package/dist/store/session-registry-journal.js +5 -17
  157. package/dist/store/session-registry-repo.d.ts +2 -3
  158. package/dist/store/session-registry-repo.js +0 -2
  159. package/package.json +4 -2
  160. package/web/dist/assets/board-math-css-CB4GJ6qO.js +2 -0
  161. package/web/dist/assets/index-CaSZPg_H.css +1 -0
  162. package/web/dist/assets/index-CzOR7Edh.js +522 -0
  163. package/web/dist/assets/{index-DaViXAg-.js → index-cIGFv27z.js} +1 -1
  164. package/web/dist/index.html +3 -2
  165. package/web/dist/theme.css +6 -0
  166. package/dist/agent-adapter/browser-mcp-server.d.ts +0 -13
  167. package/dist/agent-adapter/browser-mcp-server.js +0 -28
  168. package/dist/agent-adapter/claude/browser-mcp.d.ts +0 -9
  169. package/dist/agent-adapter/claude/browser-mcp.js +0 -10
  170. package/web/dist/assets/index-Cgx3gdHV.css +0 -1
  171. package/web/dist/assets/index-CpZWBVHr.js +0 -494
package/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  # Cortex
4
4
 
5
- **An autonomous agent workbench for long-running projects.**
5
+ **An agent workbench for auto research, self-improvement loops, and other work that runs for days.**
6
6
 
7
- Give it a mission. It plans the work, runs it across your machines with a team of agents,<br>
8
- keeps the project's memory in plain files, and asks you only when it matters.
7
+ Give it a mission. It plans the work, runs it across your machines and GPUs with a team of agents,<br>
8
+ keeps every result in plain files that outlast any session, and asks you only when it matters.
9
9
 
10
10
  [![Release](https://img.shields.io/github/v/release/fangxm233/cortex-agent?filter=server-v*&label=release)](https://github.com/fangxm233/cortex-agent/releases)
11
11
  [![npm](https://img.shields.io/npm/v/@cortex-agent/server?label=npm)](https://www.npmjs.com/package/@cortex-agent/server)
@@ -25,11 +25,11 @@ keeps the project's memory in plain files, and asks you only when it matters.
25
25
 
26
26
  | Platform | Installer |
27
27
  |---|---|
28
- | macOS · Apple Silicon | [Cortex-2026.10.15-2-macOS-aarch64.dmg](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-macOS-aarch64.dmg) |
29
- | macOS · Intel | [Cortex-2026.10.15-2-macOS-x86_64.dmg](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-macOS-x86_64.dmg) |
30
- | Windows · x64 | [Cortex-2026.10.15-2-Windows-x86_64-setup.exe](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-Windows-x86_64-setup.exe) |
31
- | Linux · x86_64 | [AppImage](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-Linux-x86_64.AppImage) · [deb](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-Linux-amd64.deb) · [rpm](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-Linux-x86_64.rpm) |
32
- | Android · arm64 | [Cortex-2026.10.15-2-Android-arm64.apk](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.15-2/Cortex-2026.10.15-2-Android-arm64.apk) |
28
+ | macOS · Apple Silicon | [Cortex-2026.10.21-macOS-aarch64.dmg](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-macOS-aarch64.dmg) |
29
+ | macOS · Intel | [Cortex-2026.10.21-macOS-x86_64.dmg](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-macOS-x86_64.dmg) |
30
+ | Windows · x64 | [Cortex-2026.10.21-Windows-x86_64-setup.exe](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-Windows-x86_64-setup.exe) |
31
+ | Linux · x86_64 | [AppImage](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-Linux-x86_64.AppImage) · [deb](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-Linux-amd64.deb) · [rpm](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-Linux-x86_64.rpm) |
32
+ | Android · arm64 | [Cortex-2026.10.21-Android-arm64.apk](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.21/Cortex-2026.10.21-Android-arm64.apk) |
33
33
 
34
34
  The desktop app installs and starts a Cortex server on the same computer in one click, with no
35
35
  terminal and no Node.js to set up, or connects to a server you already run. The Android app connects
@@ -38,17 +38,30 @@ Other versions are on the [Releases page](https://github.com/fangxm233/cortex-ag
38
38
 
39
39
  ## What Cortex is
40
40
 
41
- Cortex runs coding agents (Claude Code, or PI with the provider you already pay for) as a
42
- long-lived service with a real workbench in front of them. It is built for work that takes days
43
- rather than minutes: research studies, multi-step engineering, and recurring scans and digests. It
44
- targets the three ways long agent runs go wrong:
45
-
46
- - **Context rot.** A project's mission, status, experiments, and decisions live as plain files on
47
- disk, not in a chat history that grows until it decays.
48
- - **Execution drift.** Non-trivial work starts from a plan you approve. Long tasks keep a live
49
- board of where they stand, and claims of completion point at their evidence.
50
- - **Context limits.** Bounded pieces of work go to subagents and workers that start with a fresh
51
- context and return only their result.
41
+ A coding agent in a terminal is built around one session: one task, one machine, done within the
42
+ hour. Auto research and recursive self-improvement (RSI) need more. A study runs for days and
43
+ outlives every session in it. Its results have to be kept and compared run after run. The work
44
+ splits among several agents, and the experiments run on GPU servers rather than on the machine the
45
+ agent started from.
46
+
47
+ Cortex is the environment for that kind of work. It runs coding agents (Claude Code, or PI with the
48
+ provider you already pay for) as a long-lived service with a workbench in front of them:
49
+
50
+ - **Work continues across sessions.** A project's mission, status, and decisions live as plain
51
+ files on disk rather than in a chat history that grows until it decays, so a new session picks up
52
+ where the last one stopped. Schedules start recurring work, and waitpoints wake a session when a
53
+ job it launched finishes.
54
+ - **Results are kept.** Each experiment gets its own record of what ran, what came out, and what it
55
+ means. Confirmed findings and patterns across experiments collect beside them.
56
+ - **Agents work as a team.** A lead session hands pieces to persistent workers and one-shot
57
+ subagents, each starting with a fresh context, and keeps a live board of where the work stands.
58
+ - **Agents manage model training across your machines.** One session reads, writes, and runs
59
+ commands on any machine running `cortex-client`. Agents check which GPUs are free, launch training
60
+ and evaluation runs there, and wait on them without polling, while the workbench shows each GPU's
61
+ live load.
62
+ - **The setup itself can improve.** Skills, rules, hooks, and Cortex's own source are files the
63
+ agents can change, inside a safety boundary you write. Cortex itself is developed entirely inside
64
+ Cortex.
52
65
 
53
66
  ## A tour of the workbench
54
67
 
@@ -81,15 +94,40 @@ the chat header shows how many workers are running and opens a list of what each
81
94
  a review, or a verification run go to one-shot subagents instead.
82
95
  [Team mode →](https://fangxm233.github.io/cortex-agent/team/)
83
96
 
84
- ### All your machines
97
+ ### Every experiment on record
98
+
99
+ <img alt="The memory viewer: a project's mission, status, experiment and knowledge files, with one experiment record open on its run command and results" src="https://raw.githubusercontent.com/fangxm233/cortex-agent/main/docs/images/ui/memory.png">
100
+
101
+ Each experiment lands in project memory as its own Markdown record: what was run, what was
102
+ observed, what was concluded, and what should change next. Findings that hold up become knowledge
103
+ entries, and patterns across experiments get records of their own. The **Memory** view browses all
104
+ of it beside the sessions. [Memory →](https://fangxm233.github.io/cortex-agent/memory/)
105
+
106
+ ### Training across all your machines
85
107
 
86
108
  <p align="center"><img width="560" alt="The machines menu with live CPU, memory, disk and per-GPU telemetry" src="https://raw.githubusercontent.com/fangxm233/cortex-agent/main/docs/images/ui/machines.png"></p>
87
109
 
88
- Your GPUs, documents, and tools rarely live on one box. Run `cortex-client` on any Linux, macOS, or
89
- Windows machine and the agent can read, write, and execute there from the same session. The
90
- **Machines** menu shows each machine's live CPU, memory, disk, and GPU load. In the desktop app, the
91
- dock opens a development server running on a remote machine as if it ran locally.
92
- [Cross-machine →](https://fangxm233.github.io/cortex-agent/cross-machine/)
110
+ Your GPUs, data, and tools rarely live on one box. Run `cortex-client` on any Linux, macOS, or
111
+ Windows machine and the agent can read, write, and execute there from the same session. That is
112
+ what an agent needs to manage model training: it checks which machine has free GPUs, launches the
113
+ run, arms a **waitpoint**, and ends its turn. When the job reports back, the session wakes with the
114
+ result, records it as an experiment, and plans the next run, with no polling in between. The
115
+ **Machines** menu shows you the same picture live: each machine's CPU, memory, disk, and per-GPU
116
+ load and processes. In the desktop app, the dock opens a development server running on a remote
117
+ machine as if it ran locally.
118
+ [Cross-machine →](https://fangxm233.github.io/cortex-agent/cross-machine/) · [Waitpoints →](https://fangxm233.github.io/cortex-agent/waitpoints/)
119
+
120
+ ### Skills and code the agents improve
121
+
122
+ Cortex's behavior is set by plain files: skills, rules, hooks, prompts, and agent roles under
123
+ `$CORTEX_HOME`, each able to override its built-in counterpart. Agents read and rewrite them like
124
+ any other file, and you edit the same skills in Settings. Execution environments choose which
125
+ plugins, rules, and tools a session gets, so variants of an agent can run side by side. Pointed at a
126
+ source checkout through `CORTEX_REPO`, Cortex rebuilds, reinstalls, and restarts itself when its
127
+ code changes. Together these let agents improve the skills and code they run on, while your safety
128
+ boundary decides which of those changes wait for your sign-off. This is how Cortex itself is built:
129
+ agents working in Cortex write, test, and rebuild the code in this repository.
130
+ [Skills & plugins →](https://fangxm233.github.io/cortex-agent/skills-and-plugins/) · [Configuration →](https://fangxm233.github.io/cortex-agent/configuration/)
93
131
 
94
132
  ### On your phone
95
133
 
@@ -168,16 +206,16 @@ sessions, restarts, and model upgrades, and any agent or person can read them.
168
206
 
169
207
  ## Safety and approvals
170
208
 
171
- Cortex gives agents real tools: shell, files, GPUs, and other machines. Its guard rails are
172
- conversational rather than a sandbox:
209
+ Cortex gives agents real tools: shell, files, GPUs, other machines, and the files that define
210
+ their own behavior. Its guard rails are conversational rather than a sandbox:
173
211
 
174
212
  - **Plan approval.** Non-trivial work starts with a plan that waits until you approve it or send
175
213
  it back for changes.
176
214
  - **Questions and decisions.** Agents ask through cards that you answer in place, and record the
177
- choices they make on their own as decision cards you can review.
215
+ choices they make on their own as decisions you can review.
178
216
  - **Your rules.** A safety boundary in your `$CORTEX_HOME/AGENTS.md` tells every session what it may
179
- do alone, what needs sign-off, and what is forbidden. Operations that need sign-off wait in the
180
- **Approval Center**.
217
+ do alone, what needs sign-off (changing a skill's behavior or Cortex's own code, for example), and
218
+ what is forbidden. Operations that need sign-off wait in the **Approval Center**.
181
219
 
182
220
  [Safety and approvals →](https://fangxm233.github.io/cortex-agent/safety-and-approvals/)
183
221
 
@@ -194,13 +232,14 @@ conversational rather than a sandbox:
194
232
  | [Scheduling](https://fangxm233.github.io/cortex-agent/scheduling/) | Interval, daily, weekly, and one-off schedules |
195
233
  | [Backends](https://fangxm233.github.io/cortex-agent/backends/) | Claude Code and PI, providers, model selection, cost reporting, subagents |
196
234
  | [Configuration](https://fangxm233.github.io/cortex-agent/configuration/) | `config/.env`, `settings.json`, models and favorites, execution environments |
197
- | [CLI reference](https://fangxm233.github.io/cortex-agent/cli-reference/) | `cortex`, `cortex-signal`, and `cortex-hook` |
235
+ | [CLI reference](https://fangxm233.github.io/cortex-agent/cli-reference/) | `cortex`, `cortex-browser`, `cortex-signal`, and `cortex-hook` |
198
236
  | [Skills & plugins](https://fangxm233.github.io/cortex-agent/skills-and-plugins/) | Writing, overriding, and packaging skills |
199
237
  | [Safety & approvals](https://fangxm233.github.io/cortex-agent/safety-and-approvals/) | The safety boundary, approval queue, and interactive cards |
200
238
  | [Hooks](https://fangxm233.github.io/cortex-agent/hooks/) | Hook lifecycle, built-in hooks, and custom hooks |
201
239
  | [Waitpoints](https://fangxm233.github.io/cortex-agent/waitpoints/) | Waiting on external jobs without polling |
202
240
  | [MCP](https://fangxm233.github.io/cortex-agent/mcp/) | Cortex's MCP tools and third-party servers |
203
241
  | [Cross-machine](https://fangxm233.github.io/cortex-agent/cross-machine/) | Deploying `cortex-client` and using remote tools |
242
+ | [Agent browser](https://fangxm233.github.io/cortex-agent/agent-browser/) | The Chrome agents drive with `cortex-browser`, watching it live, and taking over |
204
243
  | [Architecture](https://fangxm233.github.io/cortex-agent/architecture/) | Server layers, protocols, and the event bus |
205
244
 
206
245
  ## Developing Cortex
@@ -1,105 +1,183 @@
1
1
  @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");
2
2
  /* Cortex board preset.
3
3
  Loaded after the app's theme variables and before ~/.cortex/config/board.css, which may override
4
- any --b-* variable or rule. Colours come only from theme variables (--proto-*, --material-*,
5
- --border-card, --r-*), so a board follows light/dark, the palette and the accent.
6
- State language: ok = done (success) · run = in progress (accent) · ask = needs the user (light
7
- amber, and nothing else is amber) · wait = blocked on a machine or someone else (hollow ring,
8
- dashed line) · bad = failed / risk (danger) · no modifier = not started.
4
+ any --b-* variable or rule. Colours and faces come only from theme variables (--proto-*,
5
+ --material-*, --border-card, --r-*, --font-ui, --font-code), so a board follows light/dark, the
6
+ palette and the accent.
7
+ The page reads as one document, not a stack of cards: a section is a stretch of the page under a
8
+ small ink heading, set apart by space; lists and tables are ruled by hairlines. All text is in the
9
+ app's face; the mono face is only for code (code, pre, .mono, a row's .id).
10
+ State language, the app's status dots: ok = done (success) · run = in progress (accent, soft
11
+ halo) · ask = needs the user (amber, and nothing else is amber) · wait = blocked on a machine or
12
+ someone else (hollow ring) · bad = failed / risk (danger) · no modifier = not started (faint).
13
+ Boards already written depend on every class name below: restyle them, never rename or drop one.
9
14
  The mono face is the one the app loads; offline it falls back to the system monospace. */
10
15
 
11
16
  :root {
12
- --b-font: -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
13
- --b-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
14
- --b-gap: 12px;
17
+ --b-font: var(--font-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif);
18
+ --b-mono: var(--font-code, "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
19
+ --b-gap: 28px;
15
20
  }
16
21
 
17
22
  /* Base */
18
23
  * { box-sizing: border-box; }
19
- body { margin: 0; padding: 1px 1px 3px; font: 13px/1.55 var(--b-font); color: var(--proto-ink); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
20
- p { margin: 0 0 6px; }
21
- ul, ol { margin: 4px 0; padding-left: 18px; }
22
- b, strong { font-weight: 600; }
23
- .mono { font-family: var(--b-mono); font-size: 11px; }
24
+ body { margin: 0; padding: 1px 1px 3px; font: 13.5px/1.6 var(--b-font); color: var(--proto-ink-2); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
25
+ p { margin: 0 0 8px; }
26
+ p:last-child { margin-bottom: 0; }
27
+ ul, ol { margin: 4px 0 8px; padding-left: 20px; }
28
+ b, strong { font-weight: 600; color: var(--proto-ink); }
29
+ .mono { font-family: var(--b-mono); font-size: 12px; }
24
30
  .muted { color: var(--proto-muted); }
25
31
  .faint { color: var(--proto-faint); }
26
- a { color: var(--proto-accent); text-decoration: none; }
32
+ a { color: var(--proto-accent); font-weight: 500; text-decoration: none; }
27
33
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
28
34
  a[data-open] { cursor: pointer; }
29
- code { font-family: var(--b-mono); font-size: 11px; background: var(--proto-gray); border-radius: 5px; padding: 0 4px; }
35
+ code { font-family: var(--b-mono); font-size: 12px; background: var(--proto-gray); border-radius: 5px; padding: 0 4px; }
36
+ pre { margin: 4px 0 8px; padding: 9px 12px; max-height: 24em; overflow: auto; font: 12px/1.55 var(--b-mono); white-space: pre; overflow-wrap: normal; background: var(--material-inset-bg); border: 1px solid var(--proto-line-2); border-radius: var(--r-control); }
37
+ pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
30
38
  img, svg, video { max-width: 100%; }
31
39
  img, video { height: auto; border-radius: var(--r-chip); }
32
- table { width: 100%; border-collapse: collapse; font-size: 12px; }
33
- th, td { text-align: left; vertical-align: baseline; padding: 4px 10px 4px 0; border-top: 1px solid var(--proto-line); }
34
- th { font: 600 11px var(--b-mono); color: var(--proto-muted); border-top: 0; }
35
40
 
36
- /* Card, stack, grid, section heading */
37
- .card { background: var(--material-card-bg); border: 1px solid var(--border-card); border-radius: var(--r-card); box-shadow: var(--material-card-shadow); padding: 12px 14px; min-width: 0; }
41
+ /* Tables: the app's face, sentence-case headers in a quieter tone, hairline rules, aligned figures.
42
+ .num right-aligns a numeric th/td. A header or a figure never breaks across lines ("Median s" must
43
+ not leave its "s" behind): a table too wide for the page scrolls sideways instead — inside its .tbl
44
+ wrapper, or, on a narrow page, as its own scroll box (below). */
45
+ table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
46
+ th, td { text-align: left; vertical-align: baseline; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--proto-line-2); }
47
+ th { font: 550 12.5px/1.4 var(--b-font); color: var(--proto-faint); padding-top: 5px; border-bottom-color: var(--proto-line-4); white-space: nowrap; }
48
+ th:last-child, td:last-child { padding-right: 0; }
49
+ th.num, td.num { text-align: right; white-space: nowrap; }
50
+ figure { margin: 0; min-width: 0; }
51
+ figcaption { margin-top: 6px; font: 400 12px/1.45 var(--b-font); color: var(--proto-faint); }
52
+
53
+ /* Media: a board image opens in the app's viewer on click (unless a link wraps it). A file that was
54
+ not inlined (missing, or over the size cap) shows as a dashed box; a video like that becomes a
55
+ .b-play tile, added by the frame, that plays it in the app. Its badge sits on the video frame, so
56
+ it stays light-on-dark in both themes, as the app's own media controls do. */
57
+ img[data-board-src] { cursor: zoom-in; }
58
+ a img[data-board-src], [data-open] img[data-board-src] { cursor: pointer; }
59
+ .b-play { position: relative; display: inline-block; max-width: 100%; vertical-align: top; cursor: pointer; }
60
+ .b-play video { display: block; min-width: 200px; min-height: 112px; background: var(--material-inset-bg); border: 1px solid var(--border-card); }
61
+ .b-play::after { content: "\25B6"; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 3px; font-size: 15px; color: #fff; background: var(--media-control-bg-dark, rgba(25, 28, 34, .72)); pointer-events: none; }
62
+
63
+ /* Gallery: same-size thumbnails, each opening full size; --b-thumb sets the minimum column width */
64
+ .gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(var(--b-thumb, 160px), 100%), 1fr)); }
65
+ .gallery img, .gallery video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--material-inset-bg); border: 1px solid var(--proto-line-2); }
66
+ .gallery .b-play { display: block; }
67
+ .gallery .b-play video { min-width: 0; min-height: 0; }
68
+ img[data-board-missing] { min-width: 96px; min-height: 48px; background: var(--material-inset-bg); border: 1px dashed var(--proto-faint); }
69
+
70
+ /* Formulas: the app renders .tex with KaTeX; a display formula too wide for the page scrolls */
71
+ .tex { overflow-wrap: normal; }
72
+ div.tex { margin: 4px 0 8px; overflow-x: auto; overflow-y: hidden; }
73
+ div.tex .katex-display { margin: 0; }
74
+
75
+ /* Wide table: scrolls sideways instead of breaking words into a column of letters. On a narrow page a
76
+ table written without the .tbl wrapper becomes its own scroll box; its row group (the one the
77
+ browser adds when the rows are written straight into the table) keeps the full width. */
78
+ .tbl { overflow-x: auto; }
79
+ .tbl table { width: auto; min-width: 100%; }
80
+ .tbl th, .tbl td { overflow-wrap: normal; }
81
+ @media (max-width: 560px) {
82
+ table:not(.tbl table) { display: block; overflow-x: auto; }
83
+ table:not(.tbl table) > tbody:only-child { display: table; width: 100%; }
84
+ table:not(.tbl table) :is(th, td) { overflow-wrap: normal; }
85
+ }
86
+
87
+ /* Section, callout, stack, grid, section heading. A .card is one topic: a plain stretch of the page
88
+ with no box, set apart by the stack's space and its .h heading. A .callout (alone or on a .card)
89
+ is the one boxed panel, kept for something the user has to act on; .callout.ask tints it amber. */
90
+ .card { min-width: 0; }
91
+ .callout { min-width: 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--material-inset-bg); border: 1px solid var(--border-card); }
92
+ .callout.ask { background: var(--proto-amber-bg); border-color: var(--proto-amber-border); }
38
93
  .stack > * + * { margin-top: var(--b-gap); }
39
94
  .grid { display: grid; gap: var(--b-gap); grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
40
95
  .grid > * { min-width: 0; }
41
96
  .grid.wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
42
97
  @media (max-width: 560px) { .grid.wide-left { grid-template-columns: minmax(0, 1fr); } }
43
- .h { font: 600 11px var(--b-mono); color: var(--proto-muted); letter-spacing: .4px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
44
- .h .n { font-weight: 500; color: var(--proto-faint); }
98
+ .h { font: 620 13.5px/1.4 var(--b-font); color: var(--proto-ink); margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
99
+ .h .n { font-size: 12.5px; font-weight: 400; color: var(--proto-faint); font-variant-numeric: tabular-nums; }
45
100
 
46
- /* Head: title line + one-line status */
47
- .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
48
- .head h1 { font-size: 15px; font-weight: 650; margin: 0; }
49
- .head .meta { margin-left: auto; }
50
- .lead { margin: 6px 0 10px; color: var(--proto-ink-2); }
101
+ /* Head: an optional kicker line (scope, and the updated time as .meta on the right), the title line
102
+ with the overall state, then the lead — one line on where things stand, its key fact in bold.
103
+ The .meta goes last behind a spacer that takes the line's free room, so it sits at the right end
104
+ while it fits and starts the next line at the left when it wraps (an auto margin would push a
105
+ wrapped .meta to the right on a line of its own). The spacer's negative margin cancels its gap,
106
+ so it never wraps by itself. */
107
+ .kicker { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; color: var(--proto-faint); }
108
+ .head { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
109
+ .head h1 { font-size: 21px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; color: var(--proto-ink); margin: 0; }
110
+ .head .meta, .kicker .meta { order: 2; font: 400 12.5px/1.45 var(--b-font); color: var(--proto-faint); font-variant-numeric: tabular-nums; }
111
+ .head::after, .kicker::after { content: ""; order: 1; flex: 1 1 0; }
112
+ .head::after { margin-left: -12px; }
113
+ .kicker::after { margin-left: -8px; }
114
+ .lead { margin: 8px 0 12px; font-size: 14.5px; line-height: 1.7; color: var(--proto-ink-3); }
51
115
  .lead:last-child { margin-bottom: 0; }
52
- .lead b { color: var(--proto-ink); }
116
+ .lead b, .lead strong { color: var(--proto-ink); }
117
+ .lead.muted { color: var(--proto-muted); }
53
118
 
54
- /* Status chip */
55
- .chip { display: inline-flex; align-items: center; gap: 4px; font: 500 11px/14px var(--b-mono); border: 1px solid transparent; border-radius: var(--r-chip); padding: 0 6px; white-space: nowrap; color: var(--proto-muted); background: var(--proto-gray); }
56
- .chip.ok { color: var(--proto-success); background: var(--proto-success-bg); }
57
- .chip.run { color: var(--proto-accent); background: var(--proto-accent-bg); }
58
- .chip.ask { color: var(--proto-amber-fg); background: var(--proto-amber-bg); border-color: var(--proto-amber-border); }
59
- .chip.wait { color: var(--proto-muted); background: transparent; border: 1px dashed var(--proto-faint); }
60
- .chip.bad { color: var(--proto-danger); background: var(--proto-danger-bg); }
119
+ /* State label: a status dot and a word in the app's face — no box */
120
+ .chip { display: inline-block; white-space: nowrap; font: 550 12.5px/1.4 var(--b-font); color: var(--proto-muted); background: none; border: 0; padding: 0; }
121
+ .chip::before { content: ""; display: inline-block; box-sizing: border-box; width: 7px; height: 7px; margin: 0 6px 0 0; border-radius: 50%; vertical-align: middle; position: relative; top: -1px; background: color-mix(in srgb, var(--proto-faint) 45%, transparent); }
122
+ .chip.ok { color: var(--proto-success); }
123
+ .chip.ok::before { background: var(--proto-success); }
124
+ .chip.run { color: var(--proto-accent); }
125
+ .chip.run::before { background: var(--proto-accent); box-shadow: 0 0 0 3px var(--proto-accent-bg); }
126
+ .chip.ask { color: var(--proto-amber-fg); }
127
+ .chip.ask::before { background: var(--proto-amber); }
128
+ .chip.wait { color: var(--proto-muted); }
129
+ .chip.wait::before { background: transparent; border: 1.5px solid var(--proto-muted-3); }
130
+ .chip.bad { color: var(--proto-danger); }
131
+ .chip.bad::before { background: var(--proto-danger); }
61
132
 
62
133
  /* Progress meter: one <i> per unit of work */
63
- .meter { display: flex; gap: 2px; height: 6px; }
64
- .meter i { flex: 1; min-width: 2px; border-radius: 3px; background: var(--proto-line-3); }
134
+ .meter { display: flex; gap: 2px; height: 4px; }
135
+ .meter i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--proto-line-3); }
65
136
  .meter i.ok { background: var(--proto-success); }
66
137
  .meter i.run { background: var(--proto-accent); }
67
- .meter i.ask { background: var(--proto-amber-bg); box-shadow: inset 0 0 0 1px var(--proto-amber-border); }
68
- .meter i.wait { background: transparent; border: 1px dashed var(--proto-faint); }
138
+ .meter i.ask { background: var(--proto-amber); }
139
+ .meter i.wait { background: transparent; box-shadow: inset 0 0 0 1px var(--proto-muted-3); }
69
140
  .meter i.bad { background: var(--proto-danger); }
70
- .legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; font: 400 11px var(--b-mono); color: var(--proto-muted); }
71
- .legend .sw { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 4px; vertical-align: 0; background: var(--proto-line-3); }
141
+ .legend { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 6px; font: 400 12px/1.45 var(--b-font); color: var(--proto-faint); font-variant-numeric: tabular-nums; }
142
+ .legend .sw { display: inline-block; width: 10px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--proto-line-3); }
72
143
  .legend .sw.ok { background: var(--proto-success); }
73
144
  .legend .sw.run { background: var(--proto-accent); }
74
- .legend .sw.ask { background: var(--proto-amber-bg); box-shadow: inset 0 0 0 1px var(--proto-amber-border); }
75
- .legend .sw.wait { background: transparent; border: 1px dashed var(--proto-faint); }
145
+ .legend .sw.ask { background: var(--proto-amber); }
146
+ .legend .sw.wait { background: transparent; box-shadow: inset 0 0 0 1px var(--proto-muted-3); }
76
147
  .legend .sw.bad { background: var(--proto-danger); }
77
148
 
78
- /* Stage cards */
79
- .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
80
- .step { min-width: 0; border: 1px solid var(--border-card); border-radius: var(--r-control); padding: 8px 10px; background: var(--material-inset-bg); }
81
- .step .top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
82
- .step .k { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
83
- .step .t { font-size: 12px; color: var(--proto-ink-2); margin: 2px 0 4px; }
84
- .step .m { font: 400 10.5px var(--b-mono); color: var(--proto-faint); }
85
- .step.ok { border-color: color-mix(in srgb, var(--proto-success) 30%, var(--proto-line)); }
86
- .step.run { border-color: var(--proto-accent-border); background: var(--proto-accent-bg); }
87
- .step.ask { border-color: var(--proto-amber-border); background: var(--proto-amber-bg); }
88
- .step.wait { border-style: dashed; border-color: var(--proto-faint); background: transparent; }
89
- .step.bad { border-color: color-mix(in srgb, var(--proto-danger) 35%, var(--proto-line)); }
149
+ /* Stages: rows in two columns (one when narrow), each closed by a hairline. The step's state draws
150
+ its 16px icon column — a check when done, else the status dot. A chip inside a step keeps its word
151
+ on the name line; its dot is that column, so it is not drawn twice. */
152
+ .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
153
+ @media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
154
+ .step { position: relative; min-width: 0; padding: 8px 0 9px 26px; border-bottom: 1px solid var(--proto-line-2); }
155
+ .step::before { content: ""; position: absolute; box-sizing: border-box; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--proto-faint) 45%, transparent); }
156
+ .step.ok::before { left: 6px; top: 12px; width: 5px; height: 10px; border-radius: 0; background: none; border: solid var(--proto-success); border-width: 0 2px 2px 0; transform: rotate(45deg); }
157
+ .step.run::before { background: var(--proto-accent); box-shadow: 0 0 0 3px var(--proto-accent-bg); }
158
+ .step.ask::before { background: var(--proto-amber); }
159
+ .step.wait::before { background: transparent; border: 1.5px solid var(--proto-muted-3); }
160
+ .step.bad::before { background: var(--proto-danger); }
161
+ .step .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
162
+ .step .k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 550; color: var(--proto-ink); }
163
+ .step .chip { flex: none; font-size: 12px; font-weight: 500; }
164
+ .step .chip::before { display: none; }
165
+ .step .t { font-size: 12.5px; line-height: 1.5; color: var(--proto-muted); margin: 1px 0 0; }
166
+ .step .m { font: 400 12px/1.5 var(--b-font); color: var(--proto-faint); font-variant-numeric: tabular-nums; }
90
167
 
91
- /* Row list: acceptance, checkpoints, decisions, risks, outputs */
168
+ /* Row list: acceptance, checkpoints, decisions, risks, outputs. The app's row grammar: a 16px icon
169
+ column, the body, right-aligned meta; hairlines between rows. An .id is code, so it stays mono. */
92
170
  .rows { display: flex; flex-direction: column; }
93
- .row { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--proto-line); }
171
+ .row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--proto-line-2); }
94
172
  .row:first-child { border-top: 0; padding-top: 0; }
95
173
  .row:last-child { padding-bottom: 0; }
96
- .row .id { font: 500 11px var(--b-mono); color: var(--proto-faint); width: 34px; flex: none; }
174
+ .row .id { flex: none; min-width: 34px; font: 500 12px var(--b-mono); color: var(--proto-faint); }
97
175
  .row .body { flex: 1; min-width: 0; }
98
- .row .end { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 11px var(--b-mono); color: var(--proto-muted); }
99
- .row .sub { display: block; font-size: 11.5px; color: var(--proto-muted); margin-top: 1px; }
176
+ .row .end { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px var(--b-font); color: var(--proto-faint); font-variant-numeric: tabular-nums; }
177
+ .row .sub { display: block; font-size: 12px; color: var(--proto-muted); margin-top: 1px; }
100
178
 
101
179
  /* Status icon, usually the first thing in a row */
102
- .ic { flex: none; width: 14px; text-align: center; font-size: 11px; color: var(--proto-faint); }
180
+ .ic { flex: none; width: 16px; text-align: center; font-size: 12px; color: var(--proto-faint); }
103
181
  .ic.ok { color: var(--proto-success); }
104
182
  .ic.run { color: var(--proto-accent); }
105
183
  .ic.ask { color: var(--proto-amber-fg); }
@@ -108,4 +186,4 @@ th { font: 600 11px var(--b-mono); color: var(--proto-muted); border-top: 0; }
108
186
  .ic.todo { color: var(--proto-faint); }
109
187
 
110
188
  /* Timeline: rows led by a date */
111
- .tl .row .when { font: 400 11px var(--b-mono); color: var(--proto-faint); min-width: 40px; white-space: nowrap; flex: none; }
189
+ .tl .row .when { flex: none; min-width: 40px; white-space: nowrap; font: 400 12px var(--b-font); color: var(--proto-faint); font-variant-numeric: tabular-nums; }
@@ -1,4 +1,4 @@
1
- <!-- Board body (body content only). On first fill, replace this empty-state card with real
1
+ <!-- Board body (body content only). On first fill, replace this empty-state section with real
2
2
  content in the user's language. The component examples below are reference only, not task
3
3
  status; copy only what applies. {{boardPendingContent}} is localized by the app. -->
4
4
  <div class="stack">
@@ -10,31 +10,36 @@
10
10
 
11
11
  <!-- COMPONENT EXAMPLES (not displayed)
12
12
  Board body (body content only). Replace the examples with real content and drop sections you
13
- do not need. States: ok done · run in progress · ask needs the user · wait blocked on a machine
14
- or someone else · bad failed/risk · none = not started. Classes: see the board skill.
13
+ do not need. The page reads as one document: each .card is a section under its .h heading,
14
+ set apart by space, not a box. States: ok done · run in progress · ask needs the user · wait
15
+ blocked on a machine or someone else · bad failed/risk · none = not started. Mono is for code
16
+ only (code, pre, .id). Classes: see the board skill.
15
17
  <div class="stack">
16
18
 
17
- Head: title, overall state, then one line on where things stand.
19
+ Head: a kicker with the updated time, the title with the overall state, then one line on where
20
+ things stand.
18
21
  <div class="card">
19
- <div class="head"><h1>{{title}}</h1><span class="chip run">in progress</span><span class="meta mono faint">updated MM-DD HH:MM</span></div>
22
+ <div class="kicker">Project · what this board covers<span class="meta">updated MM-DD HH:MM</span></div>
23
+ <div class="head"><h1>{{title}}</h1><span class="chip run">in progress</span></div>
20
24
  <div class="lead"><b>Stage 1 done.</b> Stage 2 is running; stage 3 waits for a GPU.</div>
21
25
  One <i> per unit of work.
22
26
  <div class="meter"><i class="ok"></i><i class="run"></i><i class="wait"></i><i></i></div>
23
27
  <div class="legend"><span><span class="sw ok"></span>done 1</span><span><span class="sw run"></span>running 1</span><span><span class="sw wait"></span>waiting 1</span><span><span class="sw"></span>to do 1</span></div>
24
28
  </div>
25
29
 
26
- Stages: one .step each, state on the step and its chip.
30
+ Stages: one .step each; its state draws the icon column, its chip names the state.
27
31
  <div class="card">
28
32
  <div class="h">Stages</div>
29
33
  <div class="steps">
30
- <div class="step ok"><div class="top"><span class="k">1</span><span class="chip ok">done</span></div><div class="t">What stage 1 delivers</div><div class="m">3 commits</div></div>
31
- <div class="step run"><div class="top"><span class="k">2</span><span class="chip run">running</span></div><div class="t">What stage 2 delivers</div><div class="m">2 / 5 tasks</div></div>
32
- <div class="step wait"><div class="top"><span class="k">3</span><span class="chip wait">waiting</span></div><div class="t">What stage 3 delivers</div><div class="m">needs a free GPU</div></div>
33
- <div class="step"><div class="top"><span class="k">4</span><span class="chip">to do</span></div><div class="t">What stage 4 delivers</div><div class="m">—</div></div>
34
+ <div class="step ok"><div class="top"><span class="k">1 · Baselines</span><span class="chip ok">done</span></div><div class="t">What stage 1 delivers</div><div class="m">3 commits</div></div>
35
+ <div class="step run"><div class="top"><span class="k">2 · Sweep</span><span class="chip run">running</span></div><div class="t">What stage 2 delivers</div><div class="m">2 / 5 tasks</div></div>
36
+ <div class="step wait"><div class="top"><span class="k">3 · Long run</span><span class="chip wait">waiting</span></div><div class="t">What stage 3 delivers</div><div class="m">needs a free GPU</div></div>
37
+ <div class="step"><div class="top"><span class="k">4 · Report</span><span class="chip">to do</span></div><div class="t">What stage 4 delivers</div><div class="m">—</div></div>
34
38
  </div>
35
39
  </div>
36
40
 
37
- Rows serve acceptance criteria, checkpoints, decisions, risks and outputs alike.
41
+ Rows serve acceptance criteria, checkpoints, decisions, risks and outputs alike. A callout is the
42
+ one boxed panel: keep it for what the user has to act on.
38
43
  <div class="grid wide-left">
39
44
  <div class="card">
40
45
  <div class="h">Acceptance <span class="n">1 / 3</span></div>
@@ -45,7 +50,7 @@ Rows serve acceptance criteria, checkpoints, decisions, risks and outputs alike.
45
50
  </div>
46
51
  </div>
47
52
  <div class="stack">
48
- <div class="card">
53
+ <div class="card callout ask">
49
54
  <div class="h">Needs you</div>
50
55
  <div class="rows">
51
56
  <div class="row"><span class="ic ask">●</span><span class="body"><b>Pick a dataset split</b><span class="sub">Asked in the lead session; stage 2 continues meanwhile.</span></span><span class="chip ask">needs you</span></div>
@@ -60,6 +65,24 @@ Rows serve acceptance criteria, checkpoints, decisions, risks and outputs alike.
60
65
  </div>
61
66
  </div>
62
67
 
68
+ Results: every board image opens full size on click; a gallery keeps a set the same size. Videos
69
+ over 2 MB become a play tile. Wide tables go in .tbl, numbers in .num; logs in pre; formulas in
70
+ .tex as TeX text.
71
+ <div class="card">
72
+ <div class="h">Results <span class="n">5 paired seeds</span></div>
73
+ <div class="gallery">
74
+ <figure><img src="assets/loss.png" alt="loss curve"><figcaption>loss · run-12</figcaption></figure>
75
+ <figure><video src="assets/rollout.mp4" poster="assets/rollout.jpg" controls></video><figcaption>rollout · seed 3</figcaption></figure>
76
+ </div>
77
+ <div class="tbl"><table>
78
+ <tr><th>Run</th><th class="num">Success</th><th class="num">Steps</th></tr>
79
+ <tr><td>run-12</td><td class="num">0.84</td><td class="num">1200</td></tr>
80
+ </table></div>
81
+ <p>Objective <span class="tex">\mathcal{L} = \lVert x - \hat{x} \rVert^2</span>, weighted as</p>
82
+ <div class="tex">w_t = \frac{1}{1 + e^{-t}}</div>
83
+ <pre>step 1200 | loss 0.0123 | success 0.84</pre>
84
+ </div>
85
+
63
86
  Timeline: newest first, a date then a state chip. Images go in assets/ as
64
87
  <img src="assets/x.png">; name other outputs by path in <code>.
65
88
  <div class="card tl">
@@ -68,7 +91,7 @@ Timeline: newest first, a date then a state chip. Images go in assets/ as
68
91
  <div class="row"><span class="when">MM-DD HH:MM</span><span class="chip ok">done</span><span class="body">Stage 1 merged; all checks pass</span></div>
69
92
  <div class="row"><span class="when">MM-DD HH:MM</span><span class="chip bad">failed</span><span class="body">First run diverged; learning rate halved and restarted</span></div>
70
93
  </div>
71
- <div class="mono muted" style="margin-top:8px">Outputs · <code>results/report.md</code></div>
94
+ <p class="muted" style="margin-top:10px">Outputs · <code>results/report.md</code></p>
72
95
  </div>
73
96
 
74
97
  </div>