Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

chore(fork): 删掉上游官网 landing 及其建站/发布链路

lmliheng1219f204a41c
diff --git a/.dockerignore b/.dockerignore
index 8c07cfbd..25d1aa2b 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -23,7 +23,6 @@ packages/desktop/stage
# Artifacts of running things locally.
**/test-results
**/playwright-report
-packages/landing/.blog-assets
**/*.log
# Local configuration, and the symlinks a development checkout carries to reach the design
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index b21b3417..cb629aec 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -130,7 +130,6 @@ single data directory (`~/.penguin/data`) and a single message protocol (OmniMes
| [`packages/server`](../packages/server) | `@prismshadow/penguin-server` | Web backend: HTTP API + SSE streaming, multi-user auth, Project authorization, usage stats |
| [`packages/web`](../packages/web) | `@prismshadow/penguin-web` | Web App: multi-session chat, Agent/skill/model management, Trace observability, evaluation center |
| [`plugins/*`](../plugins) | `@penguinharness/<name>` | The built-in plugins, one npm package each: skills (software development, model development, agent development/tuning, …) and session hooks (goal mode, skill summaries); the loader lives in `packages/core` |
-| [`packages/landing`](../packages/landing) | — | Product landing page (this repo's website) |
| [`packages/docs`](../packages/docs) | — | Documentation site (bilingual, deployed under `/docs/`) |
| [`plugins/*`](../plugins) | `@prismshadow/penguin-plugin-*` | Plugin packages a Project asks for on the Plugins page (its `[plugins]` table) — a directory of their own because nothing else in the harness depends on one |
@@ -207,10 +206,9 @@ pnpm test:e2e # core live-model e2e, need
tagged on a green CI, lost its macOS installers to a runner-image change, and shipped again
as 0.2.11). To re-check outside a release branch:
`gh workflow run desktop-build.yml --ref <branch> -f require_macos_signing=true -f require_windows_signing=true`.
-- README assets under `assets/readme/` are generated — the benchmark charts from the
- landing benchmark data, and the demo screenshots via
- `node packages/landing/scripts/capture-readme-demo.mjs` (build first; needs Playwright
- chromium). Regenerate rather than hand-editing.
+- README assets under `assets/readme/` are generated — the benchmark charts come from the
+ landing benchmark data, and the demo screenshots from the (now-removed) landing site's
+ capture script. Regenerate rather than hand-editing.
## Reporting a bug or proposing a feature
diff --git a/.github/CONTRIBUTING.zh.md b/.github/CONTRIBUTING.zh.md
index 20d56434..0d066c87 100644
--- a/.github/CONTRIBUTING.zh.md
+++ b/.github/CONTRIBUTING.zh.md
@@ -90,7 +90,6 @@ userData 目录随其名称一并搬家,Chromium 配置文件也跟着走,
| [`packages/server`](../packages/server) | `@prismshadow/penguin-server` | Web 后端:HTTP API + SSE 流式传输、多用户认证、Project 鉴权、用量统计 |
| [`packages/web`](../packages/web) | `@prismshadow/penguin-web` | Web App:多会话聊天,Agent/Skill/模型管理,Trace 可观测性,评测中心 |
| [`plugins/*`](../plugins) | `@penguinharness/<name>` | 内置插件,一插件一 npm 包:Skill(软件开发、模型开发、Agent 开发/调优……)与会话钩子(目标模式、技能沉淀);loader 在 `packages/core` |
-| [`packages/landing`](../packages/landing) | — | 产品落地页(本仓库的官网) |
| [`packages/docs`](../packages/docs) | — | 文档站(双语,部署在 `/docs/` 下) |
职责按事实来源划分:**SDK** 拥有协议与执行(消息解析、Agent 循环、工具),**Server** 拥有多用户运行时
@@ -147,9 +146,8 @@ pnpm test:e2e # core 的真实模型 e2e
的问题要用掉一个版本号(0.2.10 在 CI 全绿时打了 tag,因运行器镜像变化丢了 macOS 安装包,只得以 0.2.11
重新发布)。在发布分支之外想补验一次:
`gh workflow run desktop-build.yml --ref <分支> -f require_macos_signing=true -f require_windows_signing=true`。
-- `assets/readme/` 下的 README 素材是生成物——基准测试图表由落地页的基准数据生成,演示截图由
- `node packages/landing/scripts/capture-readme-demo.mjs` 生成(需先构建;需要 Playwright chromium)。
- 请重新生成,而不要手工编辑。
+- `assets/readme/` 下的 README 素材是生成物——基准测试图表由落地页的基准数据生成,演示截图由已删掉的
+ 落地页里那个截图脚本生成。请重新生成,而不要手工编辑。
## 报告缺陷或提出功能建议
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a37e50a3..752d4368 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -124,7 +124,7 @@ jobs:
# files read skills' emitted types, for one.
- uses: ./.github/actions/setup
with:
- build: "@prismshadow/penguin-desktop...,@prismshadow/penguin-landing...,@prismshadow/penguin-docs...,@prismshadow/penguin-server...,@prismshadow/penguin-cli...,@prismshadow/penguin-web..."
+ build: "@prismshadow/penguin-desktop...,@prismshadow/penguin-docs...,@prismshadow/penguin-server...,@prismshadow/penguin-cli...,@prismshadow/penguin-web..."
- name: Typecheck (tsc)
run: pnpm typecheck
@@ -152,7 +152,7 @@ jobs:
- shard: rest
build: "@prismshadow/penguin-desktop..."
tests: >-
- pnpm --filter @prismshadow/penguin-desktop --filter @prismshadow/penguin-landing
+ pnpm --filter @prismshadow/penguin-desktop
--filter @prismshadow/penguin-docs --filter @prismshadow/penguin-ui-gallery test
steps:
- uses: actions/checkout@v5
@@ -303,7 +303,7 @@ jobs:
shell: pwsh
run: |
$failed = $false
- foreach ($f in @("install.ps1", "packages/landing/public/install.ps1")) {
+ foreach ($f in @("install.ps1")) {
$tokens = $null
$errors = $null
# .Path: hand ParseFile a plain string, not a PathInfo object.
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
deleted file mode 100644
index 6e678b50..00000000
--- a/.github/workflows/pages.yml
+++ /dev/null
@@ -1,78 +0,0 @@
-# Public site: build the landing page (site root) and the docs site (/docs/) with Vite
-# and deploy them as ONE artifact to GitHub Pages (scripts/build-site.mjs assembles the
-# tree — landing dist with the docs dist copied under docs/).
-# - Pull requests touching either package only BUILD (validation) — no Pages
-# configuration and no deploy, so PRs never fail on Pages availability.
-# - Pushes to main (and manual dispatch) build + deploy. The site is served from the
-# custom apex domain https://penguin.ooo/ (Settings -> Pages -> Custom domain), so
-# BASE_PATH is "/" — assets resolve from the domain root, not a /<repo>/ subpath.
-# First-time setup: repository Settings -> Pages -> Source = "GitHub Actions".
-name: Deploy Site
-
-on:
- push:
- branches: [main]
- paths:
- - "packages/landing/**"
- - "packages/docs/**"
- - "scripts/build-site.mjs"
- - ".github/workflows/pages.yml"
- # Same trigger policy as ci.yml: only a pull request whose base is main gets the preview
- # build, and only when it touches the site.
- pull_request:
- branches: [main]
- paths:
- - "packages/landing/**"
- - "packages/docs/**"
- - "scripts/build-site.mjs"
- - ".github/workflows/pages.yml"
- workflow_dispatch:
-
-permissions:
- contents: read
- pages: write
- id-token: write
-
-# One deploy at a time; let an in-flight production deploy finish rather than cancelling it.
-concurrency:
- group: pages-${{ github.event_name }}-${{ github.ref }}
- cancel-in-progress: false
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v5
-
- # pnpm version comes from package.json's packageManager field.
- - uses: pnpm/action-setup@v6
-
- - uses: actions/setup-node@v5
- with:
- node-version: 24
- cache: pnpm
-
- - name: Install dependencies
- run: pnpm install --frozen-lockfile
-
- - name: Build site (landing + docs, vite)
- env:
- BASE_PATH: /
- run: pnpm build:site
-
- # Only the deploying runs need the Pages artifact (PRs stop at the build check).
- - if: github.event_name != 'pull_request'
- uses: actions/upload-pages-artifact@v3
- with:
- path: packages/landing/dist
-
- deploy:
- if: github.event_name != 'pull_request'
- needs: build
- runs-on: ubuntu-latest
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- steps:
- - id: deployment
- uses: actions/deploy-pages@v4
diff --git a/.gitignore b/.gitignore
index e2f3fd78..2ec2a687 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,10 +38,6 @@ packages/web/test-results/
packages/ui-gallery/shots/
packages/web/playwright-report/
-# blog images staged locally by the landing capture/render scripts, then uploaded to
-# the community repo's blog-assets/ — never committed here (see lib/links.ts)
-packages/landing/.blog-assets/
-
# local design-doc symlink and agent instructions
/design
/AGENTS.md
diff --git a/.oxlintrc.json b/.oxlintrc.json
index fcd4471b..124257c8 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -22,7 +22,6 @@
"**/build/**",
"**/node_modules/**",
"packages/desktop/release/**",
- "packages/landing/.blog-assets/**",
"packages/web/dist-app/**"
]
}
diff --git a/FORK-PROGRESS.md b/FORK-PROGRESS.md
index 5a2f6c49..039dbc14 100644
--- a/FORK-PROGRESS.md
+++ b/FORK-PROGRESS.md
@@ -35,7 +35,19 @@
4000 / 7370 对齐,避免两个产品抢端口。
- [ ] 2.4 **README 与包元数据**:根 `README.md` 换成 Adelie 自己的说明 + 「基于 PenguinHarness」的
来源声明(`FORK.md` 已有,README 里指过去即可)。
-- [ ] 2.5 **上游 `landing` / `docs` / `ui-gallery` / `hmr` 四个包的去留**:逐个人拍板(卡点 A)。
+- [x] 2.5 **上游 `landing` / `docs` / `ui-gallery` / `hmr` 的去留(2026-10-05 定,用户「看你」)**:
+ - **删 `packages/landing`**(官网 + 博客 + 下载页,163 文件 / 3.0M):整站都是上游产品的宣传
+ 与 `penguin.ooo` 链接,对 Adelie 没有一处价值。连带删掉只为它存在的
+ `scripts/build-site.mjs` 与 `.github/workflows/pages.yml`(把落地页 + 文档站组装成
+ penguin.ooo 那一个 Pages 站),并清理各处引用:README 的 logo、root scripts 的
+ `dev:landing` / `build:site`、CI 的过滤器、`scripts/test-installer.sh` 里那段
+ 「penguin.ooo 转发器」用例(转发器没了,被测对象也就没了)、`.oxlintrc` 的 `.blog-assets`、
+ `.gitignore` / `.dockerignore` 的忽略项、`packages/core` 端口表里的 7366 行、
+ 两个安装脚本注释里的指向。
+ - **留 `packages/docs`**:它是引擎的配置 / 接口 / 快速开始文档(双语),不是宣传;留作内部参考,
+ 不发布、不改品牌 —— 品牌改写与要不要上线,等发布期一起定。
+ - **留 `packages/ui-gallery`**:改界面时的组件参照工具;依赖没装就不装。
+ - **留 `packages/hmr`**:`packages/server` 的 workspace 依赖,删了服务端起不来。
### 3. 把旧 Adelie 已经做过的东西接回来
@@ -50,16 +62,42 @@
- [ ] 4.1 npm scope:`@prismshadow/penguin-*` → Adelie 自己的 scope(旧包是 `@lmliheng/adelie`、
`adelie-core` / `adelie-server` / `adelie-web` / `adelie-desktop` 等)。**只和发布一起做** ——
- 内部改名 968 个文件、零功能收益,放到这里一次做完。
-- [ ] 4.2 GitHub Pages(PWA)、设计站、Windows 安装包三条流水线按新仓库结构重写。
-- [ ] 4.3 旧的四件已发布产物怎么处置(卡点 B)。
+ 内部改名 968 个文件、零功能收益,放到这里一次做完。`@prismshadow/agenthub` 是**外部**包
+ (见下),改名时不能碰。
+- [ ] 4.2 GitHub Pages(PWA)、设计站、Windows 安装包三条流水线按新仓库结构重写
+ (上游那条 Pages 流水线已随 `landing` 删掉)。
+- [ ] 4.3 **旧的四件产物要更新**(用户 2026-10-05 定:按新基座重发新版,不是下架)。
-## 卡点(要用户拍板才动的)
+## 本机部署(2026-10-05)
-- **A. 上游四个包的去留**:`landing`(宣传页,393 处品牌字)、`docs`(文档站,223 处)、
- `ui-gallery`(组件画廊)、`hmr`(热更新宿主)—— 留哪些、删哪些。
-- **B. 旧的四件产物**:已上线的 PWA、六个 npm 包、Windows 安装包,要不要下架 / 重发。
-- **C. 仓库落点**:新基座仍发在 `lmliheng/Adelie`(`main` 是旧 Adelie)还是另开仓库。
+| | |
+| --- | --- |
+| 单元 | `adelie-app.service`(`/etc/systemd/system/`)—— 新基座的 Web 服务端 |
+| 端口 | **3004**(`HOST=0.0.0.0`,ufw 与 `/root/egress-whitelist/config.json` 都已登记) |
+| 数据根 | `/root/adelie-data`(工作区 `/root/adelie-data/workspace`) |
+| 代码 | `/root/adelie-fork` 的 `packages/server/dist/index.js` + `packages/web/dist` |
+| 首次登录 | 启动输出里的 claim 链接(同内容也写在 `/root/adelie-data/首次登录链接.txt`,0600);打开它认领内置管理员 `admin` 并设密码。忘了密码:停服务后 `penguin server reset-admin-password` |
+| 旧地址 | 上游设计规格页已从 3004 让到 **3003**(`adelie-design.service`,同步改了单元与端口表);旧 Adelie Web 仍在 4000(`adelie-web.service`) |
+
+要跑真任务还得在这个新实例里配模型 key(数据根独立,读不到旧实例的 `.project_config.toml`)。
+
+## 两个运行时事实(改名时别踩)
+
+- **`@prismshadow/agenthub` 是外部 npm 包**(0.4.15,Apache-2.0,「AgentHub — the LLM API Hub for
+ the Agent era」):`packages/core` 与 `packages/cli` 的依赖,提供 `AutoLLMClient`,把
+ OpenAI / Anthropic / Gemini / Bedrock 各家的 SDK 抹平成一个接口。不是我们的代码,
+ scope 改名时必须排除(另有 `@prismshadow/example-*`、`penguin-plugin-sandbox-*` 要按归属分别判断)。
+- **上游自有网关是代码里的默认端点**:`https://token.penguin.ooo/api`(`PENGUIN_GO_BASE_URL`)、
+ `https://go.penguin.ooo/modelscope`、`https://penguin.ooo/`。这些是**他们的服务**,
+ 哪天关掉就会影响 Adelie —— 发布前要么确认继续可用,要么改成自己的(用户本来就走
+ deepseek / kimi / qwen 直连 key 的路线)。
+
+## 已拍板(2026-10-05,用户)
+
+- **A. 上游四个包**:见 2.5 —— 用户「看你」,按上面办(删 `landing`,留 `docs` / `ui-gallery` / `hmr`)。
+- **B. 旧的四件产物**:**更新**(按新基座重发新版),不下架。
+- **C. 仓库落点**:仍是 `lmliheng/Adelie`。`main` 现在是旧 Adelie,新基座长在 `fork/penguin-base`;
+ 何时把新基座变成默认分支、旧 `main` 怎么留档,等发布期一起定。
## 已完成的轮次
@@ -70,3 +108,5 @@
| 2026-10-04 | 1 | 本机装、构建、起服务、真浏览器看一眼 | 安装 3.2s 全 hard-link;`pnpm -r build` 全绿(web 2.58MB JS / 787KB gzip);`PORT=7391` 起来后 Playwright 截图 `fork-look/01-app.png`,console 无 error | 无(环境动作) |
| 2026-10-05 | 1 | 复跑基座测试 | ui 999 / core 1346+5skip / server 2552+2skip / cli 509 / web 2886+2skip,合计 **8292 passed / 9 skipped / 0 failed**,`EXIT=0` | 无(环境动作) |
| 2026-10-05 | 2.1a | 界面品牌名换成 Adelie(appName ×2 + `index.html` 标题 + 4 个端到端断言) | web typecheck 过;`pnpm --filter …web test` 236 文件 / 2886 通过;重建 dist 后在 7391 起服务,Playwright:标签页 `Chat · Adelie`、顶栏可见 `Adelie`、console 无 error | 见本行提交 |
+| 2026-10-05 | 2.5 | 删掉上游官网 `packages/landing`(163 文件)与只为它存在的 `scripts/build-site.mjs`、`.github/workflows/pages.yml`,并清理 README / CI / 安装测试 / 端口表 / 忽略文件里的引用 | `pnpm lint` 0 警告;六个包 typecheck 过;`pnpm install --lockfile-only` 刷新锁文件(-93 行);`sh scripts/test-installer.sh` 通过;core 1346 / ui 999 / cli 509 / web 2886 全绿;server 先因 `dist/install.sh` 副本过期报 2 条失败,重建 server 后 **179 文件 / 2552 通过 / 2 跳过**;`pnpm format:check` 干净 | 见本行提交 |
+| 2026-10-05 | 部署 | 新 Adelie 起在 **3004**(`adelie-app.service`,数据根 `/root/adelie-data`);上游设计规格页让到 3003 | `curl` 127.0.0.1 与外网地址都 200;Playwright 打开 3004 是 `Sign in · Adelie`、唯一 4xx 是登录前的 `/api/me` 401(预期);`ss` 确认 3004 绑 0.0.0.0;ufw 与运维面板端口表已登记 3003/3004 | 无(环境动作) |
diff --git a/FORK.md b/FORK.md
index 875f159a..1969a839 100644
--- a/FORK.md
+++ b/FORK.md
@@ -36,7 +36,8 @@ git merge upstream/develop # 在 fork/penguin-base 上
1. **跑起来**:本机安装、构建、测试、起服务、真浏览器看一眼。先证明基座在这台机器上是活的。
2. **自有化**:包名 `@prismshadow/*` → Adelie 自己的 scope;数据根 `~/.penguin` → `~/.adelie`;
- 端口、图标、文案、README;上游的 `landing` / `docs` / `ui-gallery` / `hmr` 四个包逐个人拍板去留。
+ 端口、图标、文案、README;上游的 `landing`(已删)/ `docs`(留作内部参考)/ `ui-gallery`
+ (留)/ `hmr`(`packages/server` 的依赖,必留)。
3. **接回 Adelie 已经做过的东西**,或判定上游已经覆盖、直接删:审批口径三档、模型目录
(deepseek / kimi / qwen)、用量与成本页、用户与两档角色、会话归属、桌面壳。
4. **发布链路**:npm scope、GitHub Pages(PWA)、设计站、Windows 安装包。
@@ -47,8 +48,9 @@ git merge upstream/develop # 在 fork/penguin-base 上
`main` 分支上是**旧的 Adelie**(自己写的引擎 + 外壳:`adelie-core/providers/tools/runtime`、
`@lmliheng/adelie` CLI、Electron 桌面壳、Web/PWA、六个 npm 包、设计站与发布流水线)。
-它没有被删:`main` 就是它的落点,四件已发布的产物也都还在线上。要不要下架或重发,等新基座
-能跑起来之后由人拍板。
+它没有被删:`main` 就是它的落点。用户 2026-10-05 定了两件事:**落点仍是 `lmliheng/Adelie`**
+(何时把新基座变成默认分支、旧 `main` 怎么留档,等发布期一起定),旧的四件产物**要按新基座更新**
+(重发新版,不是下架)。
> 工作方式:动这份基座用 `git worktree`(`/root/adelie-fork`),**不要**在 `/root/Adelie`
> 的工作区里切分支 —— `adelie-web.service` 直接读 `/root/Adelie/packages/{server/dist,web/dist}`,
diff --git a/README.md b/README.md
index d83ebb05..8b3f017b 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<p align="center">
- <img src="packages/landing/public/penguin-logo.svg" alt="PenguinHarness logo" width="88" />
+ <img src="packages/web/public/penguin-logo.svg" alt="PenguinHarness logo" width="88" />
</p>
<h1 align="center">PenguinHarness</h1>
diff --git a/README.zh.md b/README.zh.md
index 09a28253..c05bb0ae 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -1,5 +1,5 @@
<p align="center">
- <img src="packages/landing/public/penguin-logo.svg" alt="PenguinHarness logo" width="88" />
+ <img src="packages/web/public/penguin-logo.svg" alt="PenguinHarness logo" width="88" />
</p>
<h1 align="center">PenguinHarness</h1>
diff --git a/install.ps1 b/install.ps1
index 139d3628..ef64bd0f 100644
--- a/install.ps1
+++ b/install.ps1
@@ -47,8 +47,7 @@ $OssReleaseRoot = "$OssOrigin/releases"
$GitHubReleaseRoot = "$Repo/releases/download"
$GitHubLatestBase = "$Repo/releases/latest/download"
$Asset = "penguin-win32-x64.zip"
-# Auto-mode source selection, one rule shared by install.ps1, install.sh and the download page on
-# penguin.ooo (packages/landing/src/lib/download-source.ts):
+# Auto-mode source selection, one rule shared by install.ps1 and install.sh:
#
# 1. Measure GitHub on the release's large probe file. At or above
# $SpeedProbeGitHubMinBytesPerSecond it wins outright and OSS is never touched.
@@ -76,9 +75,9 @@ $PayloadName = "payload.zip"
$EmbeddedReleaseVersion = "__PENGUIN_RELEASE_VERSION__"
function Fail([string]$Message) {
- # `throw` rather than `exit`: the penguin.ooo forwarder runs this installer as an in-memory
- # script block (see packages/landing/public/install.ps1), where `exit` would terminate the
- # user's whole PowerShell session. `throw` aborts cleanly in both file and script-block runs.
+ # `throw` rather than `exit`: a caller that runs this installer as an in-memory script block
+ # (rather than as a file) would otherwise have `exit` terminate its whole PowerShell session.
+ # `throw` aborts cleanly in both file and script-block runs.
throw "error: $Message"
}
diff --git a/install.sh b/install.sh
index 862fd1a5..d45d383e 100644
--- a/install.sh
+++ b/install.sh
@@ -46,8 +46,7 @@ SOURCE_MODE="${PENGUIN_DOWNLOAD_SOURCE:-auto}"
DOWNLOAD_BASE_URL="${PENGUIN_DOWNLOAD_BASE_URL:-}"
DOWNLOAD_FALLBACK_BASE_URL="${PENGUIN_DOWNLOAD_FALLBACK_BASE_URL:-}"
DOWNLOAD_SPEED_PROBE="${PENGUIN_DOWNLOAD_SPEED_PROBE:-1}"
-# Auto-mode source selection, one rule shared by install.sh, install.ps1 and the download page on
-# penguin.ooo (packages/landing/src/lib/download-source.ts):
+# Auto-mode source selection, one rule shared by install.sh and install.ps1:
#
# 1. Measure GitHub on the release's large probe file. At or above
# SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND it wins outright and OSS is never touched.
diff --git a/package.json b/package.json
index f10bd6fb..2869c43c 100644
--- a/package.json
+++ b/package.json
@@ -23,9 +23,7 @@
"dev:server": "pnpm --filter @prismshadow/penguin-server dev",
"dev:web": "node scripts/dev-prebuild.mjs && pnpm --filter @prismshadow/penguin-web dev",
"dev:docs": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @prismshadow/penguin-docs dev",
- "dev:landing": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @prismshadow/penguin-landing dev",
"dev:gallery": "node scripts/dev-prebuild.mjs --install-only && pnpm --filter @prismshadow/penguin-ui-gallery dev",
- "build:site": "node scripts/build-site.mjs",
"desktop": "pnpm -r build && node scripts/run-with-env.mjs PENGUIN_HOME=~/.penguin/dev-data -- pnpm --dir packages/desktop start"
},
"devDependencies": {
diff --git a/packages/core/src/internal/ports.ts b/packages/core/src/internal/ports.ts
index 1602be3b..a826825d 100644
--- a/packages/core/src/internal/ports.ts
+++ b/packages/core/src/internal/ports.ts
@@ -15,7 +15,6 @@
* | ---- | ---------------------------------- | -------------------------- | ------------------------------------ |
* | 7364 | installed server / Web UI | `~/.penguin/data` | `DEFAULT_SERVER_PORT` below |
* | 7365 | `pnpm dev:web` (Vite) | none (proxies to 7368) | `packages/web/vite.config.ts` |
- * | 7366 | `pnpm dev:landing` (Vite) | none (static) | `packages/landing/vite.config.ts` |
* | 7367 | `pnpm dev:docs` (Vite) | none (static) | `packages/docs/vite.config.ts` |
* | 7368 | `pnpm dev:server` (dev backend) | `~/.penguin/dev-data` | `packages/server/package.json` `dev` |
* | 7369 | `pnpm penguin web` (dev CLI) | `~/.penguin/dev-data-cli` | the root and cli `penguin` scripts |
diff --git a/packages/landing/README.md b/packages/landing/README.md
deleted file mode 100644
index a780428b..00000000
--- a/packages/landing/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# @prismshadow/penguin-landing
-
-The PenguinHarness product landing page (React + Vite + Tailwind CSS 4): bilingual (zh/en), light/dark themes, the feature matrix and CONTRACT.md showcase, benchmark charts, Playwright-captured product screenshots, and a local-Markdown blog (product news / release notes).
-
-It deploys to GitHub Pages together with the [docs site](../docs) as one artifact: landing at the site root, docs under `/docs/` (assembled by `scripts/build-site.mjs` at the repo root; the nav, footer and CTA link into `/docs/`).
-
-## Development
-
-```bash
-pnpm --filter @prismshadow/penguin-landing dev # http://127.0.0.1:7366
-pnpm --filter @prismshadow/penguin-landing build # dist/ (with 404.html SPA fallback + .nojekyll)
-pnpm --filter @prismshadow/penguin-landing typecheck
-pnpm --filter @prismshadow/penguin-landing test
-
-BASE_PATH=/ pnpm build:site # repo root: assemble landing + docs
-pnpm --filter @prismshadow/penguin-landing preview # serve the assembled tree
-```
-
-`BASE_PATH` controls the asset base (GitHub Pages project pages need `/<repo>/`; local default `/`). The `Docs` links resolve only in the assembled build — in plain `dev` they point at a path this dev server doesn't serve.
-
-## Deployment
-
-`.github/workflows/pages.yml` builds landing + docs and deploys on pushes to main that touch either package (or on manual dispatch). First-time setup: repository Settings → Pages → Source = "GitHub Actions".
-
-## Blog
-
-Posts live in `content/blog/<slug>.<lang>.md` (`lang` is `zh` / `en`; the two language versions of a slug fall back to each other). Frontmatter:
-
-```markdown
----
-title: Post title
-date: 2026-07-17
-category: news | changelog
-excerpt: One-line summary for the list page
----
-```
-
-## Screenshots
-
-`pnpm --filter @prismshadow/penguin-landing shots` regenerates `src/assets/shots/`: the script ships a scripted mock LLM (speaking both Anthropic SSE and OpenAI chat-completions streams), boots the Web service on a temp data root, drives a real "build an Agent app" conversation (tools actually execute in the Workspace), then captures the chat page, its Trace panel (opened as a tab in the bottom dock) and the evaluation page per UI language (zh/en, separate users) and theme (light/dark) — 12 shots (`<page>-<lang>-<theme>.webp`, re-encoded to WebP in Chromium to keep sizes down). The landing page always shows the shot matching the visitor's language and theme. Prereqs: build skills/core/server/web first, and have Playwright Chromium installed.
-
-Part of [PenguinHarness](https://github.com/Prism-Shadow/penguin-harness) · Apache-2.0
diff --git a/packages/landing/content/blog/agent-company-mode.en.md b/packages/landing/content/blog/agent-company-mode.en.md
deleted file mode 100644
index de5df7ba..00000000
--- a/packages/landing/content/blog/agent-company-mode.en.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-title: "Company mode: reshaping how people and agents work together"
-date: 2026-09-16
-category: perspectives
-excerpt: "Products like Multica, Raft and Grok Bot moved agents out of the one-person workbench and into spaces shared with people. Company mode, in beta in PenguinHarness, goes a step further: agents work inside an organization with a mission, reporting lines, a calendar and budgets, and you sit on the board. Here is why that matters, and the two ways to use it."
----
-
-Most work with an AI agent still happens at a workbench: you open a conversation, give the agent a task, watch it work, and start again when it stops. The pattern was built for tasks that take minutes. It strains as soon as the work takes days, needs several kinds of expertise, or involves people other than you. This essay asks what should replace the workbench when the work outgrows it.
-
-Our answer is an organization rather than a bigger chat: agents with defined roles and reporting lines, a calendar that keeps work moving, budgets that bound spending, and people who set direction and make the decisions that matter. Company mode, released as a beta in PenguinHarness 0.2.13, is our attempt to build that.
-
-![From a single workbench, to a group chat, to a company](/blog-assets/agent-company-evolution-en.png)
-
-## From one workbench to a room full of agents
-
-The first generation of agent products put one person in front of one agent, with a session, a task and a transcript. Coding agents, research agents and general assistants all share that setup. It works when the task fits in one sitting and one person is in the loop.
-
-A newer group of products brings several agents and people into one shared space. [Multica](https://multica.ai/) is an open-source platform that treats coding agents as teammates: you assign an issue to an agent the way you would to a colleague, and the agent updates its status and raises blockers on its own. [Raft](https://raft.build/) is a multi-agent collaboration platform where people and agents share channels, threads and tasks; agents hand work to each other and review each other's output, while people set the direction and make the final calls. [Grok Bot](https://x.ai/news/introducing-grok-bot) from xAI gives you a team of always-on agents that coordinate in a group chat, pass work and assign ownership among themselves, and pull you in only for judgment calls.
-
-These products show that agents can share context with each other and with people, divide work among themselves, and involve a person only when a decision needs one. Company mode builds on the same idea and makes the rest of an organization explicit: a written reporting tree, a calendar that wakes each agent on schedule, budgets that pause scheduled work, a handbook that outlives any single conversation, and a board that holds final authority, all stored as files you can read.
-
-## What an organization adds
-
-Human organizations solved the problem of long-running, multi-person work long before software existed. They rely on a small set of structures, and each one has a counterpart in company mode:
-
-| Structure | What it does in a human company | What it does in company mode |
-| --- | --- | --- |
-| Mission | Says why the company exists. | The one sentence the CEO agent starts from. |
-| Reporting tree | Defines who is responsible for what and who reviews whose work. | An org chart of agents, each with a title, duties and a manager. |
-| Calendar | Keeps recurring work happening without someone asking. | Scheduled events that wake each employee at its desk. |
-| Tickets | Track work, its owner and its state. | A board with five columns: proposed, in progress, review, done, rejected. |
-| Channels | Carry discussion without interrupting everyone. | Group chats where an `@` mention is what wakes an employee. |
-| Budget | Caps what each part of the company can spend. | Monthly spending limits per employee, rolled up the reporting tree. |
-| Handbook | Keeps decisions and knowledge after the people who made them move on. | A shared set of documents every employee reads and updates. |
-| Board | Holds final authority over direction and major decisions. | You. |
-
-Two design choices make this more than a metaphor:
-
-1. **Every piece of the organization is a file** in the Project. The configuration, the org chart, calendar events, tickets, channel logs and the handbook live under `organizations/<org_id>/`. The files are the source of truth; the database keeps only caches rebuilt from them and run-time state such as read positions. You can read, version and back up the whole company.
-2. **Every desk or ticket conversation is an ordinary PenguinHarness conversation**, with the same message list, tool calls and Traces as any other. Nothing an agent does is hidden behind a new interface.
-
-## The one-person company
-
-The first way to use company mode is the one-person company: one person and any number of agents run an organization that pursues a goal over days or weeks.
-
-![A one-person company: you act as the board, the CEO proposes, the organization works on its calendar](/blog-assets/agent-company-one-person-en.png)
-
-You create an organization with one sentence, its mission, and a monthly budget for the CEO. PenguinHarness creates only the CEO. The CEO's first run reads the mission and posts a proposal in the all-hands channel: how it reads the mission, the first tickets, which roles to hire with which budgets, and how to split the work. Then it stops and waits for you. The proposal names no models: every employee runs on the organization's model, or on the Project's default model when the organization names none, unless you ask for particular ones.
-
-From then on, you mostly talk to the CEO. Once you approve the plan and the hires, the organization works on its own schedule:
-
-- **The calendar keeps work moving.** A scheduler checks every organization every 30 seconds. Each employee wakes for its calendar events, for an `@` mention, or when you talk to it directly, so work continues across days without you starting each run.
-- **Tickets carry the state.** A ticket records its goal, acceptance criteria, progress and result. When a ticket changes, its owner picks up the change at its next scheduled round instead of being interrupted.
-- **Decisions come back to you.** The company's Skills and handbook tell the CEO and employees to bring important decisions to the board: the plan, hiring, budget changes, closing high-priority work without review, and anything that acts outside the organization, such as publishing or spending money. The same gate stands before heavy or irreversible work — long compute, writing outside the shared workspace, deleting what the employee did not create, or a process meant to outlive the run. The employee asks in the all-hands channel with what it wants to run and how to stop it, blocks its ticket on you, and ends its run until you answer.
-- **Budgets bound the cost.** An employee's monthly budget, in US dollars, includes what its subordinates spend, so the CEO's budget covers the whole company. At 80% of a budget, the organization posts a warning in the all-hands channel; at 100%, the calendars of that employee and its team pause.
-
-![The org chart of a one-person company: a CEO, three direct reports and a copy editor, each with a monthly budget](/blog-assets/agent-company-org-chart-en.png)
-
-This changes the person's role. Instead of operating an agent task by task, you set the direction, review proposals, and step in when something needs judgment.
-
-## The mirror company
-
-The second way to use company mode is aimed at a company that already exists. In a mirror company, every real employee gets a digital twin: an agent that sits in the same place in the org chart as the person it represents, and that the person talks to through their own chat app.
-
-![A mirror company: each employee talks to a digital twin, and twins find the right colleague for them](/blog-assets/agent-company-mirror-en.png)
-
-Setting one up starts with the **Digital-twin company** example. The CEO asks you for the real org chart: names, titles, reporting lines, and which chat bot each person will use. After you confirm the roster, it hires one twin per person, mirrors the reporting lines, and writes a brief and a handbook page for each twin. Then you, as the board, bind each twin's desk conversation to that person's bot in the same Remote control dialog as any other conversation; binding needs the Project owner's role, and for a WeChat bot the colleague scans the QR code with their own phone. Use Feishu, Telegram or WeChat for twins: a QQ bot can only reply to a message its person has just sent, so a QQ twin could answer questions but never ask its person one.
-
-Day to day, an employee no longer needs to work out whom to ask, or to open a group chat and wait. A question moves through the organization like this:
-
-1. The employee sends a question to their twin in their chat app.
-2. The twin answers from the handbook when it can.
-3. When it cannot, it mentions the twin of the colleague who owns the topic in the all-hands channel.
-4. That twin asks its own person through their bot, and relays the answer back.
-5. The answer returns to the employee who asked, and the twins record it in the handbook so the next person gets it without asking.
-
-In effect, the knowledge of who knows what moves out of people's memory into a shared, written structure, which improves every time a question gets answered.
-
-## What company mode does not do yet
-
-Company mode is a beta and stays off until an administrator turns it on. Several of its current limits should shape how much you rely on it:
-
-- **Approvals are guidance, not enforcement.** The rule that important decisions go to the board is written into the Skills and the handbook. The server does not stop an agent from hiring, changing a budget or moving a ticket on its own. Tool approvals never reach you either: an organization's sessions run unattended, so they never wait for a person. A tool call that the organization's approval mode would put to someone is denied the moment it is made — nothing appears in the Web App to approve, and no run is left hanging. Under the default **Allow all**, every call runs; under **Read only**, reads run and everything else is refused, and the employee treats a refusal as the cue to ask the board in the all-hands channel rather than to retry it. An organization meant to run unattended should keep the default mode.
-- **Budget pauses are soft.** Reaching a budget pauses calendars only. Mentions and direct conversations still go through, a run already under way is not stopped, and spending can overshoot between checks. An employee without a budget of its own is limited only by its managers' budgets.
-- **Mirror companies are early.** Twins are created from the org chart you describe, not imported from an HR system, and every bot is bound by hand. A bot can reply only after its person has written to it first, and a binding has no allowlist of senders, so each twin's bot must stay private. Relays between twins happen in the all-hands channel, where every member can read them, and a chain of mentions stops after three hops by default.
-- **Work happens only while the server runs.** Calendar events that come due while PenguinHarness is stopped are not run later.
-
-## How to try it
-
-Company mode is available in PenguinHarness 0.2.13 and later.
-
-1. As an administrator, open **System settings**. In the **Server** group, open **Company mode** and turn on **Enable company mode**.
-2. In the sidebar, switch from **Development** to **Company**.
-3. Select **New organization**. Enter a **Display name**, then write a mission or pick one of the examples, such as **Digital-twin company**, and set the **CEO budget**.
-4. Fill in **Organization id**, or select **Generate with AI** to derive one from the display name, then select **Create**.
-
-![The New organization dialog, filled in from the Digital-twin company example](/blog-assets/agent-company-new-organization-en.png)
-
-To learn how each part works, see the [company mode documentation](https://penguin.ooo/docs/company-mode). Company mode is a beta, so please tell us what you run into.
-
-## What changes for people
-
-The move from a workbench to a shared space made agents collaborators. The move to an organization gives each agent a defined responsibility, a manager, a budget and a written record, and lets the person in charge govern the system instead of operating it step by step.
-
-We do not think the organization is the final shape either. Open questions remain: how much authority to give agents, how to evaluate a whole organization rather than a single agent, and how a company that improves itself should work. PenguinHarness can already improve single agents with Benchmarks, and extending that to whole companies is a direction we want to explore. But for long-running, shared work, the structures people have already developed are a better starting point than an ever-longer chat.
diff --git a/packages/landing/content/blog/agent-company-mode.zh.md b/packages/landing/content/blog/agent-company-mode.zh.md
deleted file mode 100644
index 4ac8d55e..00000000
--- a/packages/landing/content/blog/agent-company-mode.zh.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-title: "公司模式:重塑人与 Agent 的协作方式"
-date: 2026-09-16
-category: perspectives
-excerpt: "Multica、Raft、Grok Bot 这类产品把 Agent 从一个人的工作台,带进了人与 Agent 共享的空间。PenguinHarness 内测中的公司模式又往前走了一步:Agent 在一个有使命、有汇报关系、有日历、有预算的组织里工作,而你坐在董事会的位置上。本文说明这件事为什么重要,并介绍两种用法。"
----
-
-如今和 AI Agent 一起工作,大多仍是在工作台上完成的:你打开一个对话,交给 Agent 一项任务,看它干活,它停下来了再开始下一轮。这套模式是为几分钟就能做完的任务设计的。一旦工作要持续好几天、需要多种专长,或者要牵涉你以外的人,它就开始吃力。本文想讨论的是:当工作超出了工作台能承担的范围,该用什么来取代它。
-
-我们的答案是组织,而不是一个更大的聊天窗口:Agent 有明确的角色和汇报关系,日历让工作持续推进,预算约束开销,人负责定方向、做真正要紧的决定。公司模式在 PenguinHarness 0.2.13 中以内测形式发布,就是我们朝这个方向做的一次尝试。
-
-![从单个工作台,到群聊,再到公司](/blog-assets/agent-company-evolution-zh.png)
-
-## 从一个工作台,到一屋子 Agent
-
-第一代 Agent 产品的形态,是一个人面对一个 Agent:一个会话、一项任务、一份对话记录。编程 Agent、研究 Agent 和通用助手都是这种形态。任务一次就能做完、全程只有一个人参与时,这样就够用。
-
-较新的一批产品,把多个 Agent 和多个人放进了同一个空间。[Multica](https://multica.ai/) 是一个开源平台,把编程 Agent 当作队友:你像给同事派活一样,把 issue 指派给 Agent,Agent 会自己更新状态、主动报告卡住的地方。[Raft](https://raft.build/) 是一个多 Agent 协作平台,人和 Agent 共用频道、话题串和任务;Agent 之间互相交接工作、审查彼此的产出,人负责定方向、做最终决定。xAI 的 [Grok Bot](https://x.ai/news/introducing-grok-bot) 给你一组常驻的 Agent:它们在群聊里协调,彼此传递工作、自行分派负责人,只在需要人来判断时才叫上你。
-
-这些产品说明,Agent 之间、Agent 与人之间可以共享上下文,Agent 可以自己分工,只在决策需要人时才让人参与。公司模式沿着同样的思路,把组织的其余部分也明确下来:成文的汇报关系,按计划唤醒每个 Agent 的日历,用到上限就暂停日程的预算,比任何一次对话都长久的手册,还有握有最终决定权的董事会。这些全部以文件形式保存,你随时可以打开来读。
-
-## 组织带来了什么
-
-早在软件出现之前,人类组织就已经解决了长期、多人协作的难题。它们靠的是为数不多的几种结构,而每一种在公司模式里都有对应:
-
-| 结构 | 在人类公司里的作用 | 在公司模式里的作用 |
-| --- | --- | --- |
-| 使命 | 说明公司为什么存在。 | CEO Agent 出发时依据的那一句话。 |
-| 汇报树 | 界定谁对什么负责、谁审核谁的工作。 | 一张由 Agent 组成的组织图,每个 Agent 都有职位、职责和一位上级。 |
-| 日历 | 让周期性的工作不用人催也照常进行。 | 定时事件,到点唤醒工位上的每个员工。 |
-| 工单 | 跟踪工作、负责人和状态。 | 一块工单看板,分五列:提议、进行中、审核中、已完成、已拒绝。 |
-| 频道 | 让讨论有地方进行,又不打扰所有人。 | 群聊,被 `@` 提及的员工才会被唤醒。 |
-| 预算 | 限定公司各部门能花多少钱。 | 为每个员工设定的月度开销上限,沿汇报树逐级汇总。 |
-| 手册 | 做决定的人离开后,决定和知识仍然留得下来。 | 一组共享文档,每个员工都会阅读和更新。 |
-| 董事会 | 对方向和重大决策握有最终决定权。 | 你。 |
-
-有两个设计选择,让这套对应不只是比喻:
-
-1. **组织的每一部分都是 Project 里的文件**。配置、组织图、日历事件、工单、频道记录和手册,都保存在 `organizations/<org_id>/` 下。文件才是权威来源;数据库只保存由文件重建的缓存,以及读取位置这类运行时状态。整家公司都可以读取、做版本管理和备份。
-2. **每个工位对话、每个工单对话都是普通的 PenguinHarness 对话**,消息列表、工具调用和 Trace 与其他对话完全一样。Agent 做的任何事,都不会藏在某个新界面后面。
-
-## 一人公司
-
-公司模式的第一种用法是一人公司:一个人带着任意数量的 Agent,一起经营一个组织,花几天到几周去实现一个目标。
-
-![一人公司:你担任董事会,CEO 提出提案,组织按自己的日历运转](/blog-assets/agent-company-one-person-zh.png)
-
-创建组织只需要一句话,也就是它的使命,再加上给 CEO 的月度预算。PenguinHarness 只创建 CEO。CEO 第一次运行时会读取使命,然后在全员频道发一份提案:它怎么理解使命、第一批工单是什么、要招哪些岗位、各配多少预算、工作怎么分工。发完提案,它就停下来等你。提案里不写模型:除非你指定,每位员工都用组织的模型;组织没有指定模型时,则用 Project 的默认模型。
-
-从这以后,你主要和 CEO 打交道。你批准方案和招聘之后,组织就按自己的日程运转起来:
-
-- **日历让工作持续推进**。调度器每 30 秒检查一次所有组织。员工会在三种时候醒来:日历事件到点、被 `@` 提及、你直接找它说话。所以工作能跨天推进,不需要你一次次手动启动。
-- **工单承载状态**。每张工单记录目标、验收标准、进展和结果。工单有变化时,负责人不会被打断,而是在下一次按日程醒来时再处理。
-- **决策回到你手里**。公司的 Skill 和手册要求 CEO 和员工把重要决策提交给董事会:方案本身、招聘、预算调整、不经审核就关闭高优先级的工作,以及一切超出组织范围的行动,比如对外发布、花钱。繁重或不可逆的工作同样要过这道关卡——长时间计算、写到公共工作区之外、删除不是自己创建的东西、启动一个比本轮运行活得更久的进程。员工会在全员频道说明要跑什么、怎么停下来,把工单阻塞在你身上,然后结束本轮,等你答复。
-- **预算约束成本**。员工的月度预算以美元计,下属的开销也算在内,所以 CEO 的预算覆盖整家公司。预算用到 80% 时,组织会在全员频道发出警告;用到 100% 时,这名员工和其下属的日历都会暂停。
-
-![一人公司的组织图:一位 CEO、三位直接下属和一位校对编辑,每人都有月度预算](/blog-assets/agent-company-org-chart-zh.png)
-
-这样一来,人的角色变了:不再一个任务一个任务地操作 Agent,而是定方向、审提案,遇到需要判断的事再介入。
-
-## 镜像公司
-
-公司模式的第二种用法,面向已经存在的公司。在镜像公司里,每位真实员工都有一个数字分身:一个 Agent,在组织图上的位置和它代表的人相同,本人通过自己的聊天应用和它对话。
-
-![镜像公司:每位员工和自己的数字分身对话,分身替他们找到合适的同事](/blog-assets/agent-company-mirror-zh.png)
-
-搭建镜像公司,从**员工数字分身公司**示例开始。CEO 会向你要真实的组织图:姓名、职位、汇报关系,以及每个人准备用哪个聊天机器人。你确认名单后,它为每个人招一个分身,照搬汇报关系,并为每个分身写一份简介和一页手册。接下来,你以董事会的身份,用和其他对话一样的**远程控制**对话框,把每个分身的工位对话绑定到对应本人的机器人上;绑定需要 Project 所有者的权限,如果是微信机器人,还要由这位同事用自己的手机扫码。分身建议用飞书、Telegram 或微信:QQ 机器人只能回复本人刚发来的消息,所以 QQ 分身能回答问题,却没法主动去问本人。
-
-日常使用中,员工不必再琢磨该问谁,也不必打开群聊干等。一个问题会这样在组织里流转:
-
-1. 员工在自己的聊天应用里向分身提问。
-2. 分身能答的,就根据手册直接回答。
-3. 答不了的,分身在全员频道里 `@` 负责这个话题的同事的分身。
-4. 那个分身通过本人的机器人去问本人,再把答案转回来。
-5. 答案回到提问的员工手里;两个分身把它记进手册,下一个人不用问就能查到。
-
-实际上,「谁知道什么」这类知识,从每个人的记忆里搬进了一个共享的书面结构;每解答一个问题,这个结构就完善一分。
-
-## 公司模式还做不到什么
-
-公司模式目前还在内测,管理员开启之前一直是关闭的。下面几项限制,决定了眼下能在多大程度上依赖它:
-
-- **审批只是约定,并不强制**。重要决策要交给董事会,这条规则写在 Skill 和手册里,但服务器不会阻止 Agent 自行招人、调整预算或移动工单。工具审批也不会送到你面前:组织的会话无人值守,因此从不等人——审批模式本该交给人拍板的工具调用,在发起的那一刻就被拒绝,Web App 里不会出现待审批的条目,也不会有运行挂在那里。默认的**全部放行**下,所有调用照常执行;改成**只读**后,读取照常,其余一律被拒,而员工会把这次拒绝当作请示董事会的信号,在全员频道里发问,而不是换个写法重试。想让组织无人值守地跑下去,就该保持默认的审批模式。
-- **预算暂停是软性的**。预算用完只会暂停日历。`@` 提及和直接对话照常送达,已经在跑的运行不会被中止,两次检查之间的开销也可能超出预算。没有设自己预算的员工,只受上级预算的限制。
-- **镜像公司还处在早期阶段**。分身根据你描述的组织图创建,而不是从 HR 系统导入,每个机器人都要手动绑定。本人先给机器人发过消息,机器人才能回复;绑定也没有发送者白名单,所以每个分身的机器人都不要公开。分身之间的转达在全员频道里进行,所有成员都看得到;默认情况下,`@` 提及链最多传递三跳。
-- **工作只在服务器运行时进行**。PenguinHarness 停止期间到期的日历事件,之后不会补跑。
-
-## 如何试用
-
-PenguinHarness 0.2.13 及之后的版本提供公司模式。
-
-1. 以管理员身份打开**系统设置**,在**服务器**分组下进入**公司模式**页,再打开**启用公司模式**开关。
-2. 在侧栏里,从**开发**切换到**公司**。
-3. 选择**新建组织**,填写**显示名**;再写一句使命,或者从示例里选一个(比如**员工数字分身公司**),并设置 **CEO 预算**。
-4. 填写**组织 id**,或者点**用 AI 生成**,根据显示名生成一个,然后点**创建**。
-
-![新建组织对话框,按员工数字分身公司示例填写](/blog-assets/agent-company-new-organization-zh.png)
-
-想了解各部分的工作方式,请查阅[公司模式文档](https://penguin.ooo/docs/company-mode)。公司模式还在内测,遇到问题请告诉我们。
-
-## 对人来说,什么变了
-
-从工作台到共享空间,Agent 成了协作者。从群聊到组织,每个 Agent 有了明确的职责、一位上级、一份预算和一份书面记录,负责的人也得以治理这个系统,而不是一步一步地操作它。
-
-我们也不认为组织就是最终形态。还有一些问题没有答案:该给 Agent 多大的权限,如何评估整个组织而不只是单个 Agent,一家能自我进化的公司又该怎么运转。PenguinHarness 已经能用 Benchmark 优化单个 Agent,把这件事延伸到整家公司,是我们想探索的方向。但对于长期、多人协作的工作来说,人类早已摸索出的那套组织结构,是比一条越拉越长的聊天记录更好的起点。
diff --git a/packages/landing/content/blog/ai-infrastructure-past-present-future.en.md b/packages/landing/content/blog/ai-infrastructure-past-present-future.en.md
deleted file mode 100644
index bfcf6bbe..00000000
--- a/packages/landing/content/blog/ai-infrastructure-past-present-future.en.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: "AI Infrastructure: Past, Present, and Future"
-date: 2026-07-22
-category: perspectives
-excerpt: AI infrastructure was built for human operators, and agents increasingly drive it. The stack already suits agents; what they lack is an engineer's operating knowledge, which PenguinHarness ships as Skills.
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-The infrastructure we use to build AI was designed for people. PyTorch assumes someone reading a tutorial. vLLM assumes an engineer who knows how much VRAM the GPU has. LlamaFactory assumes a researcher who reads the training curve and decides whether training is going well. Ollama assumes you remember whether the service is already running.
-
-Every one of these assumptions is about a human operator, and the operator is increasingly an agent: a model that does its work by calling tools. This post asks what changes when a program drives the stack. Our answer is that the stack itself needs little change, because it is already text and commands that an agent can run through a shell.
-
-What agents lack is the operating knowledge a competent engineer carries. That knowledge can be written down, and PenguinHarness ships it today as Skills, together with runtime support for long jobs and readable failures. Three problems remain that nobody has solved yet.
-
-## Past: the stack assumes a human operator
-
-Three assumptions about the operator run through nearly all AI tooling, and all three quietly break when the operator is a program.
-
-### The operator keeps state in their head
-
-The first assumption is that the user remembers what is running. You know you started an Ollama server this morning. You know last night's training job still holds the GPU. No command prints either fact, because a human never needed it written down. An agent that sees only command output knows neither.
-
-### Errors start an investigation
-
-The second assumption is that an error message is where a person starts investigating. `CUDA out of memory` is a good message for a person: you read it, halve the batch size, and move on. It tells an agent almost nothing about what to do next. The ML stack is full of errors like it: shape mismatches thrown eight frames deep, NCCL timeouts, and a silent fallback to CPU whose only symptom is that everything runs forty times slower.
-
-Stripe measured what this costs when it benchmarked whether agents could build real integrations against its API. The failure mode it found generalizes well beyond Stripe: agents "would pass in nonexistent Stripe data, observe 400s, and consider the task complete." The error was correct. It still failed to communicate failure.
-
-### Documentation is read once
-
-The third assumption is that documentation is read once, by someone who will remember it. Tutorials are prose, written to be read front to back. The most important constraint, for example that the model has to fit in VRAM, sits in a sentence somewhere in the middle.
-
-## Present: the stack is already agent-shaped
-
-The stack needs no new interfaces for agents. It needs operating knowledge and a runtime built for AI work, which is shaped differently from web work.
-
-### The shell is the integration layer
-
-AI infrastructure is, by accident, better suited to agents than most software. It already consists of command-line tools, YAML configs, and Python files: text in, text out, and composable. A tool like `nvidia-smi` needs no wrapper, because an agent with a shell can already drive the entire stack.
-
-That is why PenguinHarness uses the shell as its universal interface. In 0.1.1, `exec_command` was the whole filesystem and process interface, and there were no separate file tools. Driving vLLM is not an integration; it is a command.
-
-### What is missing is operating knowledge
-
-What is missing is not connectivity. It is the operating knowledge a competent engineer has and a model does not. PenguinHarness ships that knowledge as **Skills**, instruction packages an agent reads on demand. Three of them, in the AI App Development group, cover this stack directly:
-
-| Skill | What it lets an agent do |
-| --- | --- |
-| `ollama` | Pull and serve local models, expose the OpenAI-compatible endpoint |
-| `vllm` | Serve on GPU for high throughput, with tool-calling flags enabled for agent workloads |
-| `llamafactory` | Fine-tune with LoRA/QLoRA, SFT or DPO through YAML configs |
-
-What these Skills contain matters more than the fact that they exist. They encode rules that a human operator never needed to be told:
-
-1. **Check the world before changing it.** The `ollama` Skill has the agent run `ollama --version` and `ollama ps` first. Then it states the rule plainly: if port 11434 is already serving, reuse that instance, and *never kill an existing Ollama process*. A human knows not to kill a colleague's server. An agent has to be told.
-2. **Check the real constraint first.** The `vllm` Skill confirms the hardware with `nvidia-smi` (or `rocm-smi` on AMD) before it serves anything, because VRAM limits both model size and context length. The sentence buried in the tutorial becomes step zero.
-3. **Verify instead of assuming.** Both serving Skills end with a real check before the job counts as done, such as `curl http://localhost:8000/v1/models` for vLLM. This is the direct answer to the Stripe failure mode: success is defined by an observation, not by the absence of a crash.
-4. **Finish the job.** PenguinHarness cannot see a served model until it is registered. The Skills therefore close the loop with `penguin config model add --client-type openai --base-url ...` and confirm the result with `penguin config model list`. Starting a server is not the task. Having a usable model is.
-5. **Ask instead of guessing.** All three Skills open the same way: if the request names the Skill but gives no concrete goal, the agent asks first and runs nothing. The choice of engine also follows the user's preference rather than a hardcoded default. vLLM is for high-throughput GPU serving, while Ollama is the simple default and the only one of the two that runs on macOS or CPU-only machines.
-
-### Long jobs are first-class
-
-Training and serving do not finish in thirty seconds, so the runtime treats long jobs as the normal case. `exec_command` waits in the foreground. Once a command outruns its wait window, it keeps running in the background and the tool returns a `process_id`. `input_command` then polls that process, writes to its stdin, or sends Ctrl-C. An agent can start a fine-tune, do something else, and come back to check on it, without a special training tool.
-
-### Failures come back as text
-
-Tools never throw exceptions into the agent loop. A non-zero exit, a timeout, or an out-of-memory (OOM) error becomes tool output that the model reads and reacts to. The exit code is appended outside the truncation window, so it survives even when a long log is cut. That detail matters more than it seems, because the line that says a run failed is usually the last one.
-
-## Future: three unsolved problems
-
-Three problems remain unsolved, by us or by anyone else.
-
-### ML-stack errors are still written for humans
-
-Nothing in an agent harness, the software that runs an agent's loop and its tools, can fix a traceback that does not say what to change. The fix has to happen upstream, in the frameworks. The guidance already exists: [Anthropic's advice on writing tools for agents](https://www.anthropic.com/engineering/writing-tools-for-agents) says good tool errors are specific and actionable, not opaque codes and tracebacks. Very little of the training stack meets that bar today.
-
-### GPUs are shared without a protocol
-
-An agent can read `nvidia-smi`, but there is no standard way to reserve VRAM, to queue behind another job, or to learn that the memory it just saw is about to be taken. Today the answer is a written rule: do not kill what you did not start. That is a convention, not a guarantee.
-
-### Reproducibility is unresolved
-
-A fine-tune is long, expensive, and stochastic. Agents make such runs cheap to launch, which makes it much easier to end up with a model nobody can reproduce. Snapshots and Traces help, but they are not a full answer.
-
-## Conclusion
-
-AI infrastructure did not need to be reinvented for agents, because it was already text and commands. What was missing is the operating knowledge around it: check before you change anything, check the real constraint first, verify with an observation, and finish the job instead of only starting it.
-
-PenguinHarness encodes that knowledge in Skills. Underneath them are a shell, a two-phase process model for long jobs, and errors that come back as readable text. The commands below install PenguinHarness and ask an agent to serve a local model and register it:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin run -m "Serve Qwen3.5-0.8B with Ollama and register it with Penguin"
-```
-
----
-
-- **Docs**: [Skills & Plugins](https://penguin.ooo/docs/skills) · [Tools & Approval](https://penguin.ooo/docs/tools) · [Models & Providers](https://penguin.ooo/docs/models)
-- **Community**: [GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**Sources**: [vLLM](https://docs.vllm.ai/) · [Ollama](https://ollama.com/) · [LlamaFactory](https://github.com/hiyouga/LlamaFactory) · [Stripe, Can AI agents build real Stripe integrations?](https://stripe.com/blog/can-ai-agents-build-real-stripe-integrations) · [Anthropic, Writing effective tools for AI agents](https://www.anthropic.com/engineering/writing-tools-for-agents)
diff --git a/packages/landing/content/blog/ai-infrastructure-past-present-future.zh.md b/packages/landing/content/blog/ai-infrastructure-past-present-future.zh.md
deleted file mode 100644
index ad59fc78..00000000
--- a/packages/landing/content/blog/ai-infrastructure-past-present-future.zh.md
+++ /dev/null
@@ -1,102 +0,0 @@
----
-title: "AI 基础设施:过去、现在与未来"
-date: 2026-07-22
-category: perspectives
-excerpt: AI 基础设施是为人类操作者打造的,如今驱动它的越来越多是 Agent。这套技术栈本身就适合 Agent,Agent 缺的是工程师的操作经验,PenguinHarness 把这些经验做成了 Skill。
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-我们用来构建 AI 的这套基础设施,是照着人来设计的。PyTorch 默认有人在读教程;vLLM 默认工程师清楚 GPU 有多少显存;LlamaFactory 默认研究者会看训练曲线,判断训练是否正常;Ollama 则默认你记得服务是不是已经在运行。
-
-这些默认针对的都是人类操作者,而现在,操作者越来越多地换成了 Agent,也就是靠调用工具干活的模型。本文要回答的问题是:驱动这套技术栈的一方换成程序之后,会发生什么变化。我们的回答是,技术栈本身几乎不用改,它本来就是文本和命令,Agent 通过 shell 就能跑起来。
-
-Agent 缺的是称职工程师身上的操作经验。这些经验可以写下来,PenguinHarness 现在就把它们做成了 Skill,运行时也支持长任务,失败会以可读文本返回。另外还有三个问题,目前谁都没有解决。
-
-## 过去:技术栈默认操作者是人
-
-几乎所有 AI 工具都默认了关于操作者的三件事。操作者一旦换成程序,这三条默认会悄无声息地全部失效。
-
-### 操作者把状态记在脑子里
-
-第一个默认是,用户记得有哪些东西在运行。你知道今天早上启动过一个 Ollama 服务,也知道昨晚的训练任务还占着 GPU。这两件事不会出现在任何命令的输出里,因为人从来不需要把它们写下来。只看得到命令输出的 Agent,两件事都无从知道。
-
-### 报错是排查的起点
-
-第二个默认是,报错是人开始排查的起点。`CUDA out of memory` 对人来说是条挺好的报错:看一眼,把 batch size 减半,接着干。可它几乎没告诉 Agent 下一步该做什么。ML 技术栈里满是这类报错:从八层调用栈深处抛出来的 shape 不匹配,NCCL 超时,还有悄悄回退到 CPU 运行,唯一的症状是一切都慢了四十倍。
-
-Stripe 评测 Agent 能不能基于自家 API 做出真实集成时,算过这笔账。他们发现的失败模式放到别处同样成立:Agent「会传入根本不存在的 Stripe 数据,收到 400,然后认为任务已经完成」。报错本身没有错,却没能把「失败」传达出去。
-
-### 文档只读一遍
-
-第三个默认是,文档只读一遍,而且读的人记得住。教程写成文章,要从头读到尾。最重要的约束,比如模型必须放得进显存,只是埋在中间某处的一句话。
-
-## 现在:技术栈天然适合 Agent
-
-这套技术栈不需要为 Agent 新增接口。它需要的是操作经验,以及一个贴合 AI 工作的运行时,因为 AI 的活和 Web 的活形态不同。
-
-### Shell 就是集成层
-
-AI 基础设施比大多数软件更适合 Agent,而且纯属无心插柳。它本来就是命令行工具、YAML 配置和 Python 文件:文本进,文本出,可以自由组合。`nvidia-smi` 这类工具用不着再包一层,一个拿着 shell 的 Agent 已经能驱动整个技术栈。
-
-所以 PenguinHarness 把 shell 当作通用接口:在 0.1.1 版本里,`exec_command` 就是全部的文件系统与进程接口,还没有单独的文件工具。驱动 vLLM 算不上一次集成,它就是一条命令。
-
-### 缺的是操作经验
-
-缺的不是连通性,而是称职工程师有、模型没有的操作经验。PenguinHarness 把这些经验做成 **Skill**,也就是 Agent 按需读取的指令包。其中三个归在「AI 应用开发」分组,直接覆盖这套技术栈:
-
-| Skill | Agent 能用它做什么 |
-| --- | --- |
-| `ollama` | 拉取并启动本地模型,对外暴露 OpenAI 兼容端点 |
-| `vllm` | 在 GPU 上做高吞吐服务,并为 Agent 负载打开工具调用参数 |
-| `llamafactory` | 用 YAML 配置做 LoRA/QLoRA、SFT 或 DPO 微调 |
-
-比起「有这几个 Skill」,更值得说的是它们里面写了什么。它们写下的规则,人类操作者从来不需要别人叮嘱:
-
-1. **动手之前,先看清现场。** `ollama` Skill 让 Agent 先运行 `ollama --version` 和 `ollama ps`,然后把规矩挑明:如果 11434 端口上已经有服务,就复用这个实例,绝不杀掉已经在运行的 Ollama 进程。人知道不该动同事的服务,Agent 却得有人明确告诉它。
-2. **先确认真正的约束。** `vllm` Skill 在启动服务之前,先用 `nvidia-smi`(AMD 上是 `rocm-smi`)确认硬件,因为模型大小和上下文长度都受显存限制。教程里埋在中间的那句话,在这里成了第 0 步。
-3. **要验证,别想当然。** 两个服务类 Skill 都以一次真实检查收尾,比如 vLLM 的 `curl http://localhost:8000/v1/models`,检查通过才算完成任务。这正是对 Stripe 那个失败模式的直接回应:「成功」由一次观测来定义,而不是「没崩溃就算成功」。
-4. **把活干完。** 模型启动后不注册,PenguinHarness 就看不见它。所以这些 Skill 会用 `penguin config model add --client-type openai --base-url ...` 把这一步闭环,再用 `penguin config model list` 确认结果。启动一个服务不算完成任务,拿到一个能用的模型才算。
-5. **拿不准就问,别猜。** 三个 Skill 的开头都一样:如果请求只点了 Skill 的名字、没给具体目标,Agent 会先问清楚,一条命令都不跑。选哪个引擎也听用户的,而不是写死一个默认值:vLLM 用于高吞吐的 GPU 服务,Ollama 是省事的默认选项,也是两者中唯一能在 macOS 或纯 CPU 机器上运行的。
-
-### 长任务是一等公民
-
-训练和服务不可能三十秒跑完,所以运行时把长任务当作常态。`exec_command` 先在前台等待;命令一旦超出等待窗口,就转到后台继续运行,工具返回一个 `process_id`。之后由 `input_command` 轮询这个进程、向它的 stdin 写入内容,或者发送 Ctrl-C。Agent 可以先把微调跑起来,转头去做别的事,过一阵再回来看进度,不需要专门的训练工具。
-
-### 失败以文本返回
-
-工具永远不会把异常抛进 Agent 循环。非零退出、超时、内存耗尽(OOM),最后都会变成工具输出,交给模型读取和应对。退出码追加在截断窗口之外,哪怕长日志截断了,退出码也还在。这个细节比听上去更要紧:表明运行失败的那一行,通常就是最后一行。
-
-## 未来:三个尚未解决的问题
-
-有三个问题至今没有解决,我们没有,别人也没有。
-
-### ML 技术栈的报错仍是写给人看的
-
-Agent Harness 是运行 Agent 循环和工具的软件。一条不说明该改什么的 traceback,任何 Agent Harness 都救不回来。这件事得在上游的框架里解决。指导原则其实早就有了:[Anthropic 关于为 Agent 编写工具的建议](https://www.anthropic.com/engineering/writing-tools-for-agents)指出,好的工具报错应当具体、可执行,而不是一串晦涩的错误码和 traceback。今天的训练技术栈里,达到这个标准的部分非常少。
-
-### GPU 是共享资源,却没有协议
-
-Agent 能读 `nvidia-smi`,但预留显存、排队等其他任务结束、提前知道刚看到的显存马上就有别的任务要用,这些都没有标准做法。今天的答案是一条写下来的规矩:不是你启动的进程,就别去杀。这是约定,不是保证。
-
-### 可复现性还没有着落
-
-一次微调耗时长、成本高,还带随机性。Agent 让发起这类运行变得很便宜,也就更容易攒出一个谁都复现不了的模型。快照和 Trace 能帮上忙,但算不上完整的答案。
-
-## 结语
-
-AI 基础设施不需要为 Agent 重新发明一遍,因为它本来就是文本和命令。缺的是围绕它的操作经验:动手之前先看现场,先确认真正的约束,用观测来验证,把活干完而不是只起个头。
-
-PenguinHarness 把这些经验写进了 Skill,底下垫着的是 shell、面向长任务的两阶段进程模型,以及以可读文本返回的错误。下面的命令先安装 PenguinHarness,再让 Agent 启动一个本地模型服务并完成注册:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin run -m "用 Ollama 启动 Qwen3.5-0.8B 并注册到 Penguin"
-```
-
----
-
-- **文档**:[技能与插件](https://penguin.ooo/docs/skills) · [工具与审批](https://penguin.ooo/docs/tools) · [模型与供应商](https://penguin.ooo/docs/models)
-- **社区**:[GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**参考来源**:[vLLM](https://docs.vllm.ai/) · [Ollama](https://ollama.com/) · [LlamaFactory](https://github.com/hiyouga/LlamaFactory) · [Stripe, Can AI agents build real Stripe integrations?](https://stripe.com/blog/can-ai-agents-build-real-stripe-integrations) · [Anthropic, Writing effective tools for AI agents](https://www.anthropic.com/engineering/writing-tools-for-agents)
diff --git a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.md b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.md
deleted file mode 100644
index e5b20aa7..00000000
--- a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.en.md
+++ /dev/null
@@ -1,157 +0,0 @@
----
-title: "Connect your agent to Feishu, QQ, Telegram or WeChat, and use it from anywhere"
-date: 2026-09-16
-category: practice
-excerpt: Bind a PenguinHarness conversation to a chat bot and talk to your agent from your phone. This tutorial starts with WeChat, the quickest channel to set up; the same dialog covers Feishu, Telegram and QQ.
----
-
-An agent you can only reach from a browser tab is an agent you stop using the moment you leave your desk. PenguinHarness can bind any conversation to a chat bot on Feishu, Telegram, QQ or WeChat. Once the binding is on, a message you send the bot from your phone arrives in that conversation as if you had typed it in the Web App, and the agent's replies come back to the same chat.
-
-In this tutorial you will create a conversation, open **Remote control** from its right-click menu, and bind it to WeChat. WeChat is the quickest channel to set up: you scan a QR code, and there is no developer console, no app review and no credential to copy. By the end, you will send the agent a Task from your phone and read its reply in the chat.
-
-The last part of the tutorial covers what changes for Feishu, Telegram and QQ, and the limits and safety rules that apply once a conversation is bound.
-
-## Prerequisites
-
-- PenguinHarness running on a computer that stays on while you are away: the desktop app, or the server started with `penguin web`. Bot messages are delivered only while it runs.
-- At least one model configured on the **Models** page, so the agent can answer.
-- The owner role in the Project. Only the Project owner can save a bot's credentials and turn a connection on; other members can see a binding and run its tests.
-- For WeChat: WeChat on your phone.
-- For the other channels: a Feishu account that can create a self-built app, a Telegram account, or a QQ account registered as a developer on the QQ open platform.
-
-## How binding works
-
-A binding connects one conversation to one chat bot. You manage it in the conversation's **Remote control** dialog, which has one tab per channel, and each channel keeps its own credentials.
-
-## Step 1: Create a conversation
-
-A binding attaches to an existing conversation, so start one first. Messages you send the bot later arrive in this conversation.
-
-1. In the sidebar, select **New chat**.
-2. Pick the agent and the model you want to reach from your phone, and a Workspace that holds the files the agent should work with.
-3. Send a first message, for example "Check logs/app.log and tell me whether anything needs attention."
-
-The conversation exists once the first message is sent. Until then the draft has nothing to bind, and the **Remote control** panel shows **Available once the conversation starts**.
-
-The message box's toolbar also shows the approval mode. New conversations start in **Approve everything**, so tool calls run without asking. Keep that in mind before you bind a bot: anyone who can message the bot can then have the agent run its tools. Limits and safety, near the end of this tutorial, covers the options.
-
-![A new conversation draft: the message box, with the agent and Workspace pickers below it and the model in its toolbar](/blog-assets/remote-control-new-chat-en.png)
-
-## Step 2: Open Remote control
-
-The binding is set up in the **Remote control** dialog, which opens from the conversation's right-click menu.
-
-1. In the sidebar, right-click the conversation's title.
-2. In the menu, select **Remote control**.
-
-The same menu opens with a long press on a touch screen, with **Shift+F10** on the keyboard, or from the **More** button that appears when you hover over the row.
-
-![The conversation's right-click menu, with Remote control between Rename chat and Archive](/blog-assets/remote-control-menu-en.png)
-
-You can also keep Remote control open beside the conversation: select the **Right sidebar** button at the top right of the conversation, and open the **Remote control** panel there. It holds the same settings as the dialog.
-
-## Step 3: Bind WeChat
-
-The WeChat bot's credential comes from scanning a QR code with your phone, so there is nothing to register or fill in.
-
-1. At the top of the dialog, select the **WeChat** tab.
-2. Select **Connect by scanning**. A QR code appears with **Waiting for the code to be scanned in WeChat…**.
-3. Scan the code with WeChat on your phone.
-4. If your phone shows a number, type it into **Pairing code** and select **Confirm**.
-5. Confirm the authorization on your phone. The dialog shows **Saved the credential for bot … — the connection can be enabled now**.
-6. Turn on **Enable connection**. **Connection status** changes to **Connected**, and the conversation's row in the sidebar shows a paper-plane mark.
-7. Wait about 15 seconds, then find the bot in WeChat and send it a message.
-
-![Scanning the WeChat authorization code in the Remote control dialog](/blog-assets/remote-control-wechat-qr-en.png)
-
-> **Wait before the first WeChat message.** When the connection opens, PenguinHarness first clears out anything the WeChat channel queued earlier, and a message that arrives during those first seconds is cleared with it. Wait until the status has shown **Connected** for about 15 seconds before you send your first message. If no reply comes, send the message again. After that, messages arrive as soon as they are sent.
-
-When the message arrives, the dialog shows **Last message received** with the time, and the agent starts working.
-
-![A connected WeChat binding: the connection is enabled and a message has been received](/blog-assets/remote-control-wechat-connected-en.png)
-
-To check the delivery path without waiting for a real reply, select **Send test message**. It becomes available after the bot has received one message, because until then it does not know which chat to write to.
-
-## Step 4: Talk to the agent from your phone
-
-Now drive the conversation from your phone. A message you send the bot starts a Task in the conversation exactly as if you had typed it in the Web App. If the agent is busy, the message waits in the queue and runs next. What the agent writes comes back to the chat, and the whole exchange stays in the conversation, so you can pick it up in the browser later.
-
-![The conversation in the Web App, with a request sent from WeChat and the agent's reply](/blog-assets/remote-control-chat-en.png)
-
-A few behaviors are worth knowing:
-
-- **Text, images and files** travel in both directions on WeChat. A voice message arrives as WeChat's own transcription. When the agent writes a file during a run and names it in its reply, the file follows the text into the chat; a run sends at most five files, images up to 10 MB and other files up to 30 MB. A file the channel cannot take is not announced in the chat — it is recorded in the Cost Center's error records.
-- **Approvals stay in the Web App.** In the default **Approve everything** mode, tool calls run without asking. If you switch the conversation to a mode that asks, such as **Approve read-only**, the chat receives a reminder whenever a tool call is waiting, and the run waits until you approve it in the browser.
-- **Runs started in the Web App are mirrored** to the chat too, after the bot has received its first message.
-
-Three switches shape the replies:
-
-| Switch | What it does |
-| --- | --- |
-| **Final reply only** | Sends only the last message of a run instead of every message. |
-| **One message per line** | Splits a reply into one chat message per line. |
-| **Render Markdown** | On by default, turns the reply's Markdown into formatting the app can display. |
-
-## Step 5: Bind Feishu, Telegram or QQ
-
-Every channel follows the same pattern: select its tab, provide its credentials, select **Save**, then turn on **Enable connection**. The switch stays unavailable until the credentials are saved. Each channel's **Set up the bot** section in the dialog lists the steps, with a link to the platform.
-
-### Feishu (and Lark)
-
-1. In the Feishu developer console, create a self-built app.
-2. Enable the bot capability for the app.
-3. Subscribe to the message-receive event, with the subscription mode set to long connection.
-4. Copy **App ID** and **App Secret** from the app's credentials page into the dialog. For Lark, set **API domain** to `https://open.larksuite.com`; for Feishu, keep `https://open.feishu.cn`.
-5. Publish an app version and get it approved.
-6. Select **Save**, turn on **Enable connection**, then message the bot once in Feishu.
-
-Feishu works in groups too: mention the bot, and the mention is removed before the message reaches the agent. To let the agent read images and files you send, the app also needs the permission to read message resources.
-
-![The Feishu channel in the Remote control dialog](/blog-assets/remote-control-feishu-en.png)
-
-### Telegram
-
-1. In Telegram, open @BotFather and send `/newbot`.
-2. Name the bot as prompted, then copy the **Bot Token** @BotFather returns into the dialog.
-3. Select **Save** and turn on **Enable connection**.
-4. Find the bot in Telegram and send it a message.
-
-In groups, Telegram's Group Privacy setting is on by default: a bot that is not a group administrator receives only commands addressed to it. **Test connection** tells you when Group Privacy is on for your bot.
-
-### QQ
-
-1. On the QQ open platform, register as a developer and create a bot.
-2. In the dialog, select **Connect by QR** and scan the code with QQ on your phone. On the page that opens, pick the bot and confirm; the dialog saves its credentials for you. To enter them by hand instead, copy **App ID** and **App Secret** from the bot's development settings, set the bot's event subscription mode to WebSocket (no callback URL is needed), and select **Save**.
-3. On the QQ open platform, add your own QQ account or a test group to the bot's sandbox allowlist.
-4. Turn on **Enable connection**, then message the bot in QQ.
-
-QQ lets a bot reply only to a message you have just sent. Runs you start in the Web App are therefore not mirrored to QQ, and a few minutes after your last QQ message, replies can no longer be delivered. Send the bot another message to continue. One QQ message can receive at most four replies (five in a group); when a run produces more, the last reply carries the rest.
-
-QQ also carries text only: the bot does not read images or files you send, and the agent cannot send files to QQ.
-
-## Limits and safety
-
-A bound conversation comes with a few fixed rules.
-
-| Rule | What it means |
-| --- | --- |
-| One channel per conversation | Only one channel's connection can be enabled on a conversation at a time. |
-| One conversation per bot | A bot can be enabled on one conversation at a time. To move it, turn the connection off where it is on, then enable it on the other conversation. The credentials stay saved. |
-| The bot speaks second | A bot cannot start a chat. It needs one message from you before it knows where to send replies. |
-| WeChat: direct chats only | Mentioning the WeChat bot in a group does nothing. Message it directly. |
-| The server must run | Messages sent while PenguinHarness is stopped are not delivered later. |
-
-> **Anyone who can message the bot can drive the conversation.** A binding has no allowlist of senders, and a new conversation approves every tool call. Keep the bot private, do not add it to groups you do not control, and give a conversation reachable from a chat app only the Workspace and tools you are comfortable exposing. If the bot could reach other people, switch the conversation to **Approve read-only**, so that anything beyond reading waits for your approval in the browser.
-
-## Troubleshooting
-
-- **Enable connection is unavailable.** Save the credentials first, and turn off any other channel enabled on this conversation. Only the Project owner can turn a connection on.
-- **Connection status shows an error.** Check the credentials. For Feishu, also check the **API domain** and that the event subscription uses long connection.
-- **Send test message is unavailable.** Send the bot one message first.
-- **The first WeChat message got no reply.** Send it again once the status has shown **Connected** for about 15 seconds. The note in Step 3 explains why.
-- **The bot ignores a Telegram group.** Make the bot a group administrator, or turn off Group Privacy with @BotFather and add the bot to the group again.
-- **Replies stop arriving in QQ.** More than a few minutes have passed since your last QQ message. Send the bot a new message.
-
-## Wrap-up
-
-You bound a conversation to WeChat, sent it a Task from your phone, and saw the reply come back to the chat and into the Web App. Feishu, Telegram and QQ use the same dialog, each with its own credentials. For every field and switch in the dialog, see the [Remote control documentation](https://penguin.ooo/docs/remote-control).
diff --git a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.md b/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.md
deleted file mode 100644
index 55943ae1..00000000
--- a/packages/landing/content/blog/connect-agents-to-feishu-qq-telegram-wechat.zh.md
+++ /dev/null
@@ -1,157 +0,0 @@
----
-title: "把你的 Agent 接入飞书、QQ、Telegram 或微信,随时随地使用"
-date: 2026-09-16
-category: practice
-excerpt: "把 PenguinHarness 对话绑定到聊天机器人,随时用手机和 Agent 对话。本教程从配置最快的微信讲起,同一个对话框也支持飞书、Telegram 和 QQ。"
----
-
-一个只能在浏览器标签页里使用的 Agent,你一离开工位就用不上了。PenguinHarness 可以把任意一段对话绑定到飞书、Telegram、QQ 或微信上的聊天机器人。绑定生效后,你在手机上发给机器人的消息会进入这段对话,就像在 Web App 里输入的一样;Agent 的回复也会发回同一个聊天。
-
-在这篇教程里,你会创建一段对话,从右键菜单打开**远程控制**,再把对话绑定到微信。微信是配置最快的渠道:扫一个二维码就行,不用进开发者后台,不用等应用审核,也不用复制任何凭证。读到最后,你就能在手机上给 Agent 发一个 Task,并在聊天里看到它的回复。
-
-教程最后一部分介绍飞书、Telegram 和 QQ 有哪些不同,以及对话绑定后要遵守的限制和安全规则。
-
-## 准备工作
-
-- PenguinHarness 运行在一台你离开时也不关机的电脑上:桌面应用,或者用 `penguin web` 启动的服务器。只有它在运行,机器人消息才能送达。
-- 在**模型库**页面至少配置一个模型,Agent 才能回答。
-- 你是 Project 的所有者。只有所有者能保存机器人的凭证、开启连接;其他成员可以查看绑定、运行测试。
-- 微信渠道:手机上装有微信。
-- 其他渠道:一个能创建自建应用的飞书账号、一个 Telegram 账号,或者一个已在 QQ 开放平台注册为开发者的 QQ 账号。
-
-## 绑定是怎么回事
-
-绑定把一段对话连到一个聊天机器人。绑定在对话的**远程控制**对话框里管理:每个渠道占一个标签页,凭证也各自保存。
-
-## 第 1 步:创建对话
-
-绑定要挂在已有的对话上,所以先创建一段对话。之后你发给机器人的消息,都会进入这段对话。
-
-1. 在侧栏选择**新建对话**。
-2. 选好你想在手机上使用的 Agent 和模型,再选一个放着 Agent 要处理的文件的 Workspace。
-3. 发出第一条消息,例如「看一下 logs/app.log,有没有需要处理的问题?」
-
-第一条消息发出后,对话才算真正创建。在那之前,草稿还没有可绑定的对象,**远程控制**面板会显示**发送第一条消息后可用**。
-
-消息框的工具栏里还显示着审批模式。新对话默认是**全部放行**,工具调用不经询问直接执行。绑定机器人之前要记住这一点:任何能给机器人发消息的人,都能让 Agent 运行它的工具。本教程末尾的「限制与安全」介绍了可以怎么做。
-
-![新建对话草稿:消息输入框,下方是 Agent 和 Workspace 选择器,工具栏里是模型](/blog-assets/remote-control-new-chat-zh.png)
-
-## 第 2 步:打开「远程控制」
-
-绑定在**远程控制**对话框里设置,这个对话框从对话的右键菜单打开。
-
-1. 在侧栏里右键点击对话标题。
-2. 在菜单中选择**远程控制**。
-
-在触屏上长按、在键盘上按 **Shift+F10**,或者把鼠标悬停在对话行上、点出现的**更多**按钮,打开的都是同一个菜单。
-
-![对话的右键菜单,「远程控制」位于「重命名对话」和「归档」之间](/blog-assets/remote-control-menu-zh.png)
-
-你也可以让远程控制一直显示在对话旁边:点对话右上角的**右侧栏**按钮,在右侧栏里打开**远程控制**面板。面板里的设置和对话框完全相同。
-
-## 第 3 步:绑定微信
-
-微信机器人的凭证用手机扫码就能拿到,不用注册,也没有表单要填。
-
-1. 在对话框顶部选择**微信**标签页。
-2. 点**扫码连接**。对话框里出现二维码,并显示**等待在微信中扫码…**。
-3. 用手机上的微信扫码。
-4. 如果手机上显示一串数字,把它填进**配对码**,再点**确认**。
-5. 在手机上确认授权。对话框会显示**已保存机器人 … 的凭据,可以启用连接了**。
-6. 打开**启用连接**开关。**连接状态**变为**已连接**,侧栏中这段对话旁会出现纸飞机图标。
-7. 等大约 15 秒,再在微信里找到这个机器人,给它发一条消息。
-
-![在「远程控制」对话框里扫描微信授权码](/blog-assets/remote-control-wechat-qr-zh.png)
-
-> **发第一条微信消息前,先等一等**。连接刚建立时,PenguinHarness 会先清空微信渠道之前排队的消息,最初几秒内到达的消息也会被一并清掉。等**连接状态**显示**已连接**大约 15 秒后,再发第一条消息。如果没有回复,就再发一次。之后的消息都是即发即达。
-
-消息送达后,对话框会显示**最近收到消息**和时间,Agent 随即开始工作。
-
-![已连接的微信绑定:连接已启用,并且收到了一条消息](/blog-assets/remote-control-wechat-connected-zh.png)
-
-如果不想等真实回复,只想确认链路是否通畅,可以点**发送测试消息**。机器人收到第一条消息后,这个按钮才可用,因为在那之前,它还不知道该把消息发到哪个聊天。
-
-## 第 4 步:在手机上和 Agent 对话
-
-现在可以在手机上操控这段对话了。你发给机器人的每条消息,都会在对话里启动一个 Task,和在 Web App 里输入完全一样。Agent 正忙时,消息会先排队,轮到了再运行。Agent 写下的内容会发回聊天,完整的往来也都留在对话里,之后回到浏览器还能接着处理。
-
-![Web App 中的这段对话:一条从微信发来的请求和 Agent 的回复](/blog-assets/remote-control-chat-zh.png)
-
-有几点值得了解:
-
-- **文字、图片和文件**在微信上都能双向传输。语音消息到达时,是微信自带的转写文字。Agent 在运行中写出文件、并在回复里提到它时,文件会跟着文字一起发到聊天里;一轮运行最多发送五个文件,图片不超过 10 MB,其他文件不超过 30 MB。渠道收不下的文件不会在聊天里说明,而是记入成本中心的异常记录。
-- **审批仍在 Web App 里完成**。在默认的**全部放行**模式下,工具调用不经询问直接执行。如果把对话切换到会询问的模式,比如**放行只读**,每当有工具调用等待审批,聊天里都会收到提醒,运行也会一直等到你在浏览器里批准。
-- **在 Web App 里启动的运行也会同步到聊天**,前提是机器人已经收到过第一条消息。
-
-回复的形式由三个开关决定:
-
-| 开关 | 作用 |
-| --- | --- |
-| **只发送最终回复** | 只发送一次运行的最后一条消息,而不是每条都发。 |
-| **每行一条消息** | 把回复按行拆开,每行作为一条聊天消息发送。 |
-| **渲染 Markdown** | 默认开启,把回复里的 Markdown 转成应用能显示的格式。 |
-
-## 第 5 步:绑定飞书、Telegram 或 QQ
-
-每个渠道的流程都一样:选择对应的标签页,填入凭证,点**保存**,再打开**启用连接**开关。凭证保存之前,这个开关一直不可用。对话框里每个渠道都有**如何创建机器人**一节,列出了具体步骤,并附上平台链接。
-
-### 飞书(及 Lark)
-
-1. 在飞书开发者后台创建一个企业自建应用。
-2. 为应用开通机器人能力。
-3. 订阅「接收消息」事件,事件订阅方式选择「长连接」。
-4. 把应用「凭证与基础信息」页上的 **App ID** 和 **App Secret** 复制到对话框里。如果用的是 Lark,把 **API 域名**设为 `https://open.larksuite.com`;飞书保持 `https://open.feishu.cn` 不变。
-5. 发布一个应用版本,并通过审核。
-6. 点**保存**,打开**启用连接**开关,然后在飞书里给机器人发一条消息。
-
-飞书在群聊里也能用:发消息时 @机器人即可,消息交给 Agent 之前会去掉这个 @。要让 Agent 能读取你发送的图片和文件,应用还需要开通读取消息资源的权限。
-
-![「远程控制」对话框里的飞书渠道](/blog-assets/remote-control-feishu-zh.png)
-
-### Telegram
-
-1. 在 Telegram 里打开 @BotFather,发送 `/newbot`。
-2. 按提示给机器人起名,然后把 @BotFather 返回的 **Bot Token** 复制到对话框里。
-3. 点**保存**,打开**启用连接**开关。
-4. 在 Telegram 里找到这个机器人,给它发一条消息。
-
-在群聊里,Telegram 的 Group Privacy 设置默认开启:不是群管理员的机器人,只能收到专门发给它的命令。如果你的机器人开着 Group Privacy,**测试连接**会提示你。
-
-### QQ
-
-1. 在 QQ 开放平台注册成为开发者,并创建一个机器人。
-2. 在对话框里选择**扫码连接**,用手机上的 QQ 扫码,在打开的页面里选中这个机器人并确认,对话框会替你保存凭证。如果想手动填写,就在机器人的「开发设置」页复制 **App ID** 和 **App Secret**,在「开发配置」里把事件订阅方式设为 WebSocket(不需要填回调地址),再点**保存**。
-3. 在 QQ 开放平台上,把你自己的 QQ 号或一个测试群加入机器人的沙箱白名单。
-4. 打开**启用连接**开关,然后在 QQ 里给机器人发一条消息。
-
-QQ 只允许机器人回复你刚发出的消息。所以在 Web App 里启动的运行不会同步到 QQ;距离你上一条 QQ 消息几分钟后,回复就发不出去了。想继续,就再给机器人发一条消息。一条 QQ 消息最多能收到 4 条回复(群聊里是 5 条);一次运行的回复超过这个数时,剩下的内容会合并到最后一条回复里。
-
-QQ 还只能传输文字:机器人读不到你发送的图片和文件,Agent 也无法向 QQ 发送文件。
-
-## 限制与安全
-
-绑定后的对话有几条固定规则。
-
-| 规则 | 说明 |
-| --- | --- |
-| 一段对话一个渠道 | 同一时间,一段对话上只能启用一个渠道的连接。 |
-| 一个机器人一段对话 | 一个机器人同一时间只能在一段对话上启用。要换到另一段对话,先在原来的对话上关闭连接,再到新对话上启用。凭证会一直保留。 |
-| 机器人不能先开口 | 机器人无法主动发起聊天。它要先收到你的一条消息,才知道把回复发到哪里。 |
-| 微信只支持单聊 | 在群里 @ 微信机器人不会有任何反应,请直接给它发消息。 |
-| 服务器必须保持运行 | PenguinHarness 停止期间发出的消息,之后不会补发。 |
-
-> **任何能给机器人发消息的人,都能操控这段对话**。绑定没有发送者白名单,新对话又默认放行所有工具调用。不要公开机器人,也不要把它拉进你管不了的群;能从聊天应用访问的对话,只给它配你不怕暴露的 Workspace 和工具。如果机器人可能被别人找到,就把对话切换到**放行只读**,读取以外的操作都会在浏览器里等你批准。
-
-## 常见问题
-
-- **「启用连接」开关不可用**。先保存凭证,并关闭这段对话上已经启用的其他渠道。只有 Project 所有者能开启连接。
-- **「连接状态」显示错误**。检查凭证是否正确。飞书渠道还要检查 **API 域名**,并确认事件订阅用的是长连接。
-- **「发送测试消息」不可用**。先给机器人发一条消息。
-- **第一条微信消息没有回复**。等**连接状态**显示**已连接**大约 15 秒后,再发一次。第 3 步的提示说明了原因。
-- **机器人不理会 Telegram 群里的消息**。把机器人设为群管理员,或者用 @BotFather 关闭 Group Privacy,再把机器人重新拉进群。
-- **QQ 里收不到回复了**。距离你上一条 QQ 消息已经超过几分钟。给机器人发一条新消息即可。
-
-## 小结
-
-你把一段对话绑定到了微信,在手机上给它发了一个 Task,并看到回复既发回了聊天,也出现在 Web App 里。飞书、Telegram 和 QQ 用的是同一个对话框,各自保存自己的凭证。对话框里每个字段和开关的详细说明,见[远程控制文档](https://penguin.ooo/docs/remote-control)。
diff --git a/packages/landing/content/blog/create-evaluate-evolve-agents.en.md b/packages/landing/content/blog/create-evaluate-evolve-agents.en.md
deleted file mode 100644
index eb862d10..00000000
--- a/packages/landing/content/blog/create-evaluate-evolve-agents.en.md
+++ /dev/null
@@ -1,172 +0,0 @@
----
-title: "Create, evaluate and evolve as many agents as you like"
-date: 2026-09-16
-category: practice
-excerpt: Have AI write a Benchmark and take a baseline score, ask AI what a case tests, replace the Benchmark when it needs to change, then evaluate your agents and optimize them, with an Optimizer that improves the agent and an Evaluator that scores it strictly.
----
-
-Most agent projects stall at the same point: you change a prompt, try two or three questions by hand, and cannot tell whether the agent got better or you got lucky. The Evaluation Center in PenguinHarness replaces that guesswork with a repeatable loop.
-
-A Benchmark is a set of cases, each with a scoring rubric. You evaluate an agent against a Benchmark to get a score, and you can let AI optimize the agent against it. Each agent and each Benchmark is a directory in your Project, and there is no limit on how many of either you create.
-
-This tutorial is for anyone who runs agents in PenguinHarness and wants to know whether a change actually helped. In it, you will:
-
-- have AI write a Benchmark for an agent and take its first score;
-- open a case and ask AI what it is testing;
-- replace the Benchmark with an improved one, and delete the old one;
-- evaluate an agent, then optimize it, and read the results.
-
-By the end, you will have a published Benchmark, a chart that compares every version you have tested, and, if an optimization round beats the baseline, an improved version of your agent.
-
-## Prerequisites
-
-- PenguinHarness 0.2.13 or later, as the desktop app or the Web App.
-- A model configured on the **Models** page.
-- An agent to test: any agent you created on the **Agents** page, or **General Agent** (`default_agent`), the agent every Project starts with.
-
-The agent that carries out each step needs the Skills from the `agent-tuning` plugin: `benchmark-design`, `agent-evaluation` and `agent-optimization`. General Agent has them preinstalled, and the dialogs below pick it by default.
-
-## How the loop fits together
-
-The Evaluation Center divides the work among four roles:
-
-| Role | What it does | What it may not do |
-| --- | --- | --- |
-| Builder | Writes the cases and rubrics, trial-runs them to calibrate difficulty, and records the baseline score. | Change the agent under test. |
-| Agent under test | Works on one case at a time, in a fresh Workspace that holds only the case's task materials. | See the rubric. |
-| Evaluator | Runs the agent under test once on one case, and scores the result strictly against the rubric. | Change the agent or the Benchmark. |
-| Optimizer | Reads the scores, the case statements and the Traces of the test runs, and changes the agent one hypothesis at a time. | Read rubrics, reference answers or the Evaluator's reasoning. |
-
-You start the Builder and the Optimizer from the Evaluation Center's dialogs, each in a conversation of its own. An evaluation also runs in a conversation you start, where the **Evaluator agent** coordinates the work. Each Evaluator that scores a run is a subagent: an evaluation, or a round of optimization, sends out one Evaluator for every case and run.
-
-![What the Optimizer and the Evaluator can read and change](/blog-assets/evaluation-center-roles-en.png)
-
-The Evaluator and the Optimizer pull in opposite directions on purpose. The Evaluator judges strictly, against a rubric the Optimizer never reads. The Optimizer tries as hard as it can to raise the score, but because it cannot see how answers are graded, the dependable way to raise the score is to make the agent better at the task.
-
-## Step 1: Open the Evaluation Center
-
-The tutorial starts on the Evaluation Center page. In the sidebar, select **Evaluation Center**.
-
-The page has three cards that summarize the workflow (**Create**, **Evaluate**, **Optimize**), followed by the Project's Benchmarks. Each Benchmark card shows its number of cases, the agents it has tested, a score trend and the latest score.
-
-![The Evaluation Center with its three workflow cards and a list of Benchmarks](/blog-assets/evaluation-center-overview-en.png)
-
-## Step 2: Create a Benchmark with AI
-
-In this step, AI writes your first Benchmark: a set of cases with rubrics, calibrated so your agent has room to improve.
-
-1. At the top right, select **Create with AI**.
-2. In **Test Agent**, pick the agent the cases are for.
-3. Describe the capability and the scenarios you want to test, or select one of the examples under **Try an example**. A good description names what makes the task hard: conflicting sources, missing information, strict formats.
-4. Select **Edit in a new conversation**.
-
-![The Create a Benchmark with AI dialog](/blog-assets/evaluation-center-create-with-ai-en.png)
-
-PenguinHarness opens a new conversation with the full prompt filled in and the `benchmark-design` and `agent-evaluation` Skills selected. Nothing is sent yet, so you can still edit the prompt.
-
-Before you send, check the model in the message box's toolbar. The Builder runs the agent under test on this conversation's model for its trial runs and for the baseline. Evaluations you start later from the **Evaluate** tab run the agent on the model it is configured with, and the chart draws a separate line for each model. To keep the baseline and your later scores on one line, pick the model the agent is configured with. When the prompt and the model are right, send the message.
-
-The Builder now writes about three cases, each with a statement for the agent and a rubric worth 100 points. It trial-runs the cases and adjusts them for up to four rounds, aiming for a baseline below 50, because a Benchmark the agent already passes cannot show improvement. Each case runs once per trial. While this runs, the new Benchmark's card is marked **Being built**. When calibration finishes, the Builder records the agent's first score, the baseline, and publishes the Benchmark, as long as the baseline is below 85.
-
-## Step 3: Read the Benchmark
-
-Before you rely on any score, look at what the Builder produced. Select **View** on the Benchmark's card. The Benchmark page shows:
-
-- **Cases**: every case in the Benchmark.
-- **Score over time**: each point is one evaluation. Evaluations of the same agent on the same model and thinking level form one series, so you can follow an agent's versions over time.
-- **Evaluations**: every evaluation, newest first, with the tested agent, its version, model, thinking level, score, cost and duration. Select a row to see the score of each case and each run.
-
-![A new Benchmark's page: its cases, the baseline on the score chart, and the evaluation table](/blog-assets/evaluation-center-benchmark-detail-en.png)
-
-You will come back to the **Score over time** chart in Step 8, once it has more results on it.
-
-## Step 4: Ask AI what a case is testing
-
-A score only helps if you understand what earned it. In this step you open one case and ask AI to explain what it measures.
-
-1. Next to a case, select **View details**. The case opens in a file browser with two folders: **Task materials**, which is what the agent under test receives, and **Scoring rubric**, marked **Hidden from Target Agent**.
-2. Select **Ask AI**.
-3. The suggested question is **Explain what this case tests and what a strong answer looks like**. Keep it, or pick another example, such as **What does the rubric reward?**
-4. Select **Edit in a new conversation** and send the message.
-
-![A case opened in the Benchmark, with its task materials, its hidden rubric and the Ask AI button](/blog-assets/evaluation-center-case-en.png)
-
-The agent receives the paths to the statement and the rubric, reads both, and explains the case in plain language. It only reads the case; it does not change it.
-
-## Step 5: Replace the Benchmark with a better one
-
-This step is optional: follow it when the Benchmark itself needs to change. A Benchmark's cases are frozen once it exists: neither the Web App nor the API edits a statement or a rubric. This keeps every score on one Benchmark comparable. To change the cases, you create a new Benchmark and retire the old one.
-
-1. Ask AI what should change. On a case, the example question **How could the statement be clearer?** asks exactly that, and the answer describes how to write the case in the next Benchmark.
-2. Select **Create with AI** again and pick the same **Test Agent**. In the description, name the new Benchmark and the one it replaces, and list the changes you want, for example: "Create `report-writing-v2`, based on `report-writing-v1`. Keep its three cases, make the expected length in case 2 explicit, and make the citation format in case 3 stricter."
-3. Send the message and let the Builder create and calibrate the new Benchmark. It records a new baseline on it.
-4. When the new Benchmark is published, go back to the Evaluation Center, select the trash icon on the old Benchmark's card, and select **Delete** to confirm. Only the Project owner can delete a Benchmark.
-
-> **Deletion is permanent.** Deleting a Benchmark removes its cases and evaluation records. They cannot be restored.
-
-## Step 6: Evaluate an agent
-
-Evaluating gives an agent a score on a Benchmark. Use it to score another agent you want to compare, or the same agent after you changed it by hand.
-
-1. On the Benchmark's card or page, select **Use**, then the **Evaluate** tab.
-2. In **Tested agent**, pick the agent to score.
-3. Leave **Evaluator agent** as **General Agent**, or pick another agent that has the `agent-evaluation` Skill.
-4. Optionally change **Model of the evaluation conversation**, **Runs per case** and **Note**. That model runs the Evaluator agent's own conversation; the agent under test runs on the model it is configured with. **Runs per case** starts at the Benchmark's own count, which is 1 for a Benchmark built with AI; more runs average out lucky and unlucky runs.
-5. Select **Edit in a new conversation**, then send.
-
-![The Use dialog on its Evaluate tab](/blog-assets/evaluation-center-use-evaluate-en.png)
-
-The Evaluator agent sends out one Evaluator subagent for every case and run. Each one gives the agent under test a fresh Workspace that contains only the case's task materials, runs it, and scores the result against the rubric. When all runs finish, the Evaluator agent averages the scores and records the evaluation. It appears on the chart as a new point, labelled with the agent, its model and its thinking level.
-
-> **Where the conversations go.** The conversations an evaluation creates are filed under the **Evaluations** folder in the sidebar, so they do not crowd the agent's own conversation list.
-
-## Step 7: Optimize an agent
-
-Optimization needs a baseline for the agent on this Benchmark. If the agent was the **Test Agent** when the Benchmark was built, it already has one. Otherwise, evaluate it first (Step 6). The **Optimize** tab warns you when the selected agent has no baseline yet.
-
-1. Select **Use**, then the **Optimize** tab.
-2. In **Tested agent**, pick the agent to improve. The tab shows the current baseline and the target score.
-3. Leave **Optimizer agent** as **General Agent**, or pick another agent that has the `agent-optimization` and `agent-evaluation` Skills.
-4. Set **Round limit** (default 3) and **Target score** (by default, ten points above the baseline).
-5. Optionally describe a **Focus**, for example "Focus on citation rules; leave the writing style alone."
-6. Select **Edit in a new conversation**, then send.
-
-![The Use dialog on its Optimize tab, with the current baseline and the target score](/blog-assets/evaluation-center-use-optimize-en.png)
-
-Every evaluation during optimization runs the agent on the model and thinking level its baseline recorded, whichever model the Optimizer's own conversation uses. Each round follows the same pattern:
-
-1. The Optimizer reads the latest scores and the Traces of the test runs, and forms one falsifiable hypothesis about why the agent loses points.
-2. It makes sure a snapshot of the current version exists, then makes one change: the agent's instructions, a focused Skill, or a safe configuration field.
-3. Evaluator subagents run the full Benchmark against the changed agent.
-4. If the total score is strictly higher, the change is kept as a new version of the agent. Otherwise the Optimizer restores the snapshot and tries a different hypothesis in the next round.
-
-![One optimization round: the Optimizer changes the agent, the Evaluator scores the candidate, and the change is kept only if the score rises](/blog-assets/evaluation-center-optimize-round-en.png)
-
-The loop stops when the agent reaches the target score or the round limit runs out. Rejected attempts never reach the Benchmark's records; the conversation reports every round, including the ones that failed.
-
-The separation between the two roles is written into their Skills. An Evaluator copies only the case's task materials into the test Workspace and keeps rubrics, reference answers and its scoring reasoning private. The Optimizer is instructed not to open rubrics or evaluation files, and to stop if private evaluation information ever reaches its context. Every read and every change is recorded in the Traces, so you can audit a run afterwards.
-
-## Step 8: Compare agents and keep improving
-
-Back on the Benchmark page, each kept version appears as a new point in the agent's series. In the example below, version 2 raised the score from 43.33 to 48.33, and version 3 reached 55, above the target of 54, so the loop stopped there. Evaluate other agents, or the same agent on a different model or thinking level, and each gets its own series on the same chart.
-
-![Score over time after optimization, with a second agent evaluated on the same Benchmark](/blog-assets/evaluation-center-results-en.png)
-
-Some ways to keep going:
-
-- **Ask AI about an evaluation.** Select a row in **Evaluations**, then **Ask AI**, and try **Which cases are weakest, and what should change?**
-- **Try more agents.** Create agents with different instructions or models on the **Agents** page, and evaluate each one on the same Benchmark.
-- **Go back to an earlier version.** Each version the Optimizer changed leaves a snapshot, `snapshots/v<N>.tar.gz`, in the agent's directory. To restore one, open the agent's settings, select **Import snapshot** and choose that file; if PenguinHarness runs on another machine, copy the file to your computer first. Importing an older version asks you to confirm, and only the Project owner can import.
-
-## Troubleshooting
-
-- **A Benchmark card shows Creation failed.** Calibration produced no valid trial run, or the agent still scored 85 or more after the last round, so the Benchmark cannot be evaluated or optimized. Check the building conversation for failed trial runs, then delete the Benchmark and create it again, asking for harder cases if the agent scored too high.
-- **The Use dialog warns that an agent lacks a Skill.** The Evaluator or Optimizer agent you picked is missing `agent-evaluation` or `agent-optimization` and will most likely not finish. Switch back to **General Agent**, or install the `agent-tuning` plugin on that agent.
-- **The Optimize tab says the agent has no baseline.** Evaluate the agent on the **Evaluate** tab first (Step 6).
-- **The baseline and later evaluations are on separate lines.** They ran on different models: the baseline on the model of the conversation that built the Benchmark, and evaluations from the **Evaluate** tab on the agent's configured model. See Step 2.
-
-## Wrap-up
-
-You had AI build a Benchmark and take a baseline, asked AI to explain a case, replaced the Benchmark with a better one, evaluated an agent, and let the Optimizer improve it against a strict Evaluator. Every case, score and version is a file in your Project, so you can inspect, back up and version all of it.
-
-For every option in these dialogs, see the [Evaluation Center documentation](https://penguin.ooo/docs/evaluation-center). For the design of the loop, read [Self-improvement](https://penguin.ooo/docs/self-improvement).
diff --git a/packages/landing/content/blog/create-evaluate-evolve-agents.zh.md b/packages/landing/content/blog/create-evaluate-evolve-agents.zh.md
deleted file mode 100644
index f15325f8..00000000
--- a/packages/landing/content/blog/create-evaluate-evolve-agents.zh.md
+++ /dev/null
@@ -1,172 +0,0 @@
----
-title: "自由创建、评估、进化任意多个 Agent"
-date: 2026-09-16
-category: practice
-excerpt: "让 AI 编写 Benchmark 并测出基线分,问 AI 一道题在考什么,Benchmark 需要调整时用新的替换旧的,再评估和优化你的 Agent:Optimizer 负责改进,Evaluator 负责严格打分。"
----
-
-大多数 Agent 项目都卡在同一个地方:改一版提示词,手动试两三道题,说不清 Agent 是真的变好了,还是你运气好。PenguinHarness 的评估中心用一套可重复的循环取代这种猜测。
-
-Benchmark 是一组题目,每道题带一份评分标准。用 Benchmark 评估一个 Agent,就能得到分数;你还可以让 AI 据此优化这个 Agent。每个 Agent、每个 Benchmark 都是 Project 里的一个目录,想建多少就建多少,没有上限。
-
-这篇教程写给在 PenguinHarness 里运行 Agent、想知道改动到底有没有用的人。在教程里,你会:
-
-- 让 AI 为一个 Agent 编写 Benchmark,并测出它的第一个分数;
-- 打开一道题,问 AI 它在考什么;
-- 用改进后的 Benchmark 替换旧的,并删掉旧的;
-- 评估一个 Agent,再优化它,并读懂结果。
-
-读完之后,你会得到一个已发布的 Benchmark 和一张能对比所有已测版本的图表;如果某一轮优化超过了基线分,还会得到一个改进后的 Agent 版本。
-
-## 准备工作
-
-- PenguinHarness 0.2.13 或更高版本,桌面应用或 Web App 都可以。
-- 在**模型库**页面配置好模型。
-- 一个待测的 Agent:你在**智能体**页面创建的任意 Agent,或者每个 Project 自带的 **General Agent**(`default_agent`)。
-
-每一步里干活的 Agent 都需要 `agent-tuning` 插件里的 Skill:`benchmark-design`、`agent-evaluation` 和 `agent-optimization`。General Agent 已经预装了它们,下文的对话框默认也会选它。
-
-## 循环如何分工
-
-评估中心把工作分给四个角色:
-
-| 角色 | 做什么 | 不能做什么 |
-| --- | --- | --- |
-| Builder(出题方) | 编写题目和评分标准,试跑题目来校准难度,并记录基线分。 | 修改被测 Agent。 |
-| 被测 Agent | 一次做一道题,在一个全新的 Workspace 里工作,里面只有这道题的任务材料。 | 查看评分标准。 |
-| Evaluator(评估方) | 在一道题上把被测 Agent 运行一次,严格按评分标准给结果打分。 | 修改 Agent 或 Benchmark。 |
-| Optimizer(优化方) | 阅读分数、题干和测试运行的 Trace,一次按一个假设修改 Agent。 | 查看评分标准、参考答案或 Evaluator 的评分理由。 |
-
-Builder 和 Optimizer 都是你从评估中心的对话框里启动的,各自在一段独立的对话里工作。评估也在你发起的一段对话里进行,由**执行评估的智能体**负责协调。每个给一次运行打分的 Evaluator 都是子 Agent:一次评估或一轮优化,会为每道题的每次运行各派出一个 Evaluator。
-
-![Optimizer 和 Evaluator 各自能读什么、能改什么](/blog-assets/evaluation-center-roles-zh.png)
-
-Evaluator 和 Optimizer 是有意朝相反方向用力的。Evaluator 严格打分,而它依据的评分标准,Optimizer 始终看不到。Optimizer 会想尽办法提分,可它不知道答案是怎么判分的,要想稳定地提分,就只能让 Agent 真正更擅长这项任务。
-
-## 第 1 步:打开评估中心
-
-教程从评估中心页面开始。在侧栏选择**评估中心**。
-
-页面顶部有三张卡片,概括了整个流程(**出题**、**评估**、**优化**),下面是 Project 里的 Benchmark。每张 Benchmark 卡片显示题目数量、测过的 Agent、分数趋势和最新分数。
-
-![评估中心:三张流程卡片和 Benchmark 列表](/blog-assets/evaluation-center-overview-zh.png)
-
-## 第 2 步:让 AI 创建 Benchmark
-
-这一步,AI 会写出你的第一个 Benchmark:一组带评分标准的题目,难度经过校准,给你的 Agent 留出提升空间。
-
-1. 点击右上角的**用 AI 创建**。
-2. 在**被测智能体**里,选择这些题目面向的 Agent。
-3. 描述你想测试的能力和场景,或者在**试试这些示例**下面选一个示例。好的描述会点明任务难在哪里:来源相互冲突、信息缺失、格式要求严格。
-4. 选择**在新对话中编辑**。
-
-![「让 AI 创建 Benchmark」对话框](/blog-assets/evaluation-center-create-with-ai-zh.png)
-
-PenguinHarness 会打开一个新对话:完整的提示词已经填好,`benchmark-design` 和 `agent-evaluation` 两个 Skill 也已选中。消息还没有发出,你仍然可以修改提示词。
-
-发送之前,先看一眼消息框工具栏里的模型。Builder 试跑题目、测基线分时,都会用这个对话的模型来运行被测 Agent;之后从**评估**标签页发起的评估,则用 Agent 自己配置的模型运行,而图表会为每个模型单独画一条线。想让基线分和之后的分数落在同一条线上,就选 Agent 配置的那个模型。提示词和模型都确认无误后,再发送。
-
-接下来,Builder 会写出大约三道题,每道题包含一份给 Agent 的题干和一份满分 100 分的评分标准。它会试跑这些题目并加以调整,最多四轮,目标是让基线分低于 50,因为 Agent 已经能通过的 Benchmark 体现不出改进。每次试跑,每道题只运行一次。这期间,新 Benchmark 的卡片会显示**构建中**。校准结束后,只要基线分低于 85,Builder 就会记下 Agent 的第一个分数,也就是基线分,然后发布 Benchmark。
-
-## 第 3 步:读懂 Benchmark
-
-在相信任何分数之前,先看看 Builder 写出了什么。在 Benchmark 卡片上选择**查看**。Benchmark 页面包含:
-
-- **题目**:Benchmark 里的每一道题。
-- **分数随时间变化**:每个点代表一次评估。同一个 Agent 在同一模型、同一推理强度下的评估属于同一个系列,方便你追踪这个 Agent 各个版本的变化。
-- **评估明细**:所有评估按从新到旧排列,列出被测 Agent、版本、模型、推理强度、分数、成本和耗时。点开一行,可以看到每道题、每次运行的分数。
-
-![新 Benchmark 的页面:题目、图表上的基线分和评估明细表](/blog-assets/evaluation-center-benchmark-detail-zh.png)
-
-到第 8 步,图上有了更多结果,你会再回来看这张**分数随时间变化**图表。
-
-## 第 4 步:问 AI 一道题在考什么
-
-只有弄明白分数是怎么来的,分数才对你有用。这一步会打开一道题,让 AI 解释它在测什么。
-
-1. 在一道题旁边选择**查看详情**。题目会在文件浏览器里打开,里面有两个文件夹:**任务材料**是被测 Agent 拿到的内容;**评分标准**标着**被测 Agent 不可见**。
-2. 选择**问 AI**。
-3. 默认的问题是**解释这道题考什么、怎样才算答好**。可以直接用,也可以换一个示例,比如**评分细则在奖励什么?**
-4. 选择**在新对话中编辑**,然后发送消息。
-
-![在 Benchmark 中打开的一道题:任务材料、隐藏的评分标准和「问 AI」按钮](/blog-assets/evaluation-center-case-zh.png)
-
-Agent 会拿到题干和评分标准的路径,把两份都读一遍,再用直白的语言解释这道题。它只读,不改。
-
-## 第 5 步:用更好的 Benchmark 替换旧的
-
-这一步是可选的,Benchmark 本身需要调整时再做。Benchmark 一旦创建,题目就冻结了:无论 Web App 还是 API,都改不了题干或评分标准。这样才能保证同一个 Benchmark 上的所有分数可以相互比较。要改题目,就创建一个新的 Benchmark,把旧的换下来。
-
-1. 先问 AI 该改什么。题目上的示例问题「**题干怎样才能更清楚?**」问的正是这件事,回答会说明下一个 Benchmark 里这道题该怎么写。
-2. 再次选择**用 AI 创建**,仍然选同一个**被测智能体**。在描述里写明新 Benchmark 的名字、它要替换的旧 Benchmark,以及你想要的改动,例如:「创建 `report-writing-v2`,基于 `report-writing-v1`。保留它的三道题,写明第 2 题期望的篇幅,并把第 3 题的引用格式要求得更严格。」
-3. 发送消息,让 Builder 创建并校准新的 Benchmark。它会在新 Benchmark 上记下新的基线分。
-4. 新 Benchmark 发布后,回到评估中心,点击旧 Benchmark 卡片上的垃圾桶图标,再点**删除**确认。只有 Project 所有者能删除 Benchmark。
-
-> **删除无法撤销**。删除 Benchmark 会一并删掉它的题目和评估记录,之后无法恢复。
-
-## 第 6 步:评估 Agent
-
-评估会给 Agent 在某个 Benchmark 上打出分数。你可以用它给另一个想对比的 Agent 打分,也可以在手动改过 Agent 之后重新打分。
-
-1. 在 Benchmark 卡片或页面上选择**使用**,再切到**评估**标签页。
-2. 在**被测智能体**里选择要打分的 Agent。
-3. **执行评估的智能体**保持 **General Agent** 即可,也可以换成其他装有 `agent-evaluation` Skill 的 Agent。
-4. 按需修改**评估会话使用的模型**、**每题运行次数**和**说明**。这个模型用来运行执行评估的智能体自己的会话;被测 Agent 则用它自己配置的模型运行。**每题运行次数**默认取 Benchmark 自己的设置,用 AI 创建的 Benchmark 是 1;多跑几次,可以抵消单次运行的运气成分。
-5. 选择**在新对话中编辑**,然后发送。
-
-![「使用」对话框的「评估」标签页](/blog-assets/evaluation-center-use-evaluate-zh.png)
-
-执行评估的智能体会为每道题的每次运行派出一个 Evaluator 子 Agent。每个 Evaluator 给被测 Agent 准备一个全新的 Workspace,里面只有这道题的任务材料,然后运行被测 Agent,按评分标准给结果打分。全部运行结束后,执行评估的智能体算出平均分,记下这次评估。图表上会多出一个点,标注 Agent、模型和推理强度。
-
-> **对话去了哪里**。评估创建的对话都收在侧栏的**评估任务**文件夹里,不会挤占 Agent 自己的对话列表。
-
-## 第 7 步:优化 Agent
-
-优化有个前提:Agent 在这个 Benchmark 上要有基线分。如果创建 Benchmark 时它就是**被测智能体**,基线分已经有了;否则先评估它(第 6 步)。所选 Agent 还没有基线分时,**优化**标签页会提醒你。
-
-1. 选择**使用**,再切到**优化**标签页。
-2. 在**被测智能体**里选择要改进的 Agent。标签页会显示当前的基线分和目标分数。
-3. **执行优化的智能体**保持 **General Agent** 即可,也可以换成其他装有 `agent-optimization` 和 `agent-evaluation` 两个 Skill 的 Agent。
-4. 设置**最多轮数**(默认 3)和**目标分数**(默认比基线分高 10 分)。
-5. 按需填写**优化重点**,例如「重点改引用规则,写作风格不要动」。
-6. 选择**在新对话中编辑**,然后发送。
-
-![「使用」对话框的「优化」标签页,显示当前基线分和目标分数](/blog-assets/evaluation-center-use-optimize-zh.png)
-
-优化期间的每次评估,都沿用基线分记录的模型和推理强度来运行 Agent,与 Optimizer 自己的会话用什么模型无关。每一轮都遵循同样的模式:
-
-1. Optimizer 阅读最新分数和测试运行的 Trace,提出一个可证伪的假设,解释 Agent 为什么丢分。
-2. 确认当前版本已经有快照,然后只做一处修改:Agent 的指令、一个针对性的 Skill,或者一个安全的配置项。
-3. Evaluator 子 Agent 用修改后的 Agent 跑完整个 Benchmark。
-4. 总分严格提高,这次修改就保留为 Agent 的新版本;否则 Optimizer 恢复快照,下一轮换一个假设再试。
-
-![一轮优化:Optimizer 修改 Agent,Evaluator 给候选版本打分,分数上升时修改才会保留](/blog-assets/evaluation-center-optimize-round-zh.png)
-
-Agent 达到目标分数,或者轮数用完,循环就会停止。被否决的尝试不会进入 Benchmark 的记录;对话里会汇报每一轮的情况,包括失败的轮次。
-
-两个角色之间的隔离写进了各自的 Skill。Evaluator 只把这道题的任务材料复制进测试 Workspace,评分标准、参考答案和自己的评分理由一律保密。Optimizer 的 Skill 要求它不打开评分标准和评估文件,一旦私密的评估信息进入它的上下文,就立即停止。每一次读取、每一处修改都记录在 Trace 里,事后可以审计。
-
-## 第 8 步:对比 Agent,持续改进
-
-回到 Benchmark 页面,每个保留下来的版本都会作为一个新点,出现在这个 Agent 的系列里。在下图的例子中,版本 2 把分数从 43.33 提到 48.33,版本 3 达到 55,超过了 54 的目标,循环就在这里停止。再评估其他 Agent,或者让同一个 Agent 换一个模型、换一个推理强度,每个组合都会在这张图上有自己的系列。
-
-![优化后的分数走势:同一个 Benchmark 上还评估了第二个 Agent](/blog-assets/evaluation-center-results-zh.png)
-
-接下来还可以:
-
-- **就某次评估问 AI**。在**评估明细**里选中一行,点**问 AI**,试试**哪些题最弱、该改什么?**
-- **多试几个 Agent**。在**智能体**页面创建指令或模型不同的 Agent,在同一个 Benchmark 上逐个评估。
-- **回到更早的版本**。Optimizer 修改某个版本之前,会在 Agent 的目录里给它留一份快照 `snapshots/v<N>.tar.gz`。要恢复某个版本,打开 Agent 的设置,选择**导入快照**,再选中对应的文件;如果 PenguinHarness 运行在另一台机器上,先把文件复制到你的电脑。导入更早的版本时会先请你确认,而且只有 Project 所有者才能导入。
-
-## 常见问题
-
-- **Benchmark 卡片显示「创建失败」**。校准没有产出有效的试跑,或者最后一轮之后 Agent 仍然得到 85 分及以上,这个 Benchmark 既不能评估,也不能优化。先到创建 Benchmark 的那段对话里查看失败的试跑,再删掉它重新创建;如果是 Agent 分数太高,就要求出更难的题。
-- **「使用」对话框提示 Agent 缺少 Skill**。你选的执行评估或执行优化的智能体缺少 `agent-evaluation` 或 `agent-optimization`,多半跑不完。换回 **General Agent**,或者给这个 Agent 装上 `agent-tuning` 插件。
-- **「优化」标签页提示 Agent 没有基线分**。先在**评估**标签页评估它(第 6 步)。
-- **基线分和之后的评估不在同一条线上**。它们用的模型不同:基线分用的是创建 Benchmark 那段对话的模型,从**评估**标签页发起的评估用的是 Agent 配置的模型。见第 2 步。
-
-## 小结
-
-这一路,你让 AI 建好 Benchmark 并测出基线分,让 AI 解释了一道题,用更好的 Benchmark 替换了旧的,评估了一个 Agent,还让 Optimizer 在严格的 Evaluator 把关下改进了它。每道题、每个分数、每个版本都是 Project 里的文件,你可以随时查看、备份,也可以做版本管理。
-
-这些对话框里每个选项的说明,见[评估中心文档](https://penguin.ooo/docs/evaluation-center)。想了解这套循环的设计,请阅读[自我进化](https://penguin.ooo/docs/self-improvement)。
diff --git a/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.en.md b/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.en.md
deleted file mode 100644
index 28d5eb64..00000000
--- a/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.en.md
+++ /dev/null
@@ -1,132 +0,0 @@
----
-title: "The Easiest Way to Build AI Agents in 2026"
-date: 2026-07-22
-category: perspectives
-excerpt: Writing an agent now takes about ten lines of code. The cost has moved into the stack around it, where building, observability and evaluation are separate products to learn; this essay compares that cost and argues for automating it away.
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-The usual way to measure how hard it is to build an AI agent is to count the lines in a quickstart. By that measure the problem is solved: the leading toolkits reach a working agent in as few as four to fifteen lines.
-
-This essay asks what building an agent actually costs in 2026. Our answer is that the cost did not disappear; it moved into the stack around the agent. The better response is to remove that assembly cost rather than pay it. We show what the cost looks like on the most popular stack, how PenguinHarness removes it, and when you should choose something else.
-
-The stack around the agent has distinct layers: orchestration, which manages the agent's control flow; observability, which records what the agent did; and evaluation, which scores the results. Each is a separate product, with its own concepts, its own documentation, and often its own vendor. Writing the agent takes an afternoon. Learning the stack takes a quarter.
-
-## What a production agent stack costs
-
-On the most popular stack, a production agent means five separate products to learn and run. LangChain is the reasonable default and the most-used option in the space, so it makes the fairest example. To take an agent from prototype to something you would run in production, you assemble the following:
-
-| Layer | What you use | Who makes it | What you have to learn |
-| --- | --- | --- | --- |
-| Build | LangChain | LangChain Inc. | Tools, models, `create_agent` |
-| Orchestrate | LangGraph | LangChain Inc. | Nodes, edges, state, checkpoints, interrupts |
-| Observe | LangSmith or Langfuse | LangChain Inc. / Langfuse | SDK wiring and a hosted platform, or OpenTelemetry plus self-hosting |
-| Evaluate | LangSmith evals or Langfuse evals | same | Datasets, judges, experiment configuration |
-| Deploy | LangGraph Platform | LangChain Inc. | Yet another deployment model |
-
-Every one of these is a good product. That is not the problem. The problem is that they are five products.
-
-The observability row costs the most, because it is a fork in the road rather than a step. LangSmith is LangChain's own commercial platform with native integration. It is the easiest choice if you already use the stack, and it leaves you dependent on a managed SaaS. [Langfuse](https://github.com/langfuse/langfuse) is the open-source alternative: MIT-licensed apart from its enterprise folders, framework-agnostic, self-hostable with Docker or Kubernetes, and maintained by a team that joined ClickHouse in January 2026. In our judgment it is genuinely excellent. It is also a second vendor, a second data model, and a service you now operate.
-
-So before your agent does anything useful in production, someone on your team has learned two libraries, wired up a tracing SDK, stood up or subscribed to an observability platform, and built an evaluation dataset by hand. When the agent underperforms, the same person reads the traces and tunes the prompts, because nothing in this stack does that part for you.
-
-## The field as of July 2026
-
-The table compares five representative options that span the design space, with PenguinHarness in the last row. All figures were checked on 2026-07-22.
-
-| Tool | License | ★ | Min. code | UI / CLI / server | Observability | Evaluation |
-| --- | --- | ---: | --- | --- | --- | --- |
-| LangChain + LangGraph | MIT | 142k / 38k | ~15 lines | — / — / Platform | LangSmith (SaaS) or Langfuse | LangSmith or Langfuse |
-| CrewAI | MIT | 56k | ~55 lines, 5 files | — / scaffold / — | `verbose` logging | — |
-| OpenAI Agents SDK | MIT | 28k | ~27 lines | — / — / — | OpenAI Dashboard | — |
-| Google ADK | Apache-2.0 | 21k | ~8 lines | `adk web` / `adk run` / `adk api_server` | — | Built in, and deep |
-| Dify | Modified Apache-2.0 | 150k | 0 | Yes / Yes / REST | — | — |
-| PenguinHarness | Apache-2.0 | — | 0 | Yes / Yes / Yes | Built in (Trace) | Built in |
-
-Line counts come from each project's official quickstart and are not perfectly comparable. A dash (—) means *not documented in the sources we checked*, not *impossible*.
-
-Licensing needs a note, because "open source" is doing heavy lifting in this market. Dify ships under a *modified* Apache 2.0 license that forbids multi-tenant SaaS resale and forbids removing its branding from the frontend. n8n, the most-starred project in the space at 197k stars, uses the Sustainable Use License and is not open source at all. PenguinHarness is plain Apache-2.0.
-
-## The field is moving toward thin harnesses
-
-The strongest arguments against heavy agent frameworks now come from the vendors themselves.
-
-Anthropic's engineering guidance, still its canonical reference, says:
-
-> "the most successful implementations weren't using complex frameworks or specialized libraries. Instead, they were building with simple, composable patterns."
-
-The same guide warns that frameworks often add layers of abstraction that obscure the underlying prompts and responses, which makes agents harder to debug.
-
-Microsoft's own Agent Framework documentation opens with a line most vendors would not print:
-
-> "If you can write a function to handle the task, do that instead of using an AI agent."
-
-AutoGen, still the most-starred multi-agent framework at 60k stars, now begins its README with:
-
-> "AutoGen is now in maintenance mode. It will not receive new features or enhancements and is community managed going forward."
-
-LangChain itself moved its legacy chains, retrievers, and hub module into a separate `langchain-classic` package, to keep the core "lean and focused." Meanwhile, "harness" became the industry's word. Within roughly two months, AWS renamed its agent repo to `harness-sdk`, Microsoft shipped a Harness tier in Agent Framework, and Anthropic published *"A harness for every task."*
-
-The category is not dying. It is admitting that the abstractions were never the valuable part, which makes the assembly cost described above even harder to justify.
-
-## What PenguinHarness removes and automates
-
-PenguinHarness does not answer with a thinner framework. It removes the assembly step, and then it automates the tuning loop.
-
-### One install covers the five layers
-
-One install gives you all five rows of the first table, sharing one data directory and one message protocol:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web # http://127.0.0.1:7364 — first login: admin / penguin-2026, shown on the login page
-```
-
-The install includes chat with multiple Sessions, agent and Skill management, model configuration, usage and cost statistics, Trace observability, and an **Evaluation Center**, all wired together. There is nothing to subscribe to and nothing to self-host separately. Every request, tool call, and approval decision is already recorded, and a Session restores completely from its Trace. There is no tracing SDK to install, because there is no seam between products to instrument.
-
-### Zero lines, not fewer lines
-
-Running an agent needs no project, no imports, and no framework:
-
-```bash
-penguin run -m "Analyze data.csv and summarize quarterly sales"
-```
-
-The same engine drives the REPL (`penguin chat`), a headless server (`penguin server`), and the Web App.
-
-### An agent builds the agent
-
-You describe what you want. An agent writes the new agent's `AGENTS.md`, installs the Skills it needs, and hands you something that runs. One sentence produced a complete RAG application, with ingestion, retrieval, cited sources, and a web UI, for $0.02 of Tokens on DeepSeek V4 Pro. The [runnable example](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/build-agent-with-agent) is an 82-line script that builds a new agent from a plain-language requirement and then runs it.
-
-This works because **agents are editable data, not hardcoded constants**: prompts, Skills, and configuration are plain files on disk.
-
-### The tuning loop is automated too
-
-This answers the last step of the LangChain example, where a person reads the traces and tunes the prompts. Built-in Skills for Benchmark design, evaluation, and optimization let the agent score its own output, find where it lost points, and ship version N+1. No round starts until a snapshot of the current version exists, and every request can be replayed in the Trace view.
-
-On other stacks, *you* are the optimizer: you read the traces, tune the prompts, and rerun the evals. Here that loop is the agent's job, so you do not have to learn to be good at it.
-
-### The controls are still there
-
-Removing the assembly step does not remove oversight. Every tool call gets exactly one approval decision, in one of four modes: `allow-all`, `deny-all`, `read-only`, or `always-ask`. Each decision is audited in the Trace. PenguinHarness runs fully locally on as little as a single CPU, and reaches 1000+ models through any OpenAI-protocol endpoint.
-
-## When not to use PenguinHarness
-
-A comparison in which one option wins every row is an advertisement, not an analysis. In two cases, you should pick something else:
-
-- **Python shops.** The PenguinHarness SDK is TypeScript. The CLI and server are language-agnostic, but if your team works in Python and wants to extend agents by subclassing framework classes, most of the options above will fit better.
-- **Deep cloud integration.** If you are already all-in on Azure, Microsoft Agent Framework is the path of least resistance. On Vertex, ADK is.
-
-## Conclusion
-
-Building an agent is no longer the hard part; assembling and learning the stack around it still is. On the most popular option, that stack means two libraries, an observability platform from a first or third party, an evaluation harness, and a person who becomes the optimization loop. When you compare toolkits, count that whole stack, not the quickstart's line count.
-
-PenguinHarness collapses those layers into one install and hands the optimization loop to the agent. It is not a smaller framework: there is no framework to learn, and an agent writes the agent. For Python-first teams and deep cloud integrations, the alternatives above remain the better choice.
-
----
-
-- **Docs**: [Quickstart](https://penguin.ooo/docs/quickstart) · [Skills & Plugins](https://penguin.ooo/docs/skills) · [Sessions & Traces](https://penguin.ooo/docs/sessions-and-traces)
-- **Community**: [GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**Sources** — figures checked 2026-07-22: [LangChain v1 release notes](https://docs.langchain.com/oss/python/releases/langchain-v1) · [Langfuse](https://github.com/langfuse/langfuse) · [AutoGen README](https://github.com/microsoft/autogen) · [Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/) · [Google ADK](https://adk.dev/) · [CrewAI](https://docs.crewai.com/en/quickstart) · [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/quickstart/) · [Dify LICENSE](https://github.com/langgenius/dify/blob/main/LICENSE) · [n8n LICENSE](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) · [Anthropic, Building Effective AI Agents](https://www.anthropic.com/engineering/building-effective-agents)
diff --git a/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.zh.md b/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.zh.md
deleted file mode 100644
index 93fb4bff..00000000
--- a/packages/landing/content/blog/easiest-way-to-build-ai-agents-2026.zh.md
+++ /dev/null
@@ -1,132 +0,0 @@
----
-title: "2026 年构建 AI Agent 最简单的方式"
-date: 2026-07-22
-category: perspectives
-excerpt: 如今写一个 Agent 只要十行左右代码。成本挪到了它周边的技术栈,构建、观测、评估分属几个要各自学习的产品;本文比较这笔成本,并主张把它自动化掉。
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-衡量构建一个 AI Agent 有多难,通常的办法是数 quickstart 里的代码行数。按这个标准,问题已经解决了:主流工具包最少只要四到十五行代码,就能跑起一个可用的 Agent。
-
-本文要回答的问题是,2026 年构建一个 Agent 的真实成本在哪里。我们的回答是,成本没有消失,只是挪到了 Agent 周边的技术栈里。更好的做法是把这笔组装成本去掉,而不是老老实实付掉。下文会讲清楚这笔成本在最流行的技术栈上是什么样子,PenguinHarness 怎样去掉它,以及什么情况下你该选别的方案。
-
-Agent 周边的技术栈分成几个清晰的层次:编排,管理 Agent 的控制流;可观测,记录 Agent 做过什么;评估,给结果打分。每一层都是独立的产品,有自己的概念、自己的文档,往往还有自己的厂商。写 Agent 只要一个下午,学这套技术栈却要一个季度。
-
-## 生产级 Agent 技术栈要付出什么
-
-在最流行的技术栈上,一个生产级 Agent 意味着要学习、运行五个独立的产品。LangChain 是这个领域合理的默认选项,用的人也最多,拿它举例最公道。要把 Agent 从原型推到能上生产,你得拼出下面这一套:
-
-| 层次 | 用什么 | 出品方 | 要学什么 |
-| --- | --- | --- | --- |
-| 构建 | LangChain | LangChain Inc. | 工具、模型、`create_agent` |
-| 编排 | LangGraph | LangChain Inc. | 节点、边、状态、检查点、中断 |
-| 观测 | LangSmith 或 Langfuse | LangChain Inc. / Langfuse | 接入追踪 SDK 加托管平台,或者 OpenTelemetry 加自建部署 |
-| 评估 | LangSmith 评估或 Langfuse 评估 | 同上 | 数据集、评判器、实验配置 |
-| 部署 | LangGraph Platform | LangChain Inc. | 又一套部署模式 |
-
-这五样单拿出来都是好产品,问题不在这儿。问题在于它们是五个产品。
-
-观测这一行的代价最高,因为它不是一个步骤,而是一道岔路。LangSmith 是 LangChain 自家的商业平台,原生集成。如果你已经在用这套技术栈,它是最省事的选择,代价是从此依赖一个托管 SaaS。[Langfuse](https://github.com/langfuse/langfuse) 是开源的那条路:除企业版目录外采用 MIT 许可证,不绑定框架,可以用 Docker 或 Kubernetes 自建部署,团队已在 2026 年 1 月加入 ClickHouse。在我们看来,它确实做得很好。但它也意味着多一家厂商、多一套数据模型,以及一个从此要你自己运维的服务。
-
-所以,Agent 还没在生产环境里做成任何有用的事,团队里就已经有人学完了两个库,接好了追踪 SDK,自建或订阅了一个观测平台,还手工攒了一套评估数据集。等 Agent 表现不好,去读 trace、调提示词的还是这个人,因为这套技术栈里没有任何一环会替你做这件事。
-
-## 2026 年 7 月的格局
-
-下表对比了五个覆盖整个设计空间的代表性方案,PenguinHarness 列在最后一行。所有数据均于 2026-07-22 核对。
-
-| 工具 | 许可证 | ★ | 最少代码 | UI / CLI / 服务 | 观测 | 评估 |
-| --- | --- | ---: | --- | --- | --- | --- |
-| LangChain + LangGraph | MIT | 142k / 38k | 约 15 行 | — / — / Platform | LangSmith(SaaS)或 Langfuse | LangSmith 或 Langfuse |
-| CrewAI | MIT | 56k | 约 55 行,5 个文件 | — / 脚手架 / — | `verbose` 日志 | — |
-| OpenAI Agents SDK | MIT | 28k | 约 27 行 | — / — / — | OpenAI Dashboard | — |
-| Google ADK | Apache-2.0 | 21k | 约 8 行 | `adk web` / `adk run` / `adk api_server` | — | 内置,且做得很深 |
-| Dify | 修改版 Apache-2.0 | 150k | 0 | 有 / 有 / REST | — | — |
-| PenguinHarness | Apache-2.0 | — | 0 | 有 / 有 / 有 | 内置(Trace) | 内置 |
-
-代码行数取自各项目官方的 quickstart,彼此并不完全可比。破折号(—)表示「我们查到的资料里没有写」,不是「做不到」。
-
-关于许可证还得补一句,因为「开源」这个词在这个市场里用得太宽。Dify 用的是**修改版** Apache 2.0 许可证,禁止多租户 SaaS 转售,也禁止把前端的品牌标识去掉。n8n 是这个领域星标最多的项目,有 197k,但它用的是 Sustainable Use License,根本算不上开源。PenguinHarness 是标准的 Apache-2.0。
-
-## 行业正在转向轻量 Harness
-
-反对重型 Agent 框架最有力的说法,如今恰恰来自厂商自己。
-
-Anthropic 的工程指南至今仍是他们的权威参考,里面写道:
-
-> 「最成功的落地案例都没有用复杂框架或专用库,而是用简单、可组合的模式搭起来的。」
-
-同一份指南还提醒,框架往往多加一层抽象,把底层的提示词和响应挡在后面,让 Agent 更难调试。
-
-微软自家 Agent Framework 文档的开篇,摆着一句多数厂商不会印出来的话:
-
-> 「如果能写一个函数来完成这个任务,那就写函数,不要用 AI Agent。」
-
-AutoGen 以 60k 星标仍是星标最多的多 Agent 框架,它的 README 现在第一段就写着:
-
-> 「AutoGen 已进入维护模式,不再添加新功能或增强,今后由社区管理。」
-
-LangChain 自己也把遗留的 chain、retriever 和 hub 模块挪进了独立的 `langchain-classic` 包,好让核心「精简、专注」。与此同时,「Harness」成了行业通用词。大约两个月里,AWS 把 Agent 仓库改名为 `harness-sdk`,微软在 Agent Framework 里推出了 Harness 一档,Anthropic 发表了《A harness for every task》。
-
-这个品类没有死,它只是承认了一件事:真正有价值的从来不是那些抽象。这样一来,上文那笔组装成本就更说不过去了。
-
-## PenguinHarness 去掉了什么,又自动化了什么
-
-PenguinHarness 给出的答案不是一个更薄的框架。它先去掉组装这一步,再把调优循环自动化。
-
-### 一次安装覆盖全部五层
-
-装一次,就有了第一张表里的全部五行,它们共用同一个数据目录、同一套消息协议:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web # http://127.0.0.1:7364 — 首次登录:admin / penguin-2026,登录页上也有提示
-```
-
-安装后就有多会话对话、Agent 与 Skill 管理、模型配置、用量与成本统计、Trace 可观测,以及**评估中心**,彼此已经打通。不用订阅什么,也不用另外自建什么。每个请求、每次工具调用、每个审批决策都已经记录下来,会话可以从 Trace 完整恢复。这里没有追踪 SDK 要接,因为产品之间根本不存在需要埋点的接缝。
-
-### 是零行,不是「更少的行」
-
-运行一个 Agent,不用建工程,不用写 import,也不用框架:
-
-```bash
-penguin run -m "分析 data.csv 并总结季度销售情况"
-```
-
-同一套引擎还驱动着 REPL(`penguin chat`)、无头服务(`penguin server`)和 Web App。
-
-### 让 Agent 来写 Agent
-
-你把想要的东西描述出来,剩下的交给一个 Agent:它写好新 Agent 的 `AGENTS.md`,装上需要的 Skill,把一个能跑的成品交给你。我们用一句话生成过一个完整的 RAG 应用,文档摄取、检索、带出处的引用、Web 界面一应俱全,在 DeepSeek V4 Pro 上只花了 $0.02 的 Token。[可运行示例](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/build-agent-with-agent)是一个 82 行的脚本:根据一句自然语言需求构建新 Agent,然后运行它。
-
-这件事能成立,是因为 **Agent 是可编辑的数据,不是写死的常量**:提示词、Skill 和配置都是磁盘上的普通文件。
-
-### 调优循环也自动化了
-
-这正好回应了 LangChain 那个例子的最后一步:由人去读 trace、调提示词。内置的 Benchmark 设计、评估与优化 Skill,让 Agent 自己给输出打分,找出丢分的地方,然后发布第 N+1 版。当前版本的快照不存在,下一轮就不会开始;每个请求都能在 Trace 视图里回放。
-
-在别的技术栈上,优化器就是**你**自己:你读 trace,你调提示词,你重跑评估。在这里,这个循环归 Agent 管,你不必把自己练成这方面的行家。
-
-### 管控依然都在
-
-去掉组装这一步,不等于去掉监管。每次工具调用恰好触发一次审批决策,审批模式有四种:`allow-all`、`deny-all`、`read-only` 和 `always-ask`,每个决策都写入 Trace 留作审计。PenguinHarness 可以完全在本地运行,单个 CPU 也带得动,并能通过任意 OpenAI 协议端点接入 1000+ 模型。
-
-## 什么时候不该用 PenguinHarness
-
-一份每一行都是同一个选项获胜的对比是广告,不是分析。有两种情况,你该选别的:
-
-- **团队写 Python。** PenguinHarness 的 SDK 是 TypeScript。CLI 和服务端与语言无关,但如果你的团队用 Python,还想通过继承框架里的类来扩展 Agent,上面的多数方案会更顺手。
-- **深度绑定某一家云。** 已经全面押注 Azure 的话,Microsoft Agent Framework 阻力最小;如果是 Vertex,那就是 ADK。
-
-## 结论
-
-难的早就不是构建 Agent 本身,而是把它周边那套技术栈拼起来、学明白。在最流行的方案上,这意味着两个库、一个自家或第三方的观测平台、一套评估体系,外加一个人肉充当的优化循环。比较工具包时,要把这一整套栈都算进去,别只数 quickstart 的代码行数。
-
-PenguinHarness 把这些层收进一次安装,再把优化循环交给 Agent。它不是一个更小的框架:根本没有框架要学,写 Agent 的也是 Agent。对以 Python 为主的团队和深度绑定云平台的场景,上面提到的替代方案仍然更合适。
-
----
-
-- **文档**:[快速开始](https://penguin.ooo/docs/quickstart) · [技能与插件](https://penguin.ooo/docs/skills) · [Session 与 Trace](https://penguin.ooo/docs/sessions-and-traces)
-- **社区**:[GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**参考来源**(数据均于 2026-07-22 核对):[LangChain v1 发布说明](https://docs.langchain.com/oss/python/releases/langchain-v1) · [Langfuse](https://github.com/langfuse/langfuse) · [AutoGen README](https://github.com/microsoft/autogen) · [Microsoft Agent Framework](https://learn.microsoft.com/en-us/agent-framework/overview/) · [Google ADK](https://adk.dev/) · [CrewAI](https://docs.crewai.com/en/quickstart) · [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/quickstart/) · [Dify LICENSE](https://github.com/langgenius/dify/blob/main/LICENSE) · [n8n LICENSE](https://github.com/n8n-io/n8n/blob/master/LICENSE.md) · [Anthropic, Building Effective AI Agents](https://www.anthropic.com/engineering/building-effective-agents)
diff --git a/packages/landing/content/blog/fireworks-credits-amd.en.md b/packages/landing/content/blog/fireworks-credits-amd.en.md
deleted file mode 100644
index a4875520..00000000
--- a/packages/landing/content/blog/fireworks-credits-amd.en.md
+++ /dev/null
@@ -1,84 +0,0 @@
----
-title: "Partnering with the AMD AI Developer Program: $50 in free Fireworks credits, ready to use in PenguinHarness"
-date: 2026-07-20
-category: news
-excerpt: We have partnered with the AMD AI Developer Program to offer free Fireworks coupon codes. This guide shows how to apply for $50 in credits on AMD's global or China site, then set them up in PenguinHarness in three steps.
----
-
-> Written for PenguinHarness 0.1.0. Later releases may differ in some details.
-
-We have partnered with the **AMD AI Developer Program** to bring you free Fireworks redemption codes. Join the program and pass its review, and you receive a coupon code worth **$50 in Fireworks AI Credits**. PenguinHarness has a built-in Fireworks AI gateway group, with the OpenAI protocol, the base URL and five models preset, so you can use the credits as soon as they arrive.
-
-The program has a global site and a China site. The first two steps differ between them; from the application form onward, the steps are the same.
-
-> Page content, credit amounts and expiration dates may change. Check the application page and the approval email for the latest details.
-
-## Step 1: Create an account or sign in
-
-- **Global site:** open <https://developer.amd.com/ai-developer-program/>. In the **Join the AMD AI Developer Program** section, click **Create Account** and enter your personal information. If you already have an AMD ADP account, click **Log In** and follow the on-screen instructions.
-- **China site:** open <https://developer.amd.com.cn/login?source=2a6CMBw3K>. Click **注册账号** (Register) and enter your personal information to create an ADP account. If you already have one, click **登录** (Log in) and follow the prompts.
-
-![The Join the AMD AI Developer Program section on the global site, with the Create Account and Log In buttons](https://github.com/user-attachments/assets/47a3055b-9a95-40a1-80c6-e3bac7a9ac49)
-
-## Step 2: Open the application
-
-After you sign in:
-
-- **Global site:**
- 1. Click **Member Perks** in the top navigation bar.
- 2. Find **Cloud Credit Options**.
- 3. Click **Request Cloud Credits** at the bottom of the page.
-- **China site:** open the campaign from **新闻/公告** (News/Announcements) on the home page, or open the campaign page in **活动中心** (Events Center). Then click **去申请** (Apply).
-
-![Cloud Credit Options under Member Perks on the global site](https://github.com/user-attachments/assets/773f8cf1-d72f-4aa3-83b8-f31fc7c9ed9e)
-
-## Step 3: Fill in the application form
-
-Fill in the personal information the form asks for:
-
-- Under **Product Needed**, select **Fireworks AI**.
-- In the **Profile** section, give at least one public profile for account verification. LinkedIn, GitHub, a portfolio, a company or school profile, WeChat, WeCom and similar profiles all work. Reviewers look at these profiles to decide whether you are eligible.
-
-![The application form, with Fireworks AI selected under Product Needed](https://github.com/user-attachments/assets/12a49136-0956-4f29-9d47-f0e473615075)
-
-Complete the other required fields, marked with `*`. Check your email address, identity, product choice and profile links, then submit.
-
-## Step 4: Wait for the review
-
-AMD verifies your account and application. This usually takes 2–3 business days; the actual time depends on the number of applications, how complete your information is, and holidays.
-
-## Step 5: Receive the coupon code
-
-When your application is approved, AMD emails the address you applied with. The email contains a unique coupon code worth $50 in Fireworks AI Credits. Keep it safe: do not post it publicly, forward it, or commit it to a repository.
-
-![The coupon code in the approval email](https://github.com/user-attachments/assets/c53129c7-2c87-4510-a4e3-31f52598dc24)
-
-## Step 6: Redeem the credits and create an API key
-
-1. Open <https://fireworks.ai/> and sign in.
-2. Click **Redeem Promo** and enter the coupon code from the email to redeem the $50 credits.
-3. Click **Create API Key** to generate your Fireworks API key.
-
-![The Fireworks console, with the Redeem Promo and Create API Key buttons](https://github.com/user-attachments/assets/051a1e69-db7f-4867-b899-89981df15142)
-
-## Set it up in PenguinHarness
-
-With the API key in hand, setup takes three steps:
-
-1. Install PenguinHarness and start the Web App:
-
- ```bash
- curl -fsSL https://penguin.ooo/install.sh | sh
- penguin web # opens http://127.0.0.1:7364 (first login: admin / penguin-2026, shown on the login page)
- ```
-
-2. Open the **Models** page and find the **Fireworks AI** group. Click **Set API key for group** and paste the API key you just created. The group has five preset models, with base URLs and pricing filled in: GLM 5.2, Kimi K2.7 Code, DeepSeek V4 Pro, MiniMax M3 and DeepSeek V4 Flash. Set any of them as the default. To compare real TTFT and TPS before you choose, click the group's **Speed test** button.
-3. Go back to **Chat** and give the agent its first task, for example "Analyze data.csv and summarize quarterly sales".
-
-## References
-
-- [AMD AI Developer Program](https://developer.amd.com/ai-developer-program/)
-- [AMD AI Developer Program China site](https://developer.amd.com.cn/login?source=2a6CMBw3K)
-- [Official AMD video tutorial on applying for Cloud Credits](https://www.youtube.com/watch?v=masSW53JkTY)
-- The global-site steps and screenshots are adapted from WhatGhost's guides ([中文](https://github.com/WhatGhost/whatghost_Notebooks/blob/main/other/AMD_AI_Developer_Program_Credits_%E7%94%B3%E8%AF%B7%E6%8C%87%E5%8D%97.md) / [English](https://github.com/WhatGhost/whatghost_Notebooks/blob/main/other/AMD_AI_Developer_Program_Credits_Application_Guide_EN.md)), and the China-site steps and screenshots from the [official AMD AI Developer Program application guide](https://acn658bi9o7j.feishu.cn/docx/T8VIdjkZXoqyDwxwNjacbcsYngd) (in Chinese). Thanks to the original authors.
-- [PenguinHarness model configuration docs](https://penguin.ooo/docs/models)
diff --git a/packages/landing/content/blog/fireworks-credits-amd.zh.md b/packages/landing/content/blog/fireworks-credits-amd.zh.md
deleted file mode 100644
index 0b8bbce4..00000000
--- a/packages/landing/content/blog/fireworks-credits-amd.zh.md
+++ /dev/null
@@ -1,80 +0,0 @@
----
-title: 携手 AMD 开发者计划:免费领取 $50 Fireworks 额度,PenguinHarness 直接可用
-date: 2026-07-20
-category: news
-excerpt: 我们与 AMD AI Developer Program 合作,为大家提供免费的 Fireworks 兑换码。本文介绍如何在 AMD 国际站或中国站申请 $50 Credits,再在 PenguinHarness 里三步用起来。
----
-
-> 本文基于 PenguinHarness 0.1.0 撰写,之后的版本在部分细节上可能有所不同。
-
-我们与 **AMD AI Developer Program**(AMD 开发者计划)合作,为大家带来免费的 Fireworks 兑换码。加入计划并通过审核,就能拿到一个兑换码,可兑换 **$50 Fireworks AI Credits**。PenguinHarness 内置 Fireworks AI 网关分组,OpenAI 协议、base URL 和五个模型都已预置,额度到手就能用。
-
-这个计划有国际站和中国站两个站点。两边的前两步不同,从填写申请表开始,步骤完全相同。
-
-> 页面内容、Credits 金额与有效期可能调整,请以申请页面和审批邮件为准。
-
-## 第一步:注册或登录
-
-- **国际站**:打开 <https://developer.amd.com/ai-developer-program/>,在 **Join the AMD AI Developer Program** 区域点击 **Create Account**,填写个人信息。已有 AMD ADP 账号的,点击 **Log In**,按页面提示登录。
-- **中国站**:打开 <https://developer.amd.com.cn/login?source=2a6CMBw3K>,点击**注册账号**,填写个人信息,创建 ADP 账号。已有账号的,点击**登录**,按页面提示登录。
-
-<img width="327" height="690" alt="image 2" src="https://github.com/user-attachments/assets/e904e4aa-28e4-424e-98e1-373275000623" />
-
-## 第二步:进入申请页
-
-登录后:
-
-- **国际站**:
- 1. 点击顶部导航栏中的 **Member Perks**。
- 2. 找到 **Cloud Credit Options**。
- 3. 点击页面底部的 **Request Cloud Credits**。
-- **中国站**:从首页的**新闻/公告**进入活动,或者在**活动中心**打开相关活动页,然后点击**去申请**。
-
-<img width="1533" height="904" alt="image" src="https://github.com/user-attachments/assets/650ad0a8-6f27-4fea-b157-381d24fb3d15" />
-
-## 第三步:填写申请表
-
-按表单要求填写个人信息:
-
-- 在 **Product Needed** 处选择 **Fireworks AI**。
-- 在 **Profile** 处至少填写一个公开资料,用于账号验证。LinkedIn、GitHub、作品集、公司或学校主页、微信、企业微信等都可以。审核人员会查看这些资料,评估你的申请资格。
-
-填好其他带 `*` 的必填项,核对邮箱、身份、产品选项和公开资料链接,确认无误后提交。
-
-## 第四步:等待审核
-
-AMD 会验证你的账号和申请资料,通常需要 2–3 个工作日。实际时间会受申请量、资料完整度和节假日影响。
-
-## 第五步:接收兑换码
-
-审核通过后,AMD 会向申请邮箱发送邮件,邮件里有一个唯一的兑换码(Coupon Code),可兑换 $50 Fireworks AI Credits。请妥善保存,不要公开、转发,也不要提交到代码仓库。
-
-## 第六步:兑换 Credits 并创建 API key
-
-1. 打开 <https://fireworks.ai/> 并登录。
-2. 点击 **Redeem Promo**,输入邮件里的兑换码,兑换 $50 Credits。
-3. 点击 **Create API Key**,生成 Fireworks API key。
-
-<img width="1462" height="733" alt="image 1" src="https://github.com/user-attachments/assets/179c8f11-18f2-4e80-b0b0-4d48fd81db80" />
-
-## 在 PenguinHarness 中用起来
-
-拿到 API key 后,三步接入:
-
-1. 安装 PenguinHarness 并启动 Web App:
-
- ```bash
- curl -fsSL https://penguin.ooo/install.sh | sh
- penguin web # 打开 http://127.0.0.1:7364(首次登录:admin / penguin-2026,登录页上也有提示)
- ```
-
-2. 打开**模型仓库**页面,找到 **Fireworks AI** 分组,点击**统一配置 API key**,粘贴刚创建的 API key。分组预置了五个模型:GLM 5.2、Kimi K2.7 Code、DeepSeek V4 Pro、MiniMax M3 和 DeepSeek V4 Flash,base URL 与价格都已填好,任选一个设为默认即可。想先比较各模型的实测 TTFT 与 TPS,可以点击分组上的**测速**。
-3. 回到**对话**页面,把第一个任务交给 Agent,例如「分析 data.csv,输出各季度销售额汇总」。
-
-## 参考链接
-
-- [AMD AI Developer Program](https://developer.amd.com/ai-developer-program/)
-- [AMD AI Developer Program 中国站](https://developer.amd.com.cn/login?source=2a6CMBw3K)
-- [AMD 官方 Cloud Credits 申请视频教程](https://www.youtube.com/watch?v=masSW53JkTY)
-- 国际站的申请步骤与截图整理自 WhatGhost 的申请指南([中文](https://github.com/WhatGhost/whatghost_Notebooks/blob/main/other/AMD_AI_Developer_Program_Credits_%E7%94%B3%E8%AF%B7%E6%8C%87%E5%8D%97.md) / [English](https://github.com/WhatGhost/whatghost_Notebooks/blob/main/other/AMD_AI_Developer_Program_Credits_Application_Guide_EN.md)),中国站的申请步骤与截图整理自 [AMD AI Developer Program 官方申请指南](https://acn658bi9o7j.feishu.cn/docx/T8VIdjkZXoqyDwxwNjacbcsYngd)。感谢各位原作者。
-- [PenguinHarness 模型配置文档](https://penguin.ooo/docs/models)
diff --git a/packages/landing/content/blog/free-models-in-penguin-harness.en.md b/packages/landing/content/blog/free-models-in-penguin-harness.en.md
deleted file mode 100644
index da8f6193..00000000
--- a/packages/landing/content/blog/free-models-in-penguin-harness.en.md
+++ /dev/null
@@ -1,81 +0,0 @@
----
-title: Introducing the free models in PenguinHarness
-date: 2026-07-24
-category: news
-excerpt: The preset catalog now has four free OpenRouter entries, three of them new, so one free OpenRouter API key is all an agent needs. Here is the lineup, how to switch it on, and what the free tier does and does not give you.
----
-
-> Written for PenguinHarness 0.1.2. Later releases may differ in some details.
-
-PenguinHarness now ships free models in its preset catalog: rows priced at $0 per million Tokens, set up like every other preset with the protocol, base URL, pricing and context window filled in. The only thing between you and a running agent is an OpenRouter API key, which is itself free to create, and no balance is required.
-
-As of today, the free lineup has four entries, all in the OpenRouter group. Nemotron 3 Ultra was already in the catalog. Ling 3.0 Flash, Laguna M.1 and the Free Models Router are new.
-
-## The lineup
-
-| Provider group | Model id | Context | Price |
-| -------------- | ---------------------------------------- | ---------------------: | ----- |
-| OpenRouter | `nvidia/nemotron-3-ultra-550b-a55b:free` | 1,000,000 | $0 |
-| OpenRouter | `inclusionai/ling-3.0-flash:free` | 262,144 | $0 |
-| OpenRouter | `poolside/laguna-m.1:free` | 262,144 | $0 |
-| OpenRouter | `openrouter/free` | 128,000 (conservative) | $0 |
-
-![The OpenRouter group on the Models page: Ling 3.0 Flash (free), Nemotron 3 Ultra (free), Laguna M.1 (free) and the Free Models Router each carry the light-yellow Free badge](/blog-assets/free-models-page-en-light.webp)
-
-## Nemotron 3 Ultra (free)
-
-Nemotron 3 Ultra was the catalog's first free row, and it is still the largest. It is NVIDIA's open frontier model for reasoning and orchestration: a Mixture-of-Experts model with 55B active parameters out of 550B total, on a hybrid Transformer–Mamba architecture, with a context window of 1M Tokens. Pick this row to see how the harness's planning-heavy loops run on a large reasoning model without paying large-reasoning-model prices.
-
-## Ling 3.0 Flash (free)
-
-inclusionAI released Ling 3.0 Flash on July 23, and it joined the catalog the next day. It is a 124B-parameter Mixture-of-Experts model that activates only about 5.1B parameters per Token. inclusionAI names Token efficiency and production-scale agent inference, tool calling included, as its design priorities.
-
-That is close to what an agent harness does all day: dozens of short round trips, each carrying a tool schema and a growing transcript, where the efficiency of each step decides the cost. A sparse, tool-tuned model at $0 is a good default for that kind of traffic. Context is 262K; text only.
-
-## Laguna M.1 (free)
-
-Laguna M.1 joined the catalog alongside Ling. This row is the free tier of Poolside's flagship coding-agent model, which is optimized for complex software-engineering work: agent coding workflows with tool calling and reasoning, the same traffic a harness generates. Context is 262K; text only.
-
-## Free Models Router
-
-`openrouter/free` is not a model. It is OpenRouter's unified free-tier endpoint: each request goes to a random free model that is currently available on OpenRouter, chosen from the ones that support what the request needs, such as tool calling or structured outputs. Free models come and go upstream, but the router keeps answering, so you never have to track the current list yourself.
-
-Two decisions in the catalog are worth knowing:
-
-- **Context window.** The routed model's real context window changes from request to request, so the row records a deliberately conservative 128,000 instead of any one model's real figure. Long Sessions compact early instead of growing toward a window the routed model may not have.
-- **Text only.** The router itself accepts images, but the model behind a given request may not. The row is marked text-only on purpose, so PenguinHarness does not send images on this route and falls back to its usual text-only hand-off (file path plus `describe_image`).
-
-## Switch it on
-
-1. Create an API key at [openrouter.ai](https://openrouter.ai/). The free tier needs no payment method.
-2. Open the **Models** page:
- - A new Project already has the presets. Click **Set API key for group** on the OpenRouter group and paste the key once for the whole group.
- - An existing Project picks up the new rows with one click on **Sync presets**, next to the search box. Locally added models and stored API keys stay as they are.
-3. Or add a model from the terminal:
-
- ```bash
- penguin config model add --provider openrouter --model-id inclusionai/ling-3.0-flash:free --api-key <your-key> --set-default
- penguin config model list
- ```
-
-Set a free row as the Project default, or keep your default and pick a free row in the model picker when you start a Session. Models are chosen per Session, not tied to an agent. Free rows carry a light-yellow **Free** badge on the **Models** page and in the model picker, so they are easy to spot.
-
-## What free gives you, and what it does not
-
-Free models let you try the full harness: Workspaces, tools, Skills, subagents, and a **Costs** page that reads $0. They also handle light automation. The limits:
-
-- **Rate limits.** OpenRouter's free tier caps requests per minute and per day. A long Session or a Benchmark run can hit those caps.
-- **Data policy.** Free models run under OpenRouter's free-model terms, and the upstream provider may use your prompts as its terms allow. Send nothing you would not share.
-- **Availability and quality vary.** Free capacity is whatever providers choose to offer. Models get busy, slow down, and get withdrawn.
-- **The router's target changes per request.** Its real context window changes with it, which is why the catalog records a conservative window and long Sessions compact early. Consistency is not what `openrouter/free` is for: a fixed free row gives you more of it, and a paid row the most.
-
-For serious work, pick a paid model. The same catalog has plenty.
-
-## Get it
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Then open the **Models** page, add an OpenRouter key, and pick a free row.
diff --git a/packages/landing/content/blog/free-models-in-penguin-harness.zh.md b/packages/landing/content/blog/free-models-in-penguin-harness.zh.md
deleted file mode 100644
index f17555ff..00000000
--- a/packages/landing/content/blog/free-models-in-penguin-harness.zh.md
+++ /dev/null
@@ -1,81 +0,0 @@
----
-title: PenguinHarness 免费模型介绍
-date: 2026-07-24
-category: news
-excerpt: 预置目录现有四个免费的 OpenRouter 条目,其中三个是新加入的,一个免费的 OpenRouter API key 就能让 Agent 跑起来。本文介绍这套免费阵容、开启方法,以及免费档能提供什么、不能提供什么。
----
-
-> 本文基于 PenguinHarness 0.1.2 撰写,之后的版本在部分细节上可能有所不同。
-
-PenguinHarness 的预置目录现在带有免费模型:这些条目每百万 Token 价格为 $0,和其他预置条目一样,协议、base URL、价格和上下文窗口都已填好。要跑起一个 Agent,只需要一个 OpenRouter API key。创建 API key 本身免费,也不需要账户余额。
-
-截至今天,免费阵容共四个条目,全部在 OpenRouter 分组下。Nemotron 3 Ultra 之前就在目录里,Ling 3.0 Flash、Laguna M.1 和 Free Models Router 是新加入的。
-
-## 免费阵容
-
-| 供应商分组 | 模型 ID | 上下文 | 价格 |
-| ---------- | ---------------------------------------- | ----------------: | ---- |
-| OpenRouter | `nvidia/nemotron-3-ultra-550b-a55b:free` | 1,000,000 | $0 |
-| OpenRouter | `inclusionai/ling-3.0-flash:free` | 262,144 | $0 |
-| OpenRouter | `poolside/laguna-m.1:free` | 262,144 | $0 |
-| OpenRouter | `openrouter/free` | 128,000(保守值) | $0 |
-
-![模型仓库页面的 OpenRouter 分组:Ling 3.0 Flash (free)、Nemotron 3 Ultra (free)、Laguna M.1 (free) 和 Free Models Router 都带淡黄色的「免费」标签](/blog-assets/free-models-page-zh-light.webp)
-
-## Nemotron 3 Ultra (free)
-
-Nemotron 3 Ultra 是目录里的第一个免费条目,至今仍是最大的一个。它是 NVIDIA 面向推理与编排的开放前沿模型:MoE 架构,总参数 550B、激活参数 55B,采用 Transformer–Mamba 混合架构,上下文窗口 1M Token。想看看 Harness 里以规划为主的循环跑在大型推理模型上是什么样子,又不想付大型推理模型的价钱,就选这一条。
-
-## Ling 3.0 Flash (free)
-
-inclusionAI 在 7 月 23 日发布 Ling 3.0 Flash,第二天就进了目录。这是一个 124B 参数的 MoE 模型,每个 Token 只激活约 5.1B 参数。inclusionAI 给它定的设计重点是 Token 效率和生产规模的 Agent 推理,工具调用也包括在内。
-
-这几乎就是 Agent Harness 每天在做的事:几十次短往返,每次都带着工具 Schema 和不断变长的对话记录,每一步的效率决定了成本。一个稀疏、针对工具调用调优、价格为 $0 的模型,很适合默认承接这类流量。上下文 262K,仅支持文本。
-
-## Laguna M.1 (free)
-
-Laguna M.1 和 Ling 同时进入目录。这一条是 Poolside 旗舰编码 Agent 模型的免费档。这个模型针对复杂的软件工程任务优化,擅长带工具调用和推理的 Agent 编码工作流,正是 Harness 产生的那类流量。上下文 262K,仅支持文本。
-
-## Free Models Router
-
-`openrouter/free` 不是一个模型,而是 OpenRouter 的统一免费端点:每个请求会随机发给 OpenRouter 上当前可用的某个免费模型,候选模型都支持这个请求需要的能力,比如工具调用或结构化输出。上游的免费模型来来去去,这个路由始终能响应,你不用自己盯着最新的模型清单。
-
-目录为这一条做了两个决定,值得了解:
-
-- **上下文窗口。** 实际接收请求的模型每次都可能不同,真实上下文窗口也随之变化,所以这一条刻意记录了保守值 128,000,而不是某个模型的真实窗口。这样长会话会提前压缩,不会一直增长到目标模型未必撑得住的长度。
-- **仅支持文本。** 路由本身接受图片,但某次请求背后的模型未必支持。这一条特意标记为仅支持文本,所以 PenguinHarness 不会在这条路由上发送图片,而是改走平常的纯文本交接(文件路径加 `describe_image`)。
-
-## 开启免费模型
-
-1. 在 [openrouter.ai](https://openrouter.ai/) 创建 API key。免费档不需要绑定支付方式。
-2. 打开**模型仓库**页面:
- - 新建的 Project 已经带有这些预置条目。在 OpenRouter 分组上点击**统一配置 API key**,粘贴一次 API key,整个分组都会生效。
- - 已有的 Project 点一下搜索框旁的**同步预置**,就能拿到新条目。本地添加的模型和已保存的 API key 都不受影响。
-3. 也可以在终端里添加模型:
-
- ```bash
- penguin config model add --provider openrouter --model-id inclusionai/ling-3.0-flash:free --api-key <your-key> --set-default
- penguin config model list
- ```
-
-可以把某个免费条目设为 Project 的默认模型;也可以不动默认模型,开始会话时在模型选择器里选一个免费条目。模型按会话选择,不绑定 Agent。免费条目在**模型仓库**页面和模型选择器里都带淡黄色的**免费**标签,很容易认出来。
-
-## 免费能提供什么,不能提供什么
-
-免费模型足以完整体验 Harness:Workspace、工具、Skill、子 Agent,还有显示 $0 的**成本中心**。轻量的自动化任务也可以交给它们。需要注意的限制如下:
-
-- **速率限制。** OpenRouter 免费档限制每分钟和每天的请求数。一次长会话或一轮 Benchmark 运行就可能碰到上限。
-- **数据政策。** 免费模型按 OpenRouter 的免费模型条款运行,上游供应商可能在自家条款允许的范围内使用你发送的提示词。不愿公开的内容不要发送。
-- **可用性和质量有波动。** 免费容量取决于供应商愿意提供多少。模型会变忙、变慢,也会下线。
-- **路由目标每次请求都在变。** 真实上下文窗口也随之变化,所以目录记录的是保守窗口,长会话会提前压缩。`openrouter/free` 本来就不追求一致性:固定使用一个免费条目会更稳定,付费条目最稳定。
-
-正式的工作请选付费模型,同一份目录里有很多。
-
-## 获取方式
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-然后打开**模型仓库**页面,填入 OpenRouter API key,选一个免费条目。
diff --git a/packages/landing/content/blog/gemini-3-6-in-penguinharness.en.md b/packages/landing/content/blog/gemini-3-6-in-penguinharness.en.md
deleted file mode 100644
index 67df295d..00000000
--- a/packages/landing/content/blog/gemini-3-6-in-penguinharness.en.md
+++ /dev/null
@@ -1,159 +0,0 @@
----
-title: "PenguinHarness 0.1.1: Gemini 3.6 Flash and 3.5 Flash-Lite support"
-date: 2026-07-22
-category: news
-excerpt: Google reports Gemini 3.6 Flash at 63.9% on MLE-Bench, up from 49.7% for 3.5 Flash, at a lower price. PenguinHarness 0.1.1 adds it to the catalog along with 3.5 Flash-Lite. Here is why it matters, and the rest of the release.
----
-
-PenguinHarness 0.1.1 adds Gemini 3.6 Flash and 3.5 Flash-Lite to the model catalog, one day after Google announced them. By Google's numbers, 3.6 Flash scores 63.9% on MLE-Bench against 49.7% for 3.5 Flash, and it costs less. The release also makes max output tokens a per-model setting, corrects Gemini cache pricing, and adds `penguin update` for in-place upgrades.
-
-## Why Gemini 3.6 Flash matters for PenguinHarness
-
-Google announced [Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.5 Flash Cyber](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flash-lite-3-5-flash-cyber/) on July 21, 2026. For PenguinHarness, one number in that announcement matters more than the rest: **MLE-Bench, 63.9% against 3.5 Flash's 49.7%**.
-
-MLE-Bench measures machine-learning *engineering*: an agent doing the work of building, training and tuning an ML system, not answering questions about one. Google describes the result as a "significant improvement in ML Research, as seen in MLE Bench (63.9% vs. 49.7%)". That is a 14.2-point gain, the largest of the three percentage-scored panels in Google's chart below, and well above the 42.6% the same chart records for the previous Pro-generation model, 3.1 Pro.
-
-PenguinHarness exists so that agents build agents, faster, better and cheaper. Every loop the product runs is machine-learning engineering in miniature: stand a model up, hand an agent a task, score it against a private rubric, read the failures, tune, redeploy, and measure again. A model that is markedly better at exactly that work, priced in the Flash tier, is the strongest model yet for what this harness does all day.
-
-One caveat applies to every figure below: these are **Google's numbers, from Google's evaluation methodology**. We have not independently reproduced any of them.
-
-## The rest of the scoreboard
-
-![Gemini 3.6 Flash evaluation chart: DeepSWE v1.1, MLE-Bench, GDPval-AA v2 and OSWorld-Verified, each comparing Gemini 3.1 Pro, 3.5 Flash and 3.6 Flash](/blog-assets/gemini-3-6-flash-evals.webp)
-
-*Figure by Google, reproduced from its announcement post [Introducing Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.5 Flash Cyber](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flash-lite-3-5-flash-cyber/) (July 21, 2026). All numbers and the evaluation methodology are Google's, not ours.*
-
-MLE-Bench does not stand alone. Against 3.5 Flash, Google reports:
-
-| Benchmark | What it measures | 3.5 Flash | 3.6 Flash |
-| ---------------- | --------------------------------- | --------: | --------: |
-| MLE-Bench | Machine-learning engineering | 49.7% | 63.9% |
-| DeepSWE v1.1 | Long-horizon software engineering | 37% | 49% |
-| GDPval-AA v2 | Knowledge work | 1349 | 1421 |
-| OSWorld-Verified | Computer use | 78.4% | 83.0% |
-
-The other three rows are abilities an ML-engineering loop relies on. Long-horizon software engineering lets the agent edit the training config, the dataset builder and the serving flags without thrashing. Google attributes the DeepSWE jump to "higher precision with fewer unwanted code edits and reduced execution loops". Computer use is now a built-in client-side tool in the Gemini API and Gemini Enterprise.
-
-The model also ships with enhanced Frontier Safety safeguards against CBRN and cyber-offense misuse. Google says these make it "substantially more resistant to jailbreaks" while minimizing refusals for beneficial uses.
-
-## Fewer Tokens, fewer steps, lower price
-
-Google frames the release around what a harness like this one does all day: "Developers and customers building production AI agents need higher token efficiency, lower latency, and more reliable performance." An agent loop is not one long completion. It is dozens of short round trips, each carrying a tool schema, a growing transcript and a reasoning budget, so the efficiency of each step decides the cost.
-
-Google reports that 3.6 Flash uses **17% fewer output Tokens than 3.5 Flash** on the Artificial Analysis Index, with "up to 65%" observed on some benchmarks such as DeepSWE by Datacurve. It also "takes fewer reasoning steps and tool calls to accomplish multi-step workflows."
-
-That efficiency "is also combined with a lower price than 3.5 Flash": **$1.50 per million input Tokens and $7.50 per million output Tokens**. In Google's words, the combination "reduces the overall cost per agentic task, making agents more cost-effective to build and run." For a self-improving loop that re-runs a whole Benchmark suite every round, fewer Tokens, fewer steps and a lower unit price compound.
-
-## The models in PenguinHarness today
-
-One day after the announcement, the catalog carries both generally available models, each on two routes:
-
-| Provider group | Model id | Context | Vision |
-| -------------- | ------------------------------ | --------: | ------ |
-| Google Gemini | `gemini-3.6-flash` | 1,048,576 | yes |
-| Google Gemini | `gemini-3.5-flash-lite` | 1,048,576 | yes |
-| OpenRouter | `google/gemini-3.6-flash` | 1,048,576 | yes |
-| OpenRouter | `google/gemini-3.5-flash-lite` | 1,048,576 | yes |
-
-The Google endpoint rows are routed automatically by model id, so a `GEMINI_API_KEY` is all they need. The OpenRouter rows carry the OpenAI client type and the gateway's base URL inline, so they need only an OpenRouter key.
-
-Either way, the fastest path is the **Models** page in the Web App: find the row and add the key. From the CLI, it is one command:
-
-```bash
-penguin config model add --provider google --model-id gemini-3.6-flash --api-key <your-key>
-penguin config model list
-```
-
-Two related corrections landed with the new rows:
-
-- Gemini pricing now records the vendor's real cache-hit rate instead of repeating the input price in the cache bucket: $0.15 per million cached input Tokens for 3.6 Flash, and $0.03 for 3.5 Flash-Lite. The **Costs** page no longer overstates cache-heavy spend by an order of magnitude.
-- `google/gemini-3.5-flash` had its context window recorded as 1,000,000. The real figure, on both the gateway and the direct endpoint, is 1,048,576.
-
-### 3.5 Flash-Lite for fan-out work
-
-The second new model is built for volume rather than depth. As measured by Artificial Analysis, Gemini 3.5 Flash-Lite is the fastest model in the 3.5 series, at **350 output Tokens per second**. It is priced at **$0.30 per million input Tokens and $2.50 per million output Tokens**.
-
-Google positions it for high-throughput work such as agentic search and document processing. Its thinking level is configurable, so the same model can run cheap and shallow for bulk tasks, or higher for multi-step subagent workloads. Computer use is a built-in tool here too.
-
-Against the previous Flash-Lite generation, Google reports Terminal-Bench 2.1 at **54% vs 31%**, long context on GDM-MRCR v2 at **72.2% vs 60.1%**, and GDPval-AA v2 at **1140 vs 642**. On several agentic and coding evals it even passes 3 Flash: SWE-Bench Pro at **54.2% vs 49.6%**, and OSWorld-Verified at **74.0% vs 65.1%**.
-
-That fits the subagent pattern PenguinHarness runs on: a capable parent model plans, and a cheap, fast model fans out. Google's own post shows the same shape, with 3.5 Flash-Lite generating design concepts "alongside 3.6 Flash as the master agent."
-
-The third model in Google's announcement, 3.5 Flash Cyber, is out of reach on purpose. Google says it will be available only to governments and trusted partners through CodeMender, as part of a limited-access pilot program, so it is not in the PenguinHarness catalog.
-
-## The rest of 0.1.1
-
-The Gemini rows are one part of a much larger catalog refresh, and the catalog is one of many areas this release touched.
-
-### Models and core
-
-The SDK moved to **AgentHub 0.4.1**, a type-compatible upgrade. Its new supported-model registry lists model, base URL and client triples with modalities, context windows and per-million pricing, and it became the authoritative source for refreshing the catalog. Every context window, vision flag and price came from the registry rather than a vendor marketing page. The catalog grew from 57 to 70 entries. The new rows are:
-
-- Gemini 3.6 Flash and 3.5 Flash-Lite, on both routes above
-- Claude Fable 5 and Claude Sonnet 5 on Anthropic
-- Kimi K3 on Moonshot
-- Kimi K2.6, Qwen3.6 35B A3B and GLM 5.1 on OpenRouter
-- The same three on SiliconFlow
-
-The three SiliconFlow rows have no price on purpose: no source publishes their rates, and a guessed number is worse than none.
-
-Three fixes matter if you run agents against local or strict endpoints:
-
-- **Empty tool lists are no longer sent.** Strict OpenAI-compatible servers reject `tools: []` outright; vLLM answers `400 … tools must not be an empty array`. Every request the harness makes without tools used to hit this: the connectivity probe, Session title generation and the vision describer. The field is now left out entirely when the list is empty.
-- **Max output tokens is a per-model setting.** A 32k-context model served locally would refuse requests, because the agent-level default asked for 32,000 output Tokens. The **Models** page and `penguin config model add --max-tokens` now take a per-model cap that applies ahead of the agent default. Out-of-band requests use the smaller of the two.
-- **The default system prompt has new guardrails.** Agents that freed a busy port by killing its listener sometimes killed the harness's own services. The prompt now says never to kill a process you did not start, and to pick another free port instead. On a 401, a 403 or an invalid-key error, the agent retries once, then stops and asks you to update the key outside the conversation, because secret values do not belong in a chat transcript. Existing agents keep their current prompt; new agents get the rules.
-
-Two runtime settings changed shape:
-
-- **Thinking level** moved out of the **Models** page into a compact picker next to the model selector in the chat draft (`low` / `medium` / `high` / `xhigh`). It writes through to the agent's settings, so the Session created when you send uses it.
-- Subagents now inherit the parent Session's resolved `(provider, model_id)` pair and effective thinking level instead of falling back to the Project default. An explicit pair in the tool call still wins.
-
-### Web App
-
-The chat sidebar now groups conversations by Workspace by default. Each group is labeled with its directory name and ordered by newest Session, and auto-created temporary Workspaces share a single group instead of getting one each. You can pin groups to the top, and collapse state is saved per Project. Sessions created by subagents and scheduled tasks go into their own folders, and each group loads more Sessions on demand instead of fetching an unbounded list. Grouping by agent is still one toggle away.
-
-The model dropdown now lists models that have a configured key first, with the rest one click below. The collapsed sidebar is now a full eight-entry navigation rail with bilingual tooltips; before, it had no Benchmark entry at all. Custom provider groups and agents show initial-letter avatars on a background tinted by their id, with WCAG AA contrast in both themes, so same-named models in different groups are no longer indistinguishable.
-
-Chat rendering got a pass:
-
-- Links open in a new tab.
-- Long URLs and inline code wrap at the container edge, without splitting Latin words inside CJK text.
-- Wide tables scroll inside the message instead of widening the page.
-- Expanded subagent conversations render below the tool call's own output.
-- Three mobile dropdowns that overflowed the viewport by up to 143px now stay inside it.
-
-The daily Token tooltip on the **Costs** page follows the pointer and shows the cache hit rate. The task-stats line added when you copy a message was hardcoded in Chinese; it now goes through the dictionaries like everything else.
-
-### Skills
-
-Three new Skills join the AI App Development group: `vllm`, `ollama` and `llamafactory`. With them, an agent can stand up and tune the models it builds on, not just call them. The two serving Skills share a guided workflow: ask which model to serve, ask which engine you prefer, serve it, verify it, then register the endpoint with the CLI.
-
-The `penguin-cli` Skill (now v5) and `penguin-sdk` carry the hard rule the serving Skills rely on: configuring Penguin's own model uses the default data root, but models configured for an app under development must go into that app's own project directory. A separate [practice post](/blog/natural-language-training-loop) covers what changes once an agent holds all three: you stop typing the commands and start describing the outcome.
-
-A fourth Skill, `bento-slides`, joins the Office Productivity group. Ask for a presentation, and the agent authors a real Bento deck: one self-contained `.bento.html` file whose document is JSON, mapping your material onto charts, morph transitions and state slides instead of a wall of bullets. It is adapted, with attribution, from the Bento project's own MIT-licensed skill.
-
-`agenthub-models` tracks the 0.4.1 upgrade: the new supported-model registry, the config parameters a client may now reject outright, and the Gemini 3.6, Kimi K3 and GLM-5.2 families with their reasoning-effort settings.
-
-### Sites, docs and tooling
-
-The docs site and the landing page now share one navbar layout, with the same container width, logo block and right-hand cluster, after drifting apart into two near-identical implementations. The blog gained the **Tech practice** category, pinned posts, and per-post metadata: a date formatted for your language, an author line and a copy-link button. Both READMEs and the landing page now list the built-in Skills where people look for them.
-
-The README roadmap gained two items: agent company and templates, and company-level self evolving. The self-improvement example under `examples/` is now two runnable scripts in which a local open-weight model scores itself, edits its own files and re-runs, replacing a fixed illustrative transcript. The server now validates paging and date query parameters instead of trusting them.
-
-## Upgrading
-
-Upgrading is now one command. `penguin update` resolves the newest release, tells you exactly what it is about to do, and upgrades in place with the same mechanism you installed with:
-
-- For a tarball install, it re-runs the official installer, keeping your install directory and your choice of bundled runtime.
-- For an npm, pnpm, yarn or bun global install, it runs the matching global install.
-
-It refuses to touch a source checkout, and it never touches your data directory. `penguin update --check` reports the versions and changes nothing.
-
-## Get it
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-penguin web
-```
-
-Then open the **Models** page, add a Gemini or OpenRouter key, and pick `gemini-3.6-flash`. The full release notes are in [`changelog/0.1.1/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.1.1).
diff --git a/packages/landing/content/blog/gemini-3-6-in-penguinharness.zh.md b/packages/landing/content/blog/gemini-3-6-in-penguinharness.zh.md
deleted file mode 100644
index 8586cd6a..00000000
--- a/packages/landing/content/blog/gemini-3-6-in-penguinharness.zh.md
+++ /dev/null
@@ -1,159 +0,0 @@
----
-title: PenguinHarness 0.1.1:支持 Gemini 3.6 Flash 与 3.5 Flash-Lite
-date: 2026-07-22
-category: news
-excerpt: 按 Google 公布的数据,Gemini 3.6 Flash 在 MLE-Bench 上得分 63.9%,3.5 Flash 为 49.7%,价格却更低。PenguinHarness 0.1.1 已把它和 3.5 Flash-Lite 加入模型目录。本文讲清它为什么重要,以及这个版本的其余更新。
----
-
-Google 发布 Gemini 3.6 Flash 和 3.5 Flash-Lite 的第二天,PenguinHarness 0.1.1 就把它们加入了模型目录。按 Google 的数据,3.6 Flash 的 MLE-Bench 成绩是 63.9%,3.5 Flash 是 49.7%,而且价格更低。这个版本还把最大输出长度改成按模型设置,修正了 Gemini 的缓存价格,并新增 `penguin update` 命令用于原地升级。
-
-## Gemini 3.6 Flash 为什么对 PenguinHarness 重要
-
-Google 在 2026 年 7 月 21 日发布了 [Gemini 3.6 Flash、3.5 Flash-Lite 与 3.5 Flash Cyber](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flash-lite-3-5-flash-cyber/)。对 PenguinHarness 来说,这次发布里最重要的是一个数字:**MLE-Bench 63.9%,而 3.5 Flash 是 49.7%**。
-
-MLE-Bench 衡量的是机器学习的工程能力:Agent 亲手构建、训练、调优一套 ML 系统,而不是回答关于它的问题。Google 自己的说法是,这体现了「ML Research 上的显著提升,见 MLE Bench(63.9% vs. 49.7%)」。这是 14.2 个百分点的提升,在下面那张图的三项百分制基准里幅度最大,也明显高于同一张图给出的上一代 Pro 级模型 3.1 Pro 的 42.6%。
-
-PenguinHarness 存在的意义,就是让 Agent 构建 Agent,更快、更好、更便宜。这个产品跑的每一个循环,本质上都是一次小型的机器学习工程:把模型部署起来,交给 Agent 一个任务,用私有 Rubric 打分,读失败原因,调优,重新部署,再测一次。一个恰好在这件事上明显更强、又落在 Flash 价格档的模型,就是迄今最适合这套 Harness 日常工作的模型。
-
-下文的每个数字都有同一个前提:它们都是 **Google 自己的数据,按 Google 自己的评测方法得出**,我们没有独立复现过其中任何一项。
-
-## 其余的成绩单
-
-![Gemini 3.6 Flash 评测图:DeepSWE v1.1、MLE-Bench、GDPval-AA v2 与 OSWorld-Verified 四项,逐项对比 Gemini 3.1 Pro、3.5 Flash 与 3.6 Flash](/blog-assets/gemini-3-6-flash-evals.webp)
-
-图表出自 Google,转载自 Google 的发布博客 [Introducing Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.5 Flash Cyber](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-6-flash-3-5-flash-lite-3-5-flash-cyber/)(2026 年 7 月 21 日)。图中全部数据与评测方法均出自 Google,而非我们自测。
-
-MLE-Bench 不是孤证。对比 3.5 Flash,Google 给出的数据是:
-
-| 基准 | 衡量的能力 | 3.5 Flash | 3.6 Flash |
-| ---------------- | ------------ | --------: | --------: |
-| MLE-Bench | 机器学习工程 | 49.7% | 63.9% |
-| DeepSWE v1.1 | 长程软件工程 | 37% | 49% |
-| GDPval-AA v2 | 知识工作 | 1349 | 1421 |
-| OSWorld-Verified | 计算机操作 | 78.4% | 83.0% |
-
-另外三行恰好是机器学习工程循环所依赖的能力。长程软件工程能力决定了 Agent 修改训练配置、数据集脚本和部署参数时会不会反复折腾。Google 把 DeepSWE 的提升归因于「更高的精确度、更少的多余代码改动和更少的执行循环」。计算机操作现在是 Gemini API 与 Gemini Enterprise 中的内置客户端工具。
-
-模型还带上了增强的 Frontier Safety 防护,针对 CBRN 与网络攻击类滥用。Google 表示,这让它「明显更难被越狱」,同时尽量减少对正当用途的拒答。
-
-## 更少 Token、更少步数、更低单价
-
-Google 对这次发布的定位,恰好就是这类 Harness 每天在做的事:「构建生产级 AI Agent 的开发者与客户,需要更高的 Token 效率、更低的延迟和更可靠的表现。」Agent 循环不是一次长补全,而是几十次短往返,每一次都带着工具 Schema、不断增长的对话记录和一份推理预算,每一步的效率决定了成本。
-
-按 Google 的说法,在 Artificial Analysis Index 上,3.6 Flash 比 3.5 Flash **少消耗 17% 的输出 Token**,在 Datacurve 的 DeepSWE 等部分基准上观察到「最高 65%」。它还「完成多步工作流所需的推理步数与工具调用更少」。
-
-这种效率提升「同时还配上了低于 3.5 Flash 的价格」:**输入 $1.50 / 百万 Token,输出 $7.50 / 百万 Token**。用 Google 的话说,这套组合「降低了每个 Agent 任务的总体成本,让 Agent 的构建与运行更划算」。自我进化循环每一轮都要重跑一整套 Benchmark,更少的 Token、更少的步数和更低的单价会叠加起作用。
-
-## PenguinHarness 现已支持的模型
-
-发布一天之后,目录里已经收录了这两个公开可用的模型,各有两条接入路径:
-
-| 供应商分组 | 模型 ID | 上下文 | 视觉 |
-| ------------- | ------------------------------ | --------: | ---- |
-| Google Gemini | `gemini-3.6-flash` | 1,048,576 | 支持 |
-| Google Gemini | `gemini-3.5-flash-lite` | 1,048,576 | 支持 |
-| OpenRouter | `google/gemini-3.6-flash` | 1,048,576 | 支持 |
-| OpenRouter | `google/gemini-3.5-flash-lite` | 1,048,576 | 支持 |
-
-Google 直连的两行按模型 ID 自动路由,只需要一个 `GEMINI_API_KEY`。OpenRouter 的两行已经内联了 OpenAI 客户端类型和网关的 base URL,只需要一个 OpenRouter API key。
-
-无论走哪条路径,最快的方式都是 Web App 的**模型仓库**页面:找到那一行,填入 API key 即可。命令行也只要一条命令:
-
-```bash
-penguin config model add --provider google --model-id gemini-3.6-flash --api-key <your-key>
-penguin config model list
-```
-
-随新模型一起落地的还有两处修正:
-
-- Gemini 的价格现在按厂商真实的缓存命中价记录,不再把输入价重复填进缓存价:3.6 Flash 每百万缓存输入 Token $0.15,3.5 Flash-Lite $0.03。**成本中心**因此不再把缓存密集型开销高估一个数量级。
-- `google/gemini-3.5-flash` 的上下文窗口此前记为 1,000,000,网关与直连端点的真实值都是 1,048,576。
-
-### 3.5 Flash-Lite:负责扇出
-
-第二个新模型的目标是吞吐,而不是深度。按 Artificial Analysis 的测量,Gemini 3.5 Flash-Lite 是 3.5 系列中最快的模型,达到 **350 输出 Token/秒**。定价为**输入 $0.30 / 百万 Token,输出 $2.50 / 百万 Token**。
-
-Google 把它定位在 Agent 检索、文档处理这类高吞吐场景。它的思考等级可以配置,同一个模型既能调低,便宜地跑批量任务,也能调高,承担多步的子 Agent 负载。计算机操作在这里同样是内置工具。
-
-与上一代 Flash-Lite 相比,Google 给出的数据是:Terminal-Bench 2.1 **54% 对 31%**,长上下文 GDM-MRCR v2 **72.2% 对 60.1%**,GDPval-AA v2 **1140 对 642**。在若干 Agent 与编码评测上,它甚至超过了 3 Flash:SWE-Bench Pro **54.2% 对 49.6%**,OSWorld-Verified **74.0% 对 65.1%**。
-
-这很契合 PenguinHarness 所依赖的子 Agent 模式:能力更强的父模型负责规划,便宜且快的模型负责扇出执行。Google 自己的博客展示的也是这种形态:3.5 Flash-Lite「与担任主控 Agent 的 3.6 Flash 协同」,批量生成设计方案。
-
-发布中的第三个模型 3.5 Flash Cyber 刻意不对外开放。Google 表示,它将仅通过 CodeMender、以限量试点计划的形式提供给政府与可信合作伙伴,所以 PenguinHarness 的目录里没有它。
-
-## 0.1.1 的其余更新
-
-Gemini 这几行只是一次更大规模目录刷新的一部分,而目录也只是这个版本改动的诸多方面之一。
-
-### 模型与内核
-
-SDK 升级到 **AgentHub 0.4.1**,这是一次类型兼容的升级。它新增的受支持模型注册表列出模型、base URL 与 client 三元组,附带模态、上下文窗口和每百万 Token 价格,成了这次目录刷新的权威来源。所有上下文窗口、视觉标记与价格都取自注册表,而不是厂商的宣传页。目录条目从 57 条增加到 70 条,新增的条目有:
-
-- Gemini 3.6 Flash 与 3.5 Flash-Lite,覆盖上文的两条路径
-- Anthropic 的 Claude Fable 5 与 Claude Sonnet 5
-- Moonshot 的 Kimi K3
-- OpenRouter 的 Kimi K2.6、Qwen3.6 35B A3B 与 GLM 5.1
-- SiliconFlow 上的同样三个
-
-SiliconFlow 的三行刻意不带价格:没有任何来源公布它们的费率,而猜一个数字比留空更糟。
-
-如果你把 Agent 跑在本地或严格的端点上,有三处修复与你直接相关:
-
-- **空工具列表不再发出。** 严格的 OpenAI 兼容服务会直接拒绝 `tools: []`,vLLM 会返回 `400 … tools must not be an empty array`。Harness 所有不带工具的请求此前都会撞上它:连通性探测、会话标题生成和视觉描述。现在列表为空时,整个字段直接省略。
-- **最大输出长度改为按模型设置。** 本地部署的 32k 上下文模型会直接拒绝请求,因为 Agent 级默认值要求 32,000 个输出 Token。**模型仓库**页面和 `penguin config model add --max-tokens` 现在支持按模型设置上限,优先级高于 Agent 默认值。带外请求取两者中较小的一个。
-- **默认系统提示词加了护栏。** Agent 为了腾出被占用的端口而杀掉监听进程时,有时杀掉的是 Harness 自己的服务。提示词现在要求:绝不杀死不是自己启动的进程,端口被占就另选一个空闲端口。遇到 401、403 或无效 key 错误时,Agent 只重试一次,随后停下,请你在对话之外更新 key,因为密钥不该出现在聊天记录里。已有 Agent 保留当前的提示词,新建的 Agent 才带上这些规则。
-
-还有两项运行时设置换了形态:
-
-- **思考等级**从**模型仓库**页面挪到了对话草稿区模型选择器旁的紧凑选择器(`low` / `medium` / `high` / `xhigh`),并写回 Agent 设置,发送时创建的会话就会使用它。
-- 子 Agent 现在继承父会话已解析的 `(provider, model_id)` 二元组和生效的思考等级,不再回落到 Project 默认模型。工具调用里显式给出的二元组仍然优先。
-
-### Web App
-
-侧栏里的会话列表现在默认按 Workspace 分组。分组以目录名为标签,按最新会话排序,自动创建的临时 Workspace 合并为一个分组,不再一个会话一个分组。分组可以置顶,折叠状态按 Project 保存。子 Agent 和定时任务创建的会话会进入各自的文件夹,每个分组按需加载更多会话,不再一次拉取不限数量的列表。按 Agent 分组仍然只差一次切换。
-
-模型下拉框现在优先列出已配置 key 的模型,其余的点一下就能展开。收起后的侧栏变成完整的八项导航栏,带中英双语悬浮提示,此前它完全没有 Benchmark 入口。自定义供应商分组与 Agent 改用首字母头像,底色由 id 派生,深浅两种主题下都满足 WCAG AA 对比度,不同分组里的同名模型也就能分辨了。
-
-聊天渲染也做了一轮打磨:
-
-- 链接在新标签页打开。
-- 长 URL 与行内代码在容器边缘换行,同时不会把中文段落里的英文单词拦腰截断。
-- 宽表格在消息内部横向滚动,不再把页面撑宽。
-- 展开的子 Agent 对话渲染在工具调用自身输出的下方。
-- 三个此前在移动端最多溢出视口 143px 的下拉面板,现在留在视口内。
-
-**成本中心**的每日 Token 提示气泡会跟随指针,并显示缓存命中率。复制消息时生成的任务统计行此前是硬编码的中文,现在同样走词典。
-
-### Skill
-
-AI 应用开发分组新增三个 Skill:`vllm`、`ollama` 与 `llamafactory`。有了它们,Agent 不只是调用模型,还能把自己依赖的模型部署起来、调优出来。两个部署 Skill 共用同一套引导流程:先问要部署哪个模型,再问你偏好哪个引擎,然后部署、验证,最后用 CLI 注册端点。
-
-`penguin-cli` Skill(现为 v5)与 `penguin-sdk` 承载了部署 Skill 所依赖的硬性规则:给 Penguin 自身配置模型用默认数据根目录,而为开发中的应用配置模型,必须写进那个应用自己的项目目录。我们另有一篇[实践文章](/blog/natural-language-training-loop),讲 Agent 同时握有这三个 Skill 之后会发生什么变化:你不再敲命令,只描述你要的结果。
-
-第四个 Skill `bento-slides` 进入办公效率分组。让 Agent 做演示文稿,它会产出一份真正的 Bento 幻灯片:一个自包含的 `.bento.html` 文件,文档本身就是 JSON。它把你的素材映射到图表、morph 转场和状态页,而不是堆一屏要点。这个 Skill 改编自 Bento 项目自己的 MIT 许可 Skill,并标注了出处。
-
-`agenthub-models` 同步了 0.4.1 的变化:新的受支持模型注册表、客户端现在可能直接拒绝的配置参数,以及 Gemini 3.6、Kimi K3 和 GLM-5.2 系列和它们的推理强度设置。
-
-### 站点、文档与工具
-
-文档站和官网的导航栏此前逐渐分化成两份几乎相同的实现,现在共用同一套布局:同样的容器宽度、同样的 Logo 区块、同样的右侧按钮组。博客新增了**技术实践**分类、置顶文章,以及文章元信息:按语言格式化的日期、作者行和复制链接按钮。两份 README 与官网首页也在读者真正会去找的位置列出了内置 Skill。
-
-README 路线图新增两项:Agent company and templates,以及 company-level self evolving。`examples/` 下的自我进化示例重写成两个可运行脚本,让本地开放权重模型给自己打分、修改自己的文件并重跑,而不再是一段固定的示意记录。服务端现在会校验分页与日期查询参数,不再照单全收。
-
-## 升级
-
-升级现在只需一条命令。`penguin update` 会查出最新版本,先说明接下来要做什么,再按你当初的安装方式原地升级:
-
-- tarball 安装:重新执行官方安装脚本,保留原安装目录以及是否内置运行时的选择。
-- npm、pnpm、yarn 或 bun 全局安装:用对应的包管理器重新全局安装。
-
-源码检出的安装它会直接拒绝,你的数据目录它也从不触碰。`penguin update --check` 只报告版本,不做任何修改。
-
-## 获取方式
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-penguin web
-```
-
-然后打开**模型仓库**页面,填入 Gemini 或 OpenRouter 的 API key,选择 `gemini-3.6-flash` 即可。完整的发布说明见 [`changelog/0.1.1/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.1.1)。
diff --git a/packages/landing/content/blog/introducing-penguinharness.en.md b/packages/landing/content/blog/introducing-penguinharness.en.md
deleted file mode 100644
index 68417e82..00000000
--- a/packages/landing/content/blog/introducing-penguinharness.en.md
+++ /dev/null
@@ -1,126 +0,0 @@
----
-title: "Introducing PenguinHarness: agents that build agents"
-date: 2026-07-17
-category: news
-pinned: true
-excerpt: Our GDPevo Benchmark showed that agents can evolve themselves. PenguinHarness brings that to everyone as an open-source harness with recursive self-improvement, covering everything from building an agent in one sentence to improving it continuously.
----
-
-> Written for PenguinHarness 0.1.0. Later releases may differ in some details.
-
-Today we are releasing **PenguinHarness**, an open-source harness for building and evolving agents. It gives you a zero-code CLI and Web App, connected to 1000+ models. The idea behind it fits in one line:
-
-> With LangChain, you build agents by hand — at 1× speed. With PenguinHarness, agents build agents — at 100×.
-
-## Why we built PenguinHarness
-
-Before PenguinHarness, our team published the [GDPevo Benchmark](https://prism-shadow.github.io/GDPevo/). In GDPevo we systematically verified one thing: **agents can self-evolve**. An agent can score its own performance, find where it lost points, rewrite its own prompts and Skills, and score higher with each version.
-
-With that proven, the question became how everyone gets to use it. Self-evolution should not stay a curve in a paper; it should be infrastructure that works out of the box for every developer. Bringing an efficient self-improving harness to everyone is why we built PenguinHarness, and the goal is in the name: Efficient Self-Improving Harness for Everyone.
-
-## Better on complex tasks, at lower cost
-
-PenguinHarness uses a deliberately minimal toolset over clean low-level interfaces, so it makes fewer tool calls and spends fewer Tokens. It is tuned in depth for open models such as DeepSeek.
-
-We compared it head to head with Claude Code and OpenAI Codex on two suites. Each harness runs the model it is normally paired with, so the comparison shows the products as people actually use them.
-
-![Benchmark results: PenguinHarness leads the data-analysis suite and ties OpenAI Codex on coding, at a small fraction of either rival's cost](/blog-assets/benchmark-light.svg)
-
-### Complex data analysis
-
-15 tasks, one run each. PenguinHarness and OpenAI Codex ran at thinking level `xhigh`, Claude Code at `max`.
-
-| Framework | Model | Accuracy (%) | Tokens (M) | Cost ($) |
-| -------------- | --------------- | -----------: | ---------: | -------: |
-| PenguinHarness | DeepSeek V4 Pro | 66.67 | 18.04 | 0.55 |
-| Claude Code | Claude Opus 4.8 | 53.33 | 22.20 | 38.48 |
-| OpenAI Codex | GPT-5.5 | 53.33 | 13.72 | 19.41 |
-
-### Coding
-
-40 tasks × 2 runs; accuracy is over all 80 outcomes.
-
-| Framework | Model | Accuracy (%) | Tokens (M) | Cost ($) |
-| -------------- | --------------- | -----------: | ---------: | -------: |
-| PenguinHarness | DeepSeek V4 Pro | 71.25 | 200.00 | 3.81 |
-| Claude Code | Claude Opus 4.8 | 86.25 | 151.61 | 146.97 |
-| OpenAI Codex | GPT-5.5 | 71.25 | 251.20 | 220.08 |
-
-Tokens and cost are totals for the whole suite, not per-run means. On data analysis, PenguinHarness has the highest accuracy of the three, 66.67% against 53.33% for both others, while spending 1/35 of what Codex spent and 1/70 of what Claude Code spent. On coding, it ties Codex at 71.25% and trails Claude Code's 86.25%, but the whole suite cost $3.81, against $220.08 for Codex and $146.97 for Claude Code. The work is comparable, and the bills are one to two orders of magnitude apart.
-
-## Build an agent app from one sentence
-
-Type one sentence, and an agent builds the complete agent application for you, end to end: scaffold, code and run instructions. For example:
-
-```text
-Collect the docs from https://github.com/ericbuess/claude-code-docs and build a RAG app that answers Claude Code questions as a configuration expert, citing its sources.
-```
-
-The finished product is a docs expert with retrieval, cited sources that link to the original files, and built-in example questions:
-
-![The generated RAG app: a Claude Code docs expert answering with cited, clickable sources and example questions](/blog-assets/rag-app-en-light.webp)
-
-Generating the entire RAG app used $0.02 (¥0.2) of Tokens on DeepSeek V4 Pro.
-
-## Self-evolution: better with use
-
-With the PenguinHarness Skills, an agent evaluates and optimizes itself. In each round:
-
-1. The Optimizer runs several Evaluators in parallel to score the agent.
-2. It uses the scores and the run Traces to find where points were lost.
-3. It upgrades the agent from version N to N+1.
-
-A snapshot is taken before every round, and every request can be replayed on the **Trajectory** page. A demo video of self-evolution is coming soon.
-
-## Evolution within bounds, security first
-
-The biggest worry about self-evolution is losing control. PenguinHarness answers it with a contract, CONTRACT.md:
-
-- Evolution is strictly confined to the Workspace and Skills. The harness core, which is the security boundary, is never modified.
-- Tool calls require approval first, and every approval leaves an audit record.
-- A version snapshot is taken before any risky change, so any round of evolution can be rolled back.
-- PenguinHarness is fully open source and deployed locally, so your data stays on your machine, apart from the requests sent to the model provider you configure. This meets enterprise data-security requirements.
-
-## Supported models
-
-PenguinHarness ships with presets for these models:
-
-| Model | Providers |
-| ---------------- | -------------------------------------------------------------------------------- |
-| DeepSeek V4 | DeepSeek, OpenRouter, Fireworks AI, SiliconFlow, Qwen Token Plan |
-| Kimi K3 | Moonshot AI, OpenRouter, Qwen Pay-As-You-Go |
-| GLM 5.2 | Z.AI, OpenRouter, Fireworks AI, SiliconFlow, Qwen Token Plan, Qwen Pay-As-You-Go |
-| Hunyuan 3 | OpenRouter |
-| Qwen 3.8 Max | Qwen Token Plan (preview) |
-| GPT 5.5 | OpenAI, OpenRouter |
-| Gemini 3.5 Flash | Google Gemini, OpenRouter |
-| Claude Opus 4.8 | Anthropic, OpenRouter |
-
-Any OpenAI-protocol endpoint works too: pick a preset above, or point a custom endpoint at any of the 1000+ online and local models.
-
-## What's next
-
-- Public release of the benchmark suite
-- A desktop app
-- Windows support
-
-## Join the community
-
-A self-improving harness needs a community that improves with it. Come discuss, request features and contribute; opening your first issue is a good way to start.
-
-- [Discord](https://discord.gg/eFHKqqcU3D): chat with us and other developers in real time.
-- [X (Twitter)](https://x.com/code_hiyouga): follow the latest updates.
-- [WeChat group](https://github.com/Prism-Shadow/penguin-harness-community/blob/main/wechat/group.jpg): discussions in the Chinese community.
-- [GitHub](https://github.com/Prism-Shadow/penguin-harness): stars, issues and pull requests are all welcome.
-
-## Get started
-
-1. Install PenguinHarness with one command, then start the Web App. The installer supports Linux and macOS on x64 and arm64, and bundles its own Node runtime.
-
- ```bash
- curl -fsSL https://penguin.ooo/install.sh | sh
- penguin web # opens http://127.0.0.1:7364 (first login: admin / penguin-2026, shown on the login page)
- ```
-
-2. Open the **Models** page, add an API key to the DeepSeek or OpenRouter group, and set one of its models as the default.
-3. Go back to **Chat** and give the agent its first task, for example "Analyze data.csv and summarize quarterly sales".
diff --git a/packages/landing/content/blog/introducing-penguinharness.zh.md b/packages/landing/content/blog/introducing-penguinharness.zh.md
deleted file mode 100644
index d3ff20a1..00000000
--- a/packages/landing/content/blog/introducing-penguinharness.zh.md
+++ /dev/null
@@ -1,126 +0,0 @@
----
-title: PenguinHarness 正式发布:让 Agent 为你构建 Agent
-date: 2026-07-17
-category: news
-pinned: true
-excerpt: 我们在 GDPevo Benchmark 中验证了 Agent 可以自我进化,现在把这项能力带给所有人:一个支持递归自我进化的开源 Harness,从一句话构建 Agent,到持续自我进化,全部覆盖。
----
-
-> 本文基于 PenguinHarness 0.1.0 撰写,之后的版本在部分细节上可能有所不同。
-
-今天,我们正式发布 **PenguinHarness**,一个用于构建和进化 Agent 的开源 Harness,提供零代码的 CLI 与 Web App,可以连接 1000+ 模型。背后的理念一句话就能说清:
-
-> 使用 LangChain,以 1 倍速度人工构建 Agent;使用 PenguinHarness,以 100 倍速度用 Agent 构建 Agent。
-
-## 我们为什么做 PenguinHarness
-
-在 PenguinHarness 之前,我们团队发布了 [GDPevo Benchmark](https://prism-shadow.github.io/GDPevo/)。在 GDPevo 中,我们系统地验证了一件事:**Agent 可以自我进化**。Agent 能给自己的表现打分,找出失分的地方,改写自己的提示词和 Skill,分数随版本一路上升。
-
-能力验证了,问题就变成怎么让每个人都用上它。自我进化不该只是论文里的一条曲线,而应该是每个开发者开箱即用的基础设施。让每个人都用上高效的自我进化 Harness,就是我们做 PenguinHarness 的原因,这个目标也写在名字里:Efficient Self-Improving Harness for Everyone。
-
-## 复杂任务表现更好,成本更低
-
-PenguinHarness 在干净的底层接口上刻意只提供一套精简的工具集,所以工具调用更少,Token 消耗也更少。它还针对 DeepSeek 等开放模型做了深度适配。
-
-我们在两套题库上把它和 Claude Code、OpenAI Codex 正面对比。每个 Harness 都搭配它平时常用的模型,比的是大家实际会怎么用。
-
-![Benchmark 结果:PenguinHarness 在数据分析题库上准确率最高,编程题库与 OpenAI Codex 持平,成本只是两个对手的零头](/blog-assets/benchmark-light.svg)
-
-### 复杂数据分析
-
-15 题,每题运行一次。PenguinHarness 与 OpenAI Codex 的思考等级为 `xhigh`,Claude Code 为 `max`。
-
-| 实验框架 | 模型名称 | 准确率(%) | Token 用量(M) | 成本($) |
-| -------------- | --------------- | ----------: | --------------: | --------: |
-| PenguinHarness | DeepSeek V4 Pro | 66.67 | 18.04 | 0.55 |
-| Claude Code | Claude Opus 4.8 | 53.33 | 22.20 | 38.48 |
-| OpenAI Codex | GPT-5.5 | 53.33 | 13.72 | 19.41 |
-
-### 编程
-
-40 题 × 2 次运行,准确率按全部 80 次结果计算。
-
-| 实验框架 | 模型名称 | 准确率(%) | Token 用量(M) | 成本($) |
-| -------------- | --------------- | ----------: | --------------: | --------: |
-| PenguinHarness | DeepSeek V4 Pro | 71.25 | 200.00 | 3.81 |
-| Claude Code | Claude Opus 4.8 | 86.25 | 151.61 | 146.97 |
-| OpenAI Codex | GPT-5.5 | 71.25 | 251.20 | 220.08 |
-
-Token 与成本都是整套题库的合计,不是单次运行的均值。数据分析题库上,PenguinHarness 的准确率在三者中最高,为 66.67%,另外两家都是 53.33%,花的钱却只有 Codex 的 1/35、Claude Code 的 1/70。编程题库上,它与 Codex 同为 71.25%,低于 Claude Code 的 86.25%,但整套题只花了 $3.81,Codex 和 Claude Code 分别花了 $220.08 和 $146.97。活干得差不多,账单差出一到两个数量级。
-
-## 一句话构建 Agent 应用
-
-输入一句话,Agent 就能为你从头到尾构建一个完整的 Agent 应用,包括脚手架、代码和运行说明。例如:
-
-```text
-收集 https://github.com/ericbuess/claude-code-docs 的文档,做一个化身 Claude Code 配置专家、回答带来源引用的 RAG 问答应用。
-```
-
-做出来的成品是一个文档专家:检索增强,引用可点击直达原文,还内置了示例问题。
-
-![生成的 RAG 应用:Claude Code 配置专家,回答带可点击的来源引用与示例问题](/blog-assets/rag-app-zh-light.webp)
-
-生成整个 RAG 应用消耗了 0.2 元($0.02)的 Token,使用的模型是 DeepSeek V4 Pro。
-
-## 自我进化:越用越强
-
-借助 PenguinHarness 的 Skill,Agent 自己评估、自己优化。每一轮:
-
-1. Optimizer 并行调度多个 Evaluator,给 Agent 打分。
-2. Optimizer 根据分数和运行 Trace,定位失分原因。
-3. Optimizer 把 Agent 从版本 N 优化到版本 N+1。
-
-每轮开始前都会自动快照,每个请求都能在**轨迹观测**页面回放。自我进化的演示视频即将上线。
-
-## 进化有界,安全先行
-
-自我进化最大的顾虑是失控。PenguinHarness 用一份契约(CONTRACT.md)回答这个问题:
-
-- 进化严格限制在 Workspace 与 Skill 之内。Harness 核心是安全边界,从不修改。
-- 工具调用先经审批,每次审批都留有审计记录。
-- 有风险的修改之前先留版本快照,任何一轮进化都可以回滚。
-- PenguinHarness 完全开源、本地部署。除了发往你配置的模型供应商的请求,数据都留在你的机器上,满足企业级数据安全要求。
-
-## 支持的模型
-
-PenguinHarness 为以下模型提供了预置配置:
-
-| 模型 | 可用供应商 |
-| ---------------- | -------------------------------------------------------------------------------- |
-| DeepSeek V4 | DeepSeek、OpenRouter、Fireworks AI、SiliconFlow、Qwen Token Plan |
-| Kimi K3 | Moonshot AI、OpenRouter、Qwen Pay-As-You-Go |
-| GLM 5.2 | Z.AI、OpenRouter、Fireworks AI、SiliconFlow、Qwen Token Plan、Qwen Pay-As-You-Go |
-| Hunyuan 3 | OpenRouter |
-| Qwen 3.8 Max | Qwen Token Plan(预览) |
-| GPT 5.5 | OpenAI、OpenRouter |
-| Gemini 3.5 Flash | Google Gemini、OpenRouter |
-| Claude Opus 4.8 | Anthropic、OpenRouter |
-
-任何 OpenAI 协议的端点都能接入:从上表选择预置,或者用自定义端点连接 1000+ 在线与本地模型中的任意一个。
-
-## 发展计划
-
-- Benchmark 套件正式公开
-- 推出桌面应用
-- 支持 Windows
-
-## 加入社区
-
-会自我进化的 Harness,也需要一个一起进化的社区。欢迎加入讨论、提出需求、贡献代码,提交你的第一个 Issue 就是很好的开始。
-
-- [Discord](https://discord.gg/eFHKqqcU3D):与我们和其他开发者实时交流。
-- [X(Twitter)](https://x.com/code_hiyouga):关注最新动态。
-- [微信群](https://github.com/Prism-Shadow/penguin-harness-community/blob/main/wechat/group.jpg):中文社区讨论。
-- [GitHub](https://github.com/Prism-Shadow/penguin-harness):Star、Issue 和 PR 都欢迎。
-
-## 快速开始
-
-1. 用一条命令安装 PenguinHarness,然后启动 Web App。安装脚本支持 Linux 与 macOS(x64 / arm64),内嵌 Node 运行时。
-
- ```bash
- curl -fsSL https://penguin.ooo/install.sh | sh
- penguin web # 打开 http://127.0.0.1:7364(首次登录:admin / penguin-2026,登录页上也有提示)
- ```
-
-2. 打开**模型仓库**页面,在 DeepSeek 或 OpenRouter 分组里填入 API key,把组里的一个模型设为默认。
-3. 回到**对话**页面,把第一个任务交给 Agent,例如「分析 data.csv,输出各季度销售额汇总」。
diff --git a/packages/landing/content/blog/july-2026-updates.en.md b/packages/landing/content/blog/july-2026-updates.en.md
deleted file mode 100644
index 59ced707..00000000
--- a/packages/landing/content/blog/july-2026-updates.en.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: "July 2026 updates: scheduled tasks, Agent State snapshots and Benchmark scoreboards"
-date: 2026-07-17
-category: changelog
-excerpt: Scheduled tasks, Agent State snapshots with export and import, Benchmark scoreboards, the model identity principle and a one-line install have landed on main.
----
-
-> Written for PenguinHarness 0.0.1. Later releases may differ in some details.
-
-This month, a batch of updates aimed at stable self-evolution landed on main. Agents can now run on a schedule, Agent State is snapshotted before risky changes, and the Evaluation Center charts Benchmark results per model. The highlights are below.
-
-## Scheduled tasks and Agent State snapshots
-
-- **Scheduled tasks.** Each task is one TOML file under `agent_state/schedule/`. Cron-style schedules keep agents working on their own around the clock.
-- **Agent State snapshots, with export and import.** `system_config.yaml` records a `version`. Before a risky change, such as an optimization pass or an import that overwrites the current state, the Agent State is saved to `snapshots/v<version>.tar.gz`. You can restore a snapshot at any time, and restoring one keeps the live Vault.
-
-## Evaluation Center
-
-- **Benchmark scoreboards.** The Evaluation Center gains bundled suites, per-case scores and trend curves. Evaluations are charted per model, and each run links straight to its Session's Trace.
-- **Evaluations record the model.** The model reference moved from `benchmark_config` onto each evaluation, stored as a `provider` / `model_id` pair, so comparing models is direct.
-
-## Model system
-
-- **Model identity principle.** A model is uniquely identified by its `(provider, model_id)` pair. Connection details are stored inline on the model's entry in the Project config. When the credential is left empty, the client falls back to environment variables.
-- **Custom provider groups.** Besides the built-in vendor groups and the Custom group, you can create your own groups. They use the OpenAI protocol by default and require a base URL.
-- **Node 24 or later.** The runtime baseline is now Node ≥ 24. The bundled runtime, CI and the release pipeline have all moved to it.
-
-## Install and experience
-
-- **One-line install.** A new `install.sh` at the repository root runs as `curl | sh` and detects Linux / macOS and x64 / arm64. The release artifacts bundle the Node runtime, so you unpack them and run.
-- **Skill library redesign.** Skills now use their files as the runtime source of truth, the Skill cards are redesigned, and Skills can be invoked quickly. The built-in agents are merged into a single `default_agent`, and building and optimizing agents is handled entirely by the Skill library.
-- **Stability fixes.** Fixed colliding `tool_call_id` values when Gemini calls the same tool several times in a row, jitter when scrolling up through streaming output in a short scroll area, and the elapsed time shown for parallel tool calls in a WorkGroup.
diff --git a/packages/landing/content/blog/july-2026-updates.zh.md b/packages/landing/content/blog/july-2026-updates.zh.md
deleted file mode 100644
index 8ad873d9..00000000
--- a/packages/landing/content/blog/july-2026-updates.zh.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-title: 2026 年 7 月更新:定时任务、Agent State 快照与 Benchmark 记分板
-date: 2026-07-17
-category: changelog
-excerpt: 定时任务、支持导出导入的 Agent State 快照、Benchmark 记分板、模型确定原则与一键安装已合入 main。
----
-
-> 本文基于 PenguinHarness 0.0.1 撰写,之后的版本在部分细节上可能有所不同。
-
-本月有一批面向「稳定进化」的更新合入了 main。Agent 现在可以按计划定时运行,Agent State 会在有风险的修改之前自动快照,评估中心按模型绘制 Benchmark 结果。要点如下。
-
-## 定时任务与 Agent State 快照
-
-- **定时任务。** 每个任务是 `agent_state/schedule/` 下的一个 TOML 文件。按 cron 风格调度,Agent 可以全天候自主工作。
-- **Agent State 快照,支持导出导入。** `system_config.yaml` 记录当前的 `version`。在有风险的修改之前,比如一轮优化或一次覆盖当前状态的导入,Agent State 会先保存到 `snapshots/v<version>.tar.gz`。快照随时可以恢复,恢复时保留当前的密钥保险柜。
-
-## 评估中心
-
-- **Benchmark 记分板。** 评估中心新增内置题库、逐题评分和趋势曲线。评估记录按模型分别绘制,每次运行都能直接跳到对应会话的轨迹观测页面。
-- **每条评估记下所用模型。** 模型引用从 `benchmark_config` 移到了每条评估上,以 `provider` / `model_id` 成对记录,跨模型对比更直接。
-
-## 模型体系
-
-- **模型确定原则。** 模型由 `(provider, model_id)` 二元组唯一确定。连接信息内联在 Project 配置里对应的模型条目上。凭证留空时,客户端回退到环境变量。
-- **自建供应商分组。** 除了内置的厂商分组和 Custom 分组,还可以自建分组。自建分组默认使用 OpenAI 协议,base URL 必填。
-- **Node 24 及以上。** 运行时基线提升到 Node ≥ 24。内嵌运行时、CI 和发布流水线都已迁移。
-
-## 安装与体验
-
-- **一键安装。** 仓库根目录新增 `install.sh`,用 `curl | sh` 运行,自动识别 Linux / macOS 与 x64 / arm64。发布产物内嵌 Node 运行时,解压即可运行。
-- **技能库改版。** Skill 在运行时以文件为准,Skill 卡片重新设计,并支持快捷调用。内置 Agent 合并为一个 `default_agent`,Agent 的构建与优化完全交给技能库。
-- **稳定性修复。** 修复了三个问题:Gemini 连续调用同一个工具时 `tool_call_id` 冲突;滚动区域较矮时,向上滚动流式输出会抖动;WorkGroup 中并行工具调用的耗时显示不准。
diff --git a/packages/landing/content/blog/local-agents-on-amd-gpus.en.md b/packages/landing/content/blog/local-agents-on-amd-gpus.en.md
deleted file mode 100644
index ff8fbd18..00000000
--- a/packages/landing/content/blog/local-agents-on-amd-gpus.en.md
+++ /dev/null
@@ -1,325 +0,0 @@
----
-title: "Run a self-improving agent locally on an AMD GPU with PenguinHarness"
-date: 2026-07-20
-category: practice
-author: Ning Zhang (AMD), Yuyang Gao (AMD), Yaowei Zheng (PrismShadow)
-excerpt: "Learn how PenguinHarness is built, then run it on an AMD GPU with a local open-weight model: have an agent build another agent, and watch an agent raise its own score from about 4.6 to 9.8 out of 10, entirely on-device."
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-*AMD × PrismShadow — by Ning Zhang, Yuyang Gao (AMD) and Yaowei Zheng (PrismShadow).*
-
-In this tutorial you run PenguinHarness on fully local, open-weight infrastructure with an AMD GPU. Every Token is generated on the machine, and nothing is sent to a cloud API.
-
-You start with a short tour of how PenguinHarness is built. Then you serve a local model on the GPU, have an agent build a new agent from a one-sentence requirement, and watch an agent fail a scored task and improve itself by diagnosing the failure and rewriting its own files.
-
-By the end you will have:
-
-- `qwen3.6:35b` served by Ollama on your AMD GPU and registered as the default model in PenguinHarness,
-- a `commit-helper` agent that another agent built for you,
-- a self-improvement run that moves the score from about 4.6 to about 9.8 out of 10 in two rounds.
-
-The tutorial is for developers who are new to PenguinHarness. If you have no AMD GPU, the section after Step 5 shows how to use Fireworks credits instead.
-
-## Prerequisites
-
-- An AMD GPU supported by ROCm, with ROCm installed and enough GPU memory for `qwen3.6:35b`, a model of about 24 GB.
-- Ollama on the same machine.
-- A clone of the [PenguinHarness repository](https://github.com/Prism-Shadow/penguin-harness), with Node.js 24 or later and pnpm, to run the two examples in Steps 3 to 5.
-
-You do not need a cloud account or an API key.
-
-## How PenguinHarness is built
-
-PenguinHarness is an open-source AI agent harness: a complete TypeScript stack for *building* and *evolving* agents, not a single app. It deploys fully locally, can run on as little as a single CPU, and reaches 1000+ online and local models through one unified gateway. Its purpose fits in one line:
-
-> Efficient Self-Improving Harness for Everyone.
-
-The word "harness" is deliberate. PenguinHarness is not a heavyweight framework you build on top of. It is a thin, reliable, observable substrate that an agent stands inside, and one that an agent can reach back into and improve. Three pillars carry that idea:
-
-| Pillar | Meaning |
-| --- | --- |
-| **Simplest Is the Best** | A deliberately minimal toolset over clean low-level interfaces: fewer tool calls, fewer Tokens, complex tasks done efficiently. |
-| **Harness for building agents** | Either build one programmatically with the SDK (`createAgent` → `createSession` → `run`), or have an agent build a whole new agent for you from a plain-language requirement. |
-| **Harness for Recursive Self-Improvement** | With Skills, an agent evaluates and optimizes *itself*, improving recursively over time. |
-
-For the latter two, PenguinHarness is the first open-source implementation of its kind.
-
-### One kernel, many front-ends
-
-One install gives you four layers that share one data directory and one message protocol:
-
-```text
-┌─────────────┐ ┌─────────────────────────────┐
-│ CLI │ │ Web App (React SPA) │
-│ (penguin) │ │ ↑ OmniMessage over SSE │
-│ │ │ Server (Hono + SQLite) │
-└──────┬──────┘ └──────────────┬──────────────┘
- │ session.run(...) │ ← Human boundary
-┌──────┴────────────────────────┴──────────────┐
-│ core: context_engine (ReAct loop) │
-│ ├── LLMInterface ──→ AgentHub ──→ models │
-│ ├── EnvironmentInterface ──→ builtin tools│
-│ ├── Agent State (editable files) │
-│ └── Trace (append-only JSONL) │
-└──────────────────────────────────────────────┘
-```
-
-The center is the execution engine in `@prismshadow/penguin-core`. The CLI, the Server and the Web App are different "Human implementations" of that same engine. This one decision, a single kernel with many front-ends, keeps the whole system coherent. It follows from a few design tenets, described below.
-
-### OmniMessage: one protocol, three jobs
-
-Everything the system does is expressed as one message type, OmniMessage. It is at the same time:
-
-- the SDK's external interface (what you send in and stream back out),
-- the on-disk Trace format, and
-- the engine's internal currency.
-
-What streams live, what is stored on disk and what the model sees are literally the same object. No translation layer silently reshapes your data between "what happened" and "what was recorded". That identity is the foundation for the observability and recoverability that everything else relies on.
-
-### The three-interface boundary
-
-The engine speaks only OmniMessage and orchestrates the flow between exactly three boundaries:
-
-- **Human**: the user side. It is not a class: the SDK's single entry point, `session.run(newMessages, { approve, signal })`, *is* the Human boundary. Its input is a list of messages plus an approval callback, and its output is a stream of messages. The CLI and the Server are its two shipped implementations.
-- **LLM**: the model side (`LLMInterface`). All provider-specific protocol adaptation lives in the AgentHub gateway, and the core never imports a vendor SDK. That is why any OpenAI-compatible endpoint, including a local one, just works.
-- **Environment**: the tool side (`EnvironmentInterface`). It runs approved tool calls and streams the results back.
-
-Because the kernel contains no provider, tool or UI specifics, each side swaps by configuration alone. Today's local shell can become tomorrow's sandbox, and a CLI caller can become a web caller, while the core never changes.
-
-### Agents are editable data, not code
-
-An agent's entire behavior (its prompt, its Skills and its runtime config) lives as editable files on disk in `agent_state/`, not as hardcoded constants. This is the key to the whole project: what you can see, an agent can improve. Self-improvement is not a special engine feature. It is an agent editing the same files you would edit by hand, then evaluating itself again. Step 5 shows this in action.
-
-### Tenets that run through everything
-
-- Errors converge into messages. Model and tool failures never throw into the engine; they become messages the model can react to. Robustness is a property of the protocol, not of scattered try/catch.
-- Everything is observable. Every request, tool call and approval decision is appended to the Trace, and a Session restores fully from it.
-- Streaming comes first. Text streams Token by Token, and tool calls and results appear live.
-- Models and agents are decoupled. An agent never binds to a model: you choose one per Session, so the same agent can run different Sessions on different models.
-
-The layering in one sentence: *what is editable or recorded lives in files; what makes messages flow lives in the SDK; what needs a resident process and multiple users lives in the Server; the rest is rendering.*
-
-### Six built-in tools
-
-The first pillar is the easiest to overlook and the one you feel most in practice: the toolset is deliberately tiny. When this post was written, PenguinHarness shipped exactly six built-in tools:
-
-| Tool | Purpose |
-| --- | --- |
-| `exec_command` | Run a shell command in the Workspace (streams stdout/stderr) |
-| `input_command` | Drive a running command: write stdin, send Ctrl-C, poll output |
-| `run_subagent` | Delegate a self-contained subtask to a child agent |
-| `input_subagent` | Poll or follow up with a background subagent |
-| `read_image` | Read an image as image content (vision models) |
-| `describe_image` | Have a vision model describe an image for text-only models |
-
-There was no `read_file`, `write_file`, `edit_file`, `list_dir` or `grep` tool, on purpose. The shell was the universal interface, so reading, writing and editing files all went through `exec_command` (`cat`, `>`, `sed` and so on). Every extra tool adds schema to the prompt, Tokens to every call, and one more thing the model can pick wrong. Fewer tools mean fewer wrong calls and less Token overhead.
-
-You can read this straight out of a Trace. These are the only three tool calls an agent made to complete a CSV-cleanup case, all of them `exec_command`:
-
-```bash
-# 1. read the input — no read_file tool, just cat
-cat users.csv
-
-# 2. do the work — the shell lets the model reach for Python
-python3 -c "
-import csv
-rows = list(csv.DictReader(open('users.csv', newline='')))
-cleaned = [r for r in rows if (r.__setitem__('email', r['email'].strip().lower()) or r['email'])]
-seen, out = set(), []
-for r in cleaned:
- key = tuple(r.values())
- if key not in seen: seen.add(key); out.append(r)
-# ... write users_clean.csv, columns unchanged ...
-"
-
-# 3. verify by reading the result back — again just cat
-cat users_clean.csv
-```
-
-Read the file, transform it, check the result: three calls, one tool, no special file machinery. In the second call, because the interface is a shell, the model reached for Python to express the dedup logic, which no fixed `edit_file` tool could have done. A minimal toolset is not a limitation the model works around. It is why a capable model can finish a real task in so few steps.
-
-## Step 1: Install PenguinHarness
-
-Install PenguinHarness with the one-line installer:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-```
-
-The installer gives you the `penguin` CLI, which you use in the next step to register the local model.
-
-## Step 2: Serve qwen3.6:35b on the AMD GPU
-
-In this step you serve a local model through Ollama and register it with PenguinHarness.
-
-The model is `qwen3.6:35b`, a capable local open-weight model: a ~24 GB MoE with 36B total parameters, quantized to Q4_K_M. Under ROCm, Ollama detects the AMD GPU natively, with no architecture override, and loads the model into GPU memory. The same path spans AMD's ROCm-supported lineup, from Radeon PRO workstation cards such as the W7900 (48 GB, RDNA3) up to datacenter Instinct accelerators.
-
-Start Ollama and pull the model:
-
-```bash
-ollama serve & # if not already running as a service
-ollama pull qwen3.6:35b
-```
-
-Then register the model with PenguinHarness and make it the default:
-
-```bash
-penguin config model add \
- --model-id qwen3.6:35b \
- --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 \
- --api-key ollama --set-default
-```
-
-A single command is enough because the core treats any OpenAI-compatible endpoint the same way, and Ollama serves one at `http://localhost:11434/v1`.
-
-## Step 3: Have an agent build an agent
-
-In this step an agent builds a new agent for you. This is the second pillar, the harness for building agents, made concrete.
-
-The pillar has two faces. The first is the SDK: you embed an agent in your own program with a few lines, `createAgent()` → `createSession()` → `session.run(...)` (see Next steps at the end). The second follows from agents being editable data: if an agent is just files, *an agent can write those files for you*. That is what the built-in `agent-creation` Skill does (renamed `agent-initialization` in PenguinHarness 0.2.4). Given a plain-language requirement, an agent scaffolds a new agent: its directory layout, its `system_config.yaml` (name and description), and above all its `AGENTS.md`, the file that turns the requirement into behavior.
-
-The repository example [`examples/build-agent-with-agent/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/build-agent-with-agent) runs the whole flow as a self-contained, SDK-driven script on the local Ollama + qwen3.6:35b setup, with no cloud API. Its `README.md` covers the one-time Ollama configuration. Run it from the repository root:
-
-```bash
-pnpm install
-pnpm build
-pnpm --dir examples/build-agent-with-agent start
-```
-
-In phase 1, the script uses `createAgent`/`createSession`/`run` to drive `default_agent` into building `commit-helper`. The local `qwen3.6:35b` agent receives this request, using the `agent-creation` Skill:
-
-> Create a new agent called `commit-helper` that writes Conventional Commits messages — a `type(scope): subject` header (type from feat/fix/docs/…), imperative subject under ~50 chars, a blank line, then a body explaining the *why*.
-
-Working on its own, the agent creates the new agent's directory, copies a base config, sets its name and description, and writes a genuinely good `AGENTS.md`. The file encodes the header format, a type enum, a subject-length rule, "explain the *why*, not the *what*" for the body, an optional `BREAKING CHANGE`/`Closes #` footer, and even a heuristic for inferring the type from a diff (for example, "renames → refactor, not chore"). The content needs no hand-holding.
-
-In phase 2, the script loads the new agent and runs it on a change description: "added retry-with-backoff to the payment client because transient 503s broke checkout". Following only the `AGENTS.md` written for it, the freshly created `commit-helper` produces:
-
-```text
-fix(payment): add retry-with-backoff for transient gateway 503 errors
-
-Transient 503 responses from the payment gateway were causing
-checkout failures for users during peak traffic. Retry with
-exponential backoff gives the gateway time to recover, preventing
-spurious user-facing errors without requiring manual retries.
-```
-
-It even reasons out loud about whether the change is a `fix` or a `feat` before settling on `fix`. That behavior comes entirely from the `AGENTS.md` its parent agent wrote.
-
-## Step 4: Measure the baseline
-
-In this step you score an agent with a blank `AGENTS.md` on a task whose rules it cannot see.
-
-The task looks trivial: read a project notes file and produce a summary with a 2-sentence overview and exactly 3 key facts, *and follow the team's standard report format*. That last clause is the whole point. The "team format" is an arbitrary house convention: a specific marker line, a `# Report: <subject>` title, a `Classification: INTERNAL` line and a `Reviewed-by: Aurora Team` footer. It lives *only in the agent's `AGENTS.md`* and cannot be inferred from the task.
-
-The task carries a private rubric, a checklist the agent never sees, worth 10 points:
-
-- 5 points for content, which any capable model earns from the task alone;
-- 5 points for the convention, which is knowable only from `AGENTS.md`.
-
-The repository example [`examples/self-improving-agent/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/self-improving-agent) runs this task, and then the improvement loop, as a self-contained, SDK-driven script. It uses a deterministic, readable rubric with the same 10 points, runs on the same local Ollama + qwen3.6:35b setup, and uses a dedicated agent id, so your own agents are untouched. Start it from the repository root:
-
-```bash
-pnpm --dir examples/self-improving-agent start
-```
-
-The first score the script reports is the baseline. With a blank `AGENTS.md`, the model writes a perfectly reasonable summary but stably loses all 5 convention points, landing around 4.6 / 10. Exact numbers vary run to run. A local model is nondeterministic, so the script averages several runs per version, which is exactly why real Benchmarks use a `runs` count.
-
-The model could not have done otherwise. Nothing in the task reveals the house convention, so this is an *information gap, not a capability gap*, and it is why a stronger model cannot just "figure it out". Because every step is in the Trace, you can open the run and see precisely which points were missed.
-
-This is the honest starting point: on local hardware, an out-of-the-box agent does not ace a task whose rules live in files it has not learned yet. A measured, auditable, reproducible failure is something the agent can fix systematically by teaching itself, which is what the next step shows.
-
-## Step 5: Let the agent improve itself
-
-In this step the same run continues into the self-improvement loop. The agent does the diagnosing and the editing; nobody hands it the answer.
-
-The loop has five stages. There is no special engine code behind it: it is ordinary agent machinery, orchestrated by Skills.
-
-1. Benchmark: define capability cases, each with a private rubric, as in Step 4.
-2. Evaluate: run the agent over the cases and score them against the rubrics. Each run is an ordinary, fully traced Session.
-3. Read the Trace to find where points were lost: every score links back to the exact run, so you can see *why* a point was missed, not just that it was.
-4. Edit the agent's state: the agent's behavior lives in editable files (`AGENTS.md`, Skills, config). You, or an Optimizer agent, change those files to address the failure, producing version N+1.
-5. Snapshot, then keep or roll back: take a snapshot before each round, and keep N+1 only if the score strictly improves. Otherwise, roll back.
-
-In the example, the script supplies only the failure signal and the accepted example reports, then reports whether each round raised the score. It never writes the convention itself.
-
-### Round 1: learn the structure
-
-The agent gets two files and nothing else: the report that was just rejected, and a passing report from a *different* project. Nobody tells it the rules. It compares the two and infers the reusable house convention: the marker, the title shape, the metadata line and the sign-off. This is the "read the Trace to find where points were lost" stage, performed by the agent itself.
-
-The agent then writes the convention into its own `AGENTS.md`, producing version N+1. From a single example it correctly recovers the *structure*, but it cannot yet tell which tokens are fixed constants and which are per-report fields, because one example is ambiguous. So it generalizes the marker to a placeholder. Evaluated again, the score climbs to about 6.6 / 10. There is no retraining and no code change: the agent edited a text file it reads on every run.
-
-### Round 2: lock the constants
-
-Next, the agent sees *several* accepted reports from different projects that share the same marker and sign-off. It reasons that whatever is identical across all of them must be a fixed constant, reads its *own* N+1 `AGENTS.md`, and refines it, locking `<!-- ACME-DATA-PLATFORM -->` and `Reviewed-by: Aurora Team` to literals. Evaluated again, the score reaches about 9.8 / 10. That is recursion in the true sense: `state_{n+1} = agent.reflect(state_n, new_evidence)`.
-
-Each round strictly raised the score, which is the condition stage 5 sets for keeping an edit.
-
-## No AMD GPU? Use Fireworks credits
-
-You do not need an AMD GPU to try this. Through the AMD AI Developer Program, AMD partners with Fireworks AI to give eligible developers $50 in free Fireworks credits. Fireworks serves open-weight models over an OpenAI-compatible endpoint, so, just like the local Ollama setup, pointing PenguinHarness at it is a single-line change.
-
-Approval typically takes 2–3 business days. To get the credits:
-
-1. Sign up at the [AMD AI Developer Program](https://developer.amd.com/ai-developer-program/).
-2. Open **Member Perks → Cloud Credit Options → Request Cloud Credits**.
-3. In the form, choose **Fireworks AI** as the product needed, add at least one public profile link (GitHub, LinkedIn, etc.), and submit.
-4. AMD emails you a coupon code. Redeem it at [fireworks.ai](https://fireworks.ai/) via **Redeem Promo**, then generate an API key.
-
-[Getting Fireworks API Access](https://penguin.ooo/blog/fireworks-credits-amd) walks through redeeming the credits and creating the API key in detail.
-
-Then register Fireworks in PenguinHarness like any other endpoint:
-
-```bash
-penguin config model add --model-id <fireworks-model-id> \
- --provider custom --client-type openai \
- --base-url https://api.fireworks.ai/inference/v1 \
- --api-key <your-fireworks-key> --set-default
-```
-
-The harness and the one-line swap stay the same, whether the Tokens are generated on your own AMD GPU or on AMD-backed cloud credits. Keep your coupon code and key private. Program terms may change, so check the official page and the approval email for current details.
-
-## Results
-
-In our runs, the same model and task produced this climb. The numbers vary run to run.
-
-| Version | What the agent had written into its `AGENTS.md` | Score |
-| --- | --- | --- |
-| N (baseline) | Nothing: the file is blank | about 4.6 / 10 |
-| N+1 | The convention's structure, with the marker as a placeholder | about 6.6 / 10 |
-| N+2 | The same convention, with its constants locked to literals | about 9.8 / 10 |
-
-The score rose purely because the agent edited a text file it reads. The run shows three things:
-
-- Local-first works on AMD hardware. A complete build → run → self-evaluate loop ran on-device, on an AMD GPU, with no data leaving the machine. That is a real answer for privacy-sensitive and enterprise settings. Because it rides on ROCm + Ollama, the same setup runs across AMD's GPU range: a single Radeon PRO workstation card (such as the 48 GB W7900) comfortably runs models from 8B up to 30B-plus, while Instinct accelerators scale it further.
-- The thin model layer pays off. Provider adaptation lives entirely in the gateway, so "a local Ollama model" and "a frontier cloud API" are the same one-line change. You are never locked to a vendor, or to a GPU vendor. We ran this on an AMD GPU (ROCm), but nothing here is AMD-specific: the same steps work on an NVIDIA GPU (Ollama's CUDA backend) or on Apple Silicon. Only the Ollama runtime underneath changes; the harness, the commands and the examples stay identical.
-- Observability is built in everywhere. The local run produced the same append-only Trace and scoreboard linkage as any cloud run, and every number on the scoreboard links back to the exact Session that produced it. Evaluation is auditable by construction.
-
-## Next steps
-
-You served a local model on an AMD GPU, had an agent build `commit-helper`, and watched an agent raise its own score by editing its own `AGENTS.md`.
-
-The whole setup takes three commands, for any OpenAI-compatible endpoint, a local Ollama model included:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-
-# Point at any OpenAI-compatible endpoint — a local Ollama model included
-penguin config model add --model-id <your-model> \
- --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 --api-key ollama --set-default
-
-penguin web # or: penguin run --approve allow-all --message "..."
-```
-
-To embed an agent in your own program, use the SDK face of the "building agents" pillar. The core loop is three calls:
-
-```ts
-const agent = await createAgent({ agentId: "default_agent" });
-const session = await agent.createSession({ workspaceDir: process.cwd() });
-for await (const out of session.run([userText("...")], { approve: async () => "allow" })) { /* stream */ }
-```
-
-Complete, runnable versions live in [`examples/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples), including an agent that builds another agent and an agent that improves itself, both on local Ollama. Follow us on [GitHub](https://github.com/Prism-Shadow/penguin-harness) and open your first issue.
diff --git a/packages/landing/content/blog/local-agents-on-amd-gpus.zh.md b/packages/landing/content/blog/local-agents-on-amd-gpus.zh.md
deleted file mode 100644
index 2852e510..00000000
--- a/packages/landing/content/blog/local-agents-on-amd-gpus.zh.md
+++ /dev/null
@@ -1,318 +0,0 @@
----
-title: "在 AMD GPU 上用 PenguinHarness 本地运行自我进化的 Agent"
-date: 2026-07-20
-category: practice
-author: 张宁(AMD)、高钰洋(AMD)、郑耀威(PrismShadow)
-excerpt: "先了解 PenguinHarness 的架构,再在 AMD GPU 上用本地开源权重模型运行它:让一个 Agent 构建另一个 Agent,再看 Agent 把自己的分数从约 4.6 提升到 9.8(满分 10),全程在本机完成。"
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-AMD × PrismShadow——张宁、高钰洋(AMD),郑耀威(PrismShadow)。
-
-在这篇教程里,你将在 AMD GPU 上,用完全本地、开源权重的环境运行 PenguinHarness。每个 Token 都在本机生成,不向任何云端 API 发送内容。
-
-你会先简要了解 PenguinHarness 的架构,然后在 GPU 上部署一个本地模型,让一个 Agent 根据一句话需求构建新 Agent,再看一个 Agent 在打分任务上失败之后,如何通过诊断失分原因、改写自己的文件实现自我进化。
-
-完成本教程后,你将拥有:
-
-- 在你的 AMD GPU 上由 Ollama 部署、并注册为 PenguinHarness 默认模型的 `qwen3.6:35b`;
-- 一个由另一个 Agent 替你构建的 `commit-helper` Agent;
-- 一次自我进化运行:两轮之内,分数从约 4.6 提升到约 9.8(满分 10)。
-
-本教程面向初次接触 PenguinHarness 的开发者。如果没有 AMD GPU,第五步之后的一节介绍了如何改用 Fireworks 额度。
-
-## 准备工作
-
-- 一块受 ROCm 支持的 AMD GPU,已安装 ROCm,显存足以装下约 24 GB 的 `qwen3.6:35b`。
-- 同一台机器上装有 Ollama。
-- 克隆好的 [PenguinHarness 仓库](https://github.com/Prism-Shadow/penguin-harness),以及 Node.js 24 或更高版本和 pnpm,用来运行第三步到第五步的两个示例。
-
-不需要云端账号,也不需要 API Key。
-
-## PenguinHarness 的架构
-
-PenguinHarness 是一个开源的 AI Agent Harness:一套用于构建和进化 Agent 的完整 TypeScript 技术栈,而不是某一个具体应用。它可以完全本地部署,最低单个 CPU 即可运行,并通过一个统一网关接入 1000 多个在线和本地模型。它的宗旨可以用一句话概括:
-
-> Efficient Self-Improving Harness for Everyone.(为每个人打造的、高效的自我进化 Harness。)
-
-「Harness」这个词是刻意选的。PenguinHarness 不是一个让你在其上层层搭建的重型框架,而是一层轻薄、可靠、可观测的底座:Agent 在其中运行,也能反过来触及并改进它。三大支柱承载了这一理念:
-
-| 支柱 | 含义 |
-| --- | --- |
-| **Simplest Is the Best(大道至简)** | 在干净的底层接口之上,提供刻意精简的工具集:更少的工具调用、更少的 Token,高效完成复杂任务。 |
-| **构建 Agent 的 Harness** | 既可以用 SDK 编程构建(`createAgent` → `createSession` → `run`),也可以让一个 Agent 根据一句自然语言需求,替你构建一个全新的 Agent。 |
-| **递归自我进化的 Harness** | 借助 Skill,Agent 评估并优化自己,随时间递归改进。 |
-
-在后两根支柱上,PenguinHarness 是同类项目中第一个开源实现。
-
-### 一个内核,多个前端
-
-一次安装即可得到四层结构,它们共享同一个数据目录和同一套消息协议:
-
-```text
-┌─────────────┐ ┌─────────────────────────────┐
-│ CLI │ │ Web App (React SPA) │
-│ (penguin) │ │ ↑ OmniMessage over SSE │
-│ │ │ Server (Hono + SQLite) │
-└──────┬──────┘ └──────────────┬──────────────┘
- │ session.run(...) │ ← Human 边界
-┌──────┴────────────────────────┴──────────────┐
-│ core: context_engine(ReAct 循环) │
-│ ├── LLMInterface ──→ AgentHub ──→ 模型 │
-│ ├── EnvironmentInterface ──→ 内置工具 │
-│ ├── Agent State(可编辑文件) │
-│ └── Trace(只追加 JSONL) │
-└──────────────────────────────────────────────┘
-```
-
-系统的中心是 `@prismshadow/penguin-core` 里的执行引擎。CLI、Server 和 Web App 只是同一个引擎的不同「Human 实现」。「单一内核、多个前端」这一个决定,让整个系统保持自洽。它源自几条设计原则,下面逐一介绍。
-
-### OmniMessage:一套协议,三种职责
-
-系统所做的一切,都用同一种消息类型 OmniMessage 表达。它同时是:
-
-- SDK 的对外接口(你传入的消息和流式返回的消息);
-- 磁盘上的 Trace 格式;
-- 引擎内部流转的通用数据。
-
-实时流出的内容、落盘存储的内容、模型看到的内容,是字面意义上的同一个对象。在「发生了什么」和「记录了什么」之间,没有一个隐形的转换层在悄悄改写数据。正是这种同一性,构成了系统其余部分所依赖的可观测性和可恢复性的基础。
-
-### 三接口边界
-
-引擎只认 OmniMessage,并在恰好三个边界之间编排信息流:
-
-- **Human**:用户侧。它不是一个类:SDK 唯一的入口 `session.run(newMessages, { approve, signal })` 就是 Human 边界。输入是一组消息加一个审批回调,输出是一串流式消息。CLI 和 Server 是它的两个官方实现。
-- **LLM**:模型侧(`LLMInterface`)。所有与供应商相关的协议适配都放在 AgentHub 网关里,core 从不引入任何厂商 SDK。正因如此,任何 OpenAI 兼容端点(包括本地端点)都能直接使用。
-- **Environment**:工具侧(`EnvironmentInterface`)。它执行通过审批的工具调用,并把结果流式返回。
-
-内核不包含任何供应商、工具或 UI 的具体细节,所以每一侧都只靠配置就能替换。今天的本地 shell 明天可以换成沙箱,CLI 调用方也可以换成 Web 调用方,core 始终不变。
-
-### Agent 是可编辑的数据,不是代码
-
-Agent 的全部行为(提示词、Skill 和运行参数)都以可编辑文件的形式保存在磁盘上的 `agent_state/` 里,而不是写死的常量。这是整个项目的关键:你能看到的,Agent 就能改进。自我进化不是引擎的某个特殊功能,而是 Agent 去编辑那些你本来也可以手动编辑的文件,然后重新评估自己。第五步会展示这一点。
-
-### 贯穿始终的设计原则
-
-- 错误收敛为消息。模型和工具的失败从不向引擎抛出异常,而是变成模型可以据此应对的消息。健壮性是协议本身的属性,不靠散落各处的 try/catch。
-- 一切皆可观测。每一次请求、工具调用和审批决定都会追加进 Trace,Session 可以据此完整恢复。
-- 流式优先。文本逐 Token 流出,工具调用和结果实时呈现。
-- 模型与 Agent 解耦。Agent 从不绑定模型:模型在每个 Session 里单独选择,同一个 Agent 可以在不同的 Session 上跑不同的模型。
-
-这套分层可以用一句话总结:可编辑或需要记录的放在文件里;让消息流动的放在 SDK 里;需要常驻进程和多用户的放在 Server 里;其余都是渲染。
-
-### 六个内置工具
-
-第一根支柱最容易被忽略,实际使用中的感受却最深:工具集刻意做得极小。本文写作时,PenguinHarness 恰好只内置六个工具:
-
-| 工具 | 用途 |
-| --- | --- |
-| `exec_command` | 在 Workspace 里执行 shell 命令(流式返回 stdout/stderr) |
-| `input_command` | 操作运行中的命令:写入 stdin、发送 Ctrl-C、轮询输出 |
-| `run_subagent` | 把一个自包含的子任务委派给子 Agent |
-| `input_subagent` | 轮询后台子 Agent,或向它追加提示 |
-| `read_image` | 把图片作为图像内容读入(视觉模型) |
-| `describe_image` | 让视觉模型把图片描述成文字(供纯文本模型使用) |
-
-当时没有 `read_file`、`write_file`、`edit_file`、`list_dir` 或 `grep` 工具,这是有意为之。shell 就是通用接口,读、写、改文件全部通过 `exec_command` 完成(`cat`、`>`、`sed` 等)。每多一个工具,提示词里就多一段 schema,每次调用都多花一些 Token,模型也多一个可能选错的选项。工具越少,选错的调用越少,Token 开销也越小。
-
-这一点可以直接从 Trace 里读出来。下面是一个 Agent 完成一道 CSV 清洗题目时的全部三次工具调用,全都是 `exec_command`:
-
-```bash
-# 1. 读输入——没有 read_file 工具,直接 cat
-cat users.csv
-
-# 2. 干活——shell 让模型自然地用上 Python
-python3 -c "
-import csv
-rows = list(csv.DictReader(open('users.csv', newline='')))
-cleaned = [r for r in rows if (r.__setitem__('email', r['email'].strip().lower()) or r['email'])]
-seen, out = set(), []
-for r in cleaned:
- key = tuple(r.values())
- if key not in seen: seen.add(key); out.append(r)
-# ... 写出 users_clean.csv,保持列序不变 ...
-"
-
-# 3. 读回结果做自检——同样只是 cat
-cat users_clean.csv
-```
-
-读文件、做转换、核对结果:三次调用、一个工具,没有任何专用的文件机制。再看第二次调用:正因为接口是 shell,模型很自然地用 Python 写出了去重逻辑,这是任何固定的 `edit_file` 工具都做不到的。精简的工具集不是模型需要绕过的限制;有能力的模型之所以能用这么少的步骤完成真实任务,靠的正是它。
-
-## 第一步:安装 PenguinHarness
-
-用一行安装命令安装 PenguinHarness:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-```
-
-安装完成后就有了 `penguin` CLI,下一步用它注册本地模型。
-
-## 第二步:在 AMD GPU 上部署 qwen3.6:35b
-
-这一步用 Ollama 部署一个本地模型,并在 PenguinHarness 中注册它。
-
-模型是 `qwen3.6:35b`,一个能力不俗的本地开源权重模型:约 24 GB 的 MoE,总参数量 36B,Q4_K_M 量化。在 ROCm 下,Ollama 能原生识别 AMD GPU,无需设置任何架构 override,就能把模型加载进显存。这条路径覆盖 AMD 受 ROCm 支持的整个产品线,从 Radeon PRO 工作站显卡(如 W7900,48 GB,RDNA3)一直到数据中心的 Instinct 加速卡。
-
-启动 Ollama 并拉取模型:
-
-```bash
-ollama serve & # 若尚未作为服务运行
-ollama pull qwen3.6:35b
-```
-
-然后在 PenguinHarness 中注册这个模型,并设为默认模型:
-
-```bash
-penguin config model add \
- --model-id qwen3.6:35b \
- --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 \
- --api-key ollama --set-default
-```
-
-一条命令就够了,因为 core 对任何 OpenAI 兼容端点一视同仁,而 Ollama 正好在 `http://localhost:11434/v1` 提供这样一个端点。
-
-## 第三步:让 Agent 构建新 Agent
-
-这一步由一个 Agent 替你构建新 Agent,第二根支柱「构建 Agent 的 Harness」在这里落到实处。
-
-这根支柱有两面。第一面是 SDK:几行代码就能把 Agent 嵌进你自己的程序,即 `createAgent()` → `createSession()` → `session.run(...)`(见文末的「后续步骤」)。第二面源于「Agent 是可编辑的数据」:既然 Agent 不过是一组文件,Agent 就能替你把这些文件写出来。内置的 `agent-creation` Skill(0.2.4 起更名为 `agent-initialization`)做的正是这件事。给它一句自然语言需求,Agent 就能搭建出一个新 Agent:目录结构、`system_config.yaml`(名称和描述),以及最关键的 `AGENTS.md`,也就是把需求变成行为的那个文件。
-
-仓库里的示例 [`examples/build-agent-with-agent/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/build-agent-with-agent) 把整个流程做成了一个自包含、由 SDK 驱动的脚本,跑在本地 Ollama + qwen3.6:35b 上,不调用任何云端 API。一次性的 Ollama 配置见其 `README.md`。在仓库根目录运行:
-
-```bash
-pnpm install
-pnpm build
-pnpm --dir examples/build-agent-with-agent start
-```
-
-第一阶段,脚本通过 `createAgent`/`createSession`/`run` 驱动 `default_agent` 构建 `commit-helper`。本地的 `qwen3.6:35b` Agent 借助 `agent-creation` Skill,收到的请求是:
-
-> 创建一个叫 `commit-helper` 的新 Agent,专门写 Conventional Commits 提交信息:`type(scope): subject` 格式的标题(type 取自 feat/fix/docs/…),subject 用祈使句并控制在约 50 个字符以内,空一行,然后是一段解释为什么要改的正文。
-
-Agent 会自主创建新 Agent 的目录、复制一份基础配置、设置名称和描述,并写出一份质量相当高的 `AGENTS.md`。文件里写明了标题格式、type 枚举、subject 长度规则、正文要「解释为什么改,而不是改了什么」、可选的 `BREAKING CHANGE`/`Closes #` 脚注,甚至还有一条从 diff 推断 type 的经验规则(例如「重命名 → refactor,而不是 chore」)。内容上完全不需要人工提点。
-
-第二阶段,脚本加载这个新 Agent,让它处理一段改动描述:「给支付客户端加了带退避的重试,因为网关偶发的 503 导致下单失败」。刚创建好的 `commit-helper` 只依据为它写的 `AGENTS.md`,产出了:
-
-```text
-fix(payment): add retry-with-backoff for transient gateway 503 errors
-
-Transient 503 responses from the payment gateway were causing
-checkout failures for users during peak traffic. Retry with
-exponential backoff gives the gateway time to recover, preventing
-spurious user-facing errors without requiring manual retries.
-```
-
-它甚至会先出声权衡这个改动算 `fix` 还是 `feat`,最后才定为 `fix`。这一行为完全来自父 Agent 为它写的 `AGENTS.md`。
-
-## 第四步:测量基线
-
-这一步给一个 `AGENTS.md` 为空的 Agent 打分,而任务的规则它看不到。
-
-任务看起来平平无奇:读一个项目笔记文件,写一份摘要,包含 2 句概述和恰好 3 条要点,并遵守团队的标准报告格式。关键全在最后这个要求。所谓「团队格式」是一套随意定下的内部约定:一行特定的标记、一个 `# Report: <subject>` 标题、一行 `Classification: INTERNAL`,以及一行 `Reviewed-by: Aurora Team` 页脚。它只写在 Agent 的 `AGENTS.md` 里,从任务本身推断不出来。
-
-任务附带一份私有评分细则,也就是 Agent 永远看不到的一份检查清单,满分 10 分:
-
-- 5 分给内容,任何有能力的模型仅凭任务本身就能拿到;
-- 5 分给约定,只有从 `AGENTS.md` 里才能得知。
-
-仓库里的示例 [`examples/self-improving-agent/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples/self-improving-agent) 把这个任务和随后的改进闭环做成了一个自包含、由 SDK 驱动的脚本。它使用一份确定性的、可读的评分细则,同样是这 10 分;跑在同一套本地 Ollama + qwen3.6:35b 环境上;并使用一个专用的 Agent id,不会动到你自己的 Agent。在仓库根目录启动:
-
-```bash
-pnpm --dir examples/self-improving-agent start
-```
-
-脚本报告的第一个分数就是基线。`AGENTS.md` 为空时,模型写出的摘要相当合理,却稳定地丢掉全部 5 个约定分,落在 4.6 / 10 左右。具体数字每次运行会有波动。本地模型的输出有随机性,所以脚本对每个版本取多次运行的平均分,这也正是真实的 Benchmark 要设置 `runs` 次数的原因。
-
-模型别无选择。任务里没有任何信息透露这套内部约定,所以这是**信息缺口,而不是能力缺口**,这也是更强的模型同样无法「自己想出来」的原因。每一步都记录在 Trace 里,打开这次运行,就能准确看到丢了哪几分。
-
-这就是诚实的起点:在本地硬件上,一个开箱即用的 Agent,面对规则写在它尚未学过的文件里的任务,并不能拿到满分。而一个可测量、可审计、可复现的失败,Agent 可以通过自学系统地修复,下一步就会展示。
-
-## 第五步:让 Agent 自我进化
-
-这一步,同一次运行会继续进入自我进化闭环。诊断和修改都由 Agent 自己完成,没有人把答案交给它。
-
-这个闭环有五个阶段。背后没有任何特殊的引擎代码,只是由 Skill 编排的普通 Agent 机制:
-
-1. Benchmark:定义能力题目,每道题配一份私有评分细则,和第四步一样。
-2. 评估:让 Agent 跑这些题目,并按评分细则打分。每一次运行都是一个普通的、全程留有 Trace 的 Session。
-3. 读 Trace,找出丢分点:每个分数都能追溯到具体的那次运行,所以你不只知道丢了分,还能看到为什么丢分。
-4. 编辑 Agent State:Agent 的行为保存在可编辑的文件里(`AGENTS.md`、Skill、配置)。由你或一个 Optimizer Agent 针对失败修改这些文件,产出版本 N+1。
-5. 打快照,然后保留或回滚:每轮开始前先打快照;只有分数严格提升才保留 N+1,否则回滚。
-
-在这个示例里,脚本只提供失败信号和通过审核的示例报告,并报告每一轮分数有没有提升,从不自己写入那套约定。
-
-### 第一轮:学会结构
-
-Agent 只拿到两个文件,别无其他:它刚被退回的那份报告,以及另一个项目里一份通过审核的报告。没有人告诉它规则。它对比两份报告,推断出可复用的内部约定:标记、标题形式、元数据行和署名页脚。这正是「读 Trace,找出丢分点」这个阶段,只不过由 Agent 亲自完成。
-
-随后,Agent 把推断出的约定写进自己的 `AGENTS.md`,得到版本 N+1。从单个示例里,它能正确还原出结构,但还分不清哪些词是固定常量、哪些是每份报告各不相同的字段,因为单个示例本身就有歧义。于是它把标记泛化成了占位符。再次评估,分数升到约 6.6 / 10。没有重新训练,也没有改代码:Agent 改的只是一份它每次运行都会读取的文本文件。
-
-### 第二轮:锁定常量
-
-接下来,Agent 看到多份来自不同项目、共用同一个标记和署名页脚的合格报告。它推理出:凡是在所有报告里都完全相同的部分,必然是固定常量。于是它读取自己上一轮写的 N+1 版 `AGENTS.md` 并加以完善,把 `<!-- ACME-DATA-PLATFORM -->` 和 `Reviewed-by: Aurora Team` 锁定为字面量。再次评估,分数达到约 9.8 / 10。这才是真正意义上的递归:`state_{n+1} = agent.reflect(state_n, new_evidence)`。
-
-两轮都让分数严格提升,这正是第 5 阶段保留修改的条件。
-
-## 没有 AMD GPU?改用 Fireworks 额度
-
-想动手试试,不一定需要 AMD GPU。通过 AMD AI Developer Program,AMD 与 Fireworks AI 合作,向符合条件的开发者提供价值 50 美元的免费 Fireworks 额度。Fireworks 通过 OpenAI 兼容端点提供开源权重模型,所以和本地 Ollama 一样,把 PenguinHarness 指向它也只需改一行配置。
-
-领取额度(审核通常需要 2–3 个工作日)的步骤,请参阅 [Fireworks API 获取指南](https://penguin.ooo/blog/fireworks-credits-amd),里面详细介绍了额度兑换和 API Key 的获取方法。
-
-然后像接入其他端点一样,在 PenguinHarness 中注册 Fireworks:
-
-```bash
-penguin config model add --model-id <fireworks-模型-id> \
- --provider custom --client-type openai \
- --base-url https://api.fireworks.ai/inference/v1 \
- --api-key <你的-fireworks-key> --set-default
-```
-
-无论 Token 是在你自己的 AMD GPU 上生成,还是用 AMD 支持的云端额度生成,Harness 都不变,一行配置的切换方式也不变。请妥善保管优惠码和 API Key。计划条款可能变动,具体以官方页面和审核邮件为准。
-
-## 结果
-
-在我们的运行中,同一个模型、同一个任务的分数是这样爬升的,具体数字每次运行都会有波动:
-
-| 版本 | Agent 写进 `AGENTS.md` 的内容 | 分数 |
-| --- | --- | --- |
-| N(基线) | 无,文件为空 | 约 4.6 / 10 |
-| N+1 | 约定的结构,标记仍是占位符 | 约 6.6 / 10 |
-| N+2 | 同一套约定,常量已锁定为字面量 | 约 9.8 / 10 |
-
-分数的提升,完全来自 Agent 编辑了一份它每次都会读取的文本文件。这次运行说明了三点:
-
-- 本地优先在 AMD 硬件上切实可行。完整的「构建 → 运行 → 自我评估」闭环在本机的一块 AMD GPU 上跑通,没有数据离开机器,这对隐私敏感的场景和企业环境是一个实实在在的答案。由于它建立在 ROCm + Ollama 之上,同一套配置适用于 AMD 的整个 GPU 产品线:单块 Radeon PRO 工作站显卡(如 48 GB 的 W7900)就能从容运行 8B 到 30B 以上的模型,Instinct 加速卡还能进一步向上扩展。
-- 薄模型层带来实际收益。供应商适配全部放在网关里,所以「本地 Ollama 模型」和「前沿云端 API」之间只差一行配置。你不会被某个厂商锁定,也不会被某个 GPU 厂商锁定。我们这次跑在 AMD GPU(ROCm)上,但这里没有任何 AMD 专属的东西:同样的步骤在 NVIDIA GPU(Ollama 的 CUDA 后端)或 Apple Silicon 上一样可行。变的只是底层的 Ollama 运行时,Harness、命令和示例都保持不变。
-- 可观测性处处内建。本地运行产生的只追加 Trace 和记分板关联,与任何云端运行完全相同,记分板上的每个数字都能追溯到产生它的那个 Session。评估从设计上就是可审计的。
-
-## 后续步骤
-
-这一路下来,你在 AMD GPU 上部署了本地模型,让一个 Agent 构建了 `commit-helper`,还看到一个 Agent 通过编辑自己的 `AGENTS.md` 提高了分数。
-
-整套配置只需三条命令,适用于任何 OpenAI 兼容端点,包括本地 Ollama 模型:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-
-# 指向任意 OpenAI 兼容端点——包括一个本地 Ollama 模型
-penguin config model add --model-id <你的模型> \
- --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 --api-key ollama --set-default
-
-penguin web # 或:penguin run --approve allow-all --message "..."
-```
-
-想把 Agent 嵌进自己的程序,就用「构建 Agent」这根支柱的 SDK 那一面。核心循环只有三次调用:
-
-```ts
-const agent = await createAgent({ agentId: "default_agent" });
-const session = await agent.createSession({ workspaceDir: process.cwd() });
-for await (const out of session.run([userText("...")], { approve: async () => "allow" })) { /* 流式处理 */ }
-```
-
-完整、可运行的版本见 [`examples/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/examples),其中包括一个构建其他 Agent 的 Agent 和一个自我进化的 Agent,都跑在本地 Ollama 上。在 [GitHub](https://github.com/Prism-Shadow/penguin-harness) 关注我们,提交你的第一个 issue。
diff --git a/packages/landing/content/blog/natural-language-training-loop.en.md b/packages/landing/content/blog/natural-language-training-loop.en.md
deleted file mode 100644
index 1d06757c..00000000
--- a/packages/landing/content/blog/natural-language-training-loop.en.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-title: "Ask the agent to serve, evaluate and fine-tune a local model with Ollama, vLLM and LlamaFactory"
-date: 2026-07-22
-category: practice
-excerpt: "Ask a PenguinHarness agent to serve a model with Ollama or vLLM, measure it with a Benchmark, fine-tune it with LlamaFactory and measure it again. You write two requests, approve tool calls and provide the training data, and with a local model driving the agent, your data never leaves your environment."
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-PenguinHarness 0.1.1 ships three Skills for working with models on your own hardware: `ollama`, `vllm` and `llamafactory`. They are not three more command-line tools for you to learn. They are written for the agent, so that you stop running the commands. You say what you want in a sentence, and the agent picks the tool, asks the questions it is required to ask, runs the commands, checks that they worked and tells you what happened.
-
-In this tutorial you use them to close a training loop on your own hardware. You send the agent two messages: the first asks it to serve a model, the second to fine-tune that model until it passes an evaluation. The agent serves the model, builds a Benchmark and measures a baseline, fine-tunes the model on the training data you point it to, redeploys it and measures again. You answer its questions, approve its tool calls, provide the training data and read the scoreboard. The commands shown along the way are what the agent ran, not a checklist for you.
-
-The tutorial is for anyone who wants to serve, evaluate and fine-tune models on their own hardware and keep their data where they put it. At the end, the base model and its fine-tuned successor are both registered and compared on one scoreboard. If a local model also drives the agent (Step 3), your data never leaves your environment.
-
-Every agent behavior described here is specified by a Skill that ships with PenguinHarness. Skills are plain Markdown files, under `packages/skills/skills/` in 0.1.1, so you can read what the agent will do before you ask. Where a Skill stops and you take over, this tutorial says so.
-
-This is the loop you are about to run:
-
-```text
- ┌──────────────────────────────────────────────┐
- │ │
-serve the model → run the benchmark → read the failing traces
- (vllm/ollama) (benchmark-design + (session ids from
- agent-evaluation) the scoreboard)
- ↑ │
- │ ↓
- redeploy ← merge and export ← fine-tune on what it got wrong
- (vllm) (llamafactory) (llamafactory)
-```
-
-## Prerequisites
-
-- PenguinHarness. This tutorial follows 0.1.1, the release that added the `ollama`, `vllm` and `llamafactory` Skills. Later releases moved the Skills into plugins and changed some names and flag values, so newer versions differ in the details; the agent follows the Skills of the version you install.
-- A model configured for the agent itself to run on. It can be a hosted API or a local model; Step 3 explains the difference.
-- A machine to serve the model. Ollama is the simple default and the only option on macOS or a CPU-only machine; vLLM is for high-throughput serving on a GPU.
-- A GPU for fine-tuning with LlamaFactory. LoRA needs far less GPU memory than full fine-tuning.
-- Network access to download installs and model weights. Serving, training and evaluation upload none of your data; the one exception is the model that drives the agent, covered in Step 3.
-
-## Step 1: Install PenguinHarness and open the Web App
-
-Install PenguinHarness and start the Web App:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-penguin web
-```
-
-`penguin web` opens the Web App in your browser. The first time, sign in as the built-in admin: in 0.1.1 the login page shows the initial password, while later releases print a one-time sign-in link in the terminal instead. If the model the agent runs on is not configured yet, add it on the Models page and set it as the default model.
-
-Click **New chat**, then set the chat's approval mode to **Ask every time**. A new chat approves every tool call automatically by default; with **Ask every time**, each call waits for your **Allow** or **Deny**, which is how this tutorial keeps you in the loop. You send the next request from this chat.
-
-## Step 2: Ask the agent to serve a local model
-
-Send this message:
-
-> Run a local model on this machine — I don't want the data going anywhere
-
-That sentence is the whole input. The agent loads the `ollama` Skill and works through the rest:
-
-1. It asks two questions before touching anything, because the Skill forbids running any command until the goal is clear. First, which model to run: if you have no preference, it proposes a small default, Qwen3.5-0.8B, and reminds you that the model has to fit the machine's RAM or VRAM. Second, which engine: Ollama is the simple default and the only option on macOS or a CPU-only machine, while vLLM is for high-throughput GPU serving. That choice is yours.
-2. It checks the current state. Is Ollama installed, and is something already serving? If port 11434 already has an instance, the agent reuses it and never kills it. The 0.1.1 default system prompt carries the same rule: never kill a process you did not start, and when a port is busy, take another one.
-3. It installs Ollama if it is missing, pulls the model, and raises the context window, the step people skip and then spend an afternoon debugging: Ollama's default window is small, and agent Sessions are not. The Skill gives two ways to raise it: `OLLAMA_CONTEXT_LENGTH` in the server environment, or `num_ctx` baked into a model variant with a Modelfile.
-4. It verifies the endpoint, and only then registers the model. A pulled model is invisible to PenguinHarness until it is added, and model configuration is the CLI's job:
-
- ```bash
- # what the agent ran — not a checklist for you
- curl http://localhost:11434/v1/models
-
- penguin config model add --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 --model-id qwen3.5:0.8b --api-key ollama
- penguin config model list
- ```
-
-You do not run any of these commands. You answer the two questions and approve each tool call as it comes, with **Allow** or **Deny**; the approval mode you set in Step 1 is what makes each call wait for you. In the SDK, the same approval gate is a callback, and an app that supplies none has every tool call denied.
-
-### What the registration command means
-
-The details in that command are decisions, and the `penguin-cli` Skill is where the agent learned them:
-
-- A model in PenguinHarness is the `(provider, model_id)` pair, and the group is never inferred from the id. Gateways resell vendor models under their upstream ids, so a guess could send your key to somebody else's endpoint. `custom` is the group for any endpoint outside the built-in ones.
-- `--client-type openai --base-url <endpoint>` is the shape for any OpenAI chat-completion compatible server.
-- `--api-key ollama` is not decoration: Ollama accepts any key, but the field must be non-empty.
-
-The Skill also covers two flags that this command does not use:
-
-- `--max-tokens` is a per-model output cap, new in 0.1.1, that overrides the agent default of 32,000. That default does not fit in a 32k window alongside any prompt, so with a small local context window the agent has a reason to set it.
-- `--root` chooses the data root. When the agent builds an app, `--root` must point at the app's own data directory (`--root ./penguin_data`, the same path the app hands `createAgent({ root })`). The default root is for the model PenguinHarness itself runs on, and it is where this tutorial registers the model. Registering in the right place is what closes the loop: the model the agent just served becomes a model the agent itself can run on.
-
-## Step 3 (optional): Keep the whole loop local
-
-From the next step on, the agent works with your data: it reads evaluation Cases, Traces and your training set. One choice decides whether any of that leaves your machine: the model that drives the agent. If the agent runs on a hosted API, the conversation itself goes to that vendor, even though the model it tunes is local. That includes your instructions, the file contents the agent reads and the tool output it summarizes.
-
-To keep everything on your machine, make the endpoint the agent just served PenguinHarness's own default model too, with the same `penguin config model add ...` command plus `--set-default`. Ask the agent to run it, or run it yourself. In 0.1.1 a chat keeps the model it started with, so send the Step 4 request from a new chat, and name the model you served, because the new chat does not know what happened in Step 2. The loop then runs end to end without a third party in it.
-
-This is a real trade-off: a small local model driving the whole loop is not the same proposition as a frontier model driving it. Make it a decision, not an assumption.
-
-## Step 4: Ask for a fine-tune that must pass your evaluation
-
-Send the second message:
-
-> Now fine-tune it until it passes my evaluation
-
-This sentence closes the loop, and it works because of the word *evaluation*. Nothing improves itself without a number, and a single run is not a number. So the agent builds the measurement first, with the `benchmark-design` Skill:
-
-- It lays out a Benchmark: a set of Cases, each with a public statement that the tested agent sees and a private rubric that it must never see, plus the scoreboard the results land in.
-- It needs the agent under test and the capability being measured, and asks you for either one that is missing.
-- Each Case runs more than once by default, because one sample from a nondeterministic local model is not a measurement.
-- The `agent-evaluation` Skill runs each Case run in isolation and returns only protocol metadata: a score, a cost, a duration and a Session id. That is how the rubric stays out of the tested agent's context.
-
-The result gives the agent more to read than a number. Every evaluation records the `(provider, model_id)` pair that produced it, so the base model and its tuned successor land on the same scoreboard and compare directly. Every run carries its Session id, so the agent can open the exact Trace and see which step lost the point. That is what gives "fine-tune on what it got wrong" something concrete to refer to.
-
-## Step 5: Provide the training data and fine-tune with LlamaFactory
-
-Before training, the `llamafactory` Skill has the agent confirm four things with you:
-
-- the available GPU memory (LoRA needs far less than full fine-tuning),
-- the base model,
-- the dataset and its format,
-- the goal, with LoRA SFT as the usual starting point.
-
-The dataset is yours to provide. Turning failing Traces into training examples is the one step the Skills do not prescribe: the `llamafactory` Skill asks where your dataset lives and what format it is in, but it does not teach the agent to mine a Trace into an SFT file. Point the agent at your dataset. If you want the failing Traces turned into training data, ask the agent to write the conversion script: it can read the Traces and write the script, but that is you directing it, not a Skill driving it.
-
-Then the agent registers the dataset in `data/dataset_info.json` in alpaca or sharegpt form, writes a training config derived from LlamaFactory's bundled `examples/train_lora/qwen3_lora_sft.yaml`, runs `llamafactory-cli train`, and tries the result interactively before trusting it.
-
-## Step 6: Redeploy and measure again
-
-The agent merges the adapter into the base weights and exports the result. vLLM serves the export directory directly; Ollama needs an import first. When the agent serves the export with vLLM, the `vllm` Skill has already told it the flags everyone forgets: `--enable-auto-tool-choice` and a `--tool-call-parser` matched to the model family.
-
-The agent registers the tuned endpoint as its own model id rather than overwriting the base one, so both stay on the scoreboard. Then the same Benchmark runs again, and you compare the two results on the scoreboard. None of the steps between serving and measuring again required you to name a command.
-
-If you want to improve the agent itself rather than the weights, the `agent-optimization` Skill works from the same scoreboard. It refuses to touch Agent State until a snapshot exists to roll back to.
-
-## How the pieces fit
-
-Three facts explain why the agent can run this loop, and each one is backed by a file you can open.
-
-### The knowledge ships with the agent
-
-In 0.1.1, `packages/skills/skills/vllm/SKILL.md`, `.../ollama/SKILL.md` and `.../llamafactory/SKILL.md` are part of the Skill library, and a Project's `default_agent` is created with the whole library installed. You do not fetch, configure or paste anything. The Skills that measure and improve, `benchmark-design`, `agent-evaluation` and `agent-optimization`, are in the same library and installed the same way. On a fresh install the agent already knows that vLLM must start with `--enable-auto-tool-choice` and a `--tool-call-parser` matched to the model family, or every tool call comes back a `400`; that Ollama's default context window is too small for agent Sessions, and both ways to raise it; and that a LoRA adapter must never be merged into a quantized base. These are the details people otherwise lose an afternoon to.
-
-### Knowing many tools costs almost nothing per request
-
-Skills have no dedicated tool and are not pasted into the prompt. The system prompt template carries a `{{SKILL_METADATA}}` placeholder, which assembly replaces with one line per installed Skill, such as `` - `vllm` — Deploy and serve LLMs with vLLM behind an OpenAI-compatible endpoint… ``. The agent reads a Skill's body from disk with a shell command only when a task matches. In 0.1.1 that is fifteen Skills whose metadata lines total about 2.5 KB, while their bodies total over 100 KB and stay out of the context window until they are needed.
-
-### The agent operates the real CLIs
-
-In 0.1.1, a Session's built-in tools are `exec_command`, `input_command`, `run_subagent`, `input_subagent` and one image tool. There is no read-file tool, no write-file tool and no per-vendor integration: `exec_command`'s own description tells the model to read, write and edit files and run programs with the shell. So `vllm serve`, `ollama pull` and `llamafactory-cli train` need no adapter, the flags in the Skills are the tools' real flags, and when vLLM adds a flag, the fix is a Markdown edit, not a release of the harness. This is also why the loop can stay local: the agent runs commands on the machine that holds the data, with no hosted control plane in between that would need to see your dataset.
-
-Another capable agent with a shell could do these things too, given the same instructions. The difference is that in PenguinHarness the instructions are already installed, cost about 2.5 KB of prompt, and include the registration step that makes a served model usable afterwards. Elsewhere you have to know all of it yourself, again in every Session.
-
-## Troubleshooting
-
-The failures below are already written into the Skills, so the agent knows how to handle them. They are listed here so you recognize them when they appear in a Session:
-
-- vLLM rejects every tool call: the server was started without the tool-calling flags. Restart it with `vllm serve <model> --enable-auto-tool-choice --tool-call-parser hermes`, choosing the parser for the model family (`hermes` for Qwen, `llama3_json` for Llama). Without it, every agent request fails with `400 "auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be set`.
-- vLLM runs out of memory at startup: lower `--gpu-memory-utilization` or `--max-model-len`, or serve a quantized model.
-- Ollama's context window is too small: start the server with `OLLAMA_CONTEXT_LENGTH=32768 ollama serve`, or put `PARAMETER num_ctx 32768` in a Modelfile and run `ollama create`.
-- Ollama is already running: port 11434 in use means reuse the instance, and never kill a serving process you did not start.
-- Merging a LoRA adapter: merge the adapter into the base weights for standalone serving, but never into a quantized base.
-- A served model does not show up in PenguinHarness: it stays invisible until it is added, so register it with `--provider custom --client-type openai --base-url <endpoint>`.
-
-One more error comes from the harness rather than from a Skill. Before 0.1.1, requests that carried no tools still sent an empty tool list, which vLLM rejects with `400 … tools must not be an empty array`; 0.1.1 stopped sending it, so upgrading fixes the error.
-
-## What stays on your machine
-
-In this setup, these stay local:
-
-- The served model. Ollama exposes its OpenAI-compatible API on `http://localhost:11434/v1`, and vLLM on `http://localhost:8000/v1`. Every prompt, tool schema, tool result and completion in an agent Session against them stays on the loopback interface.
-- The training. LlamaFactory runs on your GPU. Your dataset sits under `data/` next to `data/dataset_info.json`, and the adapter and the merged export land under `saves/`. No stage of `llamafactory-cli train` ships your examples anywhere.
-- The evaluation. Cases, statements and rubrics are files in your Project, and the evaluator reads them from disk. A rubric lives at a path like `~/.penguin/data/default_project/agents/tool_router/benchmarks/tool-routing-v1/CASE-003-pick-the-cheaper-endpoint/rubric/README.md`, and the scoreboard is a YAML file next to them.
-- The configuration. `penguin config model add` writes into a single hidden Project config file. The CLI manages it, it is never edited by hand, and it stays where you point it.
-
-If a local model drives the agent, only installs and weights cross the network, and they come in. `ollama pull`, `pip install vllm`, cloning LlamaFactory and resolving a Hugging Face base model id all download; none of them upload your data. If a hosted model drives the agent, the conversation also goes to that vendor, as Step 3 describes.
-
-## Wrap-up
-
-Before 0.1.1, PenguinHarness could talk to any OpenAI-compatible endpoint but had nothing to say about where that endpoint came from. Standing one up, measuring what it could do and fixing what it could not were three tools with three sets of conventions, and a person in between translating.
-
-In this tutorial you described two outcomes. The agent served a model, ran its own Benchmark, read its own failures, fine-tuned, redeployed and measured again, choosing each next step from the last result. You stayed in the loop in three places: approving tool calls, making the judgment calls (which base model, which engine, what counts as good enough), and providing the training data. Everything else, from flags and ports to parsers and whether to reuse a running server, is in the Skills, which means it is in the agent.
-
-Where to go next:
-
-- Read the Skills the agent had available, as they shipped in 0.1.1, under [`packages/skills/skills/`](https://github.com/Prism-Shadow/penguin-harness/tree/v0.1.1/packages/skills/skills).
-- If a hosted model drove the agent this time, run the loop again with a local model driving it, as described in Step 3.
diff --git a/packages/landing/content/blog/natural-language-training-loop.zh.md b/packages/landing/content/blog/natural-language-training-loop.zh.md
deleted file mode 100644
index 6044c286..00000000
--- a/packages/landing/content/blog/natural-language-training-loop.zh.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-title: "让 Agent 用 Ollama、vLLM 和 LlamaFactory 部署、评估并微调本地模型"
-date: 2026-07-22
-category: practice
-excerpt: "让 PenguinHarness 的 Agent 用 Ollama 或 vLLM 部署模型,用 Benchmark 衡量效果,再用 LlamaFactory 微调,然后重新衡量。你只需写两条请求、审批工具调用、提供训练数据;如果驱动 Agent 的也是本地模型,数据就始终不离开你的环境。"
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-PenguinHarness 0.1.1 新增了三个 Skill:`ollama`、`vllm` 和 `llamafactory`,用来在你自己的硬件上部署和微调模型。它们并不意味着你又要多学三个命令行工具。这三个 Skill 是写给 Agent 的,目的正是让你不必再亲手敲这些命令。你用一句话说出想要什么,Agent 就会选好工具,把该问的问题问清楚,执行命令,确认命令生效,再告诉你结果。
-
-在这篇教程里,你会用它们在自己的硬件上跑通一个训练闭环。你给 Agent 发两条消息:第一条让它部署模型,第二条让它把模型微调到能通过评估为止。Agent 会部署模型,创建 Benchmark 并测出基线,用你指定的训练数据微调模型,重新部署,再测一次。你只需回答它的问题、审批它的工具调用、提供训练数据、查看记分板。文中出现的命令都是 Agent 执行过的,不是留给你照做的清单。
-
-本教程适合想在自己的硬件上部署、评估和微调模型,又希望数据留在原处的人。做完之后,基座模型和微调后的模型都已注册,并在同一张记分板上对比。如果驱动 Agent 的也是本地模型(见第三步),你的数据就始终不会离开你的环境。
-
-文中 Agent 的每一种行为,都写在 PenguinHarness 自带的某个 Skill 里。Skill 就是普通的 Markdown 文件,0.1.1 里放在 `packages/skills/skills/` 下,发请求之前,你就能先读到 Agent 会怎么做。Skill 管不到、需要你接手的地方,教程会明确指出。
-
-你即将跑通的闭环如下:
-
-```text
- ┌───────────────────────────────────────────────┐
- │ │
- 部署模型 → 跑评测 → 读失败的 Trace
- (vllm/ollama) (benchmark-design + (记分板里的 session id)
- agent-evaluation)
- ↑ │
- │ ↓
- 重新部署 ← 合并并导出 ← 针对失分微调
- (vllm) (llamafactory) (llamafactory)
-```
-
-## 准备工作
-
-- PenguinHarness。本教程对应 0.1.1,也就是新增 `ollama`、`vllm` 和 `llamafactory` 三个 Skill 的版本。之后的版本把 Skill 挪进了插件,也改过一些名称和参数取值,所以新版本在细节上会有出入;Agent 始终按你所装版本自带的 Skill 行事。
-- 一个供 Agent 自身运行的模型。托管 API 或本地模型都可以,两者的区别见第三步。
-- 一台用来部署模型的机器。Ollama 是简单的默认选择,也是 macOS 或纯 CPU 机器上的唯一选项;vLLM 适合在 GPU 上做高吞吐部署。
-- 一块用于 LlamaFactory 微调的 GPU。LoRA 需要的显存远少于全量微调。
-- 网络连接,用来下载安装包和模型权重。部署、训练和评估都不会上传你的数据,唯一的例外是驱动 Agent 的模型,见第三步。
-
-## 第一步:安装 PenguinHarness 并打开 Web App
-
-安装 PenguinHarness 并启动 Web App:
-
-```bash
-curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/download/install.sh | sh
-penguin web
-```
-
-`penguin web` 会在浏览器里打开 Web App。第一次使用时,以内置管理员身份登录:0.1.1 的登录页上写着初始密码,之后的版本则改为在终端里打印一个一次性登录链接。如果还没有配置供 Agent 运行的模型,先在模型页添加,并把它设为默认模型。
-
-点击**新对话**,再把这个对话的审批模式设为**总是询问**。新对话默认会自动放行所有工具调用;设为**总是询问**之后,每个工具调用都要等你点**允许**或**拒绝**,你在这篇教程里就是这样参与闭环的。下一步的请求就在这个对话里发送。
-
-## 第二步:让 Agent 部署本地模型
-
-发送这条消息:
-
-> 在这台机器上跑一个本地模型,数据不要出去
-
-这句话就是全部输入。Agent 加载 `ollama` Skill,接下来的事由它完成:
-
-1. 动手之前先问两个问题,因为 Skill 规定目标不清楚时不许执行任何命令。第一个问题是跑哪个模型:如果你没有偏好,它会推荐一个小的默认模型 Qwen3.5-0.8B,并提醒你模型必须装得进机器的内存或显存。第二个问题是用哪个引擎:Ollama 是简单的默认选择,也是 macOS 或纯 CPU 机器上的唯一选项;vLLM 面向 GPU 上的高吞吐部署。这个选择由你来定。
-2. 检查当前状态。Ollama 装了没有?是不是已经有服务在运行?如果 11434 端口上已经有实例,Agent 会复用它,绝不杀掉。0.1.1 的默认系统提示词里也写着同样的规则:绝不杀死不是自己启动的进程,端口被占用就换一个。
-3. 缺 Ollama 就安装,然后拉取模型、调大上下文窗口。调大窗口这一步最常被跳过,结果往往要花一个下午排查:Ollama 的默认窗口很小,而 Agent 会话需要的上下文很大。Skill 给了两种调大的办法:在服务的环境变量里设置 `OLLAMA_CONTEXT_LENGTH`,或者用 Modelfile 把 `num_ctx` 固化成一个模型变体。
-4. 先验证端点,再注册模型。拉取下来的模型要添加之后,PenguinHarness 才看得到,而模型配置归 CLI 管:
-
- ```bash
- # 这是 Agent 执行过的命令,不是给你照做的清单
- curl http://localhost:11434/v1/models
-
- penguin config model add --provider custom --client-type openai \
- --base-url http://localhost:11434/v1 --model-id qwen3.5:0.8b --api-key ollama
- penguin config model list
- ```
-
-这些命令一条都不用你来跑。你只需回答那两个问题,并在每个工具调用出现时点**允许**或**拒绝**;调用之所以会停下来等你,靠的正是第一步设置的审批模式。在 SDK 里,这道审批关卡是一个回调函数,应用如果不提供它,所有工具调用都会被拒绝。
-
-### 注册命令各部分的含义
-
-这条命令里的每个细节都有讲究,Agent 是从 `penguin-cli` Skill 里学到的:
-
-- PenguinHarness 里的模型由 `(provider, model_id)` 二元组确定,分组绝不从模型 id 推断。网关会用上游 id 转售厂商的模型,一旦猜错,你的 API Key 可能被发到别人的端点上。内置分组之外的任何端点,都归入 `custom` 分组。
-- 任何兼容 OpenAI chat completion 接口的服务,都用 `--client-type openai --base-url <endpoint>` 这种写法。
-- `--api-key ollama` 不是摆设:Ollama 接受任意 Key,但这个字段不能为空。
-
-这个 Skill 还讲了两个这条命令没有用到的参数:
-
-- `--max-tokens` 是 0.1.1 新增的单模型输出上限,会覆盖 Agent 默认的 32,000。这个默认值再加上任何提示词,都放不进 32k 的窗口,所以本地模型的上下文窗口较小时,Agent 有理由设置它。
-- `--root` 决定注册到哪个数据根目录。Agent 在开发应用时,`--root` 必须指向应用自己的数据目录(`--root ./penguin_data`,也就是应用传给 `createAgent({ root })` 的那个路径)。默认根目录留给 PenguinHarness 自身运行所用的模型,本教程注册的也正是这里。注册到正确的位置,闭环才能合上:Agent 刚部署好的模型,成了它自己接下来就能用的模型。
-
-## 第三步(可选):让整个闭环留在本地
-
-从下一步开始,Agent 就要接触你的数据了:它会读评估题目、Trace 和你的训练数据。这些内容会不会离开你的机器,取决于一个选择:驱动 Agent 的模型。如果 Agent 跑在托管 API 上,那么即使它微调的模型完全在本地,对话本身也会发到那家供应商,包括你的指令、Agent 读到的文件内容和它转述的工具输出。
-
-要让一切都留在本机,就把 Agent 刚部署好的端点也设为 PenguinHarness 自身的默认模型:还是那条 `penguin config model add ...` 命令,加上 `--set-default`。可以让 Agent 来执行,也可以自己执行。在 0.1.1 里,一个对话会一直使用它开始时的模型,所以第四步的请求要在新对话里发送,并写明你部署的是哪个模型,因为新对话不知道第二步里发生了什么。这样整个闭环从头到尾都没有第三方参与。
-
-这是一个实实在在的取舍:由小型本地模型驱动整个闭环,和由前沿模型来驱动,完全是两回事。要不要这样做,应该是你想清楚之后的决定,而不是默认如此。
-
-## 第四步:让 Agent 微调模型,直到通过评估
-
-发送第二条消息:
-
-> 把这个模型微调到能过我的评估
-
-这句话让闭环合上,关键在「评估」两个字:没有数字就谈不上改进,而只跑一次也算不上数字。所以 Agent 先用 `benchmark-design` Skill 把测量搭起来:
-
-- 它规划出一个 Benchmark:一组题目,每道题都有被测 Agent 能看到的公开题干,以及它绝不能看到的私有评分细则,外加记录结果的记分板。
-- 它需要知道被测 Agent 和要测量的能力,缺哪一项就向你询问哪一项。
-- 每道题默认运行不止一次,因为对不确定的本地模型只采样一次,算不上测量。
-- `agent-evaluation` Skill 隔离执行每道题的每次运行,只返回协议元数据:分数、成本、耗时和 Session id。评分细则正是这样被挡在被测 Agent 的上下文之外。
-
-这样 Agent 拿到的就不只是一个数字。每次评估都记录产生它的 `(provider, model_id)` 二元组,基座模型和微调后的模型因此落在同一张记分板上,可以直接对比。每次运行都带着 Session id,Agent 可以打开对应的 Trace,看清是哪一步丢了分。「针对做错的地方微调」这句话,因此有了具体的所指。
-
-## 第五步:提供训练数据,用 LlamaFactory 微调
-
-训练开始前,`llamafactory` Skill 要求 Agent 跟你确认四件事:
-
-- 可用显存(LoRA 需要的显存远少于全量微调);
-- 基座模型;
-- 数据集及其格式;
-- 训练目标,通常从 LoRA SFT 起步。
-
-数据集要由你来提供。把失败的 Trace 变成训练样本,是唯一一个没有 Skill 规定做法的环节:`llamafactory` Skill 只问你数据集放在哪、是什么格式,并不教 Agent 怎样从 Trace 里整理出 SFT 数据。把数据集的位置告诉 Agent。如果想把失败的 Trace 变成训练数据,可以让 Agent 写转换脚本:它能读 Trace,也能写脚本,但这是你在指挥它,不是 Skill 在驱动它。
-
-随后,Agent 把数据集按 alpaca 或 sharegpt 格式登记到 `data/dataset_info.json`,参照 LlamaFactory 随附的 `examples/train_lora/qwen3_lora_sft.yaml` 写出训练配置,执行 `llamafactory-cli train`,并先交互试用训练结果,确认可信再使用。
-
-## 第六步:重新部署,再测一次
-
-Agent 把适配器合并进基座权重并导出。vLLM 可以直接部署导出目录,Ollama 则需要先导入。用 vLLM 部署导出结果时,`vllm` Skill 早就告诉过 Agent 那对人人都会忘的参数:`--enable-auto-tool-choice`,以及与模型系列匹配的 `--tool-call-parser`。
-
-Agent 把微调后的端点注册成独立的模型 id,不覆盖基座模型,这样两者都留在记分板上。然后同一个 Benchmark 再跑一遍,你在记分板上对比两次的结果。从部署到再测一次,没有哪一步需要你说出一条命令。
-
-如果想改进的是 Agent 本身而不是模型权重,可以用 `agent-optimization` Skill,它基于同一张记分板工作。在有可供回滚的快照之前,它不会改动 Agent State。
-
-## 各环节如何衔接
-
-Agent 能跑通这个闭环,靠的是下面三点,每一点背后都有一个你能打开查看的文件。
-
-### 知识已经装在 Agent 里
-
-在 0.1.1 里,`packages/skills/skills/vllm/SKILL.md`、`.../ollama/SKILL.md` 和 `.../llamafactory/SKILL.md` 都属于 Skill 库,而 Project 的 `default_agent` 在创建时就装好了整个库。下载、配置、粘贴,这些都不用你做。负责测量和改进的 `benchmark-design`、`agent-evaluation` 和 `agent-optimization` 也在同一个库里,安装方式相同。全新安装之后,Agent 就已经知道:启动 vLLM 必须带上 `--enable-auto-tool-choice` 和与模型系列匹配的 `--tool-call-parser`,否则每次工具调用都会返回 `400`;Ollama 默认的上下文窗口装不下 Agent 会话,以及调大窗口的两种办法;LoRA 适配器绝不能合并进量化过的基座。这些细节,往往要搭进去一个下午才会弄明白。
-
-### 会用的工具再多,每次请求也几乎不增加开销
-
-Skill 没有专用工具,也不会整篇塞进提示词。系统提示词模板里有一个 `{{SKILL_METADATA}}` 占位符,组装时会替换成每个已安装 Skill 各一行的元数据,例如 `` - `vllm` — Deploy and serve LLMs with vLLM behind an OpenAI-compatible endpoint… ``。只有任务对得上时,Agent 才用 shell 命令从磁盘读取 Skill 正文。在 0.1.1 里,15 个 Skill 的元数据行合计约 2.5 KB,正文合计超过 100 KB,用到之前一个字都不进上下文窗口。
-
-### Agent 操作的是真正的 CLI
-
-在 0.1.1 里,会话的内置工具是 `exec_command`、`input_command`、`run_subagent`、`input_subagent` 和一个图像工具。没有读文件工具,没有写文件工具,也没有针对某家厂商的集成:`exec_command` 自己的描述就告诉模型,用 shell 读写、编辑文件和运行程序。所以 `vllm serve`、`ollama pull` 和 `llamafactory-cli train` 都不需要适配层,Skill 里写的参数就是这些工具真正的参数;vLLM 哪天加了新参数,改一份 Markdown 就行,不必等 Harness 发新版。闭环能留在本地也是这个原因:Agent 直接在存放数据的机器上执行命令,中间没有一个需要先看到你数据集的托管控制面。
-
-换成别的有 shell 可用、能力足够的 Agent,给它同样的指令,也能做到这些。区别在于,PenguinHarness 已经装好了这些指令,只占约 2.5 KB 的提示词,其中还包括注册这一步,有了它,部署好的模型才真正用得上。换作别处,这些都得你自己知道,而且每个会话都要再来一遍。
-
-## 故障排查
-
-下面这些故障的处理办法已经写进 Skill,Agent 知道怎么应对。列在这里,是为了让你在会话中遇到时能认出来:
-
-- vLLM 拒绝所有工具调用:启动服务时没有带工具调用参数。用 `vllm serve <model> --enable-auto-tool-choice --tool-call-parser hermes` 重新启动,并按模型系列选择 parser(Qwen 用 `hermes`,Llama 用 `llama3_json`)。不带这对参数,Agent 的每个请求都会报 `400 "auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be set`。
-- vLLM 启动时显存不足:调低 `--gpu-memory-utilization` 或 `--max-model-len`,或者改为部署量化模型。
-- Ollama 的上下文窗口太小:用 `OLLAMA_CONTEXT_LENGTH=32768 ollama serve` 启动服务,或者在 Modelfile 里写上 `PARAMETER num_ctx 32768`,再执行 `ollama create`。
-- Ollama 已经在运行:11434 端口被占用,说明应该复用现有实例,绝不能杀掉不是自己启动的服务进程。
-- 合并 LoRA 适配器:为了独立部署,要把适配器合并进基座权重,但绝不能合并到量化过的基座上。
-- 部署好的模型在 PenguinHarness 里看不到:模型添加之前一直不可见,用 `--provider custom --client-type openai --base-url <endpoint>` 注册即可。
-
-还有一个错误出在 Harness 本身,而不在 Skill 里。0.1.1 之前,不带工具的请求也会发送一个空的工具列表,vLLM 会以 `400 … tools must not be an empty array` 拒绝;0.1.1 不再发送空列表,升级即可解决。
-
-## 哪些东西留在本机
-
-在这套配置下,以下内容都留在本地:
-
-- 部署的模型。Ollama 在 `http://localhost:11434/v1` 提供 OpenAI 兼容 API,vLLM 在 `http://localhost:8000/v1`。Agent 会话里发给它们的每条提示词、工具 Schema、工具结果和补全,都只经过本机回环接口。
-- 训练。LlamaFactory 跑在你的 GPU 上。数据集放在 `data/` 下,与 `data/dataset_info.json` 相邻;适配器和合并后的导出结果落在 `saves/` 下。`llamafactory-cli train` 的任何阶段都不会把你的样本发出去。
-- 评估。题目、题干和评分细则都是你 Project 里的文件,评估者从磁盘读取它们。一份评分细则的路径形如 `~/.penguin/data/default_project/agents/tool_router/benchmarks/tool-routing-v1/CASE-003-pick-the-cheaper-endpoint/rubric/README.md`,记分板是它们旁边的一个 YAML 文件。
-- 配置。`penguin config model add` 写入一个隐藏的 Project 配置文件。它只由 CLI 管理,不应手工编辑,你指定放在哪里,它就留在哪里。
-
-如果驱动 Agent 的是本地模型,经过网络的就只有安装包和模型权重,而且都是下载进来。`ollama pull`、`pip install vllm`、克隆 LlamaFactory、解析 Hugging Face 基座模型 id,这些都是下载,没有一项会上传你的数据。如果驱动 Agent 的是托管模型,对话本身也会发到那家供应商,见第三步。
-
-## 结语
-
-在 0.1.1 之前,PenguinHarness 能对接任何 OpenAI 兼容端点,却不管这个端点从哪里来。把端点搭起来、测出它能做什么、补上它做不到的,要用三套工具、守三套约定,中间还得有个人来回转述。
-
-在这篇教程里,你只描述了两个目标。Agent 自己部署模型、跑 Benchmark、读失败原因、微调、重新部署、再测一次,每一步都由上一步的结果决定。你留在闭环里的位置有三处:审批工具调用;做判断(选哪个基座模型、用哪个引擎、多好才算够好);提供训练数据。其余的一切,从参数、端口、parser,到要不要复用正在运行的服务,都写在 Skill 里,也就是都装在 Agent 身上。
-
-接下来可以:
-
-- 到 [`packages/skills/skills/`](https://github.com/Prism-Shadow/penguin-harness/tree/v0.1.1/packages/skills/skills) 读一读 0.1.1 随附的 Skill,看看 Agent 手里都有哪些知识。
-- 如果这次驱动 Agent 的是托管模型,可以按第三步的做法,换成本地模型再跑一遍闭环。
diff --git a/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.en.md b/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.en.md
deleted file mode 100644
index 153ab652..00000000
--- a/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.en.md
+++ /dev/null
@@ -1,418 +0,0 @@
----
-title: "Run an agent self-improvement loop with PenguinHarness on an AMD GPU"
-date: 2026-07-22
-category: practice
-author: Yuyang Gao (AMD), Ning Zhang (AMD), Yaowei Zheng (PrismShadow)
-excerpt: "Run a complete PenguinHarness self-improvement loop, from baseline evaluation and Trace analysis to agent optimization and rollback, with a local Qwen3:8B model on an AMD GPU and a model on the Fireworks API."
-description: "Learn how PenguinHarness combines Benchmarks, Traces, editable Agent State, Snapshots, and rollback in a dual-model experiment with local Qwen3:8B and the Fireworks API."
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-*AMD × PrismShadow — Yuyang Gao and Ning Zhang (AMD), Yaowei Zheng (PrismShadow).*
-
-In this tutorial you run a complete self-improvement loop with [PenguinHarness](https://github.com/Prism-Shadow/penguin-harness). You create a small agent, measure it with a Benchmark, let an Optimizer improve it using evidence from real Traces, and keep the new version only if it scores higher. The agent under test runs on Qwen3:8B on an AMD GPU; the agent that creates, measures and optimizes it runs on a model from the Fireworks API.
-
-The model is never retrained, and no weights change. The tutorial is for developers who want to make an agent more reliable without preparing training data, especially when the agent runs a local model. The task is intentionally small, because the subject is the loop itself, not a comparison of models on a leaderboard.
-
-## Prerequisites
-
-- An AMD GPU on which Ollama can already run Qwen3:8B. Installing the AMD driver, ROCm and Ollama is outside the scope of this tutorial; for setup instructions, see the [Ollama Linux documentation](https://docs.ollama.com/linux) and the [GPU support documentation](https://docs.ollama.com/gpu).
-- Fireworks API access. Through the AMD AI Developer Program, AMD and Fireworks AI offer eligible developers USD 50 in complimentary Fireworks credits, and Fireworks provides open-weight models through an OpenAI-compatible endpoint. [Getting Fireworks API Access](https://penguin.ooo/blog/fireworks-credits-amd) explains how to redeem the credits and generate an API key.
-
-## How self-improvement works in PenguinHarness
-
-PenguinHarness is an open-source agent harness. It brings model integrations, agent configuration, Workspace tools, Sessions, Traces, Skills and Benchmarks into one runtime, with both a CLI and a Web App, and it can use hosted models as well as local models exposed through an OpenAI-compatible endpoint.
-
-PenguinHarness represents an agent's behavior as a set of readable, editable and versioned state files, rather than as a fixed prompt that only a developer can maintain by hand. Role definitions, operating procedures, reusable Skills and runtime settings all belong to the Agent State, and each task produces a complete Session and Trace. So one agent can evaluate another, update its State using evidence from real executions, and then verify the change against the same evaluation.
-
-That is what PenguinHarness calls self-improvement. It does not retrain the model or update its weights. It improves the agent harness around the model, and uses repeatable measurements to decide whether a new version is kept.
-
-### The editable Agent State
-
-The main editable parts of an Agent State are:
-
-- `AGENTS.md`: role, boundaries and operating procedures;
-- `skills/`: reusable capabilities;
-- `system_config.yaml`: version and runtime configuration.
-
-### Three roles
-
-- **Target Agent**: the agent that performs tasks, and is evaluated and improved;
-- **Evaluator**: runs one Benchmark Case in an isolated Workspace and scores it against a private Rubric;
-- **Optimizer**: reads baseline scores and their linked Traces, forms an improvement hypothesis, and modifies the Target Agent State.
-
-### The loop
-
-1. Create a multi-Case Benchmark for the target capability.
-2. Run the Target Agent repeatedly to establish a traceable baseline.
-3. Use the scores and linked Traces to identify stable failure patterns.
-4. Save a Snapshot and modify the Agent State.
-5. Evaluate the candidate version with the same Benchmark and the same model.
-6. Keep the new version only if its total score is strictly higher; otherwise, restore the previous State.
-
-Built-in Skills orchestrate the loop:
-
-- `agent-creation`: creates the initial agent from a set of requirements;
-- `benchmark-design`: designs a multi-Case Benchmark and establishes a complete baseline;
-- `agent-evaluation`: runs and scores one isolated Case execution;
-- `agent-optimization`: analyzes the baseline and Traces, edits the Agent State, evaluates the candidate and handles rollback.
-
-The point is not simply that one model rewrites another model's prompt. Every change is re-evaluated under the same conditions. The Benchmark provides the measurement, the Trace provides the evidence, the Snapshot provides a recovery point, and the State version ties each score to the Agent State that actually produced it. If an optimization does not yield a strict improvement, the candidate change does not count as a successful evolution.
-
-### Two models, two jobs
-
-This tutorial splits the work between two models:
-
-| Purpose | Agent | Model |
-|---|---|---|
-| Create the agent, design the Benchmark, and perform optimization | `default_agent` | Fireworks API model |
-| Undergo evaluation and improvement | `meeting_summary_agent` | Qwen3:8B on an AMD GPU |
-
-Qwen3:8B runs through Ollama on the AMD GPU and serves as the Target Agent model. A model on the Fireworks API runs `default_agent`, which creates the agent, designs the Benchmark and performs the optimization. You first establish a v1 baseline, let the Optimizer improve the agent using evidence from real Traces, and then use the same Benchmark to decide whether to accept the new version or roll it back.
-
-## What you will build
-
-You create `meeting_summary_agent`. It reads a small collection of text files and writes the following file in its Workspace:
-
-```markdown
-# Summary
-
-## Confirmed
-
-## Action Items
-
-## Unresolved
-```
-
-You measure it with a Benchmark of two Cases:
-
-| Case | Task |
-|---|---|
-| Single meeting record | Extract the confirmed decision, two action items, and one unresolved item |
-| Draft versus formal decision | Read both a draft and a formal decision, and treat the formal decision as authoritative |
-
-Each Case runs independently three times, so one complete evaluation contains six Target Agent runs.
-
-The steps below follow this workflow:
-
-1. Configure local Qwen3:8B and the Fireworks API model.
-2. Create the v1 agent.
-3. Export the v1 Snapshot.
-4. Create and run the Benchmark.
-5. Inspect the baseline and Traces.
-6. Optimize the agent.
-7. Evaluate the candidate with the same Benchmark.
-8. Accept the new version or roll it back.
-
-## Step 1: Install PenguinHarness and register the models
-
-In this step you install PenguinHarness and register both models the experiment uses.
-
-Install and start PenguinHarness:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Open the **Models** page in the Web App and add the local Qwen3:8B model:
-
-<img width="491" height="481" alt="PenguinHarness local Qwen3:8B model configuration" src="https://github.com/user-attachments/assets/a0d866e9-21e6-4b89-8ec1-b50710aed0db" />
-
-Next, configure the Fireworks API key and set DeepSeek V4 Flash as the default model:
-
-<img width="498" height="479" alt="PenguinHarness Fireworks API model configuration" src="https://github.com/user-attachments/assets/3b392317-615d-46d3-95c9-f9e3b4ad61a5" />
-
-New top-level `default_agent` chats now use the Project default, which is the Fireworks model. When the Benchmark runs `meeting_summary_agent`, it explicitly selects this local model pair:
-
-```text
-provider: custom
-model_id: qwen3:8b
-```
-
-The baseline and every candidate must use this same `(provider, model_id)` pair. Otherwise, their scores are not directly comparable.
-
-## Step 2: Create the v1 agent
-
-In this step you create the first version of the Target Agent and save a Snapshot of it as a recovery point.
-
-1. In the Web App, create a new agent with the id `meeting_summary_agent`. An agent id takes only lowercase letters, digits and underscores, so a hyphenated id is rejected.
-2. Start a new top-level chat with `default_agent`, and select the Fireworks model you just set as the Project default.
-3. Invoke the `agent-creation` Skill (renamed `agent-initialization` in PenguinHarness 0.2.4) and submit the prompt below.
-
-The prompt creates v1 of `meeting_summary_agent`. Version 1 defines only the basic responsibilities and safety boundaries. It does not preload a complete summarization workflow, so the Benchmark can expose the operating habits the agent lacks through actual runs.
-
-<details>
-<summary><strong>Expand: complete prompt for creating the v1 agent</strong></summary>
-
-```text
-Use the agent-creation Skill to configure the Agent `meeting_summary_agent`.
-
-Goal:
-This is a simple local-file summarization Agent. It reads the task instructions
-and text files in the current workspace, then creates the summary file requested
-by the task.
-
-Keep v1 minimal:
-
-1. In AGENTS.md, specify only that the Agent should:
- - Read the task and relevant files in the current workspace.
- - Produce a concise summary based on the file contents.
- - Work only inside the current workspace.
- - Not access external services.
- - Not expose environment variables, credentials, or unrelated files.
-
-2. Do not preload a complete file-summarization workflow, such as:
- - Requiring an inventory and full read of every source file.
- - Systematically distinguishing drafts from formal decisions.
- - Requiring all information to be divided into Confirmed, Action Items,
- and Unresolved sections.
- - Requiring a line-by-line validation of the output after creation.
-
-3. Do not install a domain-specific Skill.
-4. Do not deliberately instruct the Agent to make mistakes.
-5. Do not modify the stable system_prompt.
-6. Set:
- - name: Meeting Summary Agent
- - description: Summarizes a small set of local text files.
-
-Finally, report the Agent State files that were changed and the current
-State version.
-```
-
-</details>
-
-When the operation completes, the new agent appears in the Agents list. The screenshot comes from the original run, in which the agent's id was `meeting-summary-agent`:
-
-<img width="1376" height="464" alt="Meeting Summary Agent in the Agents list" src="https://github.com/user-attachments/assets/7e3f70d2-2164-4f90-8507-6c2d1cd9085c" />
-
-Open the agent's settings and, on the **Overview** tab, click **Export snapshot** to export the v1 Snapshot. The Snapshot is the recovery point if a later candidate fails, and the `agent-optimization` Skill will not change the Agent State until it exists:
-
-<img width="790" height="407" alt="Exporting the v1 Agent State Snapshot" src="https://github.com/user-attachments/assets/6f0c4745-3fd5-4c66-b302-bd58e42ce646" />
-
-## Step 3: Create the Benchmark and measure the baseline
-
-In this step you create and calibrate the Benchmark, and run the complete baseline for v1.
-
-In the same top-level `default_agent` chat on the Fireworks model, invoke the `benchmark-design` Skill and submit the prompt below. It creates and calibrates the v1 Benchmark, with this Benchmark ID:
-
-```text
-simple-file-summary-2case-v1
-```
-
-The maximum scores of the two Cases total 100 points, and each Case runs three times. The Target Agent sees only the public Statement, never the private Rubric.
-
-<details>
-<summary><strong>Expand: complete prompt for creating and calibrating the Benchmark</strong></summary>
-
-```text
-Use the benchmark-design Skill to create and calibrate a Benchmark for the
-following Test Agent.
-
-Test Agent:
-meeting_summary_agent
-
-Benchmark ID:
-simple-file-summary-2case-v1
-
-Evaluation model:
-provider: custom
-model_id: qwen3:8b
-
-Target capability:
-Read a small set of local text files and create SUMMARY.md in the workspace root.
-Accurately distinguish confirmed facts, action items, and unresolved information.
-When a draft conflicts with an explicit formal decision, treat the formal decision
-as authoritative.
-Do not guess or modify the input materials.
-
-Shared requirements:
-1. Each Case Statement must provide README.md and materials/*.txt.
-2. The Target Agent must create SUMMARY.md.
-3. SUMMARY.md must contain:
- - # Summary
- - ## Confirmed
- - ## Action Items
- - ## Unresolved
-4. Do not modify README.md or materials/.
-5. Set runs = 3.
-6. The maximum scores of the two Rubrics must total 100 points.
-7. The Statement must not reveal the private Rubric or expected answer.
-
-Create the following two Cases.
-
-CASE-001: Single meeting record, maximum 45 points
-
-materials/meeting.txt:
-
-Product weekly meeting, dated 2026-08-03.
-
-Formal decision: open the internal trial on 2026-08-10.
-
-Xiaolin is responsible for preparing the user guide, due 2026-08-06.
-Xiaozhou is responsible for completing smoke testing, due 2026-08-08.
-
-Whether mobile export will be included in this trial remains undecided.
-
-The Rubric should check:
-- Whether SUMMARY.md exists.
-- Whether the title and categories are correct.
-- Whether the internal trial date is accurate.
-- Whether the owner, task, and deadline are complete for both action items.
-- Whether mobile export remains classified as unresolved.
-- Whether no information was invented.
-- Whether the input files remain unchanged.
-
-CASE-002: Draft versus formal decision, maximum 55 points
-
-materials/plan_draft.txt:
-
-Project draft, dated 2026-08-01.
-The draft proposes a launch date of 2026-08-15.
-The tentative owner is Xiaolin.
-
-materials/final_decision.txt:
-
-Formal decision, dated 2026-08-04.
-Because testing has been delayed, the launch date is changed to 2026-08-22.
-Xiaolin is responsible for release preparation, due 2026-08-20.
-The email campaign date remains undecided.
-
-The Rubric should check:
-- Whether SUMMARY.md exists.
-- Whether the title and categories are correct.
-- Whether the formal launch date, 2026-08-22, is used.
-- Whether the draft date is not presented as the current decision.
-- Whether the release-preparation task and deadline are extracted accurately.
-- Whether the email campaign date remains classified as unresolved.
-- Whether no information was invented.
-- Whether the input files remain unchanged.
-
-Complete the full 2 Cases × 3 runs baseline and write the result to
-scoreboard.yaml.
-
-Finally, report:
-- The Benchmark path.
-- The total score.
-- The three raw scores and mean for each Case.
-- Run-to-run variation.
-- All Test Session IDs.
-```
-
-</details>
-
-When it completes, the Benchmark has this structure:
-
-<img width="635" height="350" alt="Generated Benchmark structure" src="https://github.com/user-attachments/assets/f44b9bbd-4b38-4c14-aa3a-2d95f44165cf" />
-
-Check the run's output in the Web App, then open **Evaluation Center** to review the total score, the mean of each Case, and the Sessions and Traces behind them:
-
-<img width="550" height="235" alt="Baseline Benchmark score" src="https://github.com/user-attachments/assets/5dbfb515-198d-4d29-9ff3-01eccd61d630" />
-
-The baseline total is 84. The task is intentionally small, so the baseline already exceeds 80, but there is still room for improvement. This score is the reference the candidate must beat.
-
-## Step 4: Optimize the agent
-
-In this step the Optimizer analyzes all six runs and their linked Traces, then makes one small, evidence-based change to the Agent State.
-
-In the top-level `default_agent` chat on the Fireworks model, invoke the `agent-optimization` Skill and submit the prompt below. It instructs the Optimizer to form one generalizable behavioral hypothesis, and then to update `AGENTS.md` or create a narrowly scoped Skill.
-
-<details>
-<summary><strong>Expand: complete prompt for optimizing the agent</strong></summary>
-
-```text
-Use the agent-optimization Skill in Benchmark optimization mode to improve
-the target Agent.
-
-Test Agent:
-meeting_summary_agent
-
-Benchmark:
-simple-file-summary-2case-v1
-
-Optimization objective:
-Improve the reliability of reading a small set of local files and producing
-an accurate summary.
-
-Rules:
-1. Use the complete baseline for the current version in scoreboard.yaml as
- the reference.
-2. Keep the same model:
- - provider: custom
- - model_id: qwen3:8b
-3. Do not modify the Cases, Statements, Rubrics, or runs.
-4. Analyze both Cases, all three runs per Case, and every score-linked Trace.
-5. In this round, propose only one falsifiable behavioral hypothesis that
- generalizes across Cases.
-6. Make only the smallest Agent State change needed to support that hypothesis.
-7. Prefer editing AGENTS.md. Create a narrowly scoped Skill only if a genuinely
- reusable capability is needed.
-8. Do not encode Case IDs, names, specific dates, expected answers, or private
- Rubric content.
-9. The candidate must run the complete 2 Cases × 3 runs matrix.
-10. Accept the candidate only if its total score is strictly higher than the
- reference. Roll it back if the score is equal or lower.
-11. Accept at most one new version in this run.
-
-Finally, report:
-- The reference total and Case means.
-- Stable failure patterns found in the Traces.
-- The behavioral hypothesis.
-- The Agent State files that were changed.
-- The candidate total and Case means.
-- The reason for acceptance or rollback.
-- All Test Session IDs.
-```
-
-</details>
-
-A likely direction is a concise operating procedure or a small set of workflow constraints. The exact change should come from evidence in the real Traces, not from embedding the Benchmark answers in the Agent State.
-
-## Step 5: Compare the results and keep the new version
-
-In this step the Optimizer evaluates the candidate under identical conditions and applies the acceptance rule.
-
-The candidate runs with the same two Cases, the same Qwen3:8B model and the same three repeated runs. The acceptance rule is simple:
-
-```text
-candidate total > reference total
-→ keep the new version
-
-candidate total <= reference total
-→ roll back to v1
-```
-
-In this run, the Optimizer adds an operating procedure to `AGENTS.md`, reruns the Cases and reports the new score:
-
-<img width="857" height="413" alt="Optimization result and updated Agent State" src="https://github.com/user-attachments/assets/f046ca42-e7ef-4063-8c10-babce816eba4" />
-
-If v2 is accepted, export a v2 Snapshot from the agent's **Overview** tab. To keep improving the agent, repeat the same process from the accepted version.
-
-Open **Evaluation Center** and select **MEETING SUMMARY AGENT** to see both evaluation rounds in the improvement history:
-
-<img width="628" height="515" alt="Two rounds in the Benchmark history" src="https://github.com/user-attachments/assets/58be7385-8746-4931-92e6-f563dc26e804" />
-
-Because the task is relatively simple, a single optimization round brings the score close to the maximum. On more complex real-world tasks, the value of the self-improvement loop becomes more apparent.
-
-## What the experiment shows
-
-You measured a baseline of 84, let the Optimizer change the Agent State based on Trace evidence, and applied a rule that keeps a new version only when it scores strictly higher under the same Benchmark, model and run count.
-
-This experiment does not show Qwen3:8B retraining itself during execution. It shows how PenguinHarness places the agent's operating procedure inside a verifiable loop:
-
-```text
-Behavior is measured by a Benchmark
-→ failures can be traced back through Traces
-→ improved procedures are written into Agent State
-→ the new version undergoes the complete evaluation again
-→ only measured improvements are retained
-```
-
-This approach is especially useful for local models. Without preparing training data or fine-tuning model weights, clearer operating procedures can still make an agent complete its tasks more reliably.
-
-## References
-
-- [PenguinHarness GitHub](https://github.com/Prism-Shadow/penguin-harness)
-- [PenguinHarness Self-Improvement Documentation](https://penguin.ooo/docs/self-improvement/)
-- [Fireworks API Credits and API Key Guide](https://penguin.ooo/blog/fireworks-credits-amd)
diff --git a/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.zh.md b/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.zh.md
deleted file mode 100644
index 0ec1fb75..00000000
--- a/packages/landing/content/blog/penguin-harness-self-improvement-with-amd-gpu.zh.md
+++ /dev/null
@@ -1,404 +0,0 @@
----
-title: "在 AMD GPU 上用 PenguinHarness 跑通 Agent 自我进化闭环"
-date: 2026-07-22
-category: practice
-author: 高钰洋(AMD)、张宁(AMD)、郑耀威(PrismShadow)
-excerpt: "用 AMD GPU 上的本地 Qwen3:8B 和 Fireworks API 上的模型,跑通一个完整的 PenguinHarness 自我进化闭环:从基线评估、Trace 分析,到 Agent 优化与回滚。"
-description: "介绍 PenguinHarness 如何通过 Benchmark、Trace、可编辑的 Agent State 与 Snapshot 回滚构建自我进化闭环,并用本地 Qwen3:8B 与 Fireworks API 完成一次双模型实验。"
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-AMD × PrismShadow——高钰洋、张宁(AMD),郑耀威(PrismShadow)。
-
-在本教程中,你会用 [PenguinHarness](https://github.com/Prism-Shadow/penguin-harness) 跑通一个完整的自我进化闭环:创建一个小 Agent,用 Benchmark 评估它,让 Optimizer 根据真实 Trace 中的证据改进它,分数更高才保留新版本。被测 Agent 使用 AMD GPU 上的 Qwen3:8B;负责创建、评估和优化的 Agent 则使用 Fireworks API 上的模型。
-
-全程不重新训练模型,也不改动任何权重。本教程面向想让 Agent 更可靠、又不想准备训练数据的开发者,尤其适合 Agent 使用本地模型的场景。任务刻意选得很小,因为这里关注的是闭环本身,而不是比较模型在排行榜上的高低。
-
-## 准备工作
-
-- 一块 AMD GPU,并且 Ollama 已经能在上面正常运行 Qwen3:8B。AMD 驱动、ROCm 和 Ollama 的安装不在本教程范围内,具体方法可以参考 [Ollama Linux 文档](https://docs.ollama.com/linux)和 [GPU 支持文档](https://docs.ollama.com/gpu)。
-- Fireworks API 访问权限。通过 AMD AI Developer Program,AMD 与 Fireworks AI 合作,为符合条件的开发者提供价值 50 美元的免费 Fireworks 额度;Fireworks 通过 OpenAI 兼容端点提供开源权重模型。额度兑换和 API Key 获取步骤,见 [Fireworks API 获取指南](https://penguin.ooo/blog/fireworks-credits-amd)。
-
-## PenguinHarness 如何实现自我进化
-
-PenguinHarness 是一个开源的 Agent Harness。它把模型接入、Agent 配置、Workspace 工具、Session、Trace、Skill 和 Benchmark 放在同一套运行环境中,同时提供 CLI 与 Web App;在线模型和通过 OpenAI 兼容端点暴露的本地模型,都可以用作推理后端。
-
-PenguinHarness 把 Agent 的行为定义为一组可读、可编辑、带版本的状态文件,而不是一段只能由开发者手工维护的固定提示词。角色说明、工作流程、可复用的 Skill 和运行参数都属于 Agent State,每次任务也都会留下完整的 Session 与 Trace。因此,一个 Agent 可以先评估另一个 Agent,再根据真实运行记录修改它的 State,最后用同一套评估验证修改是否有效。
-
-这就是 PenguinHarness 所说的自我进化:它不重新训练模型,也不更新模型权重,而是改进模型外围的 Agent Harness,并用可重复的测量结果决定新版本能否保留。
-
-### 可编辑的 Agent State
-
-Agent State 中主要的可编辑部分包括:
-
-- `AGENTS.md`:角色、边界和工作流程;
-- `skills/`:可复用的能力;
-- `system_config.yaml`:版本和运行配置。
-
-### 三个角色
-
-- **Target Agent**:执行任务、接受评估和改进的目标 Agent;
-- **Evaluator**:在隔离的 Workspace 中运行一道 Benchmark 题目,并按私有评分细则打分;
-- **Optimizer**:读取基线分数及其关联的 Trace,提出改进假设,并修改 Target Agent 的 State。
-
-### 自我进化闭环
-
-1. 为目标能力创建包含多道题目的 Benchmark。
-2. 多次运行 Target Agent,得到可追溯的基线。
-3. 根据分数和关联的 Trace,定位稳定的失败模式。
-4. 保存快照,然后修改 Agent State。
-5. 用同一个 Benchmark 和同一个模型评估候选版本。
-6. 总分严格提高才保留新版本,否则恢复之前的 State。
-
-这个闭环由内置 Skill 编排:
-
-- `agent-creation`:根据需求创建初始 Agent;
-- `benchmark-design`:设计包含多道题目的 Benchmark,并建立完整基线;
-- `agent-evaluation`:隔离执行一道题目的一次运行并打分;
-- `agent-optimization`:分析基线和 Trace,修改 Agent State,评估候选版本并处理回滚。
-
-关键不只是让一个模型改写另一个模型的提示词,而是让每次修改都在相同条件下重新评估。Benchmark 提供测量,Trace 提供证据,快照提供恢复点,State 版本号则把每个分数对应到实际产生它的 Agent State。优化没有带来严格提升时,候选修改就不算一次成功的进化。
-
-### 两个模型,各司其职
-
-本教程把工作分给两个模型:
-
-| 用途 | Agent | 模型 |
-|---|---|---|
-| 创建 Agent、设计 Benchmark 和执行优化 | `default_agent` | Fireworks API 模型 |
-| 接受评估和改进 | `meeting_summary_agent` | AMD GPU 上的 Qwen3:8B |
-
-Qwen3:8B 通过 Ollama 在 AMD GPU 上运行,作为 Target Agent 的模型;通过 Fireworks API 调用的模型运行 `default_agent`,负责创建 Agent、设计 Benchmark 和执行优化。你会先测出 v1 的基线,再让 Optimizer 根据真实 Trace 改进 Agent,最后由同一个 Benchmark 决定接受新版本还是回滚。
-
-## 本文要完成的实验
-
-你要创建的是 `meeting_summary_agent`。它读取少量文本文件,并在 Workspace 中生成下面这个文件:
-
-```markdown
-# 摘要
-
-## 已确认
-
-## 待办
-
-## 未确定
-```
-
-再用一个包含两道题目的 Benchmark 评估它:
-
-| 题目 | 任务 |
-|---|---|
-| 单份会议纪要 | 提取已确认事项、两个待办和一个未确定项 |
-| 草案与正式决定 | 同时读取草案和正式决定,并以正式决定为准 |
-
-每道题目独立运行三次,因此一次完整评估共有六次 Target Agent 运行。
-
-下面的步骤按这个流程展开:
-
-1. 配置本地 Qwen3:8B 与 Fireworks API 模型。
-2. 创建 v1 Agent。
-3. 导出 v1 快照。
-4. 创建并运行 Benchmark。
-5. 查看基线和 Trace。
-6. 优化 Agent。
-7. 用同一个 Benchmark 评估候选版本。
-8. 接受新版本或回滚。
-
-## 第一步:安装 PenguinHarness 并注册模型
-
-这一步安装 PenguinHarness,并注册实验要用到的两个模型。
-
-安装并启动 PenguinHarness:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-在 Web App 中打开**模型仓库**页面,添加本地 Qwen3:8B:
-
-<img width="491" height="481" alt="PenguinHarness 本地 Qwen3:8B 模型配置" src="https://github.com/user-attachments/assets/a0d866e9-21e6-4b89-8ec1-b50710aed0db" />
-
-然后配置 Fireworks API Key,并将 DeepSeek V4 Flash 设为默认模型:
-
-<img width="498" height="479" alt="PenguinHarness Fireworks API 模型配置" src="https://github.com/user-attachments/assets/3b392317-615d-46d3-95c9-f9e3b4ad61a5" />
-
-这样,新建的 `default_agent` 顶层对话会使用 Project 默认模型,也就是 Fireworks 模型;Benchmark 运行 `meeting_summary_agent` 时,则显式指定下面这组本地模型配置:
-
-```text
-provider: custom
-model_id: qwen3:8b
-```
-
-基线和每个候选版本都必须使用同一组 `(provider, model_id)`,否则分数无法直接比较。
-
-## 第二步:创建 v1 Agent
-
-这一步创建 Target Agent 的第一个版本,并保存一份快照作为恢复点。
-
-1. 在 Web App 中创建一个新 Agent,Agent id 填 `meeting_summary_agent`。Agent id 只能包含小写字母、数字和下划线,带短横线的 id 会被拒绝。
-2. 与 `default_agent` 新建一个顶层对话,模型选择刚刚设为 Project 默认模型的 Fireworks 模型。
-3. 调用 `agent-creation` Skill(0.2.4 起更名为 `agent-initialization`),并提交下面的提示词。
-
-这段提示词会生成 `meeting_summary_agent` 的 v1 版本。v1 只定义基本职责和安全边界,不提前写入完整的总结流程,这样 Benchmark 才能在真实运行中暴露它缺少的工作习惯。
-
-<details>
-<summary><strong>展开:创建 v1 Agent 的完整提示词</strong></summary>
-
-```text
-请使用 agent-creation Skill 配置 Agent `meeting_summary_agent`。
-
-目标:
-这是一个简单的本地文件总结 Agent。它读取当前工作区中的任务说明和文本文件,并创建题目要求的总结文件。
-
-请将 v1 保持简洁:
-
-1. 在 AGENTS.md 中只写清:
- - 读取当前工作区中的任务和相关文件;
- - 根据文件内容生成简洁总结;
- - 只在当前工作区工作;
- - 不访问外部服务;
- - 不泄露环境变量、凭证或无关文件。
-
-2. 不要预先加入完整的文件总结工作流,例如:
- - 强制列出并读取全部材料;
- - 系统区分草案与正式决定;
- - 强制将信息分为已确认、待办和未确定;
- - 完成后逐项核对输出。
-
-3. 不要安装业务 Skill。
-4. 不要故意要求 Agent 犯错。
-5. 不修改稳定的 system_prompt。
-6. 设置:
- - name: Meeting Summary Agent
- - description: Summarizes a small set of local text files.
-
-最后报告修改的 Agent State 文件和当前 State version。
-```
-
-</details>
-
-创建完成后,可以在 Agent 列表中看到新 Agent。下图来自最初的那次运行,当时的 Agent id 是 `meeting-summary-agent`:
-
-<img width="1376" height="464" alt="Agent 列表中的 Meeting Summary Agent" src="https://github.com/user-attachments/assets/7e3f70d2-2164-4f90-8507-6c2d1cd9085c" />
-
-打开这个 Agent 的设置页面,在**概览**标签页点击**导出快照**,导出 v1 快照。后续候选版本失败时,这份快照就是恢复点;在它存在之前,`agent-optimization` Skill 不会改动 Agent State:
-
-<img width="790" height="407" alt="导出 v1 Agent State Snapshot" src="https://github.com/user-attachments/assets/6f0c4745-3fd5-4c66-b302-bd58e42ce646" />
-
-## 第三步:创建 Benchmark 并测量基线
-
-这一步创建并校准 Benchmark,然后跑完 v1 的完整基线。
-
-仍然在使用 Fireworks 模型的 `default_agent` 顶层对话中调用 `benchmark-design` Skill,并提交下面的提示词。它会创建并校准 v1 版本的 Benchmark,Benchmark ID 为:
-
-```text
-simple-file-summary-2case-v1
-```
-
-两道题目的满分合计 100 分,每道题目运行三次。Target Agent 只能看到公开的题干,看不到私有评分细则。
-
-<details>
-<summary><strong>展开:创建并校准 Benchmark 的完整提示词</strong></summary>
-
-```text
-请使用 benchmark-design Skill,为下面的 Test Agent 创建并校准 Benchmark。
-
-Test Agent:
-meeting_summary_agent
-
-Benchmark ID:
-simple-file-summary-2case-v1
-
-评测模型:
-provider: custom
-model_id: qwen3:8b
-
-能力目标:
-读取少量本地文本文件,在工作区根目录创建 SUMMARY.md;
-准确区分已确认事实、待办事项和未确定信息;
-当草案与明确的正式决定冲突时,以正式决定为准;
-不得猜测或修改输入材料。
-
-统一要求:
-1. 每个 Case 的 statement 中提供 README.md 和 materials/*.txt。
-2. Target Agent 必须创建 SUMMARY.md。
-3. SUMMARY.md 包含:
- - # 摘要
- - ## 已确认
- - ## 待办
- - ## 未确定
-4. 不得修改 README.md 或 materials/。
-5. runs = 3。
-6. 两个 Rubric 的最高分合计为 100。
-7. Statement 不得泄露私有 Rubric 或标准答案。
-
-请创建以下两个 Case。
-
-CASE-001:单份会议纪要,最高 45 分
-
-materials/meeting.txt:
-
-产品周会,日期 2026-08-03。
-
-正式决定:2026-08-10 开放内部试用。
-
-小林负责整理使用说明,截止 2026-08-06。
-小周负责完成冒烟测试,截止 2026-08-08。
-
-移动端导出是否包含在本次试用中,尚未决定。
-
-Rubric 应检查:
-- SUMMARY.md 是否存在;
-- 标题和分类是否正确;
-- 内部试用日期是否准确;
-- 两个待办的负责人、事项和截止日期是否完整;
-- 移动端导出是否保留为未确定;
-- 是否没有编造信息;
-- 输入文件是否保持不变。
-
-CASE-002:草案与正式决定,最高 55 分
-
-materials/plan_draft.txt:
-
-项目草案,日期 2026-08-01。
-草案计划在 2026-08-15 上线。
-初步负责人为小林。
-
-materials/final_decision.txt:
-
-正式决定,日期 2026-08-04。
-由于测试延期,上线日期改为 2026-08-22。
-小林负责发布准备,截止 2026-08-20。
-邮件宣传时间尚未确定。
-
-Rubric 应检查:
-- SUMMARY.md 是否存在;
-- 标题和分类是否正确;
-- 是否使用正式上线日期 2026-08-22;
-- 是否没有把草案日期当成当前决定;
-- 是否准确提取发布准备任务和截止日期;
-- 邮件宣传时间是否保留为未确定;
-- 是否没有编造信息;
-- 输入文件是否保持不变。
-
-完成完整的 2 Cases × 3 runs 基线,将结果写入 scoreboard.yaml。
-
-最后报告:
-- Benchmark 路径;
-- 总分;
-- 两个 Case 的三次原始分数与均分;
-- 运行波动;
-- 全部 Test Session ID。
-```
-
-</details>
-
-完成后,Benchmark 的结构如下:
-
-<img width="635" height="350" alt="生成后的 Benchmark 结构" src="https://github.com/user-attachments/assets/f44b9bbd-4b38-4c14-aa3a-2d95f44165cf" />
-
-在 Web App 中查看运行输出,然后打开**评估中心**,查看总分、每道题目的平均分,以及对应的 Session 和 Trace:
-
-<img width="550" height="235" alt="Benchmark 基线评分" src="https://github.com/user-attachments/assets/5dbfb515-198d-4d29-9ff3-01eccd61d630" />
-
-基线总分为 84 分。由于任务较为简单,基线已经超过 80 分,但仍有提升空间。候选版本必须超过这个分数。
-
-## 第四步:优化 Agent
-
-这一步由 Optimizer 分析全部六次运行及其关联的 Trace,再根据证据对 Agent State 做一处小的修改。
-
-在使用 Fireworks 模型的 `default_agent` 顶层对话中调用 `agent-optimization` Skill,并提交下面的提示词。它要求 Optimizer 提出一个可泛化的行为假设,再修改 `AGENTS.md`,或者创建一个职责明确、范围有限的 Skill。
-
-<details>
-<summary><strong>展开:优化 Agent 的完整提示词</strong></summary>
-
-```text
-请使用 agent-optimization Skill,以 Benchmark optimization mode 优化目标 Agent。
-
-Test Agent:
-meeting_summary_agent
-
-Benchmark:
-simple-file-summary-2case-v1
-
-优化目标:
-提高读取少量本地文件并生成可靠总结的稳定性。
-
-规则:
-1. 使用 scoreboard.yaml 中当前版本的完整基线作为 reference。
-2. 保持相同模型:
- - provider: custom
- - model_id: qwen3:8b
-3. 不修改 Case、Statement、Rubric 或 runs。
-4. 分析全部 2 个 Case、每个 Case 的 3 次运行和全部 score-linked Trace。
-5. 本轮只提出一个可证伪、可跨 Case 泛化的行为假设。
-6. 只做支持该假设的最小 Agent State 修改。
-7. 优先修改 AGENTS.md;只有确实需要复用能力时,才创建职责明确、范围有限的 Skill。
-8. 不得写入 Case ID、人物名、具体日期、标准答案或私有 Rubric。
-9. Candidate 必须运行完整的 2 Cases × 3 runs。
-10. Candidate 总分严格高于 reference 才接受;相同或下降必须回滚。
-11. 本次最多接受一个新版本。
-
-最后报告:
-- reference 总分和各 Case 均分;
-- 从 Trace 中发现的稳定失败模式;
-- 行为假设;
-- 修改的 Agent State 文件;
-- candidate 总分和各 Case 均分;
-- 接受或回滚原因;
-- 全部 Test Session ID。
-```
-
-</details>
-
-一种可能的优化方向,是加入简洁的工作流程或一小组执行约束。具体修改应由真实 Trace 中的证据决定,而不是把 Benchmark 的答案直接写进 Agent State。
-
-## 第五步:比较结果并保留新版本
-
-这一步由 Optimizer 在完全相同的条件下评估候选版本,并执行接受规则。
-
-候选版本使用同样的两道题目、同样的 Qwen3:8B 和同样的三次重复运行。接受规则很简单:
-
-```text
-candidate 总分 > reference 总分
-→ 保留新版本
-
-candidate 总分 <= reference 总分
-→ 回滚到 v1
-```
-
-这次运行中,Optimizer 在 `AGENTS.md` 里新增了工作流程,重新运行全部题目,并报告了新的分数:
-
-<img width="857" height="413" alt="Agent 优化结果与更新后的 Agent State" src="https://github.com/user-attachments/assets/f046ca42-e7ef-4063-8c10-babce816eba4" />
-
-如果 v2 被接受,就在 Agent 的**概览**标签页导出 v2 快照。如果还要继续优化,就从已接受的版本出发,重复上述流程。
-
-打开**评估中心**,选择 **MEETING SUMMARY AGENT**,就能看到两轮评估形成的进化记录:
-
-<img width="628" height="515" alt="Benchmark 页面中的两轮进化记录" src="https://github.com/user-attachments/assets/58be7385-8746-4931-92e6-f563dc26e804" />
-
-由于示例任务较为简单,一轮优化就把分数推到接近满分。在更复杂的真实任务中,自我进化闭环的价值会体现得更加明显。
-
-## 实验说明了什么
-
-你测出了 84 分的基线,让 Optimizer 根据 Trace 中的证据修改 Agent State,并执行了这样一条规则:只有在同一个 Benchmark、同一个模型、同样的运行次数下总分严格更高,新版本才会被保留。
-
-这个实验展示的并不是 Qwen3:8B 在运行中重新训练了自己,而是 PenguinHarness 如何让 Agent 的工作流程进入一个可验证的闭环:
-
-```text
-行为被 Benchmark 测量
-→ 失败可以回溯到 Trace
-→ 工作流程被写入 Agent State
-→ 新版本重新接受完整评测
-→ 只有真实提升才被保留
-```
-
-对于本地模型来说,这种方式尤其有价值:不需要准备训练数据,也不需要微调模型权重,更清晰的工作流程同样能提高 Agent 完成任务的稳定性。
-
-## 参考资料
-
-- [PenguinHarness GitHub](https://github.com/Prism-Shadow/penguin-harness)
-- [PenguinHarness 自我进化文档](https://penguin.ooo/docs/self-improvement/)
-- [Fireworks API 免费额度兑换与 API Key 获取](https://penguin.ooo/blog/fireworks-credits-amd)
diff --git a/packages/landing/content/blog/penguinharness-0-1-4.en.md b/packages/landing/content/blog/penguinharness-0-1-4.en.md
deleted file mode 100644
index 571e1f74..00000000
--- a/packages/landing/content/blog/penguinharness-0-1-4.en.md
+++ /dev/null
@@ -1,89 +0,0 @@
----
-title: "PenguinHarness 0.1.4: Windows support, goal mode, and the agents panel"
-date: 2026-07-27
-category: news
-excerpt: 0.1.4 brings PenguinHarness to Windows with a one-line installer, adds goal mode to keep a Session working until an objective is done, and moves subagents into an agents panel with a live call graph.
----
-
-PenguinHarness 0.1.4 is out, and it now installs and runs on Windows. A new **goal mode** keeps a Session working until an objective is actually done, not merely replied to. A new **agents panel** turns subagent runs from nested cards into a live call graph you can watch and steer.
-
-## Windows support
-
-Install PenguinHarness on Windows with one line in PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-```
-
-The script downloads `penguin-win32-x64.zip`, which bundles the official Windows Node runtime, so you do not need to install anything first. It verifies the archive's SHA256 checksum, installs through a staged swap that never touches your `data\` directory, and adds `penguin` to your user PATH. Existing PATH entries that use variables, such as `%USERPROFILE%`, stay intact. The script at the stable URL is a small forwarder that downloads the full installer before running it, so a truncated download cannot leave a half-finished install. If you prefer npm, `npm install -g @prismshadow/penguin-cli` works anywhere Node ≥ 24 runs.
-
-The harder part was the agent itself. Every `exec_command` used to fail on Windows with `spawn bash ENOENT`, because command sessions always started bash. Command sessions now choose their shell per platform. On Windows they try Git-Bash first, since it works best with Skills written for POSIX shells, then `pwsh`, then `powershell`. Set `PENGUIN_SHELL` to override the choice. A `bash` that resolves into the Windows system directory is skipped, because that is the WSL launcher, which sees a different filesystem.
-
-The model learns which shell it has from a `Shell:` line in the Session environment. When it gets PowerShell, it writes PowerShell syntax instead of bash.
-
-CI keeps all of this working. A `ci-windows` job now runs the full build, typecheck and tests, plus a PowerShell syntax check, beside the required Ubuntu job. Getting it green surfaced and fixed real Windows bugs, including a symlink guard on Workspace uploads that POSIX's `O_NOFOLLOW` had been providing silently and that Windows lacked.
-
-A few limits remain, and the docs state them:
-
-- The package is x64 only for now. ARM64 machines run it through emulation.
-- Ctrl-C in `input_command` kills the whole command tree instead of interrupting only the foreground command.
-- To upgrade, re-run the installer. In-place `penguin update` still refuses to run on Windows.
-
-## Goal mode
-
-A normal Task ends when the model stops calling tools and replies. That suits a request, but not an objective: "make the check suite green" is not done just because the model went quiet. Goal mode changes the contract. You state an objective, and the system keeps running Tasks on the same Session, re-injecting the objective every round, until the goal reaches a final state.
-
-The model has to claim completion through a protocol; silence does not count. Each goal run creates a `GOAL.yaml` file next to the Session's `PLAN.md`. The model may change only one field, `status`, and only to `complete` or `blocked`. The rules injected every round tell the model to:
-
-- Check a completion claim against evidence, such as files, command output and test results, before writing it.
-- Never shrink the objective to an easier subset.
-- Claim `blocked` only after the same blocker has held for three consecutive rounds, so a temporary obstacle does not end the goal.
-
-You can set an optional Token budget, such as `500k` or `2m`, which is checked between rounds. When the budget runs out, the model gets one wrap-up round to summarize its progress and the remaining work. The goal then ends as budget-limited instead of pretending to succeed.
-
-In the Web App, the composer's new **+** menu adds a goal chip with an inline budget field; `/goal` in the slash menu does the same. Each round appears as a regular user message with a "Goal · round N" notice below it, and a live banner above the composer tracks the objective, the round count and tokens against the budget. The screenshot below shows round 3 of a real loop, in the middle of verification.
-
-<img class="dark:hidden" src="/blog-assets/goal-mode-en-light.webp" alt="Goal mode mid-loop: round 3 of a check-suite objective, with the goal banner above the composer tracking the objective, the round count and tokens against the budget" width="1920" height="1350" />
-<img class="hidden dark:block" src="/blog-assets/goal-mode-en-dark.webp" alt="Goal mode mid-loop in dark theme: round 3 of a check-suite objective, with the goal banner above the composer tracking the objective, the round count and tokens against the budget" width="1920" height="1350" />
-
-The CLI offers the same loop: `/goal[:<budget>] <objective>` in chat, and `--goal` on `penguin run`, where only a completed goal exits 0. That makes an objective something you can put in a script. The SDK keeps its single entry point: `session.run(input, { goal: { budget } })`.
-
-## The agents panel
-
-`run_subagent` used to inline each child's entire conversation into the parent's message flow. Cards nested inside cards became unreadable after the second child. 0.1.4 moves child conversations into a dedicated agents panel that docks on the right, just like the Workspace files panel: toggle it from the toolbar and drag to resize it. On phones it opens as a bottom sheet.
-
-In the message flow, each child leaves a single row: its avatar, its agent name, a spinner while it runs, and an amber dot whenever an approval is pending anywhere in its subtree. A nested approval stays easy to find even with the panel closed.
-
-<img class="dark:hidden" src="/blog-assets/agents-panel-en-light.webp" alt="The agents panel: a call graph with the main session as root and two named subagents with live elapsed times, above the selected child's streaming conversation" width="1920" height="1350" />
-<img class="hidden dark:block" src="/blog-assets/agents-panel-en-dark.webp" alt="The agents panel in dark theme: a call graph with the main session as root and two named subagents with live elapsed times, above the selected child's streaming conversation" width="1920" height="1350" />
-
-The top of the panel is the **Call graph**, with one node per participating agent: avatar, name, run-state dot and elapsed time. The time ticks while a child runs and freezes at its final duration once it is done, so a reloaded page shows the same durations as a live one. The main Session is the root, and edges show which agent spawned which.
-
-Click a node to switch the conversation below to that child. It renders the same way as the main stream: the child's own user prompt is there, tool cards stream live, and approval buttons work from inside the panel.
-
-The panel's visibility follows the Task. Each new Task starts with the panel closed, and the panel opens once, automatically, when the Task first spawns a subagent. If you open or close it yourself, your choice holds for the rest of the Task. The graph follows the latest Task by default; click a child's row from an earlier turn to pin that turn's spawn tree instead.
-
-## Also in 0.1.4
-
-- An in-progress reply now survives a page refresh. After a reload, the part that has already streamed is back at once and keeps growing.
-- The cost and elapsed-time chips in the chat header tick live while a Task runs, as the Token count already did.
-- Trace files can be exported and imported, so a trajectory can move between deployments.
-- The app knows its own version. A **Check for updates** row in the user menu shows the running version, and admins can update in place with one click.
-
-The full list is in the [v0.1.4 release notes](https://github.com/Prism-Shadow/penguin-harness/releases/tag/v0.1.4).
-
-## Get it
-
-```bash
-# Linux / macOS
-curl -fsSL https://penguin.ooo/install.sh | sh
-```
-
-```powershell
-# Windows
-irm https://penguin.ooo/install.ps1 | iex
-```
-
-You can also install with `npm install -g @prismshadow/penguin-cli` on Node ≥ 24. On npm, 0.1.4 is the version to install: 0.1.3 has the same features but never reached npm.
-
-Then run `penguin web`, add a model key on the **Models** page, and state an objective.
diff --git a/packages/landing/content/blog/penguinharness-0-1-4.zh.md b/packages/landing/content/blog/penguinharness-0-1-4.zh.md
deleted file mode 100644
index 8aa7bb25..00000000
--- a/packages/landing/content/blog/penguinharness-0-1-4.zh.md
+++ /dev/null
@@ -1,89 +0,0 @@
----
-title: "PenguinHarness 0.1.4:Windows 支持、目标模式与智能体面板"
-date: 2026-07-27
-category: news
-excerpt: 0.1.4 让 PenguinHarness 登陆 Windows,一行命令即可安装;新增目标模式,让会话一直推进到目标真正完成;子 Agent 移进智能体面板,以实时调用图呈现。
----
-
-PenguinHarness 0.1.4 发布了,现在可以在 Windows 上安装和运行。新增的**目标模式**让会话持续推进,直到目标真正完成,而不是模型回复一句就算结束。新增的**智能体面板**把子 Agent 的运行从层层嵌套的卡片变成一张实时调用图,可观察,也可操作。
-
-## Windows 支持
-
-在 PowerShell 里用一行命令即可在 Windows 上安装 PenguinHarness:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-```
-
-脚本会下载 `penguin-win32-x64.zip`,包内自带官方 Windows 版 Node 运行时,无需预装任何东西。它会校验压缩包的 SHA256,用「先落地再替换」的方式安装,全程不碰你的 `data\` 目录,并把 `penguin` 加入用户 PATH。PATH 里已有的带变量条目(例如 `%USERPROFILE%`)会原样保留。稳定地址上的脚本只是一个转发器,它会先把完整的安装脚本下载下来再执行,即使下载中途断掉,也不会留下装到一半的程序。偏好 npm 的话,`npm install -g @prismshadow/penguin-cli` 在任何 Node ≥ 24 的环境都能用。
-
-真正难的部分在 Agent 本身。以前在 Windows 上,每次 `exec_command` 都会报 `spawn bash ENOENT`,因为命令会话写死了 bash。现在命令会话按平台选择 shell:Windows 上优先尝试 Git-Bash,它和面向 POSIX shell 编写的 Skill 最兼容;其次是 `pwsh`,再次是 `powershell`。设置 `PENGUIN_SHELL` 可以覆盖这个选择。如果 `bash` 解析到 Windows 系统目录,就会跳过它,因为那是 WSL 启动器,看到的是另一套文件系统。
-
-模型通过会话环境里的 `Shell:` 一行得知自己用的是哪种 shell。拿到 PowerShell 时,它就写 PowerShell 语法,而不是 bash。
-
-这些都由 CI 守住。除了必需的 Ubuntu 任务,现在还有一个 `ci-windows` 任务,运行完整的构建、类型检查和测试,外加 PowerShell 语法检查。把它跑绿的过程中发现并修复了几个真实的 Windows 问题,其中包括 Workspace 上传的符号链接防护:在 POSIX 系统上,这层防护一直由 `O_NOFOLLOW` 默默提供,Windows 上却没有。
-
-目前仍有几项限制,文档里都写明了:
-
-- 安装包暂时只有 x64,ARM64 机器通过转译运行。
-- `input_command` 里的 Ctrl-C 会结束整棵命令进程树,而不是只中断前台命令。
-- 升级需要重新运行安装脚本。在 Windows 上,`penguin update` 仍然拒绝原地升级。
-
-## 目标模式
-
-普通 Task 在模型停止调用工具、给出回复时结束。这对「一个请求」是对的,对「一个目标」却不对:「让检查套件全绿」不会因为模型不说话了就算完成。目标模式改变了这个约定:你给出目标,系统在同一个会话上持续运行 Task,每一轮重新注入目标,直到目标进入终态。
-
-完成必须通过协议声明,沉默不算数。每次目标运行都会在会话的 `PLAN.md` 旁边创建一个 `GOAL.yaml` 文件。模型只能改其中一个字段 `status`,而且只能改成 `complete` 或 `blocked`。每轮注入的规则要求模型:
-
-- 声明完成之前,先对照证据自查,例如文件、命令输出和测试结果。
-- 不得把目标缩水成更容易的子集。
-- 同一个障碍连续存在三轮之后,才能声明 `blocked`,这样一时的阻碍不会让目标就此结束。
-
-还可以给目标设一个 Token 预算,例如 `500k` 或 `2m`,系统在每两轮之间检查一次。预算耗尽时,模型还有最后一个收尾轮,用来总结进展和剩余工作。随后目标以「预算耗尽」结束,而不是假装成功。
-
-在 Web App 里,输入框新增的 **+** 菜单可以挂上目标条,并直接在里面填写预算;斜杠菜单里的 `/goal` 效果相同。每一轮都显示为一条普通的用户消息,下方带「目标 · 第 N 轮」的标注;输入框上方的实时横幅显示目标、轮次,以及 Token 用量与预算的对比。下面的截图就是一次真实循环的第 3 轮,正在验证中。
-
-<img class="dark:hidden" src="/blog-assets/goal-mode-zh-light.webp" alt="目标模式进行中:检查套件目标的第 3 轮,输入框上方的目标横幅实时显示目标、轮次与 token 用量对预算" width="1920" height="1350" />
-<img class="hidden dark:block" src="/blog-assets/goal-mode-zh-dark.webp" alt="深色主题下的目标模式:检查套件目标的第 3 轮,输入框上方的目标横幅实时显示目标、轮次与 token 用量对预算" width="1920" height="1350" />
-
-CLI 提供同样的循环:聊天里用 `/goal[:<预算>] <目标>`,`penguin run` 则加上 `--goal`,此时只有目标真正完成,命令才以 0 退出,所以可以把目标直接写进脚本。SDK 仍然只有一个入口:`session.run(input, { goal: { budget } })`。
-
-## 智能体面板
-
-以前,`run_subagent` 会把每个子 Agent 的完整对话内联进父会话的消息流。卡片套卡片,超过两个子 Agent 就没法读了。0.1.4 把子 Agent 的对话移进专门的智能体面板。它和 Workspace 文件面板一样停靠在右侧:在工具栏里开关,拖拽调整宽度;在手机上则以底部抽屉的形式打开。
-
-消息流里,每个子 Agent 只留下一行:头像、Agent 名称、运行中的旋转指示,以及一个琥珀色圆点,子树中任何位置有待审批时就会出现。即使面板关着,也不会错过嵌套的审批。
-
-<img class="dark:hidden" src="/blog-assets/agents-panel-zh-light.webp" alt="智能体面板:调用图以主会话为根、两个具名子智能体带实时用时,下方是选中子会话的流式对话" width="1920" height="1350" />
-<img class="hidden dark:block" src="/blog-assets/agents-panel-zh-dark.webp" alt="深色主题下的智能体面板:调用图以主会话为根、两个具名子智能体带实时用时,下方是选中子会话的流式对话" width="1920" height="1350" />
-
-面板顶部是**调用关系**图,每个参与的 Agent 对应一个节点,显示头像、名称、运行状态圆点和用时。子 Agent 运行时,用时实时走秒;结束后定格为实际耗时,所以刷新后的页面和实时页面显示的数字一致。主会话是根节点,连线表示哪个 Agent 派生了哪个。
-
-点击节点,下方的对话就切换到这个子 Agent。它的渲染方式和主消息流相同:子 Agent 自己收到的用户消息也显示在其中,工具卡片实时流式输出,审批按钮在面板里直接可用。
-
-面板的显隐以 Task 为单位。每个新 Task 开始时面板关闭;Task 第一次派生子 Agent 时,面板自动打开一次。之后你手动打开或关闭面板,这个选择会一直保持到这个 Task 结束。调用图默认跟随最新的 Task;点击更早轮次里的子 Agent 行,则钉住那一轮的派生树。
-
-## 0.1.4 还有这些
-
-- 正在生成的回复不会再因为刷新页面而丢失。刷新后,已经输出的部分立刻恢复,并接着往下生成。
-- Task 运行期间,对话页头部的费用和用时统计会实时更新,和此前就已实时更新的 Token 计数一样。
-- Trace 文件支持导出和导入,一条轨迹可以在不同部署之间迁移。
-- 应用现在能显示自己的版本号:用户菜单里的**检查更新**一行会显示当前运行的版本,管理员还能一键原地更新。
-
-完整清单见 [v0.1.4 发布说明](https://github.com/Prism-Shadow/penguin-harness/releases/tag/v0.1.4)。
-
-## 获取
-
-```bash
-# Linux / macOS
-curl -fsSL https://penguin.ooo/install.sh | sh
-```
-
-```powershell
-# Windows
-irm https://penguin.ooo/install.ps1 | iex
-```
-
-也可以在 Node ≥ 24 的环境里用 `npm install -g @prismshadow/penguin-cli` 安装。通过 npm 安装请选 0.1.4:0.1.3 的功能与之相同,但没能发布到 npm。
-
-然后运行 `penguin web`,在**模型仓库**页面添加模型密钥,再给它一个目标。
diff --git a/packages/landing/content/blog/penguinharness-0-1-5.en.md b/packages/landing/content/blog/penguinharness-0-1-5.en.md
deleted file mode 100644
index 304b8e2c..00000000
--- a/packages/landing/content/blog/penguinharness-0-1-5.en.md
+++ /dev/null
@@ -1,92 +0,0 @@
----
-title: "PenguinHarness 0.1.5: offline installs, file attachments, and runs that recover"
-date: 2026-07-30
-category: news
-excerpt: 0.1.5 adds five self-contained offline install bundles, lets the composer attach any file and send images with steering and goals, and retries nearly every LLM failure inside the run. The web-design Skill gains a second visual theme, and penguin-sdk documents thinking and image messages.
----
-
-PenguinHarness 0.1.5 is out. You can now install it on machines with no network at all, attach any type of file in the Web composer, and send images with steering messages and goal objectives. Runs are sturdier too: almost every LLM failure now recovers inside the run, and pressing Stop mid-request can no longer leave a Session stuck.
-
-## Install without a network
-
-The 0.1.5 GitHub Release attaches five self-contained offline bundles: Linux and macOS, each for x64 and arm64, and Windows for x64. Each bundle carries the program archive, its SHA256 checksum and the platform's own installer. Download a bundle on any machine with network access, copy it to the target machine, and run one command.
-
-On Linux or macOS, extract the bundle and run its installer. For the Linux x64 bundle:
-
-```bash
-mkdir penguin-offline
-tar -xzf penguin-linux-x64-offline.tar.gz -C penguin-offline
-./penguin-offline/install.sh
-```
-
-On Windows, unzip `penguin-win32-x64-offline.zip` and double-click `install.cmd`, or run `.\install.ps1` in PowerShell.
-
-Offline installs always verify the SHA256 checksum. With no network to download the archive again, a corrupted archive has to stop the install. A renamed archive still installs, because each package now records its target platform inside.
-
-The Windows package also bundles MinGit under `git/`, so `exec_command` has a real bash even on a machine without Git for Windows. If you have Git for Windows installed, it still takes precedence, because its MSYS userland is more complete. MinGit's GPLv2 obligations are recorded in a new `THIRD-PARTY-NOTICES.md` at the repository root.
-
-The install instructions were rewritten to match. The README now gives every method as a complete block you can copy and paste: Linux, macOS, Windows, npm and the offline bundles. The landing page's install section switches by operating system and method instead of listing everything at once.
-
-## Attach any file, steer with images
-
-The Web composer now attaches files of any type, not just images. Attachments are written to the Session scratchpad and passed to the model as `[attached file: <path>]` lines, with non-ASCII file names preserved, so the model reads them with its usual file tools.
-
-Images now reach every kind of input. A steering message sent mid-run can carry images, and an image with no caption is a complete steering message on its own. Steering does not carry files; an attached file waits for your next regular message. A goal objective accepts images as scratchpad paths. The paths are re-injected as text every round, so they work with every model, with or without vision.
-
-The composer's `@` mention is now an `/agent` command. Both switch commands, `/agent` and `/model`, are available inside an existing Session, not on a new-chat draft, and each places your pick as a chip above the text. The chip is saved with the draft and takes effect only when you press Enter to send: an agent chip hands the conversation off to a new chat with that agent, and a model chip forks the conversation onto the chosen model.
-
-## Runs that recover instead of failing
-
-The classifier that separates transient LLM failures from permanent ones used to work from a list of known errors, so a gateway that described a transient fault in its own words ended the turn. 0.1.5 turns this around: every failure except a rejected credential now retries inside the run. The Web App shows the retry as a live countdown, and the CLI prints a `[retry]` line. Compaction retries under its own shorter budget, and a failure that recovers is no longer reported to the operator as an incident.
-
-Two related fixes:
-
-- Pressing **Stop** mid-request no longer leaves a Session running forever when a provider's stream neither returns data nor fails after the abort.
-- In the **Cost Center**, the error table pages back through the whole history, no longer records an ordinary non-zero exit (such as `grep` finding nothing) as an error, and marks entries that come from the environment with `[env]`.
-
-## Skills that design and build better apps
-
-Two built-in Skills took large steps in this release.
-
-### web-design
-
-`web-design` now carries a second complete visual language next to its default GitHub-style simplicity: an opt-in *paper editorial* theme with warm paper tones, system serif display headings and small monospace labels.
-
-It also follows a "ship complete" contract. A one-line request is the whole spec, and every page it delivers includes dark mode, loading/empty/error states, a working keyboard path and zero external requests, without being asked. For chat interfaces, it adds recipes for a collapsible reasoning block and image attachments in the composer.
-
-### penguin-sdk
-
-`penguin-sdk` now documents the thinking and image message kinds that current models emit and accept, along with patterns for building on them:
-
-- Stream `partial_thinking` into its own collapsed channel.
-- Build image input with `imageUrlMessage`. When the model config's `vision` flag is off, the image is passed as a file path that the built-in image tools read through the Project's `vision_model`, so the app still works.
-- Fix the output format in the persona instead of shipping a Markdown renderer.
-- Bridge cross-language BM25 retrieval with a bilingual keyword map built at ingest time.
-
-Because these two Skills now carry the knowledge the draft page's example prompts used to spell out, those prompts are shorter. The draft page also adds an end-to-end example of tuning an agent, built on the agent creation, Benchmark design, evaluation and optimization Skills: it creates, benchmarks and optimizes an agent through isolated CLI sessions.
-
-## Also in 0.1.5
-
-- The default system prompt is about a tenth shorter (1087 → 969 words). It tells the model to reply in the user's language and to install shared tooling into a per-agent `shared_env/` directory. Existing agents keep their own prompt.
-- Each navigation entry now has a single name. The Workspace and Agents panels share one width and the same open/closed behavior, Project display names are editable, and the draft page's examples become a fixed-height folder shelf.
-- The elapsed-time chip in the chat header survives reloads and counts in-flight events. It follows the server's clock, so live and replayed views agree.
-- Pasting CJK text or emoji into `penguin chat` no longer corrupts characters that arrive split across stdin chunks.
-- Durations and byte sizes roll over into the next unit instead of printing `1m60s` or `1024KB`.
-- `PORT` and `HOST` no longer leak into the commands an agent runs, and the development backend moved to port 7368, out of the way of an installed `penguin web`.
-- Three reference blocks in the docs caught up with the code: `run_subagent`'s `provider` argument, the gateway credential table and the Project model entry's `max_tokens`.
-
-## Install or upgrade
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows (PowerShell):
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-You can also install from npm with Node >= 24: `npm install -g @prismshadow/penguin-cli`. From this release, you can also install fully offline with the bundles attached to the [v0.1.5 Release](https://github.com/Prism-Shadow/penguin-harness/releases/tag/v0.1.5); the steps are under "Install without a network" above. Every change is described in detail in [changelog/0.1.5](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.1.5).
diff --git a/packages/landing/content/blog/penguinharness-0-1-5.zh.md b/packages/landing/content/blog/penguinharness-0-1-5.zh.md
deleted file mode 100644
index 4b95009f..00000000
--- a/packages/landing/content/blog/penguinharness-0-1-5.zh.md
+++ /dev/null
@@ -1,92 +0,0 @@
----
-title: "PenguinHarness 0.1.5:离线安装、文件附件与能自动恢复的运行"
-date: 2026-07-30
-category: news
-excerpt: 0.1.5 新增五个自包含的离线安装包;输入框可以附加任意文件,插话和目标也能带上图片;几乎所有 LLM 故障都会在运行内重试。web-design Skill 新增第二套视觉主题,penguin-sdk 补上了思考消息和图片消息的用法。
----
-
-PenguinHarness 0.1.5 发布了。现在可以在完全没有网络的机器上安装,在 Web 输入框里附加任意类型的文件,还能随插话和目标一起发送图片。运行也更稳了:几乎所有 LLM 故障都能在运行内恢复,请求中途按下「停止」也不会再让会话卡住。
-
-## 离线安装
-
-0.1.5 的 GitHub Release 附带五个自包含的离线安装包:Linux 和 macOS 各有 x64 和 arm64 两种,Windows 为 x64。每个安装包里有程序压缩包、它的 SHA256 校验文件和对应平台的安装器。在任意一台能联网的机器上下载安装包,拷到目标机器,运行一条命令即可。
-
-在 Linux 或 macOS 上,解压安装包并运行里面的安装器。以 Linux x64 安装包为例:
-
-```bash
-mkdir penguin-offline
-tar -xzf penguin-linux-x64-offline.tar.gz -C penguin-offline
-./penguin-offline/install.sh
-```
-
-在 Windows 上,解压 `penguin-win32-x64-offline.zip` 后双击 `install.cmd`,或者在 PowerShell 中运行 `.\install.ps1`。
-
-离线安装一律校验 SHA256。离线环境没法重新下载,压缩包一旦损坏,就只能中止安装。改过名的压缩包仍然可以安装,因为每个安装包内部都记录了自己的目标平台。
-
-Windows 安装包还在 `git/` 下内置了 MinGit,所以即使机器上没装 Git for Windows,`exec_command` 也有真正的 bash 可用。如果你装了 Git for Windows,仍然优先使用它,因为它的 MSYS 用户层更完整。MinGit 的 GPLv2 义务记录在仓库根目录新增的 `THIRD-PARTY-NOTICES.md` 中。
-
-安装说明也随之重写。README 现在把每种安装方式都写成可以整段复制的完整代码块:Linux、macOS、Windows、npm 和离线安装包。官网落地页的安装区按操作系统和安装方式切换,不再一次列出全部内容。
-
-## 附加任意文件,用图片插话
-
-Web 输入框现在可以附加任意类型的文件,不再只限图片。附件写入会话的 scratchpad,以 `[attached file: <path>]` 行的形式交给模型,非 ASCII 文件名原样保留,模型用常规的文件工具就能读取。
-
-现在所有输入都能带上图片。运行中途发送的插话可以携带图片,不带文字说明的图片本身就是一条完整的插话。文件则不随插话发出,会留到你的下一条普通消息里再发送。目标也可以通过 scratchpad 路径包含图片,这些路径每轮都会以文本形式重新注入,所以无论模型是否支持视觉都能用。
-
-输入框的 `@` 提及改成了 `/agent` 命令。`/agent` 和 `/model` 这两个切换命令只在已有会话里可用,新对话的草稿里没有;它们会把你选中的项以标签形式放在文字上方。标签随草稿一起保存,按 Enter 发送时才生效:Agent 标签会新开一个与该 Agent 的对话来接手,模型标签则把当前对话分叉到选中的模型上继续。
-
-## 运行出错也能自动恢复
-
-过去,区分 LLM 暂时性故障和永久性故障的分类器依据的是一份已知错误清单,网关只要换个说法描述暂时性故障,这一轮就直接结束。0.1.5 把逻辑反了过来:除了凭证验证失败,所有故障都会在运行内重试。Web App 会以实时倒计时显示重试,CLI 则打印一行 `[retry]`。压缩请求在自己更短的预算内重试,恢复成功的故障也不再当成事故报告给管理员。
-
-两个相关修复:
-
-- 请求中途按下**停止**时,即使供应商的流在中止后既不返回数据也不报错,会话也不会再一直处于运行状态。
-- **成本中心**的错误表可以往前翻页查看全部历史;普通的非零退出(例如 `grep` 没搜到结果)不再记为错误;来自环境的条目会标上 `[env]`。
-
-## 会设计也会构建应用的 Skill
-
-这个版本里,两个内置 Skill 都有了大幅改进。
-
-### web-design
-
-`web-design` 在默认的 GitHub 式简洁风格之外,新增了第二套完整的视觉语言:可选的 *paper editorial*(纸质编辑风)主题,采用暖纸色调、系统衬线体标题和等宽小标签。
-
-它还遵循「交付即完整」的约定:一句话需求就是完整规格,交付的每个页面都会主动包含暗色模式、加载/空/错误状态、可用的键盘操作路径,而且不发出任何外部请求。对于聊天界面,它新增了可折叠推理块和输入框图片附件两种做法。
-
-### penguin-sdk
-
-`penguin-sdk` 现在写清了当前模型发出和接收的思考消息与图片消息,以及基于它们构建应用的做法:
-
-- 把 `partial_thinking` 流式输出到独立的可折叠区域。
-- 用 `imageUrlMessage` 构造图片输入。模型配置的 `vision` 标志关闭时,图片会以文件路径的形式传入,由内置图片工具通过 Project 的 `vision_model` 读取,应用照样能用。
-- 在 persona 里固定输出格式,而不是附带一个 Markdown 渲染器。
-- 用入库时生成的双语关键词映射,打通跨语言的 BM25 检索。
-
-草稿页示例提示词过去要写明的知识,现在由这两个 Skill 承载,所以这些提示词都变短了。草稿页还新增了一个端到端的 Agent 调优示例,它基于 Agent 创建、Benchmark 设计、评估和优化这几个 Skill:通过相互隔离的 CLI 会话创建 Agent、用 Benchmark 评估,再做优化。
-
-## 0.1.5 还有这些
-
-- 默认系统提示词缩短了约十分之一(1087 → 969 词)。它要求模型用用户的语言回复,并把共享工具安装到每个 Agent 专属的 `shared_env/` 目录。已有 Agent 保留各自的提示词。
-- 导航项的名称统一了,每一项在各处只用一个名字。Workspace 面板和智能体面板共用同一个宽度,开合规则也相同;Project 的显示名称可以编辑;草稿页的示例改成固定高度的文件夹式书架。
-- 对话页头部的用时标签刷新后依然保留,并会计入尚未结束的事件。它以服务器时钟为准,所以实时视图和回放视图显示一致。
-- 向 `penguin chat` 粘贴 CJK 文本或 emoji 时,分散在多个 stdin 块中的字符不再出现乱码。
-- 时长和字节大小会正确进位,不再显示 `1m60s` 或 `1024KB`。
-- `PORT` 和 `HOST` 不再泄漏到 Agent 执行的命令中;开发后端改用 7368 端口,与已安装的 `penguin web` 互不干扰。
-- 文档里三处落后于代码的参考内容已经补齐:`run_subagent` 的 `provider` 参数、网关凭证表,以及 Project 模型条目的 `max_tokens`。
-
-## 安装或升级
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows(PowerShell):
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-也可以在 Node >= 24 的环境下从 npm 安装:`npm install -g @prismshadow/penguin-cli`。从这个版本起,还可以用 [v0.1.5 Release](https://github.com/Prism-Shadow/penguin-harness/releases/tag/v0.1.5) 附带的安装包完全离线安装,步骤见上文「离线安装」一节。每项改动的详细说明见 [changelog/0.1.5](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.1.5)。
diff --git a/packages/landing/content/blog/penguinharness-0-2-0.en.md b/packages/landing/content/blog/penguinharness-0-2-0.en.md
deleted file mode 100644
index ebf10eea..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-0.en.md
+++ /dev/null
@@ -1,74 +0,0 @@
----
-title: "PenguinHarness 0.2.0: chat navigation, recoverable tool output, mirrored installers"
-date: 2026-08-03
-category: news
-excerpt: 0.2.0 makes long agent runs easier to work with: input recall, sticky run headers and a minimap in the chat, recoverable tool output, and steering that survives reloads. Installers now prefer an Alibaba Cloud OSS mirror.
----
-
-PenguinHarness 0.2.0 is out, and this release is about long-running work. Long conversations get three navigation aids, tool output that exceeds the cap can be recovered, and steering messages survive a reload. Each Release now ships one installer bundle per platform, mirrored to Alibaba Cloud OSS, and the model catalog moves to the current lineup.
-
-## Navigate long conversations
-
-The chat page gains three ways to move through a long Session.
-
-### Recall earlier inputs
-
-When the composer is empty, press ↑ to step back through what you typed in this Session, newest first, as in a shell. Press ↓ to step forward again; past the newest entry, your draft comes back. Editing a recalled entry hands the arrow keys back to the caret. In a multi-line entry, the arrows move the caret line by line first, and IME candidate navigation is unaffected.
-
-### Sticky run headers
-
-While a group of reasoning and tool calls is in view, its header stays pinned to the top of the stream. The thinking or tool row you are scrolled into pins directly below it, so the bar above the text is always the section you are reading. You can collapse a long tool output from anywhere inside it, one section or the whole group, and the view lands back on that section.
-
-### A minimap for the conversation
-
-A tick rail sits over the chat's left margin without taking any width: one tick per exchange, with your reading position highlighted. Hover over a tick to see a preview card with your question in bold above a shortened reply, and click to jump to that turn. On phones, or when a docked panel covers the margin, the same index moves to a dropdown in the top-right toolbar.
-
-## Recover truncated tool output
-
-In a Session run by an agent, output that exceeds the per-call cap is now saved to the Session scratchpad. The truncated result that the model, the Web App and the CLI see ends with the path to that file, and the model reads the rest from there when it needs to. No new tool or protocol change is involved, and the visible cap stays the same.
-
-On Windows, every path the harness shows the model now uses forward slashes.
-
-## Steering that survives reloads, and a faster session list
-
-A steering message you send during a run now survives a page reload with its content still visible, and reaches the agent exactly once. File attachments can steer a run, just as images can.
-
-The sidebar session list now comes straight from the database, and both the sessions in each group and the groups themselves are shown a page at a time. A Project with many agents and Workspaces stays fast and easy to scan. CLI sessions no longer appear in the list by default; the **Show CLI sessions** switch in the user menu brings them back.
-
-## One installer per platform, mirrored to Alibaba Cloud OSS
-
-Each Release now attaches exactly one file per platform: an installer bundle that contains the native installer, the program payload and its checksum. The same file serves online and offline installs, and checksums are always verified.
-
-The installers now prefer a mirror on Alibaba Cloud OSS that carries the exact same bytes, and fall back to the same version on GitHub automatically. Set `PENGUIN_DOWNLOAD_SOURCE=auto|oss|github` to choose the source.
-
-Two install fixes ship with it:
-
-- In-place upgrades no longer fail on filesystems that lock directories in use, such as overlayfs in Docker.
-- The Windows package drops its `penguin.ps1` launcher, which PowerShell's execution policy blocked. Typing `penguin` still works.
-
-## A current model catalog
-
-The qianwenai groups move to the current lineup: `qwen3.8-max` and `deepseek-v4-flash-0731` are added, and retired entries such as `qwen3.8-max-preview` are removed. OpenRouter adds `deepseek/deepseek-v4-flash-0731` and `openai/gpt-5.6-luna`, and every OpenRouter price has been re-read from its models API.
-
-New Projects default to `deepseek-v4-flash`. Existing Projects keep the models and the default they already have.
-
-## Other changes
-
-- `read_file` and `edit_file` diagnose a missing path instead of returning a bare "File not found". They report the deepest existing ancestor, the first missing segment and the nearest matching names.
-- The manual update check reports every outcome: checking, up to date, update found, or failed.
-- Tool-card subtitles appear once they are complete, instead of jittering while the arguments stream in.
-- In the Evaluation Center, case details show the task materials the target agent receives separately from the scoring rubrics, which stay hidden from that agent.
-- The file summary in the main conversation now waits for the Task to finish: one card per completed Task.
-
-The full list, entry by entry, is in [changelog/0.2.0](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.0).
-
-## Install or upgrade
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, run `irm https://penguin.ooo/install.ps1 | iex` in PowerShell. With Node >= 24, you can also install from npm: `npm install -g @prismshadow/penguin-cli`.
-
-To upgrade, re-run the installer. On Linux and macOS, `penguin update` works too, from 0.1.3 or later.
diff --git a/packages/landing/content/blog/penguinharness-0-2-0.zh.md b/packages/landing/content/blog/penguinharness-0-2-0.zh.md
deleted file mode 100644
index 86c4104b..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-0.zh.md
+++ /dev/null
@@ -1,74 +0,0 @@
----
-title: "PenguinHarness 0.2.0:对话导航、可找回的工具输出、镜像安装包"
-date: 2026-08-03
-category: news
-excerpt: 0.2.0 让长时间运行的 Agent 更好用:对话页新增历史输入回填、吸顶的运行标题和迷你地图,超出上限的工具输出可以找回,插话刷新后依然保留。安装包现在优先从阿里云 OSS 镜像下载。
----
-
-PenguinHarness 0.2.0 发布了,这一版的重点是长时间运行的任务。长对话多了三种导航方式,超出上限的工具输出可以找回,插话在刷新页面后也不会丢。每个 Release 现在为每个平台只提供一个安装包,并镜像到阿里云 OSS;模型目录也换成了当前的阵容。
-
-## 浏览长对话
-
-对话页新增三种方式,方便在长会话里来回浏览。
-
-### 回填历史输入
-
-输入框为空时按 ↑,会像 shell 一样从最新一条开始,逐条回填你在本会话中输入过的内容;按 ↓ 往回走,越过最新一条后,原来的草稿会恢复。编辑回填的内容后,方向键重新用于移动光标。多行内容里,方向键先逐行移动光标,输入法的候选词切换不受影响。
-
-### 运行标题吸顶
-
-一组推理和工具调用还在视野内时,它的标题会吸附在消息流顶部;你正在阅读的思考行或工具行,则吸附在组标题正下方。这样,正文上方的横条始终是你正在读的那一节。很长的工具输出滚到任何位置都能直接折叠,可以只折叠一节,也可以折叠整组,折叠后视图会回到这一节。
-
-### 对话迷你地图
-
-对话左侧的留白处叠加了一列刻度,不占任何宽度:每轮问答一个刻度,当前阅读位置会高亮。鼠标悬停在刻度上会弹出预览卡片,上方是加粗的问题,下方是截断的回复;点击刻度即可跳到那一轮。在手机上,或者停靠的面板占掉左侧留白时,这份索引会移到右上角工具栏的下拉菜单里。
-
-## 找回截断的工具输出
-
-在由 Agent 运行的会话里,单次调用超出上限的输出现在会保存到会话的 scratchpad 中。模型、Web App 和 CLI 看到的截断结果末尾会附上这个文件的路径,模型需要时可以按路径读取其余内容。这不需要新工具,协议不变,可见的上限也不变。
-
-在 Windows 上,Harness 交给模型的所有路径现在都统一使用正斜杠。
-
-## 刷新不丢的插话,以及更快的会话列表
-
-运行中发送的插话,现在刷新页面后仍会保留、内容可见,并且只会送达 Agent 一次。和图片一样,文件附件现在也可以随插话发送。
-
-侧栏的会话列表现在直接从数据库读取,分组内的会话和分组本身都分页显示,Agent 和 Workspace 再多的 Project 也能保持流畅、便于浏览。CLI 会话默认不再显示在列表里,打开用户菜单中的**显示 CLI 会话**开关,就能让它们重新出现。
-
-## 每个平台一个安装包,镜像到阿里云 OSS
-
-每个 Release 现在为每个平台只附带一个文件:一个安装包,内含原生安装器、程序负载和负载的校验和。在线安装和离线安装共用这一个文件,而且每次都会做校验。
-
-安装器现在优先从阿里云 OSS 镜像下载,镜像里的文件与 GitHub 上的逐字节一致,必要时自动回退到 GitHub 上的同一版本。设置 `PENGUIN_DOWNLOAD_SOURCE=auto|oss|github` 可以指定下载源。
-
-同时修复了两个安装问题:
-
-- 在会锁住使用中目录的文件系统上(例如 Docker 的 overlayfs),原地升级不再失败。
-- Windows 安装包去掉了 PowerShell 执行策略会拦下的 `penguin.ps1` 启动器,直接输入 `penguin` 仍然可用。
-
-## 模型目录换到当前阵容
-
-qianwenai 分组换到当前阵容:新增 `qwen3.8-max` 和 `deepseek-v4-flash-0731`,移除 `qwen3.8-max-preview` 等已下线的条目。OpenRouter 新增 `deepseek/deepseek-v4-flash-0731` 和 `openai/gpt-5.6-luna`,OpenRouter 的全部价格也按它的 models API 重新核对了一遍。
-
-新建的 Project 默认使用 `deepseek-v4-flash`。已有 Project 保留原来的模型和默认模型。
-
-## 其他改进
-
-- `read_file` 和 `edit_file` 遇到不存在的路径时会给出诊断,不再只返回一句「File not found」:它们会指出最深一级仍然存在的上级路径、第一个缺失的路径段,以及名称最接近的条目。
-- 手动检查更新会反馈每一种结果:检查中、已是最新、发现新版本或检查失败。
-- 工具卡片的副标题等内容完整后才显示,不再随参数流式传入而抖动。
-- 评估中心的题目详情把目标 Agent 拿到的任务材料和评分标准分开展示,评分标准对目标 Agent 始终不可见。
-- 主对话里的文件摘要现在等 Task 结束后才出现:每个完成的 Task 一张卡片。
-
-完整清单逐条见 [changelog/0.2.0](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.0)。
-
-## 安装或升级
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 上请在 PowerShell 中运行 `irm https://penguin.ooo/install.ps1 | iex`。Node >= 24 的环境也可以从 npm 安装:`npm install -g @prismshadow/penguin-cli`。
-
-升级只需重新运行安装器;在 Linux 和 macOS 上,0.1.3 及以上版本也可以直接运行 `penguin update`。
diff --git a/packages/landing/content/blog/penguinharness-0-2-1.en.md b/packages/landing/content/blog/penguinharness-0-2-1.en.md
deleted file mode 100644
index e12ede50..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-1.en.md
+++ /dev/null
@@ -1,88 +0,0 @@
----
-title: "PenguinHarness 0.2.1: the desktop app and a download page"
-date: 2026-08-04
-category: news
-excerpt: 0.2.1 adds a desktop app for macOS, Windows and Linux that opens already signed in and shares its data with the CLI. It also brings a download page backed by an OSS mirror, download-source control for installs and updates, and a hardened login.
----
-
-PenguinHarness 0.2.1 is out, and the headline is the desktop app: no terminal and no login page, just double-click an icon to open the full PenguinHarness. Around it, distribution improves too: a new download page serves installers from an Alibaba Cloud OSS mirror, and install scripts and `penguin update` can choose their download source. Compaction failures no longer trap Sessions, and the first-start admin password is now random.
-
-## The desktop app
-
-The desktop app is a deliberately thin Electron shell. It starts the existing server as a child process and points its window at `http://localhost`. There is no private IPC, preload script or Node integration, so everything still goes through the same HTTP API. It opens already signed in as the admin through a one-time token, so there is no login page and no initial password to copy down.
-
-Data is fully shared with CLI installs under `~/.penguin/data`, so you can use the desktop app and `penguin web` interchangeably. A data root only ever runs one server: a new `server.lock` guard, which the CLI and the app both honor, makes sure of that. If a server started from the CLI is already running, the app simply attaches to it.
-
-UI preferences such as language and theme survive restarts. The app remembers the port the server last used and reuses it while it is still free, which keeps the window's origin stable, and with it the browser storage that holds your preferences.
-
-Installers are available for:
-
-- macOS: dmg, for Apple silicon and Intel
-- Windows: NSIS
-- Linux: AppImage and deb
-
-The 0.2.1 builds are unsigned. On first launch on macOS, right-click the app and choose "Open". On Windows, get past SmartScreen with "More info → Run anyway".
-
-## A download page, with desktop installers on the OSS mirror
-
-0.2.1 adds [penguin.ooo/download](https://penguin.ooo/download), a classic software download page: one card per platform, with your system detected and marked, and a click to download.
-
-Installers now have version-less file names, which let the page's buttons start on GitHub's static `releases/latest/download` links. At launch, the page read the OSS mirror's `latest.json` in the background. If that succeeded, the buttons switched to the mirror's fixed per-version directory, and the page showed the resolved version with a toggle to switch the source by hand. Desktop installers are mirrored byte for byte to Alibaba Cloud OSS, just like the CLI bundles.
-
-## Install scripts and penguin update choose their download source
-
-An `install.sh` or `install.ps1` saved from a Release page now follows the same policy as the penguin.ooo install scripts: `PENGUIN_DOWNLOAD_SOURCE=auto|oss|github`, where `auto` prefers OSS and falls back to the same version on GitHub. Newly published install scripts also embed their own Release tag. However long you keep one, it downloads the matching version instead of silently following a later release.
-
-`penguin update` follows the same rules. Upgrades no longer start at GitHub: version discovery prefers the OSS `latest.json`, the `oss` and `github` modes never fall back, and failures are reported in your language.
-
-## Compaction failures no longer trap Sessions
-
-Some models write `[summary]` as a title and put the body after the closing tag. The old logic extracted an empty summary, and every retry showed the model its own bad output to copy again, locking the Session in a failing loop.
-
-In 0.2.1, summary extraction tolerates these malformed formats. A response that is still unusable is retried on the standard retry budget and backoff, with a corrective note to the model. The attempts and Tokens that retries burn now show up in the stats and the **Cost Center**, and the retry details (`error_message` / `attempt` / `retry_in_ms`) are visible in both the CLI and the Web App.
-
-## A hardened login
-
-The fixed seed password `penguin-2026` is retired. The first start now generates a random password, `penguin-` followed by four digits, and prints it exactly once. The login endpoint also throttles failed attempts per username: after 5 failures, attempts wait for a delay that starts at 1 second and doubles up to 60 seconds, which makes guessing through the four-digit space impractical.
-
-## Web App improvements
-
-### Skills in the app
-
-**Agent settings** gains a **Skills** tab that lists the Skills installed on disk, with uninstall, zip import and export, and installing through chat. The new `skill-porting` library Skill brings in Skills from other ecosystems and normalizes them.
-
-### New chat defaults
-
-**Project settings** gains **New chat defaults**: the default agent, working directory, approval mode, thinking level and model that every new draft starts with.
-
-### A faster Trajectories page
-
-The **Trajectories** page shares the sidebar's grouping components, pages its sessions on the server, and finds Trace files through a SQLite index instead of walking the filesystem on every request.
-
-### Chat page
-
-- The outline tick rail shows a window of 20 turns on either side of your position and no longer overlaps the composer.
-- The cost stat no longer disappears between Tasks.
-- Uploaded file attachments render as part of your message, right-aligned with the same timestamp treatment as images, and also show inside steering chips.
-- ANSI color codes no longer leak into tool output.
-
-## Everything else
-
-- The server's last two disk-IO hotspots are gone. The 30-second scheduler tick and the schedules routes read from caches that refresh only when files change, and `GET /messages` supports cursor pagination, so the Web App loads a conversation from its newest messages first.
-- `hono` moves past the CORS-preflight ReDoS advisory.
-- The OpenRouter catalog adds `qwen/qwen3.8-max`.
-
-The full list, item by item, is in [changelog/0.2.1](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.1).
-
-## Install or upgrade
-
-Desktop app: download the installer for your platform at [penguin.ooo/download](https://penguin.ooo/download).
-
-CLI / server:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, run `irm https://penguin.ooo/install.ps1 | iex` in PowerShell. With Node >= 24, you can also install with `npm install -g @prismshadow/penguin-cli`. On Linux and macOS, upgrade an existing install with `penguin update`, which now downloads through the mirror as well.
diff --git a/packages/landing/content/blog/penguinharness-0-2-1.zh.md b/packages/landing/content/blog/penguinharness-0-2-1.zh.md
deleted file mode 100644
index 718fee74..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-1.zh.md
+++ /dev/null
@@ -1,88 +0,0 @@
----
-title: "PenguinHarness 0.2.1:桌面应用与下载页"
-date: 2026-08-04
-category: news
-excerpt: 0.2.1 为 macOS、Windows 和 Linux 带来桌面应用,打开即已登录,数据与 CLI 共享。同时上线由 OSS 镜像提供安装包的下载页,安装和更新可以选择下载源,登录也做了加固。
----
-
-PenguinHarness 0.2.1 发布了,主角是桌面应用:不用终端,没有登录页,双击图标就能打开完整的 PenguinHarness。分发体验也一并改进:新的下载页从阿里云 OSS 镜像提供安装包,安装脚本和 `penguin update` 可以选择下载源。此外,压缩失败不再卡死会话,首次启动的管理员密码也改为随机生成。
-
-## 桌面应用
-
-桌面应用是一个刻意做薄的 Electron 壳。它以子进程启动现有的服务端,并把窗口指向 `http://localhost`。没有私有 IPC,没有 preload 脚本,也没有 Node 集成,一切仍走同一套 HTTP API。应用通过一次性 token 直接以管理员身份登录,因此没有登录页,也不用抄写初始密码。
-
-数据与 CLI 安装完全共用,都放在 `~/.penguin/data` 下,桌面应用和 `penguin web` 可以混着用。一个数据根目录同一时刻只运行一个服务端,这由新增的 `server.lock` 单实例锁保证,CLI 和应用都遵守它。如果 CLI 启动的服务端已经在运行,应用会直接接入。
-
-语言、主题等界面偏好在重启后依然保留。应用会记住服务端上次使用的端口,只要端口仍然空闲就继续沿用。这样窗口的 origin 保持不变,保存偏好的浏览器存储也随之稳定。
-
-提供以下平台的安装包:
-
-- macOS:dmg,支持 Apple 芯片和 Intel
-- Windows:NSIS
-- Linux:AppImage 和 deb
-
-0.2.1 的构建尚未签名。在 macOS 上首次启动时,右键点击应用并选择「打开」。在 Windows 上,遇到 SmartScreen 提示时选「更多信息 → 仍要运行」。
-
-## 下载页,以及镜像到 OSS 的桌面安装包
-
-0.2.1 新增了 [penguin.ooo/download](https://penguin.ooo/download),这是一个经典的软件下载页:每个平台一张卡片,自动识别并标出你的系统,点一下即可下载。
-
-安装包的文件名不再带版本号,所以页面上的按钮可以先指向 GitHub 的静态 `releases/latest/download` 链接。页面刚上线时,会在后台读取 OSS 镜像的 `latest.json`,读取成功后,按钮切换到镜像上这个版本的固定目录,页面显示解析出的版本号,并提供开关让你手动切换下载源。桌面安装包和 CLI 包一样,逐字节镜像到阿里云 OSS。
-
-## 安装脚本和 penguin update 自选下载源
-
-从 Release 页面保存的 `install.sh` 或 `install.ps1`,现在遵循与 penguin.ooo 安装脚本相同的策略:`PENGUIN_DOWNLOAD_SOURCE=auto|oss|github`,`auto` 优先使用 OSS,并回退到 GitHub 上的同一版本。新发布的安装脚本还会内嵌自己的 Release tag,无论保存多久,下载的都是与之匹配的版本,不会悄悄跟着后来的新版本走。
-
-`penguin update` 遵循同样的规则。升级时不再先访问 GitHub:查询最新版本时优先读取 OSS 的 `latest.json`,`oss` 和 `github` 两种模式绝不回退,失败信息也会用你的语言显示。
-
-## 压缩失败不再卡死会话
-
-有些模型把 `[summary]` 写成标题,正文却放在闭合标签之后。旧逻辑会取到空摘要,而且每次重试都把模型自己写坏的输出再给它看一遍,它就照抄下去,会话由此卡在失败循环里。
-
-0.2.1 的摘要提取能容忍这类不规范的格式。响应仍然不可用时,按标准的重试预算和退避重试,并给模型附上一条纠正说明。重试消耗的尝试次数和 Token 现在会计入统计和**成本中心**,重试详情(`error_message` / `attempt` / `retry_in_ms`)在 CLI 和 Web App 里都能看到。
-
-## 登录加固
-
-固定的初始密码 `penguin-2026` 退役了。首次启动时会生成随机密码,格式是 `penguin-` 加四位数字,并且只打印一次。登录接口还会按用户名限制失败尝试:失败 5 次后,每次尝试都要等待,延迟从 1 秒起步,逐次翻倍,最长 60 秒。想靠穷举四位数字来猜密码,就不现实了。
-
-## Web App 改进
-
-### 在应用里管理 Skill
-
-**Agent 设置**新增**技能**标签页,列出磁盘上已安装的 Skill,支持卸载、zip 导入导出,以及通过对话安装。技能库新增的 `skill-porting` 可以把其他生态的 Skill 引入进来并规范化。
-
-### 新对话默认值
-
-**Project 设置**新增**新对话默认值**:每个新对话草稿默认使用的 Agent、工作目录、审批模式、思考等级和模型。
-
-### 更快的轨迹观测页
-
-**轨迹观测**页复用侧栏的分组组件,会话改在服务端分页,并通过 SQLite 索引查找 Trace 文件,不再每次请求都遍历文件系统。
-
-### 对话页
-
-- 对话索引的刻度条只显示当前位置前后各 20 轮,也不再与输入框重叠。
-- 成本统计不再在 Task 之间消失。
-- 上传的文件附件显示为你消息的一部分,靠右对齐,时间戳样式与图片一致,插话标签里也能看到。
-- ANSI 颜色代码不再混进工具输出。
-
-## 其余改进
-
-- 服务端最后两个磁盘 IO 热点已经消除。每 30 秒一次的调度器 tick 和 schedules 路由改为读取缓存,缓存只在文件变化时刷新;`GET /messages` 支持游标分页,Web App 加载对话时因此先取最新的消息。
-- `hono` 升级到不受 CORS 预检 ReDoS 安全通告影响的版本。
-- OpenRouter 模型目录新增 `qwen/qwen3.8-max`。
-
-完整清单逐条见 [changelog/0.2.1](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.1)。
-
-## 安装或升级
-
-桌面应用:到 [penguin.ooo/download](https://penguin.ooo/download) 下载对应平台的安装包。
-
-CLI / 服务端:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 上请在 PowerShell 中运行 `irm https://penguin.ooo/install.ps1 | iex`。Node >= 24 的环境也可以用 `npm install -g @prismshadow/penguin-cli` 安装。在 Linux 和 macOS 上升级已有安装,运行 `penguin update` 即可,它现在同样通过镜像下载。
diff --git a/packages/landing/content/blog/penguinharness-0-2-11.en.md b/packages/landing/content/blog/penguinharness-0-2-11.en.md
deleted file mode 100644
index e66bd8f2..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-11.en.md
+++ /dev/null
@@ -1,137 +0,0 @@
----
-title: "PenguinHarness 0.2.11: editable files, a draggable compaction threshold, hooks, and a Docker image"
-date: 2026-09-10
-category: news
-excerpt: The Files panel becomes a two-pane browser with in-place editing, the context ring measures against a compaction threshold you can drag, and scheduled tasks move into the dock. Hooks become part of the agent loop, and an official Docker image ships.
----
-
-PenguinHarness 0.2.11 is out, and most of its changes are inside the conversation. You can edit Workspace files in a two-pane Files panel, the context ring measures against the point where compaction fires, scheduled tasks move into the dock, and a shortcuts ball on the conversation's edge opens the dock's panels. Hooks are now part of the agent loop, with goal mode and continual learning available as installable plugins. An official Docker image turns a server deployment into one `docker run`, and new Projects start on DeepSeek V4.1 Flash.
-
-## The Files panel is a two-pane browser you can type into
-
-The Files panel now shows a directory tree on the left and the selected file on the right, with a divider you can drag. The tree loads each directory's contents as you expand it.
-
-- Text files gain an **Edit** action: a monospace editor with a **Wrap** toggle, and Ctrl+S to save.
-- Saves are version-checked with `ETag` / `ifVersion`. If the agent changed the file after you opened it, the server returns `409` and writes nothing. The panel then offers **Overwrite** and keeps your draft.
-- Dropping files from your operating system onto the panel uploads them into the directory under the pointer.
-- If you have unsaved changes, the panel asks before you switch files or remove the panel. Collapsing the dock keeps your draft.
-
-![The Files panel: a directory tree on the left beside an open file in the plain-text editor on the right](/blog-assets/penguinharness-0-2-10-files-panel-en.png)
-
-## The context ring measures against compaction
-
-The ring in the composer now fills up against the compaction threshold instead of the model's context window. With 64k used against a 128k threshold, it reads 50%.
-
-The bar in the context panel still uses the model's window as its scale, and marks the compaction threshold with a dashed cutter. Drag the cutter to change the threshold: a confirmation opens with the new value filled in, and you can still edit it. Compaction settings are re-read at every compaction checkpoint, so a change also applies to conversations that are already running.
-
-The panel also gains a second Top 5 view that lists the files with the most file-tool traffic in the current context.
-
-![The context panel: a bar scaled to the model window with a draggable compaction cutter, and the Top 5 files view](/blog-assets/penguinharness-0-2-10-context-panel-en.png)
-
-## A shortcuts ball on the edge of the conversation
-
-When no dock panel is open, a translucent round button floats inside the right edge of the conversation, captioned **Shortcuts**. Click it, and the dock panels plus a terminal fan out around it in a semicircle. The entries are icons only; the caption shows the name of the one you point at. Picking an entry opens that panel and hides the ball.
-
-You can drag the ball along the edge, and it remembers where you left it. It shows the pending-approval dot. The last entry on its ring dismisses the ball for good, and a setting under **Appearance** brings it back.
-
-![The shortcuts ball on the conversation's right edge, fanned open into a semicircular ring of panel entries](/blog-assets/penguinharness-0-2-10-shortcuts-launcher-en.png)
-
-## Scheduled tasks, in the conversation
-
-A new **Scheduled tasks** panel in the dock lists the scheduled tasks bound to the current Session. It has search, state filters and enable switches, and it describes each schedule in plain language.
-
-- The panel header offers **Create with AI**, which fills in this conversation's composer without sending anything, and **Create manually**, which opens the form already set to this Session.
-- In the sidebar, a Session with a scheduled task still to fire shows an alarm clock.
-- Saving a scheduled task no longer claims that it takes effect in a new conversation. The notifications now describe what the scheduler actually does.
-
-![The scheduled-tasks panel in the dock with its Create with AI and Create manually buttons, and a sidebar session row wearing an alarm clock](/blog-assets/penguinharness-0-2-10-schedule-panel-en.png)
-
-## Hooks are part of the loop, and goal mode is a plugin
-
-Sessions now have three hook points: `stop`, `pre_tool_use` and `user_prompt`. A hook is a plain Node script installed into `agent_state/hooks/`. It runs as a subprocess, and a stop hook can answer `continue`, `stop`, a `subagent` request, or nothing.
-
-- Goal mode is now the `goal` plugin's stop hook.
-- The `continual-learning` plugin sends the findings of a long task to a background subagent, which updates the relevant `SKILL.md` files.
-- The Skill library is now the **Plugin library**. Plugins are npm packages with dated versions, and each has a detail dialog with a file browser.
-- Agent settings gain a **Hooks** tab with a `hooks.enabled` switch for each agent. When it is off, the agent loads no hooks, and installed packages stay on disk. Each package row shows its hook points as chips, and the tab offers zip export and import, plus import through a chat.
-
-![The Agent settings Hooks tab: the enable-switch card, a package row with hook-point chips, and the import dialog entry](/blog-assets/penguinharness-0-2-10-hooks-tab-en.png)
-
-## Create with AI, as a kit
-
-Every object the Web App creates from a form is getting a second path: describe it to an agent. This release ships the kit behind that path. It includes the button pair, a prompt panel with examples and a folded preview of the full prompt, and a dialog that hands the prompt to the Project's default agent.
-
-- The two buttons are separate. **Create with AI** is accented and shows a wand; **Create manually** is plain and shows a hand.
-- The dialog's only action is **Edit in a new conversation**, and nothing is ever sent automatically. The prompt arrives as a draft in the composer, and pressing Send is up to you.
-- Besides the scheduled-tasks panel, the Skills tab's import through a chat and the Memory tab's add and edit already use the kit. Other creation forms follow in later releases.
-
-![A page header's Create with AI and Create manually button pair, with the Create with AI dialog open over it](/blog-assets/penguinharness-0-2-10-create-with-ai-en.png)
-
-## A server on another machine
-
-There is now an official container image on Docker Hub, `hiyouga/penguinharness`, built from source for `linux/amd64` and `linux/arm64`. It runs `penguin server` on `0.0.0.0:7364` with a `/data` volume. The `latest` tag follows `main`, and `X.Y.Z` tags are built from releases. The documented `docker run` command publishes the port on the host's loopback address, so a new deployment answers only on the machine running Docker.
-
-The **Machines** page, which installs PenguinHarness on another machine over ssh, changed too:
-
-- Machine records moved from a JSON file into `web.db` and now belong to a Project. Each machine mints its own 16-character id.
-- PenguinHarness runs `penguin server status` over ssh to learn a machine's id and whether its server is up.
-- All traffic to a machine goes through one long-lived `ssh -T -D` session per machine. A connected machine's API answers on the same origin, at `/server/<machineId>/api/…`.
-
-## The model catalog
-
-- **DeepSeek V4.1 Flash** ships under the bare id `deepseek-flash` and is the default model for new Projects. It has a 1,000,000-token context window, image input, and Flash pricing that halves off-peak. Its direct-vendor row pins a client and a base URL.
-- **Gemini 3.8 Flash** joins directly and on OpenRouter, with a 1,048,576-token window and image input. Gemini 3.x Flash rows now store the list price and declare the launch discount instead of building it into the numbers, and two rows that billed the wrong price are corrected.
-- **GPT-6 Astra** joins directly and on OpenRouter, with a 1,050,000-token window and image input, at $1 / $12.5 / $50 per million tokens for cache read / cache write / output.
-- Three **Doubao Seed** rows join the TokenDance group at 50% off.
-- A new **vLLM** group covers eight self-hosted models. The rows have a price of zero and no base URL, and the group pins their protocol.
-
-Existing Projects pick up these rows with **Sync presets** on the models page.
-
-## Also in this release
-
-- `exec_command` accepts `command` as well as `cmd`. When a tool rejects a call, it now replies with the fault, the parameters and the correct call shape. `read_image` and `describe_image` fold into `read_file`.
-- Slow turns show where the time went, such as `Elapsed 10.3s (API 5s, tools 5.3s)`. Neither part counts time spent waiting for approval.
-- The sidebar marks Sessions that have dev servers or background subagents running, and the chat header shows a matching pill.
-- The compaction row shows its status and how long it took, and the thinking and the summary stream into separate rows you can expand.
-- `model.timeoutMs` is now an idle budget between upstream events, with its default raised to 300000, so a request times out on silence rather than on length. The retry ladder starts over once content has been received.
-- Updating runs through one dialog: check, read the release notes, download with a progress bar, then **Restart and update**.
-- A conversation opens on its latest 50 turns, and earlier turns load as you scroll up.
-- Grouped by Workspace, the sidebar lists every Workspace, not only those its loaded conversations belong to.
-- Terminals behave like terminals: a link still opens correctly after the screen redraws, and OSC 52 copy reaches the system clipboard.
-- Plugin versions are now written like `2026.09.10.1`. A copy installed under the old spelling with dashes counts as the same version, so no false update badge appears.
-
-## About 0.2.10
-
-0.2.11 is 0.2.10 rebuilt with electron-builder 26.16.1, which makes signed macOS installer builds work again. 0.2.10 was tagged, and its npm packages and Docker image were published, but its signed macOS build failed, so it never got installers or a Release page. The per-change entries stay in [`changelog/0.2.10/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.10).
-
-## Upgrading
-
-- **One restart.** This release has the first restart-only schema migration, `drop-goal-state`. A hot push onto a running runtime is refused before it touches the database, while a normal install restarts and applies the migration. Downgrading to 0.2.9 still works.
-- **Install the `goal` plugin on agents created before 0.2.10.** Without it, goal mode returns `409 goal_plugin_not_installed`. It takes one click per agent.
-- **Update the kernel to `2026-09-10`** so that agents read images with `read_file`. Until then, calls to the old image tools get unknown-tool replies, and image reads use the stored 30s timeout.
-- **Rename `skills` / `--skills` to `plugins` / `--plugins`** in scripts that create agents.
-- **API changes.** `POST /api/version/update` now returns a job status instead of blocking until the update ends. Machines routes moved under a Project, so machine lists from 0.2.9 start empty; install again from the Project that owns the machine to get it back.
-
-## Install
-
-Desktop installers are at [penguin.ooo/download](https://penguin.ooo/download).
-
-On Linux and macOS, install the CLI and server with:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, use PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-To run the server in Docker:
-
-```sh
-docker run -d --name penguin -p 127.0.0.1:7364:7364 -v penguin-data:/data hiyouga/penguinharness:latest
-```
diff --git a/packages/landing/content/blog/penguinharness-0-2-11.zh.md b/packages/landing/content/blog/penguinharness-0-2-11.zh.md
deleted file mode 100644
index ed47bff6..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-11.zh.md
+++ /dev/null
@@ -1,137 +0,0 @@
----
-title: "PenguinHarness 0.2.11:可编辑的文件、可拖动的压缩阈值、钩子与 Docker 镜像"
-date: 2026-09-10
-category: news
-excerpt: 文件面板变成可以直接编辑的双栏浏览器,上下文环按压缩阈值计量且阈值可以拖动,定时任务搬进了右侧栏。钩子成为 Agent 循环的一部分,官方 Docker 镜像也随这一版发布。
----
-
-PenguinHarness 0.2.11 发布了,这一版的大部分改动都在对话里面。你可以在双栏的文件面板里编辑 Workspace 文件,上下文环改为按压缩触发点计量,定时任务搬进了右侧栏,对话边缘还多了一个打开各个面板的悬浮球。钩子成为 Agent 循环的一部分,目标模式和持续学习以可安装插件的形式提供。有了官方 Docker 镜像,部署服务端只需一条 `docker run`;新建的 Project 默认使用 DeepSeek V4.1 Flash。
-
-## 可以直接编辑的双栏文件面板
-
-文件面板现在左边是目录树,右边是选中的文件,中间的分隔条可以拖动。目录树在你展开某个目录时才加载其中的内容。
-
-- 文本文件新增**编辑**操作:打开等宽字体的编辑器,带**自动换行**开关,按 Ctrl+S 保存。
-- 保存时会用 `ETag` / `ifVersion` 做版本校验。如果你打开文件之后 Agent 改过它,服务端会返回 `409`,不写入任何内容。面板随后提供**仍然覆盖**,你的草稿也会保留。
-- 把操作系统里的文件拖到面板上,就会上传到鼠标指针所在的目录。
-- 有未保存的修改时,切换文件或移除面板前会先确认。收起右侧栏不会丢失草稿。
-
-![文件面板:左侧目录树,右侧是在纯文本编辑器里打开的文件](/blog-assets/penguinharness-0-2-10-files-panel-zh.png)
-
-## 上下文环按压缩阈值计量
-
-输入框旁的上下文环现在以压缩阈值为满格,不再以模型的上下文窗口为满格。阈值是 128k 时,用掉 64k 显示为 50%。
-
-上下文面板里的长条仍以模型窗口为刻度,并用一条虚线标出压缩阈值。拖动这条虚线就能修改阈值:确认框弹出时已经填好新值,你还可以再改。每到一个压缩检查点,都会重新读取压缩设置,所以修改对正在运行的对话同样生效。
-
-面板还新增了第二个 Top 5 视图,列出当前上下文里文件工具读写最多的文件。
-
-![上下文面板:以模型窗口为刻度的长条、可拖动的压缩阈值虚线,以及 Top 5 文件视图](/blog-assets/penguinharness-0-2-10-context-panel-zh.png)
-
-## 对话边缘的悬浮球
-
-没有打开任何面板时,对话区域右缘内侧会浮着一个半透明的圆形按钮,下方写着**快捷方式**。点击它,各个面板和一个终端的入口会围着它展开成半圆。这些入口只显示图标,鼠标指向哪一个,下方的文字就显示哪一个的名称。选中一个入口,就会打开对应的面板,悬浮球随之隐藏。
-
-悬浮球可以沿着边缘拖动,并记住你放下的位置。有待审批的请求时,它会显示提示小圆点。半圆上的最后一个入口会永久收起悬浮球,想找回来,可以在**外观**设置里重新打开。
-
-![对话右缘的悬浮球,展开成一圈半圆形的面板入口](/blog-assets/penguinharness-0-2-10-shortcuts-launcher-zh.png)
-
-## 定时任务进入对话
-
-右侧栏新增了**定时任务**面板,列出绑定到当前会话的定时任务。面板带搜索、状态过滤和启用开关,每个任务的执行时间都用通俗的话写出来。
-
-- 面板顶部有**用 AI 创建**和**手动创建**两个按钮。前者把请求填进当前对话的输入框,但不会发送;后者打开的表单已经选好当前会话。
-- 在侧栏里,还有定时任务没触发的会话会显示一个闹钟。
-- 保存定时任务时,提示不再说「在新对话中生效」,而是如实说明调度器会怎么执行。
-
-![右侧栏里的定时任务面板,带「用 AI 创建」和「手动创建」两个按钮,以及侧栏中带闹钟标记的会话行](/blog-assets/penguinharness-0-2-10-schedule-panel-zh.png)
-
-## 钩子成为循环的一部分,目标模式变成插件
-
-会话现在有三个钩子触发点:`stop`、`pre_tool_use` 和 `user_prompt`。钩子就是一个普通的 Node 脚本,安装在 `agent_state/hooks/` 下,以子进程方式运行。stop 钩子可以返回 `continue`、`stop`、一个 `subagent` 请求,也可以什么都不返回。
-
-- 目标模式现在就是 `goal` 插件的 stop 钩子。
-- `continual-learning` 插件会把长任务中的发现交给一个后台子 Agent,由它更新相关的 `SKILL.md` 文件。
-- 技能库改名为**插件库**。插件以 npm 包的形式发布,版本号是日期,每个插件都有带文件浏览器的详情弹窗。
-- Agent 设置新增**钩子**标签页,每个 Agent 有一个 `hooks.enabled` 开关。关闭后,这个 Agent 不加载任何钩子,已安装的钩子包仍然留在磁盘上。每个钩子包的那一行用小标签列出它的触发点,标签页还支持 zip 导出、导入,以及通过对话导入。
-
-![Agent 设置的钩子标签页:启用开关卡片、带触发点标签的钩子包,以及导入对话框入口](/blog-assets/penguinharness-0-2-10-hooks-tab-zh.png)
-
-## 「用 AI 创建」做成通用套件
-
-Web App 里凡是用表单创建的对象,都会多一条创建途径:把它描述给 Agent。这一版发布的是支撑这条途径的套件,包括一对按钮、一个带示例和完整提示词折叠预览的提示词面板,以及一个把提示词交给 Project 默认 Agent 的对话框。
-
-- 两个按钮彼此独立。**用 AI 创建**是强调样式,图标是魔杖;**手动创建**是普通样式,图标是一只手。
-- 对话框唯一的出口是**在新对话中编辑**,任何内容都不会自动发送。提示词作为草稿进入输入框,发不发由你决定。
-- 除了定时任务面板,技能标签页里通过对话导入技能、记忆标签页里新增和编辑记忆,也已经接入了这个套件。其他创建表单会在后续版本陆续接入。
-
-![页面顶部的用 AI 创建和手动创建按钮,上面打开着用 AI 创建对话框](/blog-assets/penguinharness-0-2-10-create-with-ai-zh.png)
-
-## 把服务端放到另一台机器上
-
-Docker Hub 上现在有官方容器镜像 `hiyouga/penguinharness`,从源码构建,支持 `linux/amd64` 和 `linux/arm64`。镜像在 `0.0.0.0:7364` 上运行 `penguin server`,数据放在 `/data` 卷里。`latest` 标签跟随 `main` 分支,`X.Y.Z` 标签由各个发布版本构建。文档里的 `docker run` 命令把端口发布在宿主机的回环地址上,所以新部署的实例只有运行 Docker 的那台机器能访问。
-
-用来通过 ssh 在其他机器上安装 PenguinHarness 的**机器**页面,也有几处变化:
-
-- 机器记录从 JSON 文件迁入了 `web.db`,并归属于某个 Project。每台机器会自己生成一个 16 字符的 id。
-- PenguinHarness 通过 ssh 运行 `penguin server status`,获取机器的 id,并确认上面的服务端有没有在运行。
-- 每台机器只保持一条常驻的 `ssh -T -D` 会话,发往这台机器的所有流量都走这条会话。已连接机器的 API 在同源路径 `/server/<machineId>/api/…` 下应答。
-
-## 模型目录
-
-- **DeepSeek V4.1 Flash** 以不带版本号的 id `deepseek-flash` 上架,并成为新建 Project 的默认模型。它有 1,000,000 Token 的上下文窗口,支持图片输入,按 Flash 系列定价,非高峰时段价格减半。它的直连条目固定了客户端和 base URL。
-- **Gemini 3.8 Flash** 加入直连分组和 OpenRouter,上下文窗口 1,048,576 Token,支持图片输入。Gemini 3.x Flash 的条目现在保存官方标价,并单独声明上线折扣,不再把折扣直接算进价格;两条计费价格有误的条目也已更正。
-- **GPT-6 Astra** 加入直连分组和 OpenRouter,上下文窗口 1,050,000 Token,支持图片输入,每百万 Token 的价格为 $1 / $12.5 / $50(缓存读取 / 缓存写入 / 输出)。
-- 三个 **Doubao Seed** 模型加入 TokenDance 分组,按五折计费。
-- 新增 **vLLM** 分组,收录八个自建部署的模型。这些条目价格为零,不带 base URL,协议由分组统一固定。
-
-已有的 Project 需要在模型页点击**同步预置**,才能拿到这些条目。
-
-## 这一版还有
-
-- `exec_command` 除了 `cmd`,也接受 `command`。工具拒绝一次调用时,现在会说明错在哪里、有哪些参数,以及正确的调用形式。`read_image` 和 `describe_image` 并入了 `read_file`。
-- 耗时较长的轮次会显示时间花在了哪里,例如 `Elapsed 10.3s (API 5s, tools 5.3s)`。两部分都不计入等待审批的时间。
-- 有开发服务器或后台子 Agent 正在运行的会话,会在侧栏里带上标记,对话顶部也会显示对应的胶囊标签。
-- 压缩行会显示状态和耗时,思考内容和摘要分别流式写进各自可以展开的行里。
-- `model.timeoutMs` 现在是上游两次事件之间的空闲时限,默认值提高到 300000,所以请求只会因为长时间没有响应而超时,不会因为生成时间长而超时。收到内容之后,重试阶梯会从头开始。
-- 更新全部在一个对话框里完成:检查更新、查看发布说明、下载时显示进度条,最后点击**重启并更新**。
-- 打开对话时只加载最近 50 轮,向上滚动时再加载更早的内容。
-- 按 Workspace 分组时,侧栏会列出所有 Workspace,不再只列出已加载会话所属的那些。
-- 终端更像终端了:屏幕重绘之后,链接仍能正确打开;通过 OSC 52 复制的内容也能进入系统剪贴板。
-- 插件版本号现在写作 `2026.09.10.1` 这样的形式。用旧写法(短横线分隔)安装的副本仍算作同一个版本,不会误报有更新。
-
-## 关于 0.2.10
-
-0.2.11 是用 electron-builder 26.16.1 重新构建的 0.2.10,签名的 macOS 安装包又能正常构建了。0.2.10 已经打了 tag,npm 包和 Docker 镜像也已发布,但签名的 macOS 构建失败,所以 0.2.10 始终没有安装包,也没有 Release 页面。各项改动的记录仍在 [`changelog/0.2.10/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.10)。
-
-## 升级须知
-
-- **需要重启一次。** 这一版包含第一个只能在重启时执行的数据库迁移 `drop-goal-state`。热推送到运行中的实例时,系统会在改动数据库之前就拒绝;正常安装则会重启并执行迁移。回退到 0.2.9 仍然可行。
-- **给 0.2.10 之前创建的 Agent 安装 `goal` 插件。** 不装的话,目标模式会返回 `409 goal_plugin_not_installed`。每个 Agent 点一下就能装好。
-- **把内核更新到 `2026-09-10`**,Agent 才会用 `read_file` 读图。在此之前,调用旧图片工具会得到「未知工具」的回复,读图也仍按已保存的 30 秒超时执行。
-- **把创建 Agent 的脚本里的 `skills` / `--skills` 改成 `plugins` / `--plugins`。**
-- **API 变化。** `POST /api/version/update` 现在返回任务状态,不再阻塞到更新结束。机器相关的路由移到了 Project 下面,所以 0.2.9 里的机器列表升级后会是空的;从这台机器所属的 Project 重新安装一次即可恢复。
-
-## 安装
-
-桌面应用的安装包在 [penguin.ooo/download](https://penguin.ooo/download)。
-
-Linux 和 macOS 上,用下面的命令安装 CLI 和服务端:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 上用 PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-用 Docker 运行服务端:
-
-```sh
-docker run -d --name penguin -p 127.0.0.1:7364:7364 -v penguin-data:/data hiyouga/penguinharness:latest
-```
diff --git a/packages/landing/content/blog/penguinharness-0-2-13.en.md b/packages/landing/content/blog/penguinharness-0-2-13.en.md
deleted file mode 100644
index f04678bf..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-13.en.md
+++ /dev/null
@@ -1,164 +0,0 @@
----
-title: "PenguinHarness 0.2.13: a rebuilt Evaluation Center, a file manager, and a company-mode beta"
-date: 2026-09-15
-category: news
-excerpt: "The Evaluation Center is rebuilt so one Benchmark can evaluate several agents. The Files panel becomes a working file manager, the desktop app keeps running in the system tray, and company mode arrives as a beta that an admin turns on."
----
-
-PenguinHarness 0.2.13 rebuilds the Evaluation Center so that one Benchmark can evaluate several agents, and turns the Files panel into a working file manager. The desktop app now keeps running in the system tray after you close its window, a running tool call can be sent to the background, and three gateway bugs that used to end a Task mid-run are fixed. We are also shipping company mode as a beta: an admin turns it on, and then you can create an organization of agents inside a Project.
-
-## A rebuilt Evaluation Center
-
-A Benchmark no longer lives inside the agent it tests. It moved from `agents/<agent>/benchmarks/<id>/` to the Project's own `benchmarks/<id>/`, so one Benchmark can evaluate several agents, and each evaluation records which agent it tested.
-
-- An evaluation is labeled `<agent_id> · <model_id> · <thinking_level>`, and the chart draws one series per label. Only comparable scores share a line, so successive versions of one agent on one runtime now form one connected trend.
-- Opening a Benchmark now takes you to its own page at `/benchmark/:benchmarkId`. A row in the evaluation table opens an evaluation dialog, and a case opens a case dialog.
-- Both dialogs end in an **Ask AI** button that hands what is on screen to a prefilled conversation. From an evaluation, that is the Benchmark id, series label, version, provider, model, thinking level, per-case scores and every run's Session id. From a case, it is the paths to the case's statement and rubric, and how the latest evaluation's runs scored it.
-- A Benchmark carries a `status`. A `draft` stays masked while the `benchmark-design` Skill calibrates it, and the Skill publishes it once the tested agent's baseline scores below 85 on the 0–100 scale.
-- Evaluation Sessions go into their own **Evaluations** folder instead of filling up the tested agent's active list.
-
-![A Benchmark's page: the score chart drawing one labeled series per agent, model and thinking level, above the evaluation table](/blog-assets/penguinharness-0-2-13-benchmark-detail-en.png)
-
-## The Files panel is now a file manager
-
-The Workspace browser is renamed **Files**, and you can now manage a Workspace with it, not only browse it.
-
-- Any tree row and the preview body have a context menu, which you open with a right-click, Shift+F10 or a long press. It offers copy path, add to conversation, upload, download, rename, move and delete.
-- Renames and deletes carry the same check as the editor's save: if the agent rewrote the file while the dialog was open, the action is refused.
-- Syntax highlighting moved to a background worker, which removed the size limits. Highlighting costs about four milliseconds per kilobyte of TypeScript, which is why the source view used to give up above 64KB and the editor above 32KB. Both limits are gone.
-- A text preview now reads up to 1MB. On a 400KB file, the page holds a steady 60 frames per second while it highlights.
-- The search box searches the whole Workspace on the server, rather than filtering only the rows the tree happened to have loaded.
-- Soft wrap is now on by default.
-
-![The Files panel with its context menu open over a tree row](/blog-assets/penguinharness-0-2-13-files-panel-en.png)
-
-## The desktop app keeps running when you close the window
-
-The desktop app now has a system tray icon on Windows, macOS and Linux. By default, closing the main window hides the app in the tray, and the embedded server and its background tasks keep running.
-
-- Left-click the tray icon to bring the window back. Right-click it for **Open PenguinHarness**, **New Session**, **Models**, a **Keep running in the tray when the window closes** checkbox, and **Quit**.
-- The **Tray icon** switch in **System settings** › **Appearance** turns the tray icon off, without a restart.
-- **Show in folder** joins the header of the Files panel's preview. It appears only in the desktop app's own window, and the server enforces that: a browser signed in to the same server does not get it, even when the browser runs on that very machine. On macOS and Windows it selects the file; on Linux it opens the folder.
-
-## Send a running tool call to the background
-
-While an `exec_command` or `run_subagent` call is executing, its row offers **Send to background**. The call returns with a `process_id` or `subagent_id`, nothing is killed, and the turn continues instead of waiting for the command to finish.
-
-- A subagent sent to the background keeps running and streaming after the turn that started it has ended.
-- **Send to background** appears only after the call has been running for ten seconds, so it no longer flashes up and disappears on a command that returns within a few seconds.
-
-![A running exec_command row offering Send to background](/blog-assets/penguinharness-0-2-13-send-to-background-en.png)
-
-## Three gateway bugs that ended Tasks mid-run
-
-Each of these bugs caused a provider to return a 4xx error that the engine treated as fatal, so the Task stopped where it stood. All three are fixed in AgentHub.
-
-- AgentHub 0.4.12 moves an image read by `read_file`, or returned by an MCP tool, out of the `tool` message and onto the user message that follows the turn. That is the only placement Chat Completions documents, and a schema-validating gateway used to reject the whole request.
-- AgentHub 0.4.14 fixes two DeepSeek failures: `400 invalid_json` on the request after the first tool call behind a strict Responses relay, and `400 The reasoning_content in the thinking mode must be passed back to the API` part-way through a long tool chain.
-- AgentHub 0.4.15 fixes turns that call two tools in parallel through a gateway that opens every call before closing any. The whole turn used to be lost one request later, with `No function call found for function_call_output`.
-
-## Shell commands can be confined
-
-The harness gained a sandbox interface that confines shell commands along three dimensions: `fs-write`, `network` and `mask-paths`. Backends rewrite the command's argv and report honestly what they enforce. Routing fails closed: if no backend covers a requirement, the command is not started, rather than running unconfined.
-
-No backend is built into the harness. Four ship as plugin packages named `@prismshadow/penguin-plugin-<backend>`, which a deployment installs and names in `plugins.json`:
-
-| Backend | Platform |
-| --- | --- |
-| `sandbox-dsh` | Portable |
-| `sandbox-bwrap` | Linux |
-| `sandbox-seatbelt` | macOS |
-| `sandbox-mxc` | Windows |
-
-A default deployment names none of them and confines nothing.
-
-## The model catalog
-
-- All 43 OpenRouter presets now use the Responses API; before, only the ten `openai/*` rows did. The OpenRouter group itself pins the protocol, so a model you add to it by hand uses Responses too.
-- `Atria-Dawn-Preview` joins the Custom group, with Anthropic Messages, a 256K context window and text only.
-- The free `dots-3-note-preview` joins the TokenDance group, with a 512K context window and vision.
-- Protocol detection no longer takes a typed URL literally. An extra `/v1`, a missing one, or a whole endpoint path copied from a provider's docs are all detected correctly, and the **Models** page writes the corrected URL back into the field.
-
-## A Project can hold a company of agents
-
-Company mode is a beta, and it is off until an admin turns it on under **System settings** › **Server** › **Company mode**. The switch takes effect the moment it is flipped. Company mode is marked **Beta** in the mode switch and under the master switch: it is new, and you may run into problems.
-
-With company mode on, you can create an organization inside a Project, and a Project can hold more than one. Creating an organization takes one sentence, the mission, and produces only the CEO. A manager's budget covers everyone under it, so the CEO's default budget of 100 USD a month caps the whole organization from the first minute.
-
-An organization has:
-
-- a CEO at the root of a reporting tree, and one standing desk Session per employee
-- a calendar
-- a ticket board
-- channels
-- a monthly budget per employee, which warns at 80% and, at 100%, pauses the calendar of that employee and everyone under it
-
-All of this is stored as files under `<project>/organizations/<org_id>/`. SQLite holds only caches, rebuilt from those files on every pass.
-
-Six pages, **Overview**, **Org Chart**, **Calendar**, **Tickets**, **Finance** and **Handbook**, sit behind a **Development | Company** switch above the Project switcher. On the command line, `penguin org` covers the whole API, and every command takes `--json`.
-
-![Company mode's overview page: the inbox, today's schedule and the budget alerts](/blog-assets/penguinharness-0-2-13-company-overview-en.png)
-
-## The board, the calendar, and who decides
-
-- The ticket board has five columns: `proposed`, `in_progress`, `review`, `done` and `rejected`.
-- The CEO is meant to propose while you decide, but this is guidance, not a rule the server enforces. The CEO's Skill and the organization's handbook tell the CEO to post one proposal in the all-hands channel and wait for your answer before it hires (roles, budgets, models), sets or raises a budget, rejects someone else's ticket, closes a P0 or P1 ticket without review, or does anything outside the organization.
-- A server-side scheduler reconciles every organization every 30 seconds, and again right after each API write. It fires due calendar events at desks, delivers channel mentions and recomputes budgets. An event that came due while the organization was paused is not run later when it resumes.
-- Ticket changes never start a run. They queue up and reach the employee at its next calendar sweep, under `## Since your last sweep`.
-- In a channel, a message reaches someone only through an `@` mention.
-- A desk or ticket conversation is an ordinary conversation, with the same message list, tool cards and composer as development mode. Company mode has no chat view of its own.
-- Desk and ticket sessions run unattended and never stop to ask a person for tool approval. An organization's approval mode is **Allow all** by default, and there is no always-ask option.
-
-![The five-column ticket board: proposed, in progress, review, done and rejected](/blog-assets/penguinharness-0-2-13-company-tickets-en.png)
-
-## Also in this release
-
-- **The default system prompt has new guardrails.** Fourteen edits address four failure modes the old prompt allowed. "Cannot resolve" now has an observable trigger: the same error is still there after three different fixes. Independent tool calls go out together, commands run non-interactively, and a library counts as available only once the manifest lists it. A new `# Output` section rules out filler openers, narrating tool names and closing recaps.
-- **Two concurrent edits of one file no longer lose one silently.** `edit_file` and `write_file` hold a per-file lock across the whole read-modify-write. The lock is keyed on the file's real path, so a symlink and its target share one lock.
-- **Every account has a profile.** An avatar (128×128, re-encoded, refused over 128 KiB) and a nickname of 1–32 characters replace the raw user id in the sidebar, the rail and the admin list.
-- **Proxy options can test reachability** for six targets: OpenAI, Anthropic, Gemini, DeepSeek and GLM's two hosts. The test runs from the server, sends no credential, allows five seconds per target, and fills in each row as its answer arrives. Any HTTP answer counts as reachable, 401 and 403 included, because a rejected credential still proves that the name resolved, TCP connected, TLS completed and the host replied.
-- **A long Trace now loads.** Later rounds, including the compaction round, used to show an empty message list because only the first 1000 events were ever fetched. The view now pages through the whole file and renders as it goes.
-- **Tool cards can use short names:** `read_file` shows as read, `exec_command` as exec and `run_subagent` as subagent. A switch in **Appearance** controls this, on by default, and the tooltip keeps the real name.
-- **A compaction request uses the thinking level the Session pinned,** like every other request. It used to take the context's base level, which on DeepSeek could get the request rejected outright.
-- **Sidebar folders reveal ten conversations at a time,** and **Show less** folds them back.
-- **The context panel is easier to read.** The compaction cutter stays readable while you drag it, the room the model has but compaction will not let the Session use is hatched, and clicking a bar segment or a legend row pins its highlight.
-- **Task-completion notifications actually work.** Nothing ever called `Notification.requestPermission()`, and Electron reports `granted` without asking anyone, so on macOS an app bundle that never requested authorization had its notifications dropped. A new switch in **System settings** › **General**, off by default, asks for permission when you turn it on. Browsers can now show these notifications too.
-- **A used or expired one-time sign-in link** now lands on `/login` with a dialog explaining what happened, instead of a page of raw JSON.
-- **Signing out asks first** and says what happens: this session ends, and running conversations keep going on the server.
-- **The Code of Conduct moves to Contributor Covenant 3.0** in both languages. Each rung of the enforcement ladder now names the repair expected, not only the consequence. The reporting route is unchanged.
-
-## Upgrading
-
-- **Rename `extensions.json` to `plugins.json`, and its `"extensions"` key to `"plugins"`.** The old name is not read and not migrated. A deployment that configured plugins under it keeps running, but with none of them loaded and their capabilities silently unavailable.
-- **Port plugins to the new contract.** Imports point at `@prismshadow/penguin-core/plugin` rather than `/extension`, and `activate(ctx)` is replaced by `Plugin { modules }`. An installed plugin written against the old contract fails to load with "the default export is not a Plugin". `@prismshadow/penguin-server` no longer exports `AppDeps`, `buildAppDeps` or `createApp`. The rename changes nothing about the wire format, the database or any document on disk.
-- **Click Sync presets on the Models page.** Stored rows keep the protocol, display name and vision flag they were written with. The OpenRouter move to Responses, the `deepseek-v4-flash` text-only correction and the two new presets reach an existing Project only through a sync. A sync also fills in again any display name you deliberately cleared.
-- **Turn on company mode if you want it,** under **System settings** › **Server** › **Company mode**. It is off by default and takes effect as soon as you flip it.
-- **Two defaults changed.** Task-completion notifications are off until you turn them on, and the file editor's soft wrap is on for anyone who has never touched its **Wrap** toggle.
-- **Move any Benchmark left under `agents/<agent>/benchmarks/` into the Project's `benchmarks/` by hand.** This version does not read the old location, and nothing migrates or deletes it.
-- **Migrations 5, 6, 7 and 8** are additive and applied when the database opens. The profile page brings 5, and company mode brings 6, 7 and 8.
-
-## Install
-
-Desktop installers are at [penguin.ooo/download](https://penguin.ooo/download).
-
-On Linux and macOS, install the CLI and server with:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, use PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-To run the server in Docker:
-
-```sh
-docker run -d --name penguin -p 127.0.0.1:7364:7364 -v penguin-data:/data hiyouga/penguinharness:latest
-```
-
-Full details for every change are in [`changelog/0.2.13/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.13).
diff --git a/packages/landing/content/blog/penguinharness-0-2-13.zh.md b/packages/landing/content/blog/penguinharness-0-2-13.zh.md
deleted file mode 100644
index d6ae0ef2..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-13.zh.md
+++ /dev/null
@@ -1,164 +0,0 @@
----
-title: "PenguinHarness 0.2.13:重建的评估中心、文件管理器,以及公司模式内测"
-date: 2026-09-15
-category: news
-excerpt: "评估中心重建之后,一个 Benchmark 可以评估多个 Agent。文件面板成了真正能用的文件管理器,桌面应用可以留在系统托盘里继续运行,公司模式也以内测形式推出,由管理员开启。"
----
-
-PenguinHarness 0.2.13 重建了评估中心,一个 Benchmark 现在可以评估多个 Agent;文件面板也成了真正能用的文件管理器。关掉窗口之后,桌面应用会留在系统托盘里继续运行;运行中的工具调用可以转入后台;三个曾让 Task 中途终止的网关问题也修好了。我们还以内测形式推出了公司模式:由管理员开启之后,你就可以在 Project 里建立一个由 Agent 组成的组织。
-
-## 重建的评估中心
-
-Benchmark 不再放在被测 Agent 的目录里。它从 `agents/<agent>/benchmarks/<id>/` 移到了 Project 自己的 `benchmarks/<id>/`,所以一个 Benchmark 可以评估多个 Agent,每条评估记录也会写明被测的是哪个 Agent。
-
-- 每条评估记录的标签是 `<agent_id> · <model_id> · <thinking_level>`,图表按标签各画一条序列。只有可比的分数才会落在同一条线上,所以同一个 Agent 在同一运行时上的历次版本,现在能连成一条完整的趋势线。
-- 打开一个 Benchmark,会进入它自己的页面 `/benchmark/:benchmarkId`。点击评估表格里的一行,会打开评估详情对话框;点击一道题目,会打开题目对话框。
-- 两个对话框的末尾都有**问 AI** 按钮,把屏幕上的信息交给一个预填好的对话。从评估详情发起时,交过去的是 Benchmark id、序列标签、版本、供应商、模型、思考等级、各题分数,以及每次运行的 Session id;从题目发起时,交过去的是这道题的任务材料和评分标准的路径,以及最近一次评估中各次运行在这道题上的得分。
-- Benchmark 有了 `status` 字段。`benchmark-design` Skill 校准期间,处于 `draft` 状态的 Benchmark 会以遮罩显示;被测 Agent 的基线分在 0–100 分制下低于 85 时,Skill 就会发布它。
-- 评估产生的会话会归进单独的**评估任务**文件夹,不再挤进被测 Agent 的活跃列表。
-
-![Benchmark 页面:按 Agent、模型与思考等级分序列的分数图,下面是评估明细表格](/blog-assets/penguinharness-0-2-13-benchmark-detail-zh.png)
-
-## 文件面板成了文件管理器
-
-Workspace 浏览器改名为**文件浏览**,现在不只能浏览 Workspace,还能用它来管理 Workspace。
-
-- 目录树的任意一行和预览区都有右键菜单,右键点击、按 Shift+F10 或长按都能打开。菜单里有复制路径、添加到对话、上传、下载、重命名、移动和删除。
-- 重命名和删除沿用编辑器保存时的同一项检查:如果对话框开着的时候 Agent 改写了这个文件,这次操作就会遭到拒绝。
-- 语法高亮移到了后台 Worker 里,体积上限也随之取消。高亮 TypeScript 每千字节大约要花四毫秒,这正是过去源码视图超过 64KB、编辑器超过 32KB 就不再处理的原因。现在这两道上限都没有了。
-- 文本预览现在最多可以读取 1MB。打开一个 400KB 的文件时,高亮的整个过程中页面都能稳定保持每秒 60 帧。
-- 搜索框现在在服务端搜索整个 Workspace,而不是只过滤目录树碰巧已经加载的那些行。
-- 自动换行现在默认开启。
-
-![文件浏览面板,目录树上的一行打开着右键菜单](/blog-assets/penguinharness-0-2-13-files-panel-zh.png)
-
-## 关掉窗口,桌面应用继续运行
-
-桌面应用现在在 Windows、macOS 和 Linux 上都有系统托盘图标。默认情况下,关闭主窗口只会把应用收进托盘,内嵌的服务端和它的后台任务照常运行。
-
-- 左键点击托盘图标可以把窗口叫回来。右键点击会看到**打开 PenguinHarness**、**新建会话**、**模型**、**关闭窗口后继续在托盘中运行**复选框,以及**退出**。
-- **系统设置** › **外观**里的**托盘图标**开关可以关掉托盘图标,不需要重启。
-- 文件浏览面板的预览头部新增了**在文件夹中显示**。它只在桌面应用自己的窗口里出现,并由服务端把关:登录同一个服务端的浏览器拿不到它,哪怕浏览器就运行在那台机器上。macOS 和 Windows 上会选中这个文件,Linux 上则会打开所在的文件夹。
-
-## 把运行中的工具调用转入后台
-
-`exec_command` 或 `run_subagent` 执行期间,它在对话里的那一行会出现**转入后台执行**按钮。点击后,这次调用会带着 `process_id` 或 `subagent_id` 返回,不会终止任何东西,这一轮也继续往下走,不必等命令跑完。
-
-- 转入后台的子 Agent,在启动它的那一轮结束之后,仍然会继续运行、继续流式输出。
-- **转入后台执行**要等调用运行满十秒才会出现,几秒就能返回的命令不会再让它闪一下又消失。
-
-![运行中的 exec_command 行上出现的转入后台执行](/blog-assets/penguinharness-0-2-13-send-to-background-zh.png)
-
-## 三个曾让 Task 中途终止的网关问题
-
-这三个问题都会让供应商返回 4xx 错误,引擎把它当作致命错误处理,Task 就停在了原地。三个问题都已在 AgentHub 里修复。
-
-- AgentHub 0.4.12 把 `read_file` 读到的图片,或者 MCP 工具返回的图片,从 `tool` 消息挪到这一轮之后的那条 user 消息上。这是 Chat Completions 文档里唯一给出的放置方式;以前,按 schema 校验请求的网关会把整个请求打回。
-- AgentHub 0.4.14 修复了 DeepSeek 上的两个错误:一个是在严格的 Responses 中继后面,第一次工具调用之后的那条请求报 `400 invalid_json`;另一个是长工具链跑到一半时报 `400 The reasoning_content in the thinking mode must be passed back to the API`。
-- AgentHub 0.4.15 修复的是一轮里并行调用两个工具、而网关先打开所有调用再逐个关闭的情况。以前到了下一个请求,这一整轮都会丢失,并报 `No function call found for function_call_output`。
-
-## Shell 命令可以受约束运行
-
-Harness 新增了一个沙箱接口,从三个维度约束 shell 命令:`fs-write`、`network` 和 `mask-paths`。后端负责改写命令的 argv,并如实报告自己实际强制执行了哪些约束。路由宁可拒绝也不放行:如果没有任何后端能覆盖某项要求,命令就不会启动,而不是不受约束地运行。
-
-Harness 本身不带任何后端。四个后端以插件包形式提供,包名是 `@prismshadow/penguin-plugin-<backend>`,由部署方自行安装,并写进 `plugins.json`:
-
-| 后端 | 平台 |
-| --- | --- |
-| `sandbox-dsh` | 跨平台 |
-| `sandbox-bwrap` | Linux |
-| `sandbox-seatbelt` | macOS |
-| `sandbox-mxc` | Windows |
-
-默认部署一个后端都不写,也就什么都不约束。
-
-## 模型目录
-
-- OpenRouter 的全部 43 条预置现在都使用 Responses API,此前只有十条 `openai/*` 是这样。协议由 OpenRouter 分组本身固定,所以你手动加进这个分组的模型也会使用 Responses。
-- `Atria-Dawn-Preview` 加入 Custom 分组:Anthropic Messages 协议,256K 上下文窗口,仅支持文本。
-- 免费的 `dots-3-note-preview` 加入 TokenDance 分组:512K 上下文窗口,支持图片。
-- 协议识别不再照字面读取你填入的 URL。多一个 `/v1`、少一个 `/v1`,或者从供应商文档里整段复制来的端点路径,现在都能正确识别,**模型库**页面还会把修正后的 URL 写回输入框。
-
-## 一个 Project 里可以有一家 Agent 公司
-
-公司模式是内测功能,默认关闭,需要管理员在**系统设置** › **服务器** › **公司模式**里打开。开关一拨,立即生效。模式切换处和总开关下方都标着**内测版**:这项功能还很新,你可能会遇到问题。
-
-打开公司模式后,你可以在 Project 里创建组织,一个 Project 里可以有多个组织。创建组织只需要一句话,也就是组织的使命;刚创建时,组织里只有 CEO。管理者的预算涵盖其所有下属,所以 CEO 默认每月 100 USD 的预算,从一开始就封住了整个组织的开销。
-
-一个组织包括:
-
-- 一位 CEO,位于汇报树的根部;每位员工各有一条常驻的工位会话
-- 一份日历
-- 一块工单板
-- 若干频道
-- 每位员工的月度预算:用到 80% 时告警,用到 100% 时暂停这位员工及其所有下属的日历
-
-这些全都以文件形式存放在 `<project>/organizations/<org_id>/` 下。SQLite 只保存缓存,每一轮都从这些文件重建。
-
-**概览**、**组织图**、**日历**、**工单**、**财务**和**手册**六个页面,挂在 Project 切换器上方的**开发 | 公司**开关后面。命令行一侧,`penguin org` 覆盖了全部 API,每条命令都支持 `--json`。
-
-![公司模式的概览页:收件箱、今日日程与预算告警](/blog-assets/penguinharness-0-2-13-company-overview-zh.png)
-
-## 工单板、日历,以及谁来拍板
-
-- 工单板分五列:`proposed`、`in_progress`、`review`、`done` 和 `rejected`。
-- 按照设计,CEO 负责提议,由你拍板,但这只是写给 Agent 的指引,服务端并不强制执行。CEO 的 Skill 和组织手册要求它:在招聘(岗位、预算、模型)、设定或提高预算、驳回别人提的工单、不经审核就关闭 P0 或 P1 工单,以及做任何超出组织范围的事情之前,先在全员频道里发一条提案,等你答复。
-- 服务端调度器每 30 秒对每个组织对账一次,每次 API 写入之后也会马上再对一次。它把到期的日程投递给工位,送达频道里的提及,并重新计算预算。组织暂停期间到期的日程,恢复之后不会补发。
-- 工单变更从不启动运行。变更先排队,等到这位员工下一次日历巡检时才送达,列在 `## Since your last sweep` 标题下。
-- 在频道里,只有 `@` 提及才能把消息送到某个人那里。
-- 工位会话和工单会话都是普通对话,消息列表、工具卡片和输入框都和开发模式一样。公司模式没有自己的聊天页。
-- 工位会话和工单会话无人值守运行,从不停下来请人审批工具调用。组织的审批模式默认是**全部放行**,也没有「总是询问」这个选项。
-
-![五列工单板:提议、进行中、审核中、已完成、已拒绝](/blog-assets/penguinharness-0-2-13-company-tickets-zh.png)
-
-## 这一版还有
-
-- **默认系统提示词加了护栏。** 一共改了十四处,针对旧提示词放任的四种失败模式。「无法解决」现在有了可观测的触发条件:换了三种不同的修法之后,同一个错误依然存在。相互独立的工具调用会一次发出,命令以非交互方式运行,一个库要在清单文件里出现才算可用。新增的 `# Output` 一节去掉了空洞的开场白、复述工具名和结尾总结。
-- **同一个文件上的两处并发编辑,不会再悄悄丢掉一处。** `edit_file` 和 `write_file` 在读取、修改、写回的整个过程中都持有按文件加的锁。锁以文件的真实路径为键,所以软链接和它指向的文件共用同一把锁。
-- **每个账号都有了个人资料。** 头像(128×128,会重新编码,超过 128 KiB 拒收)和 1–32 个字符的昵称,取代了侧栏、导航栏和管理员列表里的原始用户 id。
-- **代理选项可以测试连通性**,目标共六个:OpenAI、Anthropic、Gemini、DeepSeek,以及 GLM 的两个域名。测试由服务端发起,不带任何凭据,每个目标限时五秒,哪个目标有了结果,就填进对应的那一行。任何 HTTP 应答都算连通,401 和 403 也算,因为即使凭据遭到拒绝,也说明域名解析、TCP 连接和 TLS 握手都已成功,主机也作出了应答。
-- **长 Trace 现在能打开了。** 以前只取前 1000 条事件,靠后的轮次(包括压缩那一轮)显示的都是空的消息列表。现在查看器会分页读完整个文件,边读边渲染。
-- **工具卡片可以显示短名。** `read_file` 显示为「读取」,`exec_command` 显示为「执行命令」,`run_subagent` 显示为「子智能体」。**外观**里有一个开关控制这项功能,默认开启,悬停提示里仍是真实名字。
-- **压缩请求使用会话锁定的思考等级**,和其他请求一样。以前它用的是上下文的基础等级,在 DeepSeek 上可能导致请求直接遭到拒绝。
-- **侧栏文件夹每次展开十条对话**,点击**收起**可以折叠回去。
-- **上下文面板更好读了。** 拖动压缩阈值的虚线时,数值始终看得清;模型本身有、但压缩不允许会话用到的那部分空间,会以斜纹标出;点击长条上的一段或图例里的一行,可以把高亮固定住。
-- **任务完成通知这次真的能用了。** 以前没有任何代码调用过 `Notification.requestPermission()`,而 Electron 不问任何人就报告 `granted`,所以在 macOS 上,从没申请过授权的应用包发出的通知会直接丢失。现在**系统设置** › **通用**里新增了一个开关,默认关闭,打开的那一刻才去申请权限。浏览器现在也能显示这类通知了。
-- **用过或已过期的一次性登录链接**,现在会跳到 `/login`,并弹出对话框说明原因,而不是显示一页原始 JSON。
-- **退出登录前会先确认**,并说明后果:当前的登录会话结束,运行中的对话在服务端继续。
-- **行为准则升级到 Contributor Covenant 3.0**,中英文同步。执行阶梯的每一级现在都写明了期望的补救措施,而不只是后果。举报渠道不变。
-
-## 升级须知
-
-- **把 `extensions.json` 改名为 `plugins.json`,其中的 `"extensions"` 键改为 `"plugins"`。** 旧文件名不再读取,也不做迁移。按旧名称配置插件的部署会照常运行,但一个插件都不会加载,这些插件提供的能力就这样悄无声息地没了。
-- **按新契约改写插件。** import 路径改为 `@prismshadow/penguin-core/plugin`,不再是 `/extension`;`activate(ctx)` 换成了 `Plugin { modules }`。按旧契约编写的已安装插件会加载失败,报「the default export is not a Plugin」。`@prismshadow/penguin-server` 不再导出 `AppDeps`、`buildAppDeps` 和 `createApp`。这次改名不影响线上传输格式、数据库,也不影响磁盘上的任何文档。
-- **到模型库页面点一次同步预置。** 已存的模型条目会保留写入时的协议、显示名和视觉标记。OpenRouter 改用 Responses、`deepseek-v4-flash` 更正为仅支持文本,以及两条新预置,都只能通过同步进入已有的 Project。同步还会把你特意清空的显示名重新填上。
-- **想用公司模式,就自己打开**:位置在**系统设置** › **服务器** › **公司模式**。它默认关闭,开关一拨就生效。
-- **两个默认值变了。** 任务完成通知默认关闭,需要你自己打开;对于从没动过**自动换行**开关的人,文件编辑器的自动换行默认开启。
-- **把还留在 `agents/<agent>/benchmarks/` 下的 Benchmark 手动移到 Project 的 `benchmarks/`。** 这个版本不读取旧位置,也不会迁移或删除那里的内容。
-- **迁移 5、6、7、8** 都是只做新增的迁移,在打开数据库时自动执行。个人资料页带来迁移 5,公司模式带来迁移 6、7、8。
-
-## 安装
-
-桌面应用的安装包在 [penguin.ooo/download](https://penguin.ooo/download)。
-
-Linux 和 macOS 上,用下面的命令安装 CLI 和服务端:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 上用 PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-用 Docker 运行服务端:
-
-```sh
-docker run -d --name penguin -p 127.0.0.1:7364:7364 -v penguin-data:/data hiyouga/penguinharness:latest
-```
-
-每一项改动的完整细节见 [`changelog/0.2.13/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.13)。
diff --git a/packages/landing/content/blog/penguinharness-0-2-2.en.md b/packages/landing/content/blog/penguinharness-0-2-2.en.md
deleted file mode 100644
index 89fed104..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-2.en.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-title: "PenguinHarness 0.2.2: long-term memory and MCP Server support"
-date: 2026-08-11
-category: news
-excerpt: 0.2.2 gives agents long-term memory across Sessions, with a Memory tab to manage it, and adds MCP Server support over three transports. Prompt sections become editable and switchable, agent configs gain a kernel version, and a Trace corruption bug is fixed.
----
-
-PenguinHarness 0.2.2 is out. Earlier releases gave agents their working tools: file tools, subagents, Skills and scheduled tasks. This release gives them a memory, so what an agent learns in one Session is there for the next. It also adds MCP Server support, prompt sections you can edit and switch off, and a version stamp for the agent configuration itself.
-
-## Memory
-
-Each agent keeps long-term notes under `agent_state/memory/`, in two scopes. The user scope is read by every Session. Workspace scopes are tied to the directory the agent works in, so notes about one project never leak into another. A temporary Workspace gets no scope of its own, because no later Session would ever come back to read it.
-
-Only the `MEMORY.md` indexes enter the context, capped at 200 lines and 25,000 characters per scope, with an explicit truncation note past the cap. Topic files stay on disk until the model opens them with its ordinary file tools.
-
-Writing works the same way. The model saves and merges its own notes by editing files, and the harness keeps those writes inside the memory directories. No new tool was added for any of this.
-
-Agent settings gain a **Memory** tab that lists every memory grouped by scope. You can view a memory, delete it (its index line is removed at the same time), or edit it through a prefilled chat with the agent itself. The two memory prompts are editable at the bottom of the tab.
-
-Agents created before Memory existed are unaffected: a template without the `{{MEMORY}}` placeholder injects nothing. The tab points this out and offers a one-click insert.
-
-## MCP Servers
-
-Agents can now use tools from MCP (Model Context Protocol) servers. Support is built on the official TypeScript SDK v2 and covers three transports: stdio, Streamable HTTP and legacy SSE.
-
-Server tools appear as `mcp__<server>__<tool>` and follow the existing execution and approval rules. A tool that the server marks with `readOnlyHint` gets read-only permission. Vault values never reach an MCP server process.
-
-The **MCP Servers** section of the agent's **Tools** tab, which used to show the configuration as read-only JSON, now manages servers with forms: add, edit and delete them, and test a connection on the spot. An unreachable server is skipped with a warning instead of stalling Session creation. While servers connect, the chat shows the progress as step rows instead of silently hanging on your first message.
-
-This is the release's one breaking change: the toolset record moves from `session_meta.tools` to a new `tool_list_ready` event. Traces written before the change no longer display their embedded tool record.
-
-## Prompt sections you can edit and switch off
-
-Memory's way of injecting its prompt now covers the three other subsystems that add text to the system prompt: Vault, Skills and Schedules. For these sections, the system-prompt template now holds only the placeholders `{{VAULT}}`, `{{SKILLS}}` and `{{SCHEDULES}}`. Each one expands to a prompt stored with the agent, which you can edit at the bottom of the matching tab, behind an enable switch at the top.
-
-The switch only controls what the model sees. Turning a section off removes it from the system prompt, but the feature keeps working: Vault values still reach shell subprocesses as environment variables, installed Skills can still be invoked explicitly, and scheduled tasks still fire on time.
-
-### Schedule tasks from chat
-
-The default Schedules prompt is new. It teaches the model to manage the TOML files under `agent_state/schedule/` with its file tools. The prompt spells out the field rules, the five-minute minimum period, and that the server picks up changes within about thirty seconds, and it comes with the list of existing tasks. You can now ask for something like "run the test suite every morning at nine" in chat, and the model writes the file itself.
-
-### Existing agents
-
-Existing agents baked the old template sections in when they were created, and those templates keep working as they are. Where the stock wording is intact, the tab offers a one-click migration to the placeholder form. Hand-edited sections are left alone.
-
-## A kernel version for agent configs
-
-An agent's `system_config.yaml` is fixed when the agent is created and never upgraded behind your back. That keeps behavior predictable, but until now it also meant newer defaults only reached new agents.
-
-0.2.2 stamps each config with a kernel version: a date that records which generation of built-in defaults the config came from. Creating or restoring the config writes the stamp, and ordinary edits leave it alone. A guard test in CI fails whenever the defaults change without a new date, so the stamp cannot fall behind.
-
-On the agent overview, **Update kernel** now sits beside **Restore default configuration**. It merges field by field:
-
-- Values that still match any recorded generation move to the new default.
-- Customized values are kept and listed by readable names.
-- Values of unknown origin are kept, to be safe.
-
-**Restore default configuration** is still there when you want a full reset.
-
-## Core runtime
-
-The default `max_turns` is now -1, which means no turn limit. Request caps and the compaction threshold now derive from the model's context window, so small-window vLLM-class deployments no longer need hand tuning.
-
-The LLM retry ladder now starts at two seconds, and every failure except a rejected credential is retried.
-
-Trace appends are now serialized, with one `write(2)` per record, and resuming a Session repairs a tail torn by a crash. A large record can no longer be split at the 512 KiB chunk boundary, which is where the occasional Trace corruption some users saw came from.
-
-## Desktop app and Web App
-
-The desktop app gets penguin brand icons on every platform, system notifications when a Task finishes, an explicit single-user mode, and a bundled `penguin` CLI on PATH.
-
-Administrators get a **Proxy options** dialog. The application and the agent environment each have their own switch, and both use one shared proxy address. An empty address follows the system proxy, and loopback traffic always bypasses the proxy.
-
-The Web App collected a month of fixes. The ones worth naming:
-
-- Header statistics fold into a details card, with a click-to-copy Session id and a list of background processes whose **Stop** button works.
-- Starting a new chat with unsent text in the composer keeps that text as a draft in the sidebar.
-- The initial-password banner can be dismissed for good.
-- Clicking the locked-model chip now simply says **Type /model to switch models**.
-- Agent detail tabs settle into **Overview**, **System Prompt**, **Runtime**, **Tools**, **Skills**, **Memory**, **Vault** and **Schedules**, and the stat icons in the agent list follow the same order.
-- The agent overview is laid out as ruled sections, with a copyable state path.
-- The shared toggle switch no longer keeps a gray halo after a click.
-- Leaving a running conversation no longer makes the whole app flicker.
-
-## Everything else
-
-- The model catalog adds Thinking Machines Lab's Inkling on OpenRouter and Fireworks AI, and DeepSeek V4 Flash 0731 on Fireworks AI. The GLM-5.1 gateway listings are removed, while the Z.AI direct entry stays. OpenRouter prices are refreshed from its models API.
-- The Skill library adds `humanizer`, a Skill you install manually that strips machine-writing tells from prose in any language.
-- Dependency overrides force `@hono/node-server` to 2.0.5 or later, fixing a path-traversal advisory in `serve-static` on Windows that came in through the MCP SDK, and `nanoid` to 3.3.17 or later. `pnpm audit` now has nothing to report.
-- The release workflow refuses a tag whose version does not match the repository.
-
-The full list is in [changelog/0.2.2](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.2).
-
-## Install or upgrade
-
-Desktop app: download the installer for your platform at [penguin.ooo/download](https://penguin.ooo/download). Starting with this release, the macOS builds are signed and notarized, so Gatekeeper opens them directly. In this release, Windows builds are still unsigned: in SmartScreen, choose "More info → Run anyway".
-
-CLI / server:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, run `irm https://penguin.ooo/install.ps1 | iex` in PowerShell. With Node >= 24, you can also install with `npm install -g @prismshadow/penguin-cli`. On Linux and macOS, upgrade an existing install with `penguin update`.
diff --git a/packages/landing/content/blog/penguinharness-0-2-2.zh.md b/packages/landing/content/blog/penguinharness-0-2-2.zh.md
deleted file mode 100644
index 1399adc9..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-2.zh.md
+++ /dev/null
@@ -1,105 +0,0 @@
----
-title: "PenguinHarness 0.2.2:长期记忆与 MCP Server 支持"
-date: 2026-08-11
-category: news
-excerpt: 0.2.2 让 Agent 拥有跨会话的长期记忆,可以在「记忆」标签页里管理;同时支持通过三种传输方式接入 MCP Server。提示词区块可以编辑和关闭,Agent 配置有了内核版本,Trace 损坏的问题也已修复。
----
-
-PenguinHarness 0.2.2 发布了。之前的版本为 Agent 配齐了干活的工具:文件工具、子 Agent、Skill 和定时任务。这个版本给它们加上了记忆:Agent 在一个会话里学到的东西,下一个会话还能接着用。这一版还加入了 MCP Server 支持、可编辑也可关闭的提示词区块,以及给 Agent 配置本身的版本标记。
-
-## 记忆
-
-每个 Agent 把长期笔记存在 `agent_state/memory/` 下,分两种作用域。用户作用域的内容,每个会话都会读取;Workspace 作用域绑定 Agent 工作的目录,关于某个项目的笔记不会混进另一个项目。临时 Workspace 没有自己的作用域,因为之后不会有会话回来读它。
-
-只有 `MEMORY.md` 索引会进入上下文,每个作用域最多 200 行、25,000 字符,超出上限时会附上明确的截断说明。主题文件留在磁盘上,模型需要时再用普通的文件工具打开。
-
-写入也是同样的方式。模型通过编辑文件来保存、合并自己的笔记,Harness 则把这些写入限制在记忆目录里。为此没有新增任何工具。
-
-Agent 设置里多了一个**记忆**标签页,按作用域分组列出所有记忆。你可以查看某条记忆、删除它(对应的索引行会一并移除),也可以通过一段预填好的对话,让 Agent 自己来改。标签页底部还可以编辑两段记忆提示词。
-
-记忆功能推出之前创建的 Agent 不受影响:模板里没有 `{{MEMORY}}` 占位符,就不会注入任何内容。标签页会指出这一点,并提供一键插入。
-
-## MCP Server
-
-Agent 现在可以使用 MCP(Model Context Protocol)服务器提供的工具。这项支持基于官方 TypeScript SDK v2,覆盖三种传输方式:stdio、Streamable HTTP 和旧式 SSE。
-
-服务器的工具以 `mcp__<server>__<tool>` 的名字出现,沿用现有的执行和审批规则。服务器用 `readOnlyHint` 标记的工具获得只读权限。密钥保险柜里的值永远不会传给 MCP 服务器进程。
-
-Agent 设置的**工具**标签页里,**MCP Server** 分区过去只以只读 JSON 展示配置,现在可以用表单管理服务器:添加、编辑、删除,还能当场测试连接。连不上的服务器会直接跳过并给出警告,不会卡住会话创建。服务器连接期间,对话里会以步骤行显示进度,你的第一条消息不会再无声无息地卡住。
-
-这是本版唯一的破坏性变更:工具集记录从 `session_meta.tools` 移到了新的 `tool_list_ready` 事件。变更之前写下的 Trace 不再显示其中内嵌的工具记录。
-
-## 可编辑、可关闭的提示词区块
-
-记忆注入提示词的方式,现在也用到了另外三个会往系统提示词里加内容的子系统上:密钥保险柜、技能和定时任务。这三部分在系统提示词模板里只保留 `{{VAULT}}`、`{{SKILLS}}` 和 `{{SCHEDULES}}` 三个占位符。每个占位符展开为一段随 Agent 保存的提示词,可以在对应标签页的底部编辑,标签页顶部则有一个启用开关。
-
-开关只决定模型能看到什么。关掉某个区块,它就从系统提示词里消失,但功能照常运转:密钥保险柜的值仍以环境变量的形式传给 shell 子进程,已安装的 Skill 仍可显式调用,定时任务也照样准时触发。
-
-### 在对话里安排定时任务
-
-定时任务的默认提示词是新写的。它教模型用文件工具管理 `agent_state/schedule/` 下的 TOML 文件。提示词写明了字段规则、最短五分钟的周期、服务端大约三十秒内就会载入改动,还附上了现有任务的列表。现在你可以在对话里说一句「每天早上九点跑一遍测试套件」,模型会自己把文件写好。
-
-### 已有 Agent
-
-已有 Agent 在创建时就把旧模板的各个区块固化了进去,这些模板照旧可用。原版措辞没有改动过的,标签页提供一键迁移到占位符写法;手动改过的区块保持不动。
-
-## Agent 配置的内核版本
-
-Agent 的 `system_config.yaml` 在创建时就固定下来,绝不会在背后悄悄升级。这让行为可以预期,但在此之前,新的默认值也只有新 Agent 才用得上。
-
-0.2.2 给每份配置打上内核版本:一个日期,记录这份配置出自哪一代内置默认值。创建或还原配置时写入这个标记,日常编辑不会动它。CI 里有一个守卫测试,只要默认值变了而日期没有更新,测试就会失败,所以这个标记不会落后。
-
-Agent 概览页上,**更新内核**现在就在**还原为默认配置**旁边。它会逐个字段合并:
-
-- 仍与某一代已记录的默认值一致的字段,更新为新的默认值。
-- 自定义过的字段保留,并以可读的名称列出。
-- 来源不明的值稳妥起见也保留。
-
-想彻底重置时,**还原为默认配置**仍然可用。
-
-## 核心运行时
-
-`max_turns` 的默认值现在是 -1,即不限轮次。请求上限和压缩阈值改为根据模型的上下文窗口推算,小窗口的 vLLM 类部署不再需要手工调参。
-
-LLM 重试阶梯现在从 2 秒起步,除凭证验证失败外,所有失败都会重试。
-
-Trace 的追加写入现在串行执行,每条记录一次 `write(2)`;恢复会话时,会修复崩溃时写坏的文件末尾。大记录不会再在 512 KiB 的分块边界处断成两截。部分用户偶尔遇到的 Trace 损坏,根源就在这里。
-
-## 桌面应用与 Web App
-
-桌面应用在各个平台都换上了企鹅品牌图标,Task 结束时会发出系统通知,有了明确的单用户模式,还自带可以在 PATH 中直接调用的 `penguin` CLI。
-
-管理员多了一个**代理选项**对话框:应用和 Agent 环境各有自己的开关,共用同一个代理地址;地址留空时跟随系统代理,回环流量始终不走代理。
-
-Web App 积累了一个月的修复,值得一提的有:
-
-- 对话头部的统计收进一张详情卡片,会话 id 点击即可复制,卡片里还列出后台进程,每个进程的**停止**按钮都能正常使用。
-- 输入框里有没发出去的文字时新建对话,这段文字会以草稿的形式留在侧栏。
-- 初始密码横幅可以永久关闭。
-- 点击已锁定的模型标签,现在只提示**输入 /model 切换模型**。
-- Agent 详情页的标签顺序定为**概览**、**系统提示词**、**运行参数**、**工具**、**技能**、**记忆**、**密钥保险柜**和**定时任务**,Agent 列表里的统计图标也按同样的顺序排列。
-- Agent 概览页改为用分隔线分节的排版,Agent State 路径可以直接复制。
-- 共用的开关组件点击后不再残留灰色光晕。
-- 离开正在运行的对话时,整个应用不会再闪烁。
-
-## 其余改进
-
-- 模型目录新增 Thinking Machines Lab 的 Inkling(上架 OpenRouter 和 Fireworks AI),以及 Fireworks AI 上的 DeepSeek V4 Flash 0731。GLM-5.1 的网关条目已移除,Z.AI 直连条目保留。OpenRouter 的价格按它的 models API 重新刷新。
-- 技能库新增 `humanizer`:一个需要手动安装的 Skill,用来去除各种语言文字里的机器写作痕迹。
-- 依赖覆盖把 `@hono/node-server` 强制升到 2.0.5 或更高,以修复一则路径穿越安全通告:问题出在 Windows 上的 `serve-static`,有漏洞的版本经由 MCP SDK 间接引入。`nanoid` 也强制升到 3.3.17 或更高。现在 `pnpm audit` 没有任何需要报告的问题。
-- 发布工作流会拒绝版本号与仓库不一致的 tag。
-
-完整清单见 [changelog/0.2.2](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.2)。
-
-## 安装或升级
-
-桌面应用:到 [penguin.ooo/download](https://penguin.ooo/download) 下载对应平台的安装包。从这个版本起,macOS 安装包已签名并完成公证,Gatekeeper 会直接放行。这一版的 Windows 安装包仍未签名:在 SmartScreen 里选「更多信息 → 仍要运行」。
-
-CLI / 服务端:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 上请在 PowerShell 中运行 `irm https://penguin.ooo/install.ps1 | iex`。Node >= 24 的环境也可以用 `npm install -g @prismshadow/penguin-cli` 安装。在 Linux 和 macOS 上升级已有安装,运行 `penguin update` 即可。
diff --git a/packages/landing/content/blog/penguinharness-0-2-3.en.md b/packages/landing/content/blog/penguinharness-0-2-3.en.md
deleted file mode 100644
index d0b42d12..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-3.en.md
+++ /dev/null
@@ -1,99 +0,0 @@
----
-title: "PenguinHarness 0.2.3: live Session status and a readable compaction record"
-date: 2026-08-19
-category: news
-excerpt: "Every sidebar row now shows live Session status, context compaction is a record you can open and read, any completed reply can fork into a new Session, and a queued message can be pulled back and edited."
----
-
-PenguinHarness 0.2.3 is out. This release makes an agent's work easier to follow and removes several points of friction. Session status in the sidebar is now live, context compaction is a record you can open and read, any completed reply can fork into a new Session, and a queued message can be pulled back into the composer and edited before it goes out.
-
-## The sidebar shows which Session is running
-
-Until now, only the conversation you had open showed its real status. Every other row showed whatever the last list fetch returned. A Session you left while it was running kept showing as running, and a Session started in the background never changed at all.
-
-Session status is now live in every row. A turning hourglass means the Session is running. A green dot means it finished and you have not looked at it yet. No marker means you have.
-
-![Sidebar with three Session rows: a green unread dot, no marker, and a running hourglass](/blog-assets/penguinharness-0-2-3-sidebar-status-en.png)
-
-First runs are covered too. When a Session's first Task finishes, its row settles on the green dot like any other, instead of going blank.
-
-## Compaction is a record you can open
-
-Context compaction used to be a blank stretch in the conversation. You could tell it had happened, but not what it kept. It is now a row you can open, collapsed by default, the same way thinking is collapsed inside a Task group.
-
-![A compaction row in the conversation, collapsed by default](/blog-assets/penguinharness-0-2-3-compaction-collapsed-en.png)
-
-The summary streams in as it is written, so you can expand the row and read exactly what the agent decided to keep.
-
-![The expanded compaction summary, with task, confirmed findings, next steps and caveats](/blog-assets/penguinharness-0-2-3-compaction-expanded-en.png)
-
-The timing changed as well. When compaction triggers after the model has produced a tool call, it now waits for the tools to finish and compacts with their results in hand, instead of folding an unfinished exchange into the request. If you quit the client mid-compaction, that round is marked failed, and its half-written content is discarded on load. A round that clears the context instead of summarizing it is no longer called compaction. It is labeled Clear.
-
-One recurring complaint is fixed. After a client restart, a conversation full of history used to refuse to compact, reporting that there was nothing to compact. It now compacts as expected. The server's three reasons for refusing a compaction also have their own error codes now, so the Chinese UI shows a Chinese message instead of English text.
-
-## Any reply can fork into a new Session
-
-When a conversation went sideways, you used to have two options: live with it or start over. Every completed reply now carries a fork control, next to copy.
-
-![A completed reply's action row, with the fork control next to copy](/blog-assets/penguinharness-0-2-3-session-fork-actions-en.png)
-
-Forking asks first. When you confirm, the conversation up to that reply is copied into a new Session, and the original is left alone.
-
-![The confirmation dialog shown before forking](/blog-assets/penguinharness-0-2-3-session-fork-confirm-en.png)
-
-## A queued message can be pulled back
-
-Steering you typed mid-run and follow-ups waiting their turn used to be out of reach the moment you sent them. Each now carries a curved-back arrow. Click it, and the message returns to the composer, where you can edit it and send it again.
-
-A message is never both delivered and recalled. If the engine takes it in the same instant you click, you get a clear message saying so, rather than a silent disappearance or a double send.
-
-## Thinking levels
-
-AgentHub 0.4.4 added a `max` tier, so the ladder is now low, medium, high, xhigh, max. In the Chinese UI, the button shows only the Chinese name, and the menu adds the English value.
-
-![The thinking-level dropdown](/blog-assets/penguinharness-0-2-3-thinking-level-menu-en.png)
-
-Changing the level mid-conversation now asks first. Some providers implement thinking levels by putting a different prompt prefix at the very front of the request. Switching part-way through then invalidates the prefix cache for the whole history, and the next request bills all of it again at the uncached rate. The dialog offers three ways out: compact first and then switch, switch anyway, or cancel.
-
-![The confirmation shown when switching the thinking level mid-conversation](/blog-assets/penguinharness-0-2-3-thinking-level-switch-guard-en.png)
-
-The level you pick is stored on the Session, so it survives a refresh and shows up in a second tab.
-
-## Adding a custom model no longer means guessing the protocol
-
-Since 0.4.2, AgentHub has carried three generic protocol clients: OpenAI Responses, Anthropic Messages and OpenAI Chat Completions. You no longer have to work out which one your endpoint speaks. The detect action probes them in that order, takes the first that answers in its expected shape, and fills in the protocol picker for you. With no key typed, it falls back to the environment variable. When nothing matches, you get one short message asking you to check the API key and the base URL.
-
-![The detect action at the top right of the base URL field, and the in-field picker listing the three protocols with the path each appends](/blog-assets/penguinharness-0-2-3-model-add-protocol-en.png)
-
-Vision support can be detected the same way. The probe sends a 1×1 image. A normal answer turns the setting on, an explicit image-related rejection turns it off, and anything else leaves your setting alone. The probe costs a real API call, so it runs only when you ask for it, never on save.
-
-Models that can serve fast mode gained a toggle, off by default. Models that cannot do not show the toggle at all, so you cannot turn on a switch that would fail every turn. Turning it on tells you plainly that fast mode bills at premium rates.
-
-## Also in this release
-
-- The hover actions on a sidebar row are back to archive and delete. The full set is in the right-click menu.
-- You can drag attachments and images onto the chat area to upload them. A file attachment can now be 100MB instead of 10MB, and an admin can change that limit from the user menu.
-- Inline images have their own 20MB cap. Their bytes enter the conversation and the Trace, which is re-read whole on every history page. A file attachment is opened by path, so its size never reaches the context.
-- The CLI gained `/thinking` and `--thinking`. Long tool output now collapses to its first and last lines, and `/verbose` shows all of it. The model and the Trace always receive the full text either way.
-- The model catalog was refreshed with Gemini 3.7, GLM-5.3 and the GPT-5.6 family, plus their OpenRouter counterparts. The nine `openai/*` rows are pinned to the Responses protocol. DeepSeek pricing follows the current official rates, and the delisted `ling-3.0-flash` row is gone.
-- A long generation through a gateway such as one-api or OpenRouter no longer reconnects until it gives up. These gateways inject heartbeat events into a streaming response. The events used to kill the stream, the harness retried, and the retry hit the next heartbeat. Every streaming client in AgentHub 0.4.3 and later skips them.
-
-## Install and upgrade
-
-Desktop builds for every platform are on the site. Windows builds are signed as of this release, and macOS builds have been signed and notarized since 0.2.2.
-
-On Linux and macOS, install from the command line:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-On Windows, use PowerShell:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-The full record of what changed is in [changelog/0.2.3/](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.3).
diff --git a/packages/landing/content/blog/penguinharness-0-2-3.zh.md b/packages/landing/content/blog/penguinharness-0-2-3.zh.md
deleted file mode 100644
index e21f8c58..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-3.zh.md
+++ /dev/null
@@ -1,99 +0,0 @@
----
-title: "PenguinHarness 0.2.3:实时的会话状态,可以展开阅读的压缩记录"
-date: 2026-08-19
-category: news
-excerpt: "侧栏的每一行都能实时显示会话状态,上下文压缩变成一条可以展开阅读的记录,任何一条已完成的回复都能分叉出新会话,排队中的消息也可以撤回来改了再发。"
----
-
-PenguinHarness 0.2.3 发布了。这一版让 Agent 的工作过程更容易看清,也磨掉了几处用着别扭的地方。侧栏的会话状态现在是实时的,上下文压缩变成一条可以展开阅读的记录,任何一条已完成的回复都能分叉出新会话,排队中的消息也可以撤回输入框,改完再发。
-
-## 侧栏能看出哪个会话在运行
-
-以前,只有你当前打开的那个会话显示的是真实状态,其余各行显示的都是上次拉取列表时的结果。你离开时还在运行的会话,会一直显示为运行中;在后台启动的会话,那一行则始终不变。
-
-现在每一行的状态都是实时的。转动的沙漏表示正在运行,绿点表示已经结束而你还没看过,什么标记都没有就是你已经看过了。
-
-![侧栏里的三个会话,分别显示未读绿点、无标记和运行中的沙漏](/blog-assets/penguinharness-0-2-3-sidebar-status-zh.png)
-
-第一次运行的情况也顾及到了。会话的第一个 Task 结束后,这一行和其他情况一样停在绿点上,不会变成空白。
-
-## 压缩变成一条可以展开的记录
-
-上下文压缩以前是对话里的一段空白,你能看出它发生过,却不知道它保留了什么。现在它是一行可以展开的记录,默认折叠,和 Task 分组里的思考内容一样。
-
-![对话中的压缩行,默认折叠](/blog-assets/penguinharness-0-2-3-compaction-collapsed-zh.png)
-
-摘要边生成边显示。展开这一行,就能看到 Agent 究竟决定保留哪些内容。
-
-![展开后的压缩摘要,包含任务、已确认的结论、下一步和注意事项](/blog-assets/penguinharness-0-2-3-compaction-expanded-zh.png)
-
-压缩的时机也变了。如果压缩在模型发出工具调用之后触发,现在会等工具执行完,带着工具结果一起压缩,不再把一次没有结束的交互塞进请求。压缩进行到一半时退出客户端,这一轮会标记为失败,写了一半的内容在下次加载时丢弃。如果这一轮是清空上下文而不是生成摘要,它不再叫压缩,而是标为「清空」。
-
-还修复了一个反复有人反馈的问题。以前重启客户端之后,会话里明明有大量历史,压缩却报没有可压缩的内容;现在可以正常压缩。服务端拒绝压缩的三种原因也各自有了错误码,中文界面会显示中文提示,不再是英文。
-
-## 任何一条回复都能分叉出新会话
-
-对话跑偏了,以前只有两个选择:将就着继续,或者从头再来。现在每条已完成的回复都带一个分叉按钮,就在复制按钮旁边。
-
-![已完成回复下方的操作行,分叉按钮在复制按钮旁边](/blog-assets/penguinharness-0-2-3-session-fork-actions-zh.png)
-
-分叉前会先确认。确认后,到这条回复为止的对话会复制成一个新会话,原会话保持不动。
-
-![分叉前弹出的确认框](/blog-assets/penguinharness-0-2-3-session-fork-confirm-zh.png)
-
-## 排队中的消息可以撤回
-
-运行中途发出的插话,以及排队等待的跟进消息,以前一发出去就收不回来。现在它们旁边都有一个回弯箭头。点一下,消息就回到输入框,改完可以重新发送。
-
-一条消息不会既送达、又撤回。如果引擎恰好在你点击的那一刻取走了这条消息,你会看到一条明确的提示,不会出现消息悄悄消失或者重复发送。
-
-## 思考等级
-
-AgentHub 0.4.4 新增了 `max` 一档,梯度现在是低、中、高、极高、最高(low、medium、high、xhigh、max)。中文界面的按钮上只显示中文,下拉菜单里还会附上英文原值。
-
-![思考等级的下拉菜单](/blog-assets/penguinharness-0-2-3-thinking-level-menu-zh.png)
-
-在对话中途切换等级,现在会先弹出确认框。有些供应商实现思考等级的方式,是在请求的最前面放一段不同的提示词前缀。中途一换,整段历史的前缀缓存就会失效,下一次请求要把全部历史按未缓存的价格重新计费。确认框提供三个选择:「压缩后切换」「仍要切换」和「取消」。
-
-![对话中途切换思考等级时的确认框](/blog-assets/penguinharness-0-2-3-thinking-level-switch-guard-zh.png)
-
-选好的等级保存在会话上,刷新页面后仍然有效,在另一个标签页里也能看到。
-
-## 添加自定义模型,不用再猜协议
-
-从 0.4.2 起,AgentHub 就带有三个通用协议客户端:OpenAI Responses、Anthropic Messages 和 OpenAI Chat Completions。你的端点用的是哪一种,现在不用自己判断了。「检测协议」按钮会按这个顺序逐个探测,第一个按预期格式应答的就是结果,并自动填进协议选择器。没有填 key 时,会改用环境变量里的 key;一个都对不上时,会弹出一句简短的提示,请你检查 API key 和 base URL。
-
-![base URL 输入框右上角的检测按钮,以及框内的选择器,列出三种协议和各自追加的路径](/blog-assets/penguinharness-0-2-3-model-add-protocol-zh.png)
-
-视觉能力也能用同样的方式检测。探测会发送一张 1×1 的图片:正常应答就打开视觉设置,明确拒绝图片就关闭,其他情况一律保持你原来的设置。每次探测都是一次真实的 API 调用,所以只在你手动点击时运行,保存模型时不会运行。
-
-支持快速模式的模型多了一个开关,默认关闭。不支持的模型不会显示这个开关,免得你打开一个每一轮都会失败的选项。打开时会明确提示:快速模式按溢价费率计费。
-
-## 这一版还有
-
-- 侧栏会话行的悬停操作改回了归档和删除,完整的操作都在右键菜单里。
-- 附件和图片可以直接拖到聊天区域上传。单个文件附件的上限从 10MB 提高到 100MB,管理员可以在用户菜单里修改这个上限。
-- 内联图片另有 20MB 的上限。内联图片的字节会进入对话和 Trace,而每翻一页历史,都要把 Trace 整个重读一遍。文件附件按路径打开,大小不会影响上下文。
-- CLI 新增了 `/thinking` 和 `--thinking`。较长的工具输出现在只显示开头和结尾几行,用 `/verbose` 可以看到全部。无论是否折叠,模型和 Trace 拿到的始终是完整内容。
-- 模型目录更新了一轮,新增 Gemini 3.7、GLM-5.3 和 GPT-5.6 系列,以及它们在 OpenRouter 上的对应条目。九个 `openai/*` 条目固定使用 Responses 协议。DeepSeek 的价格按当前官方价格更新,已下架的 `ling-3.0-flash` 已移除。
-- 经过 one-api、OpenRouter 这类网关的长时间生成,不会再反复重连直到放弃。这类网关会往流式响应里插入心跳事件,这些事件以前会让整条流中断,Harness 随即重试,重试又撞上下一个心跳。AgentHub 0.4.3 及之后版本的所有流式客户端都会跳过这些事件。
-
-## 安装与升级
-
-各平台的桌面安装包都可以在官网下载。从这一版开始,Windows 安装包带有签名;macOS 安装包从 0.2.2 起就已经签名并通过公证。
-
-Linux 和 macOS 用命令行安装:
-
-```sh
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
-Windows 用 PowerShell 安装:
-
-```powershell
-irm https://penguin.ooo/install.ps1 | iex
-penguin web
-```
-
-完整的改动记录见 [changelog/0.2.3/](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.3)。
diff --git a/packages/landing/content/blog/penguinharness-0-2-4.en.md b/packages/landing/content/blog/penguinharness-0-2-4.en.md
deleted file mode 100644
index 461ba3e9..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-4.en.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-title: "PenguinHarness 0.2.4: a DeepSeek vision model, dockable panels, and a rebuilt cost center"
-date: 2026-08-21
-category: news
-excerpt: DeepSeek gains a vision model and moves to the Responses protocol. The chat page's panels and terminals are now tabs in two docks, long commands run in the background, and the cost center is rebuilt around a single time range.
----
-
-PenguinHarness 0.2.4 is out. It adds a DeepSeek model that reads images, turns the chat page's side panels and terminals into tabs in two docks you arrange, moves long-running commands to the background, and rebuilds the cost center around a single time range. Five changes need a decision from you when you upgrade; they are listed under Upgrading at the end of this post.
-
-## DeepSeek gains a vision model
-
-AgentHub 0.4.6 brings `deepseek-v4-flash-vision-exp` into the catalog. It adds image input on top of V4 Flash's text capabilities, keeps the 1M context window, and bills at V4 Flash's own price.
-
-![The DeepSeek model group, with the Vision badge on deepseek-v4-flash-vision-exp](/blog-assets/penguinharness-0-2-4-deepseek-vision-model-en.png)
-
-It is the only vision-capable model in the DeepSeek group, and that changes how a Session handles an image. A text-only model routes pictures through the `vision_model` proxy, which describes each one with `describe_image` and hands the agent a paragraph of text. A Session running the vision model reads the image itself, with no proxy and no description in between.
-
-The model is also on OpenRouter at that gateway's published rates. Both rows record DeepSeek's off-peak tier, the same convention the existing rows follow. Usage between 9:00–12:00 and 14:00–18:00 Beijing time bills at exactly double, and the cost center applies one rate, so it under-counts peak usage by half.
-
-The same release moves the first-party DeepSeek client from Chat Completions to the OpenAI Responses API, and the base URL hint in the model dialog now shows it.
-
-![The model dialog's base URL field, its protocol hint reading /responses](/blog-assets/penguinharness-0-2-4-model-protocol-hint-en.png)
-
-This is a breaking change if a `deepseek-v4*` entry points at anything other than DeepSeek's own endpoint. See Upgrading at the end of this post for what to do.
-
-Elsewhere in the catalog:
-
-- `claude-opus-5` joined the direct Anthropic group.
-- The add-group dialog can import an endpoint's whole model listing, so you no longer type ids one at a time.
-- A model whose key comes from an environment variable now counts as configured. It no longer hides behind the **Show models without a key** filter, and the credential guide stops flagging it.
-
-## Side panels and terminals are now dock tabs
-
-The chat page's drawer-style side panels and its separate terminal pane system are gone. Every side element is now a closable tab in one of two docks, one on the right and one along the bottom. That covers the subagents panel, the Workspace files panel, Memory, the new Trace panel and any number of terminals.
-
-![The chat page with the right dock showing Agents, Memory and Workspace tabs, and a terminal in the bottom dock](/blog-assets/penguinharness-0-2-4-dock-tabs-en.png)
-
-Any tab can go in either dock. Drag tabs where the task needs them, and the arrangement stays with the conversation.
-
-Terminals are real server-side shells, and they live in the same tab strip as everything else.
-
-![A live terminal in the bottom dock, showing git log output](/blog-assets/penguinharness-0-2-4-dock-terminal-en.png)
-
-## Long commands no longer block the conversation
-
-A command that takes minutes no longer holds up the turn. It goes to the background and the agent carries on. When the command finishes, the harness injects a completion report, so the model learns the outcome without polling for it. The agent has kill tools to stop a background command, and a process that opens a port gets a link straight to it.
-
-![A background process row, with its command, pid, a localhost link and a Stop control](/blog-assets/penguinharness-0-2-4-background-process-en.png)
-
-## A command policy for shell commands
-
-Each Project now has a sandbox command policy: regex rules that refuse a shell command before it runs. The rules are checked at both shell entry points and apply whatever the approval mode would otherwise allow. New and existing Projects start with a small default set that refuses destructive commands such as `rm -rf`, even in allow-all mode. You can edit or disable a rule, or the whole policy, under **Project settings** › **Security policy**.
-
-The policy is a guardrail against accidents, not a security boundary. A command assembled at run time can still slip past a pattern.
-
-## The cost center is built around one time range
-
-The usage page used to be four widgets answering four different questions over four different windows. Every chart on it now draws over one time axis.
-
-![The cost center: range preset, and the Token chart with its cache hit rate line](/blog-assets/penguinharness-0-2-4-usage-range-en.png)
-
-You pick a range: the trailing hour or 24 hours, the last 7, 30 or 90 calendar days, or a custom pair of dates. The range alone decides the precision, which is per minute, hourly, daily, weekly or monthly. There is no second control to keep in step with the first.
-
-Two charts, side by side, replace the share pie and the per-model progress bars. One breaks usage down by agent and the other by model. In each chart, a bucket's requests are a stacked bar against the left axis, and each entity's success rate is a dashed line in the same hue against the percentage axis on the right.
-
-![Requests and success rate, by agent and by model, side by side with legends](/blog-assets/penguinharness-0-2-4-usage-agent-model-en.png)
-
-Both breakdowns are on screen at once. There is no dimension toggle to flip, and neither chart opens on an aggregate total that tells you nothing. The top four entities are named, each with its own colorblind-checked hue, and the rest fold into a neutral series whose label says how many it holds. Hovering a bar segment, a rate line or a legend item singles that entity out and fades the others.
-
-The Token chart keeps its three-segment bars and gains the cache hit rate as a dashed line on its own percentage axis. That line is usually the fastest way to see why a day cost what it did.
-
-## Also in this release
-
-- **Memory** changes now show as a list below the file summary, and Memory has its own side panel beside the others. Memory groups export and import whole. The memory prompt now says when a fact is worth saving: a request repeated, a correction that outlives the Task, a habit stated more than once. When the agent cannot tell, it asks.
-- **Settings** were consolidated into one **System settings** dialog. Explanations moved behind a circled "?" instead of sitting on screen on every visit, and required fields got one consistent marker.
-- **The new-chat screen** gained a rhythm-game example, a conversational investment Copilot and a folder of scheduled-task examples. Clicking an example now fills the composer instead of sending it, so you can read and edit it first. You can also save your own prompts as shortcuts. They are stored per user on the server, so they follow you to another machine.
-- **MCP Servers** take per-server permission settings.
-- **Desktop** installers are built from bundles rather than an assembled dependency tree. Launching from the GUI imports the login shell's environment, terminals ship their native module again, and the client updates from the account menu.
-
-## Upgrading
-
-Five changes in this release need a decision from you, not just an update.
-
-- **DeepSeek on the Responses protocol.** An entry whose id contains `deepseek-v4` and that carries no `client_type` is routed by its id to the DeepSeek client, which now posts to `{base_url}/responses`. Entries aimed at `https://api.deepseek.com` are fine, because DeepSeek serves both protocols. An entry aimed at an endpoint that serves only Chat Completions, such as a self-hosted server, a relay or a third-party DeepSeek-compatible gateway, starts failing after the upgrade. Set `client_type = "openai-chat"` on it, in `.project_config.toml` or with the protocol selector on the models page.
-- **New catalog rows are not automatic.** Presets are copied into `.project_config.toml` when a Project is created, and nothing rewrites them afterwards. Click **Sync presets** on the models page to pick up the new models. It appends missing rows and updates catalog-owned fields, and it never touches your stored default model.
-- **`GET /usage` changed shape.** `trend`, `byAgent` and `success` are gone, replaced by `series`, `byAgentSeries` and `byModelSeries`. The per-status failure breakdown that `success` carried has no replacement.
-- **Saved terminal dock arrangements are not carried over.** The docks start closed once. Running shells are still reachable from any dock's "+" menu.
-- **The `agent-creation` Skill is now `agent-initialization`.** The new name says what it does: it initializes an agent's settings rather than creating an agent. An already-installed copy keeps working but no longer matches a library Skill, so it will not be updated again. Install `agent-initialization`, delete `agent-creation` from the agent's **Skills** tab, and update anything that pins the old name by hand. A stale pin resolves to nothing instead of failing loudly.
-
-Full detail for every change is in [`changelog/0.2.4/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.4).
diff --git a/packages/landing/content/blog/penguinharness-0-2-4.zh.md b/packages/landing/content/blog/penguinharness-0-2-4.zh.md
deleted file mode 100644
index 36c54cdd..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-4.zh.md
+++ /dev/null
@@ -1,90 +0,0 @@
----
-title: "PenguinHarness 0.2.4:DeepSeek 视觉模型、可自由停靠的面板,以及重建的成本中心"
-date: 2026-08-21
-category: news
-excerpt: "DeepSeek 新增视觉模型,并改用 Responses 协议。对话页的面板和终端变成右侧栏和下侧栏里的标签页,耗时命令转入后台运行,成本中心围绕同一个时间范围重建。"
----
-
-PenguinHarness 0.2.4 发布了。这一版加入了一个能读图的 DeepSeek 模型,把对话页的侧边面板和终端变成右侧栏和下侧栏里的标签页,由你自行摆放;耗时的命令转入后台运行,成本中心也围绕同一个时间范围重建。升级时有五处改动需要你做判断,列在文末的「升级须知」里。
-
-## DeepSeek 新增视觉模型
-
-AgentHub 0.4.6 把 `deepseek-v4-flash-vision-exp` 带进了模型目录。它在 V4 Flash 文本能力的基础上增加了图片输入,保留 1M 上下文窗口,价格与 V4 Flash 相同。
-
-![DeepSeek 模型分组,视觉模型上带有「视觉」标记](/blog-assets/penguinharness-0-2-4-deepseek-vision-model-zh.png)
-
-它是 DeepSeek 分组里唯一支持视觉的模型,这会改变会话处理图片的方式。纯文本模型要把图片交给 `vision_model` 代理,由代理用 `describe_image` 逐张描述,再把一段文字交给 Agent。使用视觉模型的会话则直接读图,中间既没有代理,也没有转述这一步。
-
-这个模型同时上架了 OpenRouter,按该网关公布的价格计费。两条记录都采用 DeepSeek 的非高峰档价格,与已有记录的口径一致。北京时间 9:00–12:00 和 14:00–18:00 的用量价格正好翻倍,而成本中心只按一个费率计算,所以高峰时段的用量会少算一半。
-
-同一版本还把第一方 DeepSeek 客户端从 Chat Completions 切换到了 OpenAI Responses API,模型弹窗里 base URL 的协议提示也随之改变。
-
-![模型弹窗的 base URL 输入框,协议提示显示 /responses](/blog-assets/penguinharness-0-2-4-model-protocol-hint-zh.png)
-
-如果你的 `deepseek-v4*` 条目指向的不是 DeepSeek 官方端点,这就是一处破坏性变更,处理方法见文末的「升级须知」。
-
-模型目录的其他变化:
-
-- `claude-opus-5` 加入 Anthropic 直连分组。
-- 新增分组的弹窗可以一次导入某个端点的完整模型列表,不必再逐个输入 id。
-- 密钥来自环境变量的模型,现在也算作已配置。它不会再被**显示未配置 key 的模型**这个过滤器藏起来,凭据引导也不再提示它。
-
-## 侧边面板和终端都变成了标签页
-
-对话页原来的抽屉式侧边面板,以及那套独立的终端窗格,都已经移除。现在每个侧边元素都是一个可以关闭的标签页,放在右侧栏或下侧栏里。子 Agent 面板、Workspace 文件面板、记忆、新增的 Trace 面板,以及任意多个终端,都是这样的标签页。
-
-![对话页:右侧栏里有智能体面板、记忆和工作区标签页,下侧栏里是一个终端](/blog-assets/penguinharness-0-2-4-dock-tabs-zh.png)
-
-标签页放在右侧栏还是下侧栏都可以。按任务的需要把标签页拖过去,这套布局会跟着会话保存下来。
-
-终端是真正在服务端运行的 shell,和其他标签页共用同一条标签栏。
-
-![下侧栏里的实时终端,显示 git log 输出](/blog-assets/penguinharness-0-2-4-dock-terminal-zh.png)
-
-## 耗时命令不再卡住对话
-
-要跑好几分钟的命令,不会再占住当前这一轮。它转入后台运行,Agent 继续往下做。命令结束时,Harness 会注入一份完成报告,模型不用轮询就能知道结果。Agent 可以用终止工具停掉后台命令;开了端口的进程还会附上一个直达链接。
-
-![后台进程行:命令、pid、localhost 链接和停止按钮](/blog-assets/penguinharness-0-2-4-background-process-zh.png)
-
-## Shell 命令策略
-
-每个 Project 现在都有一套沙箱命令策略:用正则规则在 shell 命令执行前把它拦下。两个 shell 入口都会检查这些规则,而且不管审批模式原本是否放行,命中规则的命令一律拒绝。新建的和已有的 Project 都自带一小套默认规则,会拒绝 `rm -rf` 这类破坏性命令,全部放行模式下也不例外。你可以在 **Project 设置** › **安全策略**里编辑或停用某条规则,也可以关掉整套策略。
-
-这套策略是防止误操作的护栏,不是安全边界。运行时才拼出来的命令,仍然可能绕过规则。
-
-## 成本中心围绕同一个时间范围重建
-
-用量页原先是四个小部件,在四个不同的时间窗里回答四个不同的问题。现在页面上的每张图都画在同一条时间轴上。
-
-![成本中心:时间范围预设,以及带缓存命中率曲线的 Token 图](/blog-assets/penguinharness-0-2-4-usage-range-zh.png)
-
-先选一个时间范围:最近 1 小时或 24 小时、最近 7 天、30 天或 90 天(按自然日计),或者一对自定义日期。精度完全由范围决定,分为按分钟、按小时、按天、按周和按月。不存在第二个需要和它保持同步的控件。
-
-占比饼图和按模型的进度条,换成了两张并排的图:一张按 Agent 拆分,一张按模型拆分。每张图里,每个时间桶的请求数画成一根堆叠柱,对应左侧坐标轴;每个实体的成功率画成一条同色虚线,对应右侧的百分比轴。
-
-![按 Agent 与按模型拆分的请求数和成功率,两张图并排,各带图例](/blog-assets/penguinharness-0-2-4-usage-agent-model-zh.png)
-
-两种拆分同时显示在屏幕上,不需要来回切换维度,两张图也都不会一打开就给你一个说明不了问题的汇总数。用量前四的实体会单独列出名字,各用一种经过色盲友好校验的颜色;其余实体合并成一条中性色的序列,标签上写明合并了几个。鼠标悬停在某个柱段、某条成功率曲线或某个图例项上,这个实体就会突出显示,其余的变淡。
-
-Token 图保留三段式柱状图,并新增一条缓存命中率虚线,画在它自己的百分比轴上。想弄清某一天为什么花了那么多钱,通常看这条线最快。
-
-## 这一版还有
-
-- **记忆**的变更现在列在文件摘要下方,记忆也有了自己的侧边面板,和其他面板并列。记忆分组可以整组导出、导入。记忆提示词现在写明了哪些信息值得记下来:重复提出的请求、在 Task 结束后仍然成立的纠正、不止一次提到的习惯。拿不准时,Agent 会直接问你。
-- **设置**合并成了一个**系统设置**弹窗。说明文字收进了带圈的「?」里,不再每次打开都占着屏幕;必填字段也统一了标记方式。
-- **新对话页**新增了节奏游戏示例、对话式投资 Copilot,以及一个定时任务示例分类。现在点击示例只会把内容填进输入框,不会直接发送,你可以先看、先改。你还可以把自己常用的提示词存成快捷指令。快捷指令按用户保存在服务端,换一台机器也还在。
-- **MCP Server** 支持按服务器单独设置权限。
-- **桌面应用**的安装包改为基于 bundle 构建,不再组装依赖树。从图形界面启动时会导入登录 shell 的环境变量,终端所需的原生模块重新随安装包提供,客户端也可以从账号菜单里更新。
-
-## 升级须知
-
-这一版有五处改动需要你做判断,不是升级完就没事了。
-
-- **DeepSeek 改用 Responses 协议。** id 中含有 `deepseek-v4`、且没有设置 `client_type` 的条目,会按 id 路由到 DeepSeek 客户端,而这个客户端现在请求的是 `{base_url}/responses`。指向 `https://api.deepseek.com` 的条目不受影响,因为 DeepSeek 两种协议都支持。如果条目指向只支持 Chat Completions 的端点,比如自建服务、中转服务或第三方 DeepSeek 兼容网关,升级后就会开始报错。给它设置 `client_type = "openai-chat"` 即可,可以写在 `.project_config.toml` 里,也可以用模型页的协议选择器。
-- **模型目录的新条目不会自动出现。** 预置模型只在创建 Project 时复制进 `.project_config.toml`,之后不会再被改写。要用上新模型,请在模型页点击**同步预置**。它会补入缺少的条目,更新由模型目录管理的字段,并且不会改动你保存的默认模型。
-- **`GET /usage` 的返回结构变了。** `trend`、`byAgent` 和 `success` 已移除,改为 `series`、`byAgentSeries` 和 `byModelSeries`。原先 `success` 里按状态拆分的失败统计,没有替代项。
-- **已保存的终端侧栏布局不会保留。** 升级后侧栏会先以关闭状态启动一次。正在运行的 shell 仍然可以从任一侧栏的「+」菜单里找回。
-- **`agent-creation` Skill 更名为 `agent-initialization`。** 新名字说的是它实际做的事:初始化一个 Agent 的设置,而不是创建 Agent。已经安装的旧副本仍然可以用,但它不再对应技能库里的任何 Skill,所以不会再收到更新。请安装 `agent-initialization`,在该 Agent 的**技能**标签页里删除 `agent-creation`,并手动修改所有写死了旧名字的地方:旧名字不会报错,只会什么都匹配不到。
-
-每一项改动的完整细节见 [`changelog/0.2.4/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.4)。
diff --git a/packages/landing/content/blog/penguinharness-0-2-6.en.md b/packages/landing/content/blog/penguinharness-0-2-6.en.md
deleted file mode 100644
index 0c42e6df..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-6.en.md
+++ /dev/null
@@ -1,129 +0,0 @@
----
-title: "PenguinHarness 0.2.6: two Flash models, a TokenDance gateway, and subagents you can steer"
-date: 2026-08-27
-category: news
-excerpt: "GLM-5.3 Flash and Qwen 3.8 Flash joined the built-in catalog, and a new TokenDance gateway group can obtain its API key for you. Subagents can be steered mid-run, the `penguin` CLI works through the server, and a Session can be answered from Feishu or Telegram."
----
-
-PenguinHarness 0.2.6 is out. The model catalog gains two low-cost Flash models and a TokenDance gateway group whose **Authorize key** action mints a key for you. An agent's reach also grows in three directions: you and the model can steer a subagent mid-run, the `penguin` CLI works through the server so an agent can drive the harness it runs in, and a Session can be answered from Feishu or Telegram. Five changes need a decision from you when you upgrade; they are listed under Upgrading at the end of this post.
-
-## Two Flash models in the catalog
-
-The built-in catalog now includes `glm-5.3-flash` and `qwen3.8-flash`. Both have a million-token context window, both read images, and both cost roughly an order of magnitude less than their non-Flash siblings.
-
-GLM-5.3 Flash appears three times, once for each route that sells it: Z.AI directly, OpenRouter, and the new TokenDance group. Each row carries that route's own prices.
-
-![GLM-5.3 Flash listed under OpenRouter, TokenDance and Z.AI (GLM), each with a Vision badge and its own three prices](/blog-assets/penguinharness-0-2-5-glm-flash-rows-en.png)
-
-The three prices differ for two reasons, and one of them is a convention worth knowing. TokenDance simply charges its own rate. Z.AI, however, is running a 50% promotion on this model through 2026-09-09, and the Z.AI row and the OpenRouter row treat it differently on purpose:
-
-- A direct-vendor row records the vendor's list price, so the Z.AI row reads $0.03 / $0.15 / $0.50 per million tokens.
-- The OpenRouter row records what OpenRouter actually bills, so it reads half that.
-
-Until the promotion ends, the direct row overstates what Z.AI charges you by a factor of two.
-
-The Vision badge on the direct row is newer than it looks. AgentHub 0.4.8 taught the GLM client to forward `image_url` parts, in a prompt and in a tool result alike, and it does so for `glm-5.3-flash` only. Every other GLM model answers an image with `"GLM <id> does not support image inputs."` instead of quietly dropping it, which is why the rest of that group is still marked as having no vision.
-
-Qwen 3.8 Flash sits in the Qwen Pay-As-You-Go group, with a million-token input window, a 131K output cap and image input.
-
-![Qwen 3.8 Flash and Qwen 3.8 Max side by side in the Qwen Pay-As-You-Go group](/blog-assets/penguinharness-0-2-5-qwen-flash-row-en.png)
-
-## A TokenDance gateway, with a key you do not have to copy
-
-TokenDance is now a provider group of its own, with seven presets that reach `https://tokendance.space/gateway/v1` over Chat Completions.
-
-![The TokenDance group: seven presets under a header carrying Add model, Authorize key, Set key, Speed test and Manage keys](/blog-assets/penguinharness-0-2-5-tokendance-group-en.png)
-
-**Authorize key** saves you the usual first-run errand. It opens TokenDance's own authorization page, mints a key on your account there, and writes it into every model in the group, so you no longer start with a trip to a console and a copy-paste. Where a redirect cannot reach you, such as in the desktop app or an unusual deployment, a manual mode shows a one-time code to paste instead.
-
-The key exchange stays on the server. The PKCE verifier is generated there and never sent to a browser, and the minted key goes straight into the group's models without passing through one either. The key appears in no response, log line, URL or error message.
-
-Unlike OpenRouter, this group records official list prices, the same convention the two Qwen groups follow. Two of its rows are on live promotions: `glm-5.3-flash` at 50% off and `qwen3.8-max` at 20% off. For those two models, the catalog currently shows a higher price than TokenDance bills. Both promotions are tagged in TokenDance's public catalog API, which needs no credential, so you can check whether a promotion is still running instead of guessing.
-
-Model requests now also identify PenguinHarness to gateways that read an app-attribution header: `HTTP-Referer` and `X-OpenRouter-Title` for OpenRouter, and `X-App-URL` for TokenDance. The header is chosen by the endpoint's host, not by the provider group, so a model in the Custom group that points at one of those gateways is attributed the same way.
-
-None of this reaches an existing Project on its own. Presets are copied into `.project_config.toml` when a Project is created, and nothing rewrites them afterwards. **Sync presets** on the models page is the only way in. It appends what is missing and updates catalog-owned fields on what is already there. It deletes nothing, and it does not touch your stored default model or any credential.
-
-## Subagents you can talk to
-
-A subagent used to be something you launched and then watched. `input_subagent` refused a prompt while the child was still running, the panel offered no way to correct or stop a child, and stopping the main agent left its children running. All of that is gone. In its place is one mechanism, available to both the model and you: the steering channel you already had into the main Session, now pointed at the child Session.
-
-![The subagents panel: the call graph above, the child conversation below with a steering message and the child's follow-up reply, and the child's own composer at the bottom](/blog-assets/penguinharness-0-2-5-subagent-steering-en.png)
-
-For the model, `input_subagent` changed in four ways:
-
-- A prompt sent to a running child is injected as a steering message at the child's next step.
-- A new `abort` argument stops only the child's current run, and the Session stays available for follow-ups. Combining `abort` with a prompt interrupts and redirects the child in one call.
-- The output is now the child's most recent complete reply. Repeated calls return that same reply until the child completes a newer one, instead of only what is new since the last call.
-- A released `subagent_id` comes back to life automatically when the model messages it again.
-
-For you, the selected child is driven by the same composer as the main conversation. It offers text, Skills and slash commands, a per-turn thinking level, the context ring showing the child's own usage, and the approval-mode selector. Whatever state the child is in, your message is user input to it: steering while it runs, a new round while it is idle, and a revival when its Session has already ended. An ended subagent is no longer a dead end.
-
-The last gap was approvals. A background child that hit a tool approval used to be denied automatically, for two reasons: the parent Task's end closed every pending approval, and a child running in the background, with no parent call waiting on it, had nowhere to ask. Now a child's approval with nowhere else to go comes to you as an ordinary approval card. When the parent Task ends, only the main Session's pending approvals are closed, so the child's card stays on screen until you decide.
-
-This comes with a real trade-off. A subagent Session is now always resumable and never destroyed, so killing a subagent no longer exists as a concept. `kill_subagent` is removed, and `kill_command` is folded into `input_command` as `kill: true`. Neither removed name is kept for compatibility: a model that calls one gets an unknown-tool failure. See Upgrading below.
-
-## An agent that can drive the harness
-
-`penguin run` and `penguin chat` used to execute a Task in-process against core, with no server involved and nothing the Web App could see. They are now HTTP/SSE clients: the CLI parses arguments and renders the stream, and the server runs the Task. A conversation started from a terminal shows up in the sidebar, and one started in the browser can be picked up from a terminal.
-
-Everything else in this section builds on that. Beside `run` and `chat` there is now a family of commands for inspecting and operating an install: `ls`, `input`, `logs`, `agent`, `project`, `cost` and `schedule`. Every command an agent runs gets what it needs to use them. `PENGUIN_API_URL`, `PENGUIN_API_TOKEN`, `PENGUIN_PROJECT_ID`, `PENGUIN_AGENT_ID` and `PENGUIN_SESSION_ID` are set in every tool subprocess. Inside a Session, a bare `penguin agent ls` reaches the very server running that Session, with that Project and that agent already the defaults. There is no login step anywhere on that path.
-
-![An agent inside its own conversation running penguin agent create and penguin run --background, then penguin ls showing the session it just started](/blog-assets/penguinharness-0-2-5-orchestration-en.png)
-
-`penguin input` is subagent steering one level out:
-
-- Sent to a running Session, the message is taken in as a course correction at the next step, exactly like a steering message to a subagent.
-- Sent to an idle Session, it starts a new turn.
-- Without `-m`, it polls instead and prints the Session's most recent complete assistant reply. That is the same snapshot `input_subagent` returns for an empty prompt.
-- `--timeout` bounds any wait. When it expires, the command yields softly: it exits with code 0 and prints a line naming the follow-up command, while the Task keeps running on the server.
-
-A Session started from inside an agent inherits the settings of the Session it was started from. For each field you leave unspecified, `run` takes the calling Session's current value: Workspace, the model pair, approval mode and thinking level. This is the same inheritance `run_subagent` applies to children. From inside an agent, `penguin run -m "…"` on its own usually does the right thing, and flags are only for changing something.
-
-Authorization is deliberately simple. At every start, the server mints an API token into `<data-root>/api-token` with mode 0600, and a CLI on the same machine reads it. That token is admin-equivalent, because filesystem access to the data root already amounts to admin authority. A remote `--server` gets no such shortcut: without an explicit `PENGUIN_API_TOKEN`, it is refused.
-
-The recipes ship as a Skill. `penguin-orchestration` joined the library's AI App Development group as part of the preinstalled set, so a new `default_agent` gets it along with the rest of the library, and any other agent can install it from the library. It sets out the conventions: look around with the read-only listings before changing anything, and hand bulk material to a new Session through a Workspace file rather than through `-m`. It also spells out the cautions, which are the real limits:
-
-- A Session runs one active Task at a time, so a message to a busy Session steers it instead of queueing a second Task.
-- A spawned Session inherits your approval mode, so an unattended `always-ask` run just hangs, waiting for a person who is not watching.
-- An agent that can message agents can build a loop that never ends.
-- Everything it starts bills the same Project.
-
-## A Session you can reach from Feishu or Telegram
-
-You no longer have to read a conversation in a browser tab. A Session can be bound to a self-built Feishu app or a Telegram bot. Messages sent to the bot land in that Session as ordinary user input, and the assistant's replies come back into the chat.
-
-![The Messaging panel on Telegram: the channel selector, then the enable switch with its live status and the two probes, and only below them the Bot Token field with its stored-secret mask and clear checkbox](/blog-assets/penguinharness-0-2-5-messaging-en.png)
-
-A Session keeps a saved configuration for each channel. Feishu takes an **App ID**, an **App Secret** and an **API domain**, and Telegram takes a single **Bot Token**. At most one channel is enabled at a time, and the enabled one holds the live connection. Turning on the second is blocked, with the reason on screen, and the server refuses it too.
-
-Neither channel needs a public URL. Feishu delivers inbound events over the SDK's WebSocket long connection. Telegram pushes nothing without a public webhook, so the connector pulls updates with an offset-based `getUpdates` long poll instead. A laptop behind NAT is enough: no tunnel, no webhook endpoint. When the Telegram connector connects, it skips whatever piled up while nothing was listening, rather than replaying that stretch as a flood of Tasks. Feishu behaves the same way, so missed events are simply gone.
-
-Replies arrive as they finish, not in one block at the end. Each assistant message is relayed the moment it completes, so a run that writes working notes between tool calls reaches the chat as the same sequence of messages. Messages from one Session arrive in the order they completed, split to fit each channel's text limit; Telegram's 4096-character cap is the tightest. In a group chat, a run's first message replies to the message that triggered it, and everything after that, including the rest of a split message, is sent plainly, so a long answer does not bury the thread in quote blocks.
-
-Credentials work the way they do on the models page. The field always starts empty, a stored secret shows only as a mask, and a **Clear stored App Secret** or **Clear stored Bot Token** checkbox removes it when you save. Clearing is refused while that channel's connection is enabled, so a live connection never outlasts its stored credential. Saving and enabling are separate: **Save** writes credentials, and the switch connects or disconnects with what is stored. The form puts the connection controls, meaning the switch, its live status and the two probes, above the credential fields on purpose: the two channels have different numbers of fields, so controls placed below the fields would sit at a different height in each channel and jump every time you switch channels.
-
-The same form opens from two places: the Session row's menu, and the **Messaging** panel in the conversation's dock, beside the Trace panel. In later versions this panel is called **Remote control**. A Session with a live connection shows a small paper plane on its sidebar row. The mark is the same for every channel, and the tooltip and screen-reader text name the channel.
-
-The model sees nothing special. Inbound text starts a Task as plain composer input, with no marker and no special sender, so the model never learns the message came from a chat app. A pending tool approval sends a one-line notice pointing to the Web App, because a chat message cannot approve anything.
-
-## Also in this release
-
-- **The context ring is now a button.** Clicking it breaks the current context into six parts: system prompt, tool definitions, user messages, model messages, tool requests and tool results. They appear as one bar across the whole context window, with a dashed mark where compaction will fire and a ranking of the five tools that take up the most of it.
-- **A red dot leads to the update.** When a software release or an agent kernel update is available, the interface shows a phone-style red dot. Every dot leads along an unbroken path to the control that performs the update, rather than stopping at a notice.
-- **Groups stay in the order you set.** You can drag both the chat sidebar's conversation groups and the models page's provider groups into a manual order, stored per Project. The chat model picker follows the models page's order.
-- **The sidebar counts by group.** Each group loads its own pages, so its reveal row shows that group's own hidden count, and **Show less** folds it back. The group list itself pages ten groups at a time.
-- **The standalone Trace page is gone.** You read a Trace in its conversation's Trace panel. Trace import moved into **System settings** and now asks for a Project and an agent, so an imported Trace becomes a listed conversation instead of hiding behind a filter.
-- **Agents are easier to start.** The create dialog installs library Skills and the Skills a chosen project directory already carries. It can also initialize an agent straight from an exported snapshot package, instead of making you create an empty agent and import into it.
-
-## Upgrading
-
-Five changes in this release need a decision from you, not just an update.
-
-- **`kill_subagent` and `kill_command` are gone.** To stop a subagent run, use `input_subagent` with `abort`. To terminate a command, use `input_command` with `kill: true`. Nothing translates the old names: an agent whose stored tool configuration names them simply stops loading those entries, and a model that calls one gets the standard unknown-tool failure. Update anything that pins either name by hand.
-- **Editing one field of a settings tab freezes that whole tab.** Kernel updates now apply to a settings tab as a unit rather than to single config values. A tab you have customized is never overwritten. The cost is that an agent with one customized built-in tool stops receiving new built-in tools entirely. **Restore default configuration** on that tab puts it back under kernel updates.
-- **An agent's commands no longer inherit the server's `PENGUIN_*` environment.** A command an agent runs no longer receives any of the server's own `PENGUIN_*` variables, nor `PORT` or `HOST`. Of the `PENGUIN_*` family, the harness sets only the five control variables described earlier. A harness that an agent starts therefore uses the default data root rather than that of the install serving it. Outbound proxy variables are the deliberate exception. If a command needs one of these variables, set it in that agent's vault, which is applied after the host environment is stripped.
-- **The CLI no longer runs a Task without a server.** `penguin run` and `penguin chat` go through the server API. Where no server is running, they start one locally. Fully offline execution directly against core is no longer a CLI mode; the SDK keeps that capability for embedders. The same rework retired the per-user "show CLI sessions" filter, so every Session is always listed, and Sessions left behind by an older CLI now appear in the sidebar. Nothing on disk needs migrating, and old binaries keep working against their own cores until you update them.
-- **New catalog rows are not automatic.** Presets are copied into `.project_config.toml` when a Project is created, and nothing rewrites them. Use **Sync presets** on the models page to pick up GLM-5.3 Flash, Qwen 3.8 Flash and the TokenDance group. A Project older than that group has to sync once before the group, and its **Authorize key** action, appear at all.
-
-Full detail for every change is in [`changelog/0.2.6/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.6).
diff --git a/packages/landing/content/blog/penguinharness-0-2-6.zh.md b/packages/landing/content/blog/penguinharness-0-2-6.zh.md
deleted file mode 100644
index bfc7e4d5..00000000
--- a/packages/landing/content/blog/penguinharness-0-2-6.zh.md
+++ /dev/null
@@ -1,129 +0,0 @@
----
-title: "PenguinHarness 0.2.6:两款 Flash 模型、TokenDance 网关,以及你能中途插话的子 Agent"
-date: 2026-08-27
-category: news
-excerpt: "GLM-5.3 Flash 和 Qwen 3.8 Flash 加入内置模型目录,新增的 TokenDance 网关分组支持自动获取密钥。现在可以向运行中的子 Agent 插话,`penguin` CLI 改为经由服务端运行,你还能在飞书或 Telegram 里直接和会话对话。"
----
-
-PenguinHarness 0.2.6 发布了。模型目录新增两款低价的 Flash 模型,以及一个支持自动获取密钥的 TokenDance 网关分组。Agent 能触及的范围也向三个方向扩展:你和模型都可以在子 Agent 运行中途向它插话;`penguin` CLI 改为经由服务端运行,Agent 因此可以操作运行着它自己的 Harness;你还可以在飞书或 Telegram 里直接和会话对话。升级时有五处改动需要你做判断,都列在文末的「升级须知」里。
-
-## 模型目录新增两款 Flash 模型
-
-内置模型目录新增了 `glm-5.3-flash` 和 `qwen3.8-flash`。两者都有百万 Token 的上下文窗口,都能读图,价格也都比各自的非 Flash 版本低一个数量级左右。
-
-GLM-5.3 Flash 在目录里出现了三次,因为有三条渠道在卖它:Z.AI 直连、OpenRouter,以及新增的 TokenDance 分组。每条记录列的都是这条渠道自己的价格。
-
-![OpenRouter、TokenDance 与 Z.AI (GLM) 下各有一条 GLM-5.3 Flash,都带视觉标记,价格各不相同](/blog-assets/penguinharness-0-2-5-glm-flash-rows-zh.png)
-
-三个价格不一致有两个原因,其中一个是值得了解的记录口径。TokenDance 只是按自己的费率收费。Z.AI 则正在对这款模型做五折促销,有效期到 2026-09-09,而 Z.AI 和 OpenRouter 的两条记录有意采用了不同的处理方式:
-
-- 直连厂商的记录写厂商的官方标价,所以 Z.AI 那条是每百万 Token $0.03 / $0.15 / $0.50。
-- OpenRouter 的记录写 OpenRouter 实际收取的价格,所以是它的一半。
-
-促销结束之前,直连那条记录把 Z.AI 的实际收费高估了一倍。
-
-直连那条上的视觉标记,其实是最近才加上的。AgentHub 0.4.8 让 GLM 客户端开始转发 `image_url` 部件,提示词和工具结果里的都会转发,但只对 `glm-5.3-flash` 生效。其他 GLM 模型收到图片时,会直接报 `"GLM <id> does not support image inputs."`,而不是悄悄丢掉图片,所以这个分组的其余模型仍然标为不支持视觉。
-
-Qwen 3.8 Flash 位于 Qwen Pay-As-You-Go 分组,输入窗口百万 Token,输出上限 131K,同样支持图片输入。
-
-![Qwen Pay-As-You-Go 分组里并排的 Qwen 3.8 Flash 与 Qwen 3.8 Max](/blog-assets/penguinharness-0-2-5-qwen-flash-row-zh.png)
-
-## TokenDance 网关,以及不用手动复制的密钥
-
-TokenDance 现在是一个独立的供应商分组,带七个预置模型,通过 Chat Completions 协议访问 `https://tokendance.space/gateway/v1`。
-
-![TokenDance 分组:七个预置模型,分组头部有添加模型、自动获取密钥、手动设置密钥、测速与前往密钥管理](/blog-assets/penguinharness-0-2-5-tokendance-group-zh.png)
-
-**自动获取密钥**省掉了第一次使用时的例行步骤。它会打开 TokenDance 自己的授权页,在你的账号下签发一个密钥,并写进分组里的每一个模型,你不必先去控制台复制粘贴。如果授权后的回调到不了你这里,比如在桌面应用里或某些特殊的部署环境中,可以改用手动模式:页面会显示一个一次性验证码,把它粘贴回来即可。
-
-整个密钥交换都在服务端完成。PKCE 校验串在服务端生成,从不发给浏览器;签发的密钥直接写进分组里的模型,同样不经过浏览器。任何响应、日志、URL 或错误信息里都不会出现这个密钥。
-
-和 OpenRouter 不同,这个分组记录的是官方标价,与两个 Qwen 分组口径相同。其中两个模型正在促销:`glm-5.3-flash` 打五折,`qwen3.8-max` 打八折。所以对这两个模型,目录里的价格目前高于 TokenDance 的实际收费。两个促销在 TokenDance 的公开模型目录 API 里都有标记,这个 API 不需要凭据,促销还在不在,可以直接查到,不用猜。
-
-模型请求现在还会向会读取应用归属请求头的网关表明自己来自 PenguinHarness:OpenRouter 用 `HTTP-Referer` 和 `X-OpenRouter-Title`,TokenDance 用 `X-App-URL`。用哪个请求头由端点的主机名决定,与供应商分组无关,所以放在 Custom 分组里、却指向这两个网关的模型,也会带上同样的归属信息。
-
-以上这些都不会自动出现在已有的 Project 里。预置模型只在创建 Project 时复制进 `.project_config.toml`,之后不会再改写。模型页的**同步预置**是唯一的入口。它会补上缺少的条目,更新已有条目中由模型目录管理的字段;它不删除任何东西,也不会改动你保存的默认模型和任何凭据。
-
-## 可以对话的子 Agent
-
-以前,子 Agent 启动之后你就只能看着。子 Agent 还在运行时,`input_subagent` 会拒绝新的提示词;面板上既不能纠正它,也不能停止它;停掉主 Agent,它的子 Agent 还会继续运行。这些现在都改了。取而代之的是一套模型和你都能用的机制:你原本用来向主会话插话的通道,现在也能指向子会话。
-
-![子 Agent 面板:上方是调用关系图,下方是子会话的对话,包括一条插话消息和子 Agent 随后的回复,底部是子会话自己的输入框](/blog-assets/penguinharness-0-2-5-subagent-steering-zh.png)
-
-对模型来说,`input_subagent` 有四处变化:
-
-- 发给运行中子 Agent 的提示词,会在它的下一步作为插话消息注入。
-- 新增的 `abort` 参数只停止子 Agent 当前这一轮运行,会话本身保留,之后还能继续对话。`abort` 和提示词一起给出,一次调用就能打断子 Agent 并给它新的方向。
-- 返回值改为子 Agent 最近一条完整的回复。在子 Agent 完成新的回复之前,重复调用返回的都是这同一条,而不是上次调用之后新增的内容。
-- 已释放的 `subagent_id`,在模型再次给它发消息时会自动恢复。
-
-对你来说,选中的子 Agent 由和主对话相同的输入框驱动。文字、Skill 和斜杠命令、按轮设置的思考等级、显示子 Agent 自身用量的上下文环,以及审批模式选择器,一样不少。不管子 Agent 处于什么状态,你发的消息都是给它的用户输入:运行中是插话,空闲时是新的一轮,会话已经结束时则会让它恢复。已经结束的子 Agent 不再是死路。
-
-最后一处缺口是审批。后台子 Agent 碰到工具审批时,以前会被自动拒绝,原因有两个:父 Task 一结束,所有待处理的审批都会随之关闭;而在后台运行、没有父调用在等它的子 Agent,也没有地方发问。现在,子 Agent 没有别处可以处理的审批,会以普通审批卡片的形式交给你。父 Task 结束时,只会关闭主会话里待处理的审批,子 Agent 的卡片会一直留在界面上,等你决定。
-
-这带来一个实实在在的取舍。子 Agent 的会话现在始终可以恢复、从不销毁,所以「终止子 Agent」这个概念不复存在。`kill_subagent` 已移除,`kill_command` 并入 `input_command`,改为 `kill: true`。两个移除的名字都没有保留兼容:模型调用其中任何一个,都会得到「未知工具」错误。详见下文的「升级须知」。
-
-## 能操作 Harness 的 Agent
-
-以前,`penguin run` 和 `penguin chat` 在进程内直接调用 core 执行 Task,不经过服务端,Web App 也看不到。现在它们是 HTTP/SSE 客户端:CLI 负责解析参数和渲染流式输出,Task 由服务端执行。从终端发起的对话会出现在侧栏里,浏览器里发起的对话也能在终端里接着聊。
-
-这一节后面的内容都建立在这个基础上。除了 `run` 和 `chat`,现在还有一组用来查看和操作 PenguinHarness 实例的命令:`ls`、`input`、`logs`、`agent`、`project`、`cost` 和 `schedule`。Agent 运行的每一条命令,都能拿到使用这些命令所需的信息:每个工具子进程里都设置了 `PENGUIN_API_URL`、`PENGUIN_API_TOKEN`、`PENGUIN_PROJECT_ID`、`PENGUIN_AGENT_ID` 和 `PENGUIN_SESSION_ID`。在会话内部,一条不带参数的 `penguin agent ls` 访问的正是运行这个会话的服务端,而且已经以当前 Project 和当前 Agent 为默认值。这条路径上没有任何登录步骤。
-
-![Agent 在自己的对话里运行 penguin agent create 和 penguin run --background,随后用 penguin ls 看到刚刚启动的会话](/blog-assets/penguinharness-0-2-5-orchestration-zh.png)
-
-`penguin input` 相当于把给子 Agent 插话的做法往外挪了一层:
-
-- 发给运行中的会话,消息会在下一步当作纠偏来处理,和发给子 Agent 的插话消息完全一样。
-- 发给空闲的会话,会开始新的一轮。
-- 不带 `-m` 时,它改为轮询,打印这个会话最近一条完整的助手回复。这和 `input_subagent` 收到空提示词时返回的快照相同。
-- `--timeout` 为任何等待设定上限。到时间后命令会平稳退出:退出码为 0,打印一行提示写明后续可以运行的命令,Task 则继续在服务端运行。
-
-在 Agent 内部启动的会话,会继承发起调用的那个会话的设置。你没有指定的字段,`run` 都会取那个会话的当前值:Workspace、模型对、审批模式和思考等级。这和 `run_subagent` 对子 Agent 的继承规则相同。所以在 Agent 内部,单独一句 `penguin run -m "…"` 通常就是对的,参数只在需要改动某一项时才加。
-
-授权的设计有意保持简单。服务端每次启动都会签发一个 API Token,写入 `<data-root>/api-token`,权限为 0600,同一台机器上的 CLI 直接读取它。这个 Token 等同管理员权限,理由是能访问数据根目录的文件系统权限,本来就相当于管理员权限。远程的 `--server` 没有这种便利:没有显式提供 `PENGUIN_API_TOKEN` 时,CLI 会直接拒绝连接。
-
-这些用法以 Skill 的形式提供。`penguin-orchestration` 加入了技能库的「AI 应用开发」分组,属于预装的那一批,所以新建的 `default_agent` 会和技能库里的其他 Skill 一起装上它,其他 Agent 也可以从技能库里安装。它写明了惯例:改动任何东西之前,先用只读的列表命令了解现状;大段材料通过 Workspace 文件交给新会话,而不是塞进 `-m`。它也写明了注意事项,这些才是真正的边界:
-
-- 一个会话同一时间只运行一个活动 Task,所以发给忙碌会话的消息会作为插话送达,而不是排进第二个 Task。
-- 派生出的会话会继承你的审批模式,所以无人值守的 `always-ask` 运行只会一直卡住,等一个并没有在看的人。
-- 能给 Agent 发消息的 Agent,可能搭出一个永远不会结束的循环。
-- 它启动的一切,都记在同一个 Project 的账上。
-
-## 可以从飞书或 Telegram 联系的会话
-
-对话不再只能在浏览器标签页里看。会话可以绑定一个自建的飞书应用或一个 Telegram 机器人:发给机器人的消息会以普通用户输入的形式进入这个会话,助手的回复也会发回聊天里。
-
-![Telegram 下的消息软件面板:先是渠道选择器,然后是带实时状态和两个探测按钮的启用开关,再往下才是 Bot Token 字段,以及已存密钥的掩码和清除勾选框](/blog-assets/penguinharness-0-2-5-messaging-zh.png)
-
-会话为每个渠道各保存一份配置。飞书需要 **App ID**、**App Secret** 和 **API 域名**,Telegram 只需要一个 **Bot Token**。同一时间最多只能启用一个渠道,启用的那个持有实时连接。要启用第二个时,界面会阻止你并说明原因,服务端也会拒绝。
-
-两个渠道都不需要公网 URL。飞书的入站事件通过 SDK 的 WebSocket 长连接送达。Telegram 没有公网 webhook 就不会主动推送,所以连接器改为用基于 offset 的 `getUpdates` 长轮询主动拉取。一台在 NAT 后面的笔记本就够了,不用打隧道,也不用准备 webhook 端点。Telegram 连接器连上时,会跳过无人监听期间积压的消息,而不是把这段空窗期重放成一大堆 Task。飞书也是这样,错过的事件就是错过了。
-
-回复是完成一条发一条,而不是整轮结束后一次发出一大段。每条助手消息一完成就转发出去,所以一次运行中在工具调用之间写下的工作笔记,到了聊天里也是同样的一串消息。同一个会话的消息按完成的先后到达,并按各渠道的文本长度上限拆分,其中 Telegram 的 4096 字符上限最紧。在群聊里,一次运行发出的第一条消息会回复触发它的那条消息,之后的消息(包括拆分出来的后续部分)都直接发送,这样长回答就不会把话题埋进一堆引用块里。
-
-凭据的交互方式和模型页一样。输入框总是从空白开始,已保存的密钥只显示掩码;勾选**清除已存 App Secret** 或**清除已存 Bot Token**,保存时就会删掉它。渠道连接处于启用状态时不能清除,这样实时连接就不会在它的凭据删掉之后继续存在。保存和启用是两件独立的事:**保存**只写入凭据,开关则用已保存的凭据去连接或断开。表单有意把连接控件(开关、实时状态和两个探测按钮)放在凭据字段上方:两个渠道的字段数量不同,控件如果放在字段下面,在两个渠道里的高度就不一样,每次切换渠道都会跳动。
-
-同一套表单有两个入口:会话行的菜单,以及对话右侧栏里紧挨 Trace 面板的**消息软件**面板。在之后的版本里,这个面板改名为**远程控制**。持有实时连接的会话,会在侧栏那一行上显示一个小纸飞机。所有渠道用的都是这个标记,具体是哪个渠道,写在提示气泡和读屏文本里。
-
-模型看到的东西没有任何特别之处。入站文本就像在输入框里输入的一样启动 Task,没有标记,也没有特殊的发送者,所以模型不会知道消息来自聊天软件。遇到待审批的工具调用时,会发出一行提示,引导你去 Web App 处理,因为聊天消息没法完成审批。
-
-## 这一版还有
-
-- **上下文环现在是个按钮。** 点击它,会把当前上下文拆成六部分:系统提示词、工具定义、用户消息、模型消息、工具请求和工具结果。它们画成一条横跨整个上下文窗口的长条,用虚线标出压缩会在哪里触发,并列出占用最多的五个工具。
-- **红点会一路带你找到更新。** 有软件更新或 Agent 内核更新时,界面上会出现手机上那样的小红点。顺着任何一个红点一路点下去,都能走到真正执行更新的那个控件,不会停在一条通知上。
-- **分组按你排好的顺序显示。** 对话侧栏里的会话分组和模型页的供应商分组,都可以拖成自己想要的顺序,按 Project 保存。对话里的模型选择器沿用模型页的顺序。
-- **侧栏按分组计数。** 每个分组各自分页加载,所以展开行显示的是这个分组自己的隐藏数量,点击**收起**即可折叠回去。分组列表本身每次显示十个分组。
-- **独立的 Trace 页面已移除。** Trace 在所属对话的 Trace 面板里查看。Trace 导入移到了**系统设置**里,并且需要指定一个 Project 和一个 Agent,导入的 Trace 会成为列表里的一条对话,而不是藏在过滤器后面。
-- **新建 Agent 更省事。** 创建弹窗可以安装技能库里的 Skill,以及所选项目目录里已有的 Skill。它还能直接用导出的快照包初始化 Agent,不必先建一个空 Agent 再导入。
-
-## 升级须知
-
-这一版有五处改动需要你做判断,不是升级完就没事了。
-
-- **`kill_subagent` 和 `kill_command` 已移除。** 要停止子 Agent 的运行,用 `input_subagent` 加 `abort`;要终止一条命令,用 `input_command` 加 `kill: true`。旧名字不会自动转换:Agent 已保存的工具配置里如果写了它们,这些条目就不再加载;模型调用旧名字,会得到标准的「未知工具」错误。手动写死了这两个名字的地方,都需要改掉。
-- **改动设置标签页里的任何一个字段,整个标签页都会冻结。** 内核更新现在以设置标签页为单位,而不是以单个配置值为单位。好处是更新永远不会覆盖你改过的标签页;代价是,只要改过一个内置工具,这个 Agent 就再也收不到新增的内置工具。在该标签页点击**还原为默认配置**,它就会重新接受内核更新。
-- **Agent 运行的命令不再继承服务端的 `PENGUIN_*` 环境变量。** 服务端自己的 `PENGUIN_*` 变量都不会传给 Agent 运行的命令,`PORT` 和 `HOST` 也不会。`PENGUIN_*` 变量里,Harness 只会设置前面提到的五个控制变量。所以 Agent 启动的 Harness 会使用默认的数据根目录,而不是当前服务实例的数据根目录。出站代理相关的变量是有意保留的例外。如果某条命令确实需要这些变量,请写进该 Agent 的密钥保险柜,保险柜里的变量会在剥离宿主环境变量之后注入。
-- **CLI 不再脱离服务端执行 Task。** `penguin run` 和 `penguin chat` 都经由服务端 API;本机没有服务端在运行时,它们会在本地启动一个。完全离线、直接调用 core 的执行方式不再是 CLI 的一种模式,这项能力保留在 SDK 里,供嵌入方使用。在这次重构中,按用户保存的「显示 CLI 会话」过滤开关也取消了,所有会话一律列出,旧版 CLI 留下的会话现在会出现在侧栏里。磁盘上没有任何数据需要迁移,旧版二进制在你更新之前,也仍能用它们自带的 core 正常工作。
-- **模型目录的新条目不会自动出现。** 预置模型只在创建 Project 时复制进 `.project_config.toml`,之后不会再改写。请在模型页点击**同步预置**,补入 GLM-5.3 Flash、Qwen 3.8 Flash 和 TokenDance 分组。比这个分组更早创建的 Project 需要先同步一次,这个分组和它的**自动获取密钥**才会出现。
-
-每一项改动的完整细节见 [`changelog/0.2.6/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.2.6)。
diff --git a/packages/landing/content/blog/simple-harness-is-all-you-need.en.md b/packages/landing/content/blog/simple-harness-is-all-you-need.en.md
deleted file mode 100644
index 05689aa4..00000000
--- a/packages/landing/content/blog/simple-harness-is-all-you-need.en.md
+++ /dev/null
@@ -1,151 +0,0 @@
----
-title: "Simple Harness Is All You Need"
-date: 2026-07-22
-category: perspectives
-excerpt: Databricks benchmarked coding agents on roughly a hundred real pull requests, and the highest pass rate went to the simplest harness at about half the cost. This essay argues that a harness is an information budget, and shows how PenguinHarness is built around that idea.
----
-
-> Written for PenguinHarness 0.1.1. Later releases may differ in some details.
-
-An **agent harness** is the software around a language model that decides what goes into each request: the system prompt, the tool definitions, and the message history. The common intuition is that a bigger harness makes a better agent. More tools, more context, and more scaffolding should lead to better decisions, and the whole category was built on that belief.
-
-This essay argues the opposite. In a Databricks benchmark on real pull requests, the simplest harness produced the highest score at about half the cost, and Databricks attributes the result to sending less context per turn.
-
-## The evidence: a benchmark on real pull requests
-
-Databricks tested the intuition against real work. It took roughly a hundred pull requests from its own multi-million-line production monorepo, and graded each run by restoring the held-out tests and running them. Here is the result:
-
-![Scatter plot from the Databricks benchmark: pass rate against cost per task for coding agents. Red points mark the Pareto frontier, which is dominated by the minimal Pi harness, and the highest point is Opus 4.8 on Pi](/blog-assets/databricks-pareto.png)
-
-_Pass-rate against cost per task. Red points form the Pareto frontier. Source: [Databricks](https://www.databricks.com/blog/benchmarking-coding-agents-databricks-multi-million-line-codebase)._
-
-The top of the chart inverts the intuition. The single highest pass rate, about 90%, belongs to Opus 4.8 running on [Pi](https://github.com/earendil-works/pi), a harness whose entire core is read, write, edit, and a shell. The same model on Claude Code at maximum effort scores slightly lower, at roughly twice the cost per task. Most of the points on the Pareto frontier, the runs that no other run beats on both cost and pass rate, are Pi.
-
-The minimal harness did not merely hold its own on price. At the top of the board, it won.
-
-Databricks is careful not to overclaim, and so are we. Its stated lesson is not that one harness is always cheaper, or that vendor harnesses are worse. The chart supports that caution: Opus on Pi at `max` effort lands around 81%, well below Claude Code at comparable spend. Simplicity is not a guarantee. The direction is still clear, and Databricks explains the mechanism in two sentences:
-
-> "Pi sent about 3x less context per turn. It managed context better, keeping a tighter working set and finishing the tasks in fewer runs."
-
-One choice in the method deserves mention, because few benchmarks make it: Databricks refused to grade with a model, on the grounds that doing so "rewards sounding right over being right."
-
-## A harness is an information budget
-
-A model is a function behind an API. It receives a system prompt, tool definitions, and a message history, and it returns text and tool calls. That contract is fixed and public, so a harness makes exactly one kind of decision: what occupies the model's context window on each turn.
-
-The context window, the text a model can attend to in one request, is finite. Everything a harness does is therefore allocation: it spends a budget on the model's behalf, on every turn. Two harnesses that call the same model are not running different intelligence. They are running different budgets, and in the Databricks data, the one that spent less scored higher.
-
-## Where context weight accumulates
-
-Context bloat is never one bad decision. It is four defensible ones, compounding on every turn.
-
-### The tool surface
-
-Every tool costs its name, description, and full JSON Schema in *every* request. Thirty tools are not thirty conveniences. They are a permanent tax, plus a wider decision space for the model to get lost in. The marginal tools usually re-implement something a shell already does.
-
-### Tool output
-
-A dependency install prints thousands of lines. That output is not billed once: it becomes history and is resent on every later turn. Uncapped output is the fastest way to turn a cheap task into an expensive one.
-
-### The system prompt
-
-Long behavioral rulebooks encode judgment the model already has. Telling a frontier model not to hardcode credentials spends Tokens restating its training. Worse, over-specification implies that the model is not trusted to reason, which makes it hesitant in exactly the cases the rules failed to anticipate.
-
-### Per-turn injections
-
-Environment snapshots, status blocks, and re-sent config files get stapled onto every message. Each one is tiny, but structurally it is permanent.
-
-None of these is a wrong idea. The problem is that nobody puts a price on them.
-
-## How PenguinHarness is built
-
-We made this bet before the benchmark existed, and it shows in the source code rather than in marketing copy. Each detail in this section can be checked in the repository at the `v0.1.1` tag.
-
-### Six tools, and no file tools
-
-PenguinHarness 0.1.1 ships [six built-in tools](https://github.com/Prism-Shadow/penguin-harness/blob/v0.1.1/packages/docs/content/tools.en.md). Any one Session sees five of them, because the two image tools are mutually exclusive by model class.
-
-| Tool | Purpose |
-| --- | --- |
-| `exec_command` | Run a shell command via `bash -lc`, streaming stdout/stderr |
-| `input_command` | Drive a running command: write stdin, send Ctrl-C, poll output |
-| `run_subagent` / `input_subagent` | Delegate a subtask to a child agent, then poll or follow up |
-| `read_image` / `describe_image` | Return an image, or have a vision model describe it in text |
-
-In 0.1.1 there is no read tool, write tool, edit tool, glob, or grep. Reading, writing, editing, and searching all go through the shell, because the shell already does them and the model already knows how. A four-tool minimal core spends three tools (read, write, and edit) on the filesystem; PenguinHarness spends one. We do not claim the smallest absolute tool count, since Pi's core has one tool fewer. We claim the smallest schema surface for what agents actually do all day.
-
-### A 72-line system prompt
-
-The 0.1.1 default template is 72 lines, about 6,500 characters before placeholder substitution ([source](https://github.com/Prism-Shadow/penguin-harness/blob/v0.1.1/packages/core/src/state/default-config.ts)). It covers the role, success criteria, constraints, stop rules, the filesystem layout, and a short list of suggested workflows. Then it stops.
-
-### Output capped by default
-
-The Environment truncates the output of every tool call at 16,000 characters, in one central place. Exit codes are appended *outside* the truncation window, so the line that tells the model whether the command succeeded survives even when long output is cut.
-
-### Skills that cost one line until used
-
-There is no skill tool. The prompt carries only each Skill's name and one-line description, and the agent reads the body on demand with an ordinary shell command. A Skill that goes unused costs a single line.
-
-### Compaction into a clean context
-
-Past 128,000 Tokens, the engine summarizes the conversation into a `<context_summary>` and continues in a *fresh* context, instead of appending to a swollen history. As a result, one Trace file always holds exactly one model context.
-
-### A clean message protocol
-
-No environment metadata is stapled to user messages. The model receives the conversation itself: user turns, assistant turns, and tool results.
-
-## Why less context wins
-
-The intuition that more context improves decisions is reasonable. It is wrong at the margin for two reasons, and a third, practical reason also favors a lean harness.
-
-The first reason is mechanical: attention is a fixed budget that gets divided. Self-attention weighs every Token against every other. When a request grows from 20K to 60K Tokens, the decisive parts, such as the actual error and the actual constraint, hold a smaller share. Five rules that are followed beat fifty that compete, and five tools chosen correctly beat thirty that widen the search.
-
-The second reason is that redundant instructions cost more than Tokens. Rules that restate training data add no capability; they add the suggestion that judgment is unwanted. The resulting failure is not rule-breaking. It is freezing on a case the rules did not cover.
-
-The third reason is practical: portability. Post-training binds a model to the *protocol*, not to a harness, and every serious model trains on the same function-calling contract. From the model's side, a lean harness is just a standard request that happens to be short. That is why models from several vendors, plus the open-weight GLM, all did well through the same minimal wrapper, and why lean designs keep working when you switch models. For a project that offers 1000+ models behind one interface, portability is the foundation.
-
-The same reasoning explains where our own benchmark numbers land. In those runs, each harness used the model it is normally paired with: DeepSeek V4 Pro on PenguinHarness, Claude Opus 4.8 on Claude Code, and GPT-5.5 on Codex.
-
-- **Complex data analysis.** PenguinHarness had the highest accuracy of the three harnesses we tested, 66.67% against 53.33% for both others. It cost $0.55 against Claude Code's $38.48, roughly 1/70 of the bill.
-- **Coding.** PenguinHarness ties Codex at 71.25% and trails Claude Code's 86.25%. The suite cost $3.81, against $220.08 for Codex and $146.97 for Claude Code.
-
-We do not claim to beat a frontier model on every axis. We claim that the quality gap is one to two orders of magnitude smaller than the price gap.
-
-## What minimalism must not cost
-
-This is where we part company with minimalism as a philosophy. A lean context must not come at the cost of what makes an autonomous process safe on a real machine.
-
-Stripping a harness down is easy if you strip out those safeguards too. Pi's own README says plainly that it "does not include a built-in permission system", and suggests containers instead. That is a reasonable trade for a personal CLI. It is not a trade an enterprise can make.
-
-PenguinHarness treats safety and observability as load-bearing. They are cheap in context because they live in the runtime rather than in the prompt:
-
-- Every tool call gets exactly one approval decision, in one of four approval modes: `allow-all`, `deny-all`, `read-only`, or `always-ask`. The SDK denies by default when no approver is supplied, so nothing runs unattended by accident.
-- Every decision is audited in the Trace as an `approval_decision` event.
-- Tools never throw into the engine. Failures become tool output that the model reads and reacts to. This is also why a lean prompt is safe: the environment reports its own errors clearly enough that the prompt does not have to anticipate them.
-
-None of this adds Tokens to a turn, and every decision stays auditable.
-
-## Conclusion
-
-The result worth internalizing is not that simple harnesses are cheaper. It is that at the top of a real benchmark, on real pull requests, the simplest harness produced the best result, and did so by sending less.
-
-If you build agents, the audit is short:
-
-- How many tools does your model see, and how many of them re-implement a shell?
-- What is your hard cap on tool output?
-- How many lines of your system prompt teach the model things it learned in pre-training?
-- What gets injected into every message?
-
-Each answer is a line item, charged on every turn, for the life of the task. To try PenguinHarness, install it and start the Web App:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
----
-
-- **Read the internals**: [Tools & Approval](https://penguin.ooo/docs/tools) · [The Agent Loop](https://penguin.ooo/docs/agent-loop) · [Skills & Plugins](https://penguin.ooo/docs/skills)
-- **Come argue with us**: [GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**Sources**: [Databricks — Benchmarking Coding Agents on Databricks' Multi-Million Line Codebase](https://www.databricks.com/blog/benchmarking-coding-agents-databricks-multi-million-line-codebase) · [Pi (earendil-works/pi)](https://github.com/earendil-works/pi) · [SaladDay, "Less is More"](https://x.com/Salad95238547/status/2079508549382644194)
diff --git a/packages/landing/content/blog/simple-harness-is-all-you-need.zh.md b/packages/landing/content/blog/simple-harness-is-all-you-need.zh.md
deleted file mode 100644
index 8f071fc5..00000000
--- a/packages/landing/content/blog/simple-harness-is-all-you-need.zh.md
+++ /dev/null
@@ -1,151 +0,0 @@
----
-title: "精简的 Harness 就够了"
-date: 2026-07-22
-category: perspectives
-excerpt: Databricks 拿约一百个真实 Pull Request 评测编程 Agent,通过率最高的是最简单的 Harness,成本还只有一半左右。本文认为 Harness 本质上是一份上下文预算,并介绍 PenguinHarness 如何围绕这个判断构建。
----
-
-> 本文基于 PenguinHarness 0.1.1 撰写,之后的版本在部分细节上可能有所不同。
-
-**Agent Harness** 是包在语言模型外面的那层软件,决定每次请求里放什么:系统提示词、工具定义和消息历史。按常见的直觉,Harness 越大,Agent 越强。工具更多、上下文更全、脚手架更厚,决策理应更好,整个品类就是建立在这个信念上的。
-
-本文的观点正好相反。Databricks 用真实 Pull Request 做了一次评测,最简单的 Harness 拿到最高分,成本还只有一半左右;Databricks 把原因归结为它每轮发送的上下文更少。
-
-## 证据:一次基于真实 Pull Request 的评测
-
-Databricks 拿真实工作检验了这个直觉:从自家数百万行代码的生产 monorepo 里挑出约一百个 Pull Request,把事先抽走的测试恢复回去再运行,以此给每次运行判分。结果如下:
-
-![Databricks 评测的散点图:编程 Agent 的通过率对单任务成本。红点标出 Pareto 前沿,前沿上大部分是精简的 Pi Harness,全图最高点是跑在 Pi 上的 Opus 4.8](/blog-assets/databricks-pareto.png)
-
-_横轴是单任务成本,纵轴是通过率,红点构成 Pareto 前沿。图片来源:[Databricks](https://www.databricks.com/blog/benchmarking-coding-agents-databricks-multi-million-line-codebase)。_
-
-图的顶部和直觉正好相反。全场最高的通过率约 90%,属于跑在 [Pi](https://github.com/earendil-works/pi) 上的 Opus 4.8,而 Pi 的全部内核只有读、写、编辑加一个 shell。同一个模型跑在 Claude Code 上、开到最高档,得分略低,单任务成本却是它的两倍左右。Pareto 前沿指的是没有其他运行能在成本和通过率上同时胜过的那些运行,前沿上的点大部分是 Pi。
-
-精简的 Harness 不只是价格上不吃亏。在榜首,它赢了。
-
-Databricks 很谨慎,没有过度引申,我们也一样。他们明确说过,这里的教训不是某个 Harness 永远更便宜,也不是厂商自家的 Harness 更差。图本身也佐证了这份谨慎:Opus 跑在 Pi 上开 `max` 档时只有 81% 左右,明显低于同等花费下的 Claude Code。精简不是保票。但方向依然清楚,Databricks 用两句话解释了背后的机制:
-
-> 「Pi 每轮发送的上下文少了大约三分之二。它对上下文管理得更好,工作集更紧凑,完成任务所需的运行次数也更少。」
-
-方法上还有一个选择值得一提,因为肯这样做的评测并不多:Databricks 拒绝用模型来判分,理由是那样会「奖励听起来对,而不是真的对」。
-
-## Harness 是一份上下文预算
-
-模型是 API 背后的一个函数:接收系统提示词、工具定义和消息历史,返回文本和工具调用。这份契约是固定的,也是公开的,所以 Harness 只做一种决策:每一轮,模型的上下文窗口里放什么。
-
-上下文窗口是模型在一次请求里能关注到的全部文本,长度有限。所以 Harness 做的每件事都是分配:每一轮都在替模型花一笔预算。两个 Harness 调用同一个模型,跑的不是不同的智能,而是不同的预算。在 Databricks 的数据里,花得少的那个得分更高。
-
-## 上下文负担堆在哪里
-
-上下文膨胀从来不是某一个糟糕决定的结果,而是四个各自说得通的决定在每一轮里不断叠加的结果。
-
-### 工具面
-
-每个工具的名字、描述和完整 JSON Schema,在**每一次**请求里都要付一遍。三十个工具不等于三十份便利,而是一笔常驻的税,外加一个更大的决策空间,模型容易在里面迷路。那些边际工具,通常只是在重新实现 shell 已经能做的事。
-
-### 工具输出
-
-装一次依赖就能吐出几千行。这些输出不是只计费一次:它们会变成历史,在之后的每一轮里重新发送。不设上限的工具输出,是把便宜任务变贵最快的途径。
-
-### 系统提示词
-
-冗长的行为守则,写下的是模型本来就有的判断力。告诉一个前沿模型别硬编码凭据,等于花 Token 复述它的训练数据。更糟的是,规定得太细,等于暗示你不信任模型自己推理,结果恰恰在规则没料到的情形里,模型反而犹豫。
-
-### 每轮注入
-
-环境快照、状态块、反复重发的配置文件,都钉在每条消息上。单个很小,却每一轮都甩不掉。
-
-这些都不是错的想法,问题在于没人给它们标价。
-
-## PenguinHarness 是怎么做的
-
-这个赌注我们在那份评测出现之前就下了,它写在源码里,不在宣传页上。本节每个细节都能在仓库的 `v0.1.1` 标签下核对。
-
-### 六个工具,没有文件工具
-
-PenguinHarness 0.1.1 内置[六个工具](https://github.com/Prism-Shadow/penguin-harness/blob/v0.1.1/packages/docs/content/tools.zh.md),任一会话实际只看到五个,因为两个图像工具按模型类别互斥。
-
-| 工具 | 作用 |
-| --- | --- |
-| `exec_command` | 通过 `bash -lc` 执行 shell 命令,流式返回 stdout/stderr |
-| `input_command` | 驱动运行中的命令:写入 stdin、发送 Ctrl-C、轮询输出 |
-| `run_subagent` / `input_subagent` | 把子任务委派给子 Agent,之后轮询或追加指令 |
-| `read_image` / `describe_image` | 返回图像,或交给视觉模型转成文字描述 |
-
-0.1.1 里没有 read 工具、write 工具、edit 工具,也没有 glob 和 grep。读、写、编辑、搜索全部走 shell,因为 shell 本来就能做这些事,模型也本来就会用。一个四工具的极简内核要把三个名额(read、write 和 edit)花在文件系统上,PenguinHarness 只花一个。我们不宣称工具的绝对数量最少,Pi 的内核比我们还少一个。我们宣称的是,在 Agent 每天真正在做的事上,我们的 schema 面积最小。
-
-### 72 行的系统提示词
-
-0.1.1 的默认模板在替换占位符之前是 72 行、约 6,500 字符([源码](https://github.com/Prism-Shadow/penguin-harness/blob/v0.1.1/packages/core/src/state/default-config.ts))。内容包括角色、成功标准、约束、停止规则、文件系统布局,外加一小段建议工作流,然后就结束了。
-
-### 输出默认设上限
-
-每次工具调用的输出都截断在 16,000 字符,由 Environment 在一处统一执行。退出码追加在**截断窗口之外**,哪怕长输出截掉了一部分,告诉模型命令成没成功的那一行也还在。
-
-### Skill 在用到之前只占一行
-
-系统里没有 Skill 工具。提示词里只带每个 Skill 的名字和一行描述,需要时 Agent 再用一条普通的 shell 命令读取正文。用不到的 Skill,只占一行。
-
-### 压缩进干净的上下文
-
-超过 128,000 Token 后,引擎把对话摘要成一段 `<context_summary>`,然后在**全新的**上下文里继续,而不是接在一段已经臃肿的历史后面。这样一来,一个 Trace 文件恰好对应一个模型上下文。
-
-### 干净的消息协议
-
-用户消息上不钉任何环境元数据。模型收到的就是对话本身:用户轮、助手轮和工具结果。
-
-## 为什么更少的上下文反而赢
-
-「上下文越多,决策越好」这个直觉并不离谱,只是在边际上不成立,原因有两个;另外还有一个实际的理由,同样支持精简的 Harness。
-
-第一个原因在机制上:注意力是一份固定的预算,要分给所有 Token。Self-attention 让每个 Token 都和其余所有 Token 计算权重。请求从 20K Token 涨到 60K Token,真正起决定作用的部分,比如那条实际的报错、那条实际的约束,占的份额就变小了。五条真正执行到位的规则,胜过五十条互相争抢注意力的规则;五个选对的工具,胜过三十个把搜索范围撑大的工具。
-
-第二个原因是,冗余指令的代价不止是 Token。复述训练数据的规则不会增加能力,只会暗示模型「这里不需要你判断」。由此带来的失败不是违反规则,而是在规则没覆盖的情形里卡住。
-
-第三个原因更实际:可移植性。后训练绑定的是**协议**,不是 Harness,所有像样的模型都在同一套 function calling 契约上训练。从模型的角度看,精简的 Harness 不过是一个恰好比较短的标准请求。这就是为什么多家厂商的模型加上开放权重的 GLM,在同一个精简封装下都表现不错,也是为什么精简的设计在你换模型之后照样好用。对一个用同一套接口接入 1000+ 模型的项目来说,可移植性是地基。
-
-我们自己的评测结果也能用同一个道理解释。这组评测里,每个 Harness 都搭配它平时常用的模型:PenguinHarness 配 DeepSeek V4 Pro,Claude Code 配 Claude Opus 4.8,Codex 配 GPT-5.5。
-
-- **复杂数据分析**:在我们测试的三个 Harness 里,PenguinHarness 准确率最高,为 66.67%,另外两个都是 53.33%。花费 $0.55,Claude Code 是 $38.48,账单约为后者的 1/70。
-- **编程**:PenguinHarness 与 Codex 同为 71.25%,落后于 Claude Code 的 86.25%。整套题我们花了 $3.81,Codex 是 $220.08,Claude Code 是 $146.97。
-
-我们不宣称在每个维度上都赢过前沿模型。我们宣称的是,效果的差距比价格的差距小一到两个数量级。
-
-## 精简不该牺牲什么
-
-这里是我们和「极简主义」分道扬镳的地方。上下文可以精简,但不能因此丢掉让一个自主进程能在真机上安全运行的那些东西。
-
-如果连这些保障也一并砍掉,把 Harness 削薄就很容易。Pi 自己的 README 坦率写明它「不包含内置权限系统」,并建议改用容器。对个人 CLI 来说这是合理的取舍,企业却做不了这种取舍。
-
-PenguinHarness 把安全和可观测性当作承重结构。它们在上下文里几乎不占开销,因为它们在运行时里实现,而不是写在提示词里:
-
-- 每次工具调用恰好触发一次审批决策,审批模式有四种:`allow-all`、`deny-all`、`read-only` 和 `always-ask`。没有注入审批回调时,SDK 默认拒绝,不会有东西在无人值守时意外跑起来。
-- 每个决策都以 `approval_decision` 事件写入 Trace,留作审计。
-- 工具永远不向引擎抛异常。失败会变成工具输出,模型读到后据此应对。这也是精简的提示词依然安全的原因:环境把自己的错误讲得足够清楚,提示词就不必替它预判。
-
-这些机制不给任何一轮增加 Token,每个决策也始终可以审计。
-
-## 结论
-
-值得记住的结论不是「简单的 Harness 更便宜」,而是在一套基于真实 Pull Request 的评测里,榜首属于最简单的 Harness,它靠的是发得更少。
-
-如果你在构建 Agent,自查清单很短:
-
-- 你的模型能看到多少个工具?其中多少个在重新实现 shell?
-- 工具输出的硬上限是多少?
-- 你的系统提示词里,有多少行在教模型预训练时就学会的事?
-- 每条消息里都注入了什么?
-
-每个答案都是一个成本项,按轮计费,贯穿整个任务。想试试 PenguinHarness,就安装它并启动 Web App:
-
-```bash
-curl -fsSL https://penguin.ooo/install.sh | sh
-penguin web
-```
-
----
-
-- **读实现**:[工具与审批](https://penguin.ooo/docs/tools) · [Agent 运行循环](https://penguin.ooo/docs/agent-loop) · [技能与插件](https://penguin.ooo/docs/skills)
-- **来找我们讨论**:[GitHub](https://github.com/Prism-Shadow/penguin-harness) · [Discord](https://discord.gg/eFHKqqcU3D)
-
-**参考来源**:[Databricks — Benchmarking Coding Agents on Databricks' Multi-Million Line Codebase](https://www.databricks.com/blog/benchmarking-coding-agents-databricks-multi-million-line-codebase) · [Pi (earendil-works/pi)](https://github.com/earendil-works/pi) · [SaladDay《Less is More》](https://x.com/Salad95238547/status/2079508549382644194)
diff --git a/packages/landing/index.html b/packages/landing/index.html
deleted file mode 100644
index c93ff079..00000000
--- a/packages/landing/index.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
- <meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
- <meta name="theme-color" content="#141414" media="(prefers-color-scheme: dark)" />
- <meta
- name="description"
- content="A zero-code CLI and Web UI for building AI agents, connected to 1,000+ models. Open source, local-first, and recursively self-improving."
- />
- <!-- Self-referencing URLs for the home page: scripts/postbuild.mjs rewrites both per
- route as it stamps out the blog shells, and drops the canonical from 404.html.
- Absolute because rel=canonical and Open Graph both ignore relative URLs, so
- these name the production origin whatever BASE_PATH a build uses. -->
- <link rel="canonical" href="https://penguin.ooo/" />
- <meta property="og:url" content="https://penguin.ooo/" />
- <meta property="og:type" content="website" />
- <meta property="og:site_name" content="PenguinHarness" />
- <meta property="og:title" content="PenguinHarness" />
- <meta
- property="og:description"
- content="Efficient Self-Improving Harness for Everyone — open-source, local-first infrastructure that builds AI agents for you."
- />
- <meta property="og:image" content="https://penguin.ooo/og-cover.png" />
- <meta property="og:image:width" content="1200" />
- <meta property="og:image:height" content="630" />
- <meta
- property="og:image:alt"
- content="PenguinHarness — Efficient Self-Improving Harness for Everyone"
- />
- <meta name="twitter:card" content="summary_large_image" />
- <meta name="twitter:image" content="https://penguin.ooo/og-cover.png" />
- <link rel="icon" type="image/svg+xml" href="./penguin-logo.svg" />
- <title>PenguinHarness — Efficient Self-Improving Harness for Everyone</title>
- <!-- Apply the stored/system theme before first paint so the page doesn't flash the
- wrong background while React boots. Reads the key shared with the sibling site
- (see src/state/site-prefs.ts), falling back to the retired per-site keys. -->
- <script>
- try {
- var m =
- localStorage.getItem("penguin-site.theme") ||
- localStorage.getItem("penguin-landing.theme") ||
- localStorage.getItem("penguin-docs.theme");
- if (m === "dark" || (m !== "light" && matchMedia("(prefers-color-scheme: dark)").matches))
- document.documentElement.classList.add("dark");
- } catch {}
- </script>
- </head>
- <body>
- <div id="root"></div>
- <script type="module" src="/src/main.tsx"></script>
- </body>
-</html>
diff --git a/packages/landing/package.json b/packages/landing/package.json
deleted file mode 100644
index 2deb6797..00000000
--- a/packages/landing/package.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "@prismshadow/penguin-landing",
- "version": "0.2.13",
- "private": true,
- "type": "module",
- "description": "PenguinHarness landing page (React + Vite + Tailwind CSS): multilingual, light/dark themes, benchmark showcase, and a local Markdown blog, deployed to GitHub Pages via GitHub Actions.",
- "scripts": {
- "dev": "vite",
- "build": "vite build && node scripts/postbuild.mjs",
- "preview": "vite preview",
- "typecheck": "tsc --noEmit -p tsconfig.json",
- "test": "vitest run --passWithNoTests",
- "shots": "node scripts/capture-shots.mjs",
- "blog-shots": "node scripts/capture-blog-shots.mjs",
- "blog-013-shots": "node scripts/capture-blog-013-shots.mjs"
- },
- "dependencies": {
- "react": "^19.1.0",
- "react-dom": "^19.1.0",
- "react-markdown": "^10.1.0",
- "react-router": "^8.3.0",
- "rehype-raw": "^7.0.0",
- "remark-gfm": "^4.0.0"
- },
- "devDependencies": {
- "@playwright/test": "^1.61.1",
- "@tailwindcss/vite": "^4.1.0",
- "@types/node": "^24.0.0",
- "@types/react": "^19.1.0",
- "@types/react-dom": "^19.1.0",
- "@vitejs/plugin-react": "^4.5.0",
- "tailwindcss": "^4.1.0",
- "typescript": "^5.6.0",
- "vite": "^7.0.0",
- "vitest": "^3.2.6"
- }
-}
diff --git a/packages/landing/public/install.ps1 b/packages/landing/public/install.ps1
deleted file mode 100644
index 3a3aac78..00000000
--- a/packages/landing/public/install.ps1
+++ /dev/null
@@ -1,168 +0,0 @@
-# https://penguin.ooo/install.ps1 - PenguinHarness installer entry point for Windows.
-#
-# GitHub Pages cannot serve HTTP redirects, so this thin forwarder IS the
-# stable install URL. It selects an immutable OSS release when that mirror is
-# available, otherwise it falls back to GitHub, then runs the real installer
-# while forwarding every argument it was given. In auto mode the script source
-# does not lock the large payload source; the real versioned installer decides
-# that for its own release. Usage:
-#
-# irm https://penguin.ooo/install.ps1 | iex
-# & ([scriptblock]::Create((irm https://penguin.ooo/install.ps1))) -Version v0.2.0
-#
-& {
- $ForwardedArgs = @($args)
- $ErrorActionPreference = "Stop"
- $ProgressPreference = "SilentlyContinue"
- $OssOrigin = "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com"
- $OssReleaseRoot = "$OssOrigin/releases"
- $GitHubReleaseRoot = "https://github.com/Prism-Shadow/penguin-harness/releases/download"
- $GitHubLatestBase = "https://github.com/Prism-Shadow/penguin-harness/releases/latest/download"
-
- function Fail([string]$Message) {
- throw "error: $Message"
- }
-
- function Test-HttpsUrl([string]$Value) {
- try { $Uri = [Uri]$Value } catch { return $false }
- return $Uri.IsAbsoluteUri -and $Uri.Scheme -eq "https"
- }
-
- function Test-ReleaseTag([string]$Value) {
- return $Value -match '^v[0-9A-Za-z][0-9A-Za-z._-]*$'
- }
-
- function Try-DownloadFile([string]$Uri, [string]$OutFile, [int]$TimeoutSec) {
- try {
- Invoke-WebRequest -Uri $Uri -OutFile $OutFile -UseBasicParsing -TimeoutSec $TimeoutSec
- return $true
- } catch {
- Remove-Item -LiteralPath $OutFile -Force -ErrorAction SilentlyContinue
- return $false
- }
- }
-
- try {
- [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
- } catch {
- # .NET builds where the enum is immutable already default to TLS 1.2+.
- }
-
- $SourceMode = if ($env:PENGUIN_DOWNLOAD_SOURCE) { $env:PENGUIN_DOWNLOAD_SOURCE.ToLowerInvariant() } else { "auto" }
- if ($SourceMode -notin @("auto", "oss", "github")) {
- Fail "PENGUIN_DOWNLOAD_SOURCE must be auto, oss, or github"
- }
-
- $RequestedVersion = if ($env:PENGUIN_VERSION) { $env:PENGUIN_VERSION } else { "" }
- for ($i = 0; $i -lt $ForwardedArgs.Count; $i++) {
- if ([string]$ForwardedArgs[$i] -ieq "-Version" -and $i + 1 -lt $ForwardedArgs.Count) {
- $RequestedVersion = [string]$ForwardedArgs[$i + 1]
- $i++
- }
- }
- if ($RequestedVersion -and -not (Test-ReleaseTag $RequestedVersion)) {
- Fail "invalid release version: $RequestedVersion"
- }
-
- # Download fully first, then run: executing a piped stream directly would run a
- # truncated download line by line, and the real installer moves the old
- # bin/lib/web/node aside before moving the new ones in - a cut connection
- # mid-way must never leave a half-executed installer. The installer runs as an
- # in-memory script block (not a script file): script files are subject to the
- # execution policy, which is Restricted by default on client Windows - while the
- # user has already consented to remote code by piping this forwarder into iex.
- # Neither this forwarder nor the installer calls `exit`, which in iex/script-block
- # context would terminate the user's whole PowerShell session.
- $TmpDir = Join-Path ([IO.Path]::GetTempPath()) "penguin-forwarder-$PID"
- $InstallerPath = Join-Path $TmpDir "install.ps1"
- $ManifestPath = Join-Path $TmpDir "latest.json"
- $SelectedBase = ""
- $FallbackBase = ""
- $OriginalBase = [Environment]::GetEnvironmentVariable("PENGUIN_DOWNLOAD_BASE_URL", "Process")
- $OriginalFallback = [Environment]::GetEnvironmentVariable("PENGUIN_DOWNLOAD_FALLBACK_BASE_URL", "Process")
-
- try {
- if (Test-Path -LiteralPath $TmpDir) {
- Remove-Item -LiteralPath $TmpDir -Recurse -Force
- }
- New-Item -ItemType Directory -Path $TmpDir | Out-Null
-
- if ($OriginalBase) {
- $SelectedBase = $OriginalBase.TrimEnd('/')
- $FallbackBase = if ($OriginalFallback) { $OriginalFallback.TrimEnd('/') } else { "" }
- if (-not (Test-HttpsUrl $SelectedBase)) { Fail "PENGUIN_DOWNLOAD_BASE_URL must be an absolute HTTPS URL" }
- if ($FallbackBase -and -not (Test-HttpsUrl $FallbackBase)) {
- Fail "PENGUIN_DOWNLOAD_FALLBACK_BASE_URL must be an absolute HTTPS URL"
- }
- if (-not (Try-DownloadFile "$SelectedBase/install.ps1" $InstallerPath 30)) {
- Fail "could not download the installer from the configured mirror."
- }
- } elseif ($SourceMode -eq "github") {
- $SelectedBase = if ($RequestedVersion) { "$GitHubReleaseRoot/$RequestedVersion" } else { $GitHubLatestBase }
- if (-not (Try-DownloadFile "$SelectedBase/install.ps1" $InstallerPath 30)) {
- Fail "could not download the installer from GitHub. Check your network, then retry."
- }
- } else {
- $OssTag = $RequestedVersion
- $OssBase = if ($OssTag) { "$OssReleaseRoot/$OssTag" } else { "" }
-
- if (-not $OssTag -and (Try-DownloadFile "$OssOrigin/latest.json" $ManifestPath 8)) {
- try {
- $Manifest = [IO.File]::ReadAllText($ManifestPath, [Text.UTF8Encoding]::new($false)) | ConvertFrom-Json
- $CandidateTag = [string]$Manifest.tag
- $CandidateBase = ([string]$Manifest.releaseBaseUrl).TrimEnd('/')
- if ([int]$Manifest.schemaVersion -eq 1 -and
- (Test-ReleaseTag $CandidateTag) -and
- $CandidateBase -eq "$OssReleaseRoot/$CandidateTag") {
- $OssTag = $CandidateTag
- $OssBase = $CandidateBase
- }
- } catch {
- $OssTag = ""
- $OssBase = ""
- }
- }
-
- if ($OssBase -and (Try-DownloadFile "$OssBase/install.ps1" $InstallerPath 30)) {
- $SelectedBase = $OssBase
- if ($SourceMode -eq "auto") {
- $FallbackBase = "$GitHubReleaseRoot/$OssTag"
- }
- } elseif ($SourceMode -eq "oss") {
- Fail "the OSS mirror is unavailable or its release metadata is invalid."
- } else {
- $SelectedBase = if ($OssTag) { "$GitHubReleaseRoot/$OssTag" } else { $GitHubLatestBase }
- if (-not (Try-DownloadFile "$SelectedBase/install.ps1" $InstallerPath 30)) {
- Fail "could not download the installer from GitHub. Check your network, then retry."
- }
- }
- }
-
- if ($OriginalBase) {
- $env:PENGUIN_DOWNLOAD_BASE_URL = $SelectedBase
- if ($FallbackBase) {
- $env:PENGUIN_DOWNLOAD_FALLBACK_BASE_URL = $FallbackBase
- } else {
- Remove-Item Env:\PENGUIN_DOWNLOAD_FALLBACK_BASE_URL -ErrorAction SilentlyContinue
- }
- } else {
- Remove-Item Env:\PENGUIN_DOWNLOAD_BASE_URL -ErrorAction SilentlyContinue
- Remove-Item Env:\PENGUIN_DOWNLOAD_FALLBACK_BASE_URL -ErrorAction SilentlyContinue
- }
- $InstallerText = [IO.File]::ReadAllText($InstallerPath, [Text.UTF8Encoding]::new($false))
- $Installer = [scriptblock]::Create($InstallerText)
- & $Installer @ForwardedArgs
- } finally {
- if ($null -eq $OriginalBase) {
- Remove-Item Env:\PENGUIN_DOWNLOAD_BASE_URL -ErrorAction SilentlyContinue
- } else {
- $env:PENGUIN_DOWNLOAD_BASE_URL = $OriginalBase
- }
- if ($null -eq $OriginalFallback) {
- Remove-Item Env:\PENGUIN_DOWNLOAD_FALLBACK_BASE_URL -ErrorAction SilentlyContinue
- } else {
- $env:PENGUIN_DOWNLOAD_FALLBACK_BASE_URL = $OriginalFallback
- }
- Remove-Item -LiteralPath $TmpDir -Recurse -Force -ErrorAction SilentlyContinue
- }
-} @args
diff --git a/packages/landing/public/install.sh b/packages/landing/public/install.sh
deleted file mode 100644
index d428531e..00000000
--- a/packages/landing/public/install.sh
+++ /dev/null
@@ -1,148 +0,0 @@
-#!/bin/sh
-# https://penguin.ooo/install.sh - PenguinHarness installer entry point.
-#
-# GitHub Pages cannot serve HTTP redirects, so this thin forwarder IS the
-# stable install URL. It selects an immutable OSS release when that mirror is
-# available, otherwise it falls back to GitHub, then runs the real installer
-# while forwarding every argument it was given. In auto mode the script source
-# does not lock the large payload source; the real versioned installer decides
-# that for its own release. Usage:
-#
-# curl -fsSL https://penguin.ooo/install.sh | sh
-# curl -fsSL https://penguin.ooo/install.sh | sh -s -- --universal
-#
-set -eu
-OSS_ORIGIN="https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com"
-OSS_RELEASE_ROOT="$OSS_ORIGIN/releases"
-GITHUB_RELEASE_ROOT="https://github.com/Prism-Shadow/penguin-harness/releases/download"
-SOURCE_MODE="${PENGUIN_DOWNLOAD_SOURCE:-auto}"
-
-fail() {
- echo "error: $1" >&2
- exit 1
-}
-
-validate_https_url() {
- case "$2" in
- https://*) ;;
- *) fail "$1 must be an absolute HTTPS URL" ;;
- esac
-}
-
-is_release_tag() {
- case "$1" in
- v[0-9A-Za-z]*) ;;
- *) return 1 ;;
- esac
- case "$1" in
- *[!0-9A-Za-z._-]*) return 1 ;;
- esac
- return 0
-}
-
-validate_release_tag() {
- is_release_tag "$1" || fail "invalid release version: $1"
-}
-
-case "$SOURCE_MODE" in
- auto | oss | github) ;;
- *) fail "PENGUIN_DOWNLOAD_SOURCE must be auto, oss, or github" ;;
-esac
-
-REQUESTED_VERSION="${PENGUIN_VERSION:-}"
-expect_version=0
-for arg in "$@"; do
- if [ "$expect_version" -eq 1 ]; then
- REQUESTED_VERSION="$arg"
- expect_version=0
- elif [ "$arg" = "--version" ]; then
- expect_version=1
- fi
-done
-[ -z "$REQUESTED_VERSION" ] || validate_release_tag "$REQUESTED_VERSION"
-
-# Download to a file first, then run it: piping straight into `sh` would execute
-# a truncated download line by line, and the real installer removes the old
-# bin/lib/web/node before moving the new ones in — a cut connection mid-way
-# would leave no install at all. The file lives in a private mktemp -d (0700)
-# directory: the real installer picks up a payload sitting next to a script
-# named install.sh (the extracted-bundle offline path), and a shared /tmp must
-# never offer that seam to other local users.
-TMP_DIR="$(mktemp -d)"
-trap 'rm -rf "$TMP_DIR"' EXIT
-INSTALLER="$TMP_DIR/install.sh"
-MANIFEST="$TMP_DIR/latest.json"
-SELECTED_BASE=""
-FALLBACK_BASE=""
-
-download_installer() {
- curl -fsSL --connect-timeout 5 --max-time 30 "$1/install.sh" -o "$INSTALLER"
-}
-
-use_github() {
- if [ -n "$1" ]; then
- SELECTED_BASE="$GITHUB_RELEASE_ROOT/$1"
- else
- SELECTED_BASE="https://github.com/Prism-Shadow/penguin-harness/releases/latest/download"
- fi
- FALLBACK_BASE=""
- download_installer "$SELECTED_BASE" \
- || fail "could not download the installer from GitHub. Check your network, then retry."
-}
-
-EXPLICIT_BASE="${PENGUIN_DOWNLOAD_BASE_URL:-}"
-if [ -n "$EXPLICIT_BASE" ]; then
- SELECTED_BASE="${EXPLICIT_BASE%/}"
- FALLBACK_BASE="${PENGUIN_DOWNLOAD_FALLBACK_BASE_URL:-}"
- FALLBACK_BASE="${FALLBACK_BASE%/}"
- validate_https_url PENGUIN_DOWNLOAD_BASE_URL "$SELECTED_BASE"
- [ -z "$FALLBACK_BASE" ] || validate_https_url PENGUIN_DOWNLOAD_FALLBACK_BASE_URL "$FALLBACK_BASE"
- download_installer "$SELECTED_BASE" \
- || fail "could not download the installer from the configured mirror."
-elif [ "$SOURCE_MODE" = "github" ]; then
- use_github "$REQUESTED_VERSION"
-else
- OSS_TAG="$REQUESTED_VERSION"
- OSS_BASE=""
- if [ -n "$OSS_TAG" ]; then
- OSS_BASE="$OSS_RELEASE_ROOT/$OSS_TAG"
- elif curl -fsSL --connect-timeout 3 --max-time 8 "$OSS_ORIGIN/latest.json" -o "$MANIFEST" 2>/dev/null; then
- schema_version="$(sed -n 's/.*"schemaVersion":[[:space:]]*\([0-9][0-9]*\).*/\1/p' "$MANIFEST" | head -n 1)"
- candidate_tag="$(sed -n 's/.*"tag":[[:space:]]*"\([^"]*\)".*/\1/p' "$MANIFEST" | head -n 1)"
- candidate_base="$(sed -n 's/.*"releaseBaseUrl":[[:space:]]*"\([^"]*\)".*/\1/p' "$MANIFEST" | head -n 1)"
- if [ "$schema_version" = "1" ] && is_release_tag "$candidate_tag"; then
- if [ "$candidate_base" = "$OSS_RELEASE_ROOT/$candidate_tag" ]; then
- OSS_TAG="$candidate_tag"
- OSS_BASE="$candidate_base"
- fi
- fi
- fi
-
- if [ -n "$OSS_BASE" ] && download_installer "$OSS_BASE" 2>/dev/null; then
- SELECTED_BASE="$OSS_BASE"
- if [ "$SOURCE_MODE" = "auto" ]; then
- FALLBACK_BASE="$GITHUB_RELEASE_ROOT/$OSS_TAG"
- fi
- elif [ "$SOURCE_MODE" = "oss" ]; then
- fail "the OSS mirror is unavailable or its release metadata is invalid."
- else
- use_github "$OSS_TAG"
- fi
-fi
-
-rc=0
-(
- if [ -n "$EXPLICIT_BASE" ]; then
- export PENGUIN_DOWNLOAD_BASE_URL="$SELECTED_BASE"
- if [ -n "$FALLBACK_BASE" ]; then
- export PENGUIN_DOWNLOAD_FALLBACK_BASE_URL="$FALLBACK_BASE"
- else
- unset PENGUIN_DOWNLOAD_FALLBACK_BASE_URL
- fi
- else
- unset PENGUIN_DOWNLOAD_BASE_URL
- unset PENGUIN_DOWNLOAD_FALLBACK_BASE_URL
- fi
- sh "$INSTALLER" "$@"
-) || rc=$?
-exit "$rc"
diff --git a/packages/landing/public/og-cover.png b/packages/landing/public/og-cover.png
deleted file mode 100644
index 373c1bf9..00000000
Binary files a/packages/landing/public/og-cover.png and /dev/null differ
diff --git a/packages/landing/public/penguin-logo.svg b/packages/landing/public/penguin-logo.svg
deleted file mode 100644
index 0d48619e..00000000
--- a/packages/landing/public/penguin-logo.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="139 129 954 954"><defs><clipPath id="rounded"><rect x="139" y="129" width="954" height="954" rx="230"/></clipPath><linearGradient id="a" x1="432" x2="978" y1="304" y2="884" gradientUnits="userSpaceOnUse"><stop stop-color="#111b2a"/><stop offset="1" stop-color="#091423"/></linearGradient><linearGradient id="b"><stop stop-color="#0e1928"/><stop offset=".4" stop-color="#0b2963"/><stop offset=".7" stop-color="#054ac8"/><stop offset=".82" stop-color="#0258f4"/><stop offset="1" stop-color="#015dfc"/></linearGradient><linearGradient xlink:href="#b" id="c" x1="964" x2="1065" y1="451" y2="423" gradientUnits="userSpaceOnUse"/><linearGradient xlink:href="#b" id="d" x1="365" x2="260" y1="800" y2="860" gradientUnits="userSpaceOnUse"/><linearGradient xlink:href="#b" id="e" x1="442" x2="350" y1="836" y2="905" gradientUnits="userSpaceOnUse"/></defs><g clip-path="url(#rounded)"><path fill="#fefefe" d="M0 0h1254v1254H0Z"/><path fill="#015dfc" d="M475 558v3c-1 0-3 1-4 1-16 4-31 9-47 14-1 0-2 1-4 1-76 26-179 67-217 143-7 15-9 29-4 45 2 5 4 10 8 14s4 4 4 6c1 1 3 1 4 2s2 1 3 2c9 6 18 10 29 14 4 1 4 1 8 3v2c-23 4-48-1-67-14-12-9-19-19-22-34-2-28 8-50 27-71 1-2 3-4 5-6s4-4 5-6l3-3h2c1-1 1-3 2-4 20-19 44-35 69-48 1-1 3-2 4-2 14-8 29-15 44-21l9-3c36-15 74-26 112-34 1 0 2 0 3-1 17-3 17-3 24-3m571 110c-7 13-22 25-33 35l-3 3c-7 6-15 12-23 18-1 1-2 2-3 2-71 54-153 93-236 122-1 0-2 1-3 1-31 11-63 20-95 27-1 0-1 0-4 1-65 14-132 17-198 8 0-1-1-1-1-2 4-1 7-2 11-2 141-16 278-54 423-118 1 0 2-1 3-1 26-12 51-24 75-38 1 0 1 0 5-3 14-8 27-16 40-24 1-1 2-1 4-2 11-8 21-16 32-24 4-3 4-3 6-3"/><path fill="url(#a)" d="M532 329c35 18 68 41 97 68l9 6 12 12c3 3 6 6 10 9 3 3 6 5 8 8 36 34 36 34 56 42l-3-3-17-17c1-5 2-8 5-13 0-1 0-1 2-4 1-2 1-4 2-5 1-2 2-3 2-5 13-26 25-51 45-72 0-1 0-1 2-3 24-26 60-37 94-39 20-1 39 1 58 6 19 6 39 8 58 2-1 6-3 10-7 14-3 2-6 4-9 5 1 1 2 1 3 2 16 11 26 24 30 44 3 18 3 18 0 24h3c50-4 50-4 71 10 2 2 2 2 3 7-5 5-10 6-16 8-31 9-53 23-72 49-1 1-2 2-3 4-24 33-41 70-57 108-17 42-39 80-68 114-1 1-1 2-2 2-10 12-22 24-34 34-2 1-4 3-6 5-12 10-24 18-37 26-1 1-3 2-4 3-73 47-165 69-251 56-21-3-38 2-58 8-1 0-1 0-4 1-2 1-3 1-4 2-2 0-3 0-4 1-6 2-8 7-11 13-4 7-8 14-13 20l-3 3c-9 11-19 23-34 26-6 0-7 0-11-4-2-3-1-6-1-10v-3c-1 1-3 2-4 3-7 4-12 6-20 5-4-2-5-3-6-7 0-8 3-13 8-18h-3c-4-1-4-1-6-3-2-4-2-5-1-9 17-29 46-44 77-53-17-3-37-6-53 2-2 2-4 5-6 7-4 6-9 11-14 16l-3 3c-12 12-27 25-45 29-5 0-6 0-10-4-2-2-2-2-2-6 1-5 2-7 4-11-10 3-10 3-13 4-5 1-8 1-13 0-4-4-4-4-5-8 1-7 6-11 11-16-2-1-3-1-5-2l-2-2c1-11 11-18 19-25 18-16 40-27 63-35 5-2 9-4 13-8l4-4c-2 0-3-1-5-1-18-4-34-10-50-21v-3h3c33-3 64-17 86-42 3-3 6-7 8-11 3-3 6-7 10-10 2-3 4-5 6-8 6-7 13-14 19-21 2-1 3-2 4-3 7-7 14-14 22-20 2-2 4-4 6-5 32-27 68-49 104-69l3 3c9 7 20 10 32 12-2-1-3-2-5-3-24-15-41-37-55-62 0-1 0-1-3-5-5-8-9-16-14-25-15-27-32-52-51-76-1-1-2-3-3-4-6-8-13-15-19-23-4-4-8-9-12-14-1-1-2-2-3-4-12-15-12-15-12-23 1-4 1-4 3-6 25-15 74 11 97 22m288 38-3 3c-16 14-26 35-27 56 0 15 1 27 8 40 1 1 1 2 2 3 10 18 25 29 44 38 2 0 3 1 5 1v2l-3 1c-43 10-81 41-108 76-2 2-4 5-6 7-4 5-8 11-12 16-5 7-11 14-17 21-2 3-5 7-8 10-47 58-107 90-180 104-30 6-56 19-81 38-2 2-4 3-6 4-2 2-3 3-5 4 3 3 9 4 13 6 7 2 14 4 21 7 27 10 54 17 83 20h4c80 7 163-20 228-65 1-1 2-2 4-3 25-17 50-37 69-61 2-2 3-5 5-7 28-32 46-71 62-109 17-40 36-78 63-112-3-2-6-3-10-4-15-4-26-12-37-23 1-2 2-3 3-5 7-10 9-21 7-33-4-19-12-32-29-43-29-16-64-13-89 8"/><path fill="url(#c)" d="M985 405h3c0 2 1 4 1 6h4c49-5 49-5 67 7 4 4 4 4 6 7-1 2-1 3-2 5-1 0-2 1-4 1-3 1-6 2-10 3l-9 3c-19 6-35 15-49 30l-3 3-5 5-6 6c-3-1-5-3-8-4 1-5 2-7 6-11l-12-3c0-1-1-3-1-4 1-1 1-2 2-3 3-5 5-9 6-14 1-2 1-3 2-5 2-6 2-6 2-8l3-3c1-3 1-5 2-8 1-5 2-8 5-13"/><path fill="url(#d)" d="M308 782c1 0 1 1 2 1v4c1 1 3 1 4 2v2c2 0 3-1 5-1l2 2c8 8 15 11 26 11 3 1 7 3 10 4h5l3 1c-2 8-8 14-14 20-2 3-3 5-5 7-13 14-31 31-51 32-5 0-5 0-9-3-2-6 0-11 3-17q-4.5 0-9 3c-5 2-10 2-15 1-3-1-3-1-6-4-1-5 0-8 3-12 2-3 4-5 7-8l-6-3c0-2-1-4-1-6 10-12 21-23 35-31h3v-2c3-1 5-2 8-3"/><path fill="url(#e)" d="M393 824c1 1 2 1 3 2h4c6 1 7 3 11 6 3 1 7 2 10 3 1 1 2 1 4 2 3 1 3 1 8 2 6 1 7 2 10 7l-1 3h-2c-1 2-1 3-2 5-9 19-25 45-45 53-6 2-10 4-16 2-4-4-4-5-4-10 0-2 1-4 1-6-1 0-2 1-3 1-1 1-2 2-3 2-1 1-3 2-4 2-5 3-9 3-15 3-3-2-5-3-6-7 0-7 3-13 8-18-1 0-3-1-4-1-4-1-4-1-6-3-1-5 0-7 2-11 1-2 2-3 3-4s1-2 2-3l8-8c0-1 0-1 3-3 23-22 23-22 34-19"/><path fill="#0e1827" d="M880 387c10 6 19 13 23 25 1 7 1 12-2 18-4 5-8 8-15 8-8 0-11-2-16-7-4-9-3-17 0-25 2-4 2-4 6-8h2c-4-6-10-8-17-10h-15c2-4 2-4 5-6 10-3 20 1 29 5m-3 16c-2 2-2 2-2 6s0 4 4 8c5-3 5-3 6-6 0-3 0-3-3-8Z"/></g></svg>
diff --git a/packages/landing/public/robots.txt b/packages/landing/public/robots.txt
deleted file mode 100644
index 940060c2..00000000
--- a/packages/landing/public/robots.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-# PenguinHarness — https://penguin.ooo/ (landing at the root, docs under /docs/).
-# Everything here is public; nothing needs to be kept out of an index.
-User-agent: *
-Allow: /
-
-# Absolute by spec, and per-origin anyway, so the production domain is hardcoded even
-# though builds accept a SITE_ORIGIN override. scripts/build-site.mjs writes the file.
-Sitemap: https://penguin.ooo/sitemap.xml
diff --git a/packages/landing/scripts/capture-blog-013-shots.mjs b/packages/landing/scripts/capture-blog-013-shots.mjs
deleted file mode 100644
index 9157a01d..00000000
--- a/packages/landing/scripts/capture-blog-013-shots.mjs
+++ /dev/null
@@ -1,1165 +0,0 @@
-/**
- * Capture the 0.1.4 blog-post screenshots: the subagents panel (call graph + child
- * conversation) and goal mode (round loop + live status banner).
- *
- * Same machinery as capture-shots.mjs — a scripted mock LLM (Anthropic SSE and OpenAI
- * chat-completions SSE, whichever client AgentHub routes to), the built Web server on a
- * temp data root, real tool execution in a staged Workspace, Playwright screenshots
- * re-encoded to WebP inside Chromium — with two deliberately staged scenes:
- *
- * - AGENTS PANEL: the user asks for a benchmark review; the parent fans out to two named
- * agents (Data Analyst / Web Scout). The analyst's scoring script really runs in the
- * Workspace and streams real output into the panel's child conversation while both
- * children tick "running" in the call graph. Shot: chat + docked panel, analyst node
- * selected.
- * - GOAL MODE: a `POST /tasks` with `goal` drives a three-round "make the check suite
- * green" loop against a staged text-table module. Rounds 1-2 run and fix for real
- * (the check script converges over reruns so the loop has a believable multi-round
- * arc); round 3's slow verification run is the capture window, with the goal banner
- * showing "round 3 · tokens used/budget" above the composer.
- *
- * Files: {agents-panel,goal-mode}-<lang>-<theme>.webp (8 of them, zh + en, light + dark,
- * 1280x900 @1.5x like the other blog shots).
- *
- * Output is a two-step flow, because blog images are not committed to this repo:
- * 1. this script writes into the gitignored staging dir packages/landing/.blog-assets/;
- * 2. upload the files it produced to the `blog-assets/` directory of the sibling
- * `Prism-Shadow/penguin-harness-community` repo, which is what the posts load from
- * (the renderer resolves /blog-assets/<name> there — see src/lib/links.ts).
- *
- * Prereqs: `pnpm --filter @prismshadow/penguin-{skills,core,server,web} build` and
- * Playwright's chromium. Run: `node scripts/capture-blog-013-shots.mjs` (or
- * `pnpm --filter @prismshadow/penguin-landing blog-013-shots`).
- */
-import http from "node:http";
-import { spawn } from "node:child_process";
-import { mkdtempSync, mkdirSync, writeFileSync } from "node:fs";
-import os from "node:os";
-import path from "node:path";
-import { fileURLToPath } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const ROOT = path.resolve(HERE, "../../..");
-// Gitignored staging dir: these images are hosted in the community repo, not committed here.
-const OUT_DIR = path.resolve(HERE, "../.blog-assets");
-const MOCK_PORT = 8953; // Distinct from capture-shots (8940/8941) and blog-shots (8944).
-const SRV_PORT = 8952;
-// Pins the otherwise-random seeded admin password (PENGUIN_SEED_ADMIN_PASSWORD below).
-const ADMIN_PASSWORD = "penguin-0000";
-// The App is canonically served on `localhost` (127.0.0.1 is the Workspace-preview host).
-const BASE = `http://localhost:${SRV_PORT}`;
-const MOCK = `http://127.0.0.1:${MOCK_PORT}`;
-
-// ---------------------------------------------------------------------------
-// Scene scripts (zh + en). Commands are shared across languages (code is code)
-// and really execute in the staged Workspace.
-// ---------------------------------------------------------------------------
-
-const SCORE_CMD =
- "node scripts/score-runs.mjs --runs 41,42,43 --baseline reports/july-baseline.json";
-const CHECKS_CMD = "node scripts/run-checks.mjs";
-const SED_WIDTH =
- "sed -i 's/const w = String(value).length/const w = displayWidth(String(value))/' src/table.mjs";
-const SED_DATE_GUARD =
- "sed -i '/const d = new Date(value);/a\\ if (Number.isNaN(d.getTime())) return \"—\";' src/table.mjs";
-
-const SCENES = {
- en: {
- agents: {
- warmup: "What's in this workspace? One line.",
- warmupReply:
- "reports/ holds three benchmark runs (run-41 … run-43) plus the July baseline, and scripts/score-runs.mjs scores runs against a baseline.",
- prompt:
- "Compare our last three benchmark runs with the July baseline and double-check the published numbers — fan out to the right agents and keep it parallel.",
- parentThinking:
- "Two independent workstreams: scoring runs 41-43 against the July baseline, and verifying the published numbers. The data analyst takes the scoring, the web scout takes the verification, both in parallel.",
- analystPrompt:
- "Score benchmark runs 41-43 in reports/runs/ against the July baseline in reports/july-baseline.json, then chart the trend.",
- scoutPrompt:
- "Verify the published July baseline numbers against the release notes and note any discrepancy.",
- analystThinking:
- "Three run files and one baseline. Score each run suite by suite with the scoring script, then draw the trend from the per-run totals.",
- analystText: "Scoring the three runs against the July baseline:",
- scoutThinking:
- "The published numbers live in the release notes; the local copy sits in reports/july-baseline.json. Cross-check accuracy and case counts field by field.",
- scoutText:
- "Starting from the headline numbers: the published July baseline says 128 cases at 84.2% accuracy, which matches reports/july-baseline.json exactly. Per suite, data-analysis and web-research agree with the release notes to the decimal. The code-fix suite is published rounded to 82% against 82.1% locally — a display-precision difference, not a data discrepancy. Two items left before I can sign off: the report-writing case count appears once in the appendix table and once in the body, so both occurrences need to agree, and the trend chart's baseline anchor should match what the data analyst derives from the raw runs.\n\nChecking the appendix now. The appendix table lists report-writing at 24 cases, and the body paragraph says the same 24, so the earlier concern is cleared. The per-suite splits sum to the published 128-case total, and the weighted accuracy recomputed from the published splits lands on 84.2% — the headline number is internally consistent, not just copied. What remains is the baseline anchor: the release notes cite the July figure as the comparison point for the current runs, so the discrepancy note should state explicitly that both sides use the same 84.2% anchor, with the only published-versus-local difference being the rounded code-fix percentage. Drafting that note next, one line per verified field with its source.",
- title: "Benchmark vs July baseline",
- analystTitle: "Score runs vs baseline",
- scoutTitle: "Verify baseline numbers",
- },
- goal: {
- warmup: "What does this project contain?",
- warmupReply:
- "A small text-table module (src/table.mjs) and its check suite (scripts/run-checks.mjs) — 12 checks over column widths, alignment, dates and truncation.",
- objective:
- "Make scripts/run-checks.mjs pass all 12 checks: fix what it reports, rerun, and repeat until everything is green.",
- title: "Fix table check suite",
- rounds: [
- [
- {
- thinking:
- "First a full run of the suite to see the actual failure set before touching anything.",
- text: "Running the check suite to see where things stand.",
- exec: CHECKS_CMD,
- },
- {
- text: "Two of the three failures share one cause — cell width is computed from raw string length, which undercounts CJK glyphs. The third is the missing invalid-date guard. Fixing the width path first.",
- exec: SED_WIDTH,
- },
- { text: "Width fix is in. Rerunning next round before touching the date guard." },
- ],
- [
- { text: "Round 2 — rerunning the checks after the width fix.", exec: CHECKS_CMD },
- {
- text: "11 green, one left: the invalid-date guard. Adding it.",
- exec: SED_DATE_GUARD,
- },
- { text: "Guard in place — one more verification round." },
- ],
- [
- {
- thinking: "Width fix and date guard are both in; this pass should come back all green.",
- text: "Final verification pass — with the width fix and the date guard in place, all 12 checks should come back green.",
- exec: CHECKS_CMD,
- },
- // Post-capture only: the slow verification run yields to the background at
- // ~60s, so this step must not claim a result the run has not printed yet.
- {
- text: "The verification run is still going in the background — I'll confirm the summary line before touching the goal status.",
- },
- { text: "Waiting on the final summary line before marking the goal complete." },
- ],
- ],
- },
- },
- zh: {
- agents: {
- warmup: "这个工作区里有什么?一句话。",
- warmupReply:
- "reports/ 下是三次基准跑分(run-41 至 run-43)与七月基线,scripts/score-runs.mjs 用于对基线评分。",
- prompt:
- "把最近三次基准跑分与七月基线对比一下,并核对公开发布的数值——按需要派发给合适的智能体并行处理。",
- parentThinking:
- "两条互相独立的工作线:run-41 至 run-43 对比七月基线评分、公开数值核对。评分交给数据分析师,核对交给网页调研员,并行推进。",
- analystPrompt:
- "对 reports/runs/ 下的 run-41 至 run-43 三次跑分逐套件评分,与 reports/july-baseline.json 的七月基线对比,并生成趋势图。",
- scoutPrompt: "核对七月基线的公开发布数值与本地口径是否一致,如有出入记录差异。",
- analystThinking: "三份跑分文件加一份基线。先用评分脚本逐套件打分,再由各次总分画出趋势。",
- analystText: "开始对三次跑分逐套件评分,与七月基线对比:",
- scoutThinking:
- "公开数值在发布说明里,本地口径在 reports/july-baseline.json。逐字段交叉核对准确率与题目数。",
- scoutText:
- "先核对总口径:公开发布的七月基线为 128 题、准确率 84.2%,与本地 reports/july-baseline.json 完全一致。分套件看,data-analysis 与 web-research 的通过数与发布说明逐位吻合;code-fix 套件公开口径四舍五入报 82%,本地为 82.1%,属展示精度差异而非数据出入。签发核对结论前还剩两项:report-writing 的题目数在附录表与正文各出现一次,需确认两处一致;趋势图引用的基线锚点也要与数据分析师从原始跑分推出的数值对齐。\n\n附录核对进行中:附录表中 report-writing 为 24 题,正文同为 24 题,此前的疑点排除。各套件题目数合计恰为公开口径的 128 题;按公开分套件数据重新加权计算的准确率同样落在 84.2%,说明总口径不是简单转抄而是内部自洽的。剩下基线锚点一项:发布说明以七月数字作为本期跑分的对比基准,核对结论里应明确写出两侧使用同一个 84.2% 锚点,公开与本地的唯一差异是 code-fix 的四舍五入展示。接下来起草核对纪要,每个已验证字段一行并附来源。",
- title: "基准对比七月基线",
- analystTitle: "跑分对比评分",
- scoutTitle: "基线数值核对",
- },
- goal: {
- warmup: "这个项目里有什么?",
- warmupReply:
- "一个小型文本表格模块(src/table.mjs)和它的检查套件(scripts/run-checks.mjs),共 12 项检查,覆盖列宽、对齐、日期与截断。",
- objective: "让 scripts/run-checks.mjs 的 12 项检查全部通过:按报告修复、重跑,循环直到全绿。",
- title: "修复表格检查套件",
- rounds: [
- [
- {
- thinking: "先完整跑一遍套件,确认真实的失败集合,再动手修改。",
- text: "先跑一遍检查,确认目前的通过情况。",
- exec: CHECKS_CMD,
- },
- {
- text: "三项失败里有两项同因:单元格宽度按字符数计算,CJK 字宽被低估;另一项是缺失的非法日期兜底。先修宽度。",
- exec: SED_WIDTH,
- },
- { text: "宽度修复已提交。下一轮先重跑验证,再处理日期兜底。" },
- ],
- [
- { text: "第二轮——宽度修复后重跑检查。", exec: CHECKS_CMD },
- { text: "11 项通过,只剩非法日期兜底一项。补上。", exec: SED_DATE_GUARD },
- { text: "兜底已加,再做一轮最终验证。" },
- ],
- [
- {
- thinking: "宽度与日期两处都已修复,这一轮应当全绿。",
- text: "最后一轮验证——宽度修复与日期兜底都已就位,预期 12 项全部通过。",
- exec: CHECKS_CMD,
- },
- // Post-capture only: the slow verification run yields to the background at
- // ~60s, so this step must not claim a result the run has not printed yet.
- { text: "验证仍在后台运行——等汇总行出来后再确认目标状态。" },
- { text: "等待最终汇总行后再把目标标记为完成。" },
- ],
- ],
- },
- },
-};
-
-/** Per-language demo users (same ids/agents as capture-shots.mjs, so sidebars stay monolingual). */
-const USERS = {
- zh: {
- userId: "demo",
- agents: [
- {
- agentId: "data_analyst",
- name: "数据分析师",
- description: "面向 CSV / Excel 的数据分析、图表与报表生成",
- },
- { agentId: "web_scout", name: "网页调研员", description: "网页检索、信息核对与调研纪要整理" },
- {
- agentId: "agent_optimizer",
- name: "Agent 优化师",
- description: "评估其他 Agent 的表现并迭代其提示词与技能",
- },
- ],
- analystNode: "数据分析师 · 运行中",
- panelTitle: "智能体面板",
- topologyLabel: "调用关系",
- round3: "第 3 轮 · tokens",
- round3Text: "最后一轮验证",
- },
- en: {
- userId: "alex",
- agents: [
- {
- agentId: "data_analyst",
- name: "Data Analyst",
- description: "CSV / Excel analysis, charts and report generation",
- },
- {
- agentId: "web_scout",
- name: "Web Scout",
- description: "Web research, fact checking and note-taking",
- },
- {
- agentId: "agent_optimizer",
- name: "Agent Optimizer",
- description: "Evaluates other Agents and iterates their prompts and Skills",
- },
- ],
- analystNode: "Data Analyst · running",
- panelTitle: "Agents panel",
- topologyLabel: "Call graph",
- round3: "round 3 · tokens",
- round3Text: "Final verification pass",
- },
-};
-
-// ---------------------------------------------------------------------------
-// Staged Workspaces: real files, really executed by the conversation's commands.
-// ---------------------------------------------------------------------------
-
-/** Benchmark-review Workspace (agents-panel scene): three run reports, a baseline, a paced scorer. */
-function stageBenchWorkspace(dir) {
- mkdirSync(path.join(dir, "reports/runs"), { recursive: true });
- mkdirSync(path.join(dir, "scripts"), { recursive: true });
- const baseline = { suite: "penguin-bench", period: "2026-07", cases: 128, accuracy: 0.842 };
- writeFileSync(path.join(dir, "reports/july-baseline.json"), JSON.stringify(baseline, null, 2));
- const runs = {
- 41: { date: "2026-07-24", suites: [38, 27, 24, 20] },
- 42: { date: "2026-07-25", suites: [39, 28, 24, 20] },
- 43: { date: "2026-07-26", suites: [40, 28, 25, 20] },
- };
- const names = ["data-analysis", "web-research", "code-fix", "report-writing"];
- const sizes = [44, 32, 28, 24];
- for (const [id, run] of Object.entries(runs)) {
- writeFileSync(
- path.join(dir, `reports/runs/run-${id}.json`),
- JSON.stringify(
- {
- run: Number(id),
- date: run.date,
- cases: 128,
- suites: names.map((name, i) => ({ name, cases: sizes[i], passed: run.suites[i] })),
- },
- null,
- 2,
- ),
- );
- }
- // Paced on purpose: one line every ~2.5s keeps the tool card visibly streaming for the
- // whole capture window (the numbers themselves are computed from the report files).
- writeFileSync(
- path.join(dir, "scripts/score-runs.mjs"),
- `// Score benchmark runs against a baseline and chart the trend.
-import fs from "node:fs";
-const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
-const args = process.argv.slice(2);
-const runs = (args[args.indexOf("--runs") + 1] ?? "").split(",");
-const baseline = JSON.parse(fs.readFileSync(args[args.indexOf("--baseline") + 1], "utf8"));
-const pct = (x) => (x * 100).toFixed(1) + "%";
-console.log(\`[score] baseline \${baseline.period}: \${pct(baseline.accuracy)} over \${baseline.cases} cases\`);
-const totals = [];
-for (const id of runs) {
- const run = JSON.parse(fs.readFileSync(\`reports/runs/run-\${id}.json\`, "utf8"));
- await sleep(4000);
- console.log(\`[score] run-\${id}: parsing \${run.cases} cases from \${run.date}\`);
- for (const s of run.suites) {
- await sleep(4200);
- console.log(\`[score] \${s.name}: \${pct(s.passed / s.cases)} (\${s.passed}/\${s.cases})\`);
- }
- const acc = run.suites.reduce((n, s) => n + s.passed, 0) / run.cases;
- totals.push([id, acc]);
- const d = (acc - baseline.accuracy) * 100;
- await sleep(3500);
- console.log(\`[score] run-\${id} overall: \${pct(acc)} (\${d >= 0 ? "+" : ""}\${d.toFixed(1)} vs baseline)\`);
-}
-await sleep(3000);
-const bars = totals.map(([id, acc]) => \`[score] run-\${id} \${"#".repeat(Math.round((acc - 0.8) * 200))} \${pct(acc)}\`);
-console.log("[score] trend (accuracy above 80%):");
-for (const b of bars) console.log(b);
-const w = 420, h = 160;
-const pts = totals.map(([, acc], i) => \`\${40 + i * 170},\${h - 20 - (acc - 0.8) * 1200}\`).join(" ");
-fs.writeFileSync(
- "reports/trend.svg",
- \`<svg xmlns="http://www.w3.org/2000/svg" width="\${w}" height="\${h}"><polyline points="\${pts}" fill="none" stroke="#2563eb" stroke-width="2"/></svg>\`,
-);
-console.log("[score] wrote reports/trend.svg");
-`,
- );
-}
-
-/** Text-table Workspace (goal-mode scene): a small module plus a check suite that converges over reruns. */
-function stageTableWorkspace(dir) {
- mkdirSync(path.join(dir, "src"), { recursive: true });
- mkdirSync(path.join(dir, "scripts"), { recursive: true });
- // The two bugs the goal loop "fixes" are real sed targets: raw string length as cell
- // width, and a missing invalid-date guard.
- writeFileSync(
- path.join(dir, "src/table.mjs"),
- `/** Minimal text-table renderer: fixed-width columns, ISO dates, CJK-aware truncation. */
-export function displayWidth(s) {
- let w = 0;
- for (const ch of s) w += /[\\u2E80-\\uA4CF\\uAC00-\\uD7A3\\uF900-\\uFAFF\\uFE30-\\uFE4F\\uFF00-\\uFF60\\uFFE0-\\uFFE6]/.test(ch) ? 2 : 1;
- return w;
-}
-
-export function cellWidth(value) {
- const w = String(value).length;
- return w;
-}
-
-export function formatDate(value) {
- const d = new Date(value);
- return d.toISOString().slice(0, 10);
-}
-
-export function renderTable(headers, rows) {
- const widths = headers.map((h, i) =>
- Math.max(cellWidth(h), ...rows.map((r) => cellWidth(r[i] ?? ""))),
- );
- const pad = (v, w) => String(v) + " ".repeat(Math.max(0, w - cellWidth(v)));
- const line = (cells) => "| " + cells.map((c, i) => pad(c, widths[i])).join(" | ") + " |";
- const rule = "|" + widths.map((w) => "-".repeat(w + 2)).join("|") + "|";
- return [line(headers), rule, ...rows.map(line)].join("\\n");
-}
-`,
- );
- // Staged fixture: the suite converges over reruns (3 failed -> 1 failed -> green) so the
- // goal loop has a believable multi-round arc inside one capture run.
- writeFileSync(
- path.join(dir, "scripts/run-checks.mjs"),
- `// Check suite for src/table.mjs (12 checks).
-import fs from "node:fs";
-const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
-fs.mkdirSync(".cache", { recursive: true });
-let n = 1;
-try { n = Number(fs.readFileSync(".cache/checks-runs", "utf8").trim()) + 1; } catch {}
-fs.writeFileSync(".cache/checks-runs", String(n));
-const CHECKS = [
- ["column widths · ascii"],
- ["column widths · cjk", 1, 'expected column width 22, got 16 (CJK glyphs counted as width 1)'],
- ["column widths · mixed"],
- ["header underline length"],
- ["alignment · right-aligned numbers"],
- ["alignment · padded cjk cells", 1, "padding computed from string length, not display width"],
- ["date column · iso format"],
- ["date column · invalid date guard", 2, 'expected "—" for invalid input, got "NaN-aN-aN"'],
- ["truncation · long cell ellipsis"],
- ["truncation · cjk boundary"],
- ["empty table renders header"],
- ["single-row table"],
-];
-const pace = n >= 3 ? 6000 : 650;
-console.log("[checks] src/table.mjs · 12 checks");
-let failed = 0;
-for (const [name, failUntil, detail] of CHECKS) {
- await sleep(pace);
- if (!failUntil || n > failUntil) console.log(\` ✓ \${name}\`);
- else { failed += 1; console.log(\` ✗ \${name} — \${detail}\`); }
-}
-await sleep(600);
-console.log(failed ? \`\${failed} failed · \${12 - failed} passed (12 checks)\` : "12 passed (12 checks)");
-process.exit(failed ? 1 : 0);
-`,
- );
-}
-
-// ---------------------------------------------------------------------------
-// Mock LLM: request -> turn descriptor (pure), then per-protocol SSE emitters.
-// ---------------------------------------------------------------------------
-
-/** True when any of the scene's language variants contains `marker` in `flat`. */
-function langOf(flat, pick) {
- if (flat.includes(pick(SCENES.en))) return "en";
- if (flat.includes(pick(SCENES.zh))) return "zh";
- return null;
-}
-
-/**
- * Decide the turn for one request. `messages` is the raw request message list,
- * `toolMarker` the protocol's tool-result fingerprint ('"tool_result"' / '"role":"tool"').
- */
-function decideTurn(messages, toolMarker) {
- const flat = JSON.stringify(messages);
- const toolResults = flat.split(toolMarker).length - 1;
-
- // Titles: keyed per conversation (warm-up markers for the two main sessions — the money
- // prompts arrive after the title exists — child prompts for the child sessions).
- if (flat.includes("concise title")) {
- for (const [pick, title] of [
- [(s) => s.agents.warmup, (s) => s.agents.title],
- [(s) => s.goal.warmup, (s) => s.goal.title],
- [(s) => s.agents.analystPrompt, (s) => s.agents.analystTitle],
- [(s) => s.agents.scoutPrompt, (s) => s.agents.scoutTitle],
- ]) {
- const lang = langOf(flat, pick);
- if (lang) return { kind: "title", text: title(SCENES[lang]) };
- }
- return { kind: "title", text: "Conversation" };
- }
-
- // Goal scene: every round's protocol message embeds the goal file's JSON (`"round": N`).
- {
- const lang = langOf(flat, (s) => s.goal.objective);
- if (lang) {
- const scene = SCENES[lang].goal;
- const rounds = [...flat.matchAll(/"round": (\d+)/g)].map((m) => Number(m[1]));
- const round = Math.max(1, ...rounds);
- let lastRoundIdx = 0;
- messages.forEach((m, i) => {
- if (/"round\\?": /.test(JSON.stringify(m))) lastRoundIdx = i;
- });
- const pos = messages
- .slice(lastRoundIdx + 1)
- .filter((m) => JSON.stringify(m).includes(toolMarker)).length;
- const steps = scene.rounds[Math.min(round, scene.rounds.length) - 1];
- const step = { ...steps[Math.min(pos, steps.length - 1)] };
- return {
- kind: "turn",
- ...step,
- usage: { input: 2100, cachePerMsg: 1800, cacheWrite: 850, output: step.exec ? 260 : 540 },
- };
- }
- }
-
- // Agents scene, child sessions first (their context lacks the parent's own prompt).
- for (const lang of ["en", "zh"]) {
- const scene = SCENES[lang].agents;
- if (flat.includes(scene.prompt)) {
- // Parent conversation: one turn fans out BOTH children as parallel tool calls (both
- // stay inside their yield windows, so both call-graph nodes tick "running"); the
- // wrap-up below is only reached if capture overruns the windows.
- if (toolResults === 0) {
- return {
- kind: "turn",
- thinking: scene.parentThinking,
- subs: [
- { agentId: "data_analyst", prompt: scene.analystPrompt },
- { agentId: "web_scout", prompt: scene.scoutPrompt },
- ],
- usage: { input: 420, cachePerMsg: 2100, cacheWrite: 640, output: 190 },
- };
- }
- return {
- kind: "turn",
- text:
- lang === "zh"
- ? "两路结果已汇总:三次跑分相对七月基线稳步上升,公开数值与本地口径一致。"
- : "Both tracks are in: the three runs climb steadily over the July baseline, and the published numbers match the local reports.",
- usage: { input: 480, cachePerMsg: 2100, cacheWrite: 640, output: 320 },
- };
- }
- if (flat.includes(scene.analystPrompt)) {
- if (toolResults === 0) {
- return {
- kind: "turn",
- thinking: scene.analystThinking,
- text: scene.analystText,
- exec: SCORE_CMD,
- usage: { input: 390, cachePerMsg: 1400, cacheWrite: 520, output: 180 },
- };
- }
- // Post-capture only (the exec yields to the background at ~60s): stay honest about
- // the still-running script rather than claiming completion.
- return {
- kind: "turn",
- text:
- lang === "zh"
- ? "评分脚本仍在后台运行,完成后我再汇总数字与趋势图。"
- : "The scoring script is still running in the background; I'll summarize the numbers and the trend chart once it completes.",
- usage: { input: 410, cachePerMsg: 1400, cacheWrite: 520, output: 160 },
- };
- }
- if (flat.includes(scene.scoutPrompt)) {
- // Held-open drip: the scout keeps writing its verification notes slowly so its call-graph
- // node stays "running" (elapsed ticking) for the whole capture window.
- return {
- kind: "drip",
- thinking: scene.scoutThinking,
- text: scene.scoutText,
- usage: { input: 380, cachePerMsg: 1300, cacheWrite: 500, output: 420 },
- };
- }
- if (flat.includes(scene.warmup)) {
- return {
- kind: "turn",
- text: scene.warmupReply,
- usage: { input: 350, cachePerMsg: 900, cacheWrite: 380, output: 90 },
- };
- }
- if (flat.includes(SCENES[lang].goal.warmup)) {
- return {
- kind: "turn",
- text: SCENES[lang].goal.warmupReply,
- usage: { input: 350, cachePerMsg: 900, cacheWrite: 380, output: 100 },
- };
- }
- }
-
- return {
- kind: "turn",
- text: "OK.",
- usage: { input: 300, cachePerMsg: 800, cacheWrite: 300, output: 20 },
- };
-}
-
-/** Tool calls for a turn: one exec_command, or one run_subagent per `subs` entry. */
-function toolCalls(turn) {
- if (turn.exec) return [{ name: "exec_command", json: JSON.stringify({ cmd: turn.exec }) }];
- return (turn.subs ?? []).map(({ agentId, prompt, yieldMs }) => ({
- name: "run_subagent",
- json: JSON.stringify({
- agent_id: agentId,
- prompt,
- ...(yieldMs ? { yield_time_ms: yieldMs } : {}),
- }),
- }));
-}
-
-/** Guarded SSE write (drip streams outlive aborted clients). */
-function sseWrite(res, chunk) {
- if (res.destroyed || res.writableEnded) return false;
- res.write(chunk);
- return true;
-}
-
-function sse(res, event, data) {
- sseWrite(res, `event: ${event}\ndata: ${JSON.stringify(data)}\n\n`);
-}
-
-function anthropicReply(res, body) {
- const messages = body.messages ?? [];
- const turn = decideTurn(messages, '"tool_result"');
- const usage = turn.usage ?? { input: 300, cachePerMsg: 800, cacheWrite: 300, output: 20 };
-
- res.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache" });
- sse(res, "message_start", {
- type: "message_start",
- message: {
- id: `msg_shot_${Date.now()}`,
- type: "message",
- role: "assistant",
- model: "deepseek-v4-pro",
- content: [],
- stop_reason: null,
- stop_sequence: null,
- usage: {
- input_tokens: usage.input,
- output_tokens: 0,
- cache_read_input_tokens: usage.cachePerMsg * messages.length,
- cache_creation_input_tokens: usage.cacheWrite,
- },
- },
- });
-
- const block = (index, start, deltas, extra) => {
- sse(res, "content_block_start", { type: "content_block_start", index, content_block: start });
- for (const d of deltas)
- sse(res, "content_block_delta", { type: "content_block_delta", index, delta: d });
- if (extra)
- sse(res, "content_block_delta", { type: "content_block_delta", index, delta: extra });
- sse(res, "content_block_stop", { type: "content_block_stop", index });
- };
- const finish = (stopReason) => {
- sse(res, "message_delta", {
- type: "message_delta",
- delta: { stop_reason: stopReason, stop_sequence: null },
- usage: { output_tokens: usage.output },
- });
- sse(res, "message_stop", { type: "message_stop" });
- res.end();
- };
-
- if (turn.kind === "title") {
- block(0, { type: "text", text: "" }, [{ type: "text_delta", text: turn.text }]);
- finish("end_turn");
- return;
- }
-
- if (turn.kind === "drip") {
- // thinking deltas every ~500ms, then small text pieces every ~2.4s: enough material to
- // keep the child visibly streaming (and its node "running") for the whole capture
- // window; the task is aborted by the capture flow before the material runs out.
- const thinks = turn.thinking.match(/[\s\S]{1,12}/g) ?? [];
- const texts = turn.text.match(/[\s\S]{1,8}/g) ?? [];
- let step = 0;
- sse(res, "content_block_start", {
- type: "content_block_start",
- index: 0,
- content_block: { type: "thinking", thinking: "" },
- });
- const tick = () => {
- if (res.destroyed || res.writableEnded) return;
- if (step < thinks.length) {
- sse(res, "content_block_delta", {
- type: "content_block_delta",
- index: 0,
- delta: { type: "thinking_delta", thinking: thinks[step] },
- });
- step += 1;
- setTimeout(tick, 500);
- return;
- }
- if (step === thinks.length) {
- sse(res, "content_block_delta", {
- type: "content_block_delta",
- index: 0,
- delta: { type: "signature_delta", signature: "sig_shot" },
- });
- sse(res, "content_block_stop", { type: "content_block_stop", index: 0 });
- sse(res, "content_block_start", {
- type: "content_block_start",
- index: 1,
- content_block: { type: "text", text: "" },
- });
- }
- const i = step - thinks.length;
- if (i < texts.length) {
- sse(res, "content_block_delta", {
- type: "content_block_delta",
- index: 1,
- delta: { type: "text_delta", text: texts[i] },
- });
- step += 1;
- setTimeout(tick, 2400);
- }
- // Out of material: hold the stream open (no message_stop) — capture aborts the task.
- };
- tick();
- return;
- }
-
- let index = 0;
- if (turn.thinking) {
- block(
- index++,
- { type: "thinking", thinking: "" },
- (turn.thinking.match(/[\s\S]{1,18}/g) ?? []).map((t) => ({
- type: "thinking_delta",
- thinking: t,
- })),
- { type: "signature_delta", signature: "sig_shot" },
- );
- }
- if (turn.text) {
- block(
- index++,
- { type: "text", text: "" },
- (turn.text.match(/[\s\S]{1,24}/g) ?? []).map((t) => ({ type: "text_delta", text: t })),
- );
- }
- const calls = toolCalls(turn);
- if (calls.length > 0) {
- for (const [i, { name, json }] of calls.entries()) {
- block(
- index++,
- { type: "tool_use", id: `toolu_shot_${Date.now()}_${i}`, name, input: {} },
- (json.match(/[\s\S]{1,32}/g) ?? []).map((partial_json) => ({
- type: "input_json_delta",
- partial_json,
- })),
- );
- }
- finish("tool_use");
- } else {
- finish("end_turn");
- }
-}
-
-function openaiReply(res, body) {
- const messages = body.messages ?? [];
- const turn = decideTurn(messages, '"role":"tool"');
- const usage = turn.usage ?? { input: 300, cachePerMsg: 800, cacheWrite: 300, output: 20 };
- const hit = usage.cachePerMsg * messages.length;
- const prompt = hit + usage.input + usage.cacheWrite;
-
- res.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache" });
- const chunk = (delta, finishReason = null, withUsage) => {
- const payload = {
- id: "chatcmpl-shot",
- object: "chat.completion.chunk",
- created: Math.floor(Date.now() / 1000),
- model: "deepseek-v4-pro",
- choices: [{ index: 0, delta, finish_reason: finishReason }],
- };
- if (withUsage) {
- payload.usage = {
- prompt_tokens: prompt,
- completion_tokens: usage.output,
- total_tokens: prompt + usage.output,
- prompt_cache_hit_tokens: hit,
- prompt_cache_miss_tokens: usage.input + usage.cacheWrite,
- };
- }
- sseWrite(res, `data: ${JSON.stringify(payload)}\n\n`);
- };
- const done = (reason) => {
- chunk({}, reason, true);
- sseWrite(res, "data: [DONE]\n\n");
- res.end();
- };
-
- chunk({ role: "assistant" });
- if (turn.kind === "title") {
- chunk({ content: turn.text });
- done("stop");
- return;
- }
-
- if (turn.kind === "drip") {
- const thinks = turn.thinking.match(/[\s\S]{1,12}/g) ?? [];
- const texts = turn.text.match(/[\s\S]{1,8}/g) ?? [];
- let step = 0;
- const tick = () => {
- if (res.destroyed || res.writableEnded) return;
- if (step < thinks.length) {
- chunk({ reasoning_content: thinks[step] });
- step += 1;
- setTimeout(tick, 500);
- return;
- }
- const i = step - thinks.length;
- if (i < texts.length) {
- chunk({ content: texts[i] });
- step += 1;
- setTimeout(tick, 2400);
- }
- // Hold open once out of material (no finish chunk).
- };
- tick();
- return;
- }
-
- if (turn.thinking)
- for (const t of turn.thinking.match(/[\s\S]{1,18}/g) ?? []) chunk({ reasoning_content: t });
- if (turn.text) for (const t of turn.text.match(/[\s\S]{1,24}/g) ?? []) chunk({ content: t });
- const calls = toolCalls(turn);
- if (calls.length > 0) {
- for (const [i, { name, json }] of calls.entries()) {
- chunk({
- tool_calls: [
- {
- index: i,
- id: `call_shot_${Date.now()}_${i}`,
- type: "function",
- function: { name, arguments: "" },
- },
- ],
- });
- for (const part of json.match(/[\s\S]{1,32}/g) ?? []) {
- chunk({ tool_calls: [{ index: i, function: { arguments: part } }] });
- }
- }
- done("tool_calls");
- } else {
- done("stop");
- }
-}
-
-function startMock() {
- const server = http.createServer((req, res) => {
- if (req.method !== "POST") {
- res.writeHead(404).end();
- return;
- }
- let body = "";
- req.on("data", (c) => (body += c));
- req.on("end", () => {
- let json = {};
- try {
- json = JSON.parse(body);
- } catch {}
- try {
- if (req.url?.includes("chat/completions")) return openaiReply(res, json);
- if (req.url?.includes("messages")) return anthropicReply(res, json);
- console.log(`[mock] unexpected path ${req.url}`);
- res.writeHead(404).end();
- } catch (err) {
- console.error("[mock] reply error:", err);
- try {
- res.end();
- } catch {}
- }
- });
- });
- return new Promise((resolve) => server.listen(MOCK_PORT, "127.0.0.1", () => resolve(server)));
-}
-
-// ---------------------------------------------------------------------------
-// Server + API helpers (same shape as capture-shots.mjs).
-// ---------------------------------------------------------------------------
-
-async function waitFor(url, tries = 60) {
- for (let i = 0; i < tries; i++) {
- try {
- const res = await fetch(url);
- if (res.ok) return;
- } catch {}
- await new Promise((r) => setTimeout(r, 500));
- }
- throw new Error(`server not ready: ${url}`);
-}
-
-async function api(cookie, method, url, body) {
- const res = await fetch(`${BASE}${url}`, {
- method,
- headers: { "content-type": "application/json", ...(cookie ? { cookie } : {}) },
- ...(body ? { body: JSON.stringify(body) } : {}),
- });
- if (!res.ok) throw new Error(`${method} ${url} -> ${res.status} ${await res.text()}`);
- return { json: await res.json().catch(() => ({})), setCookie: res.headers.get("set-cookie") };
-}
-
-async function login(userId, password) {
- const { setCookie } = await api(null, "POST", "/api/auth/login", { userId, password });
- if (!setCookie) throw new Error("no session cookie from login");
- return setCookie.split(";")[0];
-}
-
-/** Provision a per-language user with the mock model + named Agents; password rotated once. */
-async function provisionUser(adminCookie, lang) {
- const { userId, agents } = USERS[lang];
- const initial = `${userId}12345`;
- await api(adminCookie, "POST", "/api/admin/users", { userId, password: initial }).catch((e) => {
- if (!String(e).includes("409")) throw e;
- });
- let password = initial;
- let cookie = await login(userId, initial);
- try {
- await api(cookie, "PUT", "/api/me/password", {
- oldPassword: initial,
- newPassword: `penguin-${userId}-2026`,
- });
- password = `penguin-${userId}-2026`;
- } catch {}
- cookie = await login(userId, password);
-
- const projects = (await api(cookie, "GET", "/api/projects")).json;
- const projectId = projects.projects[0].projectId;
- await api(cookie, "PUT", `/api/projects/${projectId}/models`, {
- defaultModel: { provider: "deepseek", modelId: "deepseek-v4-pro" },
- models: [
- {
- provider: "deepseek",
- modelId: "deepseek-v4-pro",
- apiKey: "sk-demo",
- baseUrl: MOCK,
- contextWindow: 1000000,
- pricing: { cacheRead: 0.003571, cacheWrite: 0.428571, output: 0.857143 },
- },
- ],
- });
- for (const agent of agents) {
- await api(cookie, "POST", `/api/projects/${projectId}/agents`, agent).catch((e) => {
- if (!String(e).includes("409")) throw e;
- });
- }
- return { cookie, password, projectId, userId };
-}
-
-/** Create a session bound to the mock model in the given Workspace dir. */
-async function createSession(user, workspace) {
- const sess = (
- await api(
- user.cookie,
- "POST",
- `/api/projects/${user.projectId}/agents/default_agent/sessions`,
- {
- provider: "deepseek",
- modelId: "deepseek-v4-pro",
- approvalMode: "allow-all",
- workspace,
- },
- )
- ).json;
- return sess.session.sessionId;
-}
-
-/** Run one quick task so the session gets its generated title before the money shot. */
-async function warmup(user, sessionId, text, doneMarker, page) {
- await api(user.cookie, "POST", `/api/sessions/${sessionId}/tasks`, {
- input: [{ type: "text", text }],
- });
- await page.getByText(doneMarker).first().waitFor({ timeout: 30000 });
- await page.waitForTimeout(1500); // title generation is post-Task; give it a beat
-}
-
-// ---------------------------------------------------------------------------
-// Main.
-// ---------------------------------------------------------------------------
-
-const dataRoot = mkdtempSync(path.join(os.tmpdir(), "penguin-blog013-"));
-mkdirSync(OUT_DIR, { recursive: true });
-
-const mock = await startMock();
-console.log(`[blog-013] mock LLM on ${MOCK}`);
-
-const srv = spawn("node", [path.join(ROOT, "packages/server/dist/index.js")], {
- env: {
- ...process.env,
- PENGUIN_HOME: path.join(dataRoot, "home"),
- PENGUIN_WEB_DB: path.join(dataRoot, "web.db"),
- PENGUIN_WEB_DIST: path.join(ROOT, "packages/web/dist"),
- PORT: String(SRV_PORT),
- HOST: "127.0.0.1",
- PENGUIN_SEED_ADMIN_PASSWORD: ADMIN_PASSWORD,
- },
- stdio: ["ignore", "pipe", "pipe"],
-});
-srv.stderr.on("data", (d) => process.stderr.write(`[srv!] ${d}`));
-const cleanup = () => {
- try {
- srv.kill();
- } catch {}
- try {
- mock.close();
- } catch {}
-};
-process.on("exit", cleanup);
-
-try {
- await waitFor(`${BASE}/`);
- console.log(`[blog-013] server ready on ${BASE}`);
-
- const adminCookie = await login("admin", ADMIN_PASSWORD);
- const browser = await chromium.launch();
-
- // WebP encoder: Chromium re-encodes the PNG screenshot via canvas (capture-shots convention).
- const encoderPage = await browser.newPage();
- async function saveWebp(pngBuffer, fileName) {
- const dataUrl = await encoderPage.evaluate(async (b64) => {
- const img = new Image();
- img.src = `data:image/png;base64,${b64}`;
- await img.decode();
- const canvas = document.createElement("canvas");
- canvas.width = img.width;
- canvas.height = img.height;
- canvas.getContext("2d").drawImage(img, 0, 0);
- return canvas.toDataURL("image/webp", 0.82);
- }, pngBuffer.toString("base64"));
- writeFileSync(path.join(OUT_DIR, fileName), Buffer.from(dataUrl.split(",")[1], "base64"));
- console.log(`[blog-013] ${fileName}`);
- }
-
- /** New logged-in context+page at 1280x900 @1.5x with theme/lang/panel-width preset. */
- async function openPage(user, lang, theme, url) {
- const context = await browser.newContext({
- viewport: { width: 1280, height: 900 },
- deviceScaleFactor: 1.5,
- locale: lang === "zh" ? "zh-CN" : "en-US",
- });
- await context.addInitScript(
- ([t, l]) => {
- localStorage.setItem("penguin.theme", t);
- localStorage.setItem("penguin.lang", l);
- localStorage.setItem("penguin.subagentsPanelWidth", "430");
- },
- [theme, lang],
- );
- const page = await context.newPage();
- globalThis.__page = page; // last opened page, for the failure dump below
- await page.goto(`${BASE}/login`);
- const loginRes = await page.request.post(`${BASE}/api/auth/login`, {
- data: { userId: user.userId, password: user.password },
- });
- if (!loginRes.ok()) throw new Error(`browser login failed: ${loginRes.status()}`);
- await page.goto(url);
- return { context, page };
- }
-
- /**
- * Screenshot BOTH themes concurrently: exec_command / run_subagent yield to the
- * background at ~60s (DEFAULT_EXEC_YIELD_MS and the tools' timeouts), and a
- * backgrounded child renders as "done" — everything is visibly live only inside that
- * first minute, so the two shots must land inside the same window, not sequentially.
- */
- async function captureBothThemes(user, lang, url, fileBase, prep) {
- const pages = await Promise.all(
- ["light", "dark"].map((theme) => openPage(user, lang, theme, url)),
- );
- try {
- await Promise.all(
- pages.map(async ({ page }, i) => {
- try {
- await prep(page);
- } catch (err) {
- // Dump THIS page before the contexts close (the global catch fires too late).
- const dump = process.env.SHOT_DEBUG_DIR || os.tmpdir();
- const tag = `${fileBase}-${lang}-${["light", "dark"][i]}`;
- await page
- .screenshot()
- .then((buf) => writeFileSync(path.join(dump, `fail-${tag}.png`), buf))
- .catch(() => {});
- await page
- .evaluate(() => document.body.innerText)
- .then((text) => writeFileSync(path.join(dump, `fail-${tag}.txt`), text))
- .catch(() => {});
- throw err;
- }
- await page.waitForTimeout(2000);
- await saveWebp(
- await page.screenshot(),
- `${fileBase}-${lang}-${["light", "dark"][i]}.webp`,
- );
- }),
- );
- } finally {
- for (const { context } of pages) await context.close();
- }
- }
-
- for (const lang of ["zh", "en"]) {
- const user = await provisionUser(adminCookie, lang);
- const scene = SCENES[lang];
- const ui = USERS[lang];
- const wsRoot = path.join(dataRoot, "ws", lang);
-
- // ---- Scene 1: agents panel --------------------------------------------------------
- {
- const ws = path.join(wsRoot, "benchmark-review");
- mkdirSync(ws, { recursive: true });
- stageBenchWorkspace(ws);
- const sessionId = await createSession(user, ws);
-
- // Drive once: warm-up for the title, then the fan-out prompt via the composer.
- const driver = await openPage(user, lang, "light", `${BASE}/chat/${sessionId}`);
- await warmup(user, sessionId, scene.agents.warmup, "score-runs", driver.page);
- const input = driver.page.getByPlaceholder(/输入消息|Type a message/);
- await input.waitFor({ timeout: 20000 });
- await input.fill(scene.agents.prompt);
- await driver.page.getByRole("button", { name: /发送|Send/ }).click();
- // Both children spawned: their bar rows carry the resolved agent names.
- await driver.page.getByText(ui.agents[0].name).first().waitFor({ timeout: 60000 });
- await driver.page.getByText(ui.agents[1].name).first().waitFor({ timeout: 60000 });
- await driver.context.close();
-
- await captureBothThemes(
- user,
- lang,
- `${BASE}/chat/${sessionId}`,
- "agents-panel",
- async (page) => {
- await page.getByText(ui.agents[1].name).first().waitFor({ timeout: 30000 });
- // Give the replayed stream's auto-open a beat, then ensure the panel is open —
- // keyed on the topology label so an already-open panel is never toggled closed —
- // and focus the analyst's conversation.
- await page.waitForTimeout(1200);
- if (
- !(await page
- .getByText(ui.topologyLabel)
- .first()
- .isVisible()
- .catch(() => false))
- ) {
- await page.getByRole("button", { name: ui.panelTitle }).first().click();
- }
- const node = page.getByRole("button", { name: ui.analystNode, exact: true });
- await node.waitFor({ timeout: 20000 });
- await node.click();
- // Tool cards render as collapsed rows: expand the analyst's running exec card so
- // the command and its streaming output are in frame (the only exec_command row on
- // the page — the parent conversation holds run_subagent rows only).
- const execRow = page.getByText("exec_command").last();
- await execRow.waitFor({ timeout: 30000 });
- await execRow.click();
- await page.getByText("--runs 41,42,43").first().waitFor({ timeout: 15000 });
- // Let scoring lines and node elapsed accumulate, still well inside the ~60s window.
- await page.waitForTimeout(12000);
- },
- );
- await api(user.cookie, "POST", `/api/sessions/${sessionId}/abort`, {}).catch(() => {});
- }
-
- // ---- Scene 2: goal mode -----------------------------------------------------------
- {
- const ws = path.join(wsRoot, "penguin-table");
- mkdirSync(ws, { recursive: true });
- stageTableWorkspace(ws);
- const sessionId = await createSession(user, ws);
-
- const driver = await openPage(user, lang, "light", `${BASE}/chat/${sessionId}`);
- await warmup(user, sessionId, scene.goal.warmup, "run-checks", driver.page);
- // Start the goal (the composer's goal chip posts exactly this request shape).
- await api(user.cookie, "POST", `/api/sessions/${sessionId}/tasks`, {
- input: [{ type: "text", text: scene.goal.objective }],
- goal: { budget: 500000 },
- });
- await driver.context.close();
-
- // Rounds 1-2 run and fix for real; round 3's slow verification run is the window.
- await captureBothThemes(
- user,
- lang,
- `${BASE}/chat/${sessionId}`,
- "goal-mode",
- async (page) => {
- await page.getByText(ui.round3).first().waitFor({ timeout: 180000 });
- // Round 3's own lead-in text (unique to this round), then expand the running check
- // run (rounds 1-2 are collapsed groups, so theirs are unmounted) and let a few
- // green checks stream into the card — still inside the ~60s exec window.
- await page.getByText(ui.round3Text).first().waitFor({ timeout: 60000 });
- const checkRow = page.getByText("exec_command").last();
- await checkRow.waitFor({ timeout: 30000 });
- await checkRow.click();
- await page.getByText("column widths · ascii").first().waitFor({ timeout: 30000 });
- await page.waitForTimeout(14000);
- },
- );
- await api(user.cookie, "POST", `/api/sessions/${sessionId}/abort`, {}).catch(() => {});
- }
- }
-
- await browser.close();
- console.log(`[blog-013] done -> ${OUT_DIR}`);
- process.exit(0);
-} catch (err) {
- console.error("[blog-013] FAILED:", err);
- // Failure dump: the last page's screenshot plus every button's accessible naming hints.
- try {
- const page = globalThis.__page;
- if (page && !page.isClosed()) {
- const dump = process.env.SHOT_DEBUG_DIR || os.tmpdir();
- writeFileSync(path.join(dump, "blog013-failure.png"), await page.screenshot());
- const buttons = await page.evaluate(() =>
- [...document.querySelectorAll("button")].map(
- (b) =>
- b.getAttribute("aria-label") || b.getAttribute("title") || b.textContent?.slice(0, 40),
- ),
- );
- console.error("[blog-013] page buttons:", JSON.stringify(buttons));
- }
- } catch {}
- process.exit(1);
-}
diff --git a/packages/landing/scripts/capture-blog-shots.mjs b/packages/landing/scripts/capture-blog-shots.mjs
deleted file mode 100644
index ebf8cff7..00000000
--- a/packages/landing/scripts/capture-blog-shots.mjs
+++ /dev/null
@@ -1,203 +0,0 @@
-/**
- * Capture blog-post screenshots of the product's Models page (the free-model rows).
- *
- * A deliberately lean sibling of capture-shots.mjs: that script drives a full scripted
- * LLM conversation for the landing hero shots, while the Models page needs no LLM at
- * all — a fresh user's default Project already presets the entire built-in model
- * catalog, so the free rows (Ling 3.0 Flash / Nemotron 3 Ultra / Laguna M.1 /
- * openrouter/free) render their light-yellow "Free" badges straight from the $0
- * pricing. Flow: boot the Web server against a temp data root serving the built web
- * dist -> provision one demo user per UI language (password rotated once so the
- * initial-password banner never shows) -> open /models, scroll the OpenRouter group
- * to the top of the viewport (Claude Opus 5 sits on its first card row, the free
- * rows a few rows below) -> screenshot, light theme, zh + en, as
- * free-models-page-<lang>-light.webp (re-encoded to WebP inside Chromium, same as
- * capture-shots.mjs).
- *
- * Output is a two-step flow, because blog images are not committed to this repo:
- * 1. this script writes into the gitignored staging dir packages/landing/.blog-assets/;
- * 2. upload the files it produced to the `blog-assets/` directory of the sibling
- * `Prism-Shadow/penguin-harness-community` repo, which is what the posts load from
- * (the renderer resolves /blog-assets/<name> there — see src/lib/links.ts).
- *
- * Prereqs: `pnpm --filter @prismshadow/penguin-{skills,core,server,web} build` and
- * Playwright's chromium. Run: `node scripts/capture-blog-shots.mjs` (or
- * `pnpm --filter @prismshadow/penguin-landing blog-shots`).
- */
-import { spawn } from "node:child_process";
-import { mkdtempSync, mkdirSync, writeFileSync } from "node:fs";
-import os from "node:os";
-import path from "node:path";
-import { fileURLToPath } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const ROOT = path.resolve(HERE, "../../..");
-// Gitignored staging dir: these images are hosted in the community repo, not committed here.
-const OUT_DIR = path.resolve(HERE, "../.blog-assets");
-const SRV_PORT = 8944; // Distinct from capture-shots.mjs (8940/8941) so both can run.
-// Pins the otherwise-random seeded admin password (PENGUIN_SEED_ADMIN_PASSWORD below).
-const ADMIN_PASSWORD = "penguin-0000";
-// On loopback binds the App is canonically served on `localhost`; the 127.0.0.1
-// counterpart is the Workspace-preview host, where /api deliberately answers 401
-// (see server app.ts's canonical-host guard).
-const BASE = `http://localhost:${SRV_PORT}`;
-
-// ---------------------------------------------------------------------------
-// Server + API helpers (same shape as capture-shots.mjs).
-// ---------------------------------------------------------------------------
-
-async function waitFor(url, tries = 60) {
- for (let i = 0; i < tries; i++) {
- try {
- const res = await fetch(url);
- if (res.ok) return;
- } catch {}
- await new Promise((r) => setTimeout(r, 500));
- }
- throw new Error(`server not ready: ${url}`);
-}
-
-async function api(cookie, method, url, body) {
- const res = await fetch(`${BASE}${url}`, {
- method,
- headers: {
- "content-type": "application/json",
- ...(cookie ? { cookie } : {}),
- },
- ...(body ? { body: JSON.stringify(body) } : {}),
- });
- if (!res.ok) throw new Error(`${method} ${url} -> ${res.status} ${await res.text()}`);
- return { json: await res.json().catch(() => ({})), setCookie: res.headers.get("set-cookie") };
-}
-
-async function login(userId, password) {
- const { setCookie } = await api(null, "POST", "/api/auth/login", { userId, password });
- if (!setCookie) throw new Error("no session cookie from login");
- return setCookie.split(";")[0];
-}
-
-/**
- * Per-language demo user (same ids as capture-shots.mjs). Unlike that script it does NOT
- * touch the model table: the fresh Project's preset catalog is exactly what the shot is
- * about. The password is rotated once so the initial-password banner stays out of frame.
- */
-async function provisionUser(adminCookie, lang) {
- const userId = lang === "zh" ? "demo" : "alex";
- const initial = `${userId}12345`;
- await api(adminCookie, "POST", "/api/admin/users", { userId, password: initial }).catch((e) => {
- if (!String(e).includes("409")) throw e;
- });
- let password = initial;
- const cookie = await login(userId, initial);
- try {
- await api(cookie, "PUT", "/api/me/password", {
- oldPassword: initial,
- newPassword: `penguin-${userId}-2026`,
- });
- password = `penguin-${userId}-2026`;
- } catch {}
- return { userId, password };
-}
-
-// ---------------------------------------------------------------------------
-// Main.
-// ---------------------------------------------------------------------------
-
-const dataRoot = mkdtempSync(path.join(os.tmpdir(), "penguin-blog-shots-"));
-mkdirSync(OUT_DIR, { recursive: true });
-
-const srv = spawn("node", [path.join(ROOT, "packages/server/dist/index.js")], {
- env: {
- ...process.env,
- PENGUIN_HOME: path.join(dataRoot, "home"),
- PENGUIN_WEB_DB: path.join(dataRoot, "web.db"),
- PENGUIN_WEB_DIST: path.join(ROOT, "packages/web/dist"),
- PORT: String(SRV_PORT),
- HOST: "127.0.0.1",
- PENGUIN_SEED_ADMIN_PASSWORD: ADMIN_PASSWORD,
- },
- stdio: ["ignore", "pipe", "pipe"],
-});
-srv.stderr.on("data", (d) => process.stderr.write(`[srv!] ${d}`));
-process.on("exit", () => {
- try {
- srv.kill();
- } catch {}
-});
-
-try {
- await waitFor(`${BASE}/`);
- console.log(`[blog-shots] server ready on ${BASE}`);
-
- const adminCookie = await login("admin", ADMIN_PASSWORD);
- const browser = await chromium.launch();
-
- // WebP encoder: Chromium re-encodes the PNG screenshot buffer via canvas (same
- // convention and quality as capture-shots.mjs, keeping repo assets small).
- const encoderPage = await browser.newPage();
- async function saveWebp(pngBuffer, fileName) {
- const dataUrl = await encoderPage.evaluate(async (b64) => {
- const img = new Image();
- img.src = `data:image/png;base64,${b64}`;
- await img.decode();
- const canvas = document.createElement("canvas");
- canvas.width = img.width;
- canvas.height = img.height;
- canvas.getContext("2d").drawImage(img, 0, 0);
- return canvas.toDataURL("image/webp", 0.82);
- }, pngBuffer.toString("base64"));
- writeFileSync(path.join(OUT_DIR, fileName), Buffer.from(dataUrl.split(",")[1], "base64"));
- console.log(`[blog-shots] ${fileName}`);
- }
-
- for (const lang of ["zh", "en"]) {
- const user = await provisionUser(adminCookie, lang);
-
- // 1280x900 @1.5x, light theme (the blog embeds a single light variant per language,
- // like rag-app-<lang>-light.webp): tall enough that the OpenRouter group shows Claude
- // Opus 5 (first card row) together with the free rows and their badges.
- const context = await browser.newContext({
- viewport: { width: 1280, height: 900 },
- deviceScaleFactor: 1.5,
- locale: lang === "zh" ? "zh-CN" : "en-US",
- });
- await context.addInitScript(
- ([t, l]) => {
- localStorage.setItem("penguin.theme", t);
- localStorage.setItem("penguin.lang", l);
- },
- ["light", lang],
- );
- const page = await context.newPage();
- await page.goto(`${BASE}/login`);
- const loginRes = await page.request.post(`${BASE}/api/auth/login`, {
- data: { userId: user.userId, password: user.password },
- });
- if (!loginRes.ok()) throw new Error(`browser login failed: ${loginRes.status()}`);
-
- await page.goto(`${BASE}/models`);
- // The catalog is loaded once a free row's card is rendered (its "Free" badge with it).
- const lingCard = page.getByText("Ling 3.0 Flash (free)").first();
- await lingCard.waitFor({ timeout: 20000 });
- // Scroll the OpenRouter group section to the top of the viewport so the group header,
- // Claude Opus 5 (first card row) and the badged free rows all sit in frame.
- await page
- .getByRole("button", { name: /OpenRouter/ })
- .first()
- .evaluate((el) =>
- el.closest("section").scrollIntoView({ block: "start", behavior: "instant" }),
- );
- await page.waitForTimeout(1200);
- await saveWebp(await page.screenshot(), `free-models-page-${lang}-light.webp`);
-
- await context.close();
- }
-
- await browser.close();
- console.log(`[blog-shots] done -> ${OUT_DIR}`);
- process.exit(0);
-} catch (err) {
- console.error("[blog-shots] FAILED:", err);
- process.exit(1);
-}
diff --git a/packages/landing/scripts/capture-game-mockup.mjs b/packages/landing/scripts/capture-game-mockup.mjs
deleted file mode 100644
index 541d5bd3..00000000
--- a/packages/landing/scripts/capture-game-mockup.mjs
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * Render the landing Cases tab's "penguin sled game" finished-product shot.
- *
- * Same pattern as capture-readme-demo.mjs: penguin-game-mockup.html is a static,
- * dependency-free mockup of the example game's play screen, captured per language
- * (zh / en) and theme (light = polar day / dark = polar night) into
- * packages/landing/src/assets as game-<lang>-<theme>.webp.
- *
- * Prereqs: Playwright's chromium only (no server, no build). Run:
- * `node scripts/capture-game-mockup.mjs [--png-dir <dir>]`.
- */
-import { mkdirSync, writeFileSync } from "node:fs";
-import path from "node:path";
-import { fileURLToPath, pathToFileURL } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const OUT_DIR = path.resolve(HERE, "../src/assets");
-const PAGE = pathToFileURL(path.join(HERE, "penguin-game-mockup.html")).href;
-
-const pngDirArg = process.argv.indexOf("--png-dir");
-const PNG_DIR = pngDirArg >= 0 ? process.argv[pngDirArg + 1] : null;
-
-mkdirSync(OUT_DIR, { recursive: true });
-if (PNG_DIR) mkdirSync(PNG_DIR, { recursive: true });
-
-const browser = await chromium.launch();
-const encoderPage = await browser.newPage();
-async function saveWebp(pngBuffer, fileName) {
- const dataUrl = await encoderPage.evaluate(async (b64) => {
- const img = new Image();
- img.src = `data:image/png;base64,${b64}`;
- await img.decode();
- const canvas = document.createElement("canvas");
- canvas.width = img.width;
- canvas.height = img.height;
- canvas.getContext("2d").drawImage(img, 0, 0);
- return canvas.toDataURL("image/webp", 0.9);
- }, pngBuffer.toString("base64"));
- writeFileSync(path.join(OUT_DIR, fileName), Buffer.from(dataUrl.split(",")[1], "base64"));
- console.log(`[game] ${fileName}`);
-}
-
-for (const lang of ["en", "zh"]) {
- for (const theme of ["light", "dark"]) {
- const context = await browser.newContext({
- viewport: { width: 1280, height: 760 },
- deviceScaleFactor: 1.5,
- locale: lang === "zh" ? "zh-CN" : "en-US",
- });
- const page = await context.newPage();
- await page.goto(`${PAGE}?lang=${lang}&theme=${theme}`);
- await page.waitForTimeout(300);
- const png = await page.screenshot();
- if (PNG_DIR) writeFileSync(path.join(PNG_DIR, `game-${lang}-${theme}.png`), png);
- await saveWebp(png, `game-${lang}-${theme}.webp`);
- await context.close();
- }
-}
-
-await browser.close();
-console.log("[game] done");
diff --git a/packages/landing/scripts/capture-og-cover.mjs b/packages/landing/scripts/capture-og-cover.mjs
deleted file mode 100644
index 68fa2c4b..00000000
--- a/packages/landing/scripts/capture-og-cover.mjs
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * Render the social share card referenced by index.html's og:image / twitter:image.
- *
- * Same pattern as capture-game-mockup.mjs: og-cover.html is a static, dependency-free
- * mockup, captured at exactly 1200x630 into packages/landing/public/og-cover.png —
- * public/ rather than src/assets/ because the URL has to be stable and absolute for
- * the platforms that fetch it, not a hashed bundle asset. PNG, not WebP: WeChat and a
- * few older unfurlers still ignore WebP previews.
- *
- * The output is committed, so this only needs re-running when og-cover.html changes.
- * Prereqs: Playwright's chromium only. Run: `node scripts/capture-og-cover.mjs`.
- */
-import { writeFileSync } from "node:fs";
-import path from "node:path";
-import { fileURLToPath, pathToFileURL } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const PAGE = pathToFileURL(path.join(HERE, "og-cover.html")).href;
-const OUT = path.resolve(HERE, "../public/og-cover.png");
-
-const browser = await chromium.launch();
-const page = await browser.newPage({ viewport: { width: 1200, height: 630 } });
-await page.goto(PAGE);
-// The logo is an <img>; screenshotting before it decodes yields a card with a hole in it.
-await page.waitForFunction(() => {
- const img = document.querySelector("img.logo");
- return img !== null && img.complete && img.naturalWidth > 0;
-});
-writeFileSync(OUT, await page.screenshot());
-await browser.close();
-console.log(`[og-cover] wrote ${OUT}`);
diff --git a/packages/landing/scripts/capture-readme-demo.mjs b/packages/landing/scripts/capture-readme-demo.mjs
deleted file mode 100644
index 859017eb..00000000
--- a/packages/landing/scripts/capture-readme-demo.mjs
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Render the README "build an Agent app in one sentence" finished-product shot.
- *
- * The image shows the RESULT of the example — a Claude Code docs-expert RAG app —
- * rather than the build conversation: rag-app-mockup.html is a static, dependency-free
- * mockup of the generated app's UI (per the web-design skill's Penguin visual language),
- * captured per language (zh / en) and theme (light / dark) into assets/readme/ at the
- * repo root as rag-app-<lang>-<theme>.webp (README.md uses en, README.zh.md uses zh).
- *
- * Prereqs: Playwright's chromium only (no server, no build). Run:
- * `node scripts/capture-readme-demo.mjs [--png-dir <dir>]` (--png-dir also saves
- * lossless PNG copies, handy for reviewing the shots).
- */
-import { mkdirSync, writeFileSync } from "node:fs";
-import path from "node:path";
-import { fileURLToPath, pathToFileURL } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const ROOT = path.resolve(HERE, "../../..");
-const OUT_DIR = path.resolve(ROOT, "assets/readme");
-const PAGE = pathToFileURL(path.join(HERE, "rag-app-mockup.html")).href;
-
-const pngDirArg = process.argv.indexOf("--png-dir");
-const PNG_DIR = pngDirArg >= 0 ? process.argv[pngDirArg + 1] : null;
-
-mkdirSync(OUT_DIR, { recursive: true });
-if (PNG_DIR) mkdirSync(PNG_DIR, { recursive: true });
-
-const browser = await chromium.launch();
-const encoderPage = await browser.newPage();
-async function saveWebp(pngBuffer, fileName) {
- const dataUrl = await encoderPage.evaluate(async (b64) => {
- const img = new Image();
- img.src = `data:image/png;base64,${b64}`;
- await img.decode();
- const canvas = document.createElement("canvas");
- canvas.width = img.width;
- canvas.height = img.height;
- canvas.getContext("2d").drawImage(img, 0, 0);
- return canvas.toDataURL("image/webp", 0.9);
- }, pngBuffer.toString("base64"));
- writeFileSync(path.join(OUT_DIR, fileName), Buffer.from(dataUrl.split(",")[1], "base64"));
- console.log(`[demo] ${fileName}`);
-}
-
-for (const lang of ["en", "zh"]) {
- for (const theme of ["light", "dark"]) {
- const context = await browser.newContext({
- viewport: { width: 1280, height: 760 },
- deviceScaleFactor: 1.5,
- locale: lang === "zh" ? "zh-CN" : "en-US",
- });
- const page = await context.newPage();
- await page.goto(`${PAGE}?lang=${lang}&theme=${theme}`);
- await page.waitForTimeout(300);
- const png = await page.screenshot();
- if (PNG_DIR) writeFileSync(path.join(PNG_DIR, `rag-app-${lang}-${theme}.png`), png);
- await saveWebp(png, `rag-app-${lang}-${theme}.webp`);
- await context.close();
- }
-}
-
-await browser.close();
-console.log("[demo] done");
diff --git a/packages/landing/scripts/capture-shots.mjs b/packages/landing/scripts/capture-shots.mjs
deleted file mode 100644
index 0ba5d1ac..00000000
--- a/packages/landing/scripts/capture-shots.mjs
+++ /dev/null
@@ -1,682 +0,0 @@
-/**
- * Capture real product screenshots for the landing page.
- *
- * Flow: host a scripted mock LLM (speaks BOTH Anthropic SSE and OpenAI chat-completions
- * SSE, so whichever client AgentHub routes to gets a valid stream) -> start the Web
- * server against a temp data root serving the built web dist -> drive a genuine
- * "build an Agent app" conversation (tools actually execute in the workspace) ->
- * screenshot the chat page, its Trace panel and the evaluation center, per UI language
- * (zh / en, each with its own user so sidebars stay monolingual) and per theme
- * (light / dark), into
- * src/assets/shots/ as <page>-<lang>-<theme>.webp (12 files, re-encoded to WebP
- * inside Chromium to keep the repo small).
- *
- * Prereqs: `pnpm --filter @prismshadow/penguin-{skills,core,server,web} build` and
- * Playwright's chromium. Run: `node scripts/capture-shots.mjs`.
- */
-import http from "node:http";
-import { spawn } from "node:child_process";
-import { mkdtempSync, mkdirSync, writeFileSync } from "node:fs";
-import os from "node:os";
-import path from "node:path";
-import { fileURLToPath } from "node:url";
-import { chromium } from "@playwright/test";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const ROOT = path.resolve(HERE, "../../..");
-const OUT_DIR = path.resolve(HERE, "../src/assets/shots");
-const MOCK_PORT = 8941;
-const SRV_PORT = 8940;
-// `localhost`, not `127.0.0.1`: that literal address is reserved as the Workspace-preview
-// host, and the API answers 401 on it.
-const BASE = `http://localhost:${SRV_PORT}`;
-// Pins the otherwise-random seeded admin password (PENGUIN_SEED_ADMIN_PASSWORD below).
-const ADMIN_PASSWORD = "penguin-0000";
-const MOCK = `http://127.0.0.1:${MOCK_PORT}`;
-
-// ---------------------------------------------------------------------------
-// Scripted conversation: the Agent builds an Agent application from scratch.
-// Commands are shared across languages (code is code) and really execute.
-// ---------------------------------------------------------------------------
-
-const CMD_COLLECT = `git clone --depth 1 https://github.com/ericbuess/claude-code-docs \\
- claude-code-expert/corpus/claude-code-docs
-find claude-code-expert/corpus -type f ! -name '*.md' -delete
-rm -rf claude-code-expert/corpus/claude-code-docs/.git
-ls claude-code-expert/corpus/claude-code-docs | head -6`;
-
-const CMD_APP = `mkdir -p claude-code-expert/src claude-code-expert/public
-cat > claude-code-expert/package.json <<'EOF'
-{
- "name": "claude-code-expert",
- "private": true,
- "type": "module",
- "scripts": { "start": "tsx src/rag.ts" },
- "dependencies": { "@prismshadow/penguin-core": "^0.1.0", "tsx": "^4" }
-}
-EOF
-cat > claude-code-expert/src/rag.ts <<'EOF'
-// BM25 retrieval over corpus/ + a Session that answers with clickable [n] citations.
-import fs from "node:fs";
-import http from "node:http";
-import path from "node:path";
-import { createAgent, isModelMessage, userText } from "@prismshadow/penguin-core";
-
-const walk = (d) =>
- fs.readdirSync(d, { withFileTypes: true }).flatMap((e) =>
- e.isDirectory() ? walk(path.join(d, e.name)) : [path.join(d, e.name)]);
-const chunks = walk("corpus").flatMap((f) =>
- fs.readFileSync(f, "utf8").split(/\\n(?=#{1,3} )/).map((text) => ({ source: f, text })));
-
-const tok = (s) => s.toLowerCase().match(/[a-z0-9]+|[一-鿿]/g) ?? [];
-const docs = chunks.map((c) => tok(c.text));
-const avg = docs.reduce((n, d) => n + d.length, 0) / Math.max(docs.length, 1);
-const df = new Map();
-for (const d of docs) for (const w of new Set(d)) df.set(w, (df.get(w) ?? 0) + 1);
-// BM25 (k1=1.2, b=0.75): idf weights rare terms, term frequency saturates, long chunks are penalized.
-const score = (q, i) => {
- const d = docs[i];
- let s = 0;
- for (const w of new Set(tok(q))) {
- const f = d.filter((x) => x === w).length;
- if (!f) continue;
- const n = df.get(w) ?? 0;
- s += Math.log(1 + (docs.length - n + 0.5) / (n + 0.5)) * (f * 2.2) / (f + 1.2 * (0.25 + 0.75 * d.length / avg));
- }
- return s;
-};
-const agent = await createAgent({ root: "penguin_data" });
-
-http.createServer(async (req, res) => {
- if (req.method !== "POST") { res.end(fs.readFileSync("public/index.html")); return; }
- let body = "";
- for await (const p of req) body += p;
- const { question } = JSON.parse(body);
- const hits = chunks.map((c, i) => [score(question, i), c]).filter(([s]) => s > 0)
- .sort((a, b) => b[0] - a[0]).slice(0, 6).map(([, c]) => c);
- res.writeHead(200, { "content-type": "text/event-stream" });
- const ctx = hits.map((c, i) => "[" + (i + 1) + "] " + c.source + "\\n" + c.text).join("\\n\\n");
- const session = await agent.createSession({ workspaceDir: process.cwd() });
- for await (const m of session.run([userText(ctx + "\\n\\nQ: " + question)], {
- approve: async () => "deny",
- })) {
- if (isModelMessage(m) && m.payload.type === "partial_text" && m.payload.event_type === "delta")
- res.write("data: " + JSON.stringify({ delta: m.payload.text }) + "\\n\\n");
- }
- res.write("data: " + JSON.stringify({ sources: hits.map((c) => c.source) }) + "\\n\\n");
- session.dispose();
- res.end();
-}).listen(4630);
-EOF
-cat > claude-code-expert/public/index.html <<'EOF'
-<!doctype html>
-<meta charset="utf-8" />
-<title>Claude Code docs expert</title>
-<body style="max-width:640px;margin:3rem auto;font-family:system-ui;line-height:1.5">
-<h3>Claude Code docs expert</h3>
-<div id="log"></div>
-<input id="q" style="width:100%;padding:.5rem" placeholder="Ask about Claude Code…" autofocus />
-<script>
-q.addEventListener("keydown", async (e) => {
- if (e.key !== "Enter" || !q.value.trim()) return;
- const question = q.value; q.value = "";
- const p = document.createElement("p"); log.append(p);
- const res = await fetch("/api/ask", { method: "POST", body: JSON.stringify({ question }) });
- const reader = res.body.getReader(), dec = new TextDecoder();
- for (let r; !(r = await reader.read()).done; )
- for (const chunk of dec.decode(r.value).split("\\n\\n")) {
- if (!chunk.startsWith("data:")) continue;
- const d = JSON.parse(chunk.slice(5));
- if (d.delta) p.textContent += d.delta;
- if (d.sources) p.textContent += " Sources: " + d.sources.join(", ");
- }
-});
-</script>
-</body>
-EOF
-wc -l claude-code-expert/src/rag.ts`;
-
-const TREE = `\`\`\`text
-claude-code-expert/
-├── package.json
-├── corpus/claude-code-docs/ # the collected docs
-├── src/rag.ts
-└── public/index.html
-\`\`\``;
-
-/** Per-language script: user prompt marker -> turns + session title. */
-const SCRIPTS = {
- zh: {
- marker: "配置专家",
- prompt:
- "收集 https://github.com/ericbuess/claude-code-docs 的文档,做一个化身 Claude Code 配置专家、回答带来源引用的 RAG 问答应用。",
- title: "构建 Claude Code 文档专家",
- turns: [
- {
- thinking:
- "一句话需求,penguin-sdk 技能给出了完整配方:先采集语料,再建 BM25 索引,回答经 Session 流式生成并带 [n] 引用直达原文。",
- text: "先把文档采集进语料库:",
- cmd: CMD_COLLECT,
- },
- {
- thinking:
- "语料就绪。写应用:本地 BM25 检索(零 embedding 依赖)+ 引用回答 + Penguin 风格聊天界面,引用链接到 /corpus 原文。",
- text: "语料就绪,写检索与引用回答的应用入口:",
- cmd: CMD_APP,
- },
- {
- text: `Claude Code 文档专家已就绪:
-
-${TREE}
-
-- 检索:本地 BM25 索引全部文档片段,中文提问同样支持;
-- 回答:每次提问经 Session 流式生成,引用 [1][2] 可点击直达 \`corpus/\` 原文;
-- 界面:Penguin 风格聊天页,空态内置示例问题;
-- 运行:\`cd claude-code-expert && npm install && npm start\`,浏览器打开 http://localhost:4630。`,
- },
- ],
- },
- en: {
- marker: "configuration expert",
- prompt:
- "Collect the docs from https://github.com/ericbuess/claude-code-docs and build a RAG app that answers Claude Code questions as a configuration expert, citing its sources.",
- // Stay under core's TITLE_MAX_CHARS (30): a longer title gets hard-clipped
- // mid-word in the shots (e.g. "…docs exper").
- title: "Build Claude Code docs expert",
- turns: [
- {
- thinking:
- "One sentence is enough — the penguin-sdk skill has the full recipe: collect the corpus, build a BM25 index, answer through a Session with [n] citations linking to the originals.",
- text: "Collecting the docs into the corpus first:",
- cmd: CMD_COLLECT,
- },
- {
- thinking:
- "Corpus in place. Now the app: local BM25 retrieval (no embedding credential), cited answers, and a Penguin-style chat UI with citations linking to /corpus originals.",
- text: "Corpus ready — now the retrieval and cited-answer entry:",
- cmd: CMD_APP,
- },
- {
- text: `The Claude Code docs expert is ready:
-
-${TREE}
-
-- Retrieval: a local BM25 index over every doc chunk, Chinese questions included;
-- Answers: each question streams through a Session, with [1][2] citations that link straight to the \`corpus/\` originals;
-- UI: a Penguin-style chat page with example questions in the empty state;
-- Run: \`cd claude-code-expert && npm install && npm start\`, then open http://localhost:4630.`,
- },
- ],
- },
-};
-
-function scriptFor(flat) {
- return flat.includes(SCRIPTS.en.marker) ? SCRIPTS.en : SCRIPTS.zh;
-}
-
-// ---------------------------------------------------------------------------
-// Mock LLM: Anthropic SSE on */messages, OpenAI chunks on */chat/completions.
-// ---------------------------------------------------------------------------
-
-function sse(res, event, data) {
- res.write(`event: ${event}\n`);
- res.write(`data: ${JSON.stringify(data)}\n\n`);
-}
-
-function anthropicReply(res, body) {
- const flat = JSON.stringify(body.messages ?? []);
- const script = scriptFor(flat);
- const isTitle = flat.includes("concise title");
- const toolResults = flat.split('"tool_result"').length - 1;
- const turn = script.turns[Math.min(toolResults, script.turns.length - 1)];
- const msgCount = (body.messages ?? []).length;
-
- res.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache" });
- sse(res, "message_start", {
- type: "message_start",
- message: {
- id: `msg_shot_${Date.now()}`,
- type: "message",
- role: "assistant",
- model: "deepseek-v4-pro",
- content: [],
- stop_reason: null,
- stop_sequence: null,
- usage: {
- input_tokens: 380,
- output_tokens: 0,
- cache_read_input_tokens: 2400 * msgCount,
- cache_creation_input_tokens: 620,
- },
- },
- });
-
- const block = (index, start, deltas, extra) => {
- sse(res, "content_block_start", { type: "content_block_start", index, content_block: start });
- for (const d of deltas)
- sse(res, "content_block_delta", { type: "content_block_delta", index, delta: d });
- if (extra)
- sse(res, "content_block_delta", { type: "content_block_delta", index, delta: extra });
- sse(res, "content_block_stop", { type: "content_block_stop", index });
- };
- const finish = (stopReason, outputTokens) => {
- sse(res, "message_delta", {
- type: "message_delta",
- delta: { stop_reason: stopReason, stop_sequence: null },
- usage: { output_tokens: outputTokens },
- });
- sse(res, "message_stop", { type: "message_stop" });
- res.end();
- };
- const textDeltas = (text) =>
- (text.match(/[\s\S]{1,24}/g) ?? []).map((t) => ({ type: "text_delta", text: t }));
-
- if (isTitle) {
- block(0, { type: "text", text: "" }, [{ type: "text_delta", text: script.title }]);
- finish("end_turn", 8);
- return;
- }
-
- let index = 0;
- if (turn.thinking) {
- block(
- index++,
- { type: "thinking", thinking: "" },
- turn.thinking.match(/[\s\S]{1,18}/g).map((t) => ({ type: "thinking_delta", thinking: t })),
- { type: "signature_delta", signature: "sig_shot" },
- );
- }
- if (turn.text) block(index++, { type: "text", text: "" }, textDeltas(turn.text));
- if (turn.cmd) {
- const json = JSON.stringify({ cmd: turn.cmd });
- block(
- index++,
- { type: "tool_use", id: `toolu_shot_${toolResults + 1}`, name: "exec_command", input: {} },
- (json.match(/[\s\S]{1,32}/g) ?? []).map((partial_json) => ({
- type: "input_json_delta",
- partial_json,
- })),
- );
- finish("tool_use", 160);
- } else {
- finish("end_turn", 420);
- }
-}
-
-function openaiReply(res, body) {
- const flat = JSON.stringify(body.messages ?? []);
- const script = scriptFor(flat);
- const isTitle = flat.includes("concise title");
- const toolResults = flat.split('"role":"tool"').length - 1;
- const turn = script.turns[Math.min(toolResults, script.turns.length - 1)];
-
- res.writeHead(200, { "content-type": "text/event-stream", "cache-control": "no-cache" });
- const chunk = (delta, finishReason = null, usage) => {
- const payload = {
- id: "chatcmpl-shot",
- object: "chat.completion.chunk",
- created: Math.floor(Date.now() / 1000),
- model: "deepseek-v4-pro",
- choices: [{ index: 0, delta, finish_reason: finishReason }],
- };
- if (usage) payload.usage = usage;
- res.write(`data: ${JSON.stringify(payload)}\n\n`);
- };
- const usage = {
- prompt_tokens: 5200,
- completion_tokens: turn.cmd ? 180 : 420,
- total_tokens: 5620,
- prompt_cache_hit_tokens: 4300,
- prompt_cache_miss_tokens: 900,
- };
-
- chunk({ role: "assistant" });
- if (isTitle) {
- chunk({ content: script.title });
- chunk({}, "stop", usage);
- res.write("data: [DONE]\n\n");
- res.end();
- return;
- }
- if (turn.thinking) {
- for (const t of turn.thinking.match(/[\s\S]{1,18}/g)) chunk({ reasoning_content: t });
- }
- if (turn.text) {
- for (const t of turn.text.match(/[\s\S]{1,24}/g)) chunk({ content: t });
- }
- if (turn.cmd) {
- chunk({
- tool_calls: [
- {
- index: 0,
- id: `call_shot_${toolResults + 1}`,
- type: "function",
- function: { name: "exec_command", arguments: "" },
- },
- ],
- });
- const json = JSON.stringify({ cmd: turn.cmd });
- for (const part of json.match(/[\s\S]{1,32}/g)) {
- chunk({ tool_calls: [{ index: 0, function: { arguments: part } }] });
- }
- chunk({}, "tool_calls", usage);
- } else {
- chunk({}, "stop", usage);
- }
- res.write("data: [DONE]\n\n");
- res.end();
-}
-
-function startMock() {
- const server = http.createServer((req, res) => {
- if (req.method !== "POST") {
- res.writeHead(404).end();
- return;
- }
- let body = "";
- req.on("data", (c) => (body += c));
- req.on("end", () => {
- let json = {};
- try {
- json = JSON.parse(body);
- } catch {}
- if (req.url?.includes("chat/completions")) return openaiReply(res, json);
- if (req.url?.includes("messages")) return anthropicReply(res, json);
- console.log(`[mock] unexpected path ${req.url}`);
- res.writeHead(404).end();
- });
- });
- return new Promise((resolve) => server.listen(MOCK_PORT, "127.0.0.1", () => resolve(server)));
-}
-
-// ---------------------------------------------------------------------------
-// Server + API helpers.
-// ---------------------------------------------------------------------------
-
-async function waitFor(url, tries = 60) {
- for (let i = 0; i < tries; i++) {
- try {
- const res = await fetch(url);
- if (res.ok) return;
- } catch {}
- await new Promise((r) => setTimeout(r, 500));
- }
- throw new Error(`server not ready: ${url}`);
-}
-
-async function api(cookie, method, url, body) {
- const res = await fetch(`${BASE}${url}`, {
- method,
- headers: {
- "content-type": "application/json",
- ...(cookie ? { cookie } : {}),
- },
- ...(body ? { body: JSON.stringify(body) } : {}),
- });
- if (!res.ok) throw new Error(`${method} ${url} -> ${res.status} ${await res.text()}`);
- return { json: await res.json().catch(() => ({})), setCookie: res.headers.get("set-cookie") };
-}
-
-async function login(userId, password) {
- const { json, setCookie } = await api(null, "POST", "/api/auth/login", { userId, password });
- if (!setCookie) throw new Error("no session cookie from login");
- return { cookie: setCookie.split(";")[0], user: json.user };
-}
-
-/** Per-language demo users so sidebars stay monolingual in the shots. */
-const USERS = {
- zh: {
- userId: "demo",
- agents: [
- {
- agentId: "data_analyst",
- name: "数据分析师",
- description: "面向 CSV / Excel 的数据分析、图表与报表生成",
- },
- { agentId: "web_scout", name: "网页调研员", description: "网页检索、信息核对与调研纪要整理" },
- {
- agentId: "agent_optimizer",
- name: "Agent 优化师",
- description: "评估其他 Agent 的表现并迭代其提示词与技能",
- },
- ],
- },
- en: {
- userId: "alex",
- agents: [
- {
- agentId: "data_analyst",
- name: "Data Analyst",
- description: "CSV / Excel analysis, charts and report generation",
- },
- {
- agentId: "web_scout",
- name: "Web Scout",
- description: "Web research, fact checking and note-taking",
- },
- {
- agentId: "agent_optimizer",
- name: "Agent Optimizer",
- description: "Evaluates other Agents and iterates their prompts and Skills",
- },
- ],
- },
-};
-
-/** Provision a user with models + a few Agents; returns { cookie, password, projectId }. */
-async function provisionUser(adminCookie, lang) {
- const { userId, agents } = USERS[lang];
- const initial = `${userId}12345`;
- await api(adminCookie, "POST", "/api/admin/users", { userId, password: initial }).catch((e) => {
- if (!String(e).includes("409")) throw e;
- });
- let session = await login(userId, initial);
- // Rotate once so the initial-password banner disappears from the shots.
- let password = initial;
- try {
- await api(session.cookie, "PUT", "/api/me/password", {
- oldPassword: initial,
- newPassword: `penguin-${userId}-2026`,
- });
- password = `penguin-${userId}-2026`;
- } catch {}
- session = await login(userId, password);
-
- const projects = (await api(session.cookie, "GET", "/api/projects")).json;
- const projectId = projects.projects[0].projectId;
-
- await api(session.cookie, "PUT", `/api/projects/${projectId}/models`, {
- defaultModel: { provider: "deepseek", modelId: "deepseek-v4-pro" },
- models: [
- {
- provider: "deepseek",
- modelId: "deepseek-v4-pro",
- // The mock speaks Anthropic Messages and OpenAI Chat Completions; pinning the
- // protocol keeps it off the Responses path AgentHub would otherwise pick.
- clientType: "openai-chat",
- apiKey: "sk-demo",
- baseUrl: MOCK,
- contextWindow: 1000000,
- pricing: { cacheRead: 0.003571, cacheWrite: 0.428571, output: 0.857143 },
- },
- ],
- });
-
- for (const agent of agents) {
- await api(session.cookie, "POST", `/api/projects/${projectId}/agents`, agent).catch((e) => {
- if (!String(e).includes("409")) throw e;
- });
- }
-
- return { cookie: session.cookie, password, projectId, userId };
-}
-
-// ---------------------------------------------------------------------------
-// Main.
-// ---------------------------------------------------------------------------
-
-const dataRoot = mkdtempSync(path.join(os.tmpdir(), "penguin-shots-"));
-const wsDir = path.join(dataRoot, "workspace-apps");
-mkdirSync(wsDir, { recursive: true });
-mkdirSync(OUT_DIR, { recursive: true });
-
-const mock = await startMock();
-console.log(`[shots] mock LLM on ${MOCK}`);
-
-const srv = spawn("node", [path.join(ROOT, "packages/server/dist/index.js")], {
- env: {
- ...process.env,
- PENGUIN_HOME: path.join(dataRoot, "home"),
- PENGUIN_WEB_DB: path.join(dataRoot, "web.db"),
- PENGUIN_WEB_DIST: path.join(ROOT, "packages/web/dist"),
- PORT: String(SRV_PORT),
- HOST: "127.0.0.1",
- PENGUIN_SEED_ADMIN_PASSWORD: ADMIN_PASSWORD,
- },
- stdio: ["ignore", "pipe", "pipe"],
-});
-srv.stderr.on("data", (d) => process.stderr.write(`[srv!] ${d}`));
-
-const cleanup = () => {
- try {
- srv.kill();
- } catch {}
- try {
- mock.close();
- } catch {}
-};
-process.on("exit", cleanup);
-
-try {
- await waitFor(`${BASE}/`);
- console.log(`[shots] server ready on ${BASE}`);
-
- const admin = await login("admin", ADMIN_PASSWORD);
- const browser = await chromium.launch();
-
- // WebP encoder: Chromium re-encodes the PNG screenshot buffer via canvas, which
- // keeps repo assets small (~5x lighter than PNG) with no native image deps.
- const encoderPage = await browser.newPage();
- async function saveWebp(pngBuffer, fileName) {
- const dataUrl = await encoderPage.evaluate(async (b64) => {
- const img = new Image();
- img.src = `data:image/png;base64,${b64}`;
- await img.decode();
- const canvas = document.createElement("canvas");
- canvas.width = img.width;
- canvas.height = img.height;
- canvas.getContext("2d").drawImage(img, 0, 0);
- return canvas.toDataURL("image/webp", 0.82);
- }, pngBuffer.toString("base64"));
- writeFileSync(path.join(OUT_DIR, fileName), Buffer.from(dataUrl.split(",")[1], "base64"));
- console.log(`[shots] ${fileName}`);
- }
-
- /** The final answer is the only turn mentioning the npm run command. */
- const DONE_MARKER = "npm install && npm start";
-
- for (const lang of ["zh", "en"]) {
- const user = await provisionUser(admin.cookie, lang);
- const script = SCRIPTS[lang];
-
- // Language-specific workspace subdir so zh/en runs don't collide on files.
- const ws = path.join(wsDir, lang);
- mkdirSync(ws, { recursive: true });
-
- const sess = (
- await api(
- user.cookie,
- "POST",
- `/api/projects/${user.projectId}/agents/default_agent/sessions`,
- {
- provider: "deepseek",
- modelId: "deepseek-v4-pro",
- approvalMode: "allow-all",
- workspace: ws,
- },
- )
- ).json;
- const sessionId = sess.session.sessionId;
-
- let firstTheme = true;
- for (const theme of ["light", "dark"]) {
- // 1280x800 @1.5x -> 1920x1200: sharp enough for the landing's ~1024px-wide
- // frames on retina, while keeping the WebP assets small.
- const context = await browser.newContext({
- viewport: { width: 1280, height: 800 },
- deviceScaleFactor: 1.5,
- locale: lang === "zh" ? "zh-CN" : "en-US",
- });
- await context.addInitScript(
- ([t, l]) => {
- localStorage.setItem("penguin.theme", t);
- localStorage.setItem("penguin.lang", l);
- // Both docks start closed (no scopes), so the chat shot is unaffected; the
- // ratio only decides how tall the bottom dock is once the Trace tab opens it.
- localStorage.setItem(
- "penguin.dock.layout",
- JSON.stringify({ scopes: {}, bottomRatio: 0.62 }),
- );
- },
- [theme, lang],
- );
- const page = await context.newPage();
- await page.goto(`${BASE}/login`);
- const loginRes = await page.request.post(`${BASE}/api/auth/login`, {
- data: { userId: user.userId, password: user.password },
- });
- if (!loginRes.ok()) throw new Error(`browser login failed: ${loginRes.status()}`);
-
- await page.goto(`${BASE}/chat/${sessionId}`);
- if (firstTheme) {
- // Drive the conversation once per language; the other theme restores it.
- const input = page.getByPlaceholder(/输入消息|Type a message/);
- await input.waitFor({ timeout: 20000 });
- await input.fill(script.prompt);
- await page.getByRole("button", { name: /发送|Send/ }).click();
- firstTheme = false;
- }
- await page.getByText(DONE_MARKER).first().waitFor({ timeout: 90000 });
- await page.waitForTimeout(2000);
- await saveWebp(await page.screenshot(), `chat-${lang}-${theme}.webp`);
-
- // Trace view: a Trace is read in its own conversation's Trace panel, opened as a
- // tab in the bottom dock (the toolbar pulls the empty dock open, the picker puts
- // the tab in it). Waiting for a timeline segment titled after the conversation's
- // exec_command call guarantees every language captures the same opened Trace —
- // stats plus a timeline with tool calls — never a still-loading skeleton.
- await page.getByTestId("dock-toggle-bottom").click();
- const bottomDock = page.locator("[data-testid='dock'][data-position='bottom']");
- await bottomDock.getByTestId("dock-pick-trace").click();
- await bottomDock
- .locator('[data-tab-id="trace"][data-active="true"]')
- .waitFor({ timeout: 20000 });
- await bottomDock
- .getByTitle(/exec_command/)
- .first()
- .waitFor({ timeout: 30000 });
- await page.waitForTimeout(2000);
- await saveWebp(await page.screenshot(), `traces-${lang}-${theme}.webp`);
-
- // Evaluation center: open the pre-provisioned example Benchmark scoreboard.
- await page.goto(`${BASE}/benchmark`);
- await page.waitForTimeout(1500);
- await page
- .getByText("Example Benchmark")
- .first()
- .click()
- .catch(() => {});
- await page.waitForTimeout(2500);
- await saveWebp(await page.screenshot(), `benchmark-${lang}-${theme}.webp`);
-
- await context.close();
- }
- }
-
- await browser.close();
- console.log(`[shots] done -> ${OUT_DIR}`);
- process.exit(0);
-} catch (err) {
- console.error("[shots] FAILED:", err);
- process.exit(1);
-}
diff --git a/packages/landing/scripts/og-cover.html b/packages/landing/scripts/og-cover.html
deleted file mode 100644
index 7bd2551f..00000000
--- a/packages/landing/scripts/og-cover.html
+++ /dev/null
@@ -1,125 +0,0 @@
-<!doctype html>
-<!--
- Source for the social share card (public/og-cover.png), rendered by
- capture-og-cover.mjs. Static and dependency-free, like the other mockups here:
- edit this file, re-run the script, commit the PNG.
-
- Sized 1200x630 — the ratio X, Facebook, LinkedIn, Discord and WeChat all crop
- from. Colors are the landing page's dark theme — its neutral gray-950 behind the
- brand-500 and sky-500 glows the NeonBackground drifts across the real site.
--->
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <style>
- html,
- body {
- margin: 0;
- width: 1200px;
- height: 630px;
- font-family:
- ui-sans-serif,
- system-ui,
- -apple-system,
- "Segoe UI",
- Roboto,
- "PingFang SC",
- "Microsoft YaHei",
- sans-serif;
- }
- .card {
- position: relative;
- width: 1200px;
- height: 630px;
- overflow: hidden;
- background: #141414;
- color: #f7f7f7;
- }
- /* Same two glows as .neon-blob-a / .neon-blob-b, without the drift animation. */
- .glow {
- position: absolute;
- border-radius: 9999px;
- filter: blur(90px);
- opacity: 0.22;
- }
- .glow-a {
- top: -180px;
- left: -140px;
- width: 700px;
- height: 700px;
- background: radial-gradient(circle, #4285f4 0%, transparent 66%);
- }
- .glow-b {
- right: -200px;
- bottom: -260px;
- width: 760px;
- height: 760px;
- background: radial-gradient(circle, #0ea5e9 0%, transparent 66%);
- }
- .inner {
- position: relative;
- display: flex;
- height: 100%;
- flex-direction: column;
- justify-content: space-between;
- box-sizing: border-box;
- padding: 72px 76px;
- }
- .logo {
- width: 108px;
- height: 108px;
- }
- h1 {
- margin: 0;
- font-size: 82px;
- font-weight: 700;
- letter-spacing: -0.025em;
- line-height: 1;
- }
- .tagline {
- margin: 22px 0 0;
- font-size: 34px;
- font-weight: 500;
- line-height: 1.25;
- color: #8ab4f8;
- }
- .foot {
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-top: 1px solid rgba(171, 171, 171, 0.22);
- padding-top: 28px;
- font-size: 25px;
- color: #d4d4d4;
- }
- .facts span + span::before {
- content: "·";
- margin: 0 14px;
- color: #8f8f8f;
- }
- .domain {
- font-weight: 600;
- color: #8ab4f8;
- }
- </style>
- </head>
- <body>
- <div class="card">
- <div class="glow glow-a"></div>
- <div class="glow glow-b"></div>
- <div class="inner">
- <img class="logo" src="../public/penguin-logo.svg" alt="" />
- <div>
- <h1>PenguinHarness</h1>
- <p class="tagline">Efficient Self-Improving Harness for Everyone</p>
- </div>
- <div class="foot">
- <div class="facts">
- <span>Zero-code CLI &amp; Web UI</span><span>1,000+ models</span><span>Apache-2.0</span>
- </div>
- <div class="domain">penguin.ooo</div>
- </div>
- </div>
- </div>
- </body>
-</html>
diff --git a/packages/landing/scripts/penguin-game-mockup.html b/packages/landing/scripts/penguin-game-mockup.html
deleted file mode 100644
index 125282e9..00000000
--- a/packages/landing/scripts/penguin-game-mockup.html
+++ /dev/null
@@ -1,333 +0,0 @@
-<!doctype html>
-<!--
- Static, dependency-free mockup of the "penguin sled" example game's play screen —
- the FINISHED PRODUCT of the draft-screen game example, captured by
- capture-game-mockup.mjs per language (?lang=zh|en) and theme (?theme=light|dark;
- light = polar day, dark = polar night with an aurora). A cute cartoon scene:
- an Antarctic penguin on a wooden sled mid-jump over snow-capped rocks, with a
- score/distance/speed HUD and a "Space to jump" hint.
--->
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>Penguin Sled Run</title>
- <style>
- html,
- body {
- margin: 0;
- height: 100%;
- font-family:
- ui-sans-serif,
- system-ui,
- -apple-system,
- "Segoe UI",
- Roboto,
- "PingFang SC",
- "Microsoft YaHei",
- sans-serif;
- }
- .stage {
- position: relative;
- width: 1280px;
- height: 760px;
- overflow: hidden;
- background: linear-gradient(#bfdbfe 0%, #e0f2fe 55%, #f8fafc 100%);
- }
- body.dark .stage {
- background: linear-gradient(#0b1220 0%, #16233b 60%, #1e293b 100%);
- }
- .hud {
- position: absolute;
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 16px;
- border-radius: 14px;
- background: rgba(255, 255, 255, 0.82);
- border: 1px solid rgba(15, 23, 42, 0.08);
- color: #0f172a;
- font-weight: 700;
- box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
- }
- body.dark .hud {
- background: rgba(15, 23, 42, 0.72);
- border-color: rgba(148, 163, 184, 0.25);
- color: #e2e8f0;
- box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
- }
- .hud .label {
- font-size: 13px;
- font-weight: 600;
- opacity: 0.62;
- letter-spacing: 0.04em;
- }
- .hud .value {
- font-size: 24px;
- font-variant-numeric: tabular-nums;
- }
- #hud-score {
- top: 22px;
- left: 24px;
- }
- #hud-dist {
- top: 22px;
- left: 218px;
- }
- #hud-speed {
- top: 22px;
- right: 24px;
- color: #1d4ed8;
- }
- body.dark #hud-speed {
- color: #93c5fd;
- }
- .hint {
- position: absolute;
- left: 50%;
- bottom: 26px;
- transform: translateX(-50%);
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 10px 18px;
- border-radius: 999px;
- font-size: 15px;
- font-weight: 600;
- background: rgba(255, 255, 255, 0.85);
- border: 1px solid rgba(15, 23, 42, 0.08);
- color: #334155;
- }
- body.dark .hint {
- background: rgba(15, 23, 42, 0.75);
- border-color: rgba(148, 163, 184, 0.25);
- color: #cbd5e1;
- }
- .hint kbd {
- padding: 3px 12px;
- border-radius: 8px;
- border: 1px solid #94a3b8;
- border-bottom-width: 3px;
- background: #fff;
- font: inherit;
- color: #0f172a;
- }
- body.dark .hint kbd {
- background: #1e293b;
- border-color: #64748b;
- color: #e2e8f0;
- }
- .title {
- position: absolute;
- top: 26px;
- left: 50%;
- transform: translateX(-50%);
- font-size: 17px;
- font-weight: 800;
- letter-spacing: 0.12em;
- color: rgba(15, 23, 42, 0.55);
- }
- body.dark .title {
- color: rgba(226, 232, 240, 0.65);
- }
- .day-only {
- display: initial;
- }
- .night-only {
- display: none;
- }
- body.dark .day-only {
- display: none;
- }
- body.dark .night-only {
- display: initial;
- }
- </style>
- </head>
- <body>
- <div class="stage">
- <svg viewBox="0 0 1280 760" width="1280" height="760" aria-hidden="true">
- <!-- Polar day: sun; polar night: moon, stars and an aurora ribbon. -->
- <g class="day-only">
- <circle cx="1084" cy="150" r="58" fill="#fde68a" />
- <circle cx="1084" cy="150" r="44" fill="#fcd34d" />
- </g>
- <g class="night-only">
- <path
- d="M60 60 C 320 190, 680 30, 1020 150 C 1120 185, 1220 140, 1268 100 L 1268 20 L 60 20 Z"
- fill="#34d399"
- opacity="0.16"
- />
- <path
- d="M100 100 C 360 220, 700 80, 1040 190 C 1130 218, 1210 180, 1260 150 L 1260 60 C 1000 160, 420 40, 100 100 Z"
- fill="#6ee7b7"
- opacity="0.12"
- />
- <circle cx="1084" cy="140" r="46" fill="#e2e8f0" opacity="0.92" />
- <circle cx="1066" cy="128" r="12" fill="#cbd5e1" opacity="0.8" />
- <circle cx="1102" cy="156" r="8" fill="#cbd5e1" opacity="0.8" />
- <g fill="#e2e8f0">
- <circle cx="180" cy="120" r="3" />
- <circle cx="330" cy="70" r="2.4" />
- <circle cx="520" cy="130" r="2.8" />
- <circle cx="760" cy="64" r="2.4" />
- <circle cx="900" cy="120" r="3" />
- <circle cx="240" cy="220" r="2" />
- <circle cx="640" cy="200" r="2.2" />
- </g>
- </g>
-
- <!-- Distant snow hills. -->
- <path
- d="M0 430 Q 200 330 420 420 T 860 410 T 1280 400 L 1280 760 L 0 760 Z"
- class="hill-far"
- fill="#e2e8f0"
- />
- <path
- d="M0 500 Q 260 400 560 490 T 1280 470 L 1280 760 L 0 760 Z"
- class="hill-near"
- fill="#f1f5f9"
- />
-
- <!-- Ice track. -->
- <rect x="0" y="560" width="1280" height="200" fill="#ffffff" />
- <rect x="0" y="560" width="1280" height="12" fill="#bae6fd" opacity="0.7" />
- <path
- d="M0 640 H 300 M420 640 H 700 M820 640 H 1100"
- stroke="#dbeafe"
- stroke-width="6"
- stroke-linecap="round"
- />
-
- <!-- Rocks ahead on the track (snow-capped). -->
- <g>
- <path d="M760 560 q 26 -52 62 -2 q 20 30 -8 30 l -60 0 q -14 -6 6 -28 Z" fill="#94a3b8" />
- <path d="M770 548 q 18 -26 40 -4 q -20 -10 -40 4 Z" fill="#f8fafc" />
- <path
- d="M980 560 q 34 -70 84 -4 q 24 36 -10 36 l -80 0 q -18 -8 6 -32 Z"
- fill="#64748b"
- />
- <path d="M994 540 q 26 -34 54 -6 q -28 -14 -54 6 Z" fill="#f8fafc" />
- <path
- d="M1180 560 q 22 -44 52 -2 q 16 26 -6 26 l -52 0 q -12 -6 6 -24 Z"
- fill="#94a3b8"
- />
- </g>
-
- <!-- The star: a cute penguin on a wooden sled, mid-jump over the first rock.
- Drawn upright and compact so every part stays connected to the body. -->
- <g transform="translate(430 316) rotate(-8)">
- <!-- motion lines -->
- <path
- d="M-158 118 h 70 M-178 156 h 58 M-150 194 h 66"
- stroke="#93c5fd"
- stroke-width="8"
- stroke-linecap="round"
- opacity="0.7"
- />
- <!-- snow spray behind the sled -->
- <g fill="#e0f2fe">
- <circle cx="-92" cy="214" r="9" />
- <circle cx="-116" cy="230" r="6" />
- <circle cx="-70" cy="232" r="5" />
- </g>
- <!-- sled: two wooden slats + a curled steel runner -->
- <path
- d="M-92 208 q -22 0 -20 -22 q 2 -14 20 -14 h 250 q 26 2 26 22 q 0 14 -24 14 Z"
- fill="none"
- stroke="#475569"
- stroke-width="9"
- stroke-linecap="round"
- />
- <rect x="-70" y="176" width="242" height="24" rx="12" fill="#b45309" />
- <rect x="-58" y="158" width="220" height="22" rx="11" fill="#d97706" />
-
- <!-- penguin, centered on the sled -->
- <g transform="translate(52 60)">
- <!-- body (black egg) -->
- <path
- d="M0 -96 C 62 -96 82 -34 82 20 C 82 78 44 108 0 108 C -44 108 -82 78 -82 20 C -82 -34 -62 -96 0 -96 Z"
- fill="#111827"
- />
- <!-- white belly, tucked inside the body outline -->
- <path
- d="M0 -52 C 40 -52 56 -10 56 30 C 56 66 30 88 0 88 C -30 88 -56 66 -56 30 C -56 -10 -40 -52 0 -52 Z"
- fill="#f8fafc"
- />
- <!-- near wing, hugging the body -->
- <path d="M-66 -20 C -92 4 -92 52 -70 74 C -58 60 -58 16 -60 -8 Z" fill="#0b1220" />
- <!-- far wing, raised a little (whee!) -->
- <path d="M62 -30 C 92 -44 104 -16 96 12 C 82 6 70 -8 60 -18 Z" fill="#0b1220" />
- <!-- cheeks -->
- <circle cx="-30" cy="-14" r="11" fill="#fda4af" opacity="0.8" />
- <circle cx="30" cy="-14" r="11" fill="#fda4af" opacity="0.8" />
- <!-- eyes -->
- <circle cx="-20" cy="-40" r="9" fill="#f8fafc" />
- <circle cx="20" cy="-40" r="9" fill="#f8fafc" />
- <circle cx="-18" cy="-38" r="4.4" fill="#0b1220" />
- <circle cx="22" cy="-38" r="4.4" fill="#0b1220" />
- <circle cx="-16" cy="-40" r="1.5" fill="#f8fafc" />
- <circle cx="24" cy="-40" r="1.5" fill="#f8fafc" />
- <!-- beak -->
- <path d="M-11 -22 L 11 -22 L 0 -8 Z" fill="#f59e0b" />
- <!-- scarf around the neck (two bands, one short tail) -->
- <path d="M-40 4 Q 0 22 40 4 L 40 20 Q 0 38 -40 20 Z" fill="#ef4444" />
- <path d="M28 14 q 26 6 30 26 q -18 6 -34 -6 Z" fill="#f87171" />
- <!-- feet resting on the front slat -->
- <path d="M-26 104 q -14 12 4 20 q 20 4 26 -10 Z" fill="#fb923c" />
- <path d="M26 104 q -6 14 12 18 q 20 2 22 -12 Z" fill="#fb923c" />
- </g>
- </g>
- </svg>
-
- <div class="title" id="title"></div>
- <div class="hud" id="hud-score">
- <span class="label" id="score-label"></span><span class="value">1280</span>
- </div>
- <div class="hud" id="hud-dist">
- <span class="label" id="dist-label"></span><span class="value">512 m</span>
- </div>
- <div class="hud" id="hud-speed"><span class="value">×2.4</span></div>
- <div class="hint"><kbd id="key"></kbd><span id="hint"></span></div>
- </div>
-
- <script>
- const params = new URLSearchParams(location.search);
- const lang = params.get("lang") === "zh" ? "zh" : "en";
- if (params.get("theme") === "dark") document.body.classList.add("dark");
- const T = {
- zh: {
- title: "企 鹅 雪 橇 越 野",
- score: "得分",
- dist: "里程",
- key: "空格",
- hint: "起跳,跃过石头!",
- },
- en: {
- title: "P E N G U I N · S L E D · R U N",
- score: "SCORE",
- dist: "DISTANCE",
- key: "Space",
- hint: "jump the rocks!",
- },
- }[lang];
- document.documentElement.lang = lang === "zh" ? "zh-CN" : "en";
- document.getElementById("title").textContent = T.title;
- document.getElementById("score-label").textContent = T.score;
- document.getElementById("dist-label").textContent = T.dist;
- document.getElementById("key").textContent = T.key;
- document.getElementById("hint").textContent = T.hint;
- const dark = document.body.classList.contains("dark");
- if (dark) {
- for (const [sel, fill] of [
- [".hill-far", "#243b55"],
- [".hill-near", "#2c476b"],
- ]) {
- document.querySelector(sel).setAttribute("fill", fill);
- }
- for (const rect of document.querySelectorAll("svg rect")) {
- if (rect.getAttribute("fill") === "#ffffff") rect.setAttribute("fill", "#dbeafe");
- }
- }
- </script>
- </body>
-</html>
diff --git a/packages/landing/scripts/postbuild.mjs b/packages/landing/scripts/postbuild.mjs
deleted file mode 100644
index 457e9d41..00000000
--- a/packages/landing/scripts/postbuild.mjs
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Post-build step for GitHub Pages, which serves static files only:
- *
- * - A shell per blog route (dist/blog/index.html, dist/blog/<slug>/index.html), the
- * same trick the docs package uses. Without them Pages answers every blog URL from
- * 404.html: the SPA still boots and the page looks right, but the response carries
- * HTTP 404, so crawlers drop it and the posts never get indexed. Each shell also
- * carries its own canonical/og:url, which is what a crawler that does not run JS
- * sees — the SPA cannot rewrite them in time to matter.
- * - dist/404.html for paths that really do not exist (and for /docs/* misses, which the
- * landing router hands to the docs index). Its canonical is stripped: claiming the
- * home page as the canonical of an unknown URL would ask search engines to fold
- * every typo into it.
- * - .nojekyll so Pages serves the dist verbatim without Jekyll processing.
- */
-import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
-import { dirname, join } from "node:path";
-import { fileURLToPath } from "node:url";
-import { absoluteUrl, blogRoutes, pageRoutes } from "./site-routes.mjs";
-
-const dist = join(dirname(fileURLToPath(import.meta.url)), "..", "dist");
-const shell = readFileSync(join(dist, "index.html"), "utf8");
-
-// Loose enough to survive Vite's HTML rewriting, strict enough to hit only these two
-// tags. Both must exist in index.html — if a future edit drops them, fail the build
-// rather than silently shipping every route with the home page's canonical.
-const CANONICAL = /<link\s+rel="canonical"[^>]*>/;
-const OG_URL = /<meta\s+property="og:url"[^>]*>/;
-for (const [name, pattern] of [
- ["canonical", CANONICAL],
- ["og:url", OG_URL],
-]) {
- if (!pattern.test(shell)) {
- throw new Error(`[postbuild] no ${name} tag in dist/index.html — index.html must declare one`);
- }
-}
-
-/** The shell with its self-referencing URLs pointed at `route`. */
-function shellFor(route) {
- const url = absoluteUrl(route);
- return shell
- .replace(CANONICAL, `<link rel="canonical" href="${url}" />`)
- .replace(OG_URL, `<meta property="og:url" content="${url}" />`);
-}
-
-const routes = [...pageRoutes(), ...blogRoutes()];
-for (const { route } of routes) {
- const dir = join(dist, route);
- mkdirSync(dir, { recursive: true });
- writeFileSync(join(dir, "index.html"), shellFor(route));
-}
-
-writeFileSync(join(dist, "404.html"), shell.replace(CANONICAL, ""));
-writeFileSync(join(dist, ".nojekyll"), "");
-console.log(`[postbuild] wrote ${routes.length} route shells, dist/404.html and dist/.nojekyll`);
diff --git a/packages/landing/scripts/rag-app-mockup.html b/packages/landing/scripts/rag-app-mockup.html
deleted file mode 100644
index 3728c943..00000000
--- a/packages/landing/scripts/rag-app-mockup.html
+++ /dev/null
@@ -1,439 +0,0 @@
-<!doctype html>
-<html lang="en">
- <!--
- Finished-product mockup of the "one sentence → RAG app" example (a Claude Code docs
- expert), rendered by capture-readme-demo.mjs into assets/readme/rag-app-<lang>-<theme>.webp.
- Pure static page — no build, no server; ?lang=zh|en&theme=light|dark picks the variant.
- Styling follows the web-design skill's Penguin visual language: solid backgrounds,
- 1px hairlines, system fonts, one brand-blue accent, pure-black dark mode.
- -->
- <head>
- <meta charset="utf-8" />
- <title>Claude Code Docs Expert</title>
- <style>
- :root {
- color-scheme: light;
- --brand-50: #e8f0fe;
- --brand-100: #d2e3fc;
- --brand-300: #8ab4f8;
- --brand-500: #4285f4;
- --brand-600: #1a73e8;
- --brand-700: #0b57d0;
- --bg: #ffffff;
- --surface: #ffffff;
- --surface-2: #f9fafb;
- --border: #e5e7eb;
- --control-border: #d1d5db;
- --fg: #111827;
- --fg-muted: #4b5563;
- --fg-faint: #6b7280;
- --accent-bg: #111827;
- --accent-fg: #ffffff;
- --bubble: #f3f4f6;
- --code-bg: #f9fafb;
- --chip-bg: #e8f0fe;
- --chip-fg: #0b57d0;
- --chip-border: #d2e3fc;
- --dots: rgb(26 115 232 / 0.14);
- }
- .dark {
- color-scheme: dark;
- --bg: #000000;
- --surface: #0d0d0d;
- --surface-2: #0d0d0d;
- --border: #1f1f1f;
- --control-border: #303030;
- --fg: #f3f4f6;
- --fg-muted: #9ca3af;
- --fg-faint: #6b7280;
- --accent-bg: #f3f4f6;
- --accent-fg: #111827;
- --bubble: #1f1f1f;
- --code-bg: #0d0d0d;
- --chip-bg: #041e49;
- --chip-fg: #8ab4f8;
- --chip-border: #062e6f;
- --dots: rgb(138 180 248 / 0.16);
- }
- * {
- box-sizing: border-box;
- margin: 0;
- }
- body {
- font-family:
- ui-sans-serif,
- system-ui,
- -apple-system,
- "Segoe UI",
- Roboto,
- "PingFang SC",
- "Microsoft YaHei",
- sans-serif;
- -webkit-font-smoothing: antialiased;
- background: var(--bg);
- color: var(--fg);
- height: 100vh;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- code,
- pre {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- }
-
- nav {
- height: 56px;
- flex: none;
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 0 24px;
- border-bottom: 1px solid var(--border);
- background: color-mix(in srgb, var(--bg) 85%, transparent);
- }
- .logo {
- width: 28px;
- height: 28px;
- border-radius: 8px;
- background: var(--accent-bg);
- color: var(--accent-fg);
- display: grid;
- place-items: center;
- flex: none;
- }
- .logo svg {
- width: 16px;
- height: 16px;
- }
- .app-name {
- font-size: 15px;
- font-weight: 600;
- letter-spacing: -0.01em;
- }
- .nav-chip {
- font-size: 11px;
- font-weight: 500;
- color: var(--chip-fg);
- background: var(--chip-bg);
- border: 1px solid var(--chip-border);
- border-radius: 9999px;
- padding: 2px 10px;
- }
- .nav-right {
- margin-left: auto;
- display: flex;
- align-items: center;
- gap: 6px;
- font-size: 12px;
- color: var(--fg-faint);
- }
- .dot {
- width: 6px;
- height: 6px;
- border-radius: 9999px;
- background: #10b981;
- }
-
- main {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
- width: 100%;
- max-width: 48rem;
- margin: 0 auto;
- padding: 0 24px;
- }
- /* Decorative dot grid fading out below the nav — the one flourish the design language
- allows. The ::after overlay fades to the page background, so the tail disappears
- cleanly in dark mode too (light dots on black stay visible far longer under a mask). */
- .dots-band {
- position: absolute;
- inset: 56px 0 auto 0;
- height: 150px;
- background-image: radial-gradient(var(--dots) 1px, transparent 1px);
- background-size: 22px 22px;
- pointer-events: none;
- }
- .dots-band::after {
- content: "";
- position: absolute;
- inset: 0;
- background: linear-gradient(
- to bottom,
- transparent 0%,
- color-mix(in srgb, var(--bg) 55%, transparent) 55%,
- var(--bg) 100%
- );
- }
-
- .chat {
- flex: 1;
- min-height: 0;
- overflow: hidden;
- padding-top: 28px;
- display: flex;
- flex-direction: column;
- gap: 20px;
- position: relative;
- }
- .msg-user {
- align-self: flex-end;
- max-width: 85%;
- background: var(--bubble);
- border-radius: 12px;
- padding: 9px 14px;
- font-size: 14px;
- line-height: 1.55;
- }
- .msg-assistant {
- font-size: 14px;
- line-height: 1.65;
- color: var(--fg);
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .msg-assistant p {
- max-width: 65ch;
- }
- .cite {
- color: var(--brand-600);
- font-size: 0.8em;
- vertical-align: super;
- font-weight: 600;
- text-decoration: none;
- }
- .dark .cite {
- color: var(--brand-300);
- }
- pre.block {
- background: var(--code-bg);
- border: 1px solid var(--border);
- border-radius: 8px;
- padding: 12px 14px;
- font-size: 13px;
- line-height: 1.85;
- overflow-x: auto;
- }
- pre.block .c {
- color: var(--fg-faint);
- }
- .sources {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 8px;
- margin-top: 2px;
- }
- .sources-label {
- font-size: 11px;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--fg-faint);
- }
- .source-chip {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- font-size: 12px;
- color: var(--chip-fg);
- background: var(--chip-bg);
- border: 1px solid var(--chip-border);
- border-radius: 9999px;
- padding: 3px 11px;
- text-decoration: none;
- }
- .source-chip .n {
- font-weight: 600;
- }
- .source-chip .path {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
- font-size: 11px;
- }
-
- .bottom {
- flex: none;
- padding: 14px 0 20px;
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
- .suggests {
- display: flex;
- flex-wrap: wrap;
- gap: 8px;
- }
- .suggest {
- font-size: 12px;
- color: var(--fg-muted);
- border: 1px solid var(--border);
- background: var(--surface);
- border-radius: 9999px;
- padding: 5px 12px;
- }
- .composer {
- border: 1px solid var(--control-border);
- background: var(--surface);
- border-radius: 12px;
- padding: 12px 12px 10px 14px;
- display: flex;
- align-items: flex-end;
- gap: 10px;
- }
- .composer .ph {
- flex: 1;
- font-size: 14px;
- color: var(--fg-faint);
- padding: 4px 0 6px;
- }
- .send {
- width: 32px;
- height: 32px;
- border-radius: 8px;
- border: none;
- background: var(--accent-bg);
- color: var(--accent-fg);
- display: grid;
- place-items: center;
- flex: none;
- }
- .hint {
- font-size: 11px;
- color: var(--fg-faint);
- text-align: center;
- }
- </style>
- </head>
- <body>
- <div class="dots-band"></div>
- <nav>
- <div class="logo" aria-hidden>
- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8">
- <path d="M4 19.5V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v13.5" stroke="none" />
- <path
- d="M12 3c3.5 0 5.5 2.6 5.5 6.2 0 4.4 1.6 6.3 2.5 7.1-1.6 2.9-4.6 4.7-8 4.7s-6.4-1.8-8-4.7c.9-.8 2.5-2.7 2.5-7.1C6.5 5.6 8.5 3 12 3z"
- />
- <circle cx="9.8" cy="8.6" r="0.6" fill="currentColor" stroke="none" />
- <circle cx="14.2" cy="8.6" r="0.6" fill="currentColor" stroke="none" />
- <path d="M10.6 11h2.8l-1.4 1.6z" fill="currentColor" stroke="none" />
- </svg>
- </div>
- <span class="app-name" data-t="appName"></span>
- <span class="nav-chip">RAG · claude-code-docs</span>
- <div class="nav-right"><span class="dot"></span><span data-t="corpus"></span></div>
- </nav>
-
- <main>
- <div class="chat">
- <div class="msg-user" data-t="question"></div>
- <div class="msg-assistant">
- <p>
- <span data-t="a1"></span>
- <a class="cite" href="#">[1]</a><span data-t="a1b"></span>
- </p>
- <pre class="block"><span class="c" data-t="codeC1"></span>
-claude mcp add github -- npx -y @modelcontextprotocol/server-github
-
-<span class="c" data-t="codeC2"></span>
-claude mcp list</pre>
- <p>
- <span data-t="a2"></span>
- <a class="cite" href="#">[2]</a><span data-t="a2b"></span>
- </p>
- <div class="sources">
- <span class="sources-label" data-t="sources"></span>
- <a class="source-chip" href="#"
- ><span class="n">[1]</span><span class="path">docs/mcp.md</span
- ><span data-t="s1"></span
- ></a>
- <a class="source-chip" href="#"
- ><span class="n">[2]</span><span class="path">docs/settings.md</span
- ><span data-t="s2"></span
- ></a>
- </div>
- </div>
- </div>
-
- <div class="bottom">
- <div class="suggests">
- <span class="suggest" data-t="q1"></span>
- <span class="suggest" data-t="q2"></span>
- <span class="suggest" data-t="q3"></span>
- </div>
- <div class="composer">
- <div class="ph" data-t="placeholder"></div>
- <button class="send" aria-hidden>
- <svg
- width="15"
- height="15"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- stroke-width="2"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path d="M12 19V5M6 11l6-6 6 6" />
- </svg>
- </button>
- </div>
- <div class="hint" data-t="hint"></div>
- </div>
- </main>
-
- <script>
- const T = {
- en: {
- appName: "Claude Code Docs Expert",
- corpus: "674 chunks · BM25",
- question: "How do I configure an MCP server for Claude Code?",
- a1: "Add the server with the CLI, then verify it from inside Claude Code ",
- a1b: ":",
- codeC1: "# add a server (local scope by default)",
- codeC2: "# verify",
- a2: "Project-scoped servers live in .mcp.json at the project root and are shared with your team; user scope makes a server available across all your projects ",
- a2b: ". Inside a session, /mcp shows each server's connection status.",
- sources: "Sources",
- s1: "— Add an MCP server",
- s2: "— Settings & scopes",
- q1: "What does CLAUDE.md do?",
- q2: "How do I create a custom slash command?",
- q3: "Where do hooks go?",
- placeholder: "Ask about Claude Code…",
- hint: "Answers cite the collected docs — click a source to open the original file.",
- },
- zh: {
- appName: "Claude Code 配置专家",
- corpus: "674 个片段 · BM25",
- question: "如何为 Claude Code 配置 MCP 服务器?",
- a1: "用 CLI 添加服务器,然后在 Claude Code 里验证 ",
- a1b: ":",
- codeC1: "# 添加服务器(默认 local 作用域)",
- codeC2: "# 验证",
- a2: "项目级服务器保存在项目根目录的 .mcp.json,可随仓库共享给团队;user 作用域则让服务器在你的所有项目中可用 ",
- a2b: "。会话内可用 /mcp 查看各服务器的连接状态。",
- sources: "来源",
- s1: "— 添加 MCP 服务器",
- s2: "— 设置与作用域",
- q1: "CLAUDE.md 是做什么的?",
- q2: "怎么创建自定义斜杠命令?",
- q3: "Hooks 配置放在哪里?",
- placeholder: "向 Claude Code 专家提问…",
- hint: "回答引用采集的文档——点击来源即可打开原文。",
- },
- };
- const params = new URLSearchParams(location.search);
- const lang = params.get("lang") === "zh" ? "zh" : "en";
- const theme = params.get("theme") === "dark" ? "dark" : "light";
- document.documentElement.lang = lang === "zh" ? "zh" : "en";
- if (theme === "dark") document.documentElement.classList.add("dark");
- for (const el of document.querySelectorAll("[data-t]")) {
- el.textContent = T[lang][el.dataset.t];
- }
- document.title = T[lang].appName;
- </script>
- </body>
-</html>
diff --git a/packages/landing/scripts/render-benchmark-svg.mjs b/packages/landing/scripts/render-benchmark-svg.mjs
deleted file mode 100644
index 9edbfa46..00000000
--- a/packages/landing/scripts/render-benchmark-svg.mjs
+++ /dev/null
@@ -1,187 +0,0 @@
-/**
- * Renders the README / blog benchmark chart from the same data the landing page uses
- * (src/lib/benchmark-data.ts), so the static SVGs cannot drift from the site when the
- * numbers are refreshed. Emits:
- * assets/readme/benchmark-light.svg (committed here, used by the README)
- * assets/readme/benchmark-dark.svg (committed here, used by the README)
- * packages/landing/.blog-assets/benchmark-light.svg
- *
- * That last one is a two-step flow: blog images are not committed to this repo, so the file
- * lands in the gitignored staging dir packages/landing/.blog-assets/ and is then uploaded to
- * the `blog-assets/` directory of the sibling `Prism-Shadow/penguin-harness-community` repo,
- * which is what the posts load from (the renderer resolves /blog-assets/<name> there — see
- * packages/landing/src/lib/links.ts).
- *
- * Two panels per suite (accuracy, cost), horizontal bars scaled linearly from zero — the
- * cost spread is ~70x, so the PenguinHarness bar is by far the shortest. That is the
- * result, not a defect; a zoomed baseline would flatter everyone else. Bars are floored at
- * MIN_BAR, though: at true scale the cost bar comes out ~2.5px, which reads as "no bar" and
- * loses the series entirely. The floor keeps it visible and unmistakably smallest, and the
- * exact figure is printed beside every bar, so nothing is overstated.
- *
- * Run: node packages/landing/scripts/render-benchmark-svg.mjs
- */
-import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
-import path from "node:path";
-import { fileURLToPath } from "node:url";
-
-const HERE = path.dirname(fileURLToPath(import.meta.url));
-const LANDING = path.resolve(HERE, "..");
-const REPO = path.resolve(LANDING, "..", "..");
-
-/**
- * The data module is TypeScript; rather than add a build step, read the two exported
- * arrays out of the source. Any shape change here fails loudly instead of silently
- * rendering a stale chart.
- */
-function loadBench() {
- const src = readFileSync(path.join(LANDING, "src/lib/benchmark-data.ts"), "utf8");
- const consts = Object.fromEntries(
- [...src.matchAll(/^const (\w+) = "([^"]+)";$/gm)].map((m) => [m[1], m[2]]),
- );
- const pick = (name) => {
- const block = src.match(
- new RegExp(`export const ${name}: BenchResult\\[\\] = \\[([\\s\\S]*?)\\n\\];`),
- );
- if (!block) throw new Error(`could not find ${name} in benchmark-data.ts`);
- const rows = [...block[1].matchAll(/\{([\s\S]*?)\n {2}\}/g)].map((m) => {
- const body = m[1];
- const field = (k) => body.match(new RegExp(`${k}:\\s*([^,\\n]+)`))?.[1]?.trim();
- const str = (k) => {
- const v = field(k);
- if (!v) throw new Error(`missing ${k}`);
- return v.startsWith('"') ? v.slice(1, -1) : (consts[v] ?? v);
- };
- return {
- framework: str("framework"),
- model: str("model"),
- accuracyPct: Number(field("accuracyPct")),
- tokensM: Number(field("tokensM")),
- costUsd: Number(field("costUsd")),
- emphasized: /emphasized:\s*true/.test(body),
- };
- });
- if (rows.length !== 3) throw new Error(`${name}: expected 3 rows, got ${rows.length}`);
- for (const r of rows) {
- if (!Number.isFinite(r.accuracyPct) || !Number.isFinite(r.costUsd)) {
- throw new Error(`${name}: ${r.framework} has a non-numeric field`);
- }
- }
- return rows;
- };
- return { DATA_BENCH: pick("DATA_BENCH"), CODE_BENCH: pick("CODE_BENCH") };
-}
-
-const THEMES = {
- light: {
- strong: "#1f2328",
- mid: "#52514e",
- muted: "#898781",
- rule: "#c3c2b7",
- brand: "#2a78d6",
- bar: "#898781",
- },
- dark: {
- strong: "#f0f3f6",
- mid: "#c3c2b7",
- muted: "#898781",
- rule: "#383835",
- brand: "#3987e5",
- bar: "#6b6a64",
- },
-};
-
-const FONT = "system-ui, -apple-system, 'Segoe UI', sans-serif";
-const W = 920;
-const H = 368;
-const BAR_H = 16;
-const ROW_H = 30;
-const MAX_BAR = 176;
-/** Shortest a bar may render, so a near-zero value still reads as a bar (~8% of full). */
-const MIN_BAR = 14;
-
-const esc = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
-
-function text(x, y, s, { size = 12, weight = 400, fill, anchor = "start" }) {
- return `<text x="${x}" y="${y}" font-size="${size}" font-weight="${weight}" fill="${fill}" text-anchor="${anchor}" font-family="${FONT}">${esc(s)}</text>`;
-}
-
-/** Rounded-end horizontal bar starting at the axis. */
-function bar(x, y, w, fill) {
- const r = Math.min(4, w / 2);
- return `<path d="M${x} ${y} h${(w - r).toFixed(1)} a${r} ${r} 0 0 1 ${r} ${r} v${BAR_H - 2 * r} a${r} ${r} 0 0 1 -${r} ${r} h-${(w - r).toFixed(1)} z" fill="${fill}"/>`;
-}
-
-/** One measure for one suite: label column, axis rule, three bars, value labels. */
-function panel(t, x0, yTop, rows, value, format) {
- const axis = x0 + 124;
- const max = Math.max(...rows.map(value));
- const out = [
- `<rect x="${axis - 1}" y="${yTop}" width="1" height="${ROW_H * rows.length + 2}" fill="${t.rule}"/>`,
- ];
- rows.forEach((row, i) => {
- const y = yTop + 4 + i * ROW_H;
- const w = Math.max(MIN_BAR, (value(row) / max) * MAX_BAR);
- const weight = row.emphasized ? 600 : 400;
- out.push(
- text(axis - 12, y + 12.5, row.framework, {
- fill: row.emphasized ? t.strong : t.mid,
- weight,
- anchor: "end",
- }),
- bar(axis + 1, y, w, row.emphasized ? t.brand : t.bar),
- text(axis + w + 13, y + 12.5, format(value(row)), { fill: t.strong, weight }),
- );
- });
- return out.join("\n");
-}
-
-function suite(t, yTop, title, rows) {
- return [
- text(24, yTop, title, { size: 13, weight: 600, fill: t.strong }),
- panel(
- t,
- 24,
- yTop + 10,
- rows,
- (r) => r.accuracyPct,
- (v) => `${v.toFixed(2)}%`,
- ),
- panel(
- t,
- 472,
- yTop + 10,
- rows,
- (r) => r.costUsd,
- (v) => `$${v.toFixed(2)}`,
- ),
- ].join("\n");
-}
-
-function render(theme, { DATA_BENCH, CODE_BENCH }) {
- const t = THEMES[theme];
- const alt =
- "Benchmark: PenguinHarness vs Claude Code vs OpenAI Codex on two suites — comparable accuracy at a small fraction of the cost";
- return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${W} ${H}" width="${W}" height="${H}" role="img" aria-label="${esc(alt)}">
-${text(148, 36, "Accuracy · suite total · higher is better", { fill: t.muted })}
-${text(596, 36, "Total cost (USD) · lower is better", { fill: t.muted })}
-${suite(t, 68, "Data analysis — 15 tasks, single run", DATA_BENCH)}
-${suite(t, 210, "Coding — 40 tasks × 2 runs", CODE_BENCH)}
-${text(24, 338, "Each harness runs the model it is normally paired with: PenguinHarness on DeepSeek V4 Pro, Claude Code on Claude Opus 4.8,", { fill: t.muted })}
-${text(24, 356, "OpenAI Codex on GPT-5.5. Accuracy, Tokens and cost are suite totals at official pricing.", { fill: t.muted })}
-</svg>
-`;
-}
-
-const bench = loadBench();
-const targets = [
- ["light", path.join(REPO, "assets/readme/benchmark-light.svg")],
- ["dark", path.join(REPO, "assets/readme/benchmark-dark.svg")],
- ["light", path.join(LANDING, ".blog-assets/benchmark-light.svg")],
-];
-for (const [theme, file] of targets) {
- // The blog staging dir is gitignored, so it does not exist in a fresh clone.
- mkdirSync(path.dirname(file), { recursive: true });
- writeFileSync(file, render(theme, bench));
- console.log(`wrote ${path.relative(REPO, file)}`);
-}
diff --git a/packages/landing/scripts/site-routes.mjs b/packages/landing/scripts/site-routes.mjs
deleted file mode 100644
index a26db952..00000000
--- a/packages/landing/scripts/site-routes.mjs
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * The deployed site's public routes, derived from the same Markdown filenames the two
- * routers read (landing: content/blog/<slug>.<lang>.md, docs: content/<slug>.<lang>.md).
- *
- * Two consumers share this list, and they have to agree: the landing postbuild writes
- * one static shell per route (so GitHub Pages answers 200 instead of falling back to
- * 404.html), and build-site.mjs writes sitemap.xml for the assembled tree. A route that
- * gets a shell belongs in the sitemap, and a sitemap URL that has no shell is a 404.
- */
-import { readdirSync, readFileSync } from "node:fs";
-import { dirname, join } from "node:path";
-import { fileURLToPath } from "node:url";
-
-/** Production origin, no trailing slash. Override for a staging deploy. */
-export const SITE_ORIGIN = (process.env.SITE_ORIGIN ?? "https://penguin.ooo").replace(/\/+$/, "");
-
-/** Deploy subpath, no trailing slash ("" at the domain root, "/repo" under a Pages subpath). */
-export const BASE_PATH = (process.env.BASE_PATH ?? "/").replace(/\/+$/, "");
-
-/** Absolute URL for a site-root-relative route path. */
-export function absoluteUrl(route) {
- return `${SITE_ORIGIN}${BASE_PATH}${route}`;
-}
-
-const HERE = dirname(fileURLToPath(import.meta.url));
-const BLOG_DIR = join(HERE, "..", "content", "blog");
-const DOCS_DIR = join(HERE, "..", "..", "docs", "content");
-
-/** `<slug>.<lang>.md` -> slug, deduplicated across the two languages, sorted. */
-function slugsIn(dir) {
- const slugs = new Set();
- for (const file of readdirSync(dir)) {
- const slug = /^(.+)\.(zh|en)\.md$/.exec(file)?.[1];
- if (slug !== undefined) slugs.add(slug);
- }
- return [...slugs].sort();
-}
-
-/** Newest `date:` in a post's frontmatter across its language variants, if any. */
-function newestDate(dir, slug) {
- let newest;
- for (const lang of ["en", "zh"]) {
- let raw;
- try {
- raw = readFileSync(join(dir, `${slug}.${lang}.md`), "utf8");
- } catch {
- continue; // A post exists in one language only; the other is a legitimate miss.
- }
- const frontmatter = /^---\r?\n([\s\S]*?)\r?\n---/.exec(raw)?.[1] ?? "";
- const date = /^date:\s*"?(\d{4}-\d{2}-\d{2})"?\s*$/m.exec(frontmatter)?.[1];
- if (date !== undefined && (newest === undefined || date > newest)) newest = date;
- }
- return newest;
-}
-
-/**
- * Routes served by the landing SPA. Trailing slashes are deliberate: Pages serves
- * `<route>/index.html` and 301s the slashless form to it, so the slash form is the URL
- * that actually answers 200 — the one canonical tags and the sitemap should name.
- * The home page is excluded; Vite's own index.html already sits at the dist root.
- */
-
-/** Non-blog landing SPA pages (currently the desktop download page). */
-export function pageRoutes() {
- return [{ route: "/download/" }];
-}
-
-/** Blog routes, one per post plus the list page. */
-export function blogRoutes() {
- return [
- { route: "/blog/" },
- ...slugsIn(BLOG_DIR).map((slug) => ({
- route: `/blog/${slug}/`,
- lastmod: newestDate(BLOG_DIR, slug),
- })),
- ];
-}
-
-/** Routes served by the docs SPA, whose own postbuild already writes their shells. */
-export function docsRoutes() {
- return [{ route: "/docs/" }, ...slugsIn(DOCS_DIR).map((slug) => ({ route: `/docs/${slug}/` }))];
-}
diff --git a/packages/landing/src/app.tsx b/packages/landing/src/app.tsx
deleted file mode 100644
index 512aee89..00000000
--- a/packages/landing/src/app.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- * App root: Locale -> Theme -> LocaleScope -> Router provider composition,
- * mirroring the Web App (LocaleScope remounts the tree keyed by locale so
- * every `S.x` read reflects the active language).
- */
-import { LocaleProvider, LocaleScope } from "./state/locale";
-import { ThemeProvider } from "./state/theme";
-import { AppRouter } from "./router";
-
-export function App() {
- return (
- <LocaleProvider>
- <ThemeProvider>
- <LocaleScope>
- <AppRouter />
- </LocaleScope>
- </ThemeProvider>
- </LocaleProvider>
- );
-}
diff --git a/packages/landing/src/assets/case-line-inspection.webp b/packages/landing/src/assets/case-line-inspection.webp
deleted file mode 100644
index 672c8d0e..00000000
Binary files a/packages/landing/src/assets/case-line-inspection.webp and /dev/null differ
diff --git a/packages/landing/src/assets/case-medical-qc.webp b/packages/landing/src/assets/case-medical-qc.webp
deleted file mode 100644
index 577711e1..00000000
Binary files a/packages/landing/src/assets/case-medical-qc.webp and /dev/null differ
diff --git a/packages/landing/src/assets/evo-poster-en.webp b/packages/landing/src/assets/evo-poster-en.webp
deleted file mode 100644
index f8fdd0b4..00000000
Binary files a/packages/landing/src/assets/evo-poster-en.webp and /dev/null differ
diff --git a/packages/landing/src/assets/evo-poster-zh.webp b/packages/landing/src/assets/evo-poster-zh.webp
deleted file mode 100644
index 69ab3ec4..00000000
Binary files a/packages/landing/src/assets/evo-poster-zh.webp and /dev/null differ
diff --git a/packages/landing/src/assets/game-en-dark.webp b/packages/landing/src/assets/game-en-dark.webp
deleted file mode 100644
index 4ef7cc62..00000000
Binary files a/packages/landing/src/assets/game-en-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/game-en-light.webp b/packages/landing/src/assets/game-en-light.webp
deleted file mode 100644
index 9421d7dc..00000000
Binary files a/packages/landing/src/assets/game-en-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/game-zh-dark.webp b/packages/landing/src/assets/game-zh-dark.webp
deleted file mode 100644
index 067678d0..00000000
Binary files a/packages/landing/src/assets/game-zh-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/game-zh-light.webp b/packages/landing/src/assets/game-zh-light.webp
deleted file mode 100644
index e58a0c9e..00000000
Binary files a/packages/landing/src/assets/game-zh-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/rag-app-en-dark.webp b/packages/landing/src/assets/rag-app-en-dark.webp
deleted file mode 100644
index 52392a7f..00000000
Binary files a/packages/landing/src/assets/rag-app-en-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/rag-app-en-light.webp b/packages/landing/src/assets/rag-app-en-light.webp
deleted file mode 100644
index 0a2115b7..00000000
Binary files a/packages/landing/src/assets/rag-app-en-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/rag-app-zh-dark.webp b/packages/landing/src/assets/rag-app-zh-dark.webp
deleted file mode 100644
index 8a698e02..00000000
Binary files a/packages/landing/src/assets/rag-app-zh-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/rag-app-zh-light.webp b/packages/landing/src/assets/rag-app-zh-light.webp
deleted file mode 100644
index b9dba579..00000000
Binary files a/packages/landing/src/assets/rag-app-zh-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/benchmark-en-dark.webp b/packages/landing/src/assets/shots/benchmark-en-dark.webp
deleted file mode 100644
index 921988f6..00000000
Binary files a/packages/landing/src/assets/shots/benchmark-en-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/benchmark-en-light.webp b/packages/landing/src/assets/shots/benchmark-en-light.webp
deleted file mode 100644
index 80a59ea4..00000000
Binary files a/packages/landing/src/assets/shots/benchmark-en-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/benchmark-zh-dark.webp b/packages/landing/src/assets/shots/benchmark-zh-dark.webp
deleted file mode 100644
index b6c25f18..00000000
Binary files a/packages/landing/src/assets/shots/benchmark-zh-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/benchmark-zh-light.webp b/packages/landing/src/assets/shots/benchmark-zh-light.webp
deleted file mode 100644
index d399c194..00000000
Binary files a/packages/landing/src/assets/shots/benchmark-zh-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/chat-en-dark.webp b/packages/landing/src/assets/shots/chat-en-dark.webp
deleted file mode 100644
index fcc08110..00000000
Binary files a/packages/landing/src/assets/shots/chat-en-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/chat-en-light.webp b/packages/landing/src/assets/shots/chat-en-light.webp
deleted file mode 100644
index 5f51ed73..00000000
Binary files a/packages/landing/src/assets/shots/chat-en-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/chat-zh-dark.webp b/packages/landing/src/assets/shots/chat-zh-dark.webp
deleted file mode 100644
index 0748ec6a..00000000
Binary files a/packages/landing/src/assets/shots/chat-zh-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/chat-zh-light.webp b/packages/landing/src/assets/shots/chat-zh-light.webp
deleted file mode 100644
index e169e28a..00000000
Binary files a/packages/landing/src/assets/shots/chat-zh-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/traces-en-dark.webp b/packages/landing/src/assets/shots/traces-en-dark.webp
deleted file mode 100644
index 6823e9ec..00000000
Binary files a/packages/landing/src/assets/shots/traces-en-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/traces-en-light.webp b/packages/landing/src/assets/shots/traces-en-light.webp
deleted file mode 100644
index 3cd40704..00000000
Binary files a/packages/landing/src/assets/shots/traces-en-light.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/traces-zh-dark.webp b/packages/landing/src/assets/shots/traces-zh-dark.webp
deleted file mode 100644
index 2d4ec7dd..00000000
Binary files a/packages/landing/src/assets/shots/traces-zh-dark.webp and /dev/null differ
diff --git a/packages/landing/src/assets/shots/traces-zh-light.webp b/packages/landing/src/assets/shots/traces-zh-light.webp
deleted file mode 100644
index 5f624823..00000000
Binary files a/packages/landing/src/assets/shots/traces-zh-light.webp and /dev/null differ
diff --git a/packages/landing/src/components/announcement-bar.tsx b/packages/landing/src/components/announcement-bar.tsx
deleted file mode 100644
index 5338b261..00000000
--- a/packages/landing/src/components/announcement-bar.tsx
+++ /dev/null
@@ -1,136 +0,0 @@
-/**
- * Rotating announcement bar above the sticky nav (it scrolls away with the page).
- * Light brand-tinted background; announcements auto-advance by SLIDING in one
- * direction only (a clone of the first slide follows the last one, and the track
- * snaps back without animation once the clone is fully in view). No manual
- * switch controls; hovering or focusing the bar pauses the rotation. Every
- * announcement is a link with a small arrow marking it as click-through: a blog
- * post opens in place through the router, a page on another site in a new tab.
- */
-import { useEffect, useState } from "react";
-import { Link } from "react-router";
-import { ANNOUNCEMENTS, type Announcement } from "../lib/announcements";
-import { S } from "../lib/strings";
-import { ArrowRightIcon } from "./icons";
-
-const ROTATE_MS = 6000;
-
-const LINK_CLASS =
- "inline-flex min-w-0 items-center gap-1.5 text-[13px] font-medium text-brand-800 underline-offset-2 hover:underline dark:text-brand-200";
-
-const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
-
-function prefersReducedMotion(): boolean {
- return window.matchMedia(REDUCED_MOTION_QUERY).matches;
-}
-
-export function AnnouncementBar() {
- // pos runs 0..ANNOUNCEMENTS.length where ANNOUNCEMENTS.length is the clone of slide 0.
- const [pos, setPos] = useState(0);
- const [animate, setAnimate] = useState(true);
- // Focus pauses like hover does: tabIndex={-1} never blurs an already focused
- // link, so advancing past it would strand document focus inside an aria-hidden
- // slide translated out of the viewport, and WCAG 2.2.2 wants the rotation
- // stoppable without a pointer. The two are tracked apart so the pointer
- // leaving the bar cannot restart it while focus is still inside.
- const [hovered, setHovered] = useState(false);
- const [focused, setFocused] = useState(false);
- const paused = hovered || focused;
- const [reduced, setReduced] = useState(prefersReducedMotion);
-
- // Tracked live rather than read once, because the preference can be toggled
- // while the page is open and it decides how the rotation wraps around.
- useEffect(() => {
- const mq = window.matchMedia(REDUCED_MOTION_QUERY);
- const onChange = (e: MediaQueryListEvent) => setReduced(e.matches);
- setReduced(mq.matches);
- mq.addEventListener("change", onChange);
- return () => mq.removeEventListener("change", onChange);
- }, []);
-
- useEffect(() => {
- if (paused) return;
- // styles.css kills every transition under reduced motion, so the clone's
- // transitionend never arrives and the snap-back below never runs: those
- // users wrap around the real slides instead and never land on the clone.
- const advance = (p: number) => {
- if (reduced) return (p + 1) % ANNOUNCEMENTS.length;
- return p >= ANNOUNCEMENTS.length ? p : p + 1;
- };
- const timer = setInterval(() => setPos(advance), ROTATE_MS);
- return () => clearInterval(timer);
- }, [paused, reduced]);
-
- // After snapping back to the real first slide, re-enable the transition on the
- // next frame pair so the jump itself never animates.
- useEffect(() => {
- if (animate) return;
- const raf = requestAnimationFrame(() => requestAnimationFrame(() => setAnimate(true)));
- return () => cancelAnimationFrame(raf);
- }, [animate]);
-
- const slides: readonly Announcement[] = [...ANNOUNCEMENTS, ANNOUNCEMENTS[0]!];
-
- return (
- <div
- role="region"
- aria-label={S.announcement.label}
- onMouseEnter={() => setHovered(true)}
- onMouseLeave={() => setHovered(false)}
- onFocusCapture={() => setFocused(true)}
- onBlurCapture={() => setFocused(false)}
- className="border-b border-brand-100 bg-brand-50 dark:border-brand-950 dark:bg-brand-950/50"
- >
- <div className="mx-auto h-9 max-w-6xl px-4 sm:px-6">
- {/* Clip inside the horizontal padding. Otherwise the next slide peeks through
- the padding box on narrow screens before its turn. */}
- <div className="h-full overflow-hidden">
- <div
- className={`flex h-full ${animate ? "transition-transform duration-500 ease-out" : ""}`}
- style={{ transform: `translateX(-${pos * 100}%)` }}
- onTransitionEnd={(e) => {
- if (e.target !== e.currentTarget || e.propertyName !== "transform") return;
- if (pos === ANNOUNCEMENTS.length) {
- setAnimate(false);
- setPos(0);
- }
- }}
- >
- {slides.map((item, i) => {
- const tabIndex = i === pos ? 0 : -1;
- const content = (
- <>
- <span className="truncate">{S.announcement[item.key]}</span>
- <ArrowRightIcon className="h-3.5 w-3.5 shrink-0" aria-hidden="true" />
- </>
- );
- return (
- <div
- key={`${item.key}-${i}`}
- aria-hidden={i !== pos}
- className="flex w-full shrink-0 items-center justify-center"
- >
- {item.to !== undefined ? (
- <Link to={item.to} tabIndex={tabIndex} className={LINK_CLASS}>
- {content}
- </Link>
- ) : (
- <a
- href={item.href}
- target="_blank"
- rel="noopener noreferrer"
- tabIndex={tabIndex}
- className={LINK_CLASS}
- >
- {content}
- </a>
- )}
- </div>
- );
- })}
- </div>
- </div>
- </div>
- </div>
- );
-}
diff --git a/packages/landing/src/components/browser-frame.tsx b/packages/landing/src/components/browser-frame.tsx
deleted file mode 100644
index a752f701..00000000
--- a/packages/landing/src/components/browser-frame.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-/** Fake browser chrome around product screenshots: traffic dots + address pill. */
-import type { ReactNode } from "react";
-
-export function BrowserFrame({
- children,
- url = "127.0.0.1:7364",
- className = "",
-}: {
- children: ReactNode;
- url?: string;
- className?: string;
-}) {
- return (
- <div
- className={`overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900 ${className}`}
- >
- <div className="flex items-center gap-3 border-b border-gray-200 px-3.5 py-2.5 dark:border-gray-800">
- <span className="flex gap-1.5" aria-hidden="true">
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- </span>
- <span className="min-w-0 flex-1 truncate rounded-md bg-gray-100 px-3 py-1 text-center font-mono text-[11px] text-gray-500 dark:bg-gray-800 dark:text-gray-400">
- {url}
- </span>
- <span className="w-10" aria-hidden="true" />
- </div>
- {children}
- </div>
- );
-}
diff --git a/packages/landing/src/components/category-badge.tsx b/packages/landing/src/components/category-badge.tsx
deleted file mode 100644
index 7e5ba763..00000000
--- a/packages/landing/src/components/category-badge.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Blog badges: category (news = brand fill, practice = brand outline, perspectives =
- * teal fill, changelog = neutral) + the pinned marker, all sharing the same pill shape.
- */
-import { S } from "../lib/strings";
-import type { BlogCategory } from "../lib/blog";
-
-const CATEGORY_STYLES: Record<BlogCategory, string> = {
- news: "border-brand-200 bg-brand-50 text-brand-700 dark:border-brand-800 dark:bg-brand-950 dark:text-brand-300",
- practice:
- "border-brand-200 bg-transparent text-brand-700 dark:border-brand-800 dark:text-brand-300",
- perspectives:
- "border-teal-300 bg-teal-50 text-teal-800 dark:border-teal-700 dark:bg-teal-950 dark:text-teal-300",
- changelog:
- "border-gray-200 bg-gray-50 text-gray-600 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-300",
-};
-
-export function CategoryBadge({ category }: { category: BlogCategory }) {
- return (
- <span
- className={`rounded-full border px-2 py-0.5 text-[11px] font-medium ${CATEGORY_STYLES[category]}`}
- >
- {S.blog[category]}
- </span>
- );
-}
-
-export function PinnedBadge() {
- return (
- <span className="rounded-full border border-brand-200 bg-brand-50 px-2 py-0.5 text-[11px] font-medium text-brand-700 dark:border-brand-800 dark:bg-brand-950 dark:text-brand-300">
- {S.blog.pinned}
- </span>
- );
-}
diff --git a/packages/landing/src/components/code-card.tsx b/packages/landing/src/components/code-card.tsx
deleted file mode 100644
index 3d572af6..00000000
--- a/packages/landing/src/components/code-card.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * Terminal-style code card: rounded border, a slim header with a label + copy button,
- * and a monospace body. Comment lines (starting with #) render muted; no highlighter
- * dependency — landing snippets are short shell commands.
- */
-import { TerminalIcon } from "./icons";
-import { CopyButton } from "./copy-button";
-
-export function CodeCard({
- code,
- label,
- className = "",
-}: {
- code: string;
- label?: string;
- className?: string;
-}) {
- const lines = code.split("\n");
- return (
- <div
- className={`overflow-hidden rounded-xl border border-gray-200 bg-gray-50 text-left dark:border-gray-800 dark:bg-gray-900 ${className}`}
- >
- <div className="flex items-center justify-between gap-2 border-b border-gray-200 px-3 py-2 dark:border-gray-800">
- <span className="inline-flex min-w-0 items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400">
- <TerminalIcon className="h-3.5 w-3.5 shrink-0" />
- <span className="truncate font-mono">{label ?? "shell"}</span>
- </span>
- <CopyButton text={code} />
- </div>
- <pre className="overflow-x-auto px-4 py-3 text-[13px] leading-6">
- <code>
- {lines.map((line, i) => {
- const isComment = line.trimStart().startsWith("#");
- return (
- <span
- key={i}
- className={`block whitespace-pre ${
- isComment
- ? "text-gray-400 dark:text-gray-500"
- : "text-gray-800 dark:text-gray-200"
- }`}
- >
- {line.length > 0 ? line : " "}
- </span>
- );
- })}
- </code>
- </pre>
- </div>
- );
-}
diff --git a/packages/landing/src/components/copy-button.tsx b/packages/landing/src/components/copy-button.tsx
deleted file mode 100644
index 0819f44a..00000000
--- a/packages/landing/src/components/copy-button.tsx
+++ /dev/null
@@ -1,50 +0,0 @@
-/** Copy-to-clipboard button with a transient "copied" state. */
-import { useEffect, useRef, useState } from "react";
-import { S } from "../lib/strings";
-import { CheckIcon, CopyIcon } from "./icons";
-
-export function CopyButton({ text, className = "" }: { text: string; className?: string }) {
- const [copied, setCopied] = useState(false);
- const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
-
- useEffect(
- () => () => {
- if (timer.current) clearTimeout(timer.current);
- },
- [],
- );
-
- const onCopy = async () => {
- try {
- await navigator.clipboard.writeText(text);
- } catch {
- // Clipboard API unavailable (e.g. non-secure context): fall back to a hidden textarea.
- const ta = document.createElement("textarea");
- ta.value = text;
- document.body.appendChild(ta);
- ta.select();
- document.execCommand("copy");
- ta.remove();
- }
- setCopied(true);
- if (timer.current) clearTimeout(timer.current);
- timer.current = setTimeout(() => setCopied(false), 1600);
- };
-
- return (
- <button
- type="button"
- onClick={() => void onCopy()}
- title={copied ? S.copy.copied : S.copy.copy}
- aria-label={copied ? S.copy.copied : S.copy.copy}
- className={`inline-flex items-center gap-1.5 rounded-md border border-gray-200 bg-white px-2 py-1 text-xs text-gray-600 transition-colors hover:bg-gray-50 hover:text-gray-900 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-100 ${className}`}
- >
- {copied ? (
- <CheckIcon className="h-3.5 w-3.5 text-green-600 dark:text-green-400" />
- ) : (
- <CopyIcon className="h-3.5 w-3.5" />
- )}
- <span>{copied ? S.copy.copied : S.copy.copy}</span>
- </button>
- );
-}
diff --git a/packages/landing/src/components/demo-video.tsx b/packages/landing/src/components/demo-video.tsx
deleted file mode 100644
index 5ccf0e24..00000000
--- a/packages/landing/src/components/demo-video.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * Demo video embed. The file itself is hosted in the sibling community repo (see
- * `demoVideoUrl` in lib/links.ts for why), so the important part here is that nothing
- * is fetched until the visitor asks: `preload="none"` plus a poster means a page view
- * costs one ~37 KB still, not a ~9 MB download, and the section still looks finished
- * before anyone presses play.
- *
- * Deliberately NOT wrapped in BrowserFrame: that chrome (with its localhost address bar)
- * says "this is the product's UI", which is true of a screenshot and of the case demos,
- * but not of a narrated slide deck. A plain framed surface instead.
- */
-
-export function DemoVideo({
- src,
- poster,
- label,
- caption,
-}: {
- src: string;
- poster: string;
- /** Accessible name — the surrounding copy is decorative to a screen reader. */
- label: string;
- caption?: string;
-}) {
- return (
- <figure className="mx-auto w-full max-w-4xl">
- <div className="overflow-hidden rounded-xl border border-gray-200 bg-gray-950 shadow-sm dark:border-gray-800">
- <video
- src={src}
- poster={poster}
- controls
- preload="none"
- playsInline
- aria-label={label}
- className="block h-auto w-full"
- />
- </div>
- {caption && (
- <figcaption className="mt-3 text-center text-xs text-gray-500 dark:text-gray-400">
- {caption}
- </figcaption>
- )}
- </figure>
- );
-}
diff --git a/packages/landing/src/components/footer.tsx b/packages/landing/src/components/footer.tsx
deleted file mode 100644
index b1a547c2..00000000
--- a/packages/landing/src/components/footer.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-/**
- * Site footer: brand + product/resource link columns + copyright. The container is
- * max-w-7xl to frame the page like the nav (chrome shared with the docs site), while
- * content sections stay max-w-6xl.
- */
-import { Link } from "react-router";
-import { S } from "../lib/strings";
-import { DOCS_URL, LICENSE_URL, RELEASES_URL, REPO_URL } from "../lib/links";
-
-export function Footer() {
- const anchor = (id: string, label: string) => (
- <Link to={`/#${id}`} className="hover:text-gray-900 dark:hover:text-gray-100">
- {label}
- </Link>
- );
-
- return (
- <footer className="border-t border-gray-200 dark:border-gray-800">
- <div className="mx-auto max-w-7xl px-4 py-12 sm:px-6">
- <div className="flex flex-col gap-10 sm:flex-row sm:justify-between">
- <div className="max-w-xs">
- <div className="flex items-center gap-2">
- <img src={`${import.meta.env.BASE_URL}penguin-logo.svg`} alt="" className="h-7 w-7" />
- <span className="text-[15px] font-semibold tracking-tight">{S.siteName}</span>
- </div>
- <p className="mt-3 text-sm text-gray-500 dark:text-gray-400">{S.footer.tagline}</p>
- </div>
- <div className="grid grid-cols-2 gap-10 text-sm">
- <div>
- <p className="mb-3 font-medium">{S.footer.product}</p>
- <ul className="space-y-2 text-gray-500 dark:text-gray-400">
- <li>{anchor("features", S.footer.features)}</li>
- <li>{anchor("self-improvement", S.footer.selfImprove)}</li>
- <li>{anchor("cases", S.footer.cases)}</li>
- <li>{anchor("quickstart", S.footer.quickstart)}</li>
- <li>
- <Link to="/blog" className="hover:text-gray-900 dark:hover:text-gray-100">
- {S.footer.blog}
- </Link>
- </li>
- <li>
- <Link to="/download" className="hover:text-gray-900 dark:hover:text-gray-100">
- {S.nav.download}
- </Link>
- </li>
- </ul>
- </div>
- <div>
- <p className="mb-3 font-medium">{S.footer.resources}</p>
- <ul className="space-y-2 text-gray-500 dark:text-gray-400">
- <li>
- <a
- href={REPO_URL}
- target="_blank"
- rel="noreferrer"
- className="hover:text-gray-900 dark:hover:text-gray-100"
- >
- {S.footer.repo}
- </a>
- </li>
- <li>
- <a href={DOCS_URL} className="hover:text-gray-900 dark:hover:text-gray-100">
- {S.footer.docs}
- </a>
- </li>
- <li>
- <a
- href={RELEASES_URL}
- target="_blank"
- rel="noreferrer"
- className="hover:text-gray-900 dark:hover:text-gray-100"
- >
- {S.footer.releases}
- </a>
- </li>
- <li>
- <a
- href={LICENSE_URL}
- target="_blank"
- rel="noreferrer"
- className="hover:text-gray-900 dark:hover:text-gray-100"
- >
- {S.footer.license}
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <p className="mt-10 pt-6 text-xs text-gray-400 dark:text-gray-500">{S.footer.copyright}</p>
- </div>
- </footer>
- );
-}
diff --git a/packages/landing/src/components/harness-logo.tsx b/packages/landing/src/components/harness-logo.tsx
deleted file mode 100644
index 3fbcfc82..00000000
--- a/packages/landing/src/components/harness-logo.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Harness brand marks for the benchmark comparison: PenguinHarness uses the product
- * logo asset; Claude Code and Codex use their vendors' marks (simple-icons path data,
- * rendered in currentColor so they stay neutral in both themes).
- */
-
-export type HarnessKind = "penguin" | "claude" | "codex";
-
-const ANTHROPIC_PATH =
- "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5527h3.7442L10.5359 3.541Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z";
-
-const OPENAI_PATH =
- "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.073zM13.2599 22.4301a4.4755 4.4755 0 0 1-2.8764-1.04l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.8956zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654 2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z";
-
-export function HarnessLogo({
- kind,
- className = "h-3.5 w-3.5",
-}: {
- kind: HarnessKind;
- className?: string;
-}) {
- if (kind === "penguin") {
- return <img src={`${import.meta.env.BASE_URL}penguin-logo.svg`} alt="" className={className} />;
- }
- return (
- <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" className={className}>
- <path d={kind === "claude" ? ANTHROPIC_PATH : OPENAI_PATH} />
- </svg>
- );
-}
diff --git a/packages/landing/src/components/icons.tsx b/packages/landing/src/components/icons.tsx
deleted file mode 100644
index 10d5f804..00000000
--- a/packages/landing/src/components/icons.tsx
+++ /dev/null
@@ -1,505 +0,0 @@
-/**
- * Inline icon set (lucide-style 24x24 stroke icons + the GitHub mark). Kept local so
- * the landing page has zero icon dependencies; all icons inherit currentColor.
- */
-import type { ReactNode, SVGProps } from "react";
-
-type IconProps = SVGProps<SVGSVGElement>;
-
-function Icon({ children, ...props }: IconProps & { children: ReactNode }) {
- return (
- <svg
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- aria-hidden="true"
- {...props}
- >
- {children}
- </svg>
- );
-}
-
-export function GitHubIcon(props: IconProps) {
- return (
- <svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" {...props}>
- <path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.11.79-.25.79-.56 0-.28-.01-1.02-.02-2-3.2.7-3.88-1.54-3.88-1.54-.52-1.33-1.28-1.68-1.28-1.68-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.03 1.76 2.7 1.25 3.36.96.1-.75.4-1.25.72-1.54-2.55-.29-5.24-1.28-5.24-5.68 0-1.26.45-2.28 1.18-3.09-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.18a10.9 10.9 0 0 1 5.74 0c2.18-1.49 3.14-1.18 3.14-1.18.63 1.59.24 2.76.12 3.05.74.81 1.18 1.83 1.18 3.09 0 4.41-2.69 5.38-5.25 5.67.41.35.78 1.05.78 2.12 0 1.53-.02 2.76-.02 3.14 0 .3.21.67.8.55A11.51 11.51 0 0 0 23.5 12C23.5 5.65 18.35.5 12 .5Z" />
- </svg>
- );
-}
-
-export type ModelProvider =
- "openai" | "anthropic" | "gemini" | "deepseek" | "zai" | "moonshot" | "qwen" | "openrouter";
-
-/** Compact model-provider marks reused from the Web App's provider glyph set. */
-export function ModelProviderLogo({
- provider,
- className,
-}: {
- provider: ModelProvider;
- className?: string;
-}) {
- if (provider === "gemini") {
- return (
- <svg viewBox="0 0 24 24" className={className} aria-hidden="true">
- <defs>
- <linearGradient id="landing-gemini-mark" x1="2" y1="22" x2="22" y2="2">
- <stop stopColor="#1C69FF" />
- <stop offset="0.48" stopColor="#9B72FF" />
- <stop offset="1" stopColor="#D96570" />
- </linearGradient>
- </defs>
- <path
- fill="url(#landing-gemini-mark)"
- d="M12 24A14.304 14.304 0 0 0 0 12 14.304 14.304 0 0 0 12 0a14.305 14.305 0 0 0 12 12 14.305 14.305 0 0 0-12 12"
- />
- </svg>
- );
- }
-
- const color = {
- openai: "text-gray-900 dark:text-gray-100",
- anthropic: "text-[#D97757]",
- deepseek: "text-[#4D6BFE]",
- zai: "text-[#5B57D9]",
- moonshot: "text-gray-900 dark:text-gray-100",
- qwen: "text-[#615CED]",
- openrouter: "text-gray-900 dark:text-gray-100",
- }[provider];
-
- return (
- <svg
- viewBox={provider === "qwen" ? "-0.76 -0.47 28.6 28.6" : "0 0 24 24"}
- fill="currentColor"
- className={`${color} ${className ?? ""}`}
- aria-hidden="true"
- >
- {provider === "openai" && (
- <path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" />
- )}
- {provider === "anthropic" && (
- <path d="M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" />
- )}
- {provider === "deepseek" && (
- <path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.328.14a5.526 5.526 0 0 1-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 0 0-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 0 1-.465.137 9.597 9.597 0 0 0-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.034-.237.23-.256a4.173 4.173 0 0 0 1.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 0 1 1.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.615zm1-6.44a.306.306 0 0 1 .415-.287.302.302 0 0 1 .2.288.306.306 0 0 1-.31.307.303.303 0 0 1-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 0 1-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 0 1 .016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 0 1-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.191-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.196-.02.354-.25.452z" />
- )}
- {provider === "zai" && (
- <path d="M4.6 3.2h14.8a.9.9 0 0 1 .73 1.43L9.9 18.6h9.2a.9.9 0 0 1 0 1.8H4.6a.9.9 0 0 1-.73-1.43L14.1 5.4H4.6a1.1 1.1 0 0 1 0-2.2Z" />
- )}
- {provider === "moonshot" && (
- <path d="m1.053 16.91 9.538 2.55a21 20.981 0 0 0 .06 2.031l5.956 1.592a12 11.99 0 0 1-15.554-6.172m-1.02-5.79 11.352 3.035a21 20.981 0 0 0-.469 2.01l10.817 2.89a12 11.99 0 0 1-1.845 2.004L.658 15.918a12 11.99 0 0 1-.625-4.796m1.593-5.146L13.573 9.17a21 20.981 0 0 0-1.01 1.874l11.297 3.02a21 20.981 0 0 1-.67 2.362l-11.55-3.087L.125 10.26a12 11.99 0 0 1 1.499-4.285ZM6.067 1.58l11.285 3.016a21 20.981 0 0 0-1.688 1.719l7.824 2.091a21 20.981 0 0 1 .513 2.664L2.107 5.218a12 11.99 0 0 1 3.96-3.638M21.68 4.866 7.222 1.003A12 11.99 0 0 1 21.68 4.866" />
- )}
- {provider === "qwen" && (
- <>
- <path d="M26.59,15.92L22.82,13.75C22.92,13.59,22.97,13.4,22.97,13.21L22.97,12.05C22.97,11.66,22.76,11.31,22.43,11.12L21.42,10.54C21.09,10.34,20.68,10.34,20.35,10.54L17.26,12.32C16.93,12.51,16.73,12.86,16.73,13.25L16.73,14.41C16.73,14.79,16.93,15.15,17.26,15.34L24.51,19.53C24.84,19.72,25.25,19.72,25.58,19.53L26.59,18.94C26.92,18.75,27.13,18.4,27.13,18.01L27.13,16.85C27.13,16.47,26.92,16.11,26.59,15.92Z" />
- <path d="M21.88,3.58L18.11,5.75C18.02,5.59,17.89,5.46,17.72,5.36L16.71,4.78C16.38,4.59,15.97,4.59,15.64,4.78L14.63,5.36C14.3,5.55,14.09,5.9,14.09,6.29L14.09,9.86C14.09,10.24,14.3,10.59,14.63,10.78L15.64,11.37C15.97,11.56,16.38,11.56,16.71,11.37L23.96,7.18C24.29,6.99,24.5,6.64,24.5,6.25L24.5,5.09C24.5,4.71,24.29,4.35,23.96,4.16L22.95,3.58C22.62,3.39,22.21,3.39,21.88,3.58Z" />
- <path d="M8.83,1.48L8.83,5.83C8.65,5.83,8.46,5.88,8.3,5.98L7.29,6.56C6.95,6.75,6.75,7.11,6.75,7.49L6.75,8.65C6.75,9.04,6.95,9.39,7.29,9.58L10.37,11.37C10.71,11.56,11.11,11.56,11.45,11.37L12.45,10.78C12.79,10.59,12.99,10.24,12.99,9.85L12.99,1.48C12.99,1.1,12.79,0.75,12.45,0.56L11.45,-0.03C11.11,-0.22,10.71,-0.22,10.37,-0.03L9.37,0.56C9.03,0.75,8.83,1.1,8.83,1.48Z" />
- <path d="M0.5,11.74L4.26,13.91C4.17,14.07,4.12,14.26,4.12,14.45L4.12,15.61C4.12,16,4.32,16.35,4.65,16.54L5.66,17.13C6,17.32,6.4,17.32,6.73,17.13L9.82,15.34C10.15,15.15,10.36,14.8,10.36,14.41L10.36,13.25C10.36,12.87,10.15,12.51,9.82,12.32L2.57,8.14C2.24,7.94,1.84,7.94,1.5,8.14L0.5,8.72C0.16,8.91,-0.04,9.26,-0.04,9.65L-0.04,10.81C-0.04,11.19,0.16,11.55,0.5,11.74Z" />
- <path d="M5.21,24.08L8.97,21.91C9.07,22.07,9.2,22.21,9.37,22.3L10.38,22.88C10.71,23.08,11.11,23.08,11.45,22.88L12.46,22.3C12.79,22.11,12.99,21.76,12.99,21.37L12.99,17.81C12.99,17.42,12.79,17.07,12.46,16.88L11.45,16.29C11.11,16.1,10.71,16.1,10.38,16.29L3.13,20.48C2.8,20.67,2.59,21.02,2.59,21.41L2.59,22.57C2.59,22.95,2.8,23.31,3.13,23.5L4.14,24.08C4.47,24.28,4.88,24.28,5.21,24.08Z" />
- <path d="M18.26,26.18L18.26,21.83C18.44,21.83,18.63,21.78,18.79,21.68L19.8,21.1C20.13,20.91,20.34,20.56,20.34,20.17L20.34,19.01C20.34,18.62,20.13,18.27,19.8,18.08L16.71,16.3C16.38,16.1,15.97,16.1,15.64,16.3L14.63,16.88C14.3,17.07,14.1,17.42,14.1,17.81L14.1,26.18C14.1,26.56,14.3,26.91,14.63,27.11L15.64,27.69C15.97,27.88,16.38,27.88,16.71,27.69L17.72,27.11C18.05,26.91,18.26,26.56,18.26,26.18Z" />
- </>
- )}
- {provider === "openrouter" && (
- <path d="M16.778 1.844v1.919q-.569-.026-1.138-.032-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237-2.911 2.066-2.731 1.95-4.14 2.75-.396.223-1.342.574-2.185.798-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799 1.41.798 1.228.683 4.14 2.75 2.126 1.509 4.22 2.11 6.148 2.236.88.058 1.716.041 2.555.005v1.918l7.222-4.168-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021-1.364-.09-2.417-.357-3.979-1.465-2.244-1.593-2.866-2.027-3.68-2.508.889-.518 1.449-.906 3.822-2.59 1.56-1.109 2.614-1.377 3.978-1.466.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z" />
- )}
- </svg>
- );
-}
-
-/** Platform marks copied from the ZCode download page so both sites use the same glyphs. */
-export function MacOSIcon(props: IconProps) {
- return (
- <svg viewBox="0 0 32 32" fill="none" aria-hidden="true" {...props}>
- <path
- fill="currentColor"
- d="M25.547 11.131a5.89 5.89 0 0 0-2.814 4.955 5.73 5.73 0 0 0 3.488 5.257 13.7 13.7 0 0 1-1.786 3.69c-1.112 1.601-2.275 3.202-4.044 3.202-1.77 0-2.225-1.028-4.264-1.028-1.988 0-2.696 1.062-4.314 1.062s-2.746-1.483-4.044-3.303a15.96 15.96 0 0 1-2.713-8.61c0-5.056 3.286-7.735 6.521-7.735 1.72 0 3.152 1.128 4.23 1.128 1.028 0 2.629-1.196 4.584-1.196a6.13 6.13 0 0 1 5.156 2.578m-6.083-4.718a5.8 5.8 0 0 0 1.382-3.622 2.5 2.5 0 0 0-.05-.522A5.82 5.82 0 0 0 16.97 4.24a5.65 5.65 0 0 0-1.432 3.522q0 .239.05.472.176.033.354.034a5.05 5.05 0 0 0 3.522-1.855"
- />
- </svg>
- );
-}
-
-export function WindowsIcon(props: IconProps) {
- return (
- <svg viewBox="0 0 32 32" fill="none" aria-hidden="true" {...props}>
- <path fill="#DD5B34" d="M5 5h10v10H5z" />
- <path fill="#F1B941" d="M17 17h10v10H17z" />
- <path fill="#49A1E8" d="M5 17h10v10H5z" />
- <path fill="#8BB738" d="M17 5h10v10H17z" />
- </svg>
- );
-}
-
-export function LinuxIcon(props: IconProps) {
- return (
- <svg viewBox="0 0 32 32" fill="none" aria-hidden="true" {...props}>
- <path
- fill="#ECEFF1"
- d="m12.267 9.498.082 1.9-1.322 2.48-2.066 4.048-.413 3.387 1.488 4.793 3.387 1.9h5.123l4.792-3.636 2.148-5.7-4.957-6.032-1.405-3.388z"
- />
- <path
- fill="#263238"
- d="M24 14.208c-1.323-1.9-2.397-3.058-2.975-5.454s.165-1.735-.33-3.8a6.5 6.5 0 0 0-1.075-2.397c-.496-.578-1.074-.908-1.404-.991-.744-.413-2.48-1.074-4.627.083-2.231 1.156-1.983 3.635-1.57 8.675 0 .33-.083.744-.248 1.074-.33.744-.91 1.405-1.405 1.983-.578.827-1.157 1.653-1.57 2.562-.991 1.9-1.9 4.296-1.652 5.205.413-.082 5.618 7.85 5.618 8.015.33-.083 1.735-.083 2.975-.083 1.735-.082 2.726-.165 4.131.165 0-.248-.083-.495-.083-.743 0-.496.083-.91.166-1.487.082-.414.165-.827.248-1.323-.827.744-2.314 1.57-3.719 1.818-1.239.248-3.305-.165-4.296-1.404.083 0 .248 0 .33-.083.248-.083.496-.165.579-.33.248-.414.082-.827-.083-1.075-.165-.247-1.404-1.156-1.983-1.652-.578-.496-.909-.744-1.24-1.074l-.66-.661c-.165-.166-.248-.33-.33-.413-.166-.414-.249-.91-.166-1.57.083-.91.413-1.653.826-2.479.166-.33.579-.991.579-.991s-1.405 3.47-.661 4.544c0 0 .082-1.074.413-2.148.248-.744.66-1.818 1.157-2.396.495-.579 1.735-2.727 1.817-4.05 0-.578.083-1.156.083-1.569-.33-.33 5.453-1.157 5.784-.248.082.33 1.24 3.305 1.9 4.875.33.744.744 1.405.992 2.23.247.91.413 2.15.413 3.389 0 .247 0 .66-.083 1.074.165 0 3.388-3.47-.413-6.362 0 0 2.313 1.074 2.396 3.222.083 1.735-.66 3.14-.826 3.388.082 0 1.735.743 1.818.743.33 0 .991-.248.991-.248.083-.248.33-.909.33-1.157.579-1.9-.826-4.957-2.148-6.857"
- />
- <path
- fill="#ECEFF1"
- d="M13.506 8.754c.593 0 1.074-.74 1.074-1.652 0-.913-.481-1.653-1.074-1.653s-1.074.74-1.074 1.653c0 .912.48 1.652 1.074 1.652M17.224 8.92c.776 0 1.405-.851 1.405-1.9 0-1.05-.63-1.901-1.405-1.901-.776 0-1.405.85-1.405 1.9s.63 1.9 1.405 1.9"
- />
- <path
- fill="#212121"
- d="M14.106 7.215c-.069-.543-.381-.951-.698-.911s-.518.513-.45 1.056c.069.543.381.951.698.911s.518-.513.45-1.056M17.142 8.424c.456 0 .826-.481.826-1.074s-.37-1.074-.826-1.074c-.457 0-.827.48-.827 1.074 0 .593.37 1.074.827 1.074"
- />
- <path
- fill="#FFC107"
- d="M28.13 25.527c-.33-.165-.908-.413-1.404-1.157-.248-.413-.165-1.57-.578-2.065-.248-.33-.579-.165-.662-.165-.743.165-2.478 1.322-3.635 0-.165-.166-.413-.414-.826-.414s-.579.166-.744.496-.165.579-.165 1.405c0 .66 0 1.404-.083 1.983-.165 1.404-.413 2.23-.413 3.057 0 .909.248 1.487.578 1.735.248.248.662.413 1.57.413.91 0 1.488-.33 2.066-.909.413-.413.744-.578 1.9-1.404.91-.579 2.314-1.322 2.562-1.57.165-.165.413-.248.413-.744 0-.413-.33-.578-.578-.66M11.523 25.775c-.826-1.322-.909-1.57-1.487-2.396-.496-.826-1.57-2.396-2.231-2.396-.496 0-.744.248-1.074.578s-.661 1.074-1.24 1.487c-.495.414-1.9.33-2.23.827-.33.495.33 1.239.33 2.478 0 .496-.413.827-.496 1.157-.082.413-.165.661 0 .992.33.495.744.66 3.553 1.239 1.488.33 2.892 1.157 3.801 1.24s2.479 0 2.479-2.232c.082-1.322-.661-1.652-1.405-2.974M13.093 10.82c-.496-.33-.909-.661-.909-1.157s.33-.66.826-1.074c.083-.083.992-.909 1.9-.909.91 0 1.984.579 2.397.744.744.165 1.487.33 1.405.909-.083.826-.166.991-.992 1.404-.578.166-1.652 1.074-2.396 1.074-.33 0-.826 0-1.157-.082-.248-.083-.66-.496-1.074-.91"
- />
- <path
- fill="#634703"
- d="M12.928 10.159c.165.165.413.33.66.413.166.083.414.165.414.165h.743c.414 0 .992-.165 1.57-.495.579-.248.661-.414 1.074-.579.413-.248.827-.496.661-.578-.165-.083-.33 0-.909.33-.495.33-.908.496-1.404.744-.248.083-.578.248-.826.248h-.744c-.248 0-.413-.083-.661-.165-.165-.083-.248-.166-.33-.166-.166-.082-.496-.413-.662-.495 0 0-.165 0-.082.082zM15.406 8.341c.083.165.248.165.33.248s.166.083.166.083c.083-.083 0-.248-.083-.248 0-.165-.413-.165-.413-.083M14.084 8.506c0 .083.165.166.165.083.083-.083.165-.165.248-.165.165-.083.083-.165-.165-.165-.165.082-.165.165-.248.247"
- />
- <path
- fill="#455A64"
- d="M22.1 23.131v.248c.164.33.577.413.908.413.496 0 .991-.33 1.24-.661 0-.083.082-.165.165-.248.165-.248.247-.413.33-.496 0 0-.083-.082-.083-.165-.082-.165-.33-.33-.66-.413-.248-.083-.662-.165-.827-.165-.743-.083-1.157.165-1.404.413 0 0 .082 0 .082.083a.75.75 0 0 1 .248.578c.083.165 0 .248 0 .413"
- />
- </svg>
- );
-}
-
-export function SunIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <circle cx="12" cy="12" r="4" />
- <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" />
- </Icon>
- );
-}
-
-export function MoonIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />
- </Icon>
- );
-}
-
-export function MonitorIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <rect x="2" y="3" width="20" height="14" rx="2" />
- <path d="M8 21h8M12 17v4" />
- </Icon>
- );
-}
-
-export function CopyIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <rect x="9" y="9" width="13" height="13" rx="2" />
- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
- </Icon>
- );
-}
-
-export function CheckIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M20 6 9 17l-5-5" />
- </Icon>
- );
-}
-
-export function MenuIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M4 6h16M4 12h16M4 18h16" />
- </Icon>
- );
-}
-
-export function XIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M18 6 6 18M6 6l12 12" />
- </Icon>
- );
-}
-
-export function ArrowRightIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M5 12h14M12 5l7 7-7 7" />
- </Icon>
- );
-}
-
-export function TerminalIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="m4 17 6-6-6-6M12 19h8" />
- </Icon>
- );
-}
-
-export function DownloadIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3" />
- </Icon>
- );
-}
-
-export function SlidersIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M21 4h-7M10 4H3M21 12h-9M8 12H3M21 20h-5M12 20H3M14 2v4M8 10v4M16 18v4" />
- </Icon>
- );
-}
-
-export function PlayIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M6 3l14 9-14 9V3Z" />
- </Icon>
- );
-}
-
-export function FeatherIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5ZM16 8 2 22M17.5 15H9" />
- </Icon>
- );
-}
-
-/**
- * Agent glyph, byte-identical to the Web App's `ICONS.robot`
- * (packages/ui/src/components/icons/icons.ts): the product and the page that sells it must
- * not draw the same thing two ways. Kept as ONE path rather than this file's usual element mix
- * so the two are literally the same string — test/agent-glyph-sync.test.ts fails when they drift.
- */
-export function BotIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M12 8V4H8M6 8h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zM2 14h2M20 14h2M9 13h.01M15 13h.01M10 16.5s.8 1 2 1 2-1 2-1" />
- </Icon>
- );
-}
-
-export function RefreshIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8M21 3v5h-5" />
- <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16M8 16H3v5" />
- </Icon>
- );
-}
-
-/** Pair it with `animate-spin`: the gap in the ring is what makes the rotation readable. */
-export function SpinnerIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M21 12a9 9 0 1 1-6.22-8.56" />
- </Icon>
- );
-}
-
-export function CpuIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <rect x="5" y="5" width="14" height="14" rx="2" />
- <rect x="9.5" y="9.5" width="5" height="5" />
- <path d="M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3" />
- </Icon>
- );
-}
-
-export function LayersIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M12 2 2 7l10 5 10-5-10-5ZM2 12l10 5 10-5M2 17l10 5 10-5" />
- </Icon>
- );
-}
-
-export function BlocksIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <rect x="3" y="3" width="7" height="7" rx="1" />
- <rect x="14" y="3" width="7" height="7" rx="1" />
- <rect x="8.5" y="14" width="7" height="7" rx="1" />
- </Icon>
- );
-}
-
-export function ShareIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <circle cx="18" cy="5" r="3" />
- <circle cx="6" cy="12" r="3" />
- <circle cx="18" cy="19" r="3" />
- <path d="m8.59 13.51 6.83 3.98M15.41 6.51 8.59 10.49" />
- </Icon>
- );
-}
-
-export function SparklesIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M9.94 15.5a2 2 0 0 0-1.44-1.44L2.37 12.48a.5.5 0 0 1 0-.96L8.5 9.94A2 2 0 0 0 9.94 8.5l1.58-6.13a.5.5 0 0 1 .96 0l1.58 6.13a2 2 0 0 0 1.44 1.44l6.13 1.58a.5.5 0 0 1 0 .96l-6.13 1.58a2 2 0 0 0-1.44 1.44l-1.58 6.13a.5.5 0 0 1-.96 0Z" />
- <path d="M20 3v4M22 5h-4" />
- </Icon>
- );
-}
-
-export function ActivityIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M22 12h-4l-3 9L9 3l-3 9H2" />
- </Icon>
- );
-}
-
-export function BarChartIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M3 3v18h18M8 17v-3M13 17V9M18 17V5" />
- </Icon>
- );
-}
-
-export function HistoryIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8M3 3v5h5M12 7v5l4 2" />
- </Icon>
- );
-}
-
-export function ClockIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <circle cx="12" cy="12" r="10" />
- <path d="M12 6v6l4 2" />
- </Icon>
- );
-}
-
-export function PieChartIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M21.21 15.89A10 10 0 1 1 8 2.83M22 12A10 10 0 0 0 12 2v10Z" />
- </Icon>
- );
-}
-
-export function ShieldIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M20 13c0 5-3.5 7.5-7.66 8.94a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z" />
- </Icon>
- );
-}
-
-export function ShieldCheckIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M20 13c0 5-3.5 7.5-7.66 8.94a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z" />
- <path d="m9 12 2 2 4-4" />
- </Icon>
- );
-}
-
-export function FrameIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M6 2v20M18 2v20M2 6h20M2 18h20" />
- </Icon>
- );
-}
-
-export function FileCheckIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" />
- <path d="M14 2v4a2 2 0 0 0 2 2h4M9 15l2 2 4-4" />
- </Icon>
- );
-}
-
-export function MessageSquareIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z" />
- </Icon>
- );
-}
-
-export function UsersIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
- <circle cx="9" cy="7" r="4" />
- <path d="M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75" />
- </Icon>
- );
-}
-
-export function GlobeIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <circle cx="12" cy="12" r="10" />
- <path d="M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10Z" />
- </Icon>
- );
-}
-
-export function ChevronDownIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="m6 9 6 6 6-6" />
- </Icon>
- );
-}
-
-export function ChevronLeftIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="m15 18-6-6 6-6" />
- </Icon>
- );
-}
-
-export function ChevronRightIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="m9 18 6-6-6-6" />
- </Icon>
- );
-}
-
-export function ExternalLinkIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
- </Icon>
- );
-}
-
-export function LinkIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />
- </Icon>
- );
-}
-
-export function KeyIcon(props: IconProps) {
- return (
- <Icon {...props}>
- <path d="m21 2-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.78 7.78 5.5 5.5 0 0 1 7.78-7.78Zm0 0L15.5 7.5m0 0 3 3L22 7l-3-3m-3.5 3.5L19 4" />
- </Icon>
- );
-}
diff --git a/packages/landing/src/components/lang-toggle.tsx b/packages/landing/src/components/lang-toggle.tsx
deleted file mode 100644
index dfe92a72..00000000
--- a/packages/landing/src/components/lang-toggle.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * Language menu: 中文 / English / follow system, persisted via the locale context.
- * A small dropdown (globe + current label); closes on outside click or selection.
- * Scroll position across the locale remount is preserved by LocaleScope.
- */
-import { useEffect, useRef, useState } from "react";
-import { useLocale } from "../state/locale";
-import type { LangPref } from "../state/locale";
-import { S } from "../lib/strings";
-import { CheckIcon, ChevronDownIcon, GlobeIcon } from "./icons";
-
-export function LangToggle() {
- const { lang, setLang } = useLocale();
- const [open, setOpen] = useState(false);
- const ref = useRef<HTMLDivElement | null>(null);
-
- useEffect(() => {
- if (!open) return;
- const onDown = (e: MouseEvent) => {
- if (ref.current && !ref.current.contains(e.target as Node)) setOpen(false);
- };
- document.addEventListener("mousedown", onDown);
- return () => document.removeEventListener("mousedown", onDown);
- }, [open]);
-
- const OPTIONS: Array<{ value: LangPref; label: string }> = [
- { value: "en", label: S.lang.en },
- { value: "zh", label: S.lang.zh },
- { value: "system", label: S.lang.system },
- ];
- const current = OPTIONS.find((o) => o.value === lang) ?? OPTIONS[2]!;
-
- return (
- <div ref={ref} className="relative">
- <button
- type="button"
- onClick={() => setOpen((v) => !v)}
- title={S.lang.label}
- aria-haspopup="menu"
- aria-expanded={open}
- className="inline-flex h-9 items-center gap-1.5 rounded-lg border border-transparent px-2.5 text-sm text-gray-600 transition-colors hover:border-gray-200 hover:bg-gray-50 hover:text-gray-900 dark:text-gray-400 dark:hover:border-gray-800 dark:hover:bg-gray-900 dark:hover:text-gray-100"
- >
- <GlobeIcon className="h-[18px] w-[18px]" />
- <span className="hidden sm:inline">{current.label}</span>
- <ChevronDownIcon className="h-3.5 w-3.5" />
- </button>
- {open && (
- <div
- role="menu"
- className="anim-fade absolute right-0 z-40 mt-1 w-36 rounded-lg border border-gray-200 bg-white py-1 shadow-lg dark:border-gray-700 dark:bg-gray-900"
- >
- {OPTIONS.map((o) => (
- <button
- key={o.value}
- type="button"
- role="menuitemradio"
- aria-checked={lang === o.value}
- onClick={() => {
- setLang(o.value);
- setOpen(false);
- }}
- className="flex w-full items-center justify-between px-3 py-1.5 text-left text-sm text-gray-700 hover:bg-gray-50 dark:text-gray-300 dark:hover:bg-gray-800"
- >
- {o.label}
- {lang === o.value && (
- <CheckIcon className="h-3.5 w-3.5 text-brand-600 dark:text-brand-300" />
- )}
- </button>
- ))}
- </div>
- )}
- </div>
- );
-}
diff --git a/packages/landing/src/components/nav.tsx b/packages/landing/src/components/nav.tsx
deleted file mode 100644
index f9f7bbdc..00000000
--- a/packages/landing/src/components/nav.tsx
+++ /dev/null
@@ -1,255 +0,0 @@
-/**
- * Sticky top navigation: logo + section anchors + blog link + language/theme toggles +
- * GitHub. Desktop links share a sliding hover pill, while the selected section or route
- * keeps its own active background. On the home page the active section tracks the
- * LIVE scroll position (scroll-spy), so the highlight follows as you scroll; on other
- * routes it falls back to route state (e.g. Blog). Section links route through "/#id"
- * so the URL hash stays in sync on click. A disclosure menu covers small screens.
- *
- * The markup and class strings are duplicated verbatim in the docs nav
- * (packages/docs/src/components/nav.tsx — the two sites share no package, as with
- * site-prefs.ts); keep the two files aligned so the navbars render identically.
- */
-import { useEffect, useRef, useState } from "react";
-import type { MouseEvent } from "react";
-import { Link, useLocation } from "react-router";
-import { S } from "../lib/strings";
-import { DOCS_URL, REPO_API_URL, REPO_URL } from "../lib/links";
-import {
- getActiveNavItem,
- getNavItemForSection,
- NAV_SECTION_IDS,
- OBSERVED_SECTION_IDS,
-} from "../lib/nav-state";
-import type { ActiveNavItem, ObservedSectionId } from "../lib/nav-state";
-import { useScrollSpy } from "../lib/use-scroll-spy";
-import { GitHubIcon, MenuIcon, XIcon } from "./icons";
-import { ThemeToggle } from "./theme-toggle";
-import { LangToggle } from "./lang-toggle";
-
-/** Stable empty list: keeps the spy idle away from the home page. */
-const NO_IDS: readonly string[] = [];
-
-function GitHubStarsLink() {
- const [stars, setStars] = useState<number | null>(null);
-
- useEffect(() => {
- const controller = new AbortController();
- void fetch(REPO_API_URL, {
- signal: controller.signal,
- headers: { Accept: "application/vnd.github+json" },
- })
- .then((response) => (response.ok ? response.json() : null))
- .then((data: { stargazers_count?: unknown } | null) => {
- if (typeof data?.stargazers_count === "number") setStars(data.stargazers_count);
- })
- .catch(() => undefined);
- return () => controller.abort();
- }, []);
-
- const count = stars?.toLocaleString("en-US");
- const label = count ? `${S.nav.github} · ${count} stars` : S.nav.github;
- return (
- <a
- href={REPO_URL}
- target="_blank"
- rel="noreferrer"
- title={label}
- aria-label={label}
- className="inline-flex h-9 min-w-9 items-center justify-center gap-1.5 rounded-lg border border-gray-200 bg-white px-2.5 text-xs font-medium text-gray-700 transition-colors hover:bg-gray-50 hover:text-gray-950 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white"
- >
- <GitHubIcon className="h-[18px] w-[18px]" />
- <span className="hidden min-w-8 tabular-nums min-[360px]:inline">{count ?? "-"}</span>
- </a>
- );
-}
-
-export function Nav() {
- const { pathname, hash } = useLocation();
- const onHome = pathname === "/";
- const spied = useScrollSpy(onHome ? OBSERVED_SECTION_IDS : NO_IDS) as ObservedSectionId | null;
- const activeItem: ActiveNavItem = onHome
- ? getNavItemForSection(spied)
- : getActiveNavItem(pathname, hash);
- const [open, setOpen] = useState(false);
- const pillRef = useRef<HTMLSpanElement | null>(null);
- const pillVisible = useRef(false);
-
- const sectionLabel: Record<(typeof NAV_SECTION_IDS)[number], string> = {
- highlights: S.nav.highlights,
- quickstart: S.nav.quickstart,
- scenarios: S.nav.scenarios,
- benchmark: S.nav.benchmark,
- contract: S.nav.contract,
- features: S.nav.features,
- };
-
- const activeLinkCls =
- "bg-black text-white hover:bg-black hover:text-white dark:bg-black dark:text-white dark:ring-1 dark:ring-gray-600 dark:hover:bg-black dark:hover:text-white";
- const inactiveLinkCls = "text-gray-600 dark:text-gray-400";
- const mobileInactiveLinkCls = `${inactiveLinkCls} hover:bg-gray-50 hover:text-gray-900 dark:hover:bg-gray-900 dark:hover:text-gray-100`;
- const deskInactiveLinkCls = `${inactiveLinkCls} hover:text-gray-900 dark:hover:text-gray-100`;
- // Mobile links keep their own backgrounds; desktop links also share a sliding hover pill.
- const mobileLinkCls = (active: boolean) =>
- `rounded-md px-2.5 py-1.5 text-sm transition-colors ${active ? activeLinkCls : mobileInactiveLinkCls}`;
- const deskLinkCls = (active: boolean) =>
- `relative z-10 shrink-0 whitespace-nowrap rounded-md px-2 py-1.5 text-[13px] transition-colors ${active ? activeLinkCls : deskInactiveLinkCls}`;
-
- /**
- * The hover pill appears IN PLACE under the first link it lands on (position
- * jumps with only the fade animating), slides while moving between links, and
- * fades out where it is on leave — never sweeping in from the nav's edge.
- */
- const slideTo = (e: MouseEvent<HTMLElement>) => {
- const el = e.currentTarget;
- const pill = pillRef.current;
- if (!pill) return;
- if (!pillVisible.current) {
- pill.style.transitionProperty = "opacity";
- pill.style.left = `${el.offsetLeft}px`;
- pill.style.width = `${el.offsetWidth}px`;
- void pill.offsetWidth; // flush the jump before restoring the full transition
- pill.style.transitionProperty = "";
- pillVisible.current = true;
- } else {
- pill.style.left = `${el.offsetLeft}px`;
- pill.style.width = `${el.offsetWidth}px`;
- }
- pill.style.opacity = "1";
- };
-
- const hidePill = () => {
- const pill = pillRef.current;
- if (pill) pill.style.opacity = "0";
- pillVisible.current = false;
- };
-
- const desktopLinks = (
- <>
- {NAV_SECTION_IDS.map((id) => {
- const active = activeItem === id;
- return (
- <Link
- key={id}
- to={`/#${id}`}
- className={deskLinkCls(active)}
- onMouseEnter={slideTo}
- aria-current={active ? "location" : undefined}
- >
- {sectionLabel[id]}
- </Link>
- );
- })}
- <Link
- to="/blog"
- className={deskLinkCls(activeItem === "blog")}
- onMouseEnter={slideTo}
- aria-current={activeItem === "blog" ? "page" : undefined}
- >
- {S.nav.blog}
- </Link>
- <Link
- to="/download"
- className={deskLinkCls(activeItem === "download")}
- onMouseEnter={slideTo}
- aria-current={activeItem === "download" ? "page" : undefined}
- >
- {S.nav.download}
- </Link>
- {/* Docs is a sibling SPA under /docs/ — a plain anchor, not a router Link. */}
- <a href={DOCS_URL} className={deskLinkCls(false)} onMouseEnter={slideTo}>
- {S.nav.docs}
- </a>
- </>
- );
-
- const mobileLinks = (
- <>
- {NAV_SECTION_IDS.map((id) => {
- const active = activeItem === id;
- return (
- <Link
- key={id}
- to={`/#${id}`}
- className={mobileLinkCls(active)}
- onClick={() => setOpen(false)}
- aria-current={active ? "location" : undefined}
- >
- {sectionLabel[id]}
- </Link>
- );
- })}
- <Link
- to="/blog"
- className={mobileLinkCls(activeItem === "blog")}
- onClick={() => setOpen(false)}
- aria-current={activeItem === "blog" ? "page" : undefined}
- >
- {S.nav.blog}
- </Link>
- <Link
- to="/download"
- className={mobileLinkCls(activeItem === "download")}
- onClick={() => setOpen(false)}
- aria-current={activeItem === "download" ? "page" : undefined}
- >
- {S.nav.download}
- </Link>
- <a href={DOCS_URL} className={mobileLinkCls(false)} onClick={() => setOpen(false)}>
- {S.nav.docs}
- </a>
- </>
- );
-
- return (
- <header className="sticky top-0 z-40 border-b border-gray-200 bg-white/85 backdrop-blur dark:border-gray-800 dark:bg-gray-950/85">
- <div className="mx-auto flex h-14 max-w-7xl items-center gap-2 px-4 sm:px-6">
- <Link to="/" className="flex shrink-0 items-center gap-2" onClick={() => setOpen(false)}>
- <img src={`${import.meta.env.BASE_URL}penguin-logo.svg`} alt="" className="h-7 w-7" />
- <span className="hidden text-[15px] font-semibold tracking-tight sm:inline">
- {S.siteName}
- </span>
- </Link>
-
- <nav
- className="relative ml-4 hidden items-center gap-0.5 xl:flex"
- aria-label="Primary"
- onMouseLeave={hidePill}
- >
- {/* Sliding hover pill: appears in place, slides between links, fades out in place; active links retain their own background. */}
- <span
- ref={pillRef}
- aria-hidden="true"
- className="absolute top-1/2 h-8 -translate-y-1/2 rounded-md bg-gray-100 transition-[left,width,opacity] duration-200 ease-out dark:bg-gray-800"
- style={{ left: 0, width: 0, opacity: 0 }}
- />
- {desktopLinks}
- </nav>
-
- <div className="ml-auto flex items-center gap-1">
- <LangToggle />
- <ThemeToggle />
- <GitHubStarsLink />
- <button
- type="button"
- onClick={() => setOpen((v) => !v)}
- aria-label={open ? S.nav.closeMenu : S.nav.openMenu}
- aria-expanded={open}
- className="inline-flex h-9 w-9 items-center justify-center rounded-lg border border-transparent text-gray-600 transition-colors hover:border-gray-200 hover:bg-gray-50 xl:hidden dark:text-gray-400 dark:hover:border-gray-800 dark:hover:bg-gray-900"
- >
- {open ? <XIcon className="h-5 w-5" /> : <MenuIcon className="h-5 w-5" />}
- </button>
- </div>
- </div>
-
- {open && (
- <nav
- className="anim-fade border-t border-gray-200 bg-white px-4 py-2 xl:hidden dark:border-gray-800 dark:bg-gray-950"
- aria-label="Mobile"
- >
- <div className="grid grid-cols-2 gap-1 py-1">{mobileLinks}</div>
- </nav>
- )}
- </header>
- );
-}
diff --git a/packages/landing/src/components/neon-bg.tsx b/packages/landing/src/components/neon-bg.tsx
deleted file mode 100644
index 0eb25642..00000000
--- a/packages/landing/src/components/neon-bg.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Ambient neon backdrop: faint blurred glows drifting slowly behind the whole page,
- * anchored to the document (the layout root is position:relative) so they scroll away
- * with the content. Styles in styles.css; reduced-motion freezes them. Decorative only.
- */
-export function NeonBackground() {
- return (
- <div className="neon-bg" aria-hidden="true">
- <span className="neon-blob neon-blob-a" />
- <span className="neon-blob neon-blob-b" />
- <span className="neon-blob neon-blob-c" />
- <span className="neon-blob neon-blob-d" />
- </div>
- );
-}
diff --git a/packages/landing/src/components/section.tsx b/packages/landing/src/components/section.tsx
deleted file mode 100644
index 04126e8c..00000000
--- a/packages/landing/src/components/section.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-/** Shared section shell: anchor id + centered header (eyebrow / title / subtitle) + content. */
-import type { ReactNode } from "react";
-import { useReveal } from "../lib/reveal";
-
-export function Section({
- id,
- eyebrow,
- title,
- subtitle,
- children,
- className = "",
-}: {
- id?: string;
- eyebrow?: string;
- title?: string;
- /** A list renders one line per entry (deliberate breaks, e.g. the 1×/100× pair); a string wraps naturally. */
- subtitle?: string | readonly string[];
- children: ReactNode;
- className?: string;
-}) {
- const ref = useReveal<HTMLElement>();
- return (
- <section ref={ref} className={`px-4 py-16 sm:px-6 sm:py-24 ${className}`}>
- <div id={id} className={`mx-auto max-w-6xl ${id ? "section-anchor" : ""}`}>
- {(eyebrow || title || subtitle) && (
- <div className="mx-auto mb-10 max-w-3xl text-center sm:mb-14">
- {eyebrow && (
- <p className="mb-2 text-sm font-semibold tracking-wide text-brand-600 uppercase dark:text-brand-300">
- {eyebrow}
- </p>
- )}
- {title && (
- <h2 className="text-3xl font-semibold tracking-tight text-balance sm:text-4xl">
- {title}
- </h2>
- )}
- {subtitle && (
- <p className="mt-4 text-base leading-7 text-pretty text-gray-600 dark:text-gray-400">
- {typeof subtitle === "string"
- ? subtitle
- : subtitle.map((line) => (
- <span key={line} className="block">
- {line}
- </span>
- ))}
- </p>
- )}
- </div>
- )}
- {children}
- </div>
- </section>
- );
-}
diff --git a/packages/landing/src/components/theme-toggle.tsx b/packages/landing/src/components/theme-toggle.tsx
deleted file mode 100644
index 4d552ee5..00000000
--- a/packages/landing/src/components/theme-toggle.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-/** Theme cycle button: light -> dark -> system, icon reflects the current mode. */
-import { useTheme } from "../state/theme";
-import type { ThemeMode } from "../state/theme";
-import { S } from "../lib/strings";
-import { MonitorIcon, MoonIcon, SunIcon } from "./icons";
-
-const NEXT: Record<ThemeMode, ThemeMode> = { light: "dark", dark: "system", system: "light" };
-
-export function ThemeToggle() {
- const { mode, setMode } = useTheme();
- const label = mode === "light" ? S.theme.light : mode === "dark" ? S.theme.dark : S.theme.system;
- const IconCmp = mode === "light" ? SunIcon : mode === "dark" ? MoonIcon : MonitorIcon;
- return (
- <button
- type="button"
- onClick={() => setMode(NEXT[mode])}
- title={`${S.theme.label}: ${label}`}
- aria-label={`${S.theme.label}: ${label}`}
- className="inline-flex h-9 w-9 items-center justify-center rounded-lg border border-transparent text-gray-600 transition-colors hover:border-gray-200 hover:bg-gray-50 hover:text-gray-900 dark:text-gray-400 dark:hover:border-gray-800 dark:hover:bg-gray-900 dark:hover:text-gray-100"
- >
- <IconCmp className="h-[18px] w-[18px]" />
- </button>
- );
-}
diff --git a/packages/landing/src/lib/announcements.ts b/packages/landing/src/lib/announcements.ts
deleted file mode 100644
index 345b8847..00000000
--- a/packages/landing/src/lib/announcements.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * The announcements on the rotating bar above the landing page's navigation, rendered by
- * components/announcement-bar.tsx. An item's `key` names its copy under `announcement` in
- * strings.ts and strings-en.ts.
- */
-
-/**
- * Where an announcement leads, exactly one of: `to`, a blog post on this site
- * (content/blog/<slug>.*.md) followed through the router, or `href`, a page on
- * another site, opened in a new tab.
- */
-type AnnouncementTarget =
- { to: `/blog/${string}`; href?: never } | { href: `https://${string}`; to?: never };
-
-/**
- * Newest first: slide 0 is what a visitor sees before the rotation moves, so the
- * freshest news goes at the front.
- */
-export const ANNOUNCEMENTS = [
- { key: "flashModels", to: "/blog/penguinharness-0-2-11" },
- { key: "penguinGo", href: "https://token.penguin.ooo/" },
-] as const satisfies ReadonlyArray<{ key: string } & AnnouncementTarget>;
-
-/**
- * A slide as the renderer reads it. Typed against the target union rather than the
- * literal list, so reading `to` and `href` still type-checks while the list holds
- * only one kind.
- */
-export type Announcement = { key: (typeof ANNOUNCEMENTS)[number]["key"] } & AnnouncementTarget;
diff --git a/packages/landing/src/lib/benchmark-data.ts b/packages/landing/src/lib/benchmark-data.ts
deleted file mode 100644
index 904c5739..00000000
--- a/packages/landing/src/lib/benchmark-data.ts
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
- * Benchmark data, two suites published in one unified shape: framework / model /
- * accuracy (%) / Tokens (M) / cost ($).
- *
- * Each harness runs the model it is normally paired with rather than a shared one —
- * the comparison is between products as people actually use them, so the model column
- * is part of the result and not a constant. Token and cost figures are **suite totals**
- * across every task and run, not per-run means. Suite specifics (case count, runs,
- * thinking level, pricing source) live in the footnote strings, not in the table.
- * - Data analysis: 15 tasks, single run.
- * - Coding: 40 tasks x 2 runs (accuracy is over all 80 outcomes).
- */
-import type { HarnessKind } from "../components/harness-logo";
-
-export interface BenchResult {
- kind: HarnessKind;
- framework: string;
- model: string;
- accuracyPct: number;
- tokensM: number;
- costUsd: number;
- /** The series the story is about (emphasis form: accent hue vs de-emphasis gray). */
- emphasized?: boolean;
-}
-
-const DEEPSEEK = "DeepSeek V4 Pro";
-const OPUS = "Claude Opus 4.8";
-const GPT = "GPT-5.5";
-
-export const DATA_BENCH: BenchResult[] = [
- {
- kind: "penguin",
- framework: "PenguinHarness",
- model: DEEPSEEK,
- accuracyPct: 66.67,
- tokensM: 18.037757,
- costUsd: 0.552406,
- emphasized: true,
- },
- {
- kind: "claude",
- framework: "Claude Code",
- model: OPUS,
- accuracyPct: 53.33,
- tokensM: 22.197759,
- costUsd: 38.479975,
- },
- {
- kind: "codex",
- framework: "OpenAI Codex",
- model: GPT,
- accuracyPct: 53.33,
- tokensM: 13.72473,
- costUsd: 19.413715,
- },
-];
-
-export const CODE_BENCH: BenchResult[] = [
- {
- kind: "penguin",
- framework: "PenguinHarness",
- model: DEEPSEEK,
- accuracyPct: 71.25,
- tokensM: 200.0,
- costUsd: 3.812,
- emphasized: true,
- },
- {
- kind: "claude",
- framework: "Claude Code",
- model: OPUS,
- accuracyPct: 86.25,
- tokensM: 151.61,
- costUsd: 146.97,
- },
- {
- kind: "codex",
- framework: "OpenAI Codex",
- model: GPT,
- accuracyPct: 71.25,
- tokensM: 251.2,
- costUsd: 220.08,
- },
-];
-
-/** 66.67 -> "66.67%" (chart caps). */
-export function formatPct(pct: number): string {
- return `${pct.toFixed(2)}%`;
-}
-
-/** Table accuracy; both suites publish at 2dp (10/15 -> 66.67, 57/80 -> 71.25). */
-export function formatAccuracy(pct: number, dp: number): string {
- return pct.toFixed(dp);
-}
-
-/** 18.037757 -> "18.04M" / 200 -> "200.00M". */
-export function formatTokensM(tokens: number, dp = 2): string {
- return `${tokens.toFixed(dp)}M`;
-}
-
-/** Chart cost caps: $0.55 vs $220.08 — one format across a three-order-of-magnitude spread. */
-export function formatUsd(cost: number, dp = 2): string {
- return `$${cost.toFixed(dp)}`;
-}
-
-/**
- * How many times more a rival spent for the same suite ($38.48 vs $0.55 -> 70). The
- * headline claim is built from the data rather than typed into the copy, so it cannot
- * drift when the numbers are refreshed.
- */
-export function costMultiple(rival: BenchResult, ours: BenchResult): number {
- return Math.round(rival.costUsd / ours.costUsd);
-}
diff --git a/packages/landing/src/lib/blog.ts b/packages/landing/src/lib/blog.ts
deleted file mode 100644
index d3919d7b..00000000
--- a/packages/landing/src/lib/blog.ts
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * Blog index: local Markdown posts imported at build time via import.meta.glob.
- * File naming: content/blog/<slug>.<lang>.md — one file per post per language;
- * a post missing the active language falls back to the other one, so the list
- * is always complete in both locales.
- */
-import { parseFrontmatter } from "./frontmatter";
-import type { Locale } from "../state/locale";
-
-export type BlogCategory = "news" | "practice" | "perspectives" | "changelog";
-
-/** Byline used when a post has no `author` frontmatter. */
-export const DEFAULT_AUTHOR = "Yaowei Zheng (PrismShadow AI)";
-
-export interface BlogPost {
- slug: string;
- lang: Locale;
- title: string;
- /** YYYY-MM-DD */
- date: string;
- category: BlogCategory;
- excerpt: string;
- /** Author list from comma-separated `author` frontmatter (default byline when absent). */
- authors: string[];
- /** `pinned: true` in frontmatter: sorts before everything else, badge on the card. */
- pinned: boolean;
- body: string;
-}
-
-/** Split `author` frontmatter on comma-class separators (`,` `,` `、`); default when empty. */
-export function parseAuthors(raw: string | undefined): string[] {
- const authors = (raw ?? "")
- .split(/[,,、]/)
- .map((name) => name.trim())
- .filter(Boolean);
- return authors.length > 0 ? authors : [DEFAULT_AUTHOR];
-}
-
-/** Join authors for display: an ideographic comma in Chinese, an ASCII comma otherwise. */
-export function formatAuthors(authors: string[], locale: Locale): string {
- return authors.join(locale === "zh" ? "、" : ", ");
-}
-
-const files = import.meta.glob("../../content/blog/*.md", {
- query: "?raw",
- import: "default",
- eager: true,
-}) as Record<string, string>;
-
-function toPost(path: string, raw: string): BlogPost | null {
- const file = path.split("/").pop() ?? "";
- const match = /^(.+)\.(zh|en)\.md$/.exec(file);
- if (!match) return null;
- const { meta, body } = parseFrontmatter(raw);
- const category: BlogCategory =
- meta.category === "changelog" ||
- meta.category === "practice" ||
- meta.category === "perspectives"
- ? meta.category
- : "news";
- return {
- slug: match[1]!,
- lang: match[2] as Locale,
- title: meta.title ?? match[1]!,
- date: meta.date ?? "",
- category,
- excerpt: meta.excerpt ?? "",
- authors: parseAuthors(meta.author),
- pinned: meta.pinned === "true",
- body,
- };
-}
-
-/** Sort order for post lists: pinned first, then newest date, then slug as tie-break. */
-export function comparePosts(
- a: Pick<BlogPost, "pinned" | "date" | "slug">,
- b: Pick<BlogPost, "pinned" | "date" | "slug">,
-): number {
- if (a.pinned !== b.pinned) return a.pinned ? -1 : 1;
- if (a.date !== b.date) return a.date < b.date ? 1 : -1;
- return a.slug.localeCompare(b.slug);
-}
-
-/**
- * Format a YYYY-MM-DD post date for display (e.g. "July 20, 2026" in English, the
- * year-month-day form in Chinese).
- * Parsed as UTC and formatted in UTC so the calendar day never shifts with the
- * viewer's timezone; unexpected input falls back to the raw string.
- */
-export function formatPostDate(date: string, locale: Locale): string {
- const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(date);
- if (!match) return date;
- const [y, m, d] = [Number(match[1]), Number(match[2]), Number(match[3])];
- const utc = new Date(Date.UTC(y, m - 1, d));
- // Date.UTC silently normalizes impossible dates (2026-02-31 -> March 3): fall back
- // to the raw string when the components do not survive the round-trip.
- if (utc.getUTCFullYear() !== y || utc.getUTCMonth() !== m - 1 || utc.getUTCDate() !== d) {
- return date;
- }
- return new Intl.DateTimeFormat(locale === "zh" ? "zh-CN" : "en-US", {
- year: "numeric",
- month: "long",
- day: "numeric",
- timeZone: "UTC",
- }).format(utc);
-}
-
-const ALL: BlogPost[] = Object.entries(files)
- .map(([path, raw]) => toPost(path, raw))
- .filter((p): p is BlogPost => p !== null);
-
-/** Pick the locale's version of each slug (fallback to the other language), pinned/newest first. */
-export function postsFor(locale: Locale, category?: BlogCategory): BlogPost[] {
- const bySlug = new Map<string, BlogPost>();
- for (const post of ALL) {
- const existing = bySlug.get(post.slug);
- if (!existing || (existing.lang !== locale && post.lang === locale)) {
- bySlug.set(post.slug, post);
- }
- }
- return [...bySlug.values()]
- .filter((p) => (category ? p.category === category : true))
- .sort(comparePosts);
-}
-
-export function getPost(slug: string, locale: Locale): BlogPost | undefined {
- const candidates = ALL.filter((p) => p.slug === slug);
- return candidates.find((p) => p.lang === locale) ?? candidates[0];
-}
diff --git a/packages/landing/src/lib/download-source.ts b/packages/landing/src/lib/download-source.ts
deleted file mode 100644
index cb317dd3..00000000
--- a/packages/landing/src/lib/download-source.ts
+++ /dev/null
@@ -1,508 +0,0 @@
-/**
- * Which source the desktop download buttons point at — the browser half of the rule the installers
- * apply (see the matching block in install.sh and install.ps1):
- *
- * 1. Measure GitHub on the release's large probe file. At or above
- * SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND it wins outright and OSS is never touched.
- * 2. Only below that is OSS measured, and it takes over only when it is more than
- * SPEED_PROBE_OSS_SWITCH_RATIO of GitHub — a mirror that is merely a little quicker does not
- * justify its bandwidth bill, and a slow GitHub download still resumes.
- *
- * GitHub is the free source, so every tie and every unmeasurable comparison stays there. The two
- * constants are spelled out in all three places because none of them can import from the others —
- * an installer is a standalone file fetched over the network. Change them in all three at once,
- * which scripts/test-installer.sh pins.
- *
- * Throughput is read from the Resource Timing entry, not from the response body: GitHub's release
- * assets send no `access-control-allow-origin`, so a cross-origin read of them is blocked outright.
- * An opaque `no-cors` request still records a timing entry whose `duration` covers the whole
- * transfer even though the body stays unreadable. Both sources are measured that same way so the
- * two numbers are comparable — the alternative, reading OSS through CORS, would time the JS-side
- * buffering on one side only. GitHub's duration additionally covers the two redirect hops its
- * release URLs take, which can only make it read slower than it is, never faster.
- *
- * Unlike the installers, this runs with someone watching a page, so every wait is bounded twice:
- * each request has its own cap, and PROBE_BUDGET_MS caps the whole sequence. A visitor who cannot
- * reach GitHub at all is the one this matters most for, and they are also the one whose GitHub
- * request will never come back — so the answer has to be reached on a clock, not on completion.
- */
-
-import { GITHUB_LATEST_DOWNLOAD, OSS_LATEST_JSON_URL, OSS_ORIGIN } from "./links";
-
-export const SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND = 262144;
-
-/** How much faster the mirror has to be before its paid bandwidth beats a free GitHub download. */
-export const SPEED_PROBE_OSS_SWITCH_RATIO = 1.5;
-
-/**
- * Two passes, because the two questions have incompatible clocks.
- *
- * Whether a source answers at all is a round trip, and it is the question that decides whether
- * someone is handed a link that never starts — so it gates the buttons and gets one second.
- *
- * How fast a source is cannot be answered in one second at any probe size. The minimum is
- * 256 KB/s and the large probe is 1 MiB, so the boundary case *is* a four-second transfer, on top
- * of roughly half a second of DNS, TLS and GitHub's two redirect hops; shrink the probe and that
- * fixed half-second swamps the reading instead. So throughput runs afterwards, gates nothing, and
- * silently upgrades the links if the mirror turns out to be worth switching to. The worst it can
- * cost is a download that was slower than necessary — never one that does not start.
- */
-/**
- * Three clocks, because the gate and the mirror pointer must not share one. The gate hinges on
- * GitHub — a GitHub that answers keeps the download whatever the mirror is doing — so GitHub gets
- * its own window, and the gate as a whole is capped at roughly a second.
- *
- * That one second is a target, not a guarantee, and the caps are set accordingly. A cap only ever
- * bites a source that is slow or silent: a healthy GitHub answers in a few hundred milliseconds and
- * never notices it. So the cost of a generous cap falls entirely on the blocked case, which is
- * already waiting, while the cost of a tight one falls on a distant-but-working GitHub that gets
- * written off and has its download handed to the mirror we pay for. Prefer the generous side.
- *
- * The pointer's clock is longer than the gate's on purpose. It used to share the gate's, which
- * meant a pointer that arrived late was discarded, and a visitor who could not reach GitHub was
- * left on GitHub links with no mirror to switch to for the rest of the visit. It now outlives the
- * gate: the gate takes it only if it is there in time, and a late arrival still reaches the page,
- * where it enables the manual switch and lets the throughput pass correct the answer.
- */
-export const GITHUB_REACHABILITY_MS = 800;
-export const GATE_BUDGET_MS = 1000;
-export const MIRROR_POINTER_MS = 2500;
-export const THROUGHPUT_BUDGET_MS = 9000;
-
-/** Cap for the two small JSON/TSV lookups, which are a round trip and a few hundred bytes. */
-const METADATA_TIMEOUT_MS = 2500;
-
-/** A source that has not sent response headers by here is treated as unreachable, not as slow. */
-const CONNECT_TIMEOUT_MS = 2500;
-
-/**
- * The file the reachability pass asks GitHub for. Which file hardly matters — a 404 answers the
- * question as well as a 200 does, and an opaque response cannot tell them apart anyway — so a
- * version-less URL that needs no manifest and no tag is exactly right here.
- */
-const GITHUB_REACHABILITY_PROBE = "probe-64k.bin";
-
-/**
- * Cap for a probe's body. The large probe is 1 MiB, which is exactly the minimum's worth of bytes
- * in 4s, so anything still running at this point is already below the minimum and the extra second
- * is only there to absorb GitHub's redirect hops rather than to refine a number.
- *
- * The installers allow 8s here, and that difference is deliberate. A source slower than 1 MiB per
- * cap reads as unmeasured rather than as a number, so this cap sets the floor under which the
- * tie-break rule stops seeing a speed at all: ~210 KB/s here against ~131 KB/s there. Between those
- * two figures a slow GitHub the installers would have kept goes to the mirror instead — a bandwidth
- * cost on a connection that is slow whichever source it uses, traded for a page that answers in
- * seconds. Widening it to match would put the worst case past PROBE_BUDGET_MS, with someone sitting
- * in front of it.
- */
-const TRANSFER_TIMEOUT_MS = 5000;
-
-/** Cap for the small probe, which is only ever asked whether a source answers at all. */
-const REACHABILITY_TIMEOUT_MS = 2500;
-
-export type DownloadSource = "github" | "oss";
-
-export interface ReleaseProbe {
- /** Probe file name, identical on both sources. */
- file: string;
- /** Its exact size, the numerator of every measurement — the opaque body cannot be counted. */
- size: number;
-}
-
-export interface ReleaseProbes {
- /** 64 KiB: cheap enough to ask "does this source answer" without paying for a megabyte. */
- small: ReleaseProbe;
- /** 1 MiB: long enough that a throughput reading is not swallowed by connection setup. */
- large: ReleaseProbe;
-}
-
-/**
- * The shared rule, in one place: GitHub clears the minimum and wins outright, otherwise the mirror
- * has to beat it by the switch ratio to take over.
- */
-export function selectDownloadSource(
- githubBytesPerSecond: number,
- ossBytesPerSecond: number,
-): DownloadSource {
- if (githubBytesPerSecond >= SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND) return "github";
- return ossBytesPerSecond > githubBytesPerSecond * SPEED_PROBE_OSS_SWITCH_RATIO ? "oss" : "github";
-}
-
-/** A shrinking budget shared by every phase, the browser's form of the installers' total timeout. */
-export interface ProbeDeadline {
- /** This phase's cap, clamped to what is left; 0 means the budget is spent. */
- slice(capMs: number): number;
-}
-
-export function createDeadline(budgetMs: number): ProbeDeadline {
- const endsAt = Date.now() + budgetMs;
- return { slice: (capMs) => Math.max(0, Math.min(capMs, endsAt - Date.now())) };
-}
-
-const SAFE_ASSET_NAME = /^[A-Za-z0-9._+-]+$/;
-
-function parseProbeRow(fields: string[]): ReleaseProbe | null {
- if (fields.length !== 5) return null;
- const file = fields[2] ?? "";
- const size = Number(fields[3]);
- if (!SAFE_ASSET_NAME.test(file) || file.includes("..")) return null;
- if (!Number.isSafeInteger(size) || size <= 0) return null;
- return { file, size };
-}
-
-/**
- * The probe rows of a release's download manifest, validated the way the installers validate them:
- * the header has to name this exact tag, and a file name has to be a plain asset name so a tampered
- * manifest cannot point a request at another path.
- */
-export function parseProbes(manifest: string, tag: string): ReleaseProbes | null {
- const lines = manifest.split("\n");
- if (lines[0] !== `penguin-release-download-manifest\t1\t${tag}`) return null;
- let small: ReleaseProbe | null = null;
- let large: ReleaseProbe | null = null;
- for (const line of lines.slice(1)) {
- const fields = line.split("\t");
- if (fields[0] !== "probe") continue;
- const probe = parseProbeRow(fields);
- if (!probe) return null;
- if (fields[1] === "small") small = probe;
- if (fields[1] === "large") large = probe;
- }
- return small && large ? { small, large } : null;
-}
-
-/**
- * A fresh query string per request: a cached hit would time the disk rather than the network, and
- * it keeps every measurement on a resource timing entry name of its own.
- */
-function probeUrl(base: string, file: string): string {
- return `${base}/${file}?probe=${Date.now().toString(36)}${Math.random().toString(36).slice(2, 8)}`;
-}
-
-function delay(ms: number): Promise<void> {
- return new Promise((resolve) => setTimeout(resolve, ms));
-}
-
-/** The entry's duration in ms, or null when none is recorded before the deadline. */
-function awaitResourceTiming(url: string, timeoutMs: number): Promise<number | null> {
- if (typeof PerformanceObserver === "undefined") return Promise.resolve(null);
- return new Promise((resolve) => {
- let observer: PerformanceObserver | null = null;
- let timer: ReturnType<typeof setTimeout> | null = null;
- const finish = (durationMs: number | null) => {
- if (timer !== null) clearTimeout(timer);
- observer?.disconnect();
- observer = null;
- resolve(durationMs);
- };
- observer = new PerformanceObserver((list) => {
- const entry = list.getEntries().find((candidate) => candidate.name === url);
- if (entry) finish(entry.duration);
- });
- timer = setTimeout(() => finish(null), timeoutMs);
- try {
- observer.observe({ type: "resource" });
- } catch {
- finish(null);
- }
- });
-}
-
-/**
- * Starts an opaque request and resolves once its headers land, or null if they do not land inside
- * `connectMs`. The returned `settled` promise is the transfer itself; the caller decides how long
- * to wait for the body and keeps `abort` armed until then, so a stalled body is cut off rather than
- * measured. Opaque is the only option for GitHub, whose release assets refuse cross-origin reads.
- */
-function startProbeRequest(
- url: string,
- connectMs: number,
-): { reachable: Promise<boolean>; abort: () => void } {
- const controller = new AbortController();
- if (connectMs <= 0) {
- controller.abort();
- return { reachable: Promise.resolve(false), abort: () => controller.abort() };
- }
- const headers = fetch(url, {
- mode: "no-cors",
- cache: "no-store",
- signal: controller.signal,
- }).then(
- () => true,
- () => false,
- );
- const reachable = Promise.race([headers, delay(connectMs).then(() => false)]).then((ok) => {
- if (!ok) controller.abort();
- return ok;
- });
- return { reachable, abort: () => controller.abort() };
-}
-
-/** Whether a source answers at all, asked with the cheap 64 KiB probe. */
-export async function probeReachable(url: string, deadline: ProbeDeadline): Promise<boolean> {
- const { reachable, abort } = startProbeRequest(url, deadline.slice(REACHABILITY_TIMEOUT_MS));
- const ok = await reachable;
- abort();
- return ok;
-}
-
-/**
- * What one probe learned about a source. The two fields answer two different questions, and the
- * installers keep them apart too: their small-probe pair settles reachability before any throughput
- * probe runs. A source that never answered loses to one that did, full stop; a source that answered
- * but could not finish the probe is merely unmeasured, and the rule's tie-break decides it.
- */
-export interface Measurement {
- /** Response headers landed inside the connect cap. */
- reachable: boolean;
- /** Throughput, or 0 when the transfer did not finish inside the transfer cap. */
- bytesPerSecond: number;
-}
-
-const UNREACHABLE: Measurement = { reachable: false, bytesPerSecond: 0 };
-
-/** Measures one probe download under both caps. */
-export async function measureSource(
- url: string,
- sizeBytes: number,
- deadline: ProbeDeadline,
-): Promise<Measurement> {
- const { reachable, abort } = startProbeRequest(url, deadline.slice(CONNECT_TIMEOUT_MS));
- try {
- if (!(await reachable)) return UNREACHABLE;
- const transferMs = deadline.slice(TRANSFER_TIMEOUT_MS);
- if (transferMs <= 0) return { reachable: true, bytesPerSecond: 0 };
- const durationMs = await awaitResourceTiming(url, transferMs);
- const measured = durationMs !== null && durationMs > 0;
- return {
- reachable: true,
- bytesPerSecond: measured ? Math.round((sizeBytes * 1000) / durationMs) : 0,
- };
- } catch {
- return UNREACHABLE;
- } finally {
- abort();
- }
-}
-
-export interface ProbeSources {
- githubBase: string;
- ossBase: string;
-}
-
-/** The one question the throughput pass asks of a source, injected so the branches are testable. */
-export interface SourceProbes {
- measure(base: string, probe: ReleaseProbe): Promise<Measurement>;
-}
-
-/** Measurements retained for the download page's visual source report. */
-export interface DownloadProbeReport {
- source: DownloadSource;
- github: Measurement;
- /** Null when GitHub already cleared the threshold, so probing paid mirror traffic was unnecessary. */
- oss: Measurement | null;
-}
-
-/**
- * The throughput half of the rule, in the order the installers apply it. It runs once the
- * reachability pass has found a mirror, which is why an unreachable GitHub here needs no second
- * question: that pass already proved the mirror replies, so it wins by default.
- *
- * GitHub is measured first. At or above the minimum it wins outright and the mirror is never
- * touched — no paid bandwidth spent on a probe that could not change the answer. Below it, the
- * mirror is measured on the same probe and has to win by the switch ratio.
- *
- * The measurements run one after another on purpose: concurrent transfers share the link and would
- * each read as half as fast, which an absolute threshold cannot tolerate.
- */
-export async function decideDownloadSourceWithReport(
- sources: ProbeSources,
- probes: ReleaseProbes,
- io: SourceProbes,
-): Promise<DownloadProbeReport> {
- const github = await io.measure(sources.githubBase, probes.large);
- if (github.bytesPerSecond >= SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND) {
- return { source: "github", github, oss: null };
- }
- if (!github.reachable) {
- return { source: "oss", github, oss: null };
- }
- const oss = await io.measure(sources.ossBase, probes.large);
- return {
- source: selectDownloadSource(github.bytesPerSecond, oss.bytesPerSecond),
- github,
- oss,
- };
-}
-
-/** Source-only compatibility wrapper used by the installer-rule tests and other callers. */
-export async function decideDownloadSource(
- sources: ProbeSources,
- probes: ReleaseProbes,
- io: SourceProbes,
-): Promise<DownloadSource> {
- return (await decideDownloadSourceWithReport(sources, probes, io)).source;
-}
-
-/** The decision above, wired to real requests under the shared budget. */
-export function probeDownloadSource(
- sources: ProbeSources,
- probes: ReleaseProbes,
- deadline: ProbeDeadline,
-): Promise<DownloadSource> {
- return decideDownloadSource(sources, probes, {
- measure: (base, probe) => measureSource(probeUrl(base, probe.file), probe.size, deadline),
- });
-}
-
-/** The same real probe, retaining both measurements for the download page. */
-export function probeDownloadSourceWithReport(
- sources: ProbeSources,
- probes: ReleaseProbes,
- deadline: ProbeDeadline,
-): Promise<DownloadProbeReport> {
- return decideDownloadSourceWithReport(sources, probes, {
- measure: (base, probe) => measureSource(probeUrl(base, probe.file), probe.size, deadline),
- });
-}
-
-/** Reads a small JSON/TSV lookup under the shared budget; null on any failure. */
-async function fetchMetadata(url: string, deadline: ProbeDeadline): Promise<Response | null> {
- const timeoutMs = deadline.slice(METADATA_TIMEOUT_MS);
- if (timeoutMs <= 0) return null;
- const controller = new AbortController();
- const timer = setTimeout(() => controller.abort(), timeoutMs);
- try {
- const res = await fetch(url, { cache: "no-store", signal: controller.signal });
- return res.ok ? res : null;
- } catch {
- return null;
- } finally {
- clearTimeout(timer);
- }
-}
-
-/**
- * The release's probe rows, read from the mirror — the one origin of the two that answers a
- * cross-origin read at all, and the same file the installers parse.
- */
-export async function fetchProbes(
- ossBase: string,
- tag: string,
- deadline: ProbeDeadline,
-): Promise<ReleaseProbes | null> {
- const res = await fetchMetadata(`${ossBase}/release-download-manifest.tsv`, deadline);
- return res ? parseProbes(await res.text(), tag) : null;
-}
-
-/** Reads the mirror pointer under the shared budget. */
-export async function fetchMirrorPointer(
- url: string,
- deadline: ProbeDeadline,
-): Promise<unknown | null> {
- const res = await fetchMetadata(url, deadline);
- return res ? await res.json() : null;
-}
-
-/** Data Saver is a request not to spend a megabyte on measuring; the unprobed default stands. */
-export function probingAllowed(): boolean {
- if (typeof navigator === "undefined") return false;
- const connection = (navigator as Navigator & { connection?: { saveData?: boolean } }).connection;
- return connection?.saveData !== true;
-}
-
-/** The OSS mirror the buttons would use: an immutable per-tag directory in the release bucket. */
-export interface Mirror {
- tag: string;
- base: string;
-}
-
-const RELEASE_TAG = /^v[0-9A-Za-z][0-9A-Za-z._-]*$/;
-
-/**
- * The only shape a mirror is ever allowed to take: a safe release tag, and the exact bucket path
- * that tag implies. Every way a mirror can enter the page goes through here — the live pointer and
- * the session cache alike — so neither metadata nor stored state can aim a download at some other
- * host. Keep it that way: a second definition is a second thing to get wrong.
- */
-export function toMirror(tag: unknown, base: unknown): Mirror | null {
- if (typeof tag !== "string" || !RELEASE_TAG.test(tag)) return null;
- if (base !== `${OSS_ORIGIN}/releases/${tag}`) return null;
- return { tag, base };
-}
-
-/** latest.json validated like the installer forwarders validate it: schema 1, then the shape above. */
-export function parseMirror(value: unknown): Mirror | null {
- if (typeof value !== "object" || value === null) return null;
- const manifest = value as { schemaVersion?: unknown; tag?: unknown; releaseBaseUrl?: unknown };
- if (manifest.schemaVersion !== 1) return null;
- return toMirror(manifest.tag, manifest.releaseBaseUrl);
-}
-
-/** Resolves and validates the mirror pointer; null when it does not arrive in time or is invalid. */
-export function fetchMirror(deadline: ProbeDeadline): Promise<Mirror | null> {
- return fetchMirrorPointer(OSS_LATEST_JSON_URL, deadline).then(parseMirror);
-}
-
-/**
- * The gating pass, and the only thing the buttons wait on. It asks one question — does GitHub
- * answer — because that is the question whose wrong answer hands someone a link that never starts,
- * and it is answerable in a round trip.
- *
- * GitHub is the free source and keeps the download whenever it answers, so that path does not wait
- * for the mirror at all; the pointer is only needed to offer the mirror, and it is passed in as a
- * promise so it can still be in flight. Only when GitHub stays silent does the answer depend on
- * having a mirror to hand the download to.
- */
-export async function gateDownloadSource(
- mirror: Promise<Mirror | null>,
- deadline: ProbeDeadline,
-): Promise<DownloadSource> {
- const githubReachable = await probeReachable(
- `${GITHUB_LATEST_DOWNLOAD}/${GITHUB_REACHABILITY_PROBE}`,
- createDeadline(GITHUB_REACHABILITY_MS),
- );
- if (githubReachable) return "github";
- // GitHub stayed silent, so the answer now needs a mirror — but only for as long as the gate has
- // left. A pointer that misses this race is not lost; it reaches the page on its own clock.
- const remainingMs = deadline.slice(GATE_BUDGET_MS);
- const resolved =
- remainingMs > 0 ? await Promise.race([mirror, delay(remainingMs).then(() => null)]) : null;
- return resolved ? "oss" : "github";
-}
-
-/**
- * Whether measuring throughput could still change the gate's answer — which is whenever there is a
- * mirror to compare against. It runs even when GitHub missed its window: that window is under a
- * second, and a distant-but-working GitHub can spend that long on DNS, TLS and two redirect hops
- * alone. The throughput pass gives it a far more generous one and hands the download back if it was
- * wrongly written off.
- */
-export function worthRefining(mirror: Mirror | null): boolean {
- return mirror !== null && probingAllowed();
-}
-
-/**
- * The unhurried pass. It gates nothing, so it can afford the manifest lookup and a megabyte of
- * probe; its result replaces the gate's answer when it lands.
- */
-export async function refineDownloadSource(
- mirror: Mirror,
- deadline: ProbeDeadline,
-): Promise<DownloadSource> {
- return (await refineDownloadSourceWithReport(mirror, deadline))?.source ?? "github";
-}
-
-/** Refines the source and returns the measurements the download page renders. */
-export async function refineDownloadSourceWithReport(
- mirror: Mirror,
- deadline: ProbeDeadline,
-): Promise<DownloadProbeReport | null> {
- const probes = await fetchProbes(mirror.base, mirror.tag, deadline);
- if (!probes) return null;
- return probeDownloadSourceWithReport(
- { githubBase: GITHUB_LATEST_DOWNLOAD, ossBase: mirror.base },
- probes,
- deadline,
- );
-}
diff --git a/packages/landing/src/lib/frontmatter.ts b/packages/landing/src/lib/frontmatter.ts
deleted file mode 100644
index 8d2b212c..00000000
--- a/packages/landing/src/lib/frontmatter.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * Minimal frontmatter parser for blog posts: a leading `---` block of `key: value`
- * lines (values may contain colons; quotes optional). Kept dependency-free and pure
- * so it is unit-testable without Vite.
- */
-
-export interface Frontmatter {
- meta: Record<string, string>;
- body: string;
-}
-
-export function parseFrontmatter(raw: string): Frontmatter {
- const normalized = raw.replace(/\r\n/g, "\n");
- const match = /^---\n([\s\S]*?)\n---\n?/.exec(normalized);
- if (!match) return { meta: {}, body: normalized.trim() };
- const meta: Record<string, string> = {};
- for (const line of match[1]!.split("\n")) {
- const idx = line.indexOf(":");
- if (idx === -1) continue;
- const key = line.slice(0, idx).trim();
- let value = line.slice(idx + 1).trim();
- if (
- (value.startsWith('"') && value.endsWith('"')) ||
- (value.startsWith("'") && value.endsWith("'"))
- ) {
- value = value.slice(1, -1);
- }
- if (key) meta[key] = value;
- }
- return { meta, body: normalized.slice(match[0].length).trim() };
-}
diff --git a/packages/landing/src/lib/hash.ts b/packages/landing/src/lib/hash.ts
deleted file mode 100644
index f0a34c5b..00000000
--- a/packages/landing/src/lib/hash.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * URL hash -> the id of the element it targets. Pure and unit-testable.
- *
- * `location.hash` carries the fragment percent-encoded: a link to the CJK heading
- * `## 升级须知` arrives as `#%E5%8D%87%E7%BA%A7%E9%A1%BB%E7%9F%A5`, while the heading's id
- * (slugifyHeading in toc.ts) holds the decoded text, so the fragment is decoded before
- * any lookup. A malformed escape (`#100%`) cannot be decoded and falls back to the raw
- * fragment instead of throwing — a throw inside a React effect would unmount the page.
- * The leading `#` is optional, and a fragment without escapes comes back unchanged.
- *
- * The docs site carries the same helper (packages/docs/src/lib/hash.ts); the two sites
- * share no package, so keep them aligned.
- */
-export function hashTargetId(hash: string): string {
- const fragment = hash.startsWith("#") ? hash.slice(1) : hash;
- try {
- return decodeURIComponent(fragment);
- } catch {
- return fragment;
- }
-}
diff --git a/packages/landing/src/lib/links.ts b/packages/landing/src/lib/links.ts
deleted file mode 100644
index 5b3eb6de..00000000
--- a/packages/landing/src/lib/links.ts
+++ /dev/null
@@ -1,151 +0,0 @@
-/** External links and language-independent constants used across the landing page. */
-
-export const REPO_URL = "https://github.com/Prism-Shadow/penguin-harness";
-export const REPO_API_URL = "https://api.github.com/repos/Prism-Shadow/penguin-harness";
-export const RELEASES_URL = `${REPO_URL}/releases`;
-export const LICENSE_URL = `${REPO_URL}/blob/main/LICENSE`;
-
-/**
- * Docs site: a sibling SPA deployed under the landing page's own base ("/<repo>/docs/",
- * see scripts/build-site.mjs). A plain href — it is a separate app, not a router route.
- * In local dev this resolves to "/docs/", which only exists in the assembled build.
- */
-export const DOCS_URL = `${import.meta.env.BASE_URL}docs/`;
-
-/**
- * One-line installer (Linux / macOS, x64 / arm64, bundled Node runtime).
- * penguin.ooo/install.sh is this site's own public/install.sh — a thin forwarder
- * to the latest GitHub release installer (Pages cannot serve real redirects).
- */
-export const INSTALL_CMD = "curl -fsSL https://penguin.ooo/install.sh | sh";
-
-/**
- * One-line installer for Windows (PowerShell 5.1+, x64, bundled Node runtime).
- * penguin.ooo/install.ps1 is public/install.ps1 — the same thin-forwarder design.
- */
-export const INSTALL_CMD_WINDOWS = "irm https://penguin.ooo/install.ps1 | iex";
-
-/**
- * Offline install commands, per OS tab of the install switcher. Each Release attaches one
- * installer bundle per target (see scripts/package-release-bundles.sh) and the same file
- * serves online and offline installation; the commands show the most common architecture —
- * the localized hint strings name the alternative archive. Language-neutral, like the
- * one-liners above.
- */
-export const OFFLINE_INSTALL_CMDS: Record<"linux" | "macos" | "windows", string> = {
- linux: `mkdir penguin-install
-tar -xzf penguin-linux-x64.tar.gz -C penguin-install
-./penguin-install/install.sh`,
- macos: `mkdir penguin-install
-tar -xzf penguin-darwin-arm64.tar.gz -C penguin-install
-./penguin-install/install.sh`,
- windows: `Expand-Archive penguin-win32-x64.zip -DestinationPath penguin-install
-cd penguin-install
-.\\install.cmd`,
-};
-
-export interface CliInstaller {
- /** Stable Release asset file name used by both online and offline installation. */
- file: string;
- /** Language-neutral architecture label rendered on the direct download link. */
- variant: string;
-}
-
-/** Direct offline-install downloads shown under the selected command-line platform. */
-export const CLI_INSTALLERS: Record<"linux" | "macos" | "windows", CliInstaller[]> = {
- linux: [
- { file: "penguin-linux-x64.tar.gz", variant: "x64" },
- { file: "penguin-linux-arm64.tar.gz", variant: "arm64" },
- ],
- macos: [
- { file: "penguin-darwin-arm64.tar.gz", variant: "Apple Silicon" },
- { file: "penguin-darwin-x64.tar.gz", variant: "Intel" },
- ],
- windows: [{ file: "penguin-win32-x64.zip", variant: "x64" }],
-};
-
-/**
- * Heavy marketing media lives in the sibling `penguin-harness-community` repo rather than
- * in this one, so that assets only the landing site ever renders stay out of the clone of
- * everyone who builds the product. Served by raw.githubusercontent with
- * `access-control-allow-origin: *` and a 5-minute cache; a GitHub outage degrades the site
- * to missing media, which is the accepted trade for not carrying the bytes here.
- */
-const COMMUNITY_RAW =
- "https://github.com/Prism-Shadow/penguin-harness-community/raw/refs/heads/main";
-
-/**
- * Demo videos: ~9 MB each, against a whole repo history of ~17 MB — committing them here
- * would triple what every contributor clones. raw.githubusercontent sends
- * `accept-ranges: bytes`, so seeking works. The `application/octet-stream` content type
- * does not block playback — `nosniff` is only enforced for scripts and styles, and
- * `<video>` sniffs the container itself (verified in Chromium).
- * Pair every embed with a poster and `preload="none"`: nothing is fetched until play.
- */
-export const demoVideoUrl = (name: string): string => `${COMMUNITY_RAW}/videos/${name}.mp4`;
-
-/**
- * Blog images: a few hundred KB per post, forever, since a published post's screenshots
- * are never deleted — the one asset class whose growth is unbounded in the number of posts
- * written. Hosting them in the community repo keeps that growth out of this history.
- *
- * The post Markdown deliberately does *not* spell these URLs out. Bodies keep writing the
- * portable `/blog-assets/<name>` path (both `![alt](…)` and the raw `<img src="…">` tags
- * some posts use), and the renderer resolves it here at render time — see the `img`
- * adapter in src/pages/blog-post.tsx. One source of truth for where the images are hosted,
- * Markdown that stays readable and diffable, and moving the host again is a one-line
- * change instead of a sweep over every post.
- */
-export const blogAssetUrl = (name: string): string => `${COMMUNITY_RAW}/blog-assets/${name}`;
-
-/** API key consoles (same URLs the in-app Models page links to). */
-export const DEEPSEEK_KEYS_URL = "https://platform.deepseek.com/api_keys";
-export const OPENROUTER_KEYS_URL = "https://openrouter.ai/workspaces/default/keys";
-
-/**
- * Desktop app downloads. The installers carry version-less names (see
- * packages/desktop/electron-builder.yml), which is what makes static links possible on a
- * Pages-hosted site: GitHub's `releases/latest/download/<name>` always serves the newest
- * release, no client-side resolution needed. The OSS mirror stores immutable per-tag
- * directories instead, so mirror links DO need the current tag — the download page reads
- * it from the bucket's `latest.json` pointer (the same file install.sh resolves) and
- * falls back to the GitHub links when that fetch fails (e.g. CORS not configured, or the
- * mirror unreachable).
- */
-export const OSS_ORIGIN = "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com";
-export const OSS_LATEST_JSON_URL = `${OSS_ORIGIN}/latest.json`;
-export const GITHUB_LATEST_DOWNLOAD = `${REPO_URL}/releases/latest/download`;
-
-export interface DesktopInstaller {
- /** Stable asset file name, identical on GitHub Releases and the OSS mirror. */
- file: string;
- /** Language-neutral variant tag rendered on the button (arch / package format). */
- variant: string;
-}
-
-/** Named separately: the first-launch FAQ's chmod command quotes this exact file name. */
-const LINUX_APPIMAGE: DesktopInstaller = {
- file: "penguin-desktop-linux-x86_64.AppImage",
- variant: "AppImage",
-};
-
-/** Installers per platform card, in display order. */
-export const DESKTOP_INSTALLERS: Record<"mac" | "windows" | "linux", DesktopInstaller[]> = {
- mac: [
- { file: "penguin-desktop-darwin-arm64.dmg", variant: "Apple Silicon" },
- { file: "penguin-desktop-darwin-x64.dmg", variant: "Intel" },
- ],
- windows: [{ file: "penguin-desktop-win32-x64.exe", variant: "x64" }],
- linux: [LINUX_APPIMAGE, { file: "penguin-desktop-linux-amd64.deb", variant: "deb" }],
-};
-
-/** Checksum list covering every desktop installer of a release. */
-export const DESKTOP_SHA256SUMS = "SHA256SUMS.desktop";
-
-/**
- * The one first-launch fix the desktop builds still need (the download page FAQ):
- * restoring the execute bit browsers strip from a downloaded AppImage. macOS is
- * Developer ID signed and notarized and Windows is Authenticode signed, so neither
- * has anything to unblock. Language-neutral, like the install commands above.
- */
-export const LINUX_APPIMAGE_CHMOD_CMD = `chmod +x ${LINUX_APPIMAGE.file}`;
diff --git a/packages/landing/src/lib/nav-state.ts b/packages/landing/src/lib/nav-state.ts
deleted file mode 100644
index 519fa371..00000000
--- a/packages/landing/src/lib/nav-state.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Pure route state for the landing page navigation. Section links are represented by
- * hashes on the home page; Blog is a normal application route.
- */
-export const NAV_SECTION_IDS = [
- "highlights",
- "quickstart",
- "scenarios",
- "benchmark",
- "contract",
- "features",
-] as const;
-
-/** Includes sections without their own link so scroll-spy can map them to a parent item. */
-export const OBSERVED_SECTION_IDS = [
- "cases",
- "highlights",
- "self-improvement",
- ...NAV_SECTION_IDS.slice(1),
-] as const;
-
-export type SectionId = (typeof NAV_SECTION_IDS)[number];
-export type ObservedSectionId = (typeof OBSERVED_SECTION_IDS)[number];
-export type ActiveNavItem = SectionId | "blog" | "download" | null;
-
-function isSectionId(value: string): value is SectionId {
- return NAV_SECTION_IDS.some((id) => id === value);
-}
-
-export function getNavItemForSection(value: string | null): SectionId | null {
- if (value === "self-improvement") return "highlights";
- return value && isSectionId(value) ? value : null;
-}
-
-export function getActiveNavItem(pathname: string, hash: string): ActiveNavItem {
- if (pathname === "/blog" || pathname.startsWith("/blog/")) return "blog";
- if (pathname === "/download") return "download";
- if (pathname !== "/") return null;
-
- const id = hash.startsWith("#") ? hash.slice(1) : hash;
- return getNavItemForSection(id);
-}
diff --git a/packages/landing/src/lib/platform.ts b/packages/landing/src/lib/platform.ts
deleted file mode 100644
index 6eade959..00000000
--- a/packages/landing/src/lib/platform.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- * Coarse client-side OS detection, shared by the hero's platform-aware download
- * button and the download page's platform cards. Detection only tunes emphasis
- * (which label the hero button carries, which card gets badged) — absent or wrong
- * detection never blocks a download.
- */
-export type Platform = "mac" | "windows" | "linux";
-
-export function detectPlatform(): Platform | null {
- const ua = navigator.userAgent;
- if (/Windows/i.test(ua)) return "windows";
- if (/Macintosh|Mac OS X/i.test(ua)) return "mac";
- if (/Linux|X11/.test(ua) && !/Android/i.test(ua)) return "linux";
- return null;
-}
diff --git a/packages/landing/src/lib/reveal.ts b/packages/landing/src/lib/reveal.ts
deleted file mode 100644
index 471960dc..00000000
--- a/packages/landing/src/lib/reveal.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * Scroll reveal: adds .reveal on mount and .reveal-visible once the element enters
- * the viewport (one-shot). Reduced-motion users see content immediately via the CSS
- * override in styles.css.
- */
-import { useEffect, useRef } from "react";
-import type { RefObject } from "react";
-
-export function useReveal<T extends HTMLElement>(): RefObject<T | null> {
- const ref = useRef<T | null>(null);
- useEffect(() => {
- const el = ref.current;
- if (!el) return;
- el.classList.add("reveal");
- if (!("IntersectionObserver" in window)) {
- el.classList.add("reveal-visible");
- return;
- }
- const io = new IntersectionObserver(
- (entries) => {
- for (const e of entries) {
- if (e.isIntersecting) {
- el.classList.add("reveal-visible");
- io.disconnect();
- }
- }
- },
- { rootMargin: "0px 0px -10% 0px" },
- );
- io.observe(el);
- return () => io.disconnect();
- }, []);
- return ref;
-}
diff --git a/packages/landing/src/lib/strings-en.ts b/packages/landing/src/lib/strings-en.ts
deleted file mode 100644
index b1f24b57..00000000
--- a/packages/landing/src/lib/strings-en.ts
+++ /dev/null
@@ -1,582 +0,0 @@
-/**
- * English dictionary (constrained by the `Strings` type to the same shape as zh):
- * locale switching goes through state/locale.tsx. Marketing copy uses lowercase `agent`;
- * preserve the established casing of Workspace, Token, Task, Skill, Trace, and other terms.
- */
-import type { Strings } from "./strings";
-
-export const en: Strings = {
- siteName: "PenguinHarness",
-
- announcement: {
- label: "Announcements",
- prev: "Previous announcement",
- next: "Next announcement",
- flashModels: "DeepSeek V4.1 Flash and Gemini 3.8 Flash are now live in PenguinHarness",
- penguinGo: "Penguin Go official Token packs are live: 50% off every Gemini model",
- },
-
- nav: {
- highlights: "Highlights",
- selfImprove: "Self-evolution",
- quickstart: "Quick start",
- cases: "Cases",
- scenarios: "Scenarios",
- benchmark: "Benchmark",
- contract: "CONTRACT.md",
- features: "Features",
- blog: "Blog",
- download: "Download",
- docs: "Docs",
- github: "GitHub",
- openMenu: "Open menu",
- closeMenu: "Close menu",
- },
-
- theme: {
- label: "Theme",
- light: "Light",
- dark: "Dark",
- system: "System",
- },
-
- lang: {
- label: "Language",
- zh: "中文",
- en: "English",
- system: "System",
- },
-
- hero: {
- platformLead: "Open-source, local-first multi-agent app ",
- platformActions: ["auto-dev", "auto-tuning"],
- platformTail: " platform",
- automationLead: "Fully automated ",
- automationActions: ["creation", "optimization", "deployment"],
- automationTail: "of AI apps",
- downloadCta: "Download desktop",
- cliInstall: "Command-line install",
- stats: [
- { value: "1000+ Models", label: "Support for Major Providers" },
- { value: "Cross-Platform Deployment", label: "Linux · Windows · macOS" },
- { value: "100% Open Source", label: "Apache 2.0 Licensed" },
- { value: "First Self-Improving Harness", label: "Native Agent Self-Evolution Engine" },
- ],
- supportedModelsLabel: "Supported models",
- supportedModels: [
- "OpenAI",
- "Anthropic",
- "Gemini",
- "DeepSeek",
- "Zai",
- "MoonShot",
- "Qwen",
- "Openrouter",
- ],
- supportedModelsMore: "+992 more",
- },
-
- install: {
- linux: "Linux",
- macos: "macOS",
- windows: "Windows",
- online: "Online install",
- offline: "Offline package",
- offlineNote:
- "Every GitHub Release attaches one package per target (Linux / macOS in x64 and arm64, Windows in x64) and the same file serves online and offline installation. Each package seals the program payload, its SHA256 checksum and the installer: download that one file on a networked machine, copy it to the target, extract once and install with no network at all.",
- offlineHints: {
- linux: "On arm64 machines, use penguin-linux-arm64.tar.gz.",
- macos: "Apple silicon uses the arm64 package; on Intel, use penguin-darwin-x64.tar.gz.",
- windows: "After unzipping you can also just double-click install.cmd.",
- },
- offlineRelease: "Download offline packages from GitHub Releases",
- desktopNote:
- "Already on the desktop app? A CLI install shares the same local data with it, and the two can be used side by side.",
- desktopPage: "Go to the desktop download page",
- },
-
- download: {
- eyebrow: "Download",
- title: "Download the desktop app",
- recommended: "Your system",
- platforms: {
- mac: { name: "macOS", require: "macOS 11 or later, dmg disk image (pick your chip)" },
- windows: { name: "Windows", require: "Windows 10 or later (x64), NSIS installer" },
- linux: {
- name: "Linux",
- require: "x64 — AppImage runs in place, deb goes to your package manager",
- },
- },
- speed: {
- title: "Automatically pick the fastest source",
- subtitle:
- "The page checks reachability first, then measures speed in the background. Download buttons do not wait for the full test.",
- github: "GitHub Releases",
- githubHint: "Global source",
- oss: "OSS mirror",
- ossHint: "Optimized for mainland China",
- testing: "Testing",
- skipped: "Not tested",
- unreachable: "Unavailable",
- belowFloor: "Too slow to measure",
- selected: "Current download route",
- automatic: "Automatic",
- manual: "Manual",
- },
- statusProbing: "Finding a download source that answers …",
- statusRefining: "Still comparing the two sources — the faster one takes over on its own.",
- statusOss: (version: string) =>
- `Connected to the OSS mirror (${version}) — downloads are served from the mirror.`,
- statusGithub: "Downloads point at the latest GitHub Release.",
- altGithub: "Download from GitHub instead",
- altOss: "Use the OSS mirror instead",
- checksums: "Checksums (SHA256SUMS.desktop)",
- allReleases: "Open GitHub Releases",
- /**
- * First-launch FAQ. The macOS builds are Developer ID signed and notarized and the
- * Windows installers are Authenticode signed, so those two platforms have nothing to
- * unblock; the Linux AppImage's execute bit is the one item left, pre-expanded for a
- * Linux visitor.
- */
- faq: {
- title: "First-launch FAQ",
- intro:
- "The macOS builds are Developer ID signed and notarized, and the Windows installers are Authenticode signed, so neither platform needs a first-launch unblock. Linux is the one exception.",
- linux: {
- question: "Nothing happens when double-clicking the AppImage on Linux?",
- answer:
- "Browsers download AppImages without the execute permission. Grant it once and the app starts normally from then on (the deb package installs through the package manager and is not affected):",
- },
- },
- cliHint: "Just need the CLI, or the Web UI in a browser?",
- cliHintLink: "See the quick start",
- },
-
- copy: {
- copy: "Copy",
- copied: "Copied",
- },
-
- pillars: {
- eyebrow: "Three pillars",
- title: "Built for building — and evolving — agents",
- subtitle:
- "PenguinHarness is the first open-source harness to ship “agents building agents” and recursive self-improvement.",
- root: "PenguinHarness",
- concepts: ["Penguin Message", "Penguin SDK", "Penguin Skills"],
- diagramLabel:
- "PenguinHarness radiates into Penguin Message, Penguin SDK and Penguin Skills, each extending into one pillar",
- items: [
- {
- title: "Simplest Is the Best",
- tag: "",
- desc: "A deliberately minimal toolset over clean low-level interfaces: fewer tool calls, fewer Tokens, complex tasks done efficiently.",
- },
- {
- title: "Harness for building agents",
- tag: "",
- desc: "With the PenguinHarness SDK, an agent builds complete agent applications for you — autonomously, from scratch.",
- },
- {
- title: "Harness for Recursive Self-Improvement",
- tag: "",
- desc: "With PenguinHarness Skills, an agent evaluates and optimizes itself, improving recursively over time.",
- },
- ],
- },
-
- compare: {
- eyebrow: "vs. LangChain",
- title: "Building agents with agents",
- subtitle: [
- "With LangChain, you build agents by hand — at 1× speed.",
- "With PenguinHarness, agents build agents — at 100×.",
- ],
- langchain: {
- name: "LangChain",
- speed: "1×",
- mode: "agents built by hand",
- note: "Chains, tools and prompts written line by line — every app starts from zero.",
- },
- penguin: {
- name: "PenguinHarness",
- speed: "100×",
- mode: "agents built by agents",
- note: "One sentence in — an agent delivers scaffold, code and run instructions end to end.",
- },
- },
-
- selfImprove: {
- eyebrow: "The self-improvement loop",
- title: "Multi-agent collaboration makes evolution automatic",
- subtitle:
- "The Optimizer orchestrates multiple Evaluators to score the target agent in parallel, uses the scores and run traces to find where points were lost, and upgrades the agent from version N to N+1 — with a snapshot before every round.",
- videoLabel: "Self-improvement demo video",
- videoCaption:
- "The self-improvement loop end to end: run the benchmark, find the lost points, ship the next version.",
- nodeOptimizer: "Optimizer",
- nodeEvaluator: "Evaluator × N",
- nodeTarget: "target agent",
- badgeOld: "vN",
- badgeNew: "vN+1",
- edgeSpawn: "spawn parallel evaluations",
- edgeBench: "run Benchmarks",
- edgeFeedback: "scores & traces",
- edgeImprove: "update prompts & Skills",
- trends: [
- { label: "Score", hint: "keeps rising" },
- { label: "Cost", hint: "keeps falling" },
- { label: "Time", hint: "keeps shrinking" },
- ],
- diagramLabel:
- "Self-improvement loop: the Optimizer orchestrates Evaluators to score, then upgrades the target agent from vN to vN+1 via scores and traces",
- },
-
- quickstart: {
- eyebrow: "Quick start",
- title: "Get started with PenguinHarness in two steps",
- subtitle: "Choose how to install first. With a CLI install, then choose Web UI or CLI.",
- stepOne: "Step one",
- chooseInstall: "Choose an installation method",
- stepTwo: "Step two",
- chooseLaunch: "Choose how to start",
- tabs: {
- desktop: "Desktop app",
- install: "CLI install",
- web: "Start Web UI",
- cli: "Start CLI",
- },
- desktop: {
- title: "Desktop first, ready when it opens",
- desc: "The local server and full Web UI are built in, with no runtime setup and no terminal process to keep alive.",
- cta: "Choose your system and download",
- steps: [
- "Download the installer for your system",
- "Open PenguinHarness and follow the model setup",
- "Describe your first agent app in one sentence",
- ],
- },
- install: {
- title: "Install PenguinHarness with one command",
- desc: "Made for developer machines, servers, and private environments. The bundle includes its runtime and does not depend on system Node.js.",
- osLabel: "Choose an operating system",
- onlineTitle: "Online install",
- offlineTitle: "Offline packages",
- offlineDesc:
- "Download the package for the target system on a connected machine, then copy it to the offline machine to install.",
- offlineCommand: "Show offline install commands",
- },
- web: {
- title: "Use the full interface in your browser",
- desc: "This starts the local service and opens the Web UI, a good fit for servers and remote access.",
- command: "penguin web # opens http://127.0.0.1:7364",
- steps: [
- "Complete the command-line install",
- "Run penguin web",
- "Follow the terminal prompt to sign in and configure a model",
- ],
- },
- cli: {
- title: "Run an agent directly from the terminal",
- desc: "Start an interactive conversation or connect a one-off task to scripts and automated workflows.",
- command: `penguin chat
-
-# Or run one task
-penguin run --message "Analyze data.csv and summarize quarterly sales"`,
- },
- localNote:
- "Desktop, Web UI, and CLI share ~/.penguin/data; switching entry points never moves or copies your data.",
- },
-
- cases: {
- eyebrow: "Cases",
- title: "One sentence to an AI app that thinks and runs",
- subtitle:
- "Hand the requirement to an agent and get a runnable result end to end — more cases are on the way.",
- tabs: [
- {
- label: "RAG app",
- prompt:
- "Collect the docs from https://github.com/ericbuess/claude-code-docs and build a RAG app that answers Claude Code questions as a configuration expert, citing its sources.",
- caption:
- "The generated RAG app: a Claude Code docs expert answering with cited, clickable sources and example questions",
- cost: "And generating this entire RAG app burned just $0.02 (¥0.2) of tokens — on DeepSeek V4 Pro.",
- },
- {
- label: "2D penguin sled game",
- prompt:
- "Build a cute Antarctic penguin sledding game: Space to jump the rocks, with speed and difficulty ramping up over time.",
- caption:
- "The generated mini game: an Antarctic penguin sleds and jumps rocks, with live scoring and rising difficulty",
- cost: "",
- },
- ],
- },
-
- scenarios: {
- eyebrow: "Scenarios",
- title: "From screening centers to factory floors",
- subtitle:
- "Production stories of teams using PenguinHarness to build agents automatically and deploy them to production.",
- items: [
- {
- title: "Screening-report QC",
- alt: "A CT scanner room at a health screening center",
- body: "A health-screening group used PenguinHarness to automatically build a report-QC agent and deploy it into its production environment on a local Qwen3 14B, so data never leaves the facility. A review round that took 30 minutes by hand now clears 30 reports a minute, with findings in line with medical experts and several times the review capacity.",
- },
- {
- title: "Production-line inspection",
- alt: "An automated semiconductor production line",
- body: "A manufacturer used PenguinHarness to automatically build a production-line inspection agent and deploy it across multiple live lines. The agent watches equipment around the clock and tries automated recovery first when something goes wrong; after deployment, downtime fell 65% and output roughly doubled.",
- },
- ],
- },
-
- contract: {
- eyebrow: "A contract for stable evolution",
- title: "CONTRACT.md",
- subtitle:
- "PenguinHarness treats this contract as the boundary and bedrock of evolution: capability may grow, the boundary never drifts.",
- intro:
- "Evolution needs boundaries. The contract is the covenant between harness and agent: capability grows within; the boundary holds without.",
- items: [
- {
- term: "Working boundary",
- text: "Every agent runs on the same harness: Sessions are created under an agent, Tasks run inside a Session; self-improvement happens only inside Workspace and Skills, while the harness kernel and its safety mechanisms never change.",
- },
- {
- term: "Editable files",
- text: "An agent's prompts, Skills and configuration live as editable files on disk, never as constants baked into code. What you can see, the agent can improve; what you can edit, it can learn.",
- },
- {
- term: "Full tracing",
- text: "Every model request and every tool call is written to the Trace in full: how many Tokens it spent, how long it took, why it failed — all replayable line by line afterwards.",
- },
- {
- term: "Approvals & audit",
- text: "Every tool call passes approval before it runs, and every decision leaves an audit record — what the agent did is never a mystery.",
- },
- {
- term: "Version control",
- text: "Before each optimization, the agent state is snapshotted. If a round fails or regresses, restore any historical version in one step.",
- },
- {
- term: "Progressive loading",
- text: "Content for the model is indexed first and read on demand — never dumped wholesale into context. The cleaner the context, the steadier the behavior.",
- },
- {
- term: "Error handling",
- text: "Errors split into retryable and fatal: retryable ones retry automatically, fatal ones converge into messages the model can see and react to. No task dies of a single failure.",
- },
- {
- term: "Credential isolation",
- text: "API keys and other credentials live in hidden files and move only through system interfaces — never entering model context, never shown in plain text.",
- },
- {
- term: "Model decoupling",
- text: "Models are not bound to agents: switch to a stronger or cheaper model at any time without rewriting the agent.",
- },
- {
- term: "Recoverable trajectories",
- text: "Any Session can be fully restored from its Trace: restart the process or move machines without losing context.",
- },
- ],
- outro: "The contract does not cap what an agent can become — only how it gets there.",
- },
-
- benchmark: {
- eyebrow: "Benchmark",
- title: "Outstanding results at tens of times less cost",
- subtitle:
- "Every product runs the model it is normally paired with, head-to-head against Claude Code and OpenAI Codex on two suites: comparable accuracy, tens of times the difference in spend.",
- higherBetter: "higher is better",
- lowerBetter: "lower is better",
- dimScore: "Accuracy",
- dimTokens: "Tokens",
- dimCost: "Cost",
- dataTitle: "Complex data analysis",
- dataDesc:
- "Best accuracy of the three (66.67%, against 53.33% for both rivals), at 1/35 of OpenAI Codex's cost and 1/70 of Claude Code's.",
- dataFootnote:
- "15 complex data-analysis tasks · single run · Tokens and cost are suite totals · estimated at official pricing.",
- codeTitle: "Coding tasks",
- codeDesc:
- "Ties OpenAI Codex on accuracy (71.25%) and trails Claude Code (86.25%) — at 1/58 and 1/39 of their cost.",
- codeFootnote:
- "40 coding tasks × 2 runs (accuracy over all 80 outcomes) · Tokens and cost are suite totals · estimated at official pricing.",
- colFramework: "Framework",
- colModel: "Model",
- colAccuracy: "Accuracy (%)",
- colTokens: "Tokens (M)",
- colCost: "Cost ($)",
- },
-
- features: {
- eyebrow: "Features",
- title: "The full capability set, one desktop-grade UI",
- subtitle: "Every one of them lives in the web interface itself — installed means ready.",
- more: "and more…",
- items: [
- {
- title: "Multi-session chat",
- desc: "Any number of sessions per agent — streaming output, tool approvals and image paste out of the box.",
- },
- {
- title: "agent hub",
- desc: "Create and manage agents in one click; names, descriptions and prompts stay editable.",
- },
- {
- title: "Skill library",
- desc: "Browse, install and quick-invoke Skills — agents can write and optimize their own.",
- },
- {
- title: "Scheduled tasks",
- desc: "Cron-style schedules run agents on time, fully traced, unattended.",
- },
- {
- title: "Subagents",
- desc: "Delegate work to parallel Subagents — independent and isolated from each other.",
- },
- {
- title: "Cost center",
- desc: "Daily trends for Tokens, requests and cost, with per-model success rates and anomalies.",
- },
- {
- title: "Trace view",
- desc: "Replay every request and tool call round by round, with Token breakdown and timing.",
- },
- {
- title: "agent evaluation",
- desc: "Built-in Benchmark suites and scoreboards — scores keep climbing as agents evolve.",
- },
- {
- title: "Multi-user management",
- desc: "Admins provision users; each gets an independent Project with isolated data.",
- },
- ],
- },
-
- skills: {
- eyebrow: "Built-in Skills",
- title: "The built-in Skill library at a glance",
- subtitle: "Four Skill groups out of the box — agents can write and optimize their own, too.",
- groups: [
- {
- title: "Office Productivity",
- skills: ["data-analysis", "firecrawl", "browser-automation", "bento-slides", "humanizer"],
- },
- {
- title: "Software Development",
- skills: ["web-design", "software-engineering", "remote-claude-code"],
- },
- {
- title: "AI App Development",
- skills: [
- "penguin-sdk",
- "penguin-config",
- "penguin-orchestration",
- "unified-llm-api",
- "vllm",
- "ollama",
- "llamafactory",
- "skill-porting",
- "agent-initialization",
- "benchmark-design",
- "agent-evaluation",
- "agent-optimization",
- ],
- },
- {
- title: "Agent Company",
- skills: [
- "company-setup",
- "company-employee",
- "company-ceo",
- "company-hr",
- "company-finance",
- "company-research",
- "company-mirror",
- ],
- },
- ],
- },
-
- security: {
- eyebrow: "Security",
- title: "Evolution within bounds, data within walls",
- subtitle: "A runtime boundary designed for enterprise data security.",
- items: [
- {
- title: "Open source, local deployment",
- desc: "A fully auditable open-source kernel; data lives in local directories and never passes through third-party services.",
- },
- {
- title: "Bounded evolution",
- desc: "Self-improvement is strictly confined to Workspace and Skills — the harness core security boundary is never modified.",
- },
- {
- title: "Approvals & audit",
- desc: "Tool calls require user approval first, and every decision is written to the Trace as an audit event.",
- },
- {
- title: "Credential isolation",
- desc: "Credentials land as hidden 0600 files, are barred from the system prompt, and stay masked throughout the UI.",
- },
- ],
- },
-
- community: {
- eyebrow: "Community",
- title: "Join the community and build with us",
- subtitle: "Discuss, ask, contribute — your first Issue is the best way to start.",
- items: {
- discord: { name: "Discord", desc: "Chat with us and other developers in real time." },
- x: { name: "X (Twitter)", desc: "Follow the latest product and team updates." },
- wechat: { name: "WeChat group", desc: "Chinese community discussions and support." },
- github: { name: "GitHub", desc: "Stars, Issues, and PRs all welcome." },
- },
- },
-
- cta: {
- title: "Complex AI development, made ever simpler",
- subtitle:
- "Through continuous evolution, PenguinHarness gives you a more efficient, more reliable, lower-hallucination and lower-cost agent productivity engine.",
- download: "Download the desktop app",
- quickstart: "Get started",
- docs: "Read the docs",
- },
-
- footer: {
- tagline: "Efficient Self-Improving Harness for Everyone.",
- product: "Product",
- resources: "Resources",
- quickstart: "Quick start",
- features: "Features",
- selfImprove: "Self-evolution engine",
- cases: "Cases",
- blog: "Blog",
- repo: "GitHub repository",
- docs: "Documentation",
- releases: "Releases",
- license: "Apache-2.0 License",
- copyright: "© 2026 Prism Shadow · Open source under Apache-2.0",
- },
-
- blog: {
- title: "Blog",
- subtitle: "Product news, tech practices, perspectives and release notes",
- all: "All",
- news: "Product news",
- practice: "Tech practice",
- perspectives: "Perspectives",
- changelog: "Release notes",
- pinned: "Pinned",
- copyLink: "Copy page link",
- linkCopied: "Copied",
- back: "Back to blog",
- empty: "No posts in this category yet",
- notFound: "Post not found",
- backHome: "Back to home",
- toc: "On this page",
- },
-};
diff --git a/packages/landing/src/lib/strings.ts b/packages/landing/src/lib/strings.ts
deleted file mode 100644
index e618bcb3..00000000
--- a/packages/landing/src/lib/strings.ts
+++ /dev/null
@@ -1,577 +0,0 @@
-/**
- * Landing copy (bilingual): this file holds the Chinese dictionary `zh` and the runtime
- * active dictionary `S`; the English dictionary lives in strings-en.ts (constrained to
- * the same shape by the `Strings` type). Locale switching is handled by state/locale.tsx,
- * which calls `setActiveStrings` and remounts the tree keyed by locale — keep `S.x`
- * reads inside components. English marketing copy uses lowercase `agent`; preserve the
- * established casing of Workspace, Token, Task, Skill, Trace, and other product terms.
- */
-export const zh = {
- siteName: "PenguinHarness",
-
- announcement: {
- label: "公告",
- prev: "上一条公告",
- next: "下一条公告",
- flashModels: "DeepSeek V4.1 Flash 与 Gemini 3.8 Flash 现已在 PenguinHarness 上线",
- penguinGo: "Penguin Go 官方 Token 包上线,Gemini 全系列模型 5 折",
- },
-
- nav: {
- highlights: "特色",
- selfImprove: "自进化",
- quickstart: "快速开始",
- cases: "案例",
- scenarios: "应用场景",
- benchmark: "评测",
- contract: "CONTRACT.md",
- features: "功能",
- blog: "博客",
- download: "下载",
- docs: "文档",
- github: "GitHub",
- openMenu: "打开菜单",
- closeMenu: "关闭菜单",
- },
-
- theme: {
- label: "主题",
- light: "浅色",
- dark: "深色",
- system: "跟随系统",
- },
-
- lang: {
- label: "语言",
- zh: "中文",
- en: "English",
- system: "跟随系统",
- },
-
- hero: {
- platformLead: "开源、本地的多 Agent 应用",
- platformActions: ["自动开发", "自动调优"],
- platformTail: "平台",
- automationLead: "全自动",
- automationActions: ["创建", "优化", "部署"],
- automationTail: "AI 应用",
- downloadCta: "下载桌面版",
- cliInstall: "命令行安装",
- stats: [
- { value: "1000+ 模型", label: "支持主流供应商" },
- { value: "跨平台部署", label: "Linux · Windows · macOS" },
- { value: "100% 开源", label: "Apache 2.0 协议" },
- { value: "首个自进化 Harness", label: "原生 Agent 自进化引擎" },
- ],
- supportedModelsLabel: "支持模型",
- supportedModels: [
- "OpenAI",
- "Anthropic",
- "Gemini",
- "DeepSeek",
- "Zai",
- "MoonShot",
- "Qwen",
- "Openrouter",
- ],
- supportedModelsMore: "+992 more",
- },
-
- /** Install-method switcher (quick start step 1): OS tabs, online/offline methods. */
- install: {
- linux: "Linux",
- macos: "macOS",
- windows: "Windows",
- online: "在线安装",
- offline: "离线安装包",
- offlineNote:
- "每个 GitHub Release 每个目标只附带一个安装包(Linux / macOS 各 x64 与 arm64,Windows 为 x64),同一个文件同时服务在线与离线安装。包内封入程序负载、SHA256 校验文件与安装器:在有网机器下载这一个文件,拷贝到目标机器解压安装,全程无需联网。",
- offlineHints: {
- linux: "arm64 机器换用 penguin-linux-arm64.tar.gz。",
- macos: "Apple 芯片用 arm64 包,Intel 芯片换用 penguin-darwin-x64.tar.gz。",
- windows: "解压后也可直接双击 install.cmd 完成安装。",
- },
- offlineRelease: "前往 GitHub Releases 下载离线安装包",
- desktopNote: "已经装了桌面版?CLI 安装与桌面版共用同一份本地数据,两者可以随时并用。",
- desktopPage: "前往桌面端下载页",
- },
-
- download: {
- eyebrow: "下载",
- title: "下载桌面端",
- recommended: "当前系统",
- platforms: {
- mac: { name: "macOS", require: "macOS 11 及以上,dmg 安装镜像(按芯片选择)" },
- windows: { name: "Windows", require: "Windows 10 及以上(x64),NSIS 安装程序" },
- linux: { name: "Linux", require: "x64,AppImage 免安装运行,或 deb 交给包管理器" },
- },
- speed: {
- title: "智能选择最快下载源",
- subtitle: "页面会先确认连通性,再在后台测速;下载按钮无需等待完整测速即可使用。",
- github: "GitHub Releases",
- githubHint: "全球源",
- oss: "OSS 国内镜像",
- ossHint: "中国大陆优化",
- testing: "测速中",
- skipped: "未测速",
- unreachable: "暂不可达",
- belowFloor: "速度过低",
- selected: "当前下载线路",
- automatic: "自动选择",
- manual: "手动选择",
- },
- statusProbing: "正在为你确认可用的下载源……",
- statusRefining: "仍在比较两个源的速度,更快的一个会自动生效。",
- statusOss: (version: string) => `已连接 OSS 国内镜像(${version}),点击即从镜像高速下载。`,
- statusGithub: "下载指向 GitHub Releases 的最新版本。",
- altGithub: "改从 GitHub 下载",
- altOss: "改用 OSS 镜像下载",
- checksums: "校验和(SHA256SUMS.desktop)",
- allReleases: "打开 GitHub 发布页",
- /**
- * First-launch FAQ. The macOS builds are Developer ID signed and notarized and the
- * Windows installers are Authenticode signed, so those two platforms have nothing to
- * unblock; the Linux AppImage's execute bit is the one item left, pre-expanded for a
- * Linux visitor.
- */
- faq: {
- title: "首次启动常见问题",
- intro:
- "macOS 安装包已由 Developer ID 签名并公证,Windows 安装程序已 Authenticode 签名,两个平台首次启动都无需额外放行;只有 Linux 是例外。",
- linux: {
- question: "Linux 双击 AppImage 没有反应?",
- answer:
- "浏览器下载的 AppImage 默认没有执行权限,赋权一次后即可正常启动(deb 包经包管理器安装,无此问题):",
- },
- },
- cliHint: "只需要命令行或浏览器里的 Web 界面?",
- cliHintLink: "参见快速开始",
- },
-
- copy: {
- copy: "复制",
- copied: "已复制",
- },
-
- pillars: {
- eyebrow: "三大特色",
- title: "为构建与进化 Agent 而生",
- subtitle: "PenguinHarness 率先把「Agent 构建 Agent」与「递归自我进化」带入开源 Harness。",
- root: "PenguinHarness",
- concepts: ["Penguin Message", "Penguin SDK", "Penguin Skills"],
- diagramLabel:
- "PenguinHarness 辐射出 Penguin Message、Penguin SDK 与 Penguin Skills,分别延展出三大特色",
- items: [
- {
- title: "Simplest Is the Best",
- tag: "",
- desc: "坚持最小化工具集与简洁的底层接口,以更少的工具调用与 Token 消耗,高效完成复杂任务。",
- },
- {
- title: "Harness for Building Agents",
- tag: "",
- desc: "通过 PenguinHarness SDK,让 Agent 从零自主完成 Agent 应用的构建。",
- },
- {
- title: "Harness for Recursive Self-Improvement",
- tag: "",
- desc: "通过 PenguinHarness Skills,Agent 以自我评估与自我优化实现递归式自我提升。",
- },
- ],
- },
-
- compare: {
- eyebrow: "对比 LangChain",
- title: "用 Agent 构建 Agent",
- subtitle: [
- "使用 LangChain,以 1 倍速度人工构建 Agent;",
- "使用 PenguinHarness,以 100 倍速度用 Agent 构建 Agent。",
- ],
- langchain: {
- name: "LangChain",
- speed: "1×",
- mode: "人工构建 Agent",
- note: "逐行编写链路、工具与提示词,每个应用都从零开始。",
- },
- penguin: {
- name: "PenguinHarness",
- speed: "100×",
- mode: "Agent 构建 Agent",
- note: "一句话需求,Agent 端到端交付脚手架、代码与运行说明。",
- },
- },
-
- selfImprove: {
- eyebrow: "自我提升循环",
- title: "多 Agent 协作,进化自动发生",
- subtitle:
- "Optimizer 组织多个 Evaluator 为 Target Agent 并行打分,依据分数与运行轨迹定位失分原因,把 Agent 从版本 N 优化到版本 N+1——每一轮都有快照,随时可回退。",
- videoLabel: "自我进化演示视频",
- videoCaption: "自我进化演示:Agent 跑评测、定位失分点、发布下一版——完整一轮。",
- nodeOptimizer: "Optimizer",
- nodeEvaluator: "Evaluator × N",
- nodeTarget: "Target Agent",
- badgeOld: "vN",
- badgeNew: "vN+1",
- edgeSpawn: "启动并行评测",
- edgeBench: "运行 Benchmark",
- edgeFeedback: "分数与轨迹",
- edgeImprove: "更新提示词与 Skill",
- trends: [
- { label: "分数", hint: "不断上升" },
- { label: "成本", hint: "不断降低" },
- { label: "耗时", hint: "不断减少" },
- ],
- diagramLabel:
- "自我提升循环示意:Optimizer 组织多个 Evaluator 打分,依据分数与轨迹把 Target Agent 从 vN 优化到 vN+1",
- },
-
- quickstart: {
- eyebrow: "快速开始",
- title: "分两步开始使用 PenguinHarness",
- subtitle: "先选择安装方式;使用命令行安装时,再选择 Web UI 或 CLI 启动。",
- stepOne: "第一步",
- chooseInstall: "选择安装方式",
- stepTwo: "第二步",
- chooseLaunch: "选择启动方式",
- tabs: {
- desktop: "桌面端",
- install: "命令行安装",
- web: "启动 Web UI",
- cli: "启动 CLI",
- },
- desktop: {
- title: "桌面端优先,打开就能用",
- desc: "内置本地服务与完整 Web 界面,无需先配置运行环境,也无需在终端里保持进程。",
- cta: "选择系统并下载",
- steps: [
- "下载适合当前系统的安装包",
- "打开 PenguinHarness,按引导配置模型",
- "输入一句话,创建第一个 Agent 应用",
- ],
- },
- install: {
- title: "一行命令安装 PenguinHarness",
- desc: "适合开发机、服务器和私有化环境。安装包自带运行时,不依赖系统里的 Node.js。",
- osLabel: "选择操作系统",
- onlineTitle: "在线安装",
- offlineTitle: "离线安装包",
- offlineDesc: "在有网机器下载目标系统的安装包,再拷贝到离线机器完成安装。",
- offlineCommand: "展开离线安装命令",
- },
- web: {
- title: "在浏览器里使用完整界面",
- desc: "命令会启动本地服务并自动打开 Web UI,适合服务器部署和远程访问。",
- command: "penguin web # 打开 http://127.0.0.1:7364",
- steps: ["先完成命令行安装", "运行 penguin web", "按终端提示登录并配置模型"],
- },
- cli: {
- title: "直接从终端运行 Agent",
- desc: "进入交互式对话,或把单次任务接入脚本和自动化工作流。",
- command: `penguin chat
-
-# 或执行单次任务
-penguin run --message "分析 data.csv,输出季度销售额"`,
- },
- localNote: "桌面端、Web UI 与 CLI 共用 ~/.penguin/data;切换入口不会迁移或复制数据。",
- },
-
- cases: {
- eyebrow: "案例",
- title: "一句话生成会思考、可运行的 AI 应用",
- subtitle: "把需求交给 Agent,端到端拿到可运行的结果;更多案例陆续加入。",
- tabs: [
- {
- label: "RAG 应用",
- prompt:
- "收集 https://github.com/ericbuess/claude-code-docs 的文档,做一个化身 Claude Code 配置专家、回答带来源引用的 RAG 问答应用。",
- caption: "生成的 RAG 应用成品:Claude Code 配置专家,回答带可点击的来源引用与示例问题",
- cost: "而生成整个 RAG 应用,仅消耗了 0.2 元($0.02)的 token——使用 DeepSeek V4 Pro 模型。",
- },
- {
- label: "2D 企鹅雪橇小游戏",
- prompt: "做一个可爱的南极企鹅滑雪橇越野小游戏:空格起跳跃过石头,速度与难度随时间上升。",
- caption: "生成的小游戏成品:南极企鹅滑雪橇跳石头越野,实时计分,难度渐进",
- cost: "",
- },
- ],
- },
-
- scenarios: {
- eyebrow: "应用场景",
- title: "从体检中心到工厂车间",
- subtitle: "企业使用 PenguinHarness 自动开发 Agent,并部署到生产环境的真实案例。",
- items: [
- {
- title: "体检报告质控",
- alt: "体检中心的 CT 检查室",
- body: "一家体检机构使用 PenguinHarness 自动开发了报告质控 Agent,并将它部署到院内生产环境,接入本地 Qwen3 14B,数据不出机房。过去一轮人工复核要 30 分钟,现在每分钟自动核查 30 份报告,结论与医学专家基本一致,审核产能提升数倍。",
- },
- {
- title: "产线设备巡检",
- alt: "自动化半导体生产线",
- body: "一家制造企业使用 PenguinHarness 自动开发了产线巡检 Agent,并将它部署到多条流水线的生产环境。Agent 全天候监测设备状态,发现异常后优先尝试自动恢复;上线后停机时间减少 65%,产出提升约 2 倍。",
- },
- ],
- },
-
- contract: {
- eyebrow: "稳定进化的契约",
- title: "CONTRACT.md",
- subtitle: "PenguinHarness 以这份契约作为进化的边界和基石:能力可以生长,边界永不漂移。",
- intro: "进化需要边界。契约是 Harness 与 Agent 之间的约定:能力生长于内,边界固守于外。",
- items: [
- {
- term: "工作边界",
- text: "所有 Agent 都运行在同一个 Harness 之上:Agent 之下创建 Session,Session 之中执行 Task;自我进化只发生在 Workspace 与 Skill 之内,Harness 内核与安全机制始终不变。",
- },
- {
- term: "可编辑文件",
- text: "Agent 的提示词、技能与配置都是磁盘上可编辑的文件,而不是写死在代码里的常量。你能看到的,Agent 才能改进;你能修改的,Agent 也能学会。",
- },
- {
- term: "全量追踪",
- text: "每一次模型请求、每一次工具调用都完整写入 Trace:花了多少 Token、用了多长时间、为什么失败,事后都能逐条回放。",
- },
- {
- term: "权限审批",
- text: "每个工具调用都先经过审批再执行,每次审批决定都留有审计记录,Agent 做过什么一目了然。",
- },
- {
- term: "版本控制",
- text: "每次优化之前,先保存 Agent State 的版本快照。进化失败或效果回退,一步恢复到任何历史版本。",
- },
- {
- term: "按需加载",
- text: "面向模型的内容先给索引、再按需读取正文,不把整库资料一次性塞进上下文——上下文越干净,行为越稳定。",
- },
- {
- term: "错误处理",
- text: "错误分为可重试与不可重试:可重试的自动重试,不可重试的收敛为消息回给模型,任务不因一次失败而终止。",
- },
- {
- term: "密钥隔离",
- text: "API key 等 credential 存放在隐藏文件里、只经系统接口读写,永远不进入模型上下文,也不以明文出现在界面上。",
- },
- {
- term: "模型解耦",
- text: "模型与 Agent 互不绑定:随时换用更强或更便宜的模型,不需要改动 Agent 本身。",
- },
- {
- term: "执行轨迹可恢复",
- text: "任何 Session 都能从 Trace 完整恢复:进程重启、机器迁移,上下文都不会丢。",
- },
- ],
- outro: "契约不约束能力的上限,只约束进化的方式。",
- },
-
- benchmark: {
- eyebrow: "Benchmark",
- title: "以几十分之一的成本,跑出优异的效果",
- subtitle:
- "每个产品搭配它常用的模型,与 Claude Code、OpenAI Codex 在两套题库上正面对比:准确率同级,花的钱差出几十倍。",
- higherBetter: "越高越好",
- lowerBetter: "越低越好",
- dimScore: "准确率",
- dimTokens: "Token 用量",
- dimCost: "成本",
- dataTitle: "复杂数据分析",
- dataDesc:
- "三者中准确率最高(66.67%,另两者均为 53.33%),成本只有 OpenAI Codex 的 1/35、Claude Code 的 1/70。",
- dataFootnote:
- "15 道复杂数据分析任务 · 单次运行 · Token 与成本为全套题目合计 · 按官方计价估算。",
- codeTitle: "代码任务",
- codeDesc:
- "准确率与 OpenAI Codex 持平(71.25%)、低于 Claude Code(86.25%),但成本只有前者的 1/58、后者的 1/39。",
- codeFootnote:
- "40 道代码任务 × 2 次运行(准确率取全部 80 次结果)· Token 与成本为全套题目合计 · 按官方计价估算。",
- colFramework: "实验框架",
- colModel: "模型名称",
- colAccuracy: "准确率(%)",
- colTokens: "Token 用量(M)",
- colCost: "成本($)",
- },
-
- features: {
- eyebrow: "主要功能",
- title: "桌面级界面里的完整能力",
- subtitle: "每一项都在 Web 界面里,装好即用。",
- more: "以及更多……",
- items: [
- {
- title: "多 Session 会话",
- desc: "每个 Agent 可开任意多个会话,流式输出、工具审批与图片粘贴开箱即用。",
- },
- {
- title: "智能体仓库",
- desc: "一键创建与管理多个 Agent,名称、描述与提示词随时可改。",
- },
- {
- title: "技能库",
- desc: "浏览、安装、快捷调用 Skill,Agent 也能编写并优化自己的技能。",
- },
- {
- title: "定时任务",
- desc: "计划调度让 Agent 到点自动执行,全程留痕,无人值守。",
- },
- {
- title: "子 Agent",
- desc: "任务可委派给 Subagent 并行协作,各自独立、互不干扰。",
- },
- {
- title: "成本中心",
- desc: "Token、请求与成本逐日趋势,各模型成功率与异常明细一目了然。",
- },
- {
- title: "轨迹观测",
- desc: "逐轮回放每次请求与工具调用,Token 细分与耗时全量可查。",
- },
- {
- title: "Agent 评估",
- desc: "内建 Benchmark 题库与记分板,分数随进化持续上升。",
- },
- {
- title: "多用户管理",
- desc: "管理员创建用户,各自拥有独立 Project,数据相互隔离。",
- },
- ],
- },
-
- skills: {
- eyebrow: "内置 Skill",
- title: "内置 Skill 库一览",
- subtitle: "四组 Skill 开箱即用,Agent 也能编写并优化自己的 Skill。",
- groups: [
- {
- title: "办公效率",
- skills: ["data-analysis", "firecrawl", "browser-automation", "bento-slides", "humanizer"],
- },
- {
- title: "软件开发",
- skills: ["web-design", "software-engineering", "remote-claude-code"],
- },
- {
- title: "AI 应用开发",
- skills: [
- "penguin-sdk",
- "penguin-config",
- "penguin-orchestration",
- "unified-llm-api",
- "vllm",
- "ollama",
- "llamafactory",
- "skill-porting",
- "agent-initialization",
- "benchmark-design",
- "agent-evaluation",
- "agent-optimization",
- ],
- },
- {
- title: "Agent 公司",
- skills: [
- "company-setup",
- "company-employee",
- "company-ceo",
- "company-hr",
- "company-finance",
- "company-research",
- "company-mirror",
- ],
- },
- ],
- },
-
- security: {
- eyebrow: "安全",
- title: "进化不越界,数据不出域",
- subtitle: "为企业级数据安全而设计的运行边界。",
- items: [
- {
- title: "开源,本地部署",
- desc: "内核完全开源可审计,数据保存在本地目录,不经过任何第三方服务。",
- },
- {
- title: "进化范围受限",
- desc: "自我进化严格限制在 Workspace 与 Skill 内,不修改 Harness 核心安全边界。",
- },
- {
- title: "权限审批与审计",
- desc: "工具调用先经用户批准,审批结果全部写入 Trace 审计事件。",
- },
- {
- title: "密钥隔离",
- desc: "credential 以 0600 隐藏文件落盘,系统 Prompt 禁读,界面全程掩码。",
- },
- ],
- },
-
- community: {
- eyebrow: "社区",
- title: "加入社区,一起共建",
- subtitle: "讨论、提问、贡献——你的第一个 Issue 就是最好的开始。",
- items: {
- discord: { name: "Discord", desc: "与我们和其他开发者实时交流。" },
- x: { name: "X(Twitter)", desc: "关注产品与团队的最新动态。" },
- wechat: { name: "微信群", desc: "中文社区讨论与互助。" },
- github: { name: "GitHub", desc: "Star、Issue 与 PR 都欢迎。" },
- },
- },
-
- cta: {
- title: "让复杂的 AI 开发越来越简单",
- subtitle:
- "通过不断进化,PenguinHarness 为你提供更高效、更可靠、更低幻觉、更低成本的 Agent 生产力引擎。",
- download: "下载桌面版",
- quickstart: "快速开始",
- docs: "阅读文档",
- },
-
- footer: {
- tagline: "Efficient Self-Improving Harness for Everyone.",
- product: "产品",
- resources: "资源",
- quickstart: "快速开始",
- features: "功能",
- selfImprove: "自进化引擎",
- cases: "案例",
- blog: "博客",
- repo: "GitHub 仓库",
- docs: "文档",
- releases: "Releases",
- license: "Apache-2.0 License",
- copyright: "© 2026 Prism Shadow · 基于 Apache-2.0 协议开源",
- },
-
- blog: {
- title: "博客",
- subtitle: "产品动态、技术实践、观点与更新日志",
- all: "全部",
- news: "产品动态",
- practice: "技术实践",
- perspectives: "观点",
- changelog: "更新日志",
- pinned: "置顶",
- copyLink: "复制页面链接",
- linkCopied: "已复制",
- back: "返回博客",
- empty: "该分类下暂无文章",
- notFound: "文章不存在",
- backHome: "返回首页",
- toc: "目录",
- },
-};
-
-/** Dictionary shape (constrains the English dictionary so keys line up). */
-export type Strings = typeof zh;
-
-/**
- * Runtime active dictionary (live binding): the locale Provider calls setActiveStrings
- * to switch before render, and remounts the whole tree keyed by locale so every `S.x`
- * read reflects the current language.
- */
-export let S: Strings = zh;
-
-export function setActiveStrings(next: Strings): void {
- S = next;
-}
diff --git a/packages/landing/src/lib/toc.ts b/packages/landing/src/lib/toc.ts
deleted file mode 100644
index 97a65104..00000000
--- a/packages/landing/src/lib/toc.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Blog table-of-contents helpers: extract ##/### headings from a Markdown body
- * (skipping fenced code blocks) and slugify them the same way the rendered
- * headings do, so TOC anchors and heading ids always match. Pure and unit-testable.
- */
-
-export interface TocEntry {
- id: string;
- text: string;
- depth: 2 | 3;
-}
-
-/** Heading text -> anchor id (keeps CJK, lowercases latin, hyphenates spaces). */
-export function slugifyHeading(text: string): string {
- return text
- .trim()
- .toLowerCase()
- .replace(/[^\p{L}\p{N}\s-]/gu, "")
- .replace(/\s+/g, "-");
-}
-
-export function extractToc(body: string): TocEntry[] {
- const entries: TocEntry[] = [];
- let inFence = false;
- for (const line of body.split("\n")) {
- if (/^\s*(```|~~~)/.test(line)) {
- inFence = !inFence;
- continue;
- }
- if (inFence) continue;
- const match = /^(#{2,3})\s+(.+?)\s*$/.exec(line);
- if (!match) continue;
- const text = match[2]!;
- entries.push({
- id: slugifyHeading(text),
- text,
- depth: match[1]!.length === 2 ? 2 : 3,
- });
- }
- return entries;
-}
diff --git a/packages/landing/src/lib/use-scroll-spy.ts b/packages/landing/src/lib/use-scroll-spy.ts
deleted file mode 100644
index 338b1035..00000000
--- a/packages/landing/src/lib/use-scroll-spy.ts
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * Live scroll-spy for the landing nav: returns the id of the LAST section whose
- * anchor top has crossed the activation line under the sticky header, or null
- * while the viewport is still above the first section (the hero). Scroll events
- * are captured at the document level so any scrolling container works, and
- * positions are measured with viewport rects (rAF-throttled).
- */
-import { useEffect, useState } from "react";
-
-/** Just below the sticky header plus the .section-anchor scroll margin (5.5rem). */
-const ACTIVATION_LINE_PX = 96;
-
-export function useScrollSpy(ids: readonly string[]): string | null {
- const [active, setActive] = useState<string | null>(null);
- const key = ids.join("|");
-
- useEffect(() => {
- if (ids.length === 0) {
- setActive(null);
- return;
- }
- let raf = 0;
- const measure = () => {
- raf = 0;
- let current: string | null = null;
- for (const id of ids) {
- const el = document.getElementById(id);
- if (el && el.getBoundingClientRect().top <= ACTIVATION_LINE_PX) current = id;
- }
- setActive(current);
- };
- const schedule = () => {
- if (raf === 0) raf = requestAnimationFrame(measure);
- };
- measure();
- document.addEventListener("scroll", schedule, { capture: true, passive: true });
- window.addEventListener("resize", schedule);
- return () => {
- document.removeEventListener("scroll", schedule, { capture: true });
- window.removeEventListener("resize", schedule);
- if (raf) cancelAnimationFrame(raf);
- };
- // The id list is captured via its joined key.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [key]);
-
- return active;
-}
diff --git a/packages/landing/src/lib/version.ts b/packages/landing/src/lib/version.ts
deleted file mode 100644
index d1a34d7e..00000000
--- a/packages/landing/src/lib/version.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import packageInfo from "../../package.json";
-
-/** Release version shown beside installer actions; kept in sync by the normal version bump. */
-export const RELEASE_VERSION = `v${packageInfo.version}`;
diff --git a/packages/landing/src/main.tsx b/packages/landing/src/main.tsx
deleted file mode 100644
index bbfc1dd2..00000000
--- a/packages/landing/src/main.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-/** Landing entry point: mounts the React root component. */
-import { StrictMode } from "react";
-import { createRoot } from "react-dom/client";
-import { App } from "./app";
-import "./styles.css";
-
-const container = document.getElementById("root");
-if (!container) throw new Error("#root mount point not found");
-
-createRoot(container).render(
- <StrictMode>
- <App />
- </StrictMode>,
-);
diff --git a/packages/landing/src/pages/blog-list.tsx b/packages/landing/src/pages/blog-list.tsx
deleted file mode 100644
index 4d692c5f..00000000
--- a/packages/landing/src/pages/blog-list.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Blog list: category chips (all / product news / tech practice / perspectives / release notes) +
- * post cards. A flat list in every view — each card carries its category badge,
- * chips filter by category, and pinned posts sort first.
- */
-import { useState } from "react";
-import { Link } from "react-router";
-import { S } from "../lib/strings";
-import { useLocale } from "../state/locale";
-import { formatPostDate, postsFor } from "../lib/blog";
-import type { BlogCategory } from "../lib/blog";
-import { CategoryBadge, PinnedBadge } from "../components/category-badge";
-
-type Filter = "all" | BlogCategory;
-
-const FILTERS: Filter[] = ["all", "news", "practice", "perspectives", "changelog"];
-
-export function BlogListPage() {
- const { locale } = useLocale();
- const [filter, setFilter] = useState<Filter>("all");
- const posts = postsFor(locale, filter === "all" ? undefined : filter);
-
- const chip = (active: boolean) =>
- `rounded-full border px-3.5 py-1.5 text-sm transition-colors ${
- active
- ? "border-gray-900 bg-gray-900 text-white dark:border-gray-100 dark:bg-gray-100 dark:text-gray-900"
- : "border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-gray-800 dark:text-gray-400 dark:hover:bg-gray-900"
- }`;
-
- return (
- <div className="mx-auto max-w-3xl px-4 py-14 sm:px-6">
- <header className="anim-rise">
- <h1 className="text-3xl font-semibold tracking-tight">{S.blog.title}</h1>
- <p className="mt-2 text-gray-600 dark:text-gray-400">{S.blog.subtitle}</p>
- <div className="mt-6 flex flex-wrap gap-2">
- {FILTERS.map((value) => (
- <button
- key={value}
- type="button"
- className={chip(filter === value)}
- onClick={() => setFilter(value)}
- >
- {value === "all" ? S.blog.all : S.blog[value]}
- </button>
- ))}
- </div>
- </header>
-
- <div className="mt-8 flex flex-col gap-4">
- {posts.length === 0 && (
- <p className="rounded-xl border border-gray-200 px-5 py-10 text-center text-sm text-gray-500 dark:border-gray-800 dark:text-gray-400">
- {S.blog.empty}
- </p>
- )}
- {posts.map((post) => (
- <Link
- key={post.slug}
- to={`/blog/${post.slug}`}
- // Semi-transparent surface: the ambient neon backdrop (NeonBackground, behind the
- // whole page) reads through the card, so it sits as a layer over the page instead of
- // a solid slab. Hover lifts the alpha as well as the border, both under transition-colors.
- className="anim-rise group rounded-xl border border-gray-200 bg-white/70 p-5 transition-colors hover:border-gray-300 hover:bg-white/90 sm:p-6 dark:border-gray-800 dark:bg-gray-900/60 dark:hover:border-gray-700 dark:hover:bg-gray-900/85"
- >
- <div className="flex items-center gap-3 text-xs text-gray-500 dark:text-gray-400">
- <time dateTime={post.date} className="tabular-nums">
- {formatPostDate(post.date, locale)}
- </time>
- <CategoryBadge category={post.category} />
- {post.pinned && <PinnedBadge />}
- </div>
- <h2 className="mt-2 text-lg font-semibold tracking-tight group-hover:text-brand-700 dark:group-hover:text-brand-300">
- {post.title}
- </h2>
- {post.excerpt && (
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {post.excerpt}
- </p>
- )}
- </Link>
- ))}
- </div>
- </div>
- );
-}
diff --git a/packages/landing/src/pages/blog-post.tsx b/packages/landing/src/pages/blog-post.tsx
deleted file mode 100644
index 6995bae1..00000000
--- a/packages/landing/src/pages/blog-post.tsx
+++ /dev/null
@@ -1,318 +0,0 @@
-/**
- * Blog post: renders the local Markdown body (react-markdown + GFM + raw HTML) in
- * .md-body style, with a sticky table of contents on wide screens. Headings get slug ids
- * (same slugifier as the TOC) and the active section is tracked with an
- * IntersectionObserver so the TOC highlights while scrolling.
- */
-import { useEffect, useMemo, useRef, useState } from "react";
-import type { ComponentPropsWithoutRef, ReactNode } from "react";
-import Markdown from "react-markdown";
-import type { Components, ExtraProps } from "react-markdown";
-import rehypeRaw from "rehype-raw";
-import remarkGfm from "remark-gfm";
-import { Link, useParams } from "react-router";
-import { S } from "../lib/strings";
-import { blogAssetUrl } from "../lib/links";
-import { useLocale } from "../state/locale";
-import { formatAuthors, formatPostDate, getPost } from "../lib/blog";
-import { extractToc, slugifyHeading } from "../lib/toc";
-import { CategoryBadge } from "../components/category-badge";
-import { ArrowRightIcon, CheckIcon, LinkIcon } from "../components/icons";
-
-/** Flatten react-markdown heading children to plain text for slugging. */
-function nodeText(node: ReactNode): string {
- if (node === null || node === undefined || typeof node === "boolean") return "";
- if (typeof node === "string" || typeof node === "number") return String(node);
- if (Array.isArray(node)) return node.map(nodeText).join("");
- if (typeof node === "object" && "props" in node) {
- return nodeText((node as { props: { children?: ReactNode } }).props.children);
- }
- return "";
-}
-
-/**
- * Link adapter: every link in a post body opens in a new tab (`target="_blank"` + `rel="noreferrer"`,
- * which also implies `noopener`), unconditionally — including relative and `#anchor` hrefs, since a
- * post is a reading surface people come back to. Every other anchor prop react-markdown supplies
- * (`href`, and `title` from `[text](url "title")`) is forwarded as-is — only its non-DOM `node` prop
- * is stripped — and `target`/`rel` sit after the spread so the new-tab behavior always wins.
- * Long-URL wrapping is CSS (`.md-body a` in styles.css), not handled here. Mirrors the Web App's
- * chat renderer (packages/web/src/features/chat/md.tsx).
- */
-export function MdLink({
- node: _node,
- children,
- ...anchorProps
-}: ComponentPropsWithoutRef<"a"> & ExtraProps) {
- return (
- <a {...anchorProps} target="_blank" rel="noreferrer">
- {children}
- </a>
- );
-}
-
-/** The path prefix post bodies use for images this repo does not carry. */
-const BLOG_ASSET_PREFIX = "/blog-assets/";
-
-/**
- * Image adapter: rewrites `/blog-assets/<name>` sources to the community repo that actually hosts
- * them (see blogAssetUrl in lib/links.ts). Every other src — absolute URLs, GitHub user-attachment
- * uploads, anything else a post embeds — is forwarded untouched.
- *
- * The rewrite lives here rather than in the Markdown so there is one source of truth for the
- * hosting location: post bodies keep the stable, portable relative path, they stay readable and
- * diffable, and the tests that assert on those paths keep asserting on the paths. Applies equally
- * to `![alt](…)` and to the raw `<img src="…">` tags posts use for theme-swapped screenshots,
- * because rehype-raw turns those into ordinary `img` nodes before this map is consulted.
- */
-export function MdImage({
- node: _node,
- src,
- ...imgProps
-}: ComponentPropsWithoutRef<"img"> & ExtraProps) {
- const resolved =
- typeof src === "string" && src.startsWith(BLOG_ASSET_PREFIX)
- ? blogAssetUrl(src.slice(BLOG_ASSET_PREFIX.length))
- : src;
- return <img {...imgProps} src={resolved} />;
-}
-
-/**
- * Built once at module scope rather than inline per render: react-markdown uses each entry as the
- * element **type**, so a fresh arrow every render is a new type on every commit and React remounts
- * that subtree instead of updating it. None of these adapters closes over render state, so a single
- * frozen map is enough.
- */
-export const MD_COMPONENTS: Components = {
- h2: ({ children }) => (
- <h2 id={slugifyHeading(nodeText(children))} className="scroll-mt-20">
- {children}
- </h2>
- ),
- h3: ({ children }) => (
- <h3 id={slugifyHeading(nodeText(children))} className="scroll-mt-20">
- {children}
- </h3>
- ),
- a: MdLink,
- img: MdImage,
-};
-
-/**
- * Module-scope plugin lists, for the same reason MD_COMPONENTS is: a fresh array literal per
- * render is a new prop identity and re-runs the whole unified pipeline on every commit.
- */
-export const REMARK_PLUGINS = [remarkGfm];
-
-/**
- * `rehype-raw` re-parses the raw HTML that remark leaves as opaque `raw` nodes, which is the only
- * way `<details>`/`<summary>` (and the `<img width height alt>` tags some posts already use) render
- * as elements instead of escaped text.
- *
- * **The trust boundary this depends on.** Post bodies are first-party Markdown committed to this
- * repo and inlined at build time (`import.meta.glob("../../content/blog/*.md", { query: "?raw" })`
- * in lib/blog.ts) — never fetched, never user-submitted, never model output. Re-enabling raw HTML
- * therefore grants the content exactly the privilege its neighbours in the same repo already have:
- * anything able to land HTML here could equally land a `<script>` in this very file, so a sanitizer
- * would be guarding the *least* privileged input in the build while costing a dependency and
- * silently dropping attributes authors legitimately write. It is deliberately not paired with
- * `rehype-sanitize` for that reason, and the reason is the boundary, not the risk appetite:
- *
- * If post bodies ever come from anywhere but this repo — a CMS, reader submissions, an API —
- * `rehype-raw` MUST be paired with `rehype-sanitize`, or dropped.
- *
- * The Web App's chat renderer (packages/web/src/features/chat/md.tsx) renders LLM output, which is
- * untrusted by construction; it must never gain `rehype-raw`. Same library, opposite boundary.
- */
-export const REHYPE_PLUGINS = [rehypeRaw];
-
-/** Copy text to the clipboard; reports whether a copy actually happened. */
-async function copyToClipboard(text: string): Promise<boolean> {
- try {
- await navigator.clipboard.writeText(text);
- return true;
- } catch {
- // Clipboard API unavailable (e.g. non-secure context): fall back to a textarea
- // kept out of layout (fixed + invisible) so select() cannot scroll the page.
- const ta = document.createElement("textarea");
- ta.value = text;
- ta.setAttribute("readonly", "");
- ta.style.position = "fixed";
- ta.style.top = "0";
- ta.style.left = "0";
- ta.style.opacity = "0";
- document.body.appendChild(ta);
- try {
- ta.select();
- return document.execCommand("copy");
- } catch {
- return false;
- } finally {
- ta.remove();
- }
- }
-}
-
-/** Copies the page URL to the clipboard; the label flips to "copied" for ~2s. */
-function CopyLinkButton() {
- const [copied, setCopied] = useState(false);
- const timer = useRef<ReturnType<typeof setTimeout> | null>(null);
-
- useEffect(
- () => () => {
- if (timer.current) clearTimeout(timer.current);
- },
- [],
- );
-
- const onCopy = async () => {
- if (!(await copyToClipboard(window.location.href))) return;
- setCopied(true);
- if (timer.current) clearTimeout(timer.current);
- timer.current = setTimeout(() => setCopied(false), 2000);
- };
-
- return (
- <button
- type="button"
- onClick={() => void onCopy()}
- className="inline-flex items-center gap-1.5 transition-colors hover:text-gray-900 dark:hover:text-gray-100"
- >
- {copied ? (
- <CheckIcon className="h-3.5 w-3.5 text-green-600 dark:text-green-400" />
- ) : (
- <LinkIcon className="h-3.5 w-3.5" />
- )}
- {copied ? S.blog.linkCopied : S.blog.copyLink}
- </button>
- );
-}
-
-function Toc({ entries, activeId }: { entries: ReturnType<typeof extractToc>; activeId: string }) {
- return (
- <aside className="hidden xl:block">
- <nav className="sticky top-24" aria-label={S.blog.toc}>
- <p className="text-xs font-semibold tracking-wide text-gray-400 uppercase dark:text-gray-500">
- {S.blog.toc}
- </p>
- <ul className="mt-3 space-y-1 border-l border-gray-200 text-sm dark:border-gray-800">
- {entries.map((entry) => (
- <li key={entry.id}>
- <a
- href={`#${entry.id}`}
- className={`-ml-px block border-l py-0.5 transition-colors ${
- entry.depth === 3 ? "pl-6" : "pl-3"
- } ${
- activeId === entry.id
- ? "border-brand-600 font-medium text-brand-700 dark:border-brand-400 dark:text-brand-300"
- : "border-transparent text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100"
- }`}
- >
- {entry.text}
- </a>
- </li>
- ))}
- </ul>
- </nav>
- </aside>
- );
-}
-
-export function BlogPostPage() {
- const { slug = "" } = useParams();
- const { locale } = useLocale();
- const post = getPost(slug, locale);
- const toc = useMemo(() => (post ? extractToc(post.body) : []), [post]);
- const [activeId, setActiveId] = useState("");
-
- // Track the last heading scrolled past the reading line (~100px under the sticky
- // header) for TOC highlighting. Scroll-position based rather than an
- // IntersectionObserver: with an observer nothing intersects the narrow top band
- // between headings, so the highlight would stall or skip while scrolling.
- useEffect(() => {
- if (toc.length < 2) return;
- let raf = 0;
- const update = () => {
- raf = 0;
- const doc = document.documentElement;
- const atBottom = window.innerHeight + window.scrollY >= doc.scrollHeight - 4;
- let current = toc[0]!.id;
- if (atBottom) {
- current = toc[toc.length - 1]!.id;
- } else {
- for (const entry of toc) {
- const el = document.getElementById(entry.id);
- if (el && el.getBoundingClientRect().top <= 100) current = entry.id;
- }
- }
- setActiveId(current);
- };
- const onScroll = () => {
- if (raf === 0) raf = requestAnimationFrame(update);
- };
- update();
- window.addEventListener("scroll", onScroll, { passive: true });
- window.addEventListener("resize", onScroll);
- return () => {
- window.removeEventListener("scroll", onScroll);
- window.removeEventListener("resize", onScroll);
- if (raf) cancelAnimationFrame(raf);
- };
- }, [toc]);
-
- if (!post) {
- return (
- <div className="mx-auto max-w-3xl px-4 py-24 text-center sm:px-6">
- <p className="text-lg font-medium">{S.blog.notFound}</p>
- <Link
- to="/blog"
- className="mt-4 inline-flex items-center gap-1.5 text-sm text-brand-700 hover:underline dark:text-brand-300"
- >
- {S.blog.back}
- </Link>
- </div>
- );
- }
-
- const showToc = toc.length >= 2;
-
- return (
- <div
- className={`anim-rise mx-auto px-4 py-14 sm:px-6 ${
- showToc ? "max-w-5xl xl:grid xl:grid-cols-[minmax(0,1fr)_13rem] xl:gap-12" : "max-w-3xl"
- }`}
- >
- <article className={showToc ? "mx-auto w-full max-w-3xl xl:mx-0" : ""}>
- <Link
- to="/blog"
- className="inline-flex items-center gap-1.5 text-sm text-gray-500 transition-colors hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100"
- >
- <ArrowRightIcon className="h-3.5 w-3.5 rotate-180" />
- {S.blog.back}
- </Link>
- <header className="mt-6">
- <h1 className="text-3xl font-semibold tracking-tight text-balance">{post.title}</h1>
- <div className="mt-4 flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-gray-500 dark:text-gray-400">
- <time dateTime={post.date} className="tabular-nums">
- {formatPostDate(post.date, locale)}
- </time>
- <span aria-hidden="true">·</span>
- <span>{formatAuthors(post.authors, locale)}</span>
- <CategoryBadge category={post.category} />
- <CopyLinkButton />
- </div>
- </header>
- <div className="md-body mt-8 text-[15px] text-gray-800 dark:text-gray-200">
- <Markdown
- remarkPlugins={REMARK_PLUGINS}
- rehypePlugins={REHYPE_PLUGINS}
- components={MD_COMPONENTS}
- >
- {post.body}
- </Markdown>
- </div>
- </article>
- {showToc && <Toc entries={toc} activeId={activeId} />}
- </div>
- );
-}
diff --git a/packages/landing/src/pages/download.tsx b/packages/landing/src/pages/download.tsx
deleted file mode 100644
index 0c93148d..00000000
--- a/packages/landing/src/pages/download.tsx
+++ /dev/null
@@ -1,366 +0,0 @@
-/** Desktop downloads with platform-first choices and a visible source speed report. */
-import { useEffect, useState } from "react";
-import { Link } from "react-router";
-import type { ComponentType, ReactNode, SVGProps } from "react";
-import { S } from "../lib/strings";
-import {
- DESKTOP_INSTALLERS,
- DESKTOP_SHA256SUMS,
- GITHUB_LATEST_DOWNLOAD,
- LINUX_APPIMAGE_CHMOD_CMD,
- OSS_ORIGIN,
- RELEASES_URL,
-} from "../lib/links";
-import { detectPlatform } from "../lib/platform";
-import type { Platform } from "../lib/platform";
-import { RELEASE_VERSION } from "../lib/version";
-import {
- GATE_BUDGET_MS,
- MIRROR_POINTER_MS,
- THROUGHPUT_BUDGET_MS,
- createDeadline,
- fetchMirror,
- gateDownloadSource,
- refineDownloadSourceWithReport,
- worthRefining,
-} from "../lib/download-source";
-import type {
- DownloadProbeReport,
- DownloadSource,
- Measurement,
- Mirror,
-} from "../lib/download-source";
-import { Section } from "../components/section";
-import { CodeCard } from "../components/code-card";
-import {
- CheckIcon,
- ChevronDownIcon,
- DownloadIcon,
- ExternalLinkIcon,
- LinuxIcon,
- MacOSIcon,
- SpinnerIcon,
- WindowsIcon,
-} from "../components/icons";
-
-const PLATFORMS: Platform[] = ["mac", "windows", "linux"];
-const PLATFORM_ICONS: Record<Platform, ComponentType<SVGProps<SVGSVGElement>>> = {
- mac: MacOSIcon,
- windows: WindowsIcon,
- linux: LinuxIcon,
-};
-const PLATFORM_ICON_CLASSES: Record<Platform, string> = {
- mac: "bg-gray-100 text-gray-950 dark:bg-gray-800 dark:text-white",
- windows: "bg-gray-100 dark:bg-gray-800",
- linux: "bg-gray-100 dark:bg-gray-800",
-};
-const RELEASE_MIRROR: Mirror = {
- tag: RELEASE_VERSION,
- base: `${OSS_ORIGIN}/releases/${RELEASE_VERSION}`,
-};
-
-function installerSuffix(file: string): string {
- return file.match(/(\.AppImage|\.dmg|\.exe|\.deb)$/)?.[1] ?? "";
-}
-
-function FaqItem({
- question,
- defaultOpen,
- children,
-}: {
- question: string;
- defaultOpen: boolean;
- children: ReactNode;
-}) {
- return (
- <details
- open={defaultOpen}
- className="group rounded-xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900"
- >
- <summary className="flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3 text-sm font-medium tracking-tight [&::-webkit-details-marker]:hidden">
- {question}
- <ChevronDownIcon className="h-4 w-4 shrink-0 text-gray-400 transition-transform group-open:rotate-180 dark:text-gray-500" />
- </summary>
- <div className="border-t border-gray-200 px-4 py-3 text-sm leading-6 text-gray-600 dark:border-gray-800 dark:text-gray-400">
- {children}
- </div>
- </details>
- );
-}
-
-function formatSpeed(bytesPerSecond: number): string {
- if (bytesPerSecond >= 1024 * 1024) {
- return `${(bytesPerSecond / 1024 / 1024).toFixed(1)} MB/s`;
- }
- return `${Math.max(1, Math.round(bytesPerSecond / 1024))} KB/s`;
-}
-
-function speedText(measurement: Measurement | null, testing: boolean): string {
- if (testing) return S.download.speed.testing;
- if (measurement === null) return S.download.speed.skipped;
- if (!measurement.reachable) return S.download.speed.unreachable;
- if (measurement.bytesPerSecond <= 0) return S.download.speed.belowFloor;
- return formatSpeed(measurement.bytesPerSecond);
-}
-
-function filledSignalBars(
- measurement: Measurement | null,
- testing: boolean,
- selected: boolean,
-): number {
- if (testing) return 2;
- if (!measurement || !measurement.reachable) return selected ? 2 : 1;
- if (measurement.bytesPerSecond <= 0) return 1;
- return Math.min(4, Math.max(1, Math.round(Math.log2(measurement.bytesPerSecond / 65536) + 1)));
-}
-
-const SIGNAL_HEIGHTS = [4, 7, 10, 13] as const;
-
-function SourceSpeedButton({
- title,
- measurement,
- testing,
- selected,
- onSelect,
-}: {
- title: string;
- measurement: Measurement | null;
- testing: boolean;
- selected: boolean;
- onSelect: () => void;
-}) {
- const filled = filledSignalBars(measurement, testing, selected);
- return (
- <button
- type="button"
- aria-pressed={selected}
- onClick={onSelect}
- className={`flex min-w-0 items-center justify-between gap-2 rounded-lg border px-3 py-2 text-left transition-colors ${
- selected
- ? "border-brand-400 bg-brand-50/70 dark:border-brand-700 dark:bg-brand-950/50"
- : "border-gray-200 bg-white hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700 dark:hover:bg-gray-800"
- }`}
- >
- <div className="min-w-0">
- <span className="flex items-center gap-1.5 truncate text-xs font-semibold tracking-tight sm:text-sm">
- {title}
- {selected && (
- <CheckIcon className="h-3 w-3 shrink-0 text-brand-600 dark:text-brand-300" />
- )}
- </span>
- <span className="mt-0.5 block font-mono text-[11px] text-gray-500 tabular-nums dark:text-gray-400">
- {speedText(measurement, testing)}
- </span>
- </div>
- <span className="flex h-4 shrink-0 items-end gap-0.5" aria-hidden="true">
- {SIGNAL_HEIGHTS.map((height, index) => (
- <span
- key={height}
- className={`w-1 rounded-[1px] ${testing ? "animate-pulse" : ""} ${
- index < filled
- ? selected
- ? "bg-brand-500 dark:bg-brand-400"
- : "bg-gray-500 dark:bg-gray-400"
- : "bg-gray-200 dark:bg-gray-800"
- }`}
- style={{ height: `${height}px`, animationDelay: `${index * 55}ms` }}
- />
- ))}
- </span>
- </button>
- );
-}
-
-export function DownloadPage() {
- const [mirror, setMirror] = useState<Mirror | null>(null);
- const [source, setSource] = useState<DownloadSource | null>(null);
- const [report, setReport] = useState<DownloadProbeReport | null>(null);
- const [refining, setRefining] = useState(false);
- const [override, setOverride] = useState<DownloadSource | null>(null);
-
- useEffect(() => {
- let cancelled = false;
- const mirrorPromise = fetchMirror(createDeadline(MIRROR_POINTER_MS));
- void mirrorPromise.then((resolved) => {
- if (!cancelled) setMirror(resolved);
- });
- void (async () => {
- const gated = await gateDownloadSource(mirrorPromise, createDeadline(GATE_BUDGET_MS));
- if (cancelled) return;
- setSource(gated);
- const resolved = await mirrorPromise;
- if (cancelled || !worthRefining(resolved) || !resolved) return;
- setRefining(true);
- const refined = await refineDownloadSourceWithReport(
- resolved,
- createDeadline(THROUGHPUT_BUDGET_MS),
- );
- if (cancelled) return;
- if (refined) {
- setSource(refined.source);
- setReport(refined);
- }
- setRefining(false);
- })();
- return () => {
- cancelled = true;
- };
- }, []);
-
- const detected = detectPlatform();
- const probing = source === null;
- const selected: DownloadSource = override ?? source ?? "github";
- const availableMirror = mirror ?? RELEASE_MIRROR;
- const awaitingAutomaticSource = probing && override === null;
- const viaMirror = selected === "oss";
- const hrefFor = (file: string) =>
- viaMirror ? `${availableMirror.base}/${file}` : `${GITHUB_LATEST_DOWNLOAD}/${file}`;
- const textLink =
- "inline-flex items-center gap-1 text-brand-700 underline decoration-brand-300 underline-offset-2 transition-colors hover:text-brand-600 dark:text-brand-300 dark:decoration-brand-700";
-
- return (
- <Section eyebrow={S.download.eyebrow} title={S.download.title} className="pt-14 sm:pt-20">
- <div className="mx-auto grid max-w-5xl gap-4 sm:grid-cols-3">
- {PLATFORMS.map((platform) => {
- const PlatformIcon = PLATFORM_ICONS[platform];
- const recommended = detected === platform;
- return (
- <article
- key={platform}
- className={`flex min-w-0 flex-col rounded-2xl border bg-white p-5 shadow-sm dark:bg-gray-900 ${
- recommended
- ? "border-brand-500 ring-1 ring-brand-500"
- : "border-gray-200 dark:border-gray-800"
- }`}
- >
- <div className="flex items-start justify-between gap-3">
- <span
- className={`inline-flex h-12 w-12 items-center justify-center rounded-xl ${PLATFORM_ICON_CLASSES[platform]}`}
- >
- <PlatformIcon className="h-7 w-7" />
- </span>
- <div className="flex flex-wrap justify-end gap-1.5">
- {recommended && (
- <span className="rounded-full bg-brand-600/10 px-2 py-0.5 text-xs font-medium text-brand-700 dark:text-brand-300">
- {S.download.recommended}
- </span>
- )}
- <span className="rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-600 tabular-nums dark:bg-gray-800 dark:text-gray-300">
- {RELEASE_VERSION}
- </span>
- </div>
- </div>
- <h3 className="mt-5 text-lg font-semibold tracking-tight">
- {S.download.platforms[platform].name}
- </h3>
- <p className="mt-1 mb-5 min-h-10 text-xs leading-5 text-gray-500 dark:text-gray-400">
- {S.download.platforms[platform].require}
- </p>
- <div className="mt-auto flex flex-col gap-2">
- {DESKTOP_INSTALLERS[platform].map(({ file, variant }) => (
- <a
- key={file}
- href={awaitingAutomaticSource ? undefined : hrefFor(file)}
- aria-disabled={awaitingAutomaticSource || undefined}
- className={`inline-flex w-full items-center justify-center gap-1.5 rounded-lg px-3.5 py-2.5 text-sm font-medium transition-colors ${
- awaitingAutomaticSource
- ? "cursor-progress bg-gray-200 text-gray-500 dark:bg-gray-800 dark:text-gray-500"
- : "bg-gray-900 text-white hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white"
- }`}
- >
- {awaitingAutomaticSource ? (
- <SpinnerIcon className="h-4 w-4 animate-spin" />
- ) : (
- <DownloadIcon className="h-4 w-4" />
- )}
- <span>{variant}</span>
- <span className="rounded bg-white/10 px-1.5 py-0.5 text-[10px] font-semibold">
- {installerSuffix(file)}
- </span>
- </a>
- ))}
- </div>
- </article>
- );
- })}
- </div>
-
- <section
- className="mx-auto mt-7 max-w-4xl rounded-xl border border-gray-200 bg-gray-50/80 p-2.5 dark:border-gray-800 dark:bg-gray-950/70"
- title={S.download.speed.subtitle}
- >
- <div className="flex items-center justify-between gap-3 px-0.5">
- <h3 className="text-sm font-semibold tracking-tight">{S.download.speed.title}</h3>
- <span className="inline-flex min-w-0 items-center gap-1.5 text-[11px] text-gray-500 dark:text-gray-400">
- {(probing || refining) && <SpinnerIcon className="h-3 w-3 shrink-0 animate-spin" />}
- <span className="truncate">
- {selected === "oss" ? S.download.speed.oss : S.download.speed.github} ·{" "}
- {override ? S.download.speed.manual : S.download.speed.automatic}
- </span>
- </span>
- </div>
-
- <div className="mt-2 grid grid-cols-2 gap-2">
- <SourceSpeedButton
- title={S.download.speed.github}
- measurement={report?.github ?? null}
- testing={probing || refining}
- selected={selected === "github"}
- onSelect={() => setOverride("github")}
- />
- <SourceSpeedButton
- title={S.download.speed.oss}
- measurement={report?.oss ?? null}
- testing={probing || refining}
- selected={selected === "oss"}
- onSelect={() => setOverride("oss")}
- />
- </div>
- </section>
-
- <div className="mx-auto mt-4 max-w-5xl text-center text-sm text-gray-600 dark:text-gray-400">
- <p className="sr-only" aria-live="polite">
- {probing
- ? S.download.statusProbing
- : viaMirror
- ? S.download.statusOss(availableMirror.tag)
- : S.download.statusGithub}
- </p>
- <p>
- <a href={hrefFor(DESKTOP_SHA256SUMS)} className={textLink}>
- {S.download.checksums}
- </a>
- <span className="mx-2 text-gray-300 dark:text-gray-700">·</span>
- <a href={RELEASES_URL} target="_blank" rel="noreferrer" className={textLink}>
- {S.download.allReleases}
- <ExternalLinkIcon className="h-3 w-3" />
- </a>
- </p>
- </div>
-
- <div className="mx-auto mt-14 max-w-3xl">
- <h3 className="text-center text-base font-semibold tracking-tight">
- {S.download.faq.title}
- </h3>
- <p className="mt-1 text-center text-sm leading-6 text-gray-600 dark:text-gray-400">
- {S.download.faq.intro}
- </p>
- <div className="mt-4 flex flex-col gap-3 text-left">
- <FaqItem question={S.download.faq.linux.question} defaultOpen={detected === "linux"}>
- <p>{S.download.faq.linux.answer}</p>
- <CodeCard code={LINUX_APPIMAGE_CHMOD_CMD} label="shell" className="mt-2" />
- </FaqItem>
- </div>
- </div>
-
- <div className="mx-auto mt-10 max-w-4xl text-center">
- <p className="text-xs leading-5 text-gray-500 dark:text-gray-400">
- {S.download.cliHint}{" "}
- <Link to="/#quickstart-install" className={textLink}>
- {S.download.cliHintLink}
- </Link>
- </p>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/pages/home.tsx b/packages/landing/src/pages/home.tsx
deleted file mode 100644
index ee9b0c3e..00000000
--- a/packages/landing/src/pages/home.tsx
+++ /dev/null
@@ -1,36 +0,0 @@
-/** Home: preserve the full product story, with the one-sentence build demo first. */
-import { Hero } from "../sections/hero";
-import { Cases } from "../sections/cases";
-import { Pillars } from "../sections/pillars";
-import { Compare } from "../sections/compare";
-import { SelfImprove } from "../sections/self-improve";
-import { Quickstart } from "../sections/quickstart";
-import { Scenarios } from "../sections/scenarios";
-import { Benchmark } from "../sections/benchmark";
-import { Contract } from "../sections/contract";
-import { Features } from "../sections/features";
-import { Skills } from "../sections/skills";
-import { Security } from "../sections/security";
-import { Cta } from "../sections/cta";
-import { Community } from "../sections/community";
-
-export function HomePage() {
- return (
- <>
- <Hero />
- <Cases />
- <Pillars />
- <Compare />
- <SelfImprove />
- <Quickstart />
- <Scenarios />
- <Benchmark />
- <Contract />
- <Features />
- <Skills />
- <Security />
- <Cta />
- <Community />
- </>
- );
-}
diff --git a/packages/landing/src/router.tsx b/packages/landing/src/router.tsx
deleted file mode 100644
index 30be28af..00000000
--- a/packages/landing/src/router.tsx
+++ /dev/null
@@ -1,91 +0,0 @@
-/**
- * Router: home + blog list + blog post inside a shared Nav/Footer layout.
- * basename comes from Vite's BASE_URL so the site works under the GitHub Pages
- * project subpath; scroll restores to top on route change (hash targets excluded).
- */
-import { useEffect } from "react";
-import { BrowserRouter, Navigate, Outlet, Route, Routes, useLocation } from "react-router";
-import { DOCS_URL } from "./lib/links";
-import { hashTargetId } from "./lib/hash";
-import { AnnouncementBar } from "./components/announcement-bar";
-import { Nav } from "./components/nav";
-import { Footer } from "./components/footer";
-import { NeonBackground } from "./components/neon-bg";
-import { HomePage } from "./pages/home";
-import { BlogListPage } from "./pages/blog-list";
-import { BlogPostPage } from "./pages/blog-post";
-import { DownloadPage } from "./pages/download";
-
-/**
- * Deep links into the docs SPA that missed a real file (e.g. an unknown slug) land on
- * the site-root 404.html, which boots this landing SPA. Hand them to the docs index —
- * unless we are already at the docs index (landing dev serves index.html for every
- * path, so redirecting to the same URL would reload forever).
- */
-function DocsRedirect() {
- const target = new URL(DOCS_URL, window.location.origin).pathname;
- if (window.location.pathname !== target) {
- window.location.replace(target);
- return null;
- }
- return <Navigate to="/" replace />;
-}
-
-/**
- * Last history entry whose scroll was already handled. Module-level so it survives
- * the locale-keyed remount of the whole tree: switching language re-mounts Layout,
- * and without this guard the navigation effect would re-run (jumping to the hash or
- * to the top) and defeat LocaleScope's scroll preservation.
- */
-let handledLocationKey = "";
-
-function Layout() {
- const { pathname, hash, key } = useLocation();
- // Genuine route change: jump to top; with a hash (e.g. /#quickstart after leaving
- // the blog) scroll to the target once the section is in the DOM. A native #anchor
- // click (a blog TOC entry) also lands here, through popstate. The hash is decoded
- // first: an anchor to a CJK heading arrives percent-encoded.
- useEffect(() => {
- if (key === handledLocationKey) return;
- handledLocationKey = key;
- if (hash) {
- const el = document.getElementById(hashTargetId(hash));
- if (el) {
- el.scrollIntoView();
- return;
- }
- }
- window.scrollTo(0, 0);
- }, [pathname, hash, key]);
-
- return (
- <div className="relative flex min-h-full flex-col">
- <NeonBackground />
- <AnnouncementBar />
- <Nav />
- <main className="flex-1">
- <Outlet />
- </main>
- <Footer />
- </div>
- );
-}
-
-export function AppRouter() {
- const basename = import.meta.env.BASE_URL.replace(/\/+$/, "") || "/";
- return (
- <BrowserRouter basename={basename}>
- <Routes>
- <Route element={<Layout />}>
- <Route index element={<HomePage />} />
- <Route path="/blog" element={<BlogListPage />} />
- <Route path="/blog/:slug" element={<BlogPostPage />} />
- <Route path="/download" element={<DownloadPage />} />
- <Route path="*" element={<Navigate to="/" replace />} />
- </Route>
- {/* Outside Layout: a pure redirect, no nav/footer flash. */}
- <Route path="/docs/*" element={<DocsRedirect />} />
- </Routes>
- </BrowserRouter>
- );
-}
diff --git a/packages/landing/src/sections/benchmark.tsx b/packages/landing/src/sections/benchmark.tsx
deleted file mode 100644
index 5139979a..00000000
--- a/packages/landing/src/sections/benchmark.tsx
+++ /dev/null
@@ -1,321 +0,0 @@
-/**
- * Benchmark section: two suites (complex data analysis + coding tasks), each harness on
- * the model it is normally paired with, rendered in one identical format — three small
- * multiples (accuracy / Tokens / cost, one measure per axis) plus a five-column table of
- * suite totals (framework / model / accuracy % / Tokens M / cost $). Suite specifics
- * (case count, runs, thinking level, timeout, pricing) sit in a footnote under each table.
- * Emphasis form: PenguinHarness wears the brand hue, competitors the de-emphasis
- * gray; per-bar identity comes from logo+name labels, every cap is value-labeled,
- * and the exact table relieves the sub-3:1 gray fills.
- */
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import { HarnessLogo } from "../components/harness-logo";
-import {
- CODE_BENCH,
- DATA_BENCH,
- formatAccuracy,
- formatPct,
- formatTokensM,
- formatUsd,
-} from "../lib/benchmark-data";
-import type { BenchResult } from "../lib/benchmark-data";
-
-/** Bar path: 4px rounded data-end, square at the baseline. */
-function barPath(x: number, w: number, yTop: number, yBase: number): string {
- const r = Math.min(4, Math.max(0, yBase - yTop));
- return [
- `M${x},${yBase}`,
- `V${yTop + r}`,
- `Q${x},${yTop} ${x + r},${yTop}`,
- `H${x + w - r}`,
- `Q${x + w},${yTop} ${x + w},${yTop + r}`,
- `V${yBase}`,
- "Z",
- ].join("");
-}
-
-const VIEW_W = 320;
-const VIEW_H = 210;
-const PLOT_TOP = 28;
-const BASELINE = 168;
-const BAR_W = 24;
-/**
- * Shortest a bar may render. At true scale the cost panels put PenguinHarness at ~1.6px
- * against a 140px plot (the spread is ~70x), which reads as an empty slot rather than a
- * winning series. The floor keeps it visible while still plainly the smallest bar, and
- * every cap carries its exact value.
- */
-const MIN_BAR_H = 12;
-
-function BarPanel({
- title,
- hint,
- rows,
- values,
- format,
-}: {
- title: string;
- hint: string;
- rows: BenchResult[];
- values: number[];
- format: (v: number) => string;
-}) {
- const slot = VIEW_W / rows.length;
- // Zoomed domain: the baseline is NOT forced to zero — it sits below the smallest
- // value by ~60% of the data range, so differences between bars stay visible. The
- // truncation is disclosed by the baseline value label at the axis start.
- const dataMax = Math.max(...values);
- const dataMin = Math.min(...values);
- const range = dataMax - dataMin || dataMax || 1;
- const lo = Math.max(0, dataMin - range * 0.6);
- const hi = dataMax + range * 0.25;
- return (
- <figure className="px-4 py-5 sm:px-5">
- <figcaption className="flex items-baseline justify-between gap-2">
- <span className="text-sm font-semibold tracking-tight">{title}</span>
- <span className="text-xs text-gray-400 dark:text-gray-500">{hint}</span>
- </figcaption>
- <svg
- viewBox={`0 0 ${VIEW_W} ${VIEW_H}`}
- className="mt-2 w-full"
- role="img"
- aria-label={`${title}: ${rows.map((r, i) => `${r.framework} ${format(values[i] ?? 0)}`).join(", ")}`}
- >
- {rows.map((row, i) => {
- const v = values[i] ?? 0;
- const h = Math.max(MIN_BAR_H, ((v - lo) / (hi - lo)) * (BASELINE - PLOT_TOP));
- const yTop = BASELINE - h;
- const cx = slot * i + slot / 2;
- return (
- <g key={row.framework} className="transition-opacity hover:opacity-80">
- <title>{`${row.framework} · ${format(v)}`}</title>
- <path
- d={barPath(cx - BAR_W / 2, BAR_W, yTop, BASELINE)}
- className={
- row.emphasized
- ? "fill-brand-600 dark:fill-brand-400"
- : "fill-gray-400 dark:fill-gray-600"
- }
- />
- {/* Value on the cap — text tokens, never the series color. */}
- <text
- x={cx}
- y={yTop - 8}
- textAnchor="middle"
- className="fill-gray-900 text-[13px] font-semibold dark:fill-gray-100"
- >
- {format(v)}
- </text>
- {/* Identity label: brand mark + name, centered under the bar. */}
- <foreignObject x={slot * i} y={BASELINE + 8} width={slot} height={30}>
- <div
- className={`flex items-center justify-center gap-0.5 text-[10px] leading-tight whitespace-nowrap ${
- row.emphasized
- ? "font-semibold text-gray-900 dark:text-gray-100"
- : "text-gray-500 dark:text-gray-400"
- }`}
- >
- <HarnessLogo kind={row.kind} className="h-3 w-3 shrink-0" />
- <span>{row.framework}</span>
- </div>
- </foreignObject>
- </g>
- );
- })}
- <line
- x1="4"
- x2={VIEW_W - 4}
- y1={BASELINE}
- y2={BASELINE}
- className="stroke-gray-200 dark:stroke-gray-800"
- strokeWidth="1"
- />
- {/* Baseline value: discloses that the axis starts above zero. */}
- <text
- x={5}
- y={BASELINE - 5}
- textAnchor="start"
- className="fill-gray-400 text-[9px] tabular-nums dark:fill-gray-500"
- >
- {format(lo)}
- </text>
- </svg>
- </figure>
- );
-}
-
-const TH = "px-3 py-2.5 font-medium whitespace-nowrap";
-
-/**
- * One suite, one format: header row + three panels + the unified five-column table
- * + a small footnote carrying the run settings. Only numbers and names differ
- * between suites (and the decimal precision they were published at).
- */
-function SuiteBlock({
- title,
- desc,
- rows,
- accDp,
- tokenDp,
- costDp,
- footnote,
-}: {
- title: string;
- desc: string;
- rows: BenchResult[];
- accDp: number;
- tokenDp: number;
- costDp: number;
- footnote: string;
-}) {
- const rowCls = (emphasized?: boolean) =>
- `border-b border-gray-100 last:border-0 dark:border-gray-800/60 ${
- emphasized ? "bg-brand-25 dark:bg-brand-950/40" : ""
- }`;
- return (
- <div>
- <div className="mb-5">
- <h3 className="text-xl font-semibold tracking-tight">{title}</h3>
- <p className="mt-1 text-sm text-gray-600 dark:text-gray-400">{desc}</p>
- </div>
- <div className="grid divide-y divide-gray-100 rounded-xl border border-gray-200 bg-white sm:grid-cols-3 sm:divide-x sm:divide-y-0 dark:divide-gray-800 dark:border-gray-800 dark:bg-gray-900">
- <BarPanel
- title={S.benchmark.dimScore}
- hint={`↑ ${S.benchmark.higherBetter}`}
- rows={rows}
- values={rows.map((r) => r.accuracyPct)}
- format={formatPct}
- />
- <BarPanel
- title={S.benchmark.dimTokens}
- hint={`↓ ${S.benchmark.lowerBetter}`}
- rows={rows}
- values={rows.map((r) => r.tokensM)}
- format={(v) => formatTokensM(v, tokenDp)}
- />
- <BarPanel
- title={S.benchmark.dimCost}
- hint={`↓ ${S.benchmark.lowerBetter}`}
- rows={rows}
- values={rows.map((r) => r.costUsd)}
- format={(v) => formatUsd(v, costDp)}
- />
- </div>
- <div className="mt-5 grid gap-2 sm:hidden">
- {rows.map((r) => (
- <article
- key={r.framework}
- className={`rounded-xl border p-4 ${
- r.emphasized
- ? "border-brand-200 bg-brand-25 dark:border-brand-800 dark:bg-brand-950/40"
- : "border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900"
- }`}
- >
- <div className="flex min-w-0 items-center gap-2">
- <HarnessLogo kind={r.kind} className="h-4 w-4 shrink-0" />
- <strong className="truncate text-sm">{r.framework}</strong>
- <span className="ml-auto truncate text-xs text-gray-500 dark:text-gray-400">
- {r.model}
- </span>
- </div>
- <dl className="mt-3 grid grid-cols-3 gap-2 text-center">
- <div>
- <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">
- {S.benchmark.colAccuracy}
- </dt>
- <dd className="mt-0.5 text-sm font-semibold tabular-nums">
- {formatAccuracy(r.accuracyPct, accDp)}
- </dd>
- </div>
- <div>
- <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">
- {S.benchmark.colTokens}
- </dt>
- <dd className="mt-0.5 text-sm font-semibold tabular-nums">
- {r.tokensM.toFixed(tokenDp)}
- </dd>
- </div>
- <div>
- <dt className="text-[10px] leading-4 text-gray-500 dark:text-gray-400">
- {S.benchmark.colCost}
- </dt>
- <dd className="mt-0.5 text-sm font-semibold tabular-nums">
- {r.costUsd.toFixed(costDp)}
- </dd>
- </div>
- </dl>
- </article>
- ))}
- </div>
- <div className="mt-5 hidden overflow-x-auto rounded-xl border border-gray-200 bg-white sm:block dark:border-gray-800 dark:bg-gray-900">
- <table className="w-full min-w-[38rem] text-sm">
- <thead>
- <tr className="border-b border-gray-200 text-left text-xs text-gray-500 dark:border-gray-800 dark:text-gray-400">
- <th className={TH}>{S.benchmark.colFramework}</th>
- <th className={TH}>{S.benchmark.colModel}</th>
- <th className={`${TH} text-right`}>{S.benchmark.colAccuracy}</th>
- <th className={`${TH} text-right`}>{S.benchmark.colTokens}</th>
- <th className={`${TH} text-right`}>{S.benchmark.colCost}</th>
- </tr>
- </thead>
- <tbody>
- {rows.map((r) => (
- <tr key={r.framework} className={rowCls(r.emphasized)}>
- <td className="px-3 py-2.5">
- <span className="inline-flex items-center gap-2 font-medium whitespace-nowrap">
- <HarnessLogo kind={r.kind} className="h-3.5 w-3.5 shrink-0" />
- {r.framework}
- </span>
- </td>
- <td className="px-3 py-2.5 whitespace-nowrap text-gray-600 dark:text-gray-400">
- {r.model}
- </td>
- <td className="px-3 py-2.5 text-right tabular-nums">
- {formatAccuracy(r.accuracyPct, accDp)}
- </td>
- <td className="px-3 py-2.5 text-right tabular-nums">
- {r.tokensM.toFixed(tokenDp)}
- </td>
- <td className="px-3 py-2.5 text-right tabular-nums">{r.costUsd.toFixed(costDp)}</td>
- </tr>
- ))}
- </tbody>
- </table>
- </div>
- <p className="mt-3 text-xs leading-5 text-gray-500 dark:text-gray-400">{footnote}</p>
- </div>
- );
-}
-
-export function Benchmark() {
- return (
- <Section
- id="benchmark"
- eyebrow={S.benchmark.eyebrow}
- title={S.benchmark.title}
- subtitle={S.benchmark.subtitle}
- >
- <div className="mx-auto flex max-w-4xl flex-col gap-14">
- <SuiteBlock
- title={S.benchmark.dataTitle}
- desc={S.benchmark.dataDesc}
- rows={DATA_BENCH}
- accDp={2}
- tokenDp={2}
- costDp={2}
- footnote={S.benchmark.dataFootnote}
- />
- <SuiteBlock
- title={S.benchmark.codeTitle}
- desc={S.benchmark.codeDesc}
- rows={CODE_BENCH}
- accDp={2}
- tokenDp={2}
- costDp={2}
- footnote={S.benchmark.codeFootnote}
- />
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/cases.tsx b/packages/landing/src/sections/cases.tsx
deleted file mode 100644
index db15d39f..00000000
--- a/packages/landing/src/sections/cases.tsx
+++ /dev/null
@@ -1,142 +0,0 @@
-/**
- * Use-case gallery as switchable tabs — the RAG docs expert and the penguin sled
- * game under their condensed one-sentence prompts. Video entries use a matching
- * PenguinHarness run as their poster; still-only entries show the finished product.
- * Tab order follows S.cases.tabs; CASE_STILLS is index-aligned with it. A tab may carry a `cost`
- * line (the RAG one does) — an emphasized token-cost hook under the caption.
- */
-import { useState } from "react";
-import { S } from "../lib/strings";
-import { useLocale } from "../state/locale";
-import type { Locale } from "../state/locale";
-import { Section } from "../components/section";
-import { BrowserFrame } from "../components/browser-frame";
-import { demoVideoUrl } from "../lib/links";
-import chatZhLight from "../assets/shots/chat-zh-light.webp";
-import chatZhDark from "../assets/shots/chat-zh-dark.webp";
-import chatEnLight from "../assets/shots/chat-en-light.webp";
-import chatEnDark from "../assets/shots/chat-en-dark.webp";
-import gameZhLight from "../assets/game-zh-light.webp";
-import gameZhDark from "../assets/game-zh-dark.webp";
-import gameEnLight from "../assets/game-en-light.webp";
-import gameEnDark from "../assets/game-en-dark.webp";
-
-type ShotSet = Record<Locale, { light: string; dark: string }>;
-
-/**
- * Demo recording for a case, index-aligned with S.cases.tabs; null where the finished
- * product is still shown as a still. The community-hosted file only downloads on play
- * (preload="none"), and a matching PenguinHarness run doubles as the poster — so a video
- * tab costs a visitor exactly what an image tab already did until they press play.
- */
-const CASE_VIDEOS: Array<Record<Locale, string> | null> = [
- { zh: demoVideoUrl("rag_zh"), en: demoVideoUrl("rag_en") },
- null,
-];
-
-/** Theme- and locale-matched posters or stills, index-aligned with S.cases.tabs. */
-const CASE_STILLS: ShotSet[] = [
- {
- zh: { light: chatZhLight, dark: chatZhDark },
- en: { light: chatEnLight, dark: chatEnDark },
- },
- {
- zh: { light: gameZhLight, dark: gameZhDark },
- en: { light: gameEnLight, dark: gameEnDark },
- },
-];
-
-export function Cases() {
- const { locale } = useLocale();
- const tabs = S.cases.tabs;
- const [active, setActive] = useState(0);
- const tab = tabs[active] ?? tabs[0]!;
- const shots = (CASE_STILLS[active] ?? CASE_STILLS[0]!)[locale];
- const video = (CASE_VIDEOS[active] ?? null)?.[locale];
-
- return (
- <Section id="cases" eyebrow={S.cases.eyebrow} title={S.cases.title} subtitle={S.cases.subtitle}>
- <div
- role="tablist"
- aria-label={S.cases.eyebrow}
- className="flex flex-wrap justify-center gap-2"
- >
- {tabs.map((t, i) => (
- <button
- key={t.label}
- type="button"
- role="tab"
- aria-selected={i === active}
- onClick={() => setActive(i)}
- className={`rounded-full border px-3.5 py-1.5 text-sm transition-colors ${
- i === active
- ? "border-gray-900 bg-gray-900 text-white dark:border-gray-100 dark:bg-gray-100 dark:text-gray-900"
- : "border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-gray-800 dark:text-gray-400 dark:hover:bg-gray-900"
- }`}
- >
- {t.label}
- </button>
- ))}
- </div>
-
- <figure role="tabpanel" className="anim-fade mx-auto mt-8 max-w-5xl" key={tab.label}>
- <div className="mx-auto mb-5 w-full rounded-xl border border-gray-200 bg-gray-50 px-4 py-2.5 text-left sm:w-fit sm:max-w-full sm:overflow-x-auto dark:border-gray-800 dark:bg-gray-900">
- <code className="font-mono text-[12px] leading-5 whitespace-pre-wrap text-gray-800 sm:text-[13px] sm:whitespace-nowrap dark:text-gray-200">
- <span className="mr-2 text-gray-400 select-none dark:text-gray-500">&gt;</span>
- {tab.prompt}
- </code>
- </div>
- <BrowserFrame>
- {/* Light/dark are two elements rather than one with a swapped source: a <video>
- takes a single poster, and the theme-matched still is what stands in for the
- recording before play. Only the visible one's poster is ever fetched. */}
- {video ? (
- <>
- <video
- src={video}
- poster={shots.light}
- controls
- preload="none"
- playsInline
- aria-label={tab.caption}
- className="block h-auto w-full bg-gray-950 dark:hidden"
- />
- <video
- src={video}
- poster={shots.dark}
- controls
- preload="none"
- playsInline
- aria-label={tab.caption}
- className="hidden h-auto w-full bg-gray-950 dark:block"
- />
- </>
- ) : (
- <>
- <img
- src={shots.light}
- alt={tab.caption}
- loading="lazy"
- className="block h-auto w-full dark:hidden"
- />
- <img
- src={shots.dark}
- alt={tab.caption}
- loading="lazy"
- className="hidden h-auto w-full dark:block"
- />
- </>
- )}
- </BrowserFrame>
- <figcaption className="mt-3 text-center text-xs text-gray-500 dark:text-gray-400">
- {tab.caption}
- </figcaption>
- {tab.cost && (
- <p className="mt-2 text-center text-[13px] font-semibold text-brand-700 dark:text-brand-300">
- {tab.cost}
- </p>
- )}
- </figure>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/community.tsx b/packages/landing/src/sections/community.tsx
deleted file mode 100644
index f1c8126e..00000000
--- a/packages/landing/src/sections/community.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Community links, closing the page: Discord / X / WeChat group / GitHub as
- * outbound cards — discuss, follow, and build with us.
- */
-import { S } from "../lib/strings";
-import { REPO_URL } from "../lib/links";
-import { Section } from "../components/section";
-import { ArrowRightIcon } from "../components/icons";
-
-const HREFS = {
- discord: "https://discord.gg/eFHKqqcU3D",
- x: "https://x.com/code_hiyouga",
- wechat: "https://github.com/Prism-Shadow/penguin-harness-community/blob/main/wechat/group.jpg",
- github: REPO_URL,
-} as const;
-
-export function Community() {
- const items = (Object.keys(HREFS) as Array<keyof typeof HREFS>).map((key) => ({
- key,
- href: HREFS[key],
- ...S.community.items[key],
- }));
- return (
- <Section
- id="community"
- eyebrow={S.community.eyebrow}
- title={S.community.title}
- subtitle={S.community.subtitle}
- >
- <div className="mx-auto grid max-w-4xl gap-4 sm:grid-cols-2 lg:grid-cols-4">
- {items.map((item) => (
- <a
- key={item.key}
- href={item.href}
- target="_blank"
- rel="noreferrer"
- className="group rounded-xl border border-gray-200 bg-white p-5 transition-colors hover:border-gray-300 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
- >
- <p className="flex items-center justify-between text-[15px] font-semibold tracking-tight">
- {item.name}
- <ArrowRightIcon className="h-4 w-4 text-gray-400 transition-transform group-hover:translate-x-0.5 group-hover:text-gray-600 dark:group-hover:text-gray-300" />
- </p>
- <p className="mt-1.5 text-sm leading-6 text-gray-600 dark:text-gray-400">{item.desc}</p>
- </a>
- ))}
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/compare.tsx b/packages/landing/src/sections/compare.tsx
deleted file mode 100644
index 27013011..00000000
--- a/packages/landing/src/sections/compare.tsx
+++ /dev/null
@@ -1,135 +0,0 @@
-/**
- * LangChain comparison: the 1x/100x story as two cards with a looping
- * "construction" animation — on a shared cycle, the LangChain side lays one
- * block at a time (still unfinished when the cycle resets) while the
- * PenguinHarness side raises a whole skyline almost instantly and holds it.
- * Reduced-motion users see both skylines complete.
- */
-import { useEffect, useState, type CSSProperties, type ReactNode } from "react";
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-
-/** Shared build cycle (s): both sides reset together so the pace gap is obvious. */
-const CYCLE_S = 7.2;
-
-function Block({
- delay,
- className,
-}: {
- /** Seconds into the cycle when this block lands (applied as a negative delay). */
- delay: number;
- className: string;
-}) {
- return (
- <span
- className={`anim-block rounded-[3px] ${className}`}
- style={{ "--land-delay": `${delay}s` } as CSSProperties}
- />
- );
-}
-
-/** One slow tower: a block every ~1.15s — the cycle ends before it tops out. */
-function SlowBuild() {
- return (
- <div aria-hidden="true" className="flex h-28 items-end justify-center">
- <span className="flex flex-col-reverse gap-1">
- {Array.from({ length: 6 }, (_, i) => (
- <Block key={i} delay={0.4 + i * 1.15} className="h-3 w-10 bg-gray-300 dark:bg-gray-600" />
- ))}
- </span>
- </div>
- );
-}
-
-/** A skyline of towers raised in a burst: every block lands within ~1.6s. */
-function FastBuild() {
- const towers = [7, 9, 6, 8];
- return (
- <div aria-hidden="true" className="flex h-28 items-end justify-center gap-1.5">
- {towers.map((height, k) => (
- <span key={k} className="flex flex-col-reverse gap-1">
- {Array.from({ length: height }, (_, j) => (
- <Block
- key={j}
- delay={0.4 + k * 0.1 + j * 0.14}
- className="h-2 w-7 bg-brand-500 dark:bg-brand-400"
- />
- ))}
- </span>
- ))}
- </div>
- );
-}
-
-function CompareCard({
- name,
- speed,
- mode,
- note,
- emphasized = false,
- children,
-}: {
- name: string;
- speed: string;
- mode: string;
- note: string;
- emphasized?: boolean;
- children: ReactNode;
-}) {
- return (
- <article
- className={`rounded-xl border p-6 text-center sm:p-8 ${
- emphasized
- ? "border-brand-300 bg-brand-25 dark:border-brand-800 dark:bg-brand-950/40"
- : "border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900"
- }`}
- >
- <p
- className={`text-sm font-semibold tracking-tight ${
- emphasized ? "text-brand-700 dark:text-brand-300" : "text-gray-500 dark:text-gray-400"
- }`}
- >
- {name}
- </p>
- <p
- className={`mt-2 text-4xl font-semibold tracking-tight tabular-nums sm:text-5xl ${
- emphasized ? "text-brand-600 dark:text-brand-300" : "text-gray-400 dark:text-gray-600"
- }`}
- >
- {speed}
- </p>
- <div className="mt-5">{children}</div>
- <p className="mt-5 text-[15px] font-medium text-gray-900 dark:text-gray-100">{mode}</p>
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">{note}</p>
- </article>
- );
-}
-
-export function Compare() {
- const [cycle, setCycle] = useState(0);
-
- // Remount both skylines together: every child begins hidden, then lands once
- // at its positive delay. A shared reset keeps the 1x/100x pace comparison aligned.
- useEffect(() => {
- const timer = window.setInterval(() => setCycle((value) => value + 1), CYCLE_S * 1000);
- return () => window.clearInterval(timer);
- }, []);
-
- return (
- <Section
- id="compare"
- eyebrow={S.compare.eyebrow}
- title={S.compare.title}
- subtitle={S.compare.subtitle}
- >
- <div className="mx-auto grid max-w-4xl gap-5 sm:grid-cols-2">
- <CompareCard {...S.compare.langchain}>
- <SlowBuild key={`slow-${cycle}`} />
- </CompareCard>
- <CompareCard {...S.compare.penguin} emphasized>
- <FastBuild key={`fast-${cycle}`} />
- </CompareCard>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/contract.tsx b/packages/landing/src/sections/contract.tsx
deleted file mode 100644
index fb772511..00000000
--- a/packages/landing/src/sections/contract.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- * CONTRACT.md: the signature section — the "X first" principles that keep
- * self-evolution stable, rendered as a Markdown file inside a file-window card
- * with a copy button that yields the underlying Markdown verbatim.
- * High-level covenant only; implementation detail stays out of the landing page.
- */
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import { CopyButton } from "../components/copy-button";
-
-/** The card rendered as real Markdown (what the copy button places on the clipboard). */
-function contractMarkdown(): string {
- return [
- "# CONTRACT.md",
- "",
- `> ${S.contract.intro}`,
- "",
- ...S.contract.items.map((item) => `- **${item.term}** — ${item.text}`),
- "",
- `> ${S.contract.outro}`,
- "",
- ].join("\n");
-}
-
-export function Contract() {
- return (
- <Section
- id="contract"
- eyebrow={S.contract.eyebrow}
- title={S.contract.title}
- subtitle={S.contract.subtitle}
- >
- <div className="mx-auto max-w-3xl overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900">
- {/* File chrome */}
- <div className="flex items-center gap-3 border-b border-gray-200 py-2 pr-2.5 pl-4 dark:border-gray-800">
- <span className="flex gap-1.5" aria-hidden="true">
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- <span className="h-2.5 w-2.5 rounded-full bg-gray-300 dark:bg-gray-700" />
- </span>
- <span className="min-w-0 flex-1 truncate font-mono text-xs text-gray-500 dark:text-gray-400">
- CONTRACT.md
- </span>
- <CopyButton text={contractMarkdown()} />
- </div>
-
- {/* Markdown-flavored body */}
- <div className="px-5 py-6 font-mono text-[13px] leading-7 sm:px-8">
- <p className="text-gray-400 dark:text-gray-500">
- <span className="text-brand-600 dark:text-brand-300"># </span>
- <span className="font-semibold text-gray-900 dark:text-gray-100">CONTRACT.md</span>
- </p>
- <p className="mt-3 border-l-2 border-gray-200 pl-3 text-gray-500 italic dark:border-gray-700 dark:text-gray-400">
- <span className="mr-1 text-gray-300 select-none dark:text-gray-600">&gt;</span>
- {S.contract.intro}
- </p>
- <ul className="mt-5 space-y-3">
- {S.contract.items.map((item) => (
- <li key={item.term} className="flex gap-2.5">
- <span className="text-brand-600 select-none dark:text-brand-300" aria-hidden="true">
- -
- </span>
- <p className="text-gray-600 dark:text-gray-400">
- <span className="font-semibold text-gray-900 dark:text-gray-100">
- **{item.term}**
- </span>
- <span className="mx-1.5 text-gray-300 dark:text-gray-600">—</span>
- {item.text}
- </p>
- </li>
- ))}
- </ul>
- <p className="mt-6 text-gray-400 italic dark:text-gray-500">
- <span className="mr-1 select-none">&gt;</span>
- {S.contract.outro}
- </p>
- </div>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/cta.tsx b/packages/landing/src/sections/cta.tsx
deleted file mode 100644
index 2c86b5f6..00000000
--- a/packages/landing/src/sections/cta.tsx
+++ /dev/null
@@ -1,38 +0,0 @@
-/** Closing call-to-action: the productivity-engine pitch + download / quick start / docs buttons. */
-import { Link } from "react-router";
-import { S } from "../lib/strings";
-import { DOCS_URL } from "../lib/links";
-import { Section } from "../components/section";
-import { DownloadIcon } from "../components/icons";
-
-export function Cta() {
- const secondary =
- "inline-flex h-11 items-center rounded-lg border border-gray-200 bg-white px-5 text-sm font-medium text-gray-900 transition-colors hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:hover:bg-gray-800";
- return (
- <Section>
- <div className="mx-auto max-w-3xl rounded-2xl border border-gray-200 bg-gray-50/60 px-6 py-12 text-center sm:px-12 dark:border-gray-800 dark:bg-gray-900/40">
- <h2 className="text-2xl font-semibold tracking-tight text-balance sm:text-3xl">
- {S.cta.title}
- </h2>
- <p className="mx-auto mt-4 max-w-xl text-sm leading-6 text-pretty text-gray-600 dark:text-gray-400">
- {S.cta.subtitle}
- </p>
- <div className="mt-7 flex flex-wrap items-center justify-center gap-3">
- <Link
- to="/download"
- className="inline-flex h-11 items-center gap-2 rounded-lg bg-gray-900 px-5 text-sm font-medium text-white transition-colors hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white"
- >
- <DownloadIcon className="h-4 w-4" />
- {S.cta.download}
- </Link>
- <Link to="/#quickstart" className={secondary}>
- {S.cta.quickstart}
- </Link>
- <a href={DOCS_URL} className={secondary}>
- {S.cta.docs}
- </a>
- </div>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/features.tsx b/packages/landing/src/sections/features.tsx
deleted file mode 100644
index db8c87e1..00000000
--- a/packages/landing/src/sections/features.tsx
+++ /dev/null
@@ -1,176 +0,0 @@
-/**
- * Feature section in two layers: the three features with real captures form
- * switchable tabs, while the remaining capabilities stay visible in a card grid.
- */
-import { useState } from "react";
-import { S } from "../lib/strings";
-import { useLocale } from "../state/locale";
-import type { Locale } from "../state/locale";
-import { Section } from "../components/section";
-import { BrowserFrame } from "../components/browser-frame";
-import {
- ActivityIcon,
- BarChartIcon,
- BotIcon,
- ClockIcon,
- MessageSquareIcon,
- PieChartIcon,
- ShareIcon,
- SparklesIcon,
- UsersIcon,
-} from "../components/icons";
-import chatZhLight from "../assets/shots/chat-zh-light.webp";
-import chatZhDark from "../assets/shots/chat-zh-dark.webp";
-import chatEnLight from "../assets/shots/chat-en-light.webp";
-import chatEnDark from "../assets/shots/chat-en-dark.webp";
-import tracesZhLight from "../assets/shots/traces-zh-light.webp";
-import tracesZhDark from "../assets/shots/traces-zh-dark.webp";
-import tracesEnLight from "../assets/shots/traces-en-light.webp";
-import tracesEnDark from "../assets/shots/traces-en-dark.webp";
-import benchmarkZhLight from "../assets/shots/benchmark-zh-light.webp";
-import benchmarkZhDark from "../assets/shots/benchmark-zh-dark.webp";
-import benchmarkEnLight from "../assets/shots/benchmark-en-light.webp";
-import benchmarkEnDark from "../assets/shots/benchmark-en-dark.webp";
-
-type ShotSet = Record<Locale, { light: string; dark: string }>;
-
-const SHOTS: Record<"chat" | "traces" | "benchmark", ShotSet> = {
- chat: {
- zh: { light: chatZhLight, dark: chatZhDark },
- en: { light: chatEnLight, dark: chatEnDark },
- },
- traces: {
- zh: { light: tracesZhLight, dark: tracesZhDark },
- en: { light: tracesEnLight, dark: tracesEnDark },
- },
- benchmark: {
- zh: { light: benchmarkZhLight, dark: benchmarkZhDark },
- en: { light: benchmarkEnLight, dark: benchmarkEnDark },
- },
-};
-
-function ThemedShot({ set, alt }: { set: ShotSet; alt: string }) {
- const { locale } = useLocale();
- const pair = set[locale];
- // Explicit intrinsic size (all shots are 1920x1200): reserves layout before the
- // image loads, so switching tabs doesn't shift the page.
- return (
- <>
- <img
- src={pair.light}
- alt={alt}
- width={1920}
- height={1200}
- loading="lazy"
- className="block h-auto w-full dark:hidden"
- />
- <img
- src={pair.dark}
- alt={alt}
- width={1920}
- height={1200}
- loading="lazy"
- className="hidden h-auto w-full dark:block"
- />
- </>
- );
-}
-
-/** Item indexes with a real capture, in tab order. */
-const SHOT_TABS: Array<{
- index: number;
- shot: keyof typeof SHOTS;
- icon: typeof MessageSquareIcon;
-}> = [
- { index: 0, shot: "chat", icon: MessageSquareIcon },
- { index: 6, shot: "traces", icon: ActivityIcon },
- { index: 7, shot: "benchmark", icon: BarChartIcon },
-];
-
-/** Capabilities without a dedicated screenshot, in the source-copy order. */
-const PLAIN_FEATURES = [
- { index: 1, icon: BotIcon },
- { index: 2, icon: SparklesIcon },
- { index: 3, icon: ClockIcon },
- { index: 4, icon: ShareIcon },
- { index: 5, icon: PieChartIcon },
- { index: 8, icon: UsersIcon },
-];
-
-export function Features() {
- const [active, setActive] = useState(0);
- const tab = SHOT_TABS[active] ?? SHOT_TABS[0]!;
- const item = S.features.items[tab.index]!;
-
- return (
- <Section
- id="features"
- eyebrow={S.features.eyebrow}
- title={S.features.title}
- subtitle={S.features.subtitle}
- >
- <div
- role="tablist"
- aria-label={S.features.eyebrow}
- className="flex flex-wrap justify-center gap-2"
- >
- {SHOT_TABS.map((t, i) => {
- const tabItem = S.features.items[t.index]!;
- const TabIcon = t.icon;
- const activeTab = i === active;
- return (
- <button
- key={t.shot}
- type="button"
- role="tab"
- aria-selected={activeTab}
- onClick={() => setActive(i)}
- className={`inline-flex items-center gap-1.5 rounded-full border px-3.5 py-1.5 text-sm transition-colors ${
- activeTab
- ? "border-gray-900 bg-gray-900 text-white dark:border-gray-100 dark:bg-gray-100 dark:text-gray-900"
- : "border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-gray-800 dark:text-gray-400 dark:hover:bg-gray-900"
- }`}
- >
- <TabIcon className="h-3.5 w-3.5 shrink-0" />
- {tabItem.title}
- </button>
- );
- })}
- </div>
-
- <div role="tabpanel" className="anim-fade mx-auto mt-6 max-w-5xl" key={tab.shot}>
- {/* Centered feature text above the shot — the tab chip already names it. */}
- <p className="mx-auto mb-5 max-w-2xl text-center text-sm leading-6 text-gray-600 dark:text-gray-400">
- {item.desc}
- </p>
- <BrowserFrame>
- <ThemedShot set={SHOTS[tab.shot]} alt={item.title} />
- </BrowserFrame>
- </div>
-
- <div className="mt-10 grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
- {PLAIN_FEATURES.map(({ index, icon: Icon }) => {
- const feature = S.features.items[index]!;
- return (
- <article
- key={feature.title}
- className="relative overflow-hidden rounded-xl border border-gray-200 bg-white p-5 transition-colors hover:border-gray-300 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
- >
- <Icon
- strokeWidth={1.25}
- className="pointer-events-none absolute -right-5 -bottom-5 h-26 w-26 text-gray-100 dark:text-gray-800"
- />
- <h3 className="relative text-[15px] font-semibold tracking-tight">{feature.title}</h3>
- <p className="relative mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {feature.desc}
- </p>
- </article>
- );
- })}
- <article className="flex items-center justify-center rounded-xl border border-dashed border-gray-300 p-5 text-sm text-gray-400 dark:border-gray-700 dark:text-gray-500">
- {S.features.more}
- </article>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/hero.tsx b/packages/landing/src/sections/hero.tsx
deleted file mode 100644
index 2a6de894..00000000
--- a/packages/landing/src/sections/hero.tsx
+++ /dev/null
@@ -1,129 +0,0 @@
-/** Product-first hero with two direct installation paths. */
-import { Link } from "react-router";
-import { S } from "../lib/strings";
-import { RELEASE_VERSION } from "../lib/version";
-import { DownloadIcon, ModelProviderLogo, TerminalIcon } from "../components/icons";
-
-const MODEL_PROVIDERS = [
- "openai",
- "anthropic",
- "gemini",
- "deepseek",
- "zai",
- "moonshot",
- "qwen",
- "openrouter",
-] as const;
-
-export function Hero() {
- return (
- <section className="relative overflow-hidden">
- <div className="hero-dots pointer-events-none absolute inset-0" aria-hidden="true" />
- <div className="relative mx-auto max-w-6xl px-4 pt-12 pb-12 text-center sm:px-6 sm:pt-24 sm:pb-14">
- <h1 className="anim-rise flex items-center justify-center gap-2.5 sm:gap-3.5">
- <img
- src={`${import.meta.env.BASE_URL}penguin-logo.svg`}
- alt=""
- className="h-12 w-12 sm:h-16 sm:w-16"
- />
- <span className="text-[1.7rem] font-semibold tracking-tight sm:text-4xl">
- {S.siteName}
- </span>
- </h1>
-
- <p
- className="hero-positioning anim-rise mx-auto mt-6 leading-tight font-semibold tracking-[-0.035em] text-balance"
- style={{ animationDelay: "70ms" }}
- >
- {S.hero.platformLead}
- <span className="text-brand-600 dark:text-brand-300">
- <span className="sr-only">{S.hero.platformActions.join(" / ")}</span>
- <span className="hero-rotator" aria-hidden="true">
- {S.hero.platformActions.map((action) => (
- <span key={action} className="hero-rotator-word">
- {action}
- </span>
- ))}
- </span>
- </span>
- {S.hero.platformTail}
- </p>
-
- <p
- className="hero-automation anim-rise mt-5 leading-6 text-balance text-gray-600 sm:leading-8 dark:text-gray-300"
- style={{ animationDelay: "120ms" }}
- >
- {S.hero.automationLead}
- {S.hero.automationActions.map((action, index) => (
- <span key={action}>
- {index > 0 && <span className="font-normal"> · </span>}
- <strong className="font-semibold text-gray-900 dark:text-gray-100">{action}</strong>
- </span>
- ))}{" "}
- {S.hero.automationTail}
- </p>
-
- <div
- className="anim-rise mt-7 flex flex-wrap items-center justify-center gap-3"
- style={{ animationDelay: "170ms" }}
- >
- <Link
- to="/download"
- className="inline-flex h-11 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-gray-900 px-5 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white"
- >
- <DownloadIcon className="h-4 w-4" />
- <span>{S.hero.downloadCta}</span>
- <span className="border-l border-white/25 pl-2 text-xs font-medium text-white/70 tabular-nums dark:border-gray-900/20 dark:text-gray-900/60">
- {RELEASE_VERSION}
- </span>
- </Link>
- <Link
- to="/#quickstart-install"
- className="inline-flex h-11 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-gray-200 bg-white px-5 text-sm font-semibold text-gray-900 shadow-sm transition-colors hover:bg-gray-50 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 dark:hover:bg-gray-800"
- >
- <TerminalIcon className="h-4 w-4" />
- {S.hero.cliInstall}
- </Link>
- </div>
-
- <dl
- className="anim-rise mx-auto mt-10 grid max-w-6xl grid-cols-2 gap-x-4 gap-y-7 sm:mt-12 sm:gap-x-6 sm:gap-y-8 xl:grid-cols-4 xl:gap-x-2"
- style={{ animationDelay: "250ms" }}
- >
- {S.hero.stats.map((stat) => (
- <div key={stat.value} className="min-w-0">
- <dt className="mx-auto mt-1 max-w-56 text-xs leading-5 text-gray-500 dark:text-gray-400">
- {stat.label}
- </dt>
- <dd className="hero-stat-value mx-auto mt-0.5 max-w-64 text-[19px] leading-tight font-semibold tracking-tight text-balance text-gray-900 sm:text-2xl xl:max-w-none dark:text-gray-100">
- {stat.value}
- </dd>
- </div>
- ))}
- </dl>
-
- <div
- className="anim-rise mx-auto mt-12 flex max-w-5xl flex-wrap items-center justify-center gap-x-5 gap-y-4 text-center text-sm sm:gap-x-6"
- style={{ animationDelay: "300ms" }}
- >
- <span className="mr-1 basis-full text-xs font-semibold tracking-wide text-gray-400 uppercase sm:basis-auto dark:text-gray-500">
- {S.hero.supportedModelsLabel}
- </span>
- {MODEL_PROVIDERS.map((provider, index) => (
- <span
- key={provider}
- aria-label={S.hero.supportedModels[index]}
- title={S.hero.supportedModels[index]}
- className="inline-flex items-center text-gray-700 dark:text-gray-300"
- >
- <ModelProviderLogo provider={provider} className="h-6 w-6" />
- </span>
- ))}
- <span className="basis-full whitespace-nowrap font-medium text-gray-400 sm:basis-auto dark:text-gray-500">
- {S.hero.supportedModelsMore}
- </span>
- </div>
- </div>
- </section>
- );
-}
diff --git a/packages/landing/src/sections/pillars.tsx b/packages/landing/src/sections/pillars.tsx
deleted file mode 100644
index 8d204eb1..00000000
--- a/packages/landing/src/sections/pillars.tsx
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * Three pillars, introduced by a radiating diagram: PenguinHarness fans out into
- * Penguin Message / Penguin SDK / Penguin Skills, and each concept extends into one
- * pillar card below. Arrow paths carry slow-moving dots (SMIL animateMotion); the
- * diagram is hidden on small screens where the three columns stack.
- */
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import { BotIcon, FeatherIcon, RefreshIcon } from "../components/icons";
-
-const ICONS = [FeatherIcon, BotIcon, RefreshIcon];
-
-/** Fan paths from the root's bottom edge to each concept chip (also the dot tracks). */
-const FAN_PATHS = [
- "M322,58 C260,92 190,102 132,120",
- "M360,58 L360,120",
- "M398,58 C460,92 530,102 588,120",
-];
-/** Short connectors from each concept chip into its pillar card below. */
-const DROP_PATHS = ["M120,164 L120,198", "M360,164 L360,198", "M600,164 L600,198"];
-
-function FlowDot({ path, dur, begin }: { path: string; dur: string; begin: string }) {
- // Same color as the arrow strokes so the dot reads as flow on the line, not an accent.
- return (
- <circle r="1.5" className="fill-gray-300 dark:fill-gray-600">
- {/* Stop at 90% of the path so the dot never rides over the arrowhead. */}
- <animateMotion
- dur={dur}
- begin={begin}
- repeatCount="indefinite"
- path={path}
- calcMode="linear"
- keyPoints="0;0.9"
- keyTimes="0;1"
- />
- </circle>
- );
-}
-
-function RadialDiagram() {
- return (
- <svg
- viewBox="0 0 720 206"
- role="img"
- aria-label={S.pillars.diagramLabel}
- className="mx-auto mb-2 hidden w-full max-w-4xl md:block"
- >
- <defs>
- <marker
- id="pl-arrow"
- viewBox="0 0 10 10"
- refX="9"
- refY="5"
- markerWidth="6.5"
- markerHeight="6.5"
- orient="auto-start-reverse"
- >
- <path d="M0,0 L10,5 L0,10 Z" className="fill-gray-400 dark:fill-gray-500" />
- </marker>
- </defs>
-
- <g
- fill="none"
- strokeWidth={1.5}
- className="stroke-gray-300 dark:stroke-gray-600"
- markerEnd="url(#pl-arrow)"
- >
- {FAN_PATHS.map((d) => (
- <path key={d} d={d} />
- ))}
- {DROP_PATHS.map((d) => (
- <path key={d} d={d} />
- ))}
- </g>
- {FAN_PATHS.map((d, i) => (
- <FlowDot key={d} path={d} dur="2.8s" begin={`${i * 0.5}s`} />
- ))}
- {DROP_PATHS.map((d, i) => (
- <FlowDot key={d} path={d} dur="1.6s" begin={`${0.6 + i * 0.5}s`} />
- ))}
-
- {/* Root node */}
- <rect
- x={270}
- y={8}
- width={180}
- height={50}
- rx={12}
- strokeWidth={1.5}
- className="fill-brand-50 stroke-brand-200 dark:fill-brand-950 dark:stroke-brand-800"
- />
- <image
- href={`${import.meta.env.BASE_URL}penguin-logo.svg`}
- x={288}
- y={22}
- width={22}
- height={22}
- preserveAspectRatio="xMidYMid meet"
- />
- <text
- x={374}
- y={38}
- textAnchor="middle"
- className="fill-brand-800 text-[14px] font-semibold dark:fill-brand-200"
- >
- {S.pillars.root}
- </text>
-
- {/* Concept chips */}
- {S.pillars.concepts.map((concept, i) => {
- const cx = [120, 360, 600][i] ?? 360;
- return (
- <g key={concept}>
- <rect
- x={cx - 75}
- y={122}
- width={150}
- height={42}
- rx={10}
- strokeWidth={1.5}
- className="fill-white stroke-gray-300 dark:fill-gray-900 dark:stroke-gray-700"
- />
- <text
- x={cx}
- y={148}
- textAnchor="middle"
- className="fill-gray-900 text-[12.5px] font-semibold dark:fill-gray-100"
- >
- {concept}
- </text>
- </g>
- );
- })}
- </svg>
- );
-}
-
-export function Pillars() {
- return (
- <Section
- id="highlights"
- eyebrow={S.pillars.eyebrow}
- title={S.pillars.title}
- subtitle={S.pillars.subtitle}
- >
- <RadialDiagram />
- <div className="grid gap-5 md:grid-cols-3">
- {S.pillars.items.map((item, i) => {
- const IconCmp = ICONS[i] ?? FeatherIcon;
- return (
- <article
- key={item.title}
- className="relative overflow-hidden rounded-xl border border-gray-200 bg-white p-6 transition-colors hover:border-gray-300 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
- >
- {/* Oversized faint icon as the card backdrop (brand-tinted, decorative). */}
- <IconCmp
- strokeWidth={1.25}
- className="pointer-events-none absolute -right-6 -bottom-6 h-32 w-32 text-brand-100/80 dark:text-brand-900/50"
- />
- <h3 className="relative text-lg font-semibold tracking-tight">{item.title}</h3>
- <p className="relative mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {item.desc}
- </p>
- </article>
- );
- })}
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/quickstart.tsx b/packages/landing/src/sections/quickstart.tsx
deleted file mode 100644
index 10e0a25a..00000000
--- a/packages/landing/src/sections/quickstart.tsx
+++ /dev/null
@@ -1,319 +0,0 @@
-/** Two-step quick start: choose installation first, then a launch mode for CLI installs. */
-import { useEffect, useState } from "react";
-import { Link, useLocation } from "react-router";
-import type { ReactNode } from "react";
-import { S } from "../lib/strings";
-import {
- CLI_INSTALLERS,
- GITHUB_LATEST_DOWNLOAD,
- INSTALL_CMD,
- INSTALL_CMD_WINDOWS,
- OFFLINE_INSTALL_CMDS,
-} from "../lib/links";
-import { Section } from "../components/section";
-import { CodeCard } from "../components/code-card";
-import {
- ArrowRightIcon,
- DownloadIcon,
- MonitorIcon,
- PlayIcon,
- TerminalIcon,
-} from "../components/icons";
-
-type InstallMethod = "desktop" | "install";
-type LaunchMode = "web" | "cli";
-type InstallOs = "linux" | "macos" | "windows";
-
-const INSTALL_METHODS: Array<{ id: InstallMethod; icon: typeof DownloadIcon }> = [
- { id: "desktop", icon: DownloadIcon },
- { id: "install", icon: TerminalIcon },
-];
-
-const LAUNCH_MODES: Array<{ id: LaunchMode; icon: typeof MonitorIcon }> = [
- { id: "web", icon: MonitorIcon },
- { id: "cli", icon: PlayIcon },
-];
-
-function NumberedItem({ index, children }: { index: number; children: ReactNode }) {
- return (
- <li className="flex gap-3 text-sm leading-6 text-gray-600 dark:text-gray-300">
- <span className="mt-0.5 inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-gray-900 text-[11px] font-semibold text-white dark:bg-gray-100 dark:text-gray-900">
- {index}
- </span>
- <span>{children}</span>
- </li>
- );
-}
-
-function StepHeading({ step, title }: { step: string; title: string }) {
- return (
- <div className="mb-4 flex items-center gap-3">
- <span className="text-xs font-semibold tracking-wide text-brand-600 uppercase dark:text-brand-300">
- {step}
- </span>
- <h3 className="text-lg font-semibold tracking-tight">{title}</h3>
- </div>
- );
-}
-
-export function Quickstart() {
- const { hash } = useLocation();
- const [method, setMethod] = useState<InstallMethod>("desktop");
- const [launchMode, setLaunchMode] = useState<LaunchMode>("web");
- const [os, setOs] = useState<InstallOs>("linux");
-
- useEffect(() => {
- const requested = hash.replace("#quickstart-", "");
- if (requested === "desktop") {
- setMethod("desktop");
- return;
- }
- if (requested === "install") {
- setMethod("install");
- return;
- }
- if (requested === "web" || requested === "cli") {
- setMethod("install");
- setLaunchMode(requested);
- }
- }, [hash]);
-
- const installLabel: Record<InstallMethod, string> = {
- desktop: S.quickstart.tabs.desktop,
- install: S.quickstart.tabs.install,
- };
- const launchLabel: Record<LaunchMode, string> = {
- web: S.quickstart.tabs.web,
- cli: S.quickstart.tabs.cli,
- };
- const choiceBtn = (active: boolean) =>
- `inline-flex min-h-11 items-center justify-center gap-2 rounded-lg px-4 py-2.5 text-sm font-medium transition-colors ${
- active
- ? "bg-gray-900 text-white shadow-sm dark:bg-gray-100 dark:text-gray-900"
- : "text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800"
- }`;
- const osBtn = (active: boolean) =>
- `rounded-md px-3 py-1.5 text-xs font-medium transition-colors ${
- active
- ? "bg-gray-900 text-white dark:bg-gray-100 dark:text-gray-900"
- : "text-gray-600 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800"
- }`;
-
- const installCommand = os === "windows" ? INSTALL_CMD_WINDOWS : INSTALL_CMD;
-
- return (
- <Section
- id="quickstart"
- eyebrow={S.quickstart.eyebrow}
- title={S.quickstart.title}
- subtitle={S.quickstart.subtitle}
- >
- <div className="mx-auto max-w-4xl">
- <StepHeading step={S.quickstart.stepOne} title={S.quickstart.chooseInstall} />
- <div
- className="grid grid-cols-2 gap-1 rounded-xl border border-gray-200 bg-white p-1 dark:border-gray-800 dark:bg-gray-900"
- role="tablist"
- aria-label={S.quickstart.chooseInstall}
- >
- {INSTALL_METHODS.map(({ id, icon: Icon }) => (
- <button
- key={id}
- id={`quickstart-${id}`}
- type="button"
- role="tab"
- aria-selected={method === id}
- className={choiceBtn(method === id)}
- onClick={() => setMethod(id)}
- >
- <Icon className="h-4 w-4" />
- {installLabel[id]}
- </button>
- ))}
- </div>
-
- {method === "desktop" && (
- <div
- role="tabpanel"
- className="anim-fade mt-5 overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
- >
- <div className="grid gap-8 p-6 sm:p-8 md:grid-cols-[1fr_1.15fr] md:items-center">
- <div>
- <span className="inline-flex h-11 w-11 items-center justify-center rounded-xl bg-brand-50 text-brand-700 dark:bg-brand-950 dark:text-brand-300">
- <DownloadIcon className="h-5 w-5" />
- </span>
- <h3 className="mt-5 text-xl font-semibold tracking-tight">
- {S.quickstart.desktop.title}
- </h3>
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {S.quickstart.desktop.desc}
- </p>
- <Link
- to="/download"
- className="mt-6 inline-flex h-11 items-center gap-2 rounded-lg bg-gray-900 px-5 text-sm font-semibold text-white transition-colors hover:bg-gray-700 dark:bg-gray-100 dark:text-gray-900 dark:hover:bg-white"
- >
- {S.quickstart.desktop.cta}
- <ArrowRightIcon className="h-4 w-4" />
- </Link>
- </div>
- <ol className="grid gap-4 rounded-xl bg-gray-50 p-5 dark:bg-gray-950">
- {S.quickstart.desktop.steps.map((step, index) => (
- <NumberedItem key={step} index={index + 1}>
- {step}
- </NumberedItem>
- ))}
- </ol>
- </div>
- </div>
- )}
-
- {method === "install" && (
- <div className="anim-fade">
- <div className="mt-5 rounded-2xl border border-gray-200 bg-white p-6 shadow-sm sm:p-8 dark:border-gray-800 dark:bg-gray-900">
- <div className="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between">
- <div className="max-w-xl">
- <h3 className="text-xl font-semibold tracking-tight">
- {S.quickstart.install.title}
- </h3>
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {S.quickstart.install.desc}
- </p>
- </div>
- <div
- className="inline-flex w-fit gap-1 rounded-lg border border-gray-200 bg-gray-50 p-1 dark:border-gray-800 dark:bg-gray-950"
- role="tablist"
- aria-label={S.quickstart.install.osLabel}
- >
- {(["linux", "macos", "windows"] as const).map((key) => (
- <button
- key={key}
- type="button"
- role="tab"
- aria-selected={os === key}
- className={osBtn(os === key)}
- onClick={() => setOs(key)}
- >
- {S.install[key]}
- </button>
- ))}
- </div>
- </div>
-
- <div className="mt-6">
- <h4 className="text-sm font-semibold tracking-tight">
- {S.quickstart.install.onlineTitle}
- </h4>
- <CodeCard
- code={installCommand}
- label={os === "windows" ? "PowerShell" : "curl | sh"}
- className="mt-3"
- />
- </div>
-
- <div className="mt-6 rounded-xl bg-gray-50 p-4 dark:bg-gray-950">
- <h4 className="text-sm font-semibold tracking-tight">
- {S.quickstart.install.offlineTitle}
- </h4>
- <p className="mt-1 text-xs leading-5 text-gray-500 dark:text-gray-400">
- {S.quickstart.install.offlineDesc}
- </p>
- <div className="mt-3 grid gap-2 sm:grid-cols-2">
- {CLI_INSTALLERS[os].map(({ file, variant }) => (
- <a
- key={file}
- href={`${GITHUB_LATEST_DOWNLOAD}/${file}`}
- className="flex min-w-0 items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-left transition-colors hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700 dark:hover:bg-gray-800"
- >
- <DownloadIcon className="h-4 w-4 shrink-0" />
- <span className="min-w-0">
- <strong className="block text-xs font-semibold">{variant}</strong>
- <span className="block truncate font-mono text-[10px] text-gray-500 dark:text-gray-400">
- {file}
- </span>
- </span>
- </a>
- ))}
- </div>
- <details className="mt-3 text-xs">
- <summary className="cursor-pointer font-medium text-brand-700 dark:text-brand-300">
- {S.quickstart.install.offlineCommand}
- </summary>
- <CodeCard
- code={OFFLINE_INSTALL_CMDS[os]}
- label={os === "windows" ? "PowerShell" : "shell"}
- className="mt-3"
- />
- </details>
- </div>
- </div>
-
- <div className="mt-10">
- <StepHeading step={S.quickstart.stepTwo} title={S.quickstart.chooseLaunch} />
- <div
- className="grid grid-cols-2 gap-1 rounded-xl border border-gray-200 bg-white p-1 dark:border-gray-800 dark:bg-gray-900"
- role="tablist"
- aria-label={S.quickstart.chooseLaunch}
- >
- {LAUNCH_MODES.map(({ id, icon: Icon }) => (
- <button
- key={id}
- id={`quickstart-${id}`}
- type="button"
- role="tab"
- aria-selected={launchMode === id}
- className={choiceBtn(launchMode === id)}
- onClick={() => setLaunchMode(id)}
- >
- <Icon className="h-4 w-4" />
- {launchLabel[id]}
- </button>
- ))}
- </div>
- </div>
-
- <div
- role="tabpanel"
- key={launchMode}
- className="anim-fade mt-5 overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-gray-900"
- >
- {launchMode === "web" ? (
- <div className="grid gap-8 p-6 sm:p-8 md:grid-cols-[0.9fr_1.1fr] md:items-center">
- <div>
- <h3 className="text-xl font-semibold tracking-tight">
- {S.quickstart.web.title}
- </h3>
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {S.quickstart.web.desc}
- </p>
- <ol className="mt-5 grid gap-3">
- {S.quickstart.web.steps.map((step, index) => (
- <NumberedItem key={step} index={index + 1}>
- {step}
- </NumberedItem>
- ))}
- </ol>
- </div>
- <CodeCard code={S.quickstart.web.command} label="penguin web" />
- </div>
- ) : (
- <div className="grid gap-8 p-6 sm:p-8 md:grid-cols-[0.9fr_1.1fr] md:items-center">
- <div>
- <h3 className="text-xl font-semibold tracking-tight">
- {S.quickstart.cli.title}
- </h3>
- <p className="mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {S.quickstart.cli.desc}
- </p>
- <p className="mt-5 text-xs leading-5 text-gray-500 dark:text-gray-400">
- {S.quickstart.localNote}
- </p>
- </div>
- <CodeCard code={S.quickstart.cli.command} label="penguin" />
- </div>
- )}
- </div>
- </div>
- )}
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/scenarios.tsx b/packages/landing/src/sections/scenarios.tsx
deleted file mode 100644
index eb92001f..00000000
--- a/packages/landing/src/sections/scenarios.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * Deployment scenarios as an auto-cycling overlapped pair: the front card sits
- * left at 92% width, the other slides right so its strip peeks past the front
- * card's right edge, tucked underneath — on swap the two cross horizontally
- * (both live in one grid cell, so the container takes the tallest card's height
- * and nothing jumps). The front card holds for ROTATE_MS (long enough to actually
- * read the paragraph); hovering the deck pauses the timer — nobody loses their
- * place mid-read; clicking the peeking card (or a dot) switches manually. The
- * covered card is a pointer-only shortcut and stays aria-hidden — dots carry the
- * accessible switching — and prefers-reduced-motion disables auto-advance.
- * SHOTS is index-aligned with S.scenarios.items; the photos are theme-agnostic,
- * so a single asset serves light and dark (unlike the Cases screenshots).
- */
-import { useEffect, useState } from "react";
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import medicalShot from "../assets/case-medical-qc.webp";
-import lineShot from "../assets/case-line-inspection.webp";
-
-const SHOTS = [medicalShot, lineShot];
-const ROTATE_MS = 12000;
-
-export function Scenarios() {
- const items = S.scenarios.items;
- const [active, setActive] = useState(0);
- const [paused, setPaused] = useState(false);
-
- useEffect(() => {
- if (paused || items.length < 2) return;
- if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
- const timer = setInterval(() => setActive((i) => (i + 1) % items.length), ROTATE_MS);
- return () => clearInterval(timer);
- }, [paused, items.length]);
-
- return (
- <Section
- id="scenarios"
- eyebrow={S.scenarios.eyebrow}
- title={S.scenarios.title}
- subtitle={S.scenarios.subtitle}
- >
- <div
- className="mx-auto max-w-5xl"
- onMouseEnter={() => setPaused(true)}
- onMouseLeave={() => setPaused(false)}
- >
- <div className="grid">
- {items.map((c, i) => {
- const front = i === active;
- return (
- <figure
- key={c.title}
- aria-hidden={!front}
- // The peeking card is itself the switch target (its visible strip is
- // small, so the whole card surface accepts the click).
- onClick={front ? undefined : () => setActive(i)}
- // Cards are 92% wide in a shared cell: the front one holds the left
- // edge; the covered one shifts its own 8.7% (= the container's 8%)
- // so exactly that strip peeks past the front card's right edge.
- className={`col-start-1 row-start-1 w-[92%] overflow-hidden rounded-2xl border bg-white transition-all duration-500 dark:bg-gray-900 ${
- front
- ? "z-10 translate-x-0 border-gray-200 opacity-100 dark:border-gray-800"
- : "z-0 translate-x-[8.7%] scale-[0.96] cursor-pointer border-gray-200/70 opacity-60 dark:border-gray-800/70"
- }`}
- >
- <div className="md:flex md:min-h-[340px] md:items-stretch">
- <img
- src={SHOTS[i]}
- alt={c.alt}
- loading="lazy"
- className="aspect-[16/9] w-full object-cover md:aspect-auto md:w-[48%]"
- />
- <figcaption className="p-5 sm:p-7 md:flex md:flex-1 md:flex-col md:justify-center md:p-12">
- <h3 className="text-xl font-semibold sm:text-2xl">{c.title}</h3>
- <p className="mt-4 text-[15px] leading-7 text-gray-600 dark:text-gray-400">
- {c.body}
- </p>
- </figcaption>
- </div>
- </figure>
- );
- })}
- </div>
-
- {/* Manual switch doubles as the position indicator */}
- <div className="mt-6 flex justify-center gap-2">
- {items.map((c, i) => (
- <button
- key={c.title}
- type="button"
- aria-label={c.title}
- aria-current={i === active}
- onClick={() => setActive(i)}
- className={`h-1.5 rounded-full transition-all duration-300 ${
- i === active
- ? "w-6 bg-gray-800 dark:bg-gray-200"
- : "w-3 bg-gray-300 hover:bg-gray-400 dark:bg-gray-700 dark:hover:bg-gray-500"
- }`}
- />
- ))}
- </div>
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/security.tsx b/packages/landing/src/sections/security.tsx
deleted file mode 100644
index 84a0a75e..00000000
--- a/packages/landing/src/sections/security.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-/** Security strip: the enterprise-grade runtime boundary in four points. */
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import { FileCheckIcon, FrameIcon, KeyIcon, ShieldCheckIcon } from "../components/icons";
-
-const ICONS = [ShieldCheckIcon, FrameIcon, FileCheckIcon, KeyIcon];
-
-export function Security() {
- return (
- <Section
- id="security"
- eyebrow={S.security.eyebrow}
- title={S.security.title}
- subtitle={S.security.subtitle}
- >
- <div className="grid gap-5 sm:grid-cols-2 lg:grid-cols-4">
- {S.security.items.map((item, i) => {
- const IconCmp = ICONS[i] ?? ShieldCheckIcon;
- return (
- <article
- key={item.title}
- className="relative overflow-hidden rounded-xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-gray-900"
- >
- {/* Oversized faint icon as the card backdrop (decorative). */}
- <IconCmp
- strokeWidth={1.25}
- className="pointer-events-none absolute -right-5 -bottom-5 h-26 w-26 text-gray-100 dark:text-gray-800"
- />
- <h3 className="relative text-[15px] font-semibold tracking-tight">{item.title}</h3>
- <p className="relative mt-2 text-sm leading-6 text-gray-600 dark:text-gray-400">
- {item.desc}
- </p>
- </article>
- );
- })}
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/self-improve.tsx b/packages/landing/src/sections/self-improve.tsx
deleted file mode 100644
index 609a3055..00000000
--- a/packages/landing/src/sections/self-improve.tsx
+++ /dev/null
@@ -1,578 +0,0 @@
-/**
- * Self-improvement loop, centered on the Target Agent's vN -> vN+1 upgrade: the
- * Optimizer orchestrates Evaluators to score vN (scores & traces flow back as edge
- * labels, not as a node), analyzes them, and ships the upgraded vN+1 — drawn as a
- * bold evolve arrow between the two versions. Beside it, three outcome trends with
- * real axes and ticks, each line growing from zero rightwards on a slow loop.
- * Illustrative; all colors are theme-aware Tailwind fill/stroke classes.
- */
-import { useEffect, useRef } from "react";
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-import { DemoVideo } from "../components/demo-video";
-import { demoVideoUrl } from "../lib/links";
-import { useLocale } from "../state/locale";
-import evoPosterZh from "../assets/evo-poster-zh.webp";
-import evoPosterEn from "../assets/evo-poster-en.webp";
-
-/** Rounded node with a centered label and an optional version pill. */
-function Node({
- x,
- y,
- w = 150,
- h = 48,
- label,
- kind = "neutral",
- badge,
- badgeKind = "neutral",
-}: {
- x: number;
- y: number;
- w?: number;
- h?: number;
- label: string;
- kind?: "accent" | "target" | "neutral";
- badge?: string;
- badgeKind?: "accent" | "neutral";
-}) {
- const rect =
- kind === "accent"
- ? "fill-white stroke-brand-500 dark:fill-gray-900 dark:stroke-brand-400"
- : kind === "target"
- ? "fill-brand-50 stroke-brand-200 dark:fill-brand-950 dark:stroke-brand-800"
- : "fill-gray-50 stroke-gray-300 dark:fill-gray-800 dark:stroke-gray-700";
- const text =
- kind === "target" ? "fill-brand-800 dark:fill-brand-200" : "fill-gray-900 dark:fill-gray-100";
- return (
- <g>
- <rect x={x} y={y} width={w} height={h} rx={10} strokeWidth={1.5} className={rect} />
- <text
- x={x + w / 2}
- y={y + h / 2 + 4.5}
- textAnchor="middle"
- className={`text-[13px] font-semibold ${text}`}
- >
- {label}
- </text>
- {badge && (
- <>
- <rect
- x={x + w - 26}
- y={y - 12}
- width={44}
- height={22}
- rx={11}
- className={
- badgeKind === "accent"
- ? "fill-brand-600 dark:fill-brand-400"
- : "fill-gray-400 dark:fill-gray-600"
- }
- />
- <text
- x={x + w - 4}
- y={y + 3}
- textAnchor="middle"
- className={`text-[10.5px] font-semibold ${
- badgeKind === "accent" ? "fill-white dark:fill-gray-950" : "fill-white"
- }`}
- >
- {badge}
- </text>
- </>
- )}
- </g>
- );
-}
-
-function EdgeLabel({
- x,
- y,
- anchor = "middle",
- accent = false,
- children,
-}: {
- x: number;
- y: number;
- anchor?: "start" | "middle" | "end";
- accent?: boolean;
- children: string;
-}) {
- return (
- <text
- x={x}
- y={y}
- textAnchor={anchor}
- className={
- accent
- ? "fill-brand-700 text-[10.5px] font-medium dark:fill-brand-300"
- : "fill-gray-500 text-[10.5px] dark:fill-gray-400"
- }
- >
- {children}
- </text>
- );
-}
-
-function FlowDot({
- path,
- dur,
- begin,
- accent = false,
- r = 1.5,
-}: {
- path: string;
- dur: string;
- begin: string;
- accent?: boolean;
- r?: number;
-}) {
- return (
- <circle
- r={r}
- className={accent ? "fill-brand-500 dark:fill-brand-400" : "fill-gray-400 dark:fill-gray-500"}
- >
- {/* Stop at 90% of the path so the dot never rides over the arrowhead. */}
- <animateMotion
- dur={dur}
- begin={begin}
- repeatCount="indefinite"
- path={path}
- calcMode="linear"
- keyPoints="0;0.9"
- keyTimes="0;1"
- />
- </circle>
- );
-}
-
-/** Loop edges (top machinery) and the bold evolve chord (bottom). */
-const EDGE_SPAWN = "M330,76 L330,154";
-const EDGE_FEEDBACK = "M390,208 L390,82";
-const EDGE_BENCH_OLD = "M295,208 L163,294";
-const EDGE_BENCH_NEW = "M425,208 L557,294";
-const EDGE_EVOLVE = "M216,324 L504,324";
-
-/** Draw-loop timing, mirroring the old CSS keyframes: grow, hold, fade, repeat. */
-const CYCLE_S = 4.6;
-const DRAW_END = 0.55;
-const HOLD_END = 0.84;
-const easeInOut = (t: number) => (t < 0.5 ? 2 * t * t : 1 - 2 * (1 - t) * (1 - t));
-
-/**
- * Outcome trend chart with proper axes and ticks; a single rAF clock grows the
- * line from zero rightwards and carries a value label on the moving head — the
- * number changes as the curve climbs (or falls), so the trend reads at a glance.
- * Reduced-motion users see the finished line with its final value.
- */
-function TrendChart({
- label,
- hint,
- points,
- yTicks,
- xTicks,
- phase,
- format,
-}: {
- label: string;
- hint: string;
- points: number[];
- yTicks: number[];
- xTicks: Array<{ at: number; text: string }>;
- /** Seconds this chart runs ahead of the shared cycle (staggers the trio). */
- phase: number;
- format: (v: number) => string;
-}) {
- const W = 210;
- const H = 112;
- const M = { left: 34, right: 10, top: 16, bottom: 20 };
- const yMax = Math.max(...yTicks);
- const yMin = Math.min(...yTicks);
- const px = (i: number) => M.left + (i / (points.length - 1)) * (W - M.left - M.right);
- const py = (v: number) => M.top + ((yMax - v) / (yMax - yMin || 1)) * (H - M.top - M.bottom);
- const path = points.map((v, i) => `${i === 0 ? "M" : "L"}${px(i)},${py(v)}`).join(" ");
- const axis = "stroke-gray-200 dark:stroke-gray-800";
- const tickText = "fill-gray-400 text-[8.5px] tabular-nums dark:fill-gray-500";
-
- const fadeRef = useRef<SVGGElement>(null);
- const pathRef = useRef<SVGPathElement>(null);
- const headRef = useRef<SVGGElement>(null);
- const labelRef = useRef<SVGTextElement>(null);
-
- useEffect(() => {
- const fade = fadeRef.current;
- const line = pathRef.current;
- const head = headRef.current;
- const value = labelRef.current;
- if (!fade || !line || !head || !value) return;
-
- const apply = (p: number, opacity: number) => {
- line.style.strokeDashoffset = String(1 - p);
- const f = p * (points.length - 1);
- const i0 = Math.floor(f);
- const i1 = Math.min(points.length - 1, i0 + 1);
- const v = (points[i0] ?? 0) + ((points[i1] ?? 0) - (points[i0] ?? 0)) * (f - i0);
- const x = px(f);
- const y = py(v);
- head.setAttribute("transform", `translate(${x}, ${y})`);
- value.textContent = format(v);
- value.setAttribute("x", String(Math.min(W - M.right - 10, Math.max(M.left + 12, x))));
- value.setAttribute("y", String(Math.max(10, y - 9)));
- fade.style.opacity = String(opacity);
- };
-
- if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
- apply(1, 1);
- return;
- }
- let raf = 0;
- const t0 = performance.now();
- const tick = (now: number) => {
- const t = (((now - t0) / 1000 + phase) % CYCLE_S) / CYCLE_S;
- if (t < DRAW_END) apply(easeInOut(t / DRAW_END), 1);
- else if (t < HOLD_END) apply(1, 1);
- else apply(1, 1 - (t - HOLD_END) / (1 - HOLD_END));
- raf = requestAnimationFrame(tick);
- };
- raf = requestAnimationFrame(tick);
- return () => cancelAnimationFrame(raf);
- // px/py are pure functions of the props below.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [points, phase, format]);
-
- return (
- <div className="rounded-xl border border-gray-200 bg-white px-4 py-3 dark:border-gray-800 dark:bg-gray-900">
- <div className="flex items-baseline justify-between">
- <p className="text-sm font-semibold tracking-tight">{label}</p>
- <p className="text-xs text-gray-500 dark:text-gray-400">{hint}</p>
- </div>
- <svg viewBox={`0 0 ${W} ${H}`} className="mt-1 w-full" aria-hidden="true">
- {/* Axes: hairline, solid, recessive. */}
- <line
- x1={M.left}
- y1={M.top}
- x2={M.left}
- y2={H - M.bottom}
- className={axis}
- strokeWidth="1"
- />
- <line
- x1={M.left}
- y1={H - M.bottom}
- x2={W - M.right}
- y2={H - M.bottom}
- className={axis}
- strokeWidth="1"
- />
- {yTicks.map((t) => (
- <g key={t}>
- <line
- x1={M.left - 3}
- y1={py(t)}
- x2={M.left}
- y2={py(t)}
- className={axis}
- strokeWidth="1"
- />
- <text x={M.left - 6} y={py(t) + 3} textAnchor="end" className={tickText}>
- {t}
- </text>
- </g>
- ))}
- {xTicks.map((t) => (
- <g key={t.text}>
- <line
- x1={px(t.at)}
- y1={H - M.bottom}
- x2={px(t.at)}
- y2={H - M.bottom + 3}
- className={axis}
- strokeWidth="1"
- />
- <text x={px(t.at)} y={H - M.bottom + 12} textAnchor="middle" className={tickText}>
- {t.text}
- </text>
- </g>
- ))}
- <g ref={fadeRef}>
- <path
- ref={pathRef}
- d={path}
- pathLength={1}
- fill="none"
- strokeWidth={2}
- strokeLinecap="round"
- strokeLinejoin="round"
- className="stroke-brand-600 dark:stroke-brand-400"
- style={{ strokeDasharray: 1, strokeDashoffset: 1 }}
- />
- <g ref={headRef}>
- <circle r={5} className="fill-white dark:fill-gray-900" />
- <circle r={3.5} className="fill-brand-600 dark:fill-brand-400" />
- </g>
- {/* The moving value label riding the curve head. */}
- <text
- ref={labelRef}
- textAnchor="middle"
- className="fill-brand-700 text-[10px] font-semibold tabular-nums dark:fill-brand-300"
- />
- </g>
- </svg>
- </div>
- );
-}
-
-const TRENDS: Array<{
- points: number[];
- yTicks: number[];
- xTicks: Array<{ at: number; text: string }>;
- format: (v: number) => string;
-}> = [
- {
- points: [52, 58, 56, 64, 70, 75, 79],
- yTicks: [0, 50, 100],
- xTicks: [
- { at: 0, text: "v1" },
- { at: 3, text: "v4" },
- { at: 6, text: "v7" },
- ],
- format: (v) => `${v.toFixed(1)}%`,
- },
- {
- points: [0.42, 0.38, 0.39, 0.33, 0.3, 0.27, 0.25],
- yTicks: [0, 0.25, 0.5],
- xTicks: [
- { at: 0, text: "v1" },
- { at: 3, text: "v4" },
- { at: 6, text: "v7" },
- ],
- format: (v) => `$${v.toFixed(2)}`,
- },
- {
- points: [115, 107, 109, 98, 92, 87, 83],
- yTicks: [0, 60, 120],
- xTicks: [
- { at: 0, text: "v1" },
- { at: 3, text: "v4" },
- { at: 6, text: "v7" },
- ],
- format: (v) => `${v.toFixed(1)}s`,
- },
-];
-
-function MobileFlowNode({
- label,
- badge,
- accent = false,
-}: {
- label: string;
- badge?: string;
- accent?: boolean;
-}) {
- return (
- <div
- className={`flex min-w-0 items-center justify-center gap-2 rounded-lg border px-3 py-3 text-center text-xs font-semibold ${
- accent
- ? "border-brand-300 bg-brand-50 text-brand-800 dark:border-brand-800 dark:bg-brand-950 dark:text-brand-200"
- : "border-gray-200 bg-gray-50 text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100"
- }`}
- >
- <span>{label}</span>
- {badge && (
- <span
- className={`shrink-0 rounded-full px-1.5 py-0.5 text-[10px] ${
- accent
- ? "bg-brand-600 text-white dark:bg-brand-400 dark:text-gray-950"
- : "bg-gray-400 text-white dark:bg-gray-600"
- }`}
- >
- {badge}
- </span>
- )}
- </div>
- );
-}
-
-/** Compact reading order for phones; the full SVG remains visible from sm upward. */
-function MobileEvolutionFlow() {
- return (
- <div
- role="img"
- aria-label={S.selfImprove.diagramLabel}
- className="rounded-xl border border-gray-200 bg-white p-4 sm:hidden dark:border-gray-800 dark:bg-gray-900"
- >
- <MobileFlowNode label={S.selfImprove.nodeOptimizer} accent />
- <div className="my-2 flex flex-col items-center text-[10px] leading-4 text-gray-500 dark:text-gray-400">
- <span>{S.selfImprove.edgeSpawn}</span>
- <span aria-hidden="true">↓</span>
- </div>
- <MobileFlowNode label={S.selfImprove.nodeEvaluator} />
- <div className="my-2 flex flex-col items-center text-[10px] leading-4 text-gray-500 dark:text-gray-400">
- <span>
- {S.selfImprove.edgeFeedback} · {S.selfImprove.edgeBench}
- </span>
- <span aria-hidden="true">↓</span>
- </div>
- <div className="grid grid-cols-[minmax(0,1fr)_3.5rem_minmax(0,1fr)] items-center gap-2">
- <MobileFlowNode label={S.selfImprove.nodeTarget} badge={S.selfImprove.badgeOld} />
- <div className="text-center text-[10px] leading-4 font-medium text-brand-700 dark:text-brand-300">
- <span className="block">{S.selfImprove.edgeImprove}</span>
- <span className="block text-base" aria-hidden="true">
- →
- </span>
- </div>
- <MobileFlowNode label={S.selfImprove.nodeTarget} badge={S.selfImprove.badgeNew} accent />
- </div>
- </div>
- );
-}
-
-export function SelfImprove() {
- const { locale } = useLocale();
- return (
- <Section
- id="self-improvement"
- eyebrow={S.selfImprove.eyebrow}
- title={S.selfImprove.title}
- subtitle={S.selfImprove.subtitle}
- >
- <div className="mx-auto grid max-w-5xl items-center gap-6 lg:grid-cols-[minmax(0,1fr)_15.5rem]">
- <MobileEvolutionFlow />
- <div className="hidden overflow-x-auto rounded-xl border border-gray-200 bg-white p-4 sm:block dark:border-gray-800 dark:bg-gray-900">
- <svg
- viewBox="0 0 720 380"
- role="img"
- aria-label={S.selfImprove.diagramLabel}
- className="mx-auto w-full max-w-2xl min-w-[34rem]"
- >
- <defs>
- <marker
- id="si-arrow"
- viewBox="0 0 10 10"
- refX="9"
- refY="5"
- markerWidth="7"
- markerHeight="7"
- orient="auto-start-reverse"
- >
- <path d="M0,0 L10,5 L0,10 Z" className="fill-gray-400 dark:fill-gray-500" />
- </marker>
- <marker
- id="si-arrow-accent"
- viewBox="0 0 10 10"
- refX="9"
- refY="5"
- markerWidth="7"
- markerHeight="7"
- orient="auto-start-reverse"
- >
- <path d="M0,0 L10,5 L0,10 Z" className="fill-brand-500 dark:fill-brand-400" />
- </marker>
- </defs>
-
- {/* Loop edges: Evaluators benchmark BOTH versions (vN and vN+1). */}
- <g
- fill="none"
- strokeWidth={1.5}
- className="stroke-gray-400 dark:stroke-gray-500"
- markerEnd="url(#si-arrow)"
- >
- <path d={EDGE_SPAWN} />
- <path d={EDGE_FEEDBACK} />
- <path d={EDGE_BENCH_OLD} />
- <path d={EDGE_BENCH_NEW} />
- </g>
- {/* The evolve chord: vN -> vN+1 is the story (the Optimizer's update lands here). */}
- <path
- d={EDGE_EVOLVE}
- fill="none"
- strokeWidth={2.5}
- className="stroke-brand-500 dark:stroke-brand-400"
- markerEnd="url(#si-arrow-accent)"
- />
-
- {/* Moving dots along every arrow. */}
- <FlowDot path={EDGE_SPAWN} dur="2.4s" begin="0s" />
- <FlowDot path={EDGE_FEEDBACK} dur="2.4s" begin="1.2s" />
- <FlowDot path={EDGE_BENCH_OLD} dur="2.6s" begin="0.6s" />
- <FlowDot path={EDGE_BENCH_NEW} dur="2.6s" begin="1.9s" />
- <FlowDot path={EDGE_EVOLVE} dur="2.2s" begin="0s" accent r={2} />
- <FlowDot path={EDGE_EVOLVE} dur="2.2s" begin="1.1s" accent r={2} />
-
- <EdgeLabel x={322} y={120} anchor="end">
- {S.selfImprove.edgeSpawn}
- </EdgeLabel>
- <EdgeLabel x={398} y={120} anchor="start">
- {S.selfImprove.edgeFeedback}
- </EdgeLabel>
- {/* Centered between the two benchmark diagonals: it applies to both. */}
- <EdgeLabel x={360} y={252} anchor="middle">
- {S.selfImprove.edgeBench}
- </EdgeLabel>
- <EdgeLabel x={360} y={312} anchor="middle" accent>
- {S.selfImprove.edgeImprove}
- </EdgeLabel>
-
- {/* Evaluator stack (x N) */}
- <rect
- x={301}
- y={170}
- width={150}
- height={48}
- rx={10}
- className="fill-gray-100 stroke-gray-200 dark:fill-gray-800/60 dark:stroke-gray-700/60"
- />
- <rect
- x={293}
- y={162}
- width={150}
- height={48}
- rx={10}
- className="fill-gray-100 stroke-gray-200 dark:fill-gray-800/80 dark:stroke-gray-700/80"
- />
- <Node x={285} y={154} label={S.selfImprove.nodeEvaluator} />
-
- <Node x={285} y={28} label={S.selfImprove.nodeOptimizer} kind="accent" />
- <Node
- x={60}
- y={300}
- label={S.selfImprove.nodeTarget}
- badge={S.selfImprove.badgeOld}
- badgeKind="neutral"
- />
- <Node
- x={510}
- y={300}
- label={S.selfImprove.nodeTarget}
- kind="target"
- badge={S.selfImprove.badgeNew}
- badgeKind="accent"
- />
- </svg>
- </div>
-
- <div className="grid gap-3 sm:grid-cols-3 lg:grid-cols-1">
- {S.selfImprove.trends.map((t, i) => (
- <TrendChart
- key={t.label}
- label={t.label}
- hint={t.hint}
- points={TRENDS[i]?.points ?? []}
- yTicks={TRENDS[i]?.yTicks ?? [0, 1]}
- xTicks={TRENDS[i]?.xTicks ?? []}
- phase={i * 1.4}
- format={TRENDS[i]?.format ?? ((v) => v.toFixed(0))}
- />
- ))}
- </div>
- </div>
- <div className="mt-10">
- <DemoVideo
- src={demoVideoUrl(locale === "zh" ? "evo_zh" : "evo_en")}
- poster={locale === "zh" ? evoPosterZh : evoPosterEn}
- label={S.selfImprove.videoLabel}
- caption={S.selfImprove.videoCaption}
- />
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/sections/skills.tsx b/packages/landing/src/sections/skills.tsx
deleted file mode 100644
index cea8c38c..00000000
--- a/packages/landing/src/sections/skills.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-/** Built-in Skill library at a glance: the four Skill groups with their member Skills as chips. */
-import { S } from "../lib/strings";
-import { Section } from "../components/section";
-
-export function Skills() {
- return (
- <Section
- id="skills"
- eyebrow={S.skills.eyebrow}
- title={S.skills.title}
- subtitle={S.skills.subtitle}
- >
- <div className="grid gap-5 sm:grid-cols-2 lg:grid-cols-3">
- {S.skills.groups.map((group) => (
- <article
- key={group.title}
- className="rounded-xl border border-gray-200 bg-white p-5 transition-colors hover:border-gray-300 dark:border-gray-800 dark:bg-gray-900 dark:hover:border-gray-700"
- >
- <h3 className="text-[15px] font-semibold tracking-tight">{group.title}</h3>
- <ul className="mt-3 flex flex-wrap gap-1.5">
- {group.skills.map((name) => (
- <li
- key={name}
- className="rounded-full border border-gray-200 bg-gray-50 px-2.5 py-0.5 font-mono text-xs text-gray-600 dark:border-gray-800 dark:bg-gray-950 dark:text-gray-400"
- >
- {name}
- </li>
- ))}
- </ul>
- </article>
- ))}
- </div>
- </Section>
- );
-}
diff --git a/packages/landing/src/state/locale.tsx b/packages/landing/src/state/locale.tsx
deleted file mode 100644
index ea9d68c8..00000000
--- a/packages/landing/src/state/locale.tsx
+++ /dev/null
@@ -1,116 +0,0 @@
-/**
- * Language context: zh / en / system (tracks navigator.language). On switch it first
- * synchronously calls setActiveStrings, then remounts the tree keyed on locale so every
- * `S.x` read reflects the new language; the preference persists to localStorage.
- * Same pattern as the Web App.
- */
-import {
- createContext,
- useCallback,
- useContext,
- useEffect,
- useLayoutEffect,
- useRef,
- useState,
-} from "react";
-import type { ReactNode } from "react";
-import { LANG_KEY, readPref, subscribePref, writePref } from "./site-prefs";
-import { setActiveStrings, zh } from "../lib/strings";
-import { en } from "../lib/strings-en";
-
-export type LangPref = "zh" | "en" | "system";
-export type Locale = "zh" | "en";
-
-const LANG_PREFS = ["zh", "en", "system"] as const;
-
-interface LocaleContextValue {
- lang: LangPref;
- locale: Locale;
- setLang: (lang: LangPref) => void;
-}
-
-const LocaleContext = createContext<LocaleContextValue | null>(null);
-
-/** Device language -> UI language: zh* -> zh, anything else -> en. */
-export function resolveSystemLocale(language: string | undefined): Locale {
- return language?.toLowerCase().startsWith("zh") ? "zh" : "en";
-}
-
-function systemLocale(): Locale {
- return resolveSystemLocale(navigator.language);
-}
-
-function resolve(lang: LangPref): Locale {
- return lang === "system" ? systemLocale() : lang;
-}
-
-function initialLang(): LangPref {
- return readPref<LangPref>(LANG_KEY, LANG_PREFS) ?? "system";
-}
-
-export function LocaleProvider({ children }: { children: ReactNode }) {
- const [lang, setLangState] = useState<LangPref>(initialLang);
- const [, setSysTick] = useState(0);
-
- const locale = resolve(lang);
- // Switch the active dictionary during render (idempotent): children are keyed on
- // locale and render after this component, so they read the post-switch dictionary.
- setActiveStrings(locale === "en" ? en : zh);
-
- // Keep the document language in sync (static index.html ships lang="en").
- useEffect(() => {
- document.documentElement.lang = locale === "zh" ? "zh-CN" : "en";
- }, [locale]);
-
- useEffect(() => {
- if (lang !== "system") return;
- const onChange = () => setSysTick((t) => t + 1);
- window.addEventListener("languagechange", onChange);
- return () => window.removeEventListener("languagechange", onChange);
- }, [lang]);
-
- const setLang = useCallback((next: LangPref) => {
- writePref(LANG_KEY, next);
- setLangState(next);
- }, []);
-
- // The sibling site (landing <-> docs) writing the shared key in another tab.
- useEffect(() => subscribePref<LangPref>(LANG_KEY, LANG_PREFS, setLangState), []);
-
- return (
- <LocaleContext.Provider value={{ lang, locale, setLang }}>{children}</LocaleContext.Provider>
- );
-}
-
-/**
- * Language scope: a remount boundary keyed on locale. The remount briefly empties the
- * DOM, which collapses the page height and clamps the scroll position to 0 — so the
- * scroll offset is captured during the render that switches locale (old DOM still
- * mounted) and restored right after the new tree lays out.
- */
-export function LocaleScope({ children }: { children: ReactNode }) {
- const { locale } = useLocale();
- const prevLocale = useRef(locale);
- const savedScroll = useRef<number | null>(null);
- if (prevLocale.current !== locale) {
- prevLocale.current = locale;
- savedScroll.current = window.scrollY;
- }
- useLayoutEffect(() => {
- if (savedScroll.current !== null) {
- window.scrollTo({ top: savedScroll.current, behavior: "instant" });
- savedScroll.current = null;
- }
- }, [locale]);
- return (
- <div key={locale} className="contents">
- {children}
- </div>
- );
-}
-
-export function useLocale(): LocaleContextValue {
- const ctx = useContext(LocaleContext);
- if (!ctx) throw new Error("useLocale must be used inside LocaleProvider");
- return ctx;
-}
diff --git a/packages/landing/src/state/site-prefs.ts b/packages/landing/src/state/site-prefs.ts
deleted file mode 100644
index 6d56cf8b..00000000
--- a/packages/landing/src/state/site-prefs.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Preferences shared by the landing page and the docs site.
- *
- * The two are separate SPAs but ship to one origin (penguin.ooo and penguin.ooo/docs/),
- * so a single localStorage key is all it takes for a language or theme choice to survive
- * the hop between them. They previously wrote `penguin-landing.*` and `penguin-docs.*`,
- * which is why picking dark mode on the landing page and clicking through to the docs
- * dropped you back into light.
- *
- * This module is duplicated verbatim in packages/docs (as theme.tsx and locale.tsx
- * already are — the two sites share no package). The KEYS below must stay identical on
- * both sides; if they drift, the sync silently stops working with nothing failing.
- */
-
-export const THEME_KEY = "penguin-site.theme";
-export const LANG_KEY = "penguin-site.lang";
-
-/** Pre-unification keys, still read once so an existing visitor keeps their choice. */
-const LEGACY_KEYS: Record<string, readonly string[]> = {
- [THEME_KEY]: ["penguin-landing.theme", "penguin-docs.theme"],
- [LANG_KEY]: ["penguin-landing.lang", "penguin-docs.lang"],
-};
-
-/**
- * Reads a stored preference, falling back to the retired per-site keys. Everything is
- * wrapped: localStorage throws outright in a cookie-blocked or partitioned context, and
- * a preference is never worth taking the page down for.
- */
-export function readPref<T extends string>(key: string, allowed: readonly T[]): T | null {
- try {
- for (const k of [key, ...(LEGACY_KEYS[key] ?? [])]) {
- const stored = localStorage.getItem(k);
- if (stored && (allowed as readonly string[]).includes(stored)) return stored as T;
- }
- } catch {
- // Storage unavailable — fall through to the system default.
- }
- return null;
-}
-
-export function writePref(key: string, value: string): void {
- try {
- localStorage.setItem(key, value);
- } catch {
- // Non-persistent session: the choice still applies for this page.
- }
-}
-
-/**
- * Live sync for the both-tabs-open case. The storage event fires in every *other* tab on
- * the origin, so switching theme on the landing page updates an already-open docs tab
- * without a reload. Navigating between the two sites is a full page load and is covered
- * by the read on mount instead.
- */
-export function subscribePref<T extends string>(
- key: string,
- allowed: readonly T[],
- onChange: (value: T) => void,
-): () => void {
- const handler = (e: StorageEvent) => {
- if (e.key !== key || e.newValue === null) return;
- if ((allowed as readonly string[]).includes(e.newValue)) onChange(e.newValue as T);
- };
- window.addEventListener("storage", handler);
- return () => window.removeEventListener("storage", handler);
-}
diff --git a/packages/landing/src/state/theme.tsx b/packages/landing/src/state/theme.tsx
deleted file mode 100644
index 53f978c7..00000000
--- a/packages/landing/src/state/theme.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * Theme context: light / dark / system (tracks prefers-color-scheme live), toggled
- * via the html.dark class + Tailwind dark: variant, persisted to localStorage.
- * Same behavior as the Web App, trimmed to what the landing page needs.
- */
-import { createContext, useCallback, useContext, useEffect, useState } from "react";
-import type { ReactNode } from "react";
-import { THEME_KEY, readPref, subscribePref, writePref } from "./site-prefs";
-
-export type ThemeMode = "light" | "dark" | "system";
-
-const THEME_MODES = ["light", "dark", "system"] as const;
-
-interface ThemeContextValue {
- mode: ThemeMode;
- /** Resolved effective theme (system mode resolved against the OS preference). */
- dark: boolean;
- setMode: (mode: ThemeMode) => void;
-}
-
-const ThemeContext = createContext<ThemeContextValue | null>(null);
-
-function initialMode(): ThemeMode {
- return readPref<ThemeMode>(THEME_KEY, THEME_MODES) ?? "system";
-}
-
-function systemDark(): boolean {
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
-}
-
-export function ThemeProvider({ children }: { children: ReactNode }) {
- const [mode, setModeState] = useState<ThemeMode>(initialMode);
- const [sysDark, setSysDark] = useState(systemDark);
-
- const dark = mode === "system" ? sysDark : mode === "dark";
-
- useEffect(() => {
- document.documentElement.classList.toggle("dark", dark);
- }, [dark]);
-
- useEffect(() => {
- if (mode !== "system") return;
- const mq = window.matchMedia("(prefers-color-scheme: dark)");
- const onChange = (e: MediaQueryListEvent) => setSysDark(e.matches);
- setSysDark(mq.matches);
- mq.addEventListener("change", onChange);
- return () => mq.removeEventListener("change", onChange);
- }, [mode]);
-
- const setMode = useCallback((next: ThemeMode) => {
- writePref(THEME_KEY, next);
- setModeState(next);
- }, []);
-
- // The sibling site (landing <-> docs) writing the shared key in another tab.
- useEffect(() => subscribePref<ThemeMode>(THEME_KEY, THEME_MODES, setModeState), []);
-
- return <ThemeContext.Provider value={{ mode, dark, setMode }}>{children}</ThemeContext.Provider>;
-}
-
-export function useTheme(): ThemeContextValue {
- const ctx = useContext(ThemeContext);
- if (!ctx) throw new Error("useTheme must be used inside ThemeProvider");
- return ctx;
-}
diff --git a/packages/landing/src/styles.css b/packages/landing/src/styles.css
deleted file mode 100644
index 82a887a3..00000000
--- a/packages/landing/src/styles.css
+++ /dev/null
@@ -1,600 +0,0 @@
-/**
- * Landing page styles: single-file Tailwind CSS 4 entry point, sharing the Web App's
- * visual language — GitHub-style simplicity, solid backgrounds + 1px borders + one
- * brand blue accent, no glassmorphism. Dark theme is toggled via the html.dark class.
- */
-@import "tailwindcss";
-
-/* Dark theme toggled via the html.dark class (Tailwind 4 custom variant). */
-@custom-variant dark (&:where(.dark, .dark *));
-
-/* Brand color scale (Google blue family), identical to the Web App. */
-@theme {
- --color-brand-25: #f8fbff;
- --color-brand-50: #e8f0fe;
- --color-brand-100: #d2e3fc;
- --color-brand-200: #aecbfa;
- --color-brand-300: #8ab4f8;
- --color-brand-400: #669df6;
- --color-brand-500: #4285f4;
- --color-brand-600: #1a73e8;
- --color-brand-700: #0b57d0;
- --color-brand-800: #0842a0;
- --color-brand-900: #062e6f;
- --color-brand-950: #041e49;
-}
-
-@layer base {
- :root {
- color-scheme: light;
- }
- .dark {
- color-scheme: dark;
- /* A calm neutral dark, shared with the Web App's Primer dark and the theme gallery: the
- canvas lifted off black, surfaces a step lighter, and the whole gray ramp re-pointed to
- true neutrals — Tailwind's own grays lean blue, which is what made the dark landing look
- like a different site. Body text (100) sits at 16:1 on the canvas, muted (400) at 7:1
- and subtle (500) above 4.5:1 on the surfaces. */
- --color-gray-950: #141414;
- --color-gray-900: #1c1c1c;
- --color-gray-800: #2a2a2a;
- --color-gray-700: #383838;
- --color-gray-600: #575757;
- --color-gray-500: #8f8f8f;
- --color-gray-400: #ababab;
- --color-gray-300: #d4d4d4;
- --color-gray-200: #e3e3e3;
- --color-gray-100: #f0f0f0;
- --color-gray-50: #f7f7f7;
- }
- html {
- scroll-behavior: smooth;
- }
- body {
- @apply bg-white text-gray-900 antialiased dark:bg-gray-950 dark:text-gray-100;
- font-family:
- ui-sans-serif,
- system-ui,
- -apple-system,
- "Segoe UI",
- Roboto,
- "PingFang SC",
- "Microsoft YaHei",
- sans-serif;
- }
- code,
- pre,
- kbd {
- font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
- }
- button:focus-visible,
- a:focus-visible,
- summary:focus-visible {
- outline: 3px solid rgb(107 114 128 / 0.4);
- outline-offset: 2px;
- }
- button:not(:disabled),
- [role="button"]:not(:disabled) {
- cursor: pointer;
- }
- ::selection {
- background: rgb(0 0 0 / 0.1);
- }
- .dark ::selection {
- background: rgb(255 255 255 / 0.18);
- }
- * {
- scrollbar-width: thin;
- scrollbar-color: rgb(60 64 67 / 0.28) transparent;
- }
- .dark * {
- scrollbar-color: rgb(232 234 237 / 0.2) transparent;
- }
- /* Anchor targets start at the section content, below the sticky header and its breathing room. */
- .section-anchor {
- scroll-margin-top: 5.5rem;
- }
-}
-
-/* ---------- Animations (same tone as the Web App: 160-280ms ease, slight offset) ---------- */
-
-@keyframes rise-in {
- from {
- opacity: 0;
- transform: translateY(10px) scale(0.99);
- }
- to {
- opacity: 1;
- transform: none;
- }
-}
-
-@keyframes fade-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
-}
-
-.anim-rise {
- animation: rise-in 280ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
-}
-.anim-fade {
- animation: fade-in 120ms ease-out both;
-}
-
-/* Scroll reveal: sections start slightly offset and settle in when they enter the viewport. */
-.reveal {
- opacity: 0;
- transform: translateY(14px);
- transition:
- opacity 500ms cubic-bezier(0.2, 0.7, 0.3, 1),
- transform 500ms cubic-bezier(0.2, 0.7, 0.3, 1);
-}
-.reveal-visible {
- opacity: 1;
- transform: none;
-}
-
-/* Hero backdrop: a faint dot grid fading out downwards — subtle, no gradients on content. */
-.hero-dots {
- background-image: radial-gradient(rgb(26 115 232 / 0.14) 1px, transparent 1px);
- background-size: 22px 22px;
- mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
- -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
-}
-.dark .hero-dots {
- background-image: radial-gradient(rgb(138 180 248 / 0.16) 1px, transparent 1px);
-}
-
-/* Keep the hero hierarchy consistent across languages and let narrow screens wrap naturally. */
-.hero-positioning {
- font-size: clamp(1.5rem, 4vw, 2.6rem);
-}
-.hero-automation {
- font-size: clamp(1rem, 2.1vw, 1.125rem);
-}
-
-/* Both words size the same grid cell, keeping the headline still as they alternate. */
-.hero-rotator {
- display: inline-grid;
- overflow: hidden;
- vertical-align: bottom;
-}
-.hero-rotator-word {
- grid-area: 1 / 1;
- white-space: nowrap;
- animation: hero-word-cycle 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
-}
-.hero-rotator-word:nth-child(2) {
- animation-delay: -5s;
-}
-@keyframes hero-word-cycle {
- 0%,
- 43%,
- 100% {
- opacity: 1;
- transform: translateY(0);
- }
- 50% {
- opacity: 0;
- transform: translateY(-100%);
- }
- 50.01%,
- 93% {
- opacity: 0;
- transform: translateY(100%);
- }
-}
-
-/* ---------- Ambient neon backdrop: blurred glows wandering across the screen ----------
- Viewport-FIXED (the page background stays put while content scrolls over it) with a
- uniform page background behind every section, so nothing jumps at section boundaries.
- Each glow wanders freely across the whole screen on its own slow route (vw/vh
- amplitudes), soft and blue-family only (enterprise tone; hue drift stays within blues). Reduced-motion freezes them in place. */
-.neon-bg {
- position: fixed;
- inset: 0;
- z-index: -1;
- overflow: hidden;
- pointer-events: none;
-}
-.neon-blob {
- position: absolute;
- width: 48rem;
- height: 48rem;
- border-radius: 9999px;
- opacity: 0.12;
- will-change: transform, filter;
- filter: blur(88px);
- animation: neon-hue 44s linear infinite alternate;
-}
-.dark .neon-blob {
- opacity: 0.16;
-}
-.neon-blob-a {
- top: -12rem;
- left: -10rem;
- background: radial-gradient(circle, #4285f4 0%, transparent 66%);
- animation:
- neon-wander-a 44s ease-in-out infinite,
- neon-hue 46s linear infinite alternate;
-}
-.neon-blob-b {
- top: 8%;
- right: -12rem;
- background: radial-gradient(circle, #0ea5e9 0%, transparent 66%);
- animation:
- neon-wander-b 56s ease-in-out infinite,
- neon-hue 52s linear infinite alternate -16s;
-}
-.neon-blob-c {
- bottom: -14rem;
- left: 18%;
- background: radial-gradient(circle, #06b6d4 0%, transparent 66%);
- animation:
- neon-wander-c 50s ease-in-out infinite,
- neon-hue 58s linear infinite alternate -30s;
-}
-.neon-blob-d {
- top: 42%;
- left: -14rem;
- background: radial-gradient(circle, #2563eb 0%, transparent 66%);
- animation:
- neon-wander-d 62s ease-in-out infinite,
- neon-hue 48s linear infinite alternate -22s;
-}
-@keyframes neon-wander-a {
- 0%,
- 100% {
- transform: translate3d(0, 0, 0) scale(1);
- }
- 30% {
- transform: translate3d(48vw, 22vh, 0) scale(1.12);
- }
- 60% {
- transform: translate3d(16vw, 58vh, 0) scale(0.94);
- }
- 80% {
- transform: translate3d(-6vw, 28vh, 0) scale(1.06);
- }
-}
-@keyframes neon-wander-b {
- 0%,
- 100% {
- transform: translate3d(0, 0, 0) scale(1);
- }
- 25% {
- transform: translate3d(-38vw, 32vh, 0) scale(1.08);
- }
- 55% {
- transform: translate3d(-58vw, 6vh, 0) scale(1.16);
- }
- 80% {
- transform: translate3d(-14vw, -6vh, 0) scale(0.96);
- }
-}
-@keyframes neon-wander-c {
- 0%,
- 100% {
- transform: translate3d(0, 0, 0) scale(1);
- }
- 30% {
- transform: translate3d(30vw, -34vh, 0) scale(1.1);
- }
- 55% {
- transform: translate3d(-12vw, -56vh, 0) scale(0.95);
- }
- 80% {
- transform: translate3d(8vw, -16vh, 0) scale(1.05);
- }
-}
-@keyframes neon-wander-d {
- 0%,
- 100% {
- transform: translate3d(0, 0, 0) scale(1);
- }
- 25% {
- transform: translate3d(34vw, -18vh, 0) scale(1.1);
- }
- 50% {
- transform: translate3d(64vw, 8vh, 0) scale(0.95);
- }
- 75% {
- transform: translate3d(28vw, 24vh, 0) scale(1.08);
- }
-}
-@keyframes neon-hue {
- from {
- filter: blur(88px) hue-rotate(-8deg);
- }
- to {
- filter: blur(88px) hue-rotate(12deg);
- }
-}
-
-/* ---------- Trend-line growth: draw from zero rightwards, hold, fade, loop ----------
- Paths must set pathLength=1; the dot pops in once the line has fully grown. */
-.anim-line-draw {
- stroke-dasharray: 1;
- stroke-dashoffset: 1;
- animation: line-draw var(--draw-dur, 4.6s) cubic-bezier(0.3, 0, 0.35, 1) infinite;
-}
-.anim-line-dot {
- opacity: 0;
- animation: line-dot var(--draw-dur, 4.6s) linear infinite;
-}
-@keyframes line-draw {
- 0% {
- stroke-dashoffset: 1;
- opacity: 1;
- }
- 55% {
- stroke-dashoffset: 0;
- opacity: 1;
- }
- 84% {
- stroke-dashoffset: 0;
- opacity: 1;
- }
- 94%,
- 100% {
- stroke-dashoffset: 0;
- opacity: 0;
- }
-}
-@keyframes line-dot {
- 0%,
- 52% {
- opacity: 0;
- }
- 58%,
- 84% {
- opacity: 1;
- }
- 94%,
- 100% {
- opacity: 0;
- }
-}
-
-@media (prefers-reduced-motion: reduce) {
- *,
- *::before,
- *::after {
- animation: none !important;
- transition: none !important;
- scroll-behavior: auto !important;
- }
- .reveal {
- opacity: 1;
- transform: none;
- }
- .hero-rotator {
- display: inline;
- overflow: visible;
- }
- .hero-rotator-word + .hero-rotator-word::before {
- content: " / ";
- }
- /* With animations disabled the trend lines' base state is hidden; restore them fully drawn. */
- .anim-line-draw {
- stroke-dashoffset: 0;
- opacity: 1;
- }
- .anim-line-dot {
- opacity: 1;
- }
- .anim-block {
- opacity: 1 !important;
- transform: none !important;
- }
-}
-
-/* ---------- Building blocks (LangChain comparison): React remounts both skylines on
- one shared cycle; each block then lands once at its positive delay and holds. */
-.anim-block {
- opacity: 0;
- transform: translateY(5px) scale(0.92);
- animation: block-land 220ms cubic-bezier(0.2, 0.75, 0.25, 1) var(--land-delay, 0s) both;
-}
-@keyframes block-land {
- from {
- opacity: 0;
- transform: translateY(5px) scale(0.92);
- }
- to {
- opacity: 1;
- transform: none;
- }
-}
-
-/* Printing never scrolls, so scroll-reveal must not hide content on paper/PDF. */
-@media print {
- .reveal {
- opacity: 1;
- transform: none;
- }
-}
-
-/* ---------- Minimal typography for Markdown body content (blog + CONTRACT.md) ---------- */
-
-.md-body {
- overflow-wrap: break-word;
-}
-.md-body :is(p, ul, ol, pre, blockquote, table, details) {
- margin: 0.625rem 0;
-}
-.md-body li {
- margin: 0.3rem 0;
-}
-.md-body p,
-.md-body li {
- line-height: 1.75;
-}
-.md-body :is(h1, h2, h3, h4) {
- font-weight: 600;
- margin: 1.25rem 0 0.5rem;
-}
-.md-body h1 {
- font-size: 1.375rem;
-}
-.md-body h2 {
- font-size: 1.125rem;
-}
-.md-body h3 {
- font-size: 1rem;
-}
-.md-body ul {
- list-style: disc;
- padding-left: 1.25rem;
-}
-.md-body ol {
- list-style: decimal;
- padding-left: 1.25rem;
-}
-.md-body a {
- @apply text-brand-700 underline decoration-brand-300 underline-offset-2 transition-colors hover:text-brand-600 dark:text-brand-300 dark:decoration-brand-700;
- /* `anywhere` rather than `word-break: break-all`: it only breaks a token that would otherwise
- overflow, so long URLs wrap cleanly (filling each line) while short Latin words in mixed
- CJK/Latin link text never split mid-word; unlike `break-word` it also counts the break
- opportunities toward min-content sizing, so a long link can't blow out flex/table layouts. */
- overflow-wrap: anywhere;
-}
-/* Font size only, so fenced blocks keep the size they have always had; the visible chrome below
- is scoped to inline code. */
-.md-body code {
- @apply text-[0.85em];
-}
-/* Inline code: a hairline outline over a barely-there brand wash, replacing the solid gray fill
- this used to carry — in prose dense with `code` that fill read as a row of heavy blocks. The
- chrome is scoped to inline code because the `.md-body pre code` reset below strips background,
- color and padding inside fenced blocks but would not strip a border. Prose often holds long
- unbroken paths and identifiers, so inline code gets the same `anywhere` treatment as links. */
-.md-body :not(pre) > code {
- @apply rounded-md border border-brand-200/60 bg-brand-50/40 px-[0.3em] py-[0.1em] text-[0.875em] text-gray-900 dark:border-brand-900/70 dark:bg-brand-950/50 dark:text-gray-100;
- overflow-wrap: anywhere;
-}
-.md-body pre {
- @apply overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 p-3 text-sm dark:border-gray-800 dark:bg-gray-900;
-}
-.md-body pre code {
- background: transparent;
- color: inherit;
- padding: 0;
-}
-.md-body blockquote {
- @apply border-l-2 border-gray-300 pl-3 text-gray-600 dark:border-gray-700 dark:text-gray-400;
-}
-/* <details>/<summary> — raw HTML that posts already use for long prompts and transcripts, and
- which the browser leaves entirely unstyled (a bare disclosure triangle against flat prose).
- Styled as a card in the same language as `pre`: 1px border, faint fill, rounded. The summary is
- the card's header, so it keeps the horizontal padding of the box and cancels it with a negative
- margin to stay full-bleed, which lets its hover tint reach the border. Open state adds a
- hairline under it, so an expanded block reads as header + body rather than one run of text.
-
- The disclosure marker is replaced rather than kept: the native one differs per engine and per
- platform and cannot be recolored. `list-style: none` removes it in Chrome and Firefox (where a
- summary is a list item) and the `::-webkit-details-marker` rule removes it in Safari; the
- substitute is a CSS chevron in `currentColor`, so it follows the theme for free and rotates a
- quarter turn on open. It is positioned against the first line (padding + half a line box), not
- the box's center, so a summary long enough to wrap keeps its chevron on line one. The global
- prefers-reduced-motion block below already neutralizes the rotation transition. */
-.md-body details {
- @apply rounded-lg border border-gray-200 bg-gray-50/60 px-3.5 dark:border-gray-800 dark:bg-gray-900/40;
-}
-.md-body details[open] {
- @apply pb-2.5;
-}
-.md-body summary {
- @apply relative -mx-3.5 cursor-pointer rounded-lg py-2 pr-3.5 pl-8 font-medium transition-colors select-none hover:bg-gray-200/50 dark:hover:bg-gray-800/50;
- list-style: none;
-}
-.md-body summary::-webkit-details-marker {
- display: none;
-}
-.md-body summary::before {
- content: "";
- position: absolute;
- left: 1.125rem;
- top: calc(0.5rem + 0.75em);
- width: 0.4em;
- height: 0.4em;
- border-right: 1.5px solid currentColor;
- border-bottom: 1.5px solid currentColor;
- opacity: 0.6;
- transform: translate(-50%, -50%) rotate(-45deg);
- transition: transform 150ms ease;
-}
-.md-body details[open] > summary {
- @apply mb-1 rounded-b-none border-b border-gray-200 dark:border-gray-800;
-}
-.md-body details[open] > summary::before {
- transform: translate(-50%, -50%) rotate(45deg);
-}
-/* The last block inside an open card keeps the card's own bottom padding as its only gutter. */
-.md-body details > :last-child {
- margin-bottom: 0;
-}
-/* Tables: `display: block` + `overflow-x: auto` makes the table its own scroll container, so a
- wide one scrolls inside the prose column instead of widening the page. `border-collapse:
- separate` with zero spacing rather than `collapse`: collapsed borders come from a shared-edge
- model that paints inconsistently under the translucent row tints below, while separate borders
- keep every cell's own hairline crisp behind a semi-transparent fill — the per-side rules below
- rebuild the single-hairline grid.
-
- `width: max-content` keeps a table narrower than the prose column at its own width. A
- `display: block` table is a block box, so its width would otherwise default to the container's
- while the rows inside stay at their own — leaving an empty strip past the last cell that any
- edge decoration paints into. `max-width: 100%` still clamps a wide one, so it scrolls.
-
- Deliberately undecorated edges: an earlier revision drew CSS scroll shadows here as an overflow
- cue, and they were dropped as visual noise. The trade-off is real — on overlay-scrollbar
- platforms the scrollbar reserves no layout space and stays invisible until you scroll — so a
- wide table now announces itself only by being clipped at the column edge. */
-.md-body table {
- border-collapse: separate;
- border-spacing: 0;
- display: block;
- overflow-x: auto;
- width: max-content;
- max-width: 100%;
- scrollbar-width: thin;
-}
-/* Cells wrap, with a floor. `white-space: nowrap` used to hold every cell on one line, which sent
- even a mildly wide table into horizontal scroll; the ask now is that a cell may take a second
- line, and only past that should the table widen and scroll instead of growing into a paragraph.
-
- CSS cannot count lines, so the knob is `min-width`: a column is never squeezed below 9rem, and
- once the columns' floors add up past the prose column the table overflows and horizontal
- scrolling takes over. 9rem is ~16 Latin / 8 CJK characters of text at this size, and it
- is the largest floor that still leaves every table in the blog at one line inside the 720px
- prose column — the widest, the 4-column benchmark table, lands at 697px. At 10rem that same
- table fills the column exactly and its header starts wrapping; at 12rem it scrolls on the
- desktop it fits on today.
-
- What this does not do: a two-column table whose second column is a sentence still wraps past
- two lines on a phone, because two 9rem floors fit inside a 390px viewport so nothing overflows
- and nothing scrolls. Raising the floor until it does makes that case *worse* (the prose column
- gets narrower, so the line count goes up). A cell holding 150+ characters of prose is a content
- problem — it wants a definition list, not a table row. */
-.md-body :is(th, td) {
- @apply border-r border-b border-gray-200 px-2.5 py-1.5 text-sm dark:border-gray-800;
- min-width: 9rem;
-}
-.md-body :is(th, td):first-child {
- @apply border-l;
-}
-/* Header and zebra stripes are translucent, like the blog cards: the page (and its ambient
- backdrop) reads through them, so the grid layers over the page instead of sitting on a slab. */
-.md-body thead :is(th, td) {
- @apply border-t bg-gray-200/50 text-left font-semibold dark:bg-gray-800/60;
-}
-.md-body tbody tr:nth-child(even) {
- @apply bg-gray-100/70 dark:bg-gray-800/35;
-}
-.md-body hr {
- @apply my-4 border-gray-200 dark:border-gray-800;
-}
diff --git a/packages/landing/test/agent-glyph-sync.test.ts b/packages/landing/test/agent-glyph-sync.test.ts
deleted file mode 100644
index bb1fb00e..00000000
--- a/packages/landing/test/agent-glyph-sync.test.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * Landing ↔ Web App agent-glyph sync: the page that sells the product and the product itself
- * draw the Agent with the same mark (the shared UI package's `ICONS.robot`), and there is no
- * shared module to draw it from — the landing page deliberately carries zero icon dependencies,
- * so the path exists twice.
- *
- * A copy is exactly what drifts: this glyph was hand-copied once before (the new-chat page's
- * example folder) and quietly stayed on the old drawing the day it was redrawn. Both sides are
- * read as text rather than imported, because text is what the duplication actually is.
- */
-import { readFileSync } from "node:fs";
-import { join } from "node:path";
-import { describe, expect, it } from "vitest";
-
-const webGlyphSource = join(__dirname, "..", "..", "ui", "src", "components", "icons", "icons.ts");
-const landingIconsSource = join(__dirname, "..", "src", "components", "icons.tsx");
-
-/** The registry's `robot: "…"` entry, however prettier has wrapped it. */
-function webAgentGlyph(): string | null {
- const source = readFileSync(webGlyphSource, "utf8");
- return /\brobot:\s*"([^"]+)"/.exec(source)?.[1] ?? null;
-}
-
-/** The single `<path d="…">` of the landing set's BotIcon. */
-function landingBotGlyph(): string | null {
- const source = readFileSync(landingIconsSource, "utf8");
- const body = /export function BotIcon\([\s\S]*?\n}/.exec(source)?.[0] ?? "";
- const paths = [...body.matchAll(/<path d="([^"]+)"/g)].map((m) => m[1]);
- return paths.length === 1 ? (paths[0] ?? null) : null;
-}
-
-describe("landing ↔ Web App agent glyph", () => {
- it("finds both sides", () => {
- expect(webAgentGlyph()).not.toBeNull();
- // null also means BotIcon stopped being a single path, which is what makes it comparable.
- expect(landingBotGlyph()).not.toBeNull();
- });
-
- it("draws the same Agent", () => {
- expect(landingBotGlyph()).toBe(webAgentGlyph());
- });
-});
diff --git a/packages/landing/test/announcements.test.ts b/packages/landing/test/announcements.test.ts
deleted file mode 100644
index b10381d4..00000000
--- a/packages/landing/test/announcements.test.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * Every announcement that links into the blog lands on a post that exists in both languages.
- * The link's type only promises a `/blog/…` path, so a mistyped slug still type-checks and the
- * slide opens the not-found page. getPost falls back to the other language when the requested
- * one is missing, so each result's `lang` is checked, not just its presence. Off-site links
- * (`href`) are not fetched.
- */
-import { describe, expect, it } from "vitest";
-import { ANNOUNCEMENTS, type Announcement } from "../src/lib/announcements";
-import { getPost } from "../src/lib/blog";
-
-describe("announcement blog links", () => {
- it("resolve to a post in both languages", () => {
- const announcements: readonly Announcement[] = ANNOUNCEMENTS;
- for (const { to } of announcements) {
- if (to === undefined) continue;
- const slug = to.slice("/blog/".length);
- for (const lang of ["en", "zh"] as const) {
- const post = getPost(slug, lang);
- expect(post, `${to} (${lang})`).toBeDefined();
- expect(post?.lang, `${to} (${lang})`).toBe(lang);
- }
- }
- });
-});
diff --git a/packages/landing/test/benchmark-data.test.ts b/packages/landing/test/benchmark-data.test.ts
deleted file mode 100644
index 134e08ff..00000000
--- a/packages/landing/test/benchmark-data.test.ts
+++ /dev/null
@@ -1,64 +0,0 @@
-import { describe, expect, it } from "vitest";
-import {
- CODE_BENCH,
- DATA_BENCH,
- costMultiple,
- formatAccuracy,
- formatPct,
- formatTokensM,
- formatUsd,
-} from "../src/lib/benchmark-data";
-
-describe("benchmark data (unified suite totals)", () => {
- it("formats the data-analysis suite at its published precision", () => {
- const penguin = DATA_BENCH[0]!;
- expect(formatPct(penguin.accuracyPct)).toBe("66.67%");
- expect(formatAccuracy(penguin.accuracyPct, 2)).toBe("66.67");
- expect(formatTokensM(penguin.tokensM, 2)).toBe("18.04M");
- expect(formatUsd(penguin.costUsd, 2)).toBe("$0.55");
- });
-
- it("formats the coding suite at its published precision", () => {
- const penguin = CODE_BENCH[0]!;
- expect(formatAccuracy(penguin.accuracyPct, 2)).toBe("71.25");
- expect(formatTokensM(penguin.tokensM, 2)).toBe("200.00M");
- expect(formatUsd(penguin.costUsd, 2)).toBe("$3.81");
- });
-
- it("keeps every published accuracy on its suite's grid (n=15 and n=80)", () => {
- // 10/15 -> 66.67, 8/15 -> 53.33; 57/80 -> 71.25, 69/80 -> 86.25. A number off the grid
- // means a transcription slip, which the charts would render without complaint.
- for (const row of DATA_BENCH)
- expect(Math.round((row.accuracyPct / 100) * 15)).toBeCloseTo((row.accuracyPct / 100) * 15, 1);
- for (const row of CODE_BENCH) expect(((row.accuracyPct / 100) * 80) % 1).toBeCloseTo(0, 6);
- });
-
- it("backs the copy's cost claims: 35x/70x on data analysis, 58x/39x on coding", () => {
- const [dPenguin, dClaude, dCodex] = DATA_BENCH as [
- (typeof DATA_BENCH)[0],
- (typeof DATA_BENCH)[0],
- (typeof DATA_BENCH)[0],
- ];
- expect(costMultiple(dCodex, dPenguin)).toBe(35);
- expect(costMultiple(dClaude, dPenguin)).toBe(70);
- const [cPenguin, cClaude, cCodex] = CODE_BENCH as [
- (typeof CODE_BENCH)[0],
- (typeof CODE_BENCH)[0],
- (typeof CODE_BENCH)[0],
- ];
- expect(costMultiple(cCodex, cPenguin)).toBe(58);
- expect(costMultiple(cClaude, cPenguin)).toBe(39);
- });
-
- it("pairs each harness with its own model and emphasizes only PenguinHarness", () => {
- for (const suite of [DATA_BENCH, CODE_BENCH]) {
- expect(suite.map((r) => r.framework)).toEqual([
- "PenguinHarness",
- "Claude Code",
- "OpenAI Codex",
- ]);
- expect(suite.filter((r) => r.emphasized).map((r) => r.framework)).toEqual(["PenguinHarness"]);
- expect(suite.map((r) => r.model)).toEqual(["DeepSeek V4 Pro", "Claude Opus 4.8", "GPT-5.5"]);
- }
- });
-});
diff --git a/packages/landing/test/blog-content.test.ts b/packages/landing/test/blog-content.test.ts
deleted file mode 100644
index 968d7201..00000000
--- a/packages/landing/test/blog-content.test.ts
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Blog content integrity, the counterpart of packages/docs/test/content.test.ts for the blog:
- * content/blog is read from disk (no Vite glob), so the checks run under plain node. Three
- * things a post can get wrong today without anything failing:
- *
- * - A missing translation. src/lib/blog.ts documents a deliberate fallback ("a post missing the
- * active language falls back to the other one"), so deleting a .zh.md serves the English text
- * on the Chinese site and no test notices.
- * - Frontmatter that disagrees across the pair. `date`, `category` and `pinned` feed comparePosts,
- * so a one-character divergence orders one language's list differently — and only that one's.
- * - A link to a docs page that does not exist. Posts send readers to
- * https://penguin.ooo/docs/<slug>, and a renamed or dropped page leaves a 404 behind.
- * packages/docs/src/lib/nav.ts is deliberately kept import.meta-free so a test can import
- * DOC_SLUGS under plain node, which is what this one does.
- *
- * Deliberately not checked here: /blog-assets/<name>. Those bytes live in the separate
- * Prism-Shadow/penguin-harness-community repository, so this repository holds nothing to resolve
- * an asset name against; a typo'd name can only be caught where the files are.
- */
-import { readdirSync, readFileSync } from "node:fs";
-import { join } from "node:path";
-import { describe, expect, it } from "vitest";
-import { DOC_SLUGS } from "../../docs/src/lib/nav";
-import { parseFrontmatter } from "../src/lib/frontmatter";
-
-const contentDir = join(__dirname, "..", "content", "blog");
-const LANGS = ["en", "zh"] as const;
-
-/** The categories src/lib/blog.ts maps; anything else silently becomes "news". */
-const CATEGORIES = new Set(["news", "practice", "perspectives", "changelog"]);
-
-const files = readdirSync(contentDir).filter((f) => f.endsWith(".md"));
-
-/** Post slugs in the directory, from the `<slug>.<lang>.md` file names. */
-const slugs = [
- ...new Set(
- files
- .map((file) => /^(.+)\.(zh|en)\.md$/.exec(file)?.[1])
- .filter((slug): slug is string => slug !== undefined),
- ),
-].sort();
-
-const read = (slug: string, lang: string) =>
- parseFrontmatter(readFileSync(join(contentDir, `${slug}.${lang}.md`), "utf8"));
-
-/**
- * Docs pages a post links to: every `https://penguin.ooo/docs/<slug>` occurrence, whether it sits
- * in a Markdown link, an autolink or bare prose. A trailing slash, an anchor and a query string
- * are all stripped — the router only ever sees the slug.
- */
-function docsLinks(body: string): string[] {
- const slugs = [...body.matchAll(/https:\/\/penguin\.ooo\/docs\/([^)\s"'<>]*)/g)].map((match) =>
- match[1]!.split(/[#?]/)[0]!.replace(/\/+$/, ""),
- );
- // The bare docs root names no page, so it is always valid.
- return slugs.filter((slug) => slug !== "");
-}
-
-describe("blog content integrity", () => {
- it("names every content file <slug>.<zh|en>.md", () => {
- expect(files.length).toBeGreaterThan(0);
- for (const file of files) {
- expect(/^(.+)\.(zh|en)\.md$/.test(file), `unparsable content file name ${file}`).toBe(true);
- }
- });
-
- it("provides zh and en files with a title, an excerpt and a body for every post", () => {
- expect(slugs.length).toBeGreaterThan(0);
- for (const slug of slugs) {
- for (const lang of LANGS) {
- const name = `${slug}.${lang}.md`;
- // A missing file is served by the other language's text, so presence is the whole check.
- expect(files, `missing content file ${name}`).toContain(name);
- const { meta, body } = read(slug, lang);
- expect(meta.title, `missing title in ${name}`).toBeTruthy();
- expect(meta.excerpt, `missing excerpt in ${name}`).toBeTruthy();
- expect(body.length, `empty body in ${name}`).toBeGreaterThan(0);
- }
- }
- });
-
- it("gives both languages of a post the same date, category and pinned flag", () => {
- for (const slug of slugs) {
- const en = read(slug, "en").meta;
- const zh = read(slug, "zh").meta;
- expect(zh.date, `${slug}: date differs between en and zh`).toBe(en.date);
- expect(zh.category, `${slug}: category differs between en and zh`).toBe(en.category);
- // `pinned` is absent on an unpinned post, so the flag is compared, not the raw text.
- expect(zh.pinned === "true", `${slug}: pinned differs between en and zh`).toBe(
- en.pinned === "true",
- );
- }
- });
-
- it("gives every post a date and a known category", () => {
- for (const slug of slugs) {
- for (const lang of LANGS) {
- const { meta } = read(slug, lang);
- expect(meta.date, `malformed date in ${slug}.${lang}.md`).toMatch(/^\d{4}-\d{2}-\d{2}$/);
- expect([...CATEGORIES], `unknown category in ${slug}.${lang}.md`).toContain(meta.category);
- }
- }
- });
-
- it("links only to docs pages the docs site navigates", () => {
- for (const file of files) {
- const { body } = parseFrontmatter(readFileSync(join(contentDir, file), "utf8"));
- const dangling = docsLinks(body).filter((slug) => !DOC_SLUGS.includes(slug));
- expect(dangling, `links to non-existent docs pages in ${file}`).toEqual([]);
- }
- });
-});
diff --git a/packages/landing/test/blog-post-anchors.test.ts b/packages/landing/test/blog-post-anchors.test.ts
deleted file mode 100644
index 93ecd065..00000000
--- a/packages/landing/test/blog-post-anchors.test.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * In-page anchors of a blog post, through the page's own render pipeline (react-dom/server
- * static markup, node env): a hand-written "[label](#anchor)" link and a TOC entry must both
- * resolve — via the hash a browser reports for them, then hashTargetId — to the id of a
- * rendered heading. CJK headings are the case that matters: their anchors reach
- * location.hash percent-encoded. Checked on a fixture and on every post file on disk (read
- * via fs, both languages).
- */
-import { readdirSync, readFileSync } from "node:fs";
-import { join } from "node:path";
-import { createElement } from "react";
-import { renderToStaticMarkup } from "react-dom/server";
-import Markdown from "react-markdown";
-import { describe, expect, it } from "vitest";
-import { MD_COMPONENTS, REHYPE_PLUGINS, REMARK_PLUGINS } from "../src/pages/blog-post";
-import { parseFrontmatter } from "../src/lib/frontmatter";
-import { hashTargetId } from "../src/lib/hash";
-import { extractToc } from "../src/lib/toc";
-
-const contentDir = join(__dirname, "..", "content", "blog");
-const files = readdirSync(contentDir).filter((f) => f.endsWith(".md"));
-
-const render = (body: string) =>
- renderToStaticMarkup(
- createElement(
- Markdown,
- { remarkPlugins: REMARK_PLUGINS, rehypePlugins: REHYPE_PLUGINS, components: MD_COMPONENTS },
- body,
- ),
- );
-
-/** Ids of the rendered h2/h3 headings, in document order. */
-const headingIds = (html: string) =>
- [...html.matchAll(/<h[23] id="([^"]*)"/g)].map((match) => match[1]!);
-
-/** Hrefs of the rendered in-page links ("#..."), in document order. */
-const inPageHrefs = (html: string) =>
- [...html.matchAll(/<a\b[^>]*\bhref="(#[^"]*)"/g)].map((match) => match[1]!);
-
-/** The element id a click on `href` targets: the hash the browser reports, then hashTargetId. */
-const targetOf = (href: string) =>
- hashTargetId(new URL(href, "https://example.test/blog/post").hash);
-
-describe("blog post in-page anchors", () => {
- it("resolves a hand-written link and a TOC entry to a CJK heading", () => {
- const body = [
- "## 升级须知",
- "",
- "见下方[升级须知](#升级须知)。",
- "",
- "### 为什么是 PenguinHarness",
- "",
- "详见[这一节](#为什么是-penguinharness)。",
- ].join("\n");
- const html = render(body);
- const ids = headingIds(html);
- expect(ids).toEqual(["升级须知", "为什么是-penguinharness"]);
- const hrefs = inPageHrefs(html);
- // The renderer emits the link percent-encoded, which is also what location.hash reports.
- expect(hrefs[0]).toBe("#%E5%8D%87%E7%BA%A7%E9%A1%BB%E7%9F%A5");
- expect(hrefs.map(targetOf)).toEqual(ids);
- // A TOC entry links to `#${entry.id}`.
- expect(extractToc(body).map((entry) => targetOf(`#${entry.id}`))).toEqual(ids);
- });
-
- it("resolves every post's in-page links and TOC entries to a rendered heading", () => {
- expect(files.length).toBeGreaterThan(0);
- for (const file of files) {
- const { body } = parseFrontmatter(readFileSync(join(contentDir, file), "utf8"));
- const html = render(body);
- const ids = new Set(headingIds(html));
- const tocMisses = extractToc(body)
- .map((entry) => `#${entry.id}`)
- .filter((href) => !ids.has(targetOf(href)));
- expect(tocMisses, `TOC entries naming no rendered heading in ${file}`).toEqual([]);
- const dangling = inPageHrefs(html).filter((href) => !ids.has(targetOf(href)));
- expect(dangling, `dangling in-page anchors in ${file}`).toEqual([]);
- }
- // Renders every post through the full markdown pipeline: on hosted runners that alone sits at
- // the 5 s default, so the budget grows with the blog rather than flaking at its edge.
- }, 30_000);
-});
diff --git a/packages/landing/test/blog-post-html.test.ts b/packages/landing/test/blog-post-html.test.ts
deleted file mode 100644
index 425c3877..00000000
--- a/packages/landing/test/blog-post-html.test.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * Raw-HTML rendering contract for post bodies, via react-dom/server static markup.
- *
- * Post bodies are first-party Markdown in this repo, so the blog renderer enables `rehype-raw`
- * (see the boundary note on REHYPE_PLUGINS in src/pages/blog-post.tsx). These tests pin the two
- * halves of that: the raw tags posts actually use become elements, and the surrounding Markdown
- * still parses — a `<details>` body is separated from its tags by blank lines precisely so the
- * fenced code inside it stays Markdown.
- */
-import { describe, expect, it } from "vitest";
-import { createElement } from "react";
-import { renderToStaticMarkup } from "react-dom/server";
-import Markdown from "react-markdown";
-import { MdImage, REHYPE_PLUGINS, REMARK_PLUGINS } from "../src/pages/blog-post";
-import { blogAssetUrl } from "../src/lib/links";
-
-const render = (markdown: string) =>
- renderToStaticMarkup(
- createElement(
- Markdown,
- { remarkPlugins: REMARK_PLUGINS, rehypePlugins: REHYPE_PLUGINS },
- markdown,
- ),
- );
-
-/** Same pipeline plus the image adapter the page installs. */
-const renderWithImages = (markdown: string) =>
- renderToStaticMarkup(
- createElement(
- Markdown,
- {
- remarkPlugins: REMARK_PLUGINS,
- rehypePlugins: REHYPE_PLUGINS,
- components: { img: MdImage },
- },
- markdown,
- ),
- );
-
-const DETAILS = `<details>
-<summary><strong>Expand: the layout</strong></summary>
-
-\`\`\`text
-benchmark_config.toml
-\`\`\`
-
-</details>
-`;
-
-describe("blog post raw HTML", () => {
- it("renders <details>/<summary> as elements, not escaped text", () => {
- const html = render(DETAILS);
- expect(html).toContain("<details>");
- expect(html).toContain("<summary><strong>Expand: the layout</strong></summary>");
- expect(html).not.toContain("&lt;details&gt;");
- });
-
- it("keeps the Markdown inside a <details> body as Markdown", () => {
- const html = render(DETAILS);
- expect(html).toContain("<pre>");
- expect(html).toContain("benchmark_config.toml");
- });
-
- it("renders the inline <img> attributes posts use", () => {
- const html = render('<img width="491" height="481" alt="A screenshot" src="/a.png" />');
- expect(html).toContain('alt="A screenshot"');
- expect(html).toContain('width="491"');
- expect(html).not.toContain("&lt;img");
- });
-
- it("still escapes angle brackets inside code spans", () => {
- const html = render("Snapshots live at `snapshots/v<version>.tar.gz`.");
- expect(html).toContain("<code>snapshots/v&lt;version&gt;.tar.gz</code>");
- });
-});
-
-/**
- * Blog images are not committed to this repo — they are hosted in the community repo, and post
- * bodies keep writing the portable `/blog-assets/<name>` path. What has to hold is therefore not
- * that a local file exists, but that the renderer resolves that path to the hosted URL; anything
- * else a post embeds must be left alone.
- */
-describe("blog post images", () => {
- const HOSTED = blogAssetUrl("rag-app-en-light.webp");
-
- it("resolves a Markdown /blog-assets/ image to the community repo", () => {
- const html = renderWithImages("![The generated RAG app](/blog-assets/rag-app-en-light.webp)");
- expect(html).toContain(`src="${HOSTED}"`);
- expect(html).not.toContain('src="/blog-assets/');
- expect(html).toContain('alt="The generated RAG app"');
- });
-
- it("resolves raw <img> tags too, keeping their attributes", () => {
- const html = renderWithImages(
- '<img class="dark:hidden" src="/blog-assets/goal-mode-en-light.webp" alt="Goal mode" width="1920" height="1350" />',
- );
- expect(html).toContain(`src="${blogAssetUrl("goal-mode-en-light.webp")}"`);
- expect(html).toContain('class="dark:hidden"');
- expect(html).toContain('width="1920"');
- expect(html).toContain('height="1350"');
- });
-
- it("leaves every other image source untouched", () => {
- const external = "https://github.com/user-attachments/assets/a0d866e9";
- const html = renderWithImages(`![Local config](${external})\n\n![Site asset](/og-cover.png)`);
- expect(html).toContain(`src="${external}"`);
- expect(html).toContain('src="/og-cover.png"');
- });
-});
diff --git a/packages/landing/test/blog-post-links.test.ts b/packages/landing/test/blog-post-links.test.ts
deleted file mode 100644
index aa9b3739..00000000
--- a/packages/landing/test/blog-post-links.test.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * Blog post link rendering contract, via react-dom/server static markup (node env, no DOM):
- * every link in a post body — explicit [text](url), bare autolinked URL (remark-gfm), relative
- * or #anchor — opens in a new tab (target="_blank" + rel="noreferrer"), and the optional
- * markdown link title survives the adapter's prop forwarding.
- */
-import { describe, expect, it } from "vitest";
-import { createElement } from "react";
-import { renderToStaticMarkup } from "react-dom/server";
-import Markdown from "react-markdown";
-import remarkGfm from "remark-gfm";
-import { MdLink } from "../src/pages/blog-post";
-
-const render = (markdown: string) =>
- renderToStaticMarkup(
- createElement(Markdown, { remarkPlugins: [remarkGfm], components: { a: MdLink } }, markdown),
- );
-
-/** All rendered <a ...> opening tags. */
-const anchors = (html: string) => html.match(/<a\b[^>]*>/g) ?? [];
-
-const expectNewTab = (tag: string | undefined) => {
- expect(tag).toContain('target="_blank"');
- expect(tag).toContain('rel="noreferrer"');
-};
-
-describe("blog post links", () => {
- it("external markdown links open in a new tab", () => {
- const html = render("See [the source](https://blog.google/gemini) for the numbers.");
- const tags = anchors(html);
- expect(tags).toHaveLength(1);
- expect(tags[0]).toContain('href="https://blog.google/gemini"');
- expectNewTab(tags[0]);
- expect(html).toContain(">the source</a>");
- });
-
- it("internal links open in a new tab too (unconditional, per the owner's ask)", () => {
- const html = render("[practice post](/blog/natural-language-training-loop) and [top](#intro)");
- const tags = anchors(html);
- expect(tags).toHaveLength(2);
- expect(tags[0]).toContain('href="/blog/natural-language-training-loop"');
- for (const tag of tags) expectNewTab(tag);
- });
-
- it("bare autolinked URLs in CJK prose open in a new tab", () => {
- const html = render("详见 https://example.com/a/very/long/path 的说明。");
- const tags = anchors(html);
- expect(tags).toHaveLength(1);
- expect(tags[0]).toContain('href="https://example.com/a/very/long/path"');
- expectNewTab(tags[0]);
- });
-
- it('preserves the markdown link title from [text](url "title")', () => {
- const html = render('Read [docs](https://example.com "API docs") first.');
- const tags = anchors(html);
- expect(tags).toHaveLength(1);
- expect(tags[0]).toContain('title="API docs"');
- expectNewTab(tags[0]);
- });
-});
diff --git a/packages/landing/test/blog.test.ts b/packages/landing/test/blog.test.ts
deleted file mode 100644
index 0a7e3a54..00000000
--- a/packages/landing/test/blog.test.ts
+++ /dev/null
@@ -1,151 +0,0 @@
-import { describe, expect, it } from "vitest";
-import {
- DEFAULT_AUTHOR,
- comparePosts,
- formatAuthors,
- formatPostDate,
- getPost,
- parseAuthors,
- postsFor,
-} from "../src/lib/blog";
-
-const entry = (pinned: boolean, date: string, slug: string) => ({ pinned, date, slug });
-
-describe("comparePosts", () => {
- it("sorts pinned first, then date desc, then slug", () => {
- const sorted = [
- entry(false, "2026-07-20", "beta"),
- entry(false, "2026-07-21", "newest"),
- entry(true, "2026-07-01", "pinned-old"),
- entry(false, "2026-07-20", "alpha"),
- ].sort(comparePosts);
- expect(sorted.map((p) => p.slug)).toEqual(["pinned-old", "newest", "alpha", "beta"]);
- });
-
- it("orders two pinned posts by date desc", () => {
- const sorted = [entry(true, "2026-07-01", "old"), entry(true, "2026-07-20", "new")].sort(
- comparePosts,
- );
- expect(sorted.map((p) => p.slug)).toEqual(["new", "old"]);
- });
-});
-
-describe("formatPostDate", () => {
- it("formats en dates as long US dates", () => {
- expect(formatPostDate("2026-06-18", "en")).toBe("June 18, 2026");
- expect(formatPostDate("2026-07-20", "en")).toBe("July 20, 2026");
- });
-
- it("formats zh dates as year-month-day", () => {
- expect(formatPostDate("2026-06-18", "zh")).toBe("2026年6月18日");
- expect(formatPostDate("2026-07-20", "zh")).toBe("2026年7月20日");
- });
-
- it("interprets the date in UTC so the calendar day never shifts", () => {
- // 2026-01-01 rendered in a western timezone would show Dec 31 without UTC pinning.
- expect(formatPostDate("2026-01-01", "en")).toBe("January 1, 2026");
- });
-
- it("falls back to the raw string for unexpected input", () => {
- expect(formatPostDate("", "en")).toBe("");
- expect(formatPostDate("not-a-date", "zh")).toBe("not-a-date");
- });
-
- it("falls back to the raw string for impossible calendar dates", () => {
- expect(formatPostDate("2026-02-31", "en")).toBe("2026-02-31");
- expect(formatPostDate("2026-13-01", "en")).toBe("2026-13-01");
- expect(formatPostDate("2026-04-00", "zh")).toBe("2026-04-00");
- });
-});
-
-describe("parseAuthors / formatAuthors", () => {
- it("splits comma-class separators and trims", () => {
- expect(parseAuthors("A (AMD), B(X)、C ,D")).toEqual(["A (AMD)", "B(X)", "C", "D"]);
- });
-
- it("falls back to the default byline when absent or blank", () => {
- expect(parseAuthors(undefined)).toEqual([DEFAULT_AUTHOR]);
- expect(parseAuthors(" ")).toEqual([DEFAULT_AUTHOR]);
- });
-
- it("joins with a comma in English and an ideographic comma in Chinese", () => {
- expect(formatAuthors(["A", "B"], "en")).toBe("A, B");
- expect(formatAuthors(["A", "B"], "zh")).toBe("A、B");
- expect(formatAuthors(["A"], "en")).toBe("A");
- });
-});
-
-describe("frontmatter mapping (author / pinned / category)", () => {
- it("defaults authors and pinned when the frontmatter omits them", () => {
- const post = getPost("july-2026-updates", "en");
- expect(post?.authors).toEqual([DEFAULT_AUTHOR]);
- expect(post?.pinned).toBe(false);
- });
-
- it("reads the explicit author list and the practice category", () => {
- const post = getPost("local-agents-on-amd-gpus", "en");
- expect(post?.authors).toEqual([
- "Ning Zhang (AMD)",
- "Yuyang Gao (AMD)",
- "Yaowei Zheng (PrismShadow)",
- ]);
- expect(post?.category).toBe("practice");
- expect(post?.pinned).toBe(false);
- });
-
- it("reads the pinned flag and sorts the pinned post first", () => {
- for (const locale of ["en", "zh"] as const) {
- const posts = postsFor(locale);
- expect(posts.length).toBe(24);
- // The launch post stays the single pinned post; newer posts sort under it by date.
- expect(posts.filter((p) => p.pinned).map((p) => p.slug)).toEqual([
- "introducing-penguinharness",
- ]);
- expect(posts[0]?.slug).toBe("introducing-penguinharness");
- // Pinning beats recency: the runner-up is strictly newer than the pinned post. Asserted
- // as a relation rather than a slug, because the newest date is shared by several posts
- // and the slug tie-break makes any single winner churn whenever a post is added.
- expect(posts[1]!.date > posts[0]!.date).toBe(true);
- }
- });
-
- it("filters by the practice category, newest first", () => {
- expect(postsFor("en", "practice").map((p) => p.slug)).toEqual([
- // Both share 2026-09-16, so slug ascending is the tie-break.
- "connect-agents-to-feishu-qq-telegram-wechat",
- "create-evaluate-evolve-agents",
- "natural-language-training-loop",
- "penguin-harness-self-improvement-with-amd-gpu",
- "local-agents-on-amd-gpus",
- ]);
- });
-
- it("filters by the news category, newest first", () => {
- expect(postsFor("en", "news").map((p) => p.slug)).toEqual([
- "introducing-penguinharness",
- "penguinharness-0-2-13",
- "penguinharness-0-2-11",
- "penguinharness-0-2-6",
- "penguinharness-0-2-4",
- "penguinharness-0-2-3",
- "penguinharness-0-2-2",
- "penguinharness-0-2-1",
- "penguinharness-0-2-0",
- "penguinharness-0-1-5",
- "penguinharness-0-1-4",
- "free-models-in-penguin-harness",
- "gemini-3-6-in-penguinharness",
- "fireworks-credits-amd",
- ]);
- });
-
- it("filters by the perspectives category", () => {
- expect(postsFor("en", "perspectives").map((p) => p.slug)).toEqual([
- "agent-company-mode",
- // The next three share 2026-07-22, so slug ascending is the tie-break.
- "ai-infrastructure-past-present-future",
- "easiest-way-to-build-ai-agents-2026",
- "simple-harness-is-all-you-need",
- ]);
- });
-});
diff --git a/packages/landing/test/download-source.test.ts b/packages/landing/test/download-source.test.ts
deleted file mode 100644
index b7f3990a..00000000
--- a/packages/landing/test/download-source.test.ts
+++ /dev/null
@@ -1,218 +0,0 @@
-/**
- * The download page's half of the shared auto-mode rule. The measurement itself needs a browser
- * (see lib/download-source.ts on why throughput is read from a Resource Timing entry), so what is
- * pinned here is the decision the measurements feed and the manifest parsing that names the probe.
- * The installers run the same table against their own implementations in scripts/test-installer.sh.
- */
-import { describe, expect, it } from "vitest";
-import { OSS_ORIGIN } from "../src/lib/links";
-import type { Measurement } from "../src/lib/download-source";
-import {
- MIRROR_POINTER_MS,
- SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND,
- createDeadline,
- decideDownloadSource,
- decideDownloadSourceWithReport,
- parseMirror,
- parseProbes,
- selectDownloadSource,
- toMirror,
- worthRefining,
-} from "../src/lib/download-source";
-
-const MIN = SPEED_PROBE_GITHUB_MIN_BYTES_PER_SECOND;
-
-describe("selectDownloadSource", () => {
- it("keeps GitHub at the minimum however fast the mirror is", () => {
- expect(selectDownloadSource(MIN, 100 * MIN)).toBe("github");
- expect(selectDownloadSource(MIN + 1, 100 * MIN)).toBe("github");
- });
-
- it("switches to the mirror only when it beats a below-minimum GitHub by more than 1.5x", () => {
- const github = MIN / 2;
- expect(selectDownloadSource(github, github * 1.51)).toBe("oss");
- expect(selectDownloadSource(github, github * 1.5)).toBe("github");
- expect(selectDownloadSource(github, github * 1.4)).toBe("github");
- expect(selectDownloadSource(github, github)).toBe("github");
- expect(selectDownloadSource(github, github / 2)).toBe("github");
- });
-
- it("treats an unmeasurable source as the slowest one, and a dead heat as free bandwidth", () => {
- expect(selectDownloadSource(0, 1)).toBe("oss");
- expect(selectDownloadSource(MIN / 2, 0)).toBe("github");
- expect(selectDownloadSource(0, 0)).toBe("github");
- });
-});
-
-const TAG = "v1.2.3";
-const MANIFEST = [
- `penguin-release-download-manifest\t1\t${TAG}`,
- "probe\tsmall\tprobe-64k.bin\t65536\t" + "a".repeat(64),
- "probe\tlarge\tprobe-1m.bin\t1048576\t" + "b".repeat(64),
- "asset\tpenguin-desktop-win32-x64.exe\t104857600\t" + "c".repeat(64),
- "",
-].join("\n");
-
-describe("parseProbes", () => {
- it("reads both probe rows of a manifest for this exact tag", () => {
- expect(parseProbes(MANIFEST, TAG)).toEqual({
- small: { file: "probe-64k.bin", size: 65536 },
- large: { file: "probe-1m.bin", size: 1048576 },
- });
- });
-
- it("refuses a manifest published for another tag", () => {
- expect(parseProbes(MANIFEST, "v9.9.9")).toBeNull();
- });
-
- it("refuses a probe name that is not a plain asset name", () => {
- const escaped = MANIFEST.replace("probe-1m.bin", "../../etc/passwd");
- expect(parseProbes(escaped, TAG)).toBeNull();
- });
-
- it("refuses a size that is not a positive integer", () => {
- expect(parseProbes(MANIFEST.replace("\t1048576\t", "\t0\t"), TAG)).toBeNull();
- expect(parseProbes(MANIFEST.replace("\t1048576\t", "\tlots\t"), TAG)).toBeNull();
- });
-
- it("returns null unless the release carries both probes", () => {
- for (const dropped of ["probe\tlarge", "probe\tsmall"]) {
- const rows = MANIFEST.split("\n").filter((line) => !line.startsWith(dropped));
- expect(parseProbes(rows.join("\n"), TAG)).toBeNull();
- }
- });
-});
-
-describe("createDeadline", () => {
- it("hands each phase its cap while the budget is wide open", () => {
- const deadline = createDeadline(MIRROR_POINTER_MS);
- expect(deadline.slice(500)).toBe(500);
- });
-
- it("clamps a phase to what is left rather than letting it overrun the budget", () => {
- const deadline = createDeadline(1200);
- expect(deadline.slice(5000)).toBeLessThanOrEqual(1200);
- expect(deadline.slice(5000)).toBeGreaterThan(0);
- });
-
- it("hands out zero once the budget is spent, so the phase fails instead of waiting", () => {
- expect(createDeadline(0).slice(5000)).toBe(0);
- expect(createDeadline(-1).slice(5000)).toBe(0);
- });
-});
-
-const MIRROR = { tag: TAG, base: `${OSS_ORIGIN}/releases/${TAG}` };
-
-describe("toMirror", () => {
- it("accepts a safe tag paired with the bucket path that tag implies", () => {
- expect(toMirror(MIRROR.tag, MIRROR.base)).toEqual(MIRROR);
- });
-
- it("refuses a base that does not belong to the tag, or to the bucket at all", () => {
- expect(toMirror(TAG, `${OSS_ORIGIN}/releases/v9.9.9`)).toBeNull();
- expect(toMirror(TAG, `https://example.invalid/releases/${TAG}`)).toBeNull();
- expect(toMirror(TAG, `${OSS_ORIGIN}/releases/${TAG}/..`)).toBeNull();
- });
-
- it("refuses a tag that is not a plain release tag", () => {
- expect(toMirror("../invalid", `${OSS_ORIGIN}/releases/../invalid`)).toBeNull();
- expect(toMirror(1, MIRROR.base)).toBeNull();
- });
-});
-
-describe("parseMirror", () => {
- it("reads a schema-1 pointer", () => {
- const pointer = { schemaVersion: 1, tag: TAG, releaseBaseUrl: MIRROR.base };
- expect(parseMirror(pointer)).toEqual(MIRROR);
- });
-
- it("refuses anything that is not a schema-1 object", () => {
- expect(parseMirror({ schemaVersion: 2, tag: TAG, releaseBaseUrl: MIRROR.base })).toBeNull();
- expect(parseMirror(null)).toBeNull();
- expect(parseMirror("v1.2.3")).toBeNull();
- });
-});
-
-const SOURCES = {
- githubBase: "https://github.test/latest",
- ossBase: `${OSS_ORIGIN}/releases/${TAG}`,
-};
-const PROBES = {
- small: { file: "probe-64k.bin", size: 65536 },
- large: { file: "probe-1m.bin", size: 1048576 },
-};
-
-/** Records which questions were asked of which source, so "never touched" is testable. */
-function fakeProbes(github: Measurement, oss: Measurement) {
- const asked: string[] = [];
- return {
- asked,
- io: {
- measure: async (base: string) => {
- asked.push(`measure:${base === SOURCES.githubBase ? "github" : "oss"}`);
- return base === SOURCES.githubBase ? github : oss;
- },
- },
- };
-}
-
-const reachable = (bytesPerSecond: number): Measurement => ({ reachable: true, bytesPerSecond });
-const unreachable: Measurement = { reachable: false, bytesPerSecond: 0 };
-
-describe("decideDownloadSource", () => {
- it("keeps GitHub at the minimum without spending a byte of the mirror's bandwidth", async () => {
- const { asked, io } = fakeProbes(reachable(MIN), reachable(MIN * 10));
- await expect(decideDownloadSource(SOURCES, PROBES, io)).resolves.toBe("github");
- expect(asked).toEqual(["measure:github"]);
- });
-
- it("hands a GitHub that stopped answering to the mirror without a second probe", async () => {
- // The reachability pass already proved the mirror replies, so nothing more need be asked.
- const { asked, io } = fakeProbes(unreachable, reachable(1));
- await expect(decideDownloadSource(SOURCES, PROBES, io)).resolves.toBe("oss");
- expect(asked).toEqual(["measure:github"]);
- });
-
- // The divergence this branch split exists to prevent: a GitHub that answered but came in under
- // the minimum is a throughput question, and the mirror has to win it by the switch ratio. Reading
- // it as "unreachable" would hand the download to a mirror only 1.2x faster.
- it("makes a slow-but-reachable GitHub a throughput question, ratio and all", async () => {
- const slow = reachable(MIN / 2);
- for (const [ossSpeed, expected] of [
- [MIN / 2 + 1, "github"],
- [(MIN / 2) * 1.5, "github"],
- [(MIN / 2) * 1.51, "oss"],
- ] as const) {
- const { asked, io } = fakeProbes(slow, reachable(ossSpeed));
- await expect(decideDownloadSource(SOURCES, PROBES, io)).resolves.toBe(expected);
- expect(asked).toEqual(["measure:github", "measure:oss"]);
- }
- });
-
- it("lets any measured mirror beat a GitHub that answered but finished nothing", async () => {
- const { asked, io } = fakeProbes(reachable(0), reachable(1));
- await expect(decideDownloadSource(SOURCES, PROBES, io)).resolves.toBe("oss");
- expect(asked).toEqual(["measure:github", "measure:oss"]);
- });
-
- it("retains the measurements used by the visible speed report", async () => {
- const github = reachable(MIN / 2);
- const oss = reachable(MIN);
- const { io } = fakeProbes(github, oss);
- await expect(decideDownloadSourceWithReport(SOURCES, PROBES, io)).resolves.toEqual({
- source: "oss",
- github,
- oss,
- });
- });
-});
-
-describe("worthRefining", () => {
- it("measures throughput whenever there is a mirror to compare against", () => {
- expect(worthRefining(MIRROR)).toBe(true);
- });
-
- it("skips the megabyte when there is no mirror to compare against", () => {
- expect(worthRefining(null)).toBe(false);
- });
-});
diff --git a/packages/landing/test/frontmatter.test.ts b/packages/landing/test/frontmatter.test.ts
deleted file mode 100644
index 5203efeb..00000000
--- a/packages/landing/test/frontmatter.test.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { parseFrontmatter } from "../src/lib/frontmatter";
-
-describe("parseFrontmatter", () => {
- it("splits meta and body, tolerating colons and quotes in values", () => {
- const { meta, body } = parseFrontmatter(
- `---\ntitle: "Hello: world"\ndate: 2026-07-17\ncategory: news\n---\n\n# Body\n`,
- );
- expect(meta).toEqual({ title: "Hello: world", date: "2026-07-17", category: "news" });
- expect(body).toBe("# Body");
- });
-
- it("returns the whole input as body when no frontmatter block exists", () => {
- const { meta, body } = parseFrontmatter("# Just markdown\n");
- expect(meta).toEqual({});
- expect(body).toBe("# Just markdown");
- });
-});
diff --git a/packages/landing/test/hash.test.ts b/packages/landing/test/hash.test.ts
deleted file mode 100644
index 477b0781..00000000
--- a/packages/landing/test/hash.test.ts
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * hashTargetId: the URL hash -> element id step behind the router's scroll-to-hash effect.
- * A browser reports a CJK fragment percent-encoded in location.hash, so the heading id only
- * matches once the hash is decoded; a malformed escape must fall back instead of throwing.
- */
-import { describe, expect, it } from "vitest";
-import { hashTargetId } from "../src/lib/hash";
-import { slugifyHeading } from "../src/lib/toc";
-
-/** The hash a browser reports after following a link to `#<fragment>` (WHATWG URL parsing). */
-const locationHash = (fragment: string) =>
- new URL(`#${fragment}`, "https://example.test/blog/post").hash;
-
-describe("hashTargetId", () => {
- it("decodes a percent-encoded Chinese hash", () => {
- expect(hashTargetId("#%E5%8D%87%E7%BA%A7%E9%A1%BB%E7%9F%A5")).toBe("升级须知");
- });
-
- it("passes a raw Chinese hash through unchanged", () => {
- expect(hashTargetId("#升级须知")).toBe("升级须知");
- expect(hashTargetId("#为什么是-penguinharness")).toBe("为什么是-penguinharness");
- });
-
- it("accepts a fragment without the leading #", () => {
- expect(hashTargetId("%E5%8D%87%E7%BA%A7%E9%A1%BB%E7%9F%A5")).toBe("升级须知");
- expect(hashTargetId("升级须知")).toBe("升级须知");
- });
-
- it("falls back to the raw fragment when an escape is malformed", () => {
- expect(hashTargetId("#100%")).toBe("100%");
- expect(hashTargetId("#%zz")).toBe("%zz");
- expect(hashTargetId("#升级%须知")).toBe("升级%须知");
- // A truncated UTF-8 sequence is malformed too.
- expect(hashTargetId("#%E5%8D")).toBe("%E5%8D");
- });
-
- it("returns an empty id for an empty hash", () => {
- expect(hashTargetId("")).toBe("");
- expect(hashTargetId("#")).toBe("");
- });
-
- it("leaves an ASCII hash unchanged", () => {
- expect(hashTargetId("#quickstart")).toBe("quickstart");
- expect(hashTargetId("#self-improvement")).toBe("self-improvement");
- expect(hashTargetId("upgrading")).toBe("upgrading");
- });
-
- it("maps the hash of a CJK heading's anchor back to the heading's slug id", () => {
- for (const heading of [
- "升级须知",
- "为什么是 PenguinHarness",
- "第一步:安装(Linux)",
- "0.2.4 的变化",
- ]) {
- const id = slugifyHeading(heading);
- const hash = locationHash(id);
- expect(hash, `location.hash for ${heading}`).not.toBe(`#${id}`);
- expect(hashTargetId(hash), `id for ${heading}`).toBe(id);
- }
- });
-});
diff --git a/packages/landing/test/nav-state.test.ts b/packages/landing/test/nav-state.test.ts
deleted file mode 100644
index 9fe9c85a..00000000
--- a/packages/landing/test/nav-state.test.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { getActiveNavItem } from "../src/lib/nav-state";
-
-describe("landing navigation active state", () => {
- it("tracks known section hashes on the home page", () => {
- expect(getActiveNavItem("/", "#features")).toBe("features");
- expect(getActiveNavItem("/", "#self-improvement")).toBe("highlights");
- expect(getActiveNavItem("/", "#quickstart")).toBe("quickstart");
- });
-
- it("leaves the case section out of the reduced navigation", () => {
- expect(getActiveNavItem("/", "#cases")).toBeNull();
- });
-
- it("tracks the Blog route and blog posts", () => {
- expect(getActiveNavItem("/blog", "")).toBe("blog");
- expect(getActiveNavItem("/blog/release-notes", "")).toBe("blog");
- });
-
- it("does not mark unknown hashes or unrelated routes active", () => {
- expect(getActiveNavItem("/", "#unknown")).toBeNull();
- expect(getActiveNavItem("/blog", "#features")).toBe("blog");
- expect(getActiveNavItem("/other", "#features")).toBeNull();
- });
-});
diff --git a/packages/landing/test/skills-sync.test.ts b/packages/landing/test/skills-sync.test.ts
deleted file mode 100644
index 2995d027..00000000
--- a/packages/landing/test/skills-sync.test.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * Landing ↔ plugin-library sync: the home page's Skills section presents the built-in skills,
- * so every skill that ships in a packages/plugins plugin has to appear in both dictionaries and
- * nothing else may (hook packages are not skills and are not listed there). Derived from the
- * library directories — the same source docs' skills-sync test reads — so shipping a skill
- * without listing it here fails instead of leaving the section quietly short.
- *
- * Membership only, not order and not which card a skill sits in: the categories are the
- * plugin manifests' call, pinned in packages/plugins' own tests, and a reordering inside a card
- * is not a regression worth a red suite.
- */
-import { existsSync, readdirSync } from "node:fs";
-import { join } from "node:path";
-import { describe, expect, it } from "vitest";
-import { zh } from "../src/lib/strings";
-import type { Strings } from "../src/lib/strings";
-import { en } from "../src/lib/strings-en";
-
-const pluginsRoot = join(__dirname, "..", "..", "..", "plugins");
-
-/** Every skill directory under every plugin's skills/ (a plugin may ship none). */
-const librarySkills = readdirSync(pluginsRoot, { withFileTypes: true })
- .filter((plugin) => plugin.isDirectory() && existsSync(join(pluginsRoot, plugin.name, "skills")))
- .flatMap((plugin) =>
- readdirSync(join(pluginsRoot, plugin.name, "skills"), { withFileTypes: true })
- .filter(
- (entry) =>
- entry.isDirectory() &&
- existsSync(join(pluginsRoot, plugin.name, "skills", entry.name, "SKILL.md")),
- )
- .map((entry) => entry.name),
- )
- .sort();
-
-/** Every Skill name a dictionary's Skills section renders, flattened across its cards. */
-const listedSkills = (dict: Strings): string[] =>
- dict.skills.groups.flatMap((group) => group.skills);
-
-const DICTIONARIES: ReadonlyArray<{ file: string; dict: Strings }> = [
- { file: "strings.ts", dict: zh },
- { file: "strings-en.ts", dict: en },
-];
-
-describe("landing ↔ skill library sync", () => {
- it("found the skill library", () => {
- expect(librarySkills.length).toBeGreaterThan(0);
- });
-
- for (const { file, dict } of DICTIONARIES) {
- it(`${file}'s Skills section lists exactly the library`, () => {
- const listed = listedSkills(dict);
- expect(
- librarySkills.filter((name) => !listed.includes(name)),
- `Skills that ship but are missing from ${file}`,
- ).toEqual([]);
- expect(
- listed.filter((name) => !librarySkills.includes(name)).sort(),
- `Skills listed in ${file} that no longer ship`,
- ).toEqual([]);
- });
-
- it(`${file} names each Skill once`, () => {
- const listed = listedSkills(dict);
- expect(
- listed.filter((name, index) => listed.indexOf(name) !== index).sort(),
- `Skills listed in more than one group in ${file}`,
- ).toEqual([]);
- });
- }
-
- /**
- * Card by card rather than as one flat list: the two dictionaries render the same cards
- * in the same order, so a Skill that moves card in one language and not the other is drift a
- * flattened comparison cannot see. Membership inside a card only — the chips are free to be
- * reordered.
- */
- it("both dictionaries put each Skill on the same card", () => {
- const cards = (dict: Strings): string[][] =>
- dict.skills.groups.map((group) => [...group.skills].sort());
- expect(cards(en)).toEqual(cards(zh));
- });
-});
diff --git a/packages/landing/test/toc.test.ts b/packages/landing/test/toc.test.ts
deleted file mode 100644
index 33ff2acb..00000000
--- a/packages/landing/test/toc.test.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { describe, expect, it } from "vitest";
-import { extractToc, slugifyHeading } from "../src/lib/toc";
-
-describe("blog toc", () => {
- it("slugifies latin and CJK headings consistently", () => {
- expect(slugifyHeading("Why PenguinHarness")).toBe("why-penguinharness");
- expect(slugifyHeading("为什么是 PenguinHarness")).toBe("为什么是-penguinharness");
- });
-
- it("extracts h2/h3 headings and skips fenced code blocks", () => {
- const body = [
- "intro",
- "## 第一节",
- "```bash",
- "## not a heading",
- "```",
- "### 小节",
- "## Second",
- ].join("\n");
- expect(extractToc(body)).toEqual([
- { id: "第一节", text: "第一节", depth: 2 },
- { id: "小节", text: "小节", depth: 3 },
- { id: "second", text: "Second", depth: 2 },
- ]);
- });
-});
diff --git a/packages/landing/tsconfig.json b/packages/landing/tsconfig.json
deleted file mode 100644
index 0038d406..00000000
--- a/packages/landing/tsconfig.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "extends": "../../tsconfig.base.json",
- "compilerOptions": {
- "lib": ["ES2023", "DOM", "DOM.Iterable"],
- "types": ["vite/client"],
- "jsx": "react-jsx",
- "useDefineForClassFields": true
- },
- "include": ["src", "test", "vite.config.ts", "vitest.config.ts"]
-}
diff --git a/packages/landing/vite.config.ts b/packages/landing/vite.config.ts
deleted file mode 100644
index 3d059230..00000000
--- a/packages/landing/vite.config.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * Vite config: static landing page (React SPA + Tailwind CSS 4).
- *
- * BASE_PATH is injected by the GitHub Pages workflow ("/" — the site is served from the
- * custom apex domain https://penguin.ooo/); local dev and previews also default to "/".
- * Blog posts are local Markdown files imported at build time via import.meta.glob (?raw),
- * so the built site is fully static — no server or CMS involved.
- */
-import react from "@vitejs/plugin-react";
-import tailwindcss from "@tailwindcss/vite";
-import { defineConfig } from "vite";
-
-export default defineConfig({
- base: process.env.BASE_PATH ?? "/",
- plugins: [react(), tailwindcss()],
- // Fixed PenguinHarness dev port (stands alone — only the main server default is
- // shared, as DEFAULT_SERVER_PORT in core; vite configs cannot import core TS).
- server: { port: 7366 },
-});
diff --git a/packages/landing/vitest.config.ts b/packages/landing/vitest.config.ts
deleted file mode 100644
index a773b19c..00000000
--- a/packages/landing/vitest.config.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Vitest config kept separate from vite.config.ts (same convention as packages/web:
- * vitest's embedded vite types conflict with this package's vite 7 plugin types).
- * Tests cover pure modules only, so no plugins and a node environment suffice.
- */
-import { defineConfig } from "vitest/config";
-
-export default defineConfig({
- test: { environment: "node" },
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 57cdacf5..7f31ace3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -354,58 +354,6 @@ importers:
specifier: ^3.2.6
- packages/landing:
- dependencies:
- react:
- specifier: ^19.1.0
- version: 19.2.7
- react-dom:
- specifier: ^19.1.0
- version: 19.2.7([email protected])
- react-markdown:
- specifier: ^10.1.0
- react-router:
- specifier: ^8.3.0
- rehype-raw:
- specifier: ^7.0.0
- version: 7.0.0
- remark-gfm:
- specifier: ^4.0.0
- version: 4.0.1([email protected])
- devDependencies:
- '@playwright/test':
- specifier: ^1.61.1
- version: 1.61.1
- '@tailwindcss/vite':
- specifier: ^4.1.0
- '@types/node':
- specifier: ^24.0.0
- version: 24.13.3
- '@types/react':
- specifier: ^19.1.0
- version: 19.2.17
- '@types/react-dom':
- specifier: ^19.1.0
- version: 19.2.3(@types/[email protected])
- '@vitejs/plugin-react':
- specifier: ^4.5.0
- tailwindcss:
- specifier: ^4.1.0
- version: 4.3.2
- typescript:
- specifier: ^5.6.0
- version: 5.9.3
- vite:
- specifier: ^7.0.0
- vitest:
- specifier: ^3.2.6
-
packages/server:
dependencies:
'@hono/node-server':
@@ -3126,18 +3074,12 @@ packages:
resolution: {integrity: sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==}
- resolution: {integrity: sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==}
-
resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}
resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}
- resolution: {integrity: sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==}
-
resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==}
@@ -4046,9 +3988,6 @@ packages:
resolution: {integrity: sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==}
- resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==}
-
resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}
@@ -7511,22 +7450,6 @@ snapshots:
dependencies:
'@types/hast': 3.0.4
- dependencies:
- '@types/hast': 3.0.4
- '@types/unist': 3.0.3
- '@ungap/structured-clone': 1.3.2
- hast-util-from-parse5: 8.0.3
- hast-util-to-parse5: 8.0.1
- html-void-elements: 3.0.0
- mdast-util-to-hast: 13.2.1
- parse5: 7.3.0
- unist-util-position: 5.0.0
- unist-util-visit: 5.1.0
- vfile: 6.0.3
- web-namespaces: 2.0.1
- zwitch: 2.0.4
-
dependencies:
'@types/hast': 3.0.4
@@ -7561,16 +7484,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@types/hast': 3.0.4
- comma-separated-tokens: 2.0.3
- devlop: 1.1.0
- property-information: 7.2.0
- space-separated-tokens: 2.0.2
- web-namespaces: 2.0.1
- zwitch: 2.0.4
-
dependencies:
'@types/hast': 3.0.4
@@ -8683,12 +8596,6 @@ snapshots:
unist-util-visit-parents: 6.0.2
vfile: 6.0.3
- dependencies:
- '@types/hast': 3.0.4
- hast-util-raw: 9.1.0
- vfile: 6.0.3
-
dependencies:
'@types/mdast': 4.0.4
diff --git a/scripts/build-site.mjs b/scripts/build-site.mjs
deleted file mode 100644
index 741bd925..00000000
--- a/scripts/build-site.mjs
+++ /dev/null
@@ -1,66 +0,0 @@
-/**
- * Build the whole public site as one deployable tree: the landing page at the root
- * and the docs site under docs/. Used by the Pages workflow and for local preview:
- *
- * BASE_PATH=/<repo>/ pnpm build:site # CI (GitHub Pages project subpath)
- * pnpm build:site # local (base "/")
- * pnpm --filter @prismshadow/penguin-landing preview # serve the assembled tree
- *
- * Each package builds with its own BASE_PATH (landing: <base>, docs: <base>docs/),
- * then the docs dist is copied into the landing dist under docs/. The result is a
- * single artifact — one GitHub Pages deployment hosts both sites.
- */
-import { execSync } from "node:child_process";
-import { cpSync, rmSync, writeFileSync } from "node:fs";
-import { dirname, join } from "node:path";
-import { fileURLToPath } from "node:url";
-import {
- absoluteUrl,
- blogRoutes,
- docsRoutes,
- pageRoutes,
-} from "../packages/landing/scripts/site-routes.mjs";
-
-const root = join(dirname(fileURLToPath(import.meta.url)), "..");
-const base = process.env.BASE_PATH ?? "/";
-if (!base.startsWith("/") || !base.endsWith("/")) {
- console.error(`BASE_PATH must start and end with "/", got "${base}"`);
- process.exit(1);
-}
-
-const run = (cmd, BASE_PATH) => {
- console.log(`\n[build-site] ${cmd} (BASE_PATH=${BASE_PATH})`);
- execSync(cmd, { cwd: root, stdio: "inherit", env: { ...process.env, BASE_PATH } });
-};
-
-run("pnpm --filter @prismshadow/penguin-landing build", base);
-run("pnpm --filter @prismshadow/penguin-docs build", `${base}docs/`);
-
-const landingDist = join(root, "packages", "landing", "dist");
-const docsTarget = join(landingDist, "docs");
-rmSync(docsTarget, { recursive: true, force: true });
-cpSync(join(root, "packages", "docs", "dist"), docsTarget, { recursive: true });
-
-// sitemap.xml goes in last, because only here do both dists exist: it is the one file
-// that has to name routes from both sites. It is also the only way a crawler learns
-// those routes — both pages ship an empty <div id="root"> and build their navigation
-// in JS, so following links is not an option.
-const routes = [{ route: "/" }, ...pageRoutes(), ...blogRoutes(), ...docsRoutes()];
-const sitemap = [
- '<?xml version="1.0" encoding="UTF-8"?>',
- '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">',
- ...routes.map(({ route, lastmod }) =>
- [
- " <url>",
- ` <loc>${absoluteUrl(route)}</loc>`,
- ...(lastmod === undefined ? [] : [` <lastmod>${lastmod}</lastmod>`]),
- " </url>",
- ].join("\n"),
- ),
- "</urlset>",
- "",
-].join("\n");
-writeFileSync(join(landingDist, "sitemap.xml"), sitemap);
-
-console.log(`\n[build-site] assembled site at ${landingDist} (docs under /docs/)`);
-console.log(`[build-site] wrote sitemap.xml (${routes.length} URLs)`);
diff --git a/scripts/test-installer.sh b/scripts/test-installer.sh
index 35d14b6f..4125548a 100755
--- a/scripts/test-installer.sh
+++ b/scripts/test-installer.sh
@@ -17,9 +17,9 @@ fail_test() {
exit 1
}
-# The auto-mode rule lives in three implementations that cannot import from each other: the two
-# installers and the download page on penguin.ooo. Nothing but this check keeps their constants in
-# step, so a threshold edited in one place fails here instead of shipping three different rules.
+# The auto-mode rule lives in two implementations that cannot import from each other (a POSIX shell
+# has no floats, PowerShell does). Nothing but this check keeps their constants in step, so a
+# threshold edited in one place fails here instead of shipping two different rules.
check_shared_constant() {
csc_label="$1"
csc_expected="$2"
@@ -30,12 +30,10 @@ check_shared_constant() {
done
}
-LANDING_RULE="packages/landing/src/lib/download-source.ts"
-check_shared_constant "the GitHub minimum" "262144" install.sh install.ps1 "$LANDING_RULE"
+check_shared_constant "the GitHub minimum" "262144" install.sh install.ps1
# The same 1.5, written as an integer percent in install.sh because a POSIX shell has no floats.
check_shared_constant "the OSS switch ratio" "SPEED_PROBE_OSS_SWITCH_RATIO_PERCENT=150" install.sh
check_shared_constant "the OSS switch ratio" '$SpeedProbeOssSwitchRatio = 1.5' install.ps1
-check_shared_constant "the OSS switch ratio" "SPEED_PROBE_OSS_SWITCH_RATIO = 1.5;" "$LANDING_RULE"
# --- The launchers the release packages ship verbatim (scripts/launchers/). They are the only
# spelling of the payload layout, so moving where web/ or node/ sits fails here rather than
@@ -630,96 +628,4 @@ run_online_case pinned-legacy legacy v0.1.4 success 2
grep -q "/releases/v0.1.4/$HOST_ASSET\$" "$WORK_DIR/pinned-legacy.log" \
|| fail_test "pinned legacy did not prefer the pinned OSS asset"
-# --- Stable penguin.ooo forwarder: prefer a validated immutable OSS release, but fall back to
-# GitHub when the metadata probe fails. The real installer uses a local fixture here so the
-# test isolates bootstrap routing from bundle download behavior above. ---
-run_forwarder_case() {
- name="$1"
- mode="$2"
- expected_requests="$3"
- source="${4:-auto}"
- version="${5:-}"
- expected="${6:-success}"
- speed_probe="${7:-0}"
- CASE_LOG="$WORK_DIR/$name.log"
- CASE_OUTPUT="$WORK_DIR/$name.output"
- CASE_INSTALL="$WORK_DIR/$name-install"
- : > "$CASE_LOG"
- if [ -n "$version" ]; then
- archive=""
- else
- archive="$ARTIFACT_DIR/$HOST_ASSET"
- fi
- set +e
- if [ "$speed_probe" = "__unset" ]; then
- unset PENGUIN_DOWNLOAD_SPEED_PROBE
- REQUEST_LOG="$CASE_LOG" MODE="$mode" PATH="$STUB_BIN:$PATH" \
- HOME="$WORK_DIR/$name-home" PENGUIN_INSTALL_DIR="$CASE_INSTALL" \
- PENGUIN_ARCHIVE="$archive" PENGUIN_VERSION="$version" \
- PENGUIN_DOWNLOAD_SOURCE="$source" PENGUIN_DOWNLOAD_BASE_URL="" \
- PENGUIN_DOWNLOAD_FALLBACK_BASE_URL="" \
- sh "$ROOT_DIR/packages/landing/public/install.sh" >"$CASE_OUTPUT" 2>&1
- else
- REQUEST_LOG="$CASE_LOG" MODE="$mode" PATH="$STUB_BIN:$PATH" \
- HOME="$WORK_DIR/$name-home" PENGUIN_INSTALL_DIR="$CASE_INSTALL" \
- PENGUIN_ARCHIVE="$archive" PENGUIN_VERSION="$version" \
- PENGUIN_DOWNLOAD_SOURCE="$source" PENGUIN_DOWNLOAD_BASE_URL="" \
- PENGUIN_DOWNLOAD_FALLBACK_BASE_URL="" PENGUIN_DOWNLOAD_SPEED_PROBE="$speed_probe" \
- sh "$ROOT_DIR/packages/landing/public/install.sh" >"$CASE_OUTPUT" 2>&1
- fi
- status=$?
- set -e
- if [ "$expected" = "success" ]; then
- [ "$status" -eq 0 ] || fail_test "$name unexpectedly failed"
- else
- [ "$status" -ne 0 ] || fail_test "$name unexpectedly succeeded"
- fi
- [ "$(wc -l < "$CASE_LOG" | tr -d ' ')" -eq "$expected_requests" ] \
- || fail_test "$name made an unexpected number of requests"
- ! grep -q "aliyuncs.com" "$CASE_OUTPUT" \
- || fail_test "$name exposed the OSS URL in normal output"
-}
-
-run_forwarder_case forwarder-oss forwarder-oss 2
-grep -q "/latest.json\$" "$WORK_DIR/forwarder-oss.log" \
- || fail_test "OSS forwarder did not request release metadata first"
-grep -q "/releases/v0.0.0-test/install.sh\$" "$WORK_DIR/forwarder-oss.log" \
- || fail_test "OSS forwarder did not request the versioned installer"
-
-run_forwarder_case forwarder-auto-github forwarder-auto-github 2
-grep -q "github.com/.*/releases/latest/download/install.sh\$" "$WORK_DIR/forwarder-auto-github.log" \
- || fail_test "forwarder did not fall back to the GitHub installer"
-
-run_forwarder_case forwarder-invalid-metadata forwarder-invalid-metadata 2
-grep -q "github.com/.*/releases/latest/download/install.sh\$" "$WORK_DIR/forwarder-invalid-metadata.log" \
- || fail_test "invalid OSS metadata did not fall back to the GitHub installer"
-
-run_forwarder_case forwarder-github canonical 1 github
-grep -q "github.com/.*/releases/latest/download/install.sh\$" "$WORK_DIR/forwarder-github.log" \
- || fail_test "forced GitHub mode did not request the GitHub installer"
-
-run_forwarder_case forwarder-forced-oss-no-fallback forced-oss-payload 2 oss v0.0.0-test failure
-! grep -q "github.com" "$WORK_DIR/forwarder-forced-oss-no-fallback.log" \
- || fail_test "forced OSS mode unexpectedly fell back to GitHub"
-
-run_forwarder_case forwarder-pinned canonical 3 auto v0.0.0-test
-[ "$(sed -n '1p' "$WORK_DIR/forwarder-pinned.log")" = \
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.0.0-test/install.sh" ] \
- || fail_test "pinned forwarder did not request the versioned installer"
-[ "$(sed -n '2p' "$WORK_DIR/forwarder-pinned.log")" = \
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.0.0-test/$HOST_ASSET" ] \
- || fail_test "pinned installer did not keep the selected release version"
-
-run_forwarder_case forwarder-speed-probe-handoff speed-probe-github-fast 7 auto v0.0.0-test success 1
-[ "$(sed -n '1p' "$WORK_DIR/forwarder-speed-probe-handoff.log")" = \
- "https://penguin-harness-releases.oss-cn-beijing.aliyuncs.com/releases/v0.0.0-test/install.sh" ] \
- || fail_test "speed probe handoff forwarder did not fetch the versioned OSS installer"
-! grep -q "penguin-harness-releases.oss-cn-beijing.aliyuncs.com/.*/$HOST_ASSET\$" "$WORK_DIR/forwarder-speed-probe-handoff.log" \
- || fail_test "forwarder locked the payload source to OSS instead of letting the installer speed probe"
-grep -q "github.com/.*/releases/download/v0.0.0-test/$HOST_ASSET\$" "$WORK_DIR/forwarder-speed-probe-handoff.log" \
- || fail_test "forwarder locked the payload source instead of letting the installer speed probe"
-run_forwarder_case forwarder-speed-probe-default-handoff speed-probe-github-fast 7 auto v0.0.0-test success __unset
-grep -q "github.com/.*/releases/download/v0.0.0-test/$HOST_ASSET\$" "$WORK_DIR/forwarder-speed-probe-default-handoff.log" \
- || fail_test "forwarder handoff did not leave speed probing enabled by default"
-
echo "Installer bundle, offline, rollback and online tests passed."