@cortex-agent/server 2026.10.15 → 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.
- package/README.md +76 -50
- package/defaults/board/board.css +140 -62
- package/defaults/board/scaffold.html +36 -13
- package/defaults/config/environments/creative.json +0 -1
- package/defaults/config/environments/main.json +1 -2
- package/defaults/plugins/cortex-board/skills/board/SKILL.md +30 -22
- package/defaults/plugins/cortex-system/plugin.json +2 -2
- package/defaults/plugins/cortex-system/skills/browser/SKILL.md +56 -0
- package/dist/agent-adapter/claude/adapter.d.ts +2 -5
- package/dist/agent-adapter/claude/adapter.js +6 -5
- package/dist/agent-adapter/claude/assistant-blocks.d.ts +5 -0
- package/dist/agent-adapter/claude/assistant-blocks.js +61 -0
- package/dist/agent-adapter/claude/cache-refresh.d.ts +58 -0
- package/dist/agent-adapter/claude/cache-refresh.js +145 -0
- package/dist/agent-adapter/claude/cache-touch.d.ts +12 -0
- package/dist/agent-adapter/claude/cache-touch.js +75 -0
- package/dist/agent-adapter/claude/event-parser.d.ts +8 -3
- package/dist/agent-adapter/claude/event-parser.js +33 -17
- package/dist/agent-adapter/claude/event-translator.d.ts +2 -0
- package/dist/agent-adapter/claude/event-translator.js +2 -0
- package/dist/agent-adapter/claude/session-options.d.ts +6 -13
- package/dist/agent-adapter/claude/session-options.js +2 -13
- package/dist/agent-adapter/claude/spawn-args.d.ts +4 -21
- package/dist/agent-adapter/claude/spawn-args.js +17 -24
- package/dist/agent-adapter/claude/transcript-clear.d.ts +42 -0
- package/dist/agent-adapter/claude/transcript-clear.js +217 -0
- package/dist/agent-adapter/claude/turn-machine.d.ts +3 -2
- package/dist/agent-adapter/claude/turn-machine.js +21 -68
- package/dist/agent-adapter/claude/window-warmup.d.ts +13 -0
- package/dist/agent-adapter/claude/window-warmup.js +38 -0
- package/dist/agent-adapter/continuation-phase.js +3 -0
- package/dist/agent-adapter/normalize/event-types.d.ts +8 -0
- package/dist/agent-adapter/pi/adapter.d.ts +0 -1
- package/dist/agent-adapter/pi/adapter.js +5 -13
- package/dist/agent-adapter/pi/event-parser.d.ts +1 -1
- package/dist/agent-adapter/pi/event-parser.js +43 -27
- package/dist/agent-adapter/pi/mcp-bridge.d.ts +1 -1
- package/dist/agent-adapter/pi/pi-session.d.ts +2 -0
- package/dist/agent-adapter/pi/pi-session.js +15 -0
- package/dist/agent-adapter/pi/providers-config.d.ts +2 -2
- package/dist/agent-adapter/pi/providers-config.js +1 -1
- package/dist/agent-adapter/pi/quota-sink.d.ts +3 -3
- package/dist/agent-adapter/pi/quota-sink.js +3 -3
- package/dist/agent-adapter/pi/runtime.js +6 -1
- package/dist/agent-adapter/pi/session-options.d.ts +9 -13
- package/dist/agent-adapter/pi/session-options.js +12 -25
- package/dist/agent-adapter/run-events.d.ts +11 -10
- package/dist/agent-adapter/run-events.js +2 -0
- package/dist/agent-adapter/types.d.ts +5 -4
- package/dist/client-bundle/manifest.json +2 -2
- package/dist/core/codex-quota.d.ts +1 -1
- package/dist/core/codex-quota.js +1 -1
- package/dist/core/gateway-generator.d.ts +9 -11
- package/dist/core/gateway-generator.js +31 -58
- package/dist/core/locales/en.d.ts +51 -77
- package/dist/core/locales/slices/commands.d.ts +26 -31
- package/dist/core/locales/slices/commands.js +54 -64
- package/dist/core/locales/slices/init.d.ts +8 -19
- package/dist/core/locales/slices/init.js +17 -53
- package/dist/core/locales/slices/interactions.d.ts +3 -3
- package/dist/core/locales/slices/interactions.js +6 -6
- package/dist/core/locales/slices/notices.d.ts +1 -3
- package/dist/core/locales/slices/notices.js +2 -6
- package/dist/core/locales/slices/scheduling.d.ts +9 -9
- package/dist/core/locales/slices/scheduling.js +18 -18
- package/dist/core/locales/slices/status.d.ts +0 -4
- package/dist/core/locales/slices/status.js +0 -8
- package/dist/core/locales/slices/tui.d.ts +0 -1
- package/dist/core/locales/slices/tui.js +0 -2
- package/dist/core/locales/slices/uimsg.d.ts +4 -7
- package/dist/core/locales/slices/uimsg.js +9 -15
- package/dist/core/models-generator.d.ts +29 -0
- package/dist/core/models-generator.js +82 -0
- package/dist/core/paths.d.ts +1 -1
- package/dist/core/paths.js +1 -1
- package/dist/core/settings-spec.d.ts +25 -0
- package/dist/core/settings-spec.js +34 -0
- package/dist/core/status-format.d.ts +3 -2
- package/dist/core/status-format.js +2 -2
- package/dist/core/types/environment-types.d.ts +0 -2
- package/dist/domain/agents/agent-state.d.ts +11 -56
- package/dist/domain/agents/agent-state.js +48 -115
- package/dist/domain/agents/agent-switch.d.ts +2 -24
- package/dist/domain/agents/agent-switch.js +9 -72
- package/dist/domain/agents/config.d.ts +11 -61
- package/dist/domain/agents/config.js +47 -154
- package/dist/domain/agents/engine-selection.d.ts +21 -0
- package/dist/domain/agents/engine-selection.js +37 -0
- package/dist/domain/agents/environments/registry.js +2 -1
- package/dist/domain/agents/environments/resolve.js +0 -1
- package/dist/domain/agents/environments/schema.d.ts +0 -1
- package/dist/domain/agents/environments/schema.js +0 -1
- package/dist/domain/agents/index.d.ts +2 -1
- package/dist/domain/agents/index.js +3 -7
- package/dist/domain/agents/model-selection.d.ts +18 -70
- package/dist/domain/agents/model-selection.js +100 -150
- package/dist/domain/agents/models.d.ts +12 -0
- package/dist/domain/agents/models.js +94 -0
- package/dist/domain/agents/subagent/registry.d.ts +2 -0
- package/dist/domain/agents/subagent/registry.js +8 -0
- package/dist/domain/agents/subagent/runner.d.ts +5 -5
- package/dist/domain/agents/subagent/runner.js +12 -35
- package/dist/domain/auth/auth-status.d.ts +4 -4
- package/dist/domain/auth/auth-status.js +17 -28
- package/dist/domain/auth/gateway-sync.d.ts +6 -26
- package/dist/domain/auth/gateway-sync.js +31 -75
- package/dist/domain/benchmark/identity.d.ts +3 -5
- package/dist/domain/benchmark/identity.js +0 -1
- package/dist/domain/benchmark/production-attempt-identity.d.ts +6 -5
- package/dist/domain/benchmark/production-attempt-identity.js +32 -35
- package/dist/domain/benchmark/session-evidence.d.ts +2 -1
- package/dist/domain/benchmark/session-evidence.js +8 -1
- package/dist/domain/browser/broker.d.ts +99 -0
- package/dist/domain/browser/broker.js +487 -0
- package/dist/domain/costs/claude-account.js +21 -0
- package/dist/domain/costs/rate-limit-throttle.js +3 -1
- package/dist/domain/costs/reset-account.d.ts +2 -0
- package/dist/domain/costs/usage-service.d.ts +1 -1
- package/dist/domain/costs/usage-service.js +20 -7
- package/dist/domain/mcp/tools/context.d.ts +5 -6
- package/dist/domain/mcp/tools/context.js +17 -3
- package/dist/domain/mcp/tools/subagent.js +1 -1
- package/dist/domain/mcp/tools/ui-file.js +1 -1
- package/dist/domain/pi-providers/custom-provider-model.d.ts +1 -1
- package/dist/domain/pi-providers/custom-provider-model.js +1 -1
- package/dist/domain/remote/device-browser.js +1 -1
- package/dist/domain/remote/device-chrome-commands.js +2 -0
- package/dist/domain/remote/device-port.js +2 -2
- package/dist/domain/runs/attempt.d.ts +3 -3
- package/dist/domain/runs/attempt.js +2 -3
- package/dist/domain/runs/builders.d.ts +4 -4
- package/dist/domain/runs/builders.js +4 -5
- package/dist/domain/runs/compact.d.ts +4 -17
- package/dist/domain/runs/compact.js +14 -56
- package/dist/domain/runs/config-resolver.d.ts +15 -83
- package/dist/domain/runs/config-resolver.js +24 -150
- package/dist/domain/runs/engine-spec.d.ts +8 -8
- package/dist/domain/runs/engine-spec.js +15 -31
- package/dist/domain/runs/events.d.ts +1 -1
- package/dist/domain/runs/fallback.d.ts +6 -38
- package/dist/domain/runs/fallback.js +10 -72
- package/dist/domain/runs/notices.d.ts +1 -11
- package/dist/domain/runs/notices.js +3 -30
- package/dist/domain/runs/request.d.ts +4 -3
- package/dist/domain/runs/retryable-errors.d.ts +0 -13
- package/dist/domain/runs/retryable-errors.js +0 -17
- package/dist/domain/runs/run.d.ts +12 -42
- package/dist/domain/runs/run.js +40 -147
- package/dist/domain/runs/service.d.ts +1 -1
- package/dist/domain/runs/service.js +8 -3
- package/dist/domain/runs/spec-loader.d.ts +1 -1
- package/dist/domain/runs/spend.d.ts +1 -1
- package/dist/domain/runs/spend.js +1 -1
- package/dist/domain/scheduling/jobs/scheduled-task.d.ts +3 -2
- package/dist/domain/scheduling/jobs/scheduled-task.js +25 -19
- package/dist/domain/scheduling/schedule-ops.d.ts +0 -1
- package/dist/domain/scheduling/schedule-ops.js +2 -5
- package/dist/domain/scheduling/schedule-selection.d.ts +3 -0
- package/dist/domain/scheduling/schedule-selection.js +16 -0
- package/dist/domain/scheduling/schedule-spec.d.ts +6 -5
- package/dist/domain/scheduling/schedule-spec.js +6 -6
- package/dist/domain/scheduling/scheduler.d.ts +3 -1
- package/dist/domain/scheduling/scheduler.js +22 -21
- package/dist/domain/sessions/session-hooks.d.ts +5 -4
- package/dist/domain/sessions/session-hooks.js +15 -33
- package/dist/domain/sessions/session-lifecycle.d.ts +19 -51
- package/dist/domain/sessions/session-lifecycle.js +34 -96
- package/dist/domain/system/doctor.d.ts +3 -3
- package/dist/domain/system/doctor.js +22 -26
- package/dist/domain/system/own-bin-path.d.ts +13 -0
- package/dist/domain/system/own-bin-path.js +36 -0
- package/dist/domain/system/terminal-cli/index.d.ts +58 -0
- package/dist/domain/system/terminal-cli/index.js +100 -0
- package/dist/domain/system/terminal-cli/posix-profiles.d.ts +23 -0
- package/dist/domain/system/terminal-cli/posix-profiles.js +74 -0
- package/dist/domain/system/terminal-cli/registrar.d.ts +12 -0
- package/dist/domain/system/terminal-cli/registrar.js +1 -0
- package/dist/domain/system/terminal-cli/shims.d.ts +27 -0
- package/dist/domain/system/terminal-cli/shims.js +108 -0
- package/dist/domain/system/terminal-cli/state.d.ts +7 -0
- package/dist/domain/system/terminal-cli/state.js +36 -0
- package/dist/domain/system/terminal-cli/windows-user-path.d.ts +13 -0
- package/dist/domain/system/terminal-cli/windows-user-path.js +67 -0
- package/dist/domain/tui-session/tui-session-service.js +1 -1
- package/dist/domain/tui-session/types.d.ts +2 -2
- package/dist/domain/ui-service/app-router.d.ts +49 -71
- package/dist/domain/ui-service/app-router.js +9 -13
- package/dist/domain/ui-service/assistant-snapshots.js +2 -0
- package/dist/domain/ui-service/contract.parity.d.ts +19 -0
- package/dist/domain/ui-service/contract.parity.js +1 -0
- package/dist/domain/ui-service/inline-media-types.d.ts +18 -0
- package/dist/domain/ui-service/inline-media-types.js +1 -0
- package/dist/domain/ui-service/input-schemas.d.ts +52 -115
- package/dist/domain/ui-service/input-schemas.js +38 -84
- package/dist/domain/ui-service/mutate/auth.d.ts +1 -1
- package/dist/domain/ui-service/mutate/auth.js +3 -2
- package/dist/domain/ui-service/mutate/config.d.ts +0 -8
- package/dist/domain/ui-service/mutate/config.js +0 -22
- package/dist/domain/ui-service/mutate/models.d.ts +13 -0
- package/dist/domain/ui-service/mutate/models.js +137 -0
- package/dist/domain/ui-service/mutate/resolve-media.d.ts +4 -0
- package/dist/domain/ui-service/mutate/resolve-media.js +17 -0
- package/dist/domain/ui-service/mutate/sessions.d.ts +2 -2
- package/dist/domain/ui-service/mutate/sessions.js +29 -126
- package/dist/domain/ui-service/query/config.js +22 -42
- package/dist/domain/ui-service/query/models.js +2 -2
- package/dist/domain/ui-service/query/schedules.js +1 -1
- package/dist/domain/ui-service/query/sessions.js +7 -13
- package/dist/domain/ui-service/types.d.ts +51 -177
- package/dist/domain/ui-service/ui-service.d.ts +23 -49
- package/dist/domain/ui-service/ui-service.js +8 -6
- package/dist/entry/app.js +42 -19
- package/dist/entry/browser-cli.d.ts +39 -0
- package/dist/entry/browser-cli.js +317 -0
- package/dist/entry/cli-help.d.ts +1 -0
- package/dist/entry/cli-help.js +37 -6
- package/dist/entry/cli.js +16 -14
- package/dist/entry/daemon.js +2 -0
- package/dist/entry/init-auth.js +1 -1
- package/dist/entry/init.d.ts +7 -8
- package/dist/entry/init.js +89 -249
- package/dist/entry/path-cli.d.ts +4 -0
- package/dist/entry/path-cli.js +65 -0
- package/dist/entry/schedule-cli.js +13 -6
- package/dist/entry/shutdown.d.ts +1 -1
- package/dist/entry/shutdown.js +8 -1
- package/dist/entry/start-ui-http.js +8 -0
- package/dist/entry/ui-service-wiring.js +8 -10
- package/dist/events/event-types.d.ts +3 -2
- package/dist/orchestration/agent-runner.d.ts +2 -2
- package/dist/orchestration/agent-runner.js +10 -9
- package/dist/orchestration/benchmark-session-webhook.js +13 -1
- package/dist/orchestration/browser-webhook.d.ts +11 -0
- package/dist/orchestration/browser-webhook.js +28 -0
- package/dist/orchestration/cache-keep-warm.d.ts +77 -0
- package/dist/orchestration/cache-keep-warm.js +213 -0
- package/dist/orchestration/claude-window-warmup.d.ts +40 -0
- package/dist/orchestration/claude-window-warmup.js +126 -0
- package/dist/orchestration/conversation-request.d.ts +6 -10
- package/dist/orchestration/conversation-request.js +5 -23
- package/dist/orchestration/delta-coalescer.d.ts +4 -2
- package/dist/orchestration/delta-coalescer.js +5 -5
- package/dist/orchestration/edit-retry.js +9 -11
- package/dist/orchestration/inline-media-eager.d.ts +13 -0
- package/dist/orchestration/inline-media-eager.js +58 -0
- package/dist/orchestration/inline-media.d.ts +22 -0
- package/dist/orchestration/inline-media.js +151 -0
- package/dist/orchestration/interactions/ask-user-resume.js +3 -7
- package/dist/orchestration/interactions/interaction-handlers.js +6 -6
- package/dist/orchestration/mid-turn-inject.d.ts +2 -1
- package/dist/orchestration/mid-turn-inject.js +1 -1
- package/dist/orchestration/pending-injection-recovery.d.ts +2 -1
- package/dist/orchestration/pending-injection-recovery.js +1 -1
- package/dist/orchestration/routing/commands/index.js +4 -4
- package/dist/orchestration/routing/commands/mode.d.ts +5 -44
- package/dist/orchestration/routing/commands/mode.js +98 -272
- package/dist/orchestration/routing/commands/schedule.js +29 -18
- package/dist/orchestration/routing/commands/session.js +9 -9
- package/dist/orchestration/routing/commands/status.js +1 -1
- package/dist/orchestration/routing/commands/usage-format.js +3 -0
- package/dist/orchestration/routing/webhook.js +4 -0
- package/dist/orchestration/session-compact.d.ts +0 -1
- package/dist/orchestration/session-compact.js +5 -7
- package/dist/orchestration/session-events.d.ts +2 -1
- package/dist/orchestration/session-events.js +1 -0
- package/dist/orchestration/status-helpers.d.ts +0 -4
- package/dist/orchestration/status-helpers.js +0 -18
- package/dist/orchestration/subagent-webhook.js +9 -34
- package/dist/orchestration/team-webhook.d.ts +8 -9
- package/dist/orchestration/team-webhook.js +16 -42
- package/dist/orchestration/transcript-sink.d.ts +6 -0
- package/dist/orchestration/transcript-sink.js +21 -2
- package/dist/orchestration/turn/terminal.js +7 -7
- package/dist/orchestration/turn/turn-prep.d.ts +0 -8
- package/dist/orchestration/turn/turn-prep.js +0 -51
- package/dist/orchestration/turn/turn-tracking.d.ts +2 -2
- package/dist/orchestration/turn/turn-tracking.js +8 -5
- package/dist/orchestration/turn/turn.d.ts +0 -2
- package/dist/orchestration/turn/turn.js +13 -15
- package/dist/platform/adapters/tui/ports.d.ts +1 -1
- package/dist/platform/adapters/tui/tui-transcript.js +2 -0
- package/dist/platform/browser/agent-browser.d.ts +50 -0
- package/dist/platform/browser/agent-browser.js +165 -0
- package/dist/platform/browser/managed-browser.d.ts +1 -11
- package/dist/platform/browser/managed-browser.js +4 -12
- package/dist/platform/ui-http/browser-stream.d.ts +110 -0
- package/dist/platform/ui-http/browser-stream.js +447 -0
- package/dist/platform/ui-http/ui-http-server.d.ts +12 -0
- package/dist/platform/ui-http/ui-http-server.js +23 -6
- package/dist/store/conversation-history-reader.js +8 -0
- package/dist/store/conversation-history-repo.d.ts +8 -1
- package/dist/store/conversation-history-repo.js +5 -0
- package/dist/store/conversation-ledger-repo.d.ts +6 -6
- package/dist/store/conversation-ledger-repo.js +4 -4
- package/dist/store/models-repo.d.ts +18 -0
- package/dist/store/models-repo.js +74 -0
- package/dist/store/pending-injection-repo.d.ts +2 -1
- package/dist/store/pending-injection-repo.js +3 -1
- package/dist/store/retire-profiles-migration.d.ts +28 -0
- package/dist/store/retire-profiles-migration.js +335 -0
- package/dist/store/schedule-repo.d.ts +2 -1
- package/dist/store/session-registry-import.js +3 -2
- package/dist/store/session-registry-journal.d.ts +10 -13
- package/dist/store/session-registry-journal.js +48 -25
- package/dist/store/session-registry-repo.d.ts +4 -4
- package/dist/store/session-registry-repo.js +4 -5
- package/dist/store/version-migrations.d.ts +2 -3
- package/dist/store/version-migrations.js +19 -3
- package/dist/tui/slash-commands.js +2 -2
- package/dist/tui/turn-status.js +1 -1
- package/package.json +6 -4
- package/web/dist/assets/board-math-css-CB4GJ6qO.js +2 -0
- package/web/dist/assets/index-CaSZPg_H.css +1 -0
- package/web/dist/assets/index-CzOR7Edh.js +522 -0
- package/web/dist/assets/{index-CndZZ1IQ.js → index-cIGFv27z.js} +1 -1
- package/web/dist/index.html +3 -2
- package/web/dist/theme.css +6 -0
- package/dist/agent-adapter/browser-mcp-server.d.ts +0 -13
- package/dist/agent-adapter/browser-mcp-server.js +0 -28
- package/dist/agent-adapter/claude/browser-mcp.d.ts +0 -9
- package/dist/agent-adapter/claude/browser-mcp.js +0 -10
- package/dist/core/profile-generator.d.ts +0 -79
- package/dist/core/profile-generator.js +0 -215
- package/dist/domain/agents/profile-manager.d.ts +0 -103
- package/dist/domain/agents/profile-manager.js +0 -286
- package/dist/domain/agents/profile-switch.d.ts +0 -49
- package/dist/domain/agents/profile-switch.js +0 -62
- package/dist/domain/ui-service/mutate/profiles.d.ts +0 -36
- package/dist/domain/ui-service/mutate/profiles.js +0 -151
- package/dist/store/profile-repo.d.ts +0 -20
- package/dist/store/profile-repo.js +0 -97
- package/web/dist/assets/index-B76ueW3q.js +0 -494
- package/web/dist/assets/index-C8O0yxg8.css +0 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# Cortex
|
|
4
4
|
|
|
5
|
-
**An
|
|
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
|
|
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
|
[](https://github.com/fangxm233/cortex-agent/releases)
|
|
11
11
|
[](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.
|
|
29
|
-
| macOS · Intel | [Cortex-2026.10.
|
|
30
|
-
| Windows · x64 | [Cortex-2026.10.
|
|
31
|
-
| Linux · x86_64 | [AppImage](https://github.com/fangxm233/cortex-agent/releases/download/server-v2026.10.
|
|
32
|
-
| Android · arm64 | [Cortex-2026.10.
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- **
|
|
51
|
-
|
|
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,34 +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
|
-
###
|
|
85
|
-
|
|
86
|
-
<img alt="The memory view of a project: mission, status, experiment records and knowledge entries" src="https://raw.githubusercontent.com/fangxm233/cortex-agent/main/docs/images/ui/memory.png">
|
|
87
|
-
|
|
88
|
-
Each project keeps its mission, roadmap, status, experiment records, knowledge entries, patterns, and
|
|
89
|
-
decision records as Markdown under `context/projects/<name>/`. A new session, or you weeks later,
|
|
90
|
-
picks up from those files rather than from a transcript. The **Memory** view browses them and, when
|
|
91
|
-
the project is in a git work tree, shows the latest change behind each line. [Memory →](https://fangxm233.github.io/cortex-agent/memory/)
|
|
97
|
+
### Every experiment on record
|
|
92
98
|
|
|
93
|
-
|
|
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">
|
|
94
100
|
|
|
95
|
-
|
|
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/)
|
|
96
105
|
|
|
97
|
-
|
|
98
|
-
its schedules, and its recent executions with their duration, cost, and logs. Interval, daily, weekly, and
|
|
99
|
-
one-off schedules start ordinary sessions on their own: a morning scan of new papers, a weekly
|
|
100
|
-
digest, a check every few minutes. Schedules survive restarts and hot-reload without downtime.
|
|
101
|
-
[Scheduling →](https://fangxm233.github.io/cortex-agent/scheduling/)
|
|
102
|
-
|
|
103
|
-
### All your machines
|
|
106
|
+
### Training across all your machines
|
|
104
107
|
|
|
105
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>
|
|
106
109
|
|
|
107
|
-
Your GPUs,
|
|
108
|
-
Windows machine and the agent can read, write, and execute there from the same session.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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/)
|
|
112
131
|
|
|
113
132
|
### On your phone
|
|
114
133
|
|
|
@@ -118,6 +137,12 @@ The Android app has the same sessions, boards, approvals, and memory in a phone
|
|
|
118
137
|
notify you in the background when a turn finishes or when a session is waiting for your answer.
|
|
119
138
|
[Desktop and Android apps →](https://fangxm233.github.io/cortex-agent/desktop-app/)
|
|
120
139
|
|
|
140
|
+
### Integrate with your workflow
|
|
141
|
+
|
|
142
|
+
Cortex connects to Slack and Feishu (Lark), so you can work with it from the chat app you already
|
|
143
|
+
use: start and continue sessions there, and get notified when work finishes or needs you.
|
|
144
|
+
[Slack setup →](https://fangxm233.github.io/cortex-agent/slack-setup/) · [Quickstart →](https://fangxm233.github.io/cortex-agent/quickstart/)
|
|
145
|
+
|
|
121
146
|
### Bring your own models
|
|
122
147
|
|
|
123
148
|
<p align="center"><img width="640" alt="Model providers: a connected OpenAI Codex login and the catalog of providers to add with an API key or OAuth" src="https://raw.githubusercontent.com/fangxm233/cortex-agent/main/docs/images/ui/provider-setup.png"></p>
|
|
@@ -133,7 +158,7 @@ session and per provider. [Backends →](https://fangxm233.github.io/cortex-agen
|
|
|
133
158
|
|
|
134
159
|
[Download](#download) the app for your platform, open it, and choose **Install Cortex**. The app
|
|
135
160
|
unpacks its own Node.js runtime, installs the server into a private prefix under `~/.cortex`, starts
|
|
136
|
-
it, and opens provider setup. Sign in to a provider, pick a default
|
|
161
|
+
it, and opens provider setup. Sign in to a provider, pick a default model, and enter the
|
|
137
162
|
workbench. Choose **Connect an existing server** instead to use a server running elsewhere.
|
|
138
163
|
[Desktop and Android apps →](https://fangxm233.github.io/cortex-agent/desktop-app/)
|
|
139
164
|
|
|
@@ -181,16 +206,16 @@ sessions, restarts, and model upgrades, and any agent or person can read them.
|
|
|
181
206
|
|
|
182
207
|
## Safety and approvals
|
|
183
208
|
|
|
184
|
-
Cortex gives agents real tools: shell, files, GPUs,
|
|
185
|
-
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:
|
|
186
211
|
|
|
187
212
|
- **Plan approval.** Non-trivial work starts with a plan that waits until you approve it or send
|
|
188
213
|
it back for changes.
|
|
189
214
|
- **Questions and decisions.** Agents ask through cards that you answer in place, and record the
|
|
190
|
-
choices they make on their own as
|
|
215
|
+
choices they make on their own as decisions you can review.
|
|
191
216
|
- **Your rules.** A safety boundary in your `$CORTEX_HOME/AGENTS.md` tells every session what it may
|
|
192
|
-
do alone, what needs sign-off
|
|
193
|
-
**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**.
|
|
194
219
|
|
|
195
220
|
[Safety and approvals →](https://fangxm233.github.io/cortex-agent/safety-and-approvals/)
|
|
196
221
|
|
|
@@ -205,15 +230,16 @@ conversational rather than a sandbox:
|
|
|
205
230
|
| [Team mode](https://fangxm233.github.io/cortex-agent/team/) | Leads, workers, reports, and boards |
|
|
206
231
|
| [Memory](https://fangxm233.github.io/cortex-agent/memory/) | The project log: experiments, knowledge, patterns, decisions |
|
|
207
232
|
| [Scheduling](https://fangxm233.github.io/cortex-agent/scheduling/) | Interval, daily, weekly, and one-off schedules |
|
|
208
|
-
| [Backends](https://fangxm233.github.io/cortex-agent/backends/) | Claude Code and PI, providers,
|
|
209
|
-
| [Configuration](https://fangxm233.github.io/cortex-agent/configuration/) | `config/.env`, `settings.json`,
|
|
210
|
-
| [CLI reference](https://fangxm233.github.io/cortex-agent/cli-reference/) | `cortex`, `cortex-signal`, and `cortex-hook` |
|
|
233
|
+
| [Backends](https://fangxm233.github.io/cortex-agent/backends/) | Claude Code and PI, providers, model selection, cost reporting, subagents |
|
|
234
|
+
| [Configuration](https://fangxm233.github.io/cortex-agent/configuration/) | `config/.env`, `settings.json`, models and favorites, execution environments |
|
|
235
|
+
| [CLI reference](https://fangxm233.github.io/cortex-agent/cli-reference/) | `cortex`, `cortex-browser`, `cortex-signal`, and `cortex-hook` |
|
|
211
236
|
| [Skills & plugins](https://fangxm233.github.io/cortex-agent/skills-and-plugins/) | Writing, overriding, and packaging skills |
|
|
212
237
|
| [Safety & approvals](https://fangxm233.github.io/cortex-agent/safety-and-approvals/) | The safety boundary, approval queue, and interactive cards |
|
|
213
238
|
| [Hooks](https://fangxm233.github.io/cortex-agent/hooks/) | Hook lifecycle, built-in hooks, and custom hooks |
|
|
214
239
|
| [Waitpoints](https://fangxm233.github.io/cortex-agent/waitpoints/) | Waiting on external jobs without polling |
|
|
215
240
|
| [MCP](https://fangxm233.github.io/cortex-agent/mcp/) | Cortex's MCP tools and third-party servers |
|
|
216
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 |
|
|
217
243
|
| [Architecture](https://fangxm233.github.io/cortex-agent/architecture/) | Server layers, protocols, and the event bus |
|
|
218
244
|
|
|
219
245
|
## Developing Cortex
|
package/defaults/board/board.css
CHANGED
|
@@ -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-*,
|
|
5
|
-
--border-card, --r
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
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:
|
|
20
|
-
p { margin: 0 0
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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:
|
|
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
|
-
/*
|
|
37
|
-
.
|
|
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:
|
|
44
|
-
.h .n { font-weight:
|
|
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:
|
|
47
|
-
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
.
|
|
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
|
-
/*
|
|
55
|
-
.chip { display: inline-
|
|
56
|
-
.chip
|
|
57
|
-
.chip.
|
|
58
|
-
.chip.
|
|
59
|
-
.chip.
|
|
60
|
-
.chip.
|
|
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:
|
|
64
|
-
.meter i { flex: 1; min-width: 2px; border-radius:
|
|
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
|
|
68
|
-
.meter i.wait { background: transparent;
|
|
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:
|
|
71
|
-
.legend .sw { display: inline-block; width:
|
|
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
|
|
75
|
-
.legend .sw.wait { background: transparent;
|
|
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
|
-
/*
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.
|
|
82
|
-
|
|
83
|
-
.step
|
|
84
|
-
.step
|
|
85
|
-
.step.ok { border-
|
|
86
|
-
.step.run {
|
|
87
|
-
.step.ask {
|
|
88
|
-
.step.wait {
|
|
89
|
-
.step.bad {
|
|
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:
|
|
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
|
|
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
|
|
99
|
-
.row .sub { display: block; font-size:
|
|
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:
|
|
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
|
|
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
|
|
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.
|
|
14
|
-
|
|
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:
|
|
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="
|
|
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
|
|
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
|
-
<
|
|
94
|
+
<p class="muted" style="margin-top:10px">Outputs · <code>results/report.md</code></p>
|
|
72
95
|
</div>
|
|
73
96
|
|
|
74
97
|
</div>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "creative",
|
|
3
3
|
"description": "Clean-room creative environment: writing, image prompts, naming, copy. No skills, no project rules, minimal tools.",
|
|
4
|
-
"profile": "__active__",
|
|
5
4
|
"promptTemplate": "{{input}}",
|
|
6
5
|
"systemPrompt": "file:creative.md",
|
|
7
6
|
"tools": "Read,Write,Edit",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "main",
|
|
3
|
-
"description": "General-purpose environment
|
|
4
|
-
"profile": "__active__",
|
|
3
|
+
"description": "General-purpose environment",
|
|
5
4
|
"promptTemplate": "{{input}}",
|
|
6
5
|
"systemPrompt": "file:direct.md",
|
|
7
6
|
"tools": "Agent,AskUserQuestion,Bash,Edit,EnterPlanMode,ExitPlanMode,Glob,Grep,Read,Skill,TaskStop,TodoWrite,WebFetch,WebSearch,Write"
|