Skip to content

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

docs(changelog): bilingual metadata-block entries, no per-release index (#316)

Yaowei Zhengf1b76a5fc6e3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b632890..bc96a43e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,14 +1,16 @@
# Changelog
+[中文版](CHANGELOG.zh.md)
+
One brief line per release. Per-release detail lives in [`changelog/<version>/`](changelog/).
-- **0.2.2** — 2026-08-11. Long-term Memory across sessions (per-agent user and Workspace scopes, index-only injection, a Memory tab), MCP Server support over stdio / Streamable HTTP / SSE with in-app management, Skills/Vault/Schedules behind Memory-style editable prompts and enable switches, dated config kernel versions with a smart no-loss Update beside restore, a hardened core runtime (unlimited default turns, context-window-derived caps, atomic Trace appends), desktop and proxy polish, a web UX batch, and a clean dependency audit. ([details](changelog/0.2.2/README.md))
-- **0.2.1** — 2026-08-04. The desktop app: an Electron shell over the unchanged server and Web App (signed-in on open, shared data root, per-root single-instance lock, three-platform installers mirrored to OSS), a landing download page with mirror-aware static links, download source selection for standalone installers and `penguin update`, compaction that survives malformed summaries with retries and costs finally visible, a random seeded admin password with login throttling, skills manageable from agent settings, per-Project new-chat defaults, a Traces page scaled onto a SQLite trace index, and the server's last IO hotspots closed. ([details](changelog/0.2.1/README.md))
-- **0.2.0** — 2026-08-03. One sealed installer bundle per target serving online and offline installs alike — now mirrored to Alibaba Cloud OSS with automatic fallback — truncated tool output recovered from the Session scratchpad, chat navigation for long conversations (shell-style ↑ input recall, stacked sticky run headers, a minimap tick rail with hover previews), steering that survives reloads and carries file attachments, a DB-served session list with paged sidebar groups, and the refreshed qianwenai / OpenRouter model catalog defaulting to deepseek-v4-flash. ([details](changelog/0.2.0/README.md))
-- **0.1.5** — 2026-07-30. Self-contained offline installer bundles for all five platforms (with MinGit bundled on Windows), composer attachments of any file type with images reaching steering and goal objectives, in-run recovery for every LLM failure short of a rejected credential, a tenth-shorter default system prompt, the paper-editorial web-design theme with thinking/image guidance in the SDK skill, and a refreshed README/landing install story. ([details](changelog/0.1.5/README.md))
-- **0.1.4** — 2026-07-27. Carries the whole 0.1.3 feature set to npm, which 0.1.3 itself never reached: its publish job failed on a version-endpoint test asserting a hard-coded build date, and only the release jobs stamp one. Plus blog images hosted in the sibling community repo rather than in this clone. ([details](changelog/0.1.4/README.md))
-- **0.1.3** — 2026-07-27. Windows support (shell selection, `install.ps1`, a win-x64 package), goal mode looping Tasks until an objective completes, a docked subagents panel with a live call graph, LLM-error reconnects with a visible countdown, and in-app version display with update checks and admin self-update. ([details](changelog/0.1.3/README.md))
-- **0.1.2** — 2026-07-26. Builtin file tools with git-style edit diffs, mid-run steering and queued follow-ups, handoff-style model switching with a per-request thinking level, free OpenRouter models, and isolated-origin Workspace HTML previews. ([details](changelog/0.1.2/README.md))
-- **0.1.1** — 2026-07-22. Gemini 3.6 Flash and 3.5 Flash-Lite in the model catalog, a Workspace-grouped chat sidebar, in-place upgrades via `penguin update`, and the vLLM / Ollama / LlamaFactory and bento-slides skills. ([details](changelog/0.1.1/README.md))
-- **0.1.0** — 2026-07-21. First feature release: the Web App, landing site and docs, the model catalog, and the self-improvement skills. ([details](changelog/0.1.0/README.md))
+- **0.2.2** — 2026-08-11. Long-term Memory across sessions (per-agent user and Workspace scopes, index-only injection, a Memory tab), MCP Server support over stdio / Streamable HTTP / SSE with in-app management, Skills/Vault/Schedules behind Memory-style editable prompts and enable switches, dated config kernel versions with a smart no-loss Update beside restore, a hardened core runtime (unlimited default turns, context-window-derived caps, atomic Trace appends), desktop and proxy polish, a web UX batch, and a clean dependency audit. ([details](changelog/0.2.2/))
+- **0.2.1** — 2026-08-04. The desktop app: an Electron shell over the unchanged server and Web App (signed-in on open, shared data root, per-root single-instance lock, three-platform installers mirrored to OSS), a landing download page with mirror-aware static links, download source selection for standalone installers and `penguin update`, compaction that survives malformed summaries with retries and costs finally visible, a random seeded admin password with login throttling, skills manageable from agent settings, per-Project new-chat defaults, a Traces page scaled onto a SQLite trace index, and the server's last IO hotspots closed. ([details](changelog/0.2.1/))
+- **0.2.0** — 2026-08-03. One sealed installer bundle per target serving online and offline installs alike — now mirrored to Alibaba Cloud OSS with automatic fallback — truncated tool output recovered from the Session scratchpad, chat navigation for long conversations (shell-style ↑ input recall, stacked sticky run headers, a minimap tick rail with hover previews), steering that survives reloads and carries file attachments, a DB-served session list with paged sidebar groups, and the refreshed qianwenai / OpenRouter model catalog defaulting to deepseek-v4-flash. ([details](changelog/0.2.0/))
+- **0.1.5** — 2026-07-30. Self-contained offline installer bundles for all five platforms (with MinGit bundled on Windows), composer attachments of any file type with images reaching steering and goal objectives, in-run recovery for every LLM failure short of a rejected credential, a tenth-shorter default system prompt, the paper-editorial web-design theme with thinking/image guidance in the SDK skill, and a refreshed README/landing install story. ([details](changelog/0.1.5/))
+- **0.1.4** — 2026-07-27. Carries the whole 0.1.3 feature set to npm, which 0.1.3 itself never reached: its publish job failed on a version-endpoint test asserting a hard-coded build date, and only the release jobs stamp one. Plus blog images hosted in the sibling community repo rather than in this clone. ([details](changelog/0.1.4/))
+- **0.1.3** — 2026-07-27. Windows support (shell selection, `install.ps1`, a win-x64 package), goal mode looping Tasks until an objective completes, a docked subagents panel with a live call graph, LLM-error reconnects with a visible countdown, and in-app version display with update checks and admin self-update. ([details](changelog/0.1.3/))
+- **0.1.2** — 2026-07-26. Builtin file tools with git-style edit diffs, mid-run steering and queued follow-ups, handoff-style model switching with a per-request thinking level, free OpenRouter models, and isolated-origin Workspace HTML previews. ([details](changelog/0.1.2/))
+- **0.1.1** — 2026-07-22. Gemini 3.6 Flash and 3.5 Flash-Lite in the model catalog, a Workspace-grouped chat sidebar, in-place upgrades via `penguin update`, and the vLLM / Ollama / LlamaFactory and bento-slides skills. ([details](changelog/0.1.1/))
+- **0.1.0** — 2026-07-21. First feature release: the Web App, landing site and docs, the model catalog, and the self-improvement skills. ([details](changelog/0.1.0/))
- **0.0.1** — 2026-07-19. First tagged release; changelog history starts after this tag.
diff --git a/CHANGELOG.zh.md b/CHANGELOG.zh.md
new file mode 100644
index 00000000..e1a8de9c
--- /dev/null
+++ b/CHANGELOG.zh.md
@@ -0,0 +1,16 @@
+# Changelog
+
+[English](CHANGELOG.md)
+
+每个版本一行简述。逐版本的细节见 [`changelog/<version>/`](changelog/)。
+
+- **0.2.2** — 2026-08-11。跨 Session 的长期 Memory(逐 Agent 的用户与 Workspace 两个作用域,只注入索引,配 Memory 标签页),经 stdio / Streamable HTTP / SSE 的 MCP Server 支持并可在应用内管理,Skills/Vault/Schedules 改用 Memory 式的可编辑提示词与启用开关,带日期的配置内核版本以及「恢复」旁边那个不丢改动的智能更新,加固后的 core 运行时(默认轮次无限、由上下文窗口推导的限额、原子的 Trace 追加),桌面端与代理的打磨,一批 Web 体验改进,以及一次干净的依赖审计。([细则](changelog/0.2.2/))
+- **0.2.1** — 2026-08-04。桌面应用:在未改动的服务端与 Web App 之上的 Electron 外壳(打开即登录、共享数据根目录、按根目录的单实例锁、三平台安装包镜像到 OSS),带镜像感知静态链接的落地页下载页,独立安装脚本与 `penguin update` 的下载源选择,能在畸形摘要下靠重试存活、且成本终于可见的压缩,随机预置的管理员密码配登录节流,可从 Agent 设置管理的 Skill,逐 Project 的新会话默认值,架在 SQLite trace 索引之上因而可扩展的 Traces 页,以及服务端最后几处 IO 热点的关闭。([细则](changelog/0.2.1/))
+- **0.2.0** — 2026-08-03。每个目标一个封装好的安装包,在线与离线安装通用——现已镜像到阿里云 OSS 并带自动回退——被截断的工具输出可从 Session 草稿区恢复,面向长对话的聊天导航(shell 风格的 ↑ 输入召回、层叠的粘性运行标题、带悬停预览的缩略图刻度轨),能在刷新后存活并携带文件附件的转向,由数据库提供、侧边栏分组分页的会话列表,以及刷新后默认 deepseek-v4-flash 的 qianwenai / OpenRouter 模型目录。([细则](changelog/0.2.0/))
+- **0.1.5** — 2026-07-30。面向全部五个平台的自包含离线安装包(Windows 自带 MinGit),输入区支持任意类型的文件附件、图片可抵达转向与目标陈述,除被拒绝的凭证之外每一种 LLM 失败都能在运行内恢复,默认系统提示词缩短约十分之一,web-design 的纸质编辑风主题与 SDK skill 中的思考/图片指引,以及刷新过的 README / 落地页安装叙事。([细则](changelog/0.1.5/))
+- **0.1.4** — 2026-07-27。把 0.1.3 的全部功能集带到 npm——那是 0.1.3 自己从未抵达的地方:它的发布任务挂在一个断言硬编码构建日期的版本端点测试上,而只有发布任务才会打这个戳。另有博客图片改由兄弟社区仓库托管,而不再放在本仓库。([细则](changelog/0.1.4/))
+- **0.1.3** — 2026-07-27。Windows 支持(shell 选择、`install.ps1`、win-x64 包),目标模式让 Task 循环直到目标达成,带实时调用图的停靠子 Agent 面板,带可见倒计时的 LLM 错误重连,以及应用内版本显示配更新检查与管理员自更新。([细则](changelog/0.1.3/))
+- **0.1.2** — 2026-07-26。内置文件工具配 git 风格的编辑 diff,运行中转向与排队的后续消息,交接式的模型切换配逐请求思考等级,免费的 OpenRouter 模型,以及独立源的 Workspace HTML 预览。([细则](changelog/0.1.2/))
+- **0.1.1** — 2026-07-22。模型目录新增 Gemini 3.6 Flash 与 3.5 Flash-Lite,按 Workspace 分组的聊天侧边栏,经 `penguin update` 的原地升级,以及 vLLM / Ollama / LlamaFactory 与 bento-slides 几个 Skill。([细则](changelog/0.1.1/))
+- **0.1.0** — 2026-07-21。首个功能版本:Web App、落地页与文档站、模型目录,以及自我改进类 Skill。([细则](changelog/0.1.0/))
+- **0.0.1** — 2026-07-19。首个打 tag 的版本;changelog 历史从该 tag 之后开始。
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 0dc861a1..cec420ed 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -97,13 +97,13 @@ pnpm test:e2e # core live-model e2e, need
where it is the content itself: zh i18n catalogs and fields (`strings.ts` dictionaries,
CLI `i18n.ts`, `titleZh`, `short_description_zh`), `*.zh.md` documents, and test
literals that assert zh i18n output or exercise CJK-specific behavior.
-- **Every change ships with a changelog entry**: add
- `changelog/<version>/YYYY-MM-DD-<semantic-id>.md` under the next unreleased version
- (released versions' folders are frozen) — an H1 title, a one-sentence summary
- paragraph, then details — and add a one-line link for it to that version's index,
- `changelog/<version>/README.md`. The layout is documented in
+- **Every change ships with a changelog entry, in both languages**: add
+ `changelog/unreleased/YYYY-MM-DD-<semantic-id>.md` plus its `.zh.md` counterpart
+ (released versions' folders are frozen) — an H1 title, the `Date` / `Type` / `Scope` /
+ `PR` / `Issue` / `Breaking` metadata block, the counterpart link, then a lead paragraph
+ and bespoke sections. There is no index file to update. The format is documented in
[`changelog/README.md`](changelog/README.md). Related changes may share one entry
- file (extending its details) instead of opening a new file per small change.
+ file (extending its sections) instead of opening a new file per small change.
- **A release ships its own announcement**: `changelog/<version>/RELEASE.md` is published
verbatim as the GitHub Release body. Write it during release preparation and **commit it
before creating the tag** — the release workflow reads it from the tag's checkout, so a
diff --git a/changelog/0.1.0/2026-07-20-landing-site.md b/changelog/0.1.0/2026-07-20-landing-site.md
index d362c709..eb53d799 100644
--- a/changelog/0.1.0/2026-07-20-landing-site.md
+++ b/changelog/0.1.0/2026-07-20-landing-site.md
@@ -1,5 +1,12 @@
# Landing site
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `landing`, `docs`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7), [#6](https://github.com/Prism-Shadow/penguin-harness/pull/6)
+
+[中文版](2026-07-20-landing-site.zh.md)
+
The penguin.ooo landing page: story, structure, animations, navigation, and the install domain.
## Landing, README, and blog retell one story, with penguin.ooo/install.sh
diff --git a/changelog/0.1.0/2026-07-20-landing-site.zh.md b/changelog/0.1.0/2026-07-20-landing-site.zh.md
new file mode 100644
index 00000000..4e80dfbe
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-landing-site.zh.md
@@ -0,0 +1,91 @@
+# 落地页站点
+
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `landing`, `docs`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7), [#6](https://github.com/Prism-Shadow/penguin-harness/pull/6)
+
+[English](2026-07-20-landing-site.md)
+
+penguin.ooo 落地页:叙事、结构、动画、导航,以及安装域名。
+
+## 落地页、README 与博客讲同一个故事,安装走 penguin.ooo/install.sh
+
+各个对外表面现在讲同一套 1x/100x 叙事,用同一个编号式「Why」小节完成说服,并从站点自己的域名安装。
+
+- **penguin.ooo/install.sh**——落地页站点提供一个瘦的 `public/install.sh`,转发到最新 GitHub Release 的安装脚本(GitHub Pages 无法提供真正的重定向),因此 `curl -fsSL https://penguin.ooo/install.sh | sh` 在任何环境下都能用;首屏命令、README(中英)、文档的安装/快速开始(中英)与博客文章全部切换到它。
+- **落地页**——首屏用两行叙事取代了轮播词标题("With LangChain, you build agents by hand — at 1x; with PenguinHarness, agents build agents — at 100x",其中 100x 片段用品牌色),并配上 "zero-code Harness CLI and Web UI, 1000+ models" 的副标题。一个编号式的 Why 小节(1 基准测试套件 + DeepSeek 调优,2 一句话构建演示配真实 RAG 截图,3 自进化循环配「演示视频即将上线」标签)吸收了原先的 Pillars / Showcase / Benchmark / SelfImprove 四节;UI 截图撤出首页;导航锚点改为 why / quickstart / contract / features(理由 1 保留 #benchmark 锚点)。博客本就与落地页共用 Nav、主题与语言设置。
+- **README(中英)**——副标题改为 "Harness CLI and Web UI";website/docs/blog/community 链接渲染为 shields.io 徽章;顶部截图与 Changelog-Blog-Docs 小节移除;三条理由以编号加 emoji 排在「Why PenguinHarness」之下;模型表只保留一行「任意 OpenAI 协议端点均可」的说明;Requirements 改为表格;安装小节加上 emoji;路线图新增桌面应用与 Windows 支持;致谢链接 LlamaFactory、PrismShadow AI Team 与 Fable 5。
+- **博客**——介绍文章(中英)以同样的叙事与措辞开篇。
+
+## 落地页回归经典结构,功能与案例改为标签页,导航与文档站对齐
+
+上一次落地页改版改得过头了;经典的小节集合回归,新材料以标签页与侧栏小节的形式并入,而不是取而代之。
+
+- **原样恢复**:轮播首屏标题("Efficient Self-Improving Harness for Developers/Enterprises")、三根支柱、自进化循环(现配「演示视频即将上线」标签)、Quickstart、独立的 Benchmark 小节、CONTRACT.md 与 Security。
+- **LangChain 对比是移位而非删除**:1x/100x 叙事独立成一个紧凑小节,排在支柱之后——两张卡片(LangChain,手工搭建,1x,弱化处理;PenguinHarness,Agent 构建 Agent,100x,品牌色强调),叙事句作为副标题。
+- **功能改为可切换标签页**:九条功能描述全部保留,各成一个带图标的标签页;其中三个有真实截图的视图——多会话聊天、Trace 视图、Agent 评估——在激活面板中展示与语言/主题匹配的截图,使 Trace 与基准测试截图重回页面。
+- **用例同样改为标签页**:新增 Cases 小节,带标签栏,目前只放 RAG 案例(提示词 + 生成结果截图);后续案例以标签追加。
+- **末尾新增社区小节**:CTA 之后以外链卡片形式呈现 Discord / X / 微信群 / GitHub。
+- **文档站导航现在与落地页完全一致**——同一行链接(Highlights / Quick start / Benchmark / CONTRACT.md / Features / Blog / Docs),同样的滑动悬停药丸,锚点指向上一级的落地页,使两站衔接顺畅;原先独立的「Website」链接被这一行吸收。
+- **发布博文回到最初的骨架**:「Why PenguinHarness」的三支柱要点、基准测试小节措辞,以及结尾的「立即开始」段落全部回归,GDPevo 起源故事、图片、模型表、路线图与社区召唤则作为增补而非替换保留。
+
+## 落地页 Trace 截图:中英文展示同一个已打开的时间线
+
+英文版 Trace 截图显示的是「请选择一个 Session」的空状态,而中文版显示的是完整 trace;现在四张图都拍摄同一个已打开的 trace,带统计数据与包含工具调用的执行时间线。
+
+- 截图脚本原先导航到 `/traces?sessionId=...`——但 traces 页面只有在 `agentId=` 同时存在时才会响应 session 深链(产品自身的链接始终两者都带),于是选中操作依赖于一次脆弱的标题点击,而该点击在英文下会被 `.catch()` 静默吞掉。脚本现在使用规范的 `?agentId=default_agent&sessionId=...` 深链,并在拍摄前等待时间线的 `exec_command` 泳道出现,因此空截图会显式失败而不是被发布出去。
+- 脚本中的英文 Session 标题长 31 字符,而 core 在 `TITLE_MAX_CHARS = 30` 处截断标题,导致截图里出现 "…Agent ap";mock 标题现改为 "Build a data-analysis Agent"(27 字符)。
+- 重新生成了 `traces-{en,zh}-{light,dark}.webp`;聊天与基准测试截图未变。
+
+## 落地页打磨:滑动公告、建造动画、趋势数值标签、功能拆分
+
+对落地页的动效与分组做了一轮打磨,并把博客中的使用指引改为 Web 优先。
+
+- **公告栏**——浅品牌色背景;两条公告现在都链接到博客文章(新模型那条指向发布文章,额度那条指向 AMD 文章);改为横向滑动切换(自动轮播、悬停暂停),用圆点指示器取代箭头;尾部的箭头图标移除。
+- **LangChain 对比**——共用同一循环周期的「建造」动画:LangChain 卡片一次砌一块灰色砖,在周期重置前永远封不了顶;而 PenguinHarness 卡片在两秒内拔起一整片品牌蓝的天际线并保持住。降低动效偏好下两侧天际线均直接呈现完成态。
+- **自进化趋势**——三张结果图表现在由同一个 rAF 时钟驱动,每条曲线的移动端点上都骑着一个数值标签(分数上升,成本与时间下降),随线条绘制而变化;降低动效偏好下直接显示完成的线条与最终数值。
+- **功能按截图拆分**——只有三个带真实截图的功能(多会话聊天、Trace 视图、Agent 评估)构成标签栏;其余六个以经典卡片网格排在下方,并以一张「and more…」卡片收尾。
+- **博客使用指引改为纯 Web**——发布文章的入门部分与 AMD 文章的配置部分现在只引导用户走 `penguin web` 与模型页;CLI 的配置/运行替代方案被移除,以便把用户导向 Web UI。
+
+## 公告轮播:单向滑动,保留箭头,去掉圆点
+
+公告栏保留那个把每条公告标示为可点击链接的小箭头,去掉右侧的圆点切换按钮,并且只朝**一个**方向自动滑动轮播:第一条的克隆件跟在最后一条之后,当克隆件完全进入视野后,轨道无动画地瞬间归位——公告栏永远不会出现可见的倒退滑动。悬停仍然暂停轮播。
+
+## 功能标签页去掉描述卡片
+
+三个带截图的功能标签页不再在截图上方渲染一张图标卡片;该功能的一行描述现在作为居中文本直接置于图片上方(标签本身已经承载了标题与图标)。没有截图的功能保留下方的卡片网格。
+
+## 趋势数值标签带上单位与动画小数
+
+自进化循环的三个结果标签在骑着曲线端点移动时,现在读起来是真实的测量值:分数为带一位小数的百分比(79.0%)、成本为带两位小数的美元($0.25)、时间为带一位小数的秒(83.0s)——小数部分随线条连续变化。
+
+## 修复导航悬停高亮从边缘扫入的问题
+
+落地页与文档站导航的滑动悬停药丸原先从其位于导航左缘的隐藏状态开始动画,因此第一次悬停会让一颗灰色药丸横穿整行链接飞过去(移开时又滑回去)。
+
+该药丸现在**就地**出现在它落到的第一个链接之下——位置直接跳变,只有淡入有动画——在链接之间移动时才滑动,指针离开时则在原地淡出。落地页导航与和它对齐的文档站导航采用完全相同的处理。
+
+## 合并 main 以恢复常驻的导航激活高亮
+
+该分支的基线早于 main 的 [#6](https://github.com/Prism-Shadow/penguin-harness/pull/6)(「修正导航状态与锚点滚动」),因此缺少导航的常驻激活高亮——即标记当前小节或路由的黑色片——合并时本会把那个修复回退掉。合并 origin/main 使其恢复,并与该分支的导航改动做了调和。
+
+- 落地页导航:小节链接重新经由 `/#id` 路由并配合 `getActiveNavItem` 跟踪(新增 `lib/nav-state.ts` 及其测试),激活链接保留带 `aria-current` 的黑色片,分支的就地悬停药丸行为则叠加保留。
+- 同样从 [#6](https://github.com/Prism-Shadow/penguin-harness/pull/6) 恢复:锚点目标滚动到粘性头部之下(通过 `.section-anchor`,id 移到小节的内层 div 上)、页脚/首屏/CTA 锚点改为路由链接,以及文档站品牌 logo 回到落地页。
+- 文档站导航(与落地页对齐的那套)另外会用同样的黑色片把自己的「Docs」链接标记为当前页。
+
+## 导航高亮跟随实时滚动位置
+
+导航的黑色当前项标记此前只根据 URL hash 更新(也就是点击时),滚动过程中它会一直保持陈旧。现在一个滚动侦测 hook 在每个滚动帧测量五个小节锚点(rAF 节流,文档级捕获以便任意滚动容器都生效),并点亮**最后一个**顶部已越过粘性头部下方激活线的小节——位于第一个小节之上时为 null,处于小节之间时保持上一个锚点点亮。首页上的高亮完全实时,其他路由仍使用基于路由的状态(Blog)。
+
+## Cases 标签页展示成品 RAG 应用并使用本地化提示词
+
+RAG 案例现在展示来自字符串词条的精简版 claude-code-docs 配置专家提示词(中英本地化),以及与访客语言和主题相匹配的成品应用截图,取代原先共用的英文提示词与 PenguinHarness 聊天截图。
+
+## 企鹅雪橇小游戏加入案例,RAG 演示带上 $0.02 成本钩子
+
+草稿页的游戏示例变成一个可爱的南极企鹅滑雪橇小游戏,作为 RAG 之后的第二个案例登上落地页;同时每处 RAG 演示现在都以「生成它只花了多少钱」开场。
+
+- 草稿页示例卡片(中英)把 2D 摩托越野跑酷换成企鹅雪橇游戏:空格键跳过冰面上的岩石,速度与难度逐步提升,实时计分,一键重开,卡通可爱风——完整的详细提示词仍然原样提交。
+- 落地页 Cases 小节在 RAG 之后新增一个「企鹅雪橇游戏」标签页,按语言与主题展示成品游玩画面(浅色 = 极昼,深色 = 带极光的极夜),素材来自新增的、无依赖的 `penguin-game-mockup.html` + `capture-game-mockup.mjs` 流水线。
+- README(中英)、发布博文(中英)与落地页 RAG 案例现在都在成品截图下方带一句强调的钩子:生成整个 RAG 应用在 DeepSeek V4 Pro 上只烧掉了 $0.02(¥0.2)的 Token。
diff --git a/changelog/0.1.0/2026-07-20-models-and-credentials.md b/changelog/0.1.0/2026-07-20-models-and-credentials.md
index 324982d5..6de53442 100644
--- a/changelog/0.1.0/2026-07-20-models-and-credentials.md
+++ b/changelog/0.1.0/2026-07-20-models-and-credentials.md
@@ -1,5 +1,12 @@
# Model catalog, Models page, and credential handling
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[中文版](2026-07-20-models-and-credentials.zh.md)
+
Preset provider groups, catalog entries and ordering, and the Models page features built around them.
## Add the Qwen Token Plan provider group to the model catalog
diff --git a/changelog/0.1.0/2026-07-20-models-and-credentials.zh.md b/changelog/0.1.0/2026-07-20-models-and-credentials.zh.md
new file mode 100644
index 00000000..52b9aede
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-models-and-credentials.zh.md
@@ -0,0 +1,135 @@
+# 模型目录、模型页与凭证处理
+
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[English](2026-07-20-models-and-credentials.md)
+
+预置 Provider 分组、目录条目与排序,以及围绕它们构建的模型页功能。
+
+## 模型目录新增 Qwen Token Plan 分组
+
+内置目录新增 Qwen Token Plan 订阅网关分组(OpenAI 兼容,预置 base URL),含五个模型——qwen3.8-max-preview、qwen3.7-max、qwen3.7-plus、glm-5.2 与 deepseek-v4-pro——并配一枚自定义 Provider 图标。
+
+## 细节
+
+- 新增 Provider `qwen-token-plan`("Qwen Token Plan"),置于 SiliconFlow 之后的网关簇中:OpenAI 兼容端点预置为 `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1`,取 key 页面为 `https://platform.qianwenai.com/pricing/token-plan`,模型 id 文档页为 `https://platform.qianwenai.com/docs/token-plan/personal/token-plan-personal-overview`;环境变量回退与其他网关一样是 `OPENAI_API_KEY`/`OPENAI_BASE_URL`。
+- 五个目录条目,均为 `client_type: openai` 并内联 base URL。视觉能力标记依该计划的支持模型表(qwen3.8-max-preview 与 qwen3.7-plus 可读图,其余不可)。定价与上下文窗口取自各模型在 `www.qianwenai.com/models/<id>` 的页面(官方人民币牌价;限时促销不予记录):qwen3.7-max ¥2.4/¥12/¥36,qwen3.7-plus ¥0.4/¥2/¥8,glm-5.2 ¥2/¥8/¥28,deepseek-v4-pro ¥1/¥12/¥24(每百万 Token 的缓存命中/输入/输出),窗口均为 1M(glm-5.2 为 1.04M)。qwen3.8-max-preview 仅为预览版,只有配额倍率促销、没有按 Token 的牌价,因此只有它不带定价(成本读作 0,与未定价的用户模型一致);目录测试中的定价不变式针对这一个条目做了豁免。
+- 目录不变式更新:裸模型 id 现在允许在不同 Provider 之间重复(网关会以上游 id 转售厂商模型,例如 `glm-5.2` / `deepseek-v4-pro`);唯一性由 `(provider, model_id)` 二元组保证,与目录唯一的查找键一致。
+- 新增 Provider 图标:取自品牌 SVG 的官方 Qwen 字标(图形 + 文字),渐变填充扁平化为 currentColor 单色,坐标保留两位小数。
+- 文档(models.en/zh)的 Provider 表与网关说明同步更新。
+
+## 新增 Qwen Pay-As-You-Go 分组
+
+在 Qwen Token Plan 之下新增一个按 Token 计费的网关分组(DashScope 的 OpenAI 兼容端点),含四个预置模型——qwen3.7-max、qwen3.7-plus,以及转售的带厂商前缀的 kimi/kimi-k3 与 ZHIPU/GLM-5.2——定价取自各模型的官方页面。
+
+## 细节
+
+- 新增 Provider `qwen-pay-as-you-go`("Qwen Pay-As-You-Go"),在网关簇中紧随 Qwen Token Plan:预置 base URL `https://dashscope.aliyuncs.com/compatible-mode/v1`,取 key 链接 `https://platform.qianwenai.com/docs/api-reference/preparation/api-key`,模型页 `https://www.qianwenai.com/models`;与其他网关一样使用 `OPENAI_*` 环境变量回退。
+- 四个条目(`client_type: openai` + 内联端点),官方人民币牌价与规格取自各模型页面:kimi/kimi-k3 ¥2/¥20/¥100(1.04M,支持视觉),qwen3.7-max ¥2.4/¥12/¥36(1M),ZHIPU/GLM-5.2 ¥2/¥8/¥28(1.04M),qwen3.7-plus ¥0.4/¥2/¥8(1M,支持视觉)。转售的第三方模型保留其带厂商前缀的上游 id。
+- 该分组共用 Qwen 徽标(图形已抽取为共享常量),`modelHomepageUrl` 会对带斜杠前缀的 id 做 URL 编码(`.../models/ZHIPU%2FGLM-5.2`)。文档(models.en/zh)的 Provider 表与网关说明同步更新。
+
+## 新增 Fireworks AI 分组
+
+在 OpenRouter 之下新增一个 OpenAI 协议网关分组,含五个预置模型(GLM-5.2、Kimi K2.7 Code、DeepSeek V4 Pro、MiniMax M3、DeepSeek V4 Flash),定价取自各模型的 Fireworks 页面。
+
+## 细节
+
+- 新增 Provider `fireworks`("Fireworks AI"),在网关簇中紧随 OpenRouter:预置 base URL `https://api.fireworks.ai/inference/v1`,取 key 页面 `https://app.fireworks.ai/settings/users/api-keys`,模型页 `https://app.fireworks.ai/models`;与其他网关一样使用 `OPENAI_*` 环境变量回退。
+- 五个条目(`client_type: openai` + 内联端点),采用标准 serverless 的美元定价(每百万 Token 的缓存输入 / 非缓存输入 / 输出)与各页面的规格:glm-5p2 $0.14/$1.40/$4.40(1M),kimi-k2p7-code $0.19/$0.95/$4.00(262K,支持视觉),deepseek-v4-pro $0.15/$1.74/$3.48(1M),minimax-m3 $0.06/$0.30/$1.20(512K,支持视觉),deepseek-v4-flash $0.03/$0.14/$0.28(1M)。API 模型 id 使用 Fireworks 完整的 `accounts/fireworks/models/<slug>` 形式(原样发送)。
+- `modelHomepageUrl` 把 `accounts/<owner>/models/<slug>` 形式的 id 映射到模型页面(`app.fireworks.ai/models/<owner>/<slug>`),对不符合该形式的用户自建 id 则回退到模型列表页。品牌标识先以一个简化的星芒图形近似(与 Z.AI 的做法相同)。文档(models.en/zh)的 Provider 表与网关说明同步更新。
+
+## OpenRouter 目录扩充十二个模型
+
+OpenRouter 网关分组从 4 个条目扩充到 16 个,新增当前的旗舰档与免费档,定价、上下文窗口与视觉能力标记均取自各模型的 OpenRouter 页面。
+
+## 细节
+
+- 新增(按输出价格排序):anthropic/claude-fable-5($10/$50)、openai/gpt-5.6-sol($5/$30)、openai/gpt-5.5($5/$30)、anthropic/claude-opus-4.8($5/$25)、anthropic/claude-opus-4.7($5/$25)、moonshotai/kimi-k3($3/$15)、openai/gpt-5.6-terra($2.50/$15)、anthropic/claude-sonnet-5($2/$10)、z-ai/glm-5.2($0.93/$3)、deepseek/deepseek-v4-pro($0.435/$0.87)、deepseek/deepseek-v4-flash($0.09/$0.18),以及 nvidia/nemotron-3-ultra-550b-a55b:free(每百万 Token 的输入/输出;上下文均为 1M)。
+- 视觉能力依各页面:Claude 系列、GPT-5.5 与 Kimi K3 接受图像输入,其余不接受。
+- 这些页面均未列出缓存价格,因此 cache_read 采用标准输入价(不打折)。`:free` 档存储的是真实的 $0 价格——而非「未知」——因此成本能正确算作 0;目录的定价不变式为免费档新增了一个分支。
+
+## OpenRouter 目录新增 Grok 4.5
+
+`x-ai/grok-4.5` 加入 OpenRouter 分组:每百万 Token 输入 $2 / 输出 $6(未列出缓存价格,因此 cache_read 采用输入价),500K 上下文,支持视觉——插入在其字典序位置上。
+
+## OpenRouter 目录新增 Gemini 3.5 Flash
+
+`google/gemini-3.5-flash` 加入 OpenRouter 分组:每百万 Token 输入 $1.50 / 输出 $9(未列出缓存价格,因此 cache_read 采用输入价),1M 上下文,支持视觉——置于其字典序位置;README 模型表中 Gemini 那一行现在也列出 OpenRouter。
+
+## 目录模型按字典序排列,同系列新版本在前
+
+在每个 Provider 分组内部,目录条目现在按模型 id 的字典序排列,但同一系列的较新版本排在前面(gpt-5.6-* 先于 gpt-5.5,claude-opus-4.8 先于 4.7,glm-5.2 先于 glm-5)——顺序在目录字面量中手工预先算好,运行时任何地方都不做排序。
+
+## 细节
+
+- MODEL_CATALOG 的每个 Provider 小节都做了手工重排:跨系列与档位按字典序(不区分大小写);在一个版本系列内部,最新版本的区块领先,同一版本内的各档位保持字母序。小节注释与精确顺序的测试断言同步更新。
+- 这个顺序会流向所有保留分组内顺序的地方:新 Project 的预置配置、模型页卡片,以及聊天模型下拉框(orderModelsLikeLibrary)。已有 Project 配置保留其已存顺序——预设同步的合并刻意保留本地位置。
+
+## 目录数据:官方 Fireworks 图标、两个 SiliconFlow 模型、逐模型的厂商页面
+
+Fireworks 分组换上官方的爆发标识,SiliconFlow 新增 moonshotai/Kimi-K2.7-Code 与 deepseek-ai/DeepSeek-V4-Flash,Z.AI / Moonshot 的模型则链接到各自的逐模型文档页。
+
+## 细节
+
+- Fireworks 图标:官方的三笔爆发标识(viewBox 0 0 638 315,currentColor)取代此前过渡性的星芒近似图形。
+- SiliconFlow 条目(官方人民币定价,按字典序位置):deepseek-ai/DeepSeek-V4-Flash ¥0.02/¥1/¥2(1M),moonshotai/Kimi-K2.7-Code ¥1.3/¥6.5/¥27(262K,支持视觉)。
+- modelHomepageUrl:zhipu → `docs.z.ai/guides/llm/<model_id>`;moonshot → `platform.kimi.com/docs/pricing/chat-k<去掉点的版本号>`(kimi-k2.6 → chat-k26),不符合该形式的 id 回退到该分组的模型页。
+
+## 模型页新增预设同步按钮
+
+模型页搜索框旁新增一个仅所有者可见的小按钮,用于把内置目录合并进 Project 的模型表:本地缺失的目录条目会被新增,两边都有的条目会被重置为目录中的字段,本地自行添加的模型与 API key 不受影响。
+
+## 细节
+
+- 并集语义(`catalog-sync.ts`,纯函数且有单元测试):以 `(provider, model_id)` 二元组为键。仅目录中存在的条目被追加(网关 base URL 预置);两边都存在的条目采用目录的上下文窗口、定价(包括当目录不带定价时予以移除,例如那个未定价的预览模型)、协议、base URL 与视觉标记——只要两边有差异就以目录为准;仅本地存在的模型(包括用户自定义分组)原样保留在原位。
+- 凭证在结构上不受影响:被合并的行不提交 `apiKey`(PUT 的整表替换在该字段缺失时保留已存 key),已有行保持其凭证状态;而预置模型上被用户覆盖的 base URL 会被重置为目录中的值(API key 是唯一的例外)。
+- 通过 toast 反馈:「已同步预设:新增 N 个,更新 M 个」,或在没有差异时不发 PUT 直接提示「已是最新」。相应字符串已加入两种语言。
+- Qwen Token Plan 的 Provider 图标精简为仅保留官方徽标(去掉字标文字),置于方形 viewBox 中。
+
+## 模型测试不再因「只有思考」的响应而失败
+
+测试一个重推理的模型(例如 qwen3.8-max-preview)会失败并报 "OpenaiClient returned no content other than thinking (finish_reason=\"length\")":连通性探测那点极小的输出上限被思考内容全部烧光了。现在探测把「流式输出以纯思考结束」也视为可达——端点、凭证与模型 id 都已被证明可用。
+
+## 细节
+
+- 该探测刻意只发一次 "ping",设 `maxTokens: 16` 并关闭思考(成本按设计只有个位数 Token)。位于 OpenAI 兼容端点之后的推理模型可能忽略被关闭的思考等级,在没有文本的情况下触及 `finish_reason=length`,于是 AgentHub 0.4 抛出 `EmptyResponseError`——它被归结为 `malformed` 结果,而探测此前会把它报告为测试失败。
+- `testModel` 现在会跟踪是否有真正的模型内容(思考或文本,无论部分还是完整)被流式输出过;在已有内容流出之后出现的 `malformed` 结束视为测试通过;超时、认证/参数失败,以及什么都没收到的 `malformed` 结束仍然判为失败。该逻辑落在两个纯函数(`isProbeContent` / `probeVerdict`)中并有单元测试覆盖,其中包含 qwen3.8-max-preview 这个确切场景。
+
+## 模型页的分组测速
+
+每个模型分组的头部新增一个仅所有者可见的测速操作:在配额警告之后,它逐个探测该分组的模型,测量首 Token 时延与输出速率,并把带色调的徽章(绿 / 黄 / 红)写到每张卡片上;模型主页链接则从卡片角落移入配置对话框。
+
+## 细节
+
+- Server:模型测试端点新增 `speed` 标志——探测的输出上限从 16 提高到 64 个 Token,以便存在一个真实的流式窗口;响应现在携带 `ttftMs`(请求开始 → 首个流式内容)与 `tps`(流式窗口内的输出 Token 数,取自完成流的 usage 报告;纯思考结束的情况带 TTFT 但没有速率)。普通连通性测试未变。
+- Web:每个分组头部有一个仪表图标按钮(仅所有者可见),点击后弹出确认对话框,警告每个模型会发出一次真实请求并消耗 API 配额;确认后该分组会被**严格串行**地测试(并发探测会触发 Provider 的限流),每个结果在完成时即落到对应卡片上。徽章:时钟图标 + 毫秒表示 TTFT(< 1s 绿、≤ 3s 黄、更高为红),闪电图标 + tok/s 表示 TPS(≥ 40 绿、≥ 15 黄、更低为红);失败显示红色的「测试失败」,原因在悬停时给出。阈值放在一个纯函数助手中并有单元测试;结果的作用域限于当前会话。
+- 模型主页链接从卡片角落移入配置对话框,紧邻「获取模型 id」链接(卡片保持为单一可点击面;空出的角落用于放测速徽章)。
+- 细节改进:分组头部的操作(添加模型 / 统一填 key / 测速)统一为图标 + 文字按钮;测速徽章位于卡片元信息行上一个不收缩的独立槽位中(数字永远不会挤压或折行标题);探测提示词会抑制推理,并以一个空的 `<think></think>` 块结尾,使推理模型跳过思考阶段,而不是把探测预算烧在上面。
+
+## 模型页细节改进:草稿跟随新默认值、下拉框排序、GPT 视觉、主页链接
+
+四项改进:修改 Project 默认模型后,已保存草稿的模型选择会重置为跟随新的默认值;聊天模型下拉框的顺序与模型库页一致;所有 GPT 模型都标记为支持视觉;模型卡片链接到各模型主页。
+
+## 细节
+
+- 草稿跟随默认值:在模型页保存默认模型的修改时,当前用户在该 Project 下已保存的草稿会丢弃其 `modelRef`——于是草稿聊天会实时解析(新的)默认值,而不是永远钉在旧模型上。
+- 下拉框顺序:新增的 `orderModelsLikeLibrary` 助手(有单元测试)把库的分组结构展平——内置 Provider 分组按 MODEL_PROVIDERS 的顺序、用户自定义分组随后、custom 置于最后,分组内顺序保留——聊天模型下拉框现在使用它。
+- GPT 视觉:`openai/gpt-5.6-sol` 与 `openai/gpt-5.6-terra` 改为支持视觉——GPT 系列一律是多模态的(OpenAI 的产品线策略),即便网关页面漏写了该模态。
+- 主页链接:新增 `modelHomepageUrl` 助手(有单元测试)——OpenRouter 与 Qwen Token Plan 有稳定的逐模型 URL 规律(对这些分组中用户自建的 id 同样有效;没有独立页面的 Token Plan 预览模型回退到计划总览页),原厂直连的 Provider 链接到其模型文档页,custom 与用户自定义分组则没有链接。模型卡片以角落的外链图标呈现该链接(作为可点击卡片的兄弟节点,因为交互元素不得嵌套)。
+
+## penguin-sdk 与 agenthub-models 让模型 key 留在项目本地
+
+两个 Skill 现在都明确写出模型 API key 应该放在哪里:放在工作目录下的项目里,绝不放进用户的全局 `~/.penguin`。
+
+- penguin-sdk(v6)与 agenthub-models(v3)指示用 penguin CLI 把 key 配置到 CWD 之下应用自己的数据根目录中(`penguin config model add --root <data_dir> …`),或者依赖 vault 注入的环境变量;读取、复制或回退到存放在全局 `~/.penguin` 目录中的模型 key 被明令禁止——那份配置属于运行 Penguin 的人,而不属于正在构建的这个应用。
+- 无 key 时的路径与此前一致:停下来,请用户通过卡片上的齿轮图标打开 Agent 设置并更新 key vault。
+
+## Vault 的修改在下一个 Task 生效;全局 key 不算可用
+
+保存 vault 现在会让该 Agent 缓存的 Session 运行时失效,使下一个 Task 以新值运行;同时 AI 应用类 Skill 不再把全局 `~/.penguin` 中的 key 算作可用。
+
+- Server:`PUT /agents/:agentId/vault` 会在会话管理器中递增该 Agent 的配置代次;所有在此次更新之前构建的运行时,会在其下一次空闲访问时被丢弃并经加载器重新恢复(恢复过程会重新读取 `agent_state/.vault.toml`;历史通过 Trace 得以保留)。已在执行中的 Task 保持它启动时的取值,并在结束后的首次访问时重建。单元测试与集成测试覆盖了空闲/繁忙两种条目以及 HTTP 接线;配置文档(中英)与 Web 端 Vault 标签页的提示记录了新语义。
+- penguin-sdk(v9)与 agenthub-models(v6):只有两个来源算作可用凭证——vault 注入的环境变量,或配置在应用自己数据根目录中的 key(`penguin config model list --root <data_dir>`)。全局 `~/.penguin` 中的 key(也就是不带 `--root` 直接执行 `penguin config model list` 所读到的内容——CLI 默认指向全局根目录)以及任何其他 `.penguin` 目录中的 key 一律不算,且绝不可使用或复制;当没有任何算数的 key 可用时,立即停止并请用户去配置一个,而不是继续构建或重试。
diff --git a/changelog/0.1.0/2026-07-20-readme-blog-and-docs.md b/changelog/0.1.0/2026-07-20-readme-blog-and-docs.md
index cc85760b..2d9ba70e 100644
--- a/changelog/0.1.0/2026-07-20-readme-blog-and-docs.md
+++ b/changelog/0.1.0/2026-07-20-readme-blog-and-docs.md
@@ -1,5 +1,12 @@
# READMEs, blog, and docs site
+- **Date:** 2026-07-20
+- **Type:** process
+- **Scope:** `docs`, `landing`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[中文版](2026-07-20-readme-blog-and-docs.zh.md)
+
## READMEs
The repository READMEs (en/zh).
diff --git a/changelog/0.1.0/2026-07-20-readme-blog-and-docs.zh.md b/changelog/0.1.0/2026-07-20-readme-blog-and-docs.zh.md
new file mode 100644
index 00000000..3e0611cc
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-readme-blog-and-docs.zh.md
@@ -0,0 +1,59 @@
+# README、博客与文档站
+
+- **Date:** 2026-07-20
+- **Type:** process
+- **Scope:** `docs`, `landing`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[English](2026-07-20-readme-blog-and-docs.md)
+
+## README
+
+仓库的 README(中英)。
+
+### 围绕产品叙事重构 README
+
+README 现在以「Agent 构建 Agent」的主张与社区链接开场,随后是三块功能展示(基准测试图表、一句话 RAG 演示、自进化),再依次是 changelog / 博客 / 文档、支持的模型、以人为先的安装说明、路线图、CONTRIBUTING、引用格式与致谢。
+
+### 细节
+
+- 新的叙事标题:"With LangChain, you build agents by hand — at 1x speed. With PenguinHarness, agents build agents — at 100x.",副标题为 "A zero-code CLI and Web UI, connected to 1000+ models",另附社区链接(Discord / X / 微信)。
+- 功能一「简单高效」:由落地页基准数据生成的明暗两版柱状图(相对 Claude Code 与 OpenAI Codex 的准确率与单次运行成本,三者均由 DeepSeek V4 Pro 驱动),以 `assets/readme/benchmark-{light,dark}.svg` 提交。
+- 功能二「一句话构建 Agent」:一句话 RAG 提示词,配上由新增的 `packages/landing/scripts/capture-readme-demo.mjs` 拍摄的真实产品截图(与落地页截图相同的真实服务端 + mock LLM 流水线),以 `assets/readme/rag-demo-{light,dark}.webp` 提交。
+- 功能三「自进化」:描述「评估—优化—快照」循环的文案,并留有一个 HTML 注释占位符,用于后续的演示视频。
+- 新增小节:Changelog / 博客 / 文档链接,一张支持模型表(DeepSeek V4、Kimi K3、GLM 5.2、Hunyuan 3、Qwen 3.8 Max、GPT 5.5、Gemini 3.5 Flash、Claude Opus 4.8 及其 Provider,另附「经网关可达 1000+」的说明),Requirements 与 Installation 拆分为「Web App —— 面向人」与「CLI & SDK —— 面向 Agent」,一份路线图(基准测试套件发布),一段 BibTeX 引用({PrismShadow Team}),以及许可证与致谢页脚。
+- 新增的 `CONTRIBUTING.md` 吸收了面向开发者的内容:开发命令、仓库结构表、质量门禁、英文化与 changelog 的工作规则,以及 README 素材的再生成说明;README 的 Development 小节现指向该文件。
+- `README.zh.md` 以中文镜像同一结构。
+
+### 按当前目录刷新 README 模型表
+
+支持模型表(同样是这八个模型)改为两列——左侧为模型,右侧为逗号分隔的、可提供该模型的 Provider 列表(依当日目录)——下方的说明现在列出全部五个 OpenAI 兼容网关。
+
+### 细节
+
+- 依目录的可得性:DeepSeek V4 见于五个分组,GLM 5.2 见于六个,Kimi K3 经 OpenRouter 与 Qwen 按量付费提供,Qwen 3.8 Max 为 Token Plan 预览版,GPT 5.5 与 Claude Opus 4.8 为原厂直连 + OpenRouter,Hunyuan 3 经 OpenRouter 提供,Gemini 3.5 Flash 为原厂直连。
+- 网关说明列出 OpenRouter、Fireworks AI、SiliconFlow、Qwen Token Plan 与 Qwen Pay-As-You-Go。README.zh.md 同步镜像。
+
+### 徽章分行,并展示成品 RAG 应用
+
+站点徽章(Website / Docs / Blog)与社区徽章(Discord / X / 微信)现在分列两行。一句话示例改为精简版的 claude-code-docs 配置专家提示词(聊天页的示例任务承载完整版),演示图片改为展示**成品**——生成出的 docs-expert 应用,带可点击的引用来源与示例问题(`assets/readme/rag-app-<lang>-<theme>.webp`,按语言各拍一版;中文 README 展示中文提示词与中文截图)——而不再是 PenguinHarness 的聊天界面。效果图渲染器(`rag-app-mockup.html` 加上重写的 `capture-readme-demo.mjs`,无需启动服务端)一并提交,以保证素材可再生。
+
+## 博客与文档站
+
+博客文章与文档站。
+
+### 公告栏、AMD Fireworks 额度博文,以及 GDPevo 发布故事
+
+站点新增一个轮播公告栏、一篇新的活动文章,以及一篇终于把来龙去脉讲全的发布文章。
+
+- **公告栏**——位于导航之上的可切换栏(每 6 秒自动轮播,悬停暂停,带前后箭头):第一条宣布 Kimi K3 与 Qwen 3.8 Max 上线(链接到模型文档),第二条为 $50 Fireworks 额度活动(链接到新文章)。中英双语,出现在每个页面上,随页面滚动移出。
+- **新博文 `fireworks-credits-amd`(中英)**——宣布与 AMD AI Developer Program 的合作,提供免费的 Fireworks 兑换码:先是逐步的申请流程(加入 ADP、进入 Member Perks、在表单中选择 Fireworks AI、审核、收到优惠券邮件、兑换并获取 API key,截图改编自 WhatGhost 的指南并注明出处),随后是三步 PenguinHarness 配置(安装、Fireworks 分组统一填 key + 预设 + 测速、运行)。
+- **发布文章重写(中英)**——现以 GDPevo 的起源故事开篇:自进化已在团队的 GDPevo Benchmark(附链接)中得到验证,而把它带给所有人正是 PenguinHarness 存在的理由。其余部分与 README 呼应:三条编号理由,配基准图表与 RAG 演示图(由站点自己的 /blog-assets/ 提供),安全约定,带「任意 OpenAI 协议均可」说明的模型表,安装与使用步骤,路线图(基准测试套件、桌面应用、Windows),以及结尾的社区召唤(Discord / X / 微信 / GitHub)。
+
+### 发布文章定稿为编号的三条理由结构
+
+发布博文(中英)保留 GDPevo 起源故事与编号式的「Why PenguinHarness」结构——### 1 复杂任务上更强且成本更低(基准图表 + 表格)、### 2 一句话让 Agent 构建你的应用(提示词 + 演示图)、### 3 自进化——其后依次是安全约定、模型表、仅面向 Web 的「如何使用」(安装 + penguin web + 模型页;不含 CLI 命令)、路线图与社区召唤。
+
+### 发布文章改用精简提示词展示成品 RAG 应用
+
+一句话构建那一节现在使用精简版的 claude-code-docs 配置专家提示词(中文版文章中为中文),并配上生成出的 docs-expert 应用的成品截图(按语言各一版,由 /blog-assets/ 提供),取代原先 PenguinHarness 的聊天界面截图。
diff --git a/changelog/0.1.0/2026-07-20-skills.md b/changelog/0.1.0/2026-07-20-skills.md
index ac1a64d4..0a41990b 100644
--- a/changelog/0.1.0/2026-07-20-skills.md
+++ b/changelog/0.1.0/2026-07-20-skills.md
@@ -1,8 +1,15 @@
# Skill library and the AI-app skills
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `skills`, `web`, `landing`
+- **PR:** [#11](https://github.com/Prism-Shadow/penguin-harness/pull/11), [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[中文版](2026-07-20-skills.zh.md)
+
## One-shot RAG app flow: skills rewrite and a draft-screen example task
-PR #11's squash — briefly lost to a force-push race during the branch rebase — is restored: the skills library rewrite that makes one-sentence RAG apps one-shot, a draft-screen example task card, and the finished-product showcase pipeline.
+The [#11](https://github.com/Prism-Shadow/penguin-harness/pull/11) squash — briefly lost to a force-push race during the branch rebase — is restored: the skills library rewrite that makes one-sentence RAG apps one-shot, a draft-screen example task card, and the finished-product showcase pipeline.
- penguin-sdk rewritten around a complete RAG recipe (corpus collection, heading chunking, local BM25 retrieval, per-request Session SSE answers with citations, run-and-verify checklist); web-design gains the Penguin visual language and chat/RAG layout recipes; agent-creation covers skill bundles; agenthub-dev retires and a firecrawl skill joins.
- The Web draft screen gains example task cards (full prompts submitted as-is), with chat stream rendering refinements (markdown module, work summaries, stream follow) and colorful skill icons.
diff --git a/changelog/0.1.0/2026-07-20-skills.zh.md b/changelog/0.1.0/2026-07-20-skills.zh.md
new file mode 100644
index 00000000..393d0f90
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-skills.zh.md
@@ -0,0 +1,37 @@
+# Skill 库与 AI 应用类 Skill
+
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `skills`, `web`, `landing`
+- **PR:** [#11](https://github.com/Prism-Shadow/penguin-harness/pull/11), [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[English](2026-07-20-skills.md)
+
+## 一句话生成 RAG 应用:Skill 重写与草稿页示例任务
+
+[#11](https://github.com/Prism-Shadow/penguin-harness/pull/11) 的 squash 提交——曾因分支 rebase 期间的一次 force-push 竞态而短暂丢失——已恢复:包括让一句话生成 RAG 应用一次成型的 Skill 库重写、一张草稿页示例任务卡片,以及成品展示流水线。
+
+- penguin-sdk 围绕一套完整的 RAG 配方重写(语料收集、按标题分块、本地 BM25 检索、逐请求的 Session SSE 带引用作答、运行并验证清单);web-design 新增 Penguin 视觉语言与聊天/RAG 布局配方;agent-creation 覆盖 Skill 组合包;agenthub-dev 退役,firecrawl skill 加入。
+- Web 草稿页新增示例任务卡片(完整提示词原样提交),并配套聊天流渲染的改进(Markdown 模块、工作摘要、流跟随)与彩色 Skill 图标。
+- 落地页截图流水线驱动 docs-expert 对话并渲染成品应用效果图;README / Cases 素材与提示词与此前切换到成品展示的改动保持一致。
+
+## Skill 库按受众重新分组,卡片操作改为方形
+
+库中原有的六个随意分组变为四个面向受众的分组,卡片操作也收进一个整齐的列中。
+
+- 新分组及其顺序:Office Productivity / 办公效率(`data-analysis`、`firecrawl`)、Software Development / 软件开发(`web-design`、`software-engineering`)、AI App Development / AI 应用开发(`penguin-sdk`、`penguin-cli`、`agenthub-models`)、Agent Tuning / Agent 调优(`agent-creation`、`benchmark-design`、`agent-evaluation`、`agent-optimization`)。文档表格、skills/server 测试与 skills e2e 用例随之更新。
+- Skill 卡片操作(更新提示 / 快捷调用 / 管理安装)现在是等大的方块,纵向堆叠为一列,垂直居中于卡片右缘;元信息行移到标题下方。
+
+## Skill:把 CLI 的 --root 固定到应用目录,并在无可用 key 时快速停止
+
+三个 Skill 为 AI 应用开发新增了两条硬性规则:始终把 penguin CLI 指向应用自己的数据根目录;一旦没有可用的 API key,立即停止求助循环。
+
+- penguin-sdk(v7)、agenthub-models(v4)、penguin-cli(v2):构建 AI 应用时,`penguin config ...` 必须始终传入 `--root <data_dir>`,指向当前工作目录内该应用自己的数据目录(也就是传给 `createAgent({ root })` 的同一路径,例如 `./penguin_data`);不带 `--root` 运行会写入全局的 `~/.penguin/data`,那属于运行 Penguin 的人,而不属于这个应用。
+- penguin-sdk(v7)与 agenthub-models(v4):当没有可用的 API key 时立即停止,转而向用户求助,而不是在工具调用上空转——反复执行 `env`、反复检查 vault、反复重试构建,只会浪费轮次和金钱;做一次明确的检查,然后把控制权交回用户(通过齿轮图标打开 Agent 设置,往 key vault 中添加一个 key)。
+
+## 系统提示词暴露 Provider 与 Model ID;Skill 明确「key 优先」的前提
+
+Agent 系统提示词的 Environment 小节现在带上了本次 Session 的模型引用,AI 应用类 Skill 也把 key 与 root 这两个前提写在了开头。
+
+- `# Environment` 小节在 `Session ID` 之前新增 `Provider: {{PROVIDER}}` 与 `Model ID: {{MODEL_ID}}` 两个占位符(取自解析后的模型条目,即本次 Session 模型的 Provider 分组与上游 id),字段顺序重排为 `Project Dir → Agent ID → CWD → Provider → Model ID → Session ID`。`assembleSystemPrompt` / `SessionEnvironmentValues` / `sessionEnvironment` 将这两个新值贯穿传递;配置文档的占位符表格(中英)随之更新。
+- penguin-sdk(v8)与 agenthub-models(v5)开篇即声明前提:进行 AI 应用开发时,请用户在**本 Agent 的 key vault** 中添加模型 API key,*然后*再开始构建;并把应用的 Penguin 数据根目录保持在 **CWD 工作区之内**(`--root ./penguin_data`),绝不使用 `~/.penguin`;模型 id 可以从 penguin CLI 的目录中获取。
diff --git a/changelog/0.1.0/2026-07-20-tooling.md b/changelog/0.1.0/2026-07-20-tooling.md
index 1c06590f..92dffa7f 100644
--- a/changelog/0.1.0/2026-07-20-tooling.md
+++ b/changelog/0.1.0/2026-07-20-tooling.md
@@ -1,5 +1,12 @@
# Tooling, language, and infrastructure
+- **Date:** 2026-07-20
+- **Type:** process
+- **Scope:** `tooling`, `core`, `server`, `web`, `cli`
+- **PR:** [#5](https://github.com/Prism-Shadow/penguin-harness/pull/5), [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[中文版](2026-07-20-tooling.zh.md)
+
Repository language, dev commands, the changelog layout itself, and dependency upgrades.
## Make English the repository working language
@@ -30,13 +37,11 @@ catalogs, zh documents, and CJK-purpose test fixtures.
- Known gap: web `formatTaskStats` still hardcodes zh stat-line fragments; the proper fix is
routing them through the locale catalogs.
-PR: [#5](https://github.com/Prism-Shadow/penguin-harness/pull/5) (merged 2026-07-20)
-
## Reorganize the changelog by release version
The top level now holds only version folders; each version's README carries the
-one-line-per-change index, and detail files live inside the folder (mirrors agenthub PR
-#162).
+one-line-per-change index, and detail files live inside the folder (mirrors agenthub
+[#162](https://github.com/Prism-Shadow/agenthub/pull/162)).
## Details
@@ -115,7 +120,8 @@ itself when node_modules is missing or the lockfile changed.
## Upgrade AgentHub to 0.4.0 and adopt the opaque fidelity payload
-@prismshadow/agenthub 0.3.3 -> 0.4.0 (agenthub PR #159): content items replace the item-level
+@prismshadow/agenthub 0.3.3 -> 0.4.0 (agenthub
+[#159](https://github.com/Prism-Shadow/agenthub/pull/159)): content items replace the item-level
`signature`/`phase` fields with one opaque `fidelity` object, and OmniMessage now carries it
verbatim end to end — Trace, replay, and resume included; the `agenthub-dev` skill joins the
built-in library.
diff --git a/changelog/0.1.0/2026-07-20-tooling.zh.md b/changelog/0.1.0/2026-07-20-tooling.zh.md
new file mode 100644
index 00000000..e86bac7c
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-tooling.zh.md
@@ -0,0 +1,84 @@
+# 工具链、语言与基础设施
+
+- **Date:** 2026-07-20
+- **Type:** process
+- **Scope:** `tooling`, `core`, `server`, `web`, `cli`
+- **PR:** [#5](https://github.com/Prism-Shadow/penguin-harness/pull/5), [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[English](2026-07-20-tooling.md)
+
+仓库语言、开发命令、changelog 布局本身,以及依赖升级。
+
+## 把英文定为仓库工作语言
+
+将所有残留的非 i18n 中文(注释、错误/日志信息、测试标题与固定数据、包元信息、e2e mock 内容)翻译为英文;中文仅保留在 i18n 词条、zh 文档,以及以 CJK 为目的的测试数据中。
+
+## 细节
+
+- 包元信息:`package.json` 的 description(根 / server / web / landing)以及 `link:cli` 的回退 echo。
+- 源码注释:所有残留中文注释,包括 `packages/server/src/db/schema.ts` 中的整套 SQL 注释。
+- 硬编码的非 i18n 用户可见文案(用户可见的语言变更;错误码、占位符与上限未动):server 的 HTTP / 校验 / 409 信息、schedule TOML 校验错误、server 日志、core SDK 错误、CLI 回退错误、web 的 Provider 不变式。
+- 测试:所有中文 describe/it 标题与语言无关的固定数据均已翻译,断言同步对齐到新的英文源字符串。
+- e2e:mock LLM 对话内容与跨文件分支标记一致翻译(mock 的 `includes()` 分派所依赖的子串关系被保留);zh 语言环境的 UI 断言保留;`e2e/README.md` 已翻译。
+- 按要求保留的中文:zh i18n 词条与字段(`strings.ts` 字典、CLI 的 `i18n.ts`、`titleZh`、`short_description_zh`、zh 语言名标签、`*.zh.md` 文档),以及断言 zh i18n 输出或验证 CJK 专有行为的测试字面量(显示宽度、CJK id 校验、标题语言一致性、zh-CN e2e UI 断言)。
+- 已知遗留:web 的 `formatTaskStats` 仍硬编码中文统计行片段;正确的修法是让它们走语言词条。
+
+## 按发布版本重组 changelog
+
+顶层现在只保留版本目录;每个版本的 README 承载「一条改动一行」的索引,详情文件放在该目录内(与 agenthub [#162](https://github.com/Prism-Shadow/agenthub/pull/162) 的做法一致)。
+
+## 细节
+
+- `changelog/<version>/README.md` 是该版本的汇总:每条改动一行,含标题与一句话摘要,以相对路径链接到详情文件;`0.1.0/README.md` 吸收了原先保存在顶层索引中的那一节。
+- `changelog/README.md` 现在只记录布局与条目约定(不再逐文件罗列)。
+- 工作规则(AGENTS.md、CONTRIBUTING.md)中关于更新索引的指引,从顶层文件改为指向版本目录的 README。
+
+## 串行化开发预构建,修复 dev:server / dev:web 并发互相覆盖的问题
+
+dev:server 与 dev:web 现在共用一次带锁串行、且去重的 skills 与 core 预构建,因此同时启动两者不再会破坏 dist/(此前两个开启了 clean:true 的 tsup 构建会在同一输出目录中竞争)。
+
+## 细节
+
+- 新增 `scripts/dev-prebuild.mjs`:围绕 `pnpm --filter skills --filter core build` 取一把磁盘互斥锁(在 `node_modules/` 下用原子 mkdir 实现);并发调用会等待而不是互相覆盖。若持锁进程已死亡,或锁的存在时间超过 10 分钟,则崩溃残留的锁会被抢占。
+- 一个 5 秒的成功时间戳用于合并重复构建:同时启动 dev:server 与 dev:web 只会构建一次(等待方直接跳过),而 dev:server 内部的再次调用是空操作。这个窗口被刻意设得很小,以保证「编辑后重启」的循环总会重新构建——「绝不基于陈旧依赖启动」的行为未变。
+- 根级 `dev:server` 现在只是委托给 server 包的 `dev` 脚本(后者通过共享脚本完成预构建),从而去掉了历史上对 core 的重复构建;`dev:web` 则先经脚本预构建再启动 Vite。
+- 在 `packages/server` 中单独运行 `pnpm dev` 现在也会构建 skills(此前只构建 core,尽管 server 在运行时会导入 skills)。
+- 已验证:并发调用能正确等待 / 跳过并释放锁;同时启动 dev:server 与 dev:web 只执行一次构建,两个服务均能干净启动。
+
+## 新增合并的 pnpm dev 与 dev:landing 快捷命令
+
+`pnpm dev` 现在会同时启动后端与 Web 应用并带日志前缀(工作区依赖经共享预构建锁只构建一次),`pnpm dev:landing` 则从仓库根目录启动落地页的开发服务器。
+
+## 细节
+
+- `pnpm dev` 执行 `concurrently -n server,web "pnpm dev:server" "pnpm dev:web"`。此前合并这两者并不安全:每条命令都会用开启 `clean: true` 的 tsup 把 skills/core 预构建到同一 dist/ 目录,并行构建互相覆盖。带锁串行的预构建(见上文串行化预构建条目)消除了这一竞态,其成功时间戳还会把合并启动时的两次预构建收敛为一次。
+- `pnpm dev:landing` 委托给 landing 包的 Vite 开发服务器(端口 7366,补齐 7364/7365/7367 的开发端口family)。landing 包没有工作区依赖,因此不涉及预构建。
+- `concurrently` 加入根级 devDependency;README.md 与 README.zh.md 中的开发命令列表现在覆盖 `dev` 与 `dev:landing`。
+- 已验证:合并启动恰好执行一次 skills+core 构建(另一次预构建等待后跳过),server 位于 127.0.0.1:7364、Vite 位于 localhost:7365;落地页开发服务器在 localhost:7366 响应。注意 Vite 绑定的是 localhost(IPv6 ::1)——用 curl 探测 Vite 端口时请用 `localhost` 而非 `127.0.0.1`。
+
+## 开发命令自动保持 pnpm install 为最新
+
+在执行开发命令前忘记 `pnpm install` 不再会导致启动失败:每条开发命令的前置步骤都会检查安装新鲜度(基于 lockfile 哈希的时间戳),并在 node_modules 缺失或 lockfile 变化时自行执行 `pnpm install`。
+
+## 细节
+
+- `scripts/dev-prebuild.mjs` 在其既有的锁内新增一个安装新鲜度步骤:安装成功后记录 pnpm-lock.yaml 的内容哈希,因此常规的开发启动不付出任何代价;而全新克隆或拉取到的 lockfile 变更会自动触发 `pnpm install`(并发的开发命令依然只安装 / 构建一次)。
+- 锁与时间戳从 `node_modules/` 移到按仓库路径作键的操作系统临时目录——它们必须在首次安装之前就能存在(旧位置在全新克隆时会崩溃),而按检出目录隔离则由这个键来保证。
+- `dev:docs` / `dev:landing` 没有需要构建的工作区依赖,但仍需要最新的安装:它们现在以 `--install-only` 运行该前置步骤。
+
+## 升级 AgentHub 到 0.4.0,采用不透明的 fidelity 载荷
+
+@prismshadow/agenthub 0.3.3 -> 0.4.0(agenthub [#159](https://github.com/Prism-Shadow/agenthub/pull/159)):内容项以一个不透明的 `fidelity` 对象取代原有的项级 `signature` / `phase` 字段,OmniMessage 现在端到端原样携带它——包括 Trace、回放与恢复;`agenthub-dev` skill 加入内置库。
+
+## 细节
+
+- OmniMessage 的完整载荷(text、thinking、inline_data、inline_thinking、tool_call)以 `fidelity?: Record<string, unknown>` 取代 `signature?: string` / `phase?: string | null`——这是一个不透明的线路保真载荷,原样写入 Trace 并在回放时原样传回(Claude 的思考签名、GPT-5 的加密推理 `{id, encrypted_content}` 与 `{phase}` 标记、OpenAI 兼容协议的 `{reasoning_field}` 字段名)。构造器直接接收该对象;空对象视同不存在。
+- GenerativeModel 的流式转换器与 AgentHub baseClient 的聚合行为保持一致:一个 thinking 块由其 fidelity 载荷收尾,且一串相同 fidelity 构成一个块(OpenAI 兼容客户端会给每个 thinking 增量都打上相同的 `{reasoning_field}`,这不能用来切分块——此举把 agenthub 的 reasoning-field 回放修复贯通到 PenguinHarness,使得面向严格 OpenAI 兼容上游的多轮对话得以存活);文本片段在 `fidelity.phase` 不同时切分,在 `fidelity.signature` 出现时收尾,并合并 fidelity 的键。跨片段的文本 phase 粘性已移除(与 baseClient 一致)。
+- `agenthub-dev` skill(AgentHub 自身的模型支持开发流程)被安装进内置库的 Penguin Development 分组,并按库的约定补齐(version/updated frontmatter、简短描述、一节「Before you start」,以及一个自定义图标)。
+- 面向 0.4.x 的畸形分类修复:agenthub 现在把流式工具调用参数被截断的情况作为它自己的 `ToolCallArgumentParseError` 抛出(此前是裸的 `SyntaxError`),把仅有思考内容的补全作为 `EmptyResponseError` 抛出;`isMalformedJsonParseError` 能识别这两者(instanceof + name 回退 + cause 链),因此它们仍会归为 `malformed`,引擎会重连重试而不是让该轮失败(由 malformed e2e 覆盖)。
+- 文档(omni-message、interfaces、sessions-and-traces;中英)与设计规格同步更新到 fidelity 语义。
+- 本次改动之前写入的 Trace 在载荷上携带的是 `signature` / `phase`;按发布前不做迁移的策略,它们不会被转换(回放时旧字段被忽略——恢复这类 Session 会丢失 Provider 保真信息;如有需要请删除后重建)。
+
+## changelog 目录合并相关条目
+
+「一条改动一个文件」的做法,仅本次发布就已增长到 35 个碎片文件;相关改动现在合并为六个「日期-slug」条目文件(models-and-catalog、web-app、landing-site、blog-and-docs、readme、tooling),各自保持标准的条目结构——H1 标题、一句话摘要,然后是逐项细节——由版本 README 为每个条目文件列出一行。布局约定本身未变;该分支还 rebase 到了 main 上以线性化掉那个 merge commit,最终产物树保持逐字节一致。
diff --git a/changelog/0.1.0/2026-07-20-web-app.md b/changelog/0.1.0/2026-07-20-web-app.md
index 54dce4a8..4921f56b 100644
--- a/changelog/0.1.0/2026-07-20-web-app.md
+++ b/changelog/0.1.0/2026-07-20-web-app.md
@@ -1,5 +1,12 @@
# Web App
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7), [#5](https://github.com/Prism-Shadow/penguin-harness/pull/5)
+
+[中文版](2026-07-20-web-app.zh.md)
+
Chat input, session titles, and the skill library in the Web App.
## Chat input: positional slash, skill chips above the input, wider skill menu
diff --git a/changelog/0.1.0/2026-07-20-web-app.zh.md b/changelog/0.1.0/2026-07-20-web-app.zh.md
new file mode 100644
index 00000000..bdba23d7
--- /dev/null
+++ b/changelog/0.1.0/2026-07-20-web-app.zh.md
@@ -0,0 +1,73 @@
+# Web App
+
+- **Date:** 2026-07-20
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7), [#5](https://github.com/Prism-Shadow/penguin-harness/pull/5)
+
+[English](2026-07-20-web-app.md)
+
+Web App 中的聊天输入、会话标题与 Skill 库。
+
+## 聊天输入:按位置触发的斜杠、输入框上方的 Skill 芯片、更宽的 Skill 菜单
+
+`/` 命令菜单现在可从任意光标位置弹出(与 `@` 提及一致),执行命令只移除该 token;已选中的 Skill 以芯片形式显示在输入框上方、紧邻 Agent 芯片;芯片的移除按钮在悬停时改变颜色而不是刷上背景色;Skill 下拉菜单加宽以便描述可读,同时仍能容纳手机屏幕。
+
+## 细节
+
+- 按位置触发的斜杠(`slash-token.ts`,纯函数且有单元测试):文本开头或空白之后的 `/` 会从光标所在处弹出命令菜单(路径与 URL 永远不会触发),与既有的按位置匹配 `@` 提及保持一致;执行命令只移除 `start..end` 这一段 token,其余文本保留。发送时的 `@` 语义未变——仍然只有位于开头的 `@` 才会触发交接。
+- 已选中的 Skill 以芯片形式渲染在输入框上方,与 `@` 交接芯片同处一行(Skill 图标 + 等宽名称 + 移除叉号),从下拉菜单中选取时即刻出现;工具栏上的计数徽章保持同步。
+- 芯片的移除按钮(Agent 与 Skill)去掉了悬停背景——改为叉号本身变色。
+- Skill 下拉菜单加宽(26rem,并按视口收敛),使描述在桌面端保持可读,同时不会在手机上溢出。
+- 模型页的分组测速按钮在 sm 断点以下收缩为纯图标(三个带文字的操作在 390px 宽的头部放不下——由布局 e2e 捕获)。
+
+## 正文满 1000 字符后即开始生成标题
+
+Session 标题现在只要主会话正文流出约 1000 个字符就开始生成,而不再等待整个 Task 结束——长回答不会再冲掉标题素材——并且标题提示词现在会抑制思维链。
+
+## 细节
+
+- Server:输出中继在主会话完整正文流出满 EARLY_TITLE_BODY_CHARS(1000)个字符后,于运行途中触发标题生成器(子会话文本不计入);生成器自带守卫(标题为 NULL、单飞行),而 Task 完成时的触发保留为短回答的兜底。由一个受开关控制的运行途中测试覆盖,证明提前触发确实发生在运行仍在进行时。
+- Core:捕获的助手侧标题素材上限为 1000 字符(用户侧仍为 2000)——标题只需要回答的开头部分。
+- 标题提示词新增一条明确规则「立即作答——不要出声思考、不要产生思维链」,并以一个空的 `<think></think>` 块结尾,许多推理模型会把它视作已经闭合的思考阶段(与模型探测所用的手法相同),从而把这次一次性请求的预算留给标题本身。
+
+## Skill 库:更新提醒、无边框分组、强调色图标
+
+当某个 Agent 已安装的 Skill 副本版本低于库中版本时,Skill 库会给出提醒——卡片上的强调色旋转按钮可一键更新所有过期的 Agent,管理安装对话框则会在过期行上标出「更新」按钮。分组小节去掉边框,卡片图标改为置于主题强调色背景之上。
+
+## 细节
+
+- 已安装 Skill 的快照现在会记录每个已安装副本的 `version`(读取 API 本就返回它——数据源是已安装的 SKILL.md frontmatter)。一个纯函数 `outdatedAgentIds` 助手(有单元测试)标记出副本严格旧于库版本的 Agent;未安装的 Agent 以及本地副本**更新**的情况永远不会触发它。
+- 卡片页脚:当存在任一过期 Agent 时,出现一个强调色旋转按钮(「有新版本:更新 N 个 Agent 的安装」/ "Update available");点击后会在每个过期 Agent 上重新安装当前库副本(再次安装即更新的语义),并给出一次批量成功提示;部分失败时保留已成功的 Agent,并提示第一个错误。
+- 管理安装对话框:过期行在「已安装」/"Installed" 旁显示一个强调色的「更新」/"Update" 按钮,仅更新该 Agent。
+- 样式:分组小节改为无边框(仅由头部背景承载分组感);卡片图标改用主题强调色(`--accent-bg`/`--accent-fg`,跟随主题色设置),取代原先带边框的灰色方块。
+
+## 标题剥离 Skill 调用标记;Agent 卡片显示已安装 Skill 数
+
+两项 Web App 增补:生成的标题不再泄漏 `<use_skills>` 块,Agent 卡片显示已安装的 Skill 数量。
+
+- Session 标题在生成前以及兜底路径中都会剥离机器标记:`stripConversationMarkers`(core,已导出)会从送给模型的素材、从模型输出(经 `sanitizeTitle`)以及从服务端的首行兜底中,移除 `<use_skills>…</use_skills>` 与交接 / 定时任务的标记块——因此一次 Skill 调用的标记绝不会成为标题。普通的尖括号文本(例如 `<div>`)不受影响。
+- Agent 卡片的统计行新增已安装 Skill 数(打开的书本图标):agents API / service 依据 `agent_state/skills/<name>/SKILL.md` 目录计算 `skillCount`,与既有的会话 / 工具 / vault key / 定时任务计数并列。
+
+## 斜杠菜单不再超出屏幕;Skill 卡片按钮改为横排浅色
+
+两处 Web App 打磨修复:斜杠命令菜单可能长过视口顶部,以及 Skill 卡片操作的排布再次调整。
+
+- 斜杠菜单(列出 /compact 以及所有已安装 Skill)现在把自身高度限制在 min(20rem, 40vh) 并内部滚动,因此其顶边永远不会离开屏幕;当前选中行会把自己滚动进视野以便键盘导航。
+- Skill 卡片操作回到单行横排(仍是等大方块,垂直居中于卡片右缘),三个按钮现在统一采用浅色次级背景。
+
+## 密码字段打磨、模型 key 可见性,以及无边框 Skill 卡片
+
+围绕密码字段、模型 key 输入框与 Skill 库卡片的若干小的体验修复,另有一张重绘的企鹅游戏截图。
+
+- 修改密码对话框的「当前密码」字段现在给出提示,写明内置管理员的默认初始密码(penguin-2026),使忘记密码的用户仍能进入。
+- 密码的显示/隐藏切换按钮移出 Tab 顺序(tabIndex -1):Tab 现在在字段之间移动,而不会落到那个显示按钮上。
+- 模型 API key 输入框新增同样的显示/隐藏切换(复用 PasswordInput),以便在保存前核对粘贴进来的 key。
+- Skill 库卡片去掉边框;悬停改为给整张卡片铺一层浅灰背景。
+- 企鹅雪橇游戏的效果图重绘,使企鹅保持为一个连贯的卡通整体(此前看起来是碎的);草稿页卡片、其提示词与落地页标签文案中,都把这个游戏示例强调为 2D,并采用更平滑、更温和的难度曲线。
+
+## 管理员初始密码改为 penguin-2026
+
+`admin123` 出现在每一份泄露密码库里,因此 Chrome 会把首次登录标记为已泄露密码;预置管理员现在以 `penguin-2026` 起始——不会被标记、与品牌相关、全小写加一个连字符,因而依然好输入。
+
+该取值在所有出现处一并替换:服务端预置(`ADMIN_INITIAL_PASSWORD`)、发布版安装脚本的首次登录提示、README、文档(快速开始 / web-app / server-api)、博客文章、落地页快速开始文案、截图脚本,以及 e2e 认证辅助函数。「尽快修改」横幅的语义未变。
diff --git a/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.md b/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.md
index c5963791..785e2090 100644
--- a/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.md
+++ b/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.md
@@ -1,5 +1,12 @@
# Explicit model reference pairs, and a batch of review fixes
+- **Date:** 2026-07-21
+- **Type:** fix
+- **Scope:** `core`, `cli`, `server`, `web`, `landing`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[中文版](2026-07-21-model-reference-and-review-fixes.zh.md)
+
The provider group is no longer resolved automatically anywhere — a model is referenced by the complete `(provider, model_id)` pair or not at all — and a code review of the release branch turned up a further set of correctness, accessibility and documentation defects, all fixed here.
- **The provider is never inferred, guessed, or defaulted (core, CLI, server, web).** Two mechanisms used to pick a group on the user's behalf, and both are gone. Catalog inference (`inferProviderForUpstream`) took the first bare-id match, and gateways resell vendor models under their upstream ids — `glm-5.2`, `qwen3.7-max`, `qwen3.7-plus` and `deepseek-v4-pro` each belong to two groups now — so `penguin config model add --model-id glm-5.2 --api-key <key>` wrote a Z.AI credential onto the Qwen Token Plan entry and sent it to Alibaba's endpoint (on the previous release the same command resolved to `zhipu`). Config resolution (`resolveModelRef`) separately matched a bare `model_id` against the Project's configured models whenever it happened to be unique. Both are deleted, along with `inferProviderForUpstream` and `providersForUpstream`. The rule everywhere is now **both halves or neither**: `--provider` is required on `config model add`; on `run` / `chat` the pair as a whole stays optional (omit both for the Project default) but supplying one half is an error; `addModel` and `Agent.createSession` require the pair at the type level; `POST /sessions` and the schedule routes return 400 for a half reference, and a schedule file persisted with only a `modelId` is reported invalid instead of silently binding to a guessed group. `run_subagent` gains a `provider` argument beside `model_id` and refuses half a reference, so a delegating model cannot land a subagent on the wrong vendor either. The trace viewer stops attributing cost to a first-match guess for pre-tag traces, showing no cost instead. CLI help, the CLI/models/server-api/quickstart/configuration/interfaces docs (en+zh), the READMEs and every skill that scripts the CLI were updated to pass the pair.
diff --git a/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.zh.md b/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.zh.md
new file mode 100644
index 00000000..4b7e2895
--- /dev/null
+++ b/changelog/0.1.0/2026-07-21-model-reference-and-review-fixes.zh.md
@@ -0,0 +1,24 @@
+# 显式的模型引用二元组,以及一批审查修复
+
+- **Date:** 2026-07-21
+- **Type:** fix
+- **Scope:** `core`, `cli`, `server`, `web`, `landing`
+- **PR:** [#7](https://github.com/Prism-Shadow/penguin-harness/pull/7)
+
+[English](2026-07-21-model-reference-and-review-fixes.md)
+
+Provider 分组在任何地方都不再被自动解析——模型要么以完整的 `(provider, model_id)` 二元组引用,要么就不引用——同时对发布分支的一次代码审查又查出了一批正确性、可访问性与文档缺陷,这里一并修复。
+
+- **Provider 绝不被推断、猜测或默认(core、CLI、server、web)。** 此前有两套机制会替用户挑选分组,现已全部移除。目录推断(`inferProviderForUpstream`)取的是第一个裸 id 匹配,而网关会以上游 id 转售厂商模型——`glm-5.2`、`qwen3.7-max`、`qwen3.7-plus` 与 `deepseek-v4-pro` 如今各自都属于两个分组——因此 `penguin config model add --model-id glm-5.2 --api-key <key>` 会把一个 Z.AI 凭证写到 Qwen Token Plan 的条目上,并发往阿里云的端点(而在上一个版本,同样的命令会解析到 `zhipu`)。配置解析(`resolveModelRef`)则是另一套:只要裸 `model_id` 在 Project 已配置的模型中恰好唯一,它就会匹配上。两者连同 `inferProviderForUpstream` 与 `providersForUpstream` 一并删除。现在到处都是**要么两半都给,要么都不给**:`config model add` 上 `--provider` 为必填;在 `run` / `chat` 上,这个二元组作为整体仍是可选的(两半都省略即使用 Project 默认),但只给一半是错误;`addModel` 与 `Agent.createSession` 在类型层面要求完整二元组;`POST /sessions` 与 schedule 路由对半个引用返回 400,而只持久化了 `modelId` 的 schedule 文件会被报为无效,而不是静默绑定到一个猜出来的分组。`run_subagent` 在 `model_id` 旁新增 `provider` 参数并拒绝半个引用,这样发起委派的模型也无法把子 Agent 落到错误的厂商上。Trace 查看器不再为打标签之前的 trace 按首个匹配猜测归集成本,而是不显示成本。CLI 帮助、CLI/模型/服务端 API/快速开始/配置/接口文档(中英)、README 以及每个会脚本化调用 CLI 的 Skill 均已更新为传入完整二元组。
+- **Escape 不再清空输入框(Web App)。** 斜杠菜单的 Escape 处理会清掉整个输入内容——在菜单只对以 `/` 开头的草稿弹出时这是正确的,但本次发布中菜单改为按位置弹出,于是从草稿中间的某个 `/token` 处按 Escape 会摧毁此前输入的一切,且不可恢复(textarea 是受控组件,撤销也救不回来)。现在 Escape 只关闭菜单,通过一个 `slashDismissed` 偏移量与 `@` 提及的行为保持一致。另外,`removeSlashToken` 原本会折叠剩余草稿中**每一处**两个及以上空格的连续段,而不只是拼接处,会静默重排粘贴进来的代码、YAML、对齐的表格与缩进;现在它只处理拼接处。
+- **penguin.ooo 安装脚本会转发参数。** `https://penguin.ooo/install.sh` 此前把真正的安装脚本直接管道给 `sh`,于是 `--universal` 与 `--version` 被静默丢弃——这让架构不受支持的用户拿到一条通过文档 URL 根本无法生效的建议(「请加 `--universal` 重试」),也把版本固定变成了「装最新版」。现在这个转发脚本会先下载到临时文件,用 `"$@"` 运行它,并透传退出码;这同时消除了「把截断的下载内容管道给一个会先删旧安装再移入新安装的脚本」所带来的半执行风险。
+- **测速要么报出吞吐量,要么什么都不报。** 测速模式把输出上限提高到 64 个 Token,却复用了连通性探测的提示词——而后者只要求回一个词——于是速率是在一个 1 到 3 个 Token 的样本上算出来的,还被收尾 usage 分块的往返时延所主导,同一个模型会因为 30ms 的抖动而被评为绿色或黄色。测速模式现在有了自己的提示词,会持续生成直到触及上限;新增的纯函数 `probeTps` 会在样本低于有意义的下限(16 个 Token、100ms)时丢弃速率,只保留 TTFT,而不是给出一个编造的数字。
+- **公告栏(落地页)。** 轮播现在在键盘获得焦点时也会暂停,因此获得焦点的链接不会再被留在一张 `aria-hidden`、且已被平移出视野的幻灯片里(这既违反 ARIA,也不满足 WCAG 2.2.2);在 `prefers-reduced-motion` 下,轮播也不会再把自己搁浅在克隆幻灯片上。
+- **流式保真规则由测试固定下来。** 随 AgentHub 0.4.0 载荷一起加入的两条规则——`fidelity.signature` 会收尾当前打开的文本片段,以及 fidelity 的键在增量之间是合并而非替换——此前没有任何覆盖;把这两条都改坏,整个测试套件依然全绿。现在任一条被破坏测试都会失败,从而防止回放时把一个签名交给 Provider 去覆盖它其实从未签署过的文本,也防止 GPT-5 的 phase 分段在恢复时丢失。
+- **新的基准测试结果,以及一个改了形态的对比。** 两套测试均已刷新,对比的设计也随之改变:不再让三个 Harness 都跑同一个 DeepSeek V4 Pro,而是各自搭配它通常配套的模型——PenguinHarness 用 DeepSeek V4 Pro,Claude Code 用 Claude Opus 4.8,OpenAI Codex 用 GPT-5.5——因此模型这一列本身成为结果的一部分,而 Token 与成本是整套测试的总量而非单次运行的均值。数据分析(15 个任务,单次运行):PenguinHarness 66.67%,两个对手均为 53.33%,成本分别是 $0.55 对 $38.48 与 $19.41。编码(40 个任务 × 2 次运行,准确率取全部 80 个结果):71.25%,与 Codex 持平、落后于 Claude Code 的 86.25%,成本为 $3.81 对 $220.08 与 $146.97。文案随数据一同调整——该小节不再声称「同一模型」或「三者中准确率最高」,这两点都与新结果相悖,转而以单位质量成本立论;文案中 35×/70×/58×/39× 这几个倍数现在由单元测试对着数据断言,因此下次刷新时它们不会漂移。README 与博客的图表由 `render-benchmark-svg.mjs` 从同一数据源生成。柱状图保持线性且从零起,但设有最小长度:按真实比例,成本面板会把 PenguinHarness 压到约 2px,读起来像一个空槽位而不是胜出的序列,因此这个下限让它保持可见,同时仍然明显是最短的那根——每根柱子旁都印有精确数值。README 的图表说明现在是一行结论,而不是一段运行参数,与 RAG 的成本钩子保持一致。
+- **演示视频登上落地页。** 自进化小节的「演示视频即将上线」标签被录像本身取代,RAG 案例标签页也改为播放成品应用而不再只是配图——两者都与 README 保持一致,也都做了语言匹配(`evo_zh`/`evo_en`、`rag_zh`/`rag_en`)。文件不放在本仓库:每个约 9 MB,而整个仓库历史约 17 MB,提交四个就会让每位贡献者克隆的体量翻三倍,而这些素材只有营销站点会用到;因此它们由兄弟仓库 `penguin-harness-community` 经 `raw.githubusercontent` 提供,该服务返回 `accept-ranges: bytes`(拖动进度可用)与 `access-control-allow-origin: *`。它的 `application/octet-stream` 类型不会阻碍播放——`nosniff` 只对脚本与样式强制执行,不针对媒体——这一点是在 Chromium 中端到端验证过的,而非想当然。每处嵌入都配一张海报图并设置 `preload="none"`,因此一次页面访问只下载一张约 37 KB 的静帧,在有人按下播放之前不下载任何视频字节(通过观察加载时的网络请求断言:零个 mp4 请求)。独立嵌入刻意去掉了截图所用的 BrowserFrame 外框,因为自进化那段录像是一份带旁白的演示而非产品自身界面;RAG 案例则保留外框,因为那里确实就是应用本身。
+- **草稿页真正居中了,向上弹出的菜单也不再被裁切。** 品牌区块原先位于上方的 flex 弹性空间之内,因此它上方的间距比示例卡片下方的间距正好短了品牌区块自身的高度——整个页面偏高,而从输入框向上弹出的斜杠菜单会撞到滚动区域的顶部。品牌区块现在与输入框、药丸和示例任务处在同一个居中区块内,使上下两处间距完全相同(实测:视口高 1000px 时为 134/134,900px 时 84/84,800px 时 34/34)。斜杠菜单与 `@` 菜单另外会把自身高度限制在输入框与最近的裁切祖先之间实测出的可用空间内,而不是固定的 `40vh`——后者不可能知道这个距离:此前菜单在 900px 高时被裁掉约 50px,800px 时仍被裁掉 5px,现在一直到 620px 高都能放下,靠自身收缩与内部滚动来适应而不是被裁切。
+- **Web 打磨。** 切换活动 Project 时测速徽章会重置(结果以 `(provider, model_id)` 为键,此前会跨 Project 泄漏);工作分组头部的计时与最终落定使用同一个时间跨度,因此其时长不会往回跳;Markdown 渲染器的组件映射具有稳定标识,因此流式输出不再重新挂载已闭合的代码块、也不再丢失文本选区或 Copy 状态。
+- **源码重新可 diff。** 有四个文件把复合键分隔符写成了字面的 NUL 字节而不是 `\0` 转义,导致 git 把它们当作二进制——`catalog-sync.ts`、model-catalog 与 models 的测试,以及 scheduler,都因此产生不了可审查的 diff、没有 `git grep` 输出、也无法做文本合并。运行时取值未变。
+- **文档与元信息。** 工作区 `files/content` 预览模式及其响应头写入了服务端 API 参考(中英);skills README 现在列出实际存在的分组;Skill 库页面的文档字符串描述的是它真正渲染的逐 Skill 配色与两列网格;`penguin-cli` 的 `updated` 日期与其版本号对齐;penguin-sdk 的 RAG 配方不再把整个 Skill 库装进它生成的应用里;README 的模型表不再把 Kimi K3 列在 Moonshot 名下(后者并不提供它);目录定价区块里的一处中文注释已翻译。
+- **一个没有在测试的测试。** 那个断言「子会话输出不计入 1000 字符触发阈值」的早期标题用例,在把来源守卫移除后依然全绿;现在缺了它就会失败。
diff --git a/changelog/0.1.0/2026-07-21-site-preferences-sync.md b/changelog/0.1.0/2026-07-21-site-preferences-sync.md
index 634530ab..40e11cce 100644
--- a/changelog/0.1.0/2026-07-21-site-preferences-sync.md
+++ b/changelog/0.1.0/2026-07-21-site-preferences-sync.md
@@ -1,5 +1,12 @@
# Language and theme carry across the landing page and the docs site
+- **Date:** 2026-07-21
+- **Type:** fix
+- **Scope:** `landing`, `docs`
+- **PR:** [#13](https://github.com/Prism-Shadow/penguin-harness/pull/13)
+
+[中文版](2026-07-21-site-preferences-sync.zh.md)
+
The two sites are separate SPAs deployed to one origin — penguin.ooo and penguin.ooo/docs/ — but each persisted its preferences under its own `localStorage` key (`penguin-landing.*` and `penguin-docs.*`). Picking dark mode or Chinese on one and clicking through to the other therefore dropped the visitor back to the system default, which read as the setting being ignored.
- Both sites now read and write one shared pair of keys, `penguin-site.theme` and `penguin-site.lang`, via a small `state/site-prefs.ts` module duplicated in each package (they share no package, exactly as `theme.tsx` and `locale.tsx` already are). The keys must stay identical on both sides; if they drift, the sync stops silently.
diff --git a/changelog/0.1.0/2026-07-21-site-preferences-sync.zh.md b/changelog/0.1.0/2026-07-21-site-preferences-sync.zh.md
new file mode 100644
index 00000000..70f3c4e1
--- /dev/null
+++ b/changelog/0.1.0/2026-07-21-site-preferences-sync.zh.md
@@ -0,0 +1,18 @@
+# 语言与主题在落地页和文档站之间保持一致
+
+- **Date:** 2026-07-21
+- **Type:** fix
+- **Scope:** `landing`, `docs`
+- **PR:** [#13](https://github.com/Prism-Shadow/penguin-harness/pull/13)
+
+[English](2026-07-21-site-preferences-sync.md)
+
+这两个站点是部署在同一源下的两个独立 SPA——penguin.ooo 与 penguin.ooo/docs/——但各自把偏好存放在自己的 `localStorage` 键下(`penguin-landing.*` 与 `penguin-docs.*`)。于是在其中一边选了深色模式或中文,再点进另一边,访客又被退回系统默认值,读起来就像设置被忽略了。
+
+- 两个站点现在通过一个小的 `state/site-prefs.ts` 模块读写同一对共享键 `penguin-site.theme` 与 `penguin-site.lang`,该模块在两个包中各存一份(它们不共享任何包,这与 `theme.tsx`、`locale.tsx` 的现状完全一致)。两边的键必须保持完全一致;一旦漂移,同步会静默失效。
+- 已废弃的各站点独立键仍会作为回退被读取,因此回访者会保留他们在这次改动之前做出的选择,而不会被重置一次。
+- 一个 `storage` 监听器覆盖了两个站点同时打开的情况:现在在一个标签页里切换主题或语言,另一个标签页无需重新加载即可更新。站点之间的跳转本身是一次完整的页面加载,由挂载时的读取来处理。
+- 文档站的绘制前主题脚本同样读取共享键,而原本没有该脚本的落地页也补上了一份。没有它的话,从深色的文档页跳到落地页会先闪过一次白色背景,然后 React 才启动。
+- 对 `localStorage` 的读取全程做了包裹:在禁用 Cookie 和分区隔离的上下文中它会直接抛出异常,而一项偏好设置不值得让整个页面挂掉。
+
+已针对组装后的站点验证(落地页位于 `/`,文档站位于 `/docs/`,同一源):在落地页选择深色 + 中文后,跳转到文档站再跳回来该选择依然保持;在文档站一侧做出的修改也会反向传播;而一份只带有已废弃 `penguin-docs.*` 键的配置,仍然渲染为深色与中文。
diff --git a/changelog/0.1.0/README.md b/changelog/0.1.0/README.md
deleted file mode 100644
index 4b0d0e65..00000000
--- a/changelog/0.1.0/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Version 0.1.0
-
-Released on 2026-07-21.
-
-- [2026-07-21] Language and theme are shared between the landing page and the docs site, so a choice made on one carries across to the other. ([details](2026-07-21-site-preferences-sync.md))
-
-- [2026-07-21] A model is always referenced by an explicit `(provider, model_id)` pair — the provider is never inferred, guessed, or defaulted — together with the fixes from a full review of the release branch, refreshed benchmark results, and the demo videos on the landing page. ([details](2026-07-21-model-reference-and-review-fixes.md))
-
-- [2026-07-20] Model catalog: preset provider groups, catalog entries and ordering, the Models page features built around them, and where model credentials are allowed to live. ([details](2026-07-20-models-and-credentials.md))
-
-- [2026-07-20] Web App: chat input and slash menu, session titles, the skill library cards, password fields, and the seeded admin password. ([details](2026-07-20-web-app.md))
-
-- [2026-07-20] Landing site: the story it tells, section structure, animations, navigation, the install domain, and the case gallery. ([details](2026-07-20-landing-site.md))
-
-- [2026-07-20] Skill library regrouped by audience, and the AI-app skills that turn one sentence into a running RAG app. ([details](2026-07-20-skills.md))
-
-- [2026-07-20] The repository READMEs, the blog posts, and the docs site. ([details](2026-07-20-readme-blog-and-docs.md))
-
-- [2026-07-20] Repository language, dev commands, the changelog layout itself, and dependency upgrades. ([details](2026-07-20-tooling.md))
diff --git a/changelog/0.1.1/2026-07-22-docs-and-examples.md b/changelog/0.1.1/2026-07-22-docs-and-examples.md
index ae992f81..dab97e6a 100644
--- a/changelog/0.1.1/2026-07-22-docs-and-examples.md
+++ b/changelog/0.1.1/2026-07-22-docs-and-examples.md
@@ -1,4 +1,11 @@
# Docs and examples: roadmap items and a genuinely self-evolving demo
+- **Date:** 2026-07-22
+- **Type:** process
+- **Scope:** `docs`, `examples`
+- **PR:** [#12](https://github.com/Prism-Shadow/penguin-harness/pull/12), [#29](https://github.com/Prism-Shadow/penguin-harness/pull/29)
+
+[中文版](2026-07-22-docs-and-examples.zh.md)
+
- The README roadmap (both languages) gains two items: Agent company and templates, and company-level self evolving.
- The self-improvement example under `examples/` was reworked to be genuinely self-evolving: the demo now ships two runnable scripts that let a local open-weight model score itself, edit its own files and re-run — the loop the landing page demonstrates — instead of a fixed illustrative transcript.
diff --git a/changelog/0.1.1/2026-07-22-docs-and-examples.zh.md b/changelog/0.1.1/2026-07-22-docs-and-examples.zh.md
new file mode 100644
index 00000000..efe3c4cc
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-docs-and-examples.zh.md
@@ -0,0 +1,11 @@
+# 文档与示例:路线图条目,以及一个真正自进化的演示
+
+- **Date:** 2026-07-22
+- **Type:** process
+- **Scope:** `docs`, `examples`
+- **PR:** [#12](https://github.com/Prism-Shadow/penguin-harness/pull/12), [#29](https://github.com/Prism-Shadow/penguin-harness/pull/29)
+
+[English](2026-07-22-docs-and-examples.md)
+
+- README 路线图(两种语言)新增两项:Agent 公司与模板,以及公司级自进化。
+- `examples/` 下的自进化示例经过重做,现在是真正自进化的:该演示提供两个可运行脚本,让一个本地开放权重模型给自己打分、编辑自己的文件并重新运行——也就是落地页所展示的那个循环——而不再是一段固定的示意性对话记录。
diff --git a/changelog/0.1.1/2026-07-22-models-and-core.md b/changelog/0.1.1/2026-07-22-models-and-core.md
index 955949fe..0be12af8 100644
--- a/changelog/0.1.1/2026-07-22-models-and-core.md
+++ b/changelog/0.1.1/2026-07-22-models-and-core.md
@@ -1,5 +1,12 @@
# Models and core: request hygiene, prompt guardrails, and runtime settings
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#21](https://github.com/Prism-Shadow/penguin-harness/pull/21), [#24](https://github.com/Prism-Shadow/penguin-harness/pull/24), [#28](https://github.com/Prism-Shadow/penguin-harness/pull/28), [#38](https://github.com/Prism-Shadow/penguin-harness/pull/38), [#40](https://github.com/Prism-Shadow/penguin-harness/pull/40), [#43](https://github.com/Prism-Shadow/penguin-harness/pull/43)
+
+[中文版](2026-07-22-models-and-core.zh.md)
+
## Empty tool lists stay off the wire
Strict OpenAI-compatible servers reject requests that carry `tools: []` — vLLM answers `400 … tools must not be an empty array. Either provide at least one tool or omit the field entirely.` Every tool-less request the harness makes (the Models-page connectivity probe, session-title generation, the vision describer) hit this against a local vLLM endpoint.
diff --git a/changelog/0.1.1/2026-07-22-models-and-core.zh.md b/changelog/0.1.1/2026-07-22-models-and-core.zh.md
new file mode 100644
index 00000000..80a24351
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-models-and-core.zh.md
@@ -0,0 +1,51 @@
+# 模型与 core:请求卫生、提示词守则与运行时设置
+
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#21](https://github.com/Prism-Shadow/penguin-harness/pull/21), [#24](https://github.com/Prism-Shadow/penguin-harness/pull/24), [#28](https://github.com/Prism-Shadow/penguin-harness/pull/28), [#38](https://github.com/Prism-Shadow/penguin-harness/pull/38), [#40](https://github.com/Prism-Shadow/penguin-harness/pull/40), [#43](https://github.com/Prism-Shadow/penguin-harness/pull/43)
+
+[English](2026-07-22-models-and-core.md)
+
+## 空工具列表不再上线
+
+严格的 OpenAI 兼容服务端会拒绝携带 `tools: []` 的请求——vLLM 会回 `400 … tools must not be an empty array. Either provide at least one tool or omit the field entirely.`。Harness 发出的每一个不带工具的请求(模型页连通性探测、会话标题生成、视觉描述器)在对接本地 vLLM 端点时都撞上了这个问题。
+
+- `buildUniConfig` 现在在工具列表为空时完全省略 `tools` 字段,而不是发送一个空数组。携带工具的 Agent 请求未变。
+- `tool_choice` 已做端到端排查:本仓库与 AgentHub 0.4.0 都从不发送它。在 vLLM 上看到的 `400 "auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser` 失败,是服务端在收到非空 `tools` 数组而又没有这些启动参数时产生的——无论用哪个客户端,在 vLLM 上真正使用工具都需要这些参数(vllm skill 记录了这一点)。现在有一个线路层面的抓包测试固定住这两种行为:不带工具的请求既没有 `tools` 键,也没有 `tool_choice` 键。
+
+## 默认系统提示词中的保留端口与 API key 守则
+
+Agent 偶尔会通过杀掉监听进程来腾出一个被占用的端口——有时杀的是 Harness 自己的服务。默认服务端口现在只有一个来源:core 内部的 `ports.ts` 导出 `DEFAULT_SERVER_PORT`,经包出口做窄口径再导出,供 CLI 与 server 派生各自的默认值(运行时仍可通过 `--port` / `PORT` 覆盖)。提示词规则刻意不带任何硬编码数字:绝不杀死不是你启动的进程——包括 PenguinHarness 自己的服务;绝不把 Harness 服务的端口占为己用;当想要的端口被占用时,另选一个空闲端口,而不是杀掉监听者。
+
+遇到 API 认证/授权或 API key 错误(401/403,key 无效或缺失)时,Agent 至多重试一次;若错误持续,就停止调用工具,并请用户在对话之外去 Agent 的 vault 或模型设置中更新 key——密钥值绝不属于对话内容。更新后的密钥只在下一次对话中生效,因此继续重试不可能成功——提示词把这一点写明了。
+
+默认提示词是每个 Agent 可编辑的 `system_config.yaml` 的种子:已有 Agent 保留其当前提示词;新建 Agent 才会获得这些规则。
+
+## 最大输出 Token 成为逐模型设置
+
+一个本地部署、上下文为 32k 的模型会直接拒绝请求——`400 This model's maximum context length is 32768 tokens. However, you requested 32000 output tokens…`——并把会话标题生成一起带崩。模型页(以及 `penguin config model add --max-tokens`)现在接受逐模型的最大输出 Token 上限,存储在模型条目上,并优先于 Agent 级默认值生效;带外请求(标题生成、视觉描述)同样遵守它,取自身上限与模型上限中的较小者。不设置即维持当前行为。
+
+## 思考等级移到对话层
+
+思考等级不再是模型页上的一项标注。默认值仍在 Agent 设置中(它一直就在那里),而聊天草稿在模型选择器旁新增一个带标题的紧凑拾取器,提供 `low` / `medium` / `high` / `xhigh`——不再提供 `none`,因为许多模型无法关闭思考;不过它仍是合法的已存取值,也能正常显示。改动拾取器会立即写回 Agent 设置,因此发送时创建的 Session——以及之后的每一个——都使用新的等级。草稿的模型选择现在也以同样方式延续:一次成功发送之后,它就成为下一次对话的默认值。
+
+## 子 Agent 跟随父 Session
+
+`run_subagent` 在省略模型二元组时,此前会落到 Project 默认模型上,而子 Agent 总是以它自己所属 Agent 的思考等级运行。现在派生出的子 Agent 会继承父 Session 已解析的 `(provider, model_id)` 二元组及其生效的思考等级(工作区本就会继承);工具调用中显式给出的完整二元组仍然优先,而半个二元组依旧被拒绝,不会用父级的另一半去补全。这个下传是三态的,因此没有设置思考等级的父级会产生同样没有等级的子级——子级自己的配置绝不会偷偷回流;而恢复一个 Session 时,会还原其 Trace 中记录的思考等级,而不是重新读取 Agent 配置。
+
+## Session 携带自身来源
+
+`session_meta` 新增一个可选的 `source` 字段(`"subagent" | "schedule"`,缺失即为用户创建),在创建时写入,跨恢复与压缩驱动的 trace 轮转均予保留,并被视作唯一事实来源:服务端从该 meta 派生会话索引中的来源(依转发来的 meta 注册子会话、收编发现的 trace、对由更早进程建立索引的行则惰性读取 trace 头部),数据库中不再存储该类型。
+
+## AgentHub 0.4.1 与全部 Provider 分组的目录刷新
+
+SDK 依赖升到 AgentHub 0.4.1(core 与 CLI)。这次升级是类型兼容的——已发布的 `UniConfig`、`ThinkingLevel`、消息/事件类型与 `AutoLLMClient` 声明相对 0.4.0 均未变化,因此 core 中无需任何适配。0.4.1 新增的内容都是增量的:一个 `listSupportedModels(currency)` 注册表(模型 / base URL / 客户端三元组,附模态、上下文窗口与每百万 Token 定价)、一个用于被拒绝的 `temperature` / `tool_choice` / `prompt_caching` 取值的类型化 `UnsupportedParameterError`,以及对 Gemini 3.6 世代、Kimi K3 与 GLM-5.2 的客户端支持。PenguinHarness 从不发送那三个参数,因此这个新错误今天不可能从这里触发。
+
+那个注册表同时也是权威模型清单,因此目录被拿来与它逐项比对,并在所有落后之处做了刷新——条目从 59 个增加到 70 个。新增行:Google 端点与 OpenRouter 上的 Gemini 3.6 Flash 与 Gemini 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 上的 Kimi K2.6、GLM 5.1 与 Qwen3.6 35B A3B——最后这三个不带定价,因为没有任何来源公布它们的费率,而编一个数字比不写更糟。每一项上下文窗口、视觉标记与价格档位都来自注册表,而不是厂商页面。`google/gemini-3.5-flash` 的上下文窗口原为 1,000,000,与注册表以及原厂直连那一行的 1,048,576 不符,现已修正。新增 Kimi K3 还暴露出一个路由缺口:`resolveModelEnv` 只匹配 `kimi-k2.x`,因此这个新 id 在补上 `kimi-k3` 分支之前解析不到任何凭证对。
+
+README 的模型表则朝相反方向调整——每个厂商系列只保留一行、且只列最新世代,完整的预置清单交给应用内的模型页。Kimi K2.6 与 Gemini 3.5 Flash 退出;按同一规则,Claude Opus 4.8 变为 Claude 5,GPT 5.5 变为 GPT 5.6。
+
+## 会话标题生成转为内部实现
+
+`session-title.ts` 移入 core 的 `internal/` 模块。`Session.generateTitle()` 仍是公开入口,`SessionTitleResult`、`stripConversationMarkers` 与 `sanitizeTitle`(后两者被服务端的兜底标题路径使用)仍可从包出口导入;而驱动 LLM 的内部实现(`buildTitlePrompt`、`generateTitleWithLLM`)不再属于公开接口。
diff --git a/changelog/0.1.1/2026-07-22-sites-and-blog.md b/changelog/0.1.1/2026-07-22-sites-and-blog.md
index adfa7d1c..72763124 100644
--- a/changelog/0.1.1/2026-07-22-sites-and-blog.md
+++ b/changelog/0.1.1/2026-07-22-sites-and-blog.md
@@ -1,5 +1,12 @@
# Sites: one navbar, a richer blog, and the built-in Skills listed
+- **Date:** 2026-07-22
+- **Type:** process
+- **Scope:** `landing`, `docs`
+- **PR:** [#20](https://github.com/Prism-Shadow/penguin-harness/pull/20), [#23](https://github.com/Prism-Shadow/penguin-harness/pull/23), [#25](https://github.com/Prism-Shadow/penguin-harness/pull/25), [#32](https://github.com/Prism-Shadow/penguin-harness/pull/32), [#42](https://github.com/Prism-Shadow/penguin-harness/pull/42), [#45](https://github.com/Prism-Shadow/penguin-harness/pull/45)
+
+[中文版](2026-07-22-sites-and-blog.zh.md)
+
## The docs and landing navbars are identical
The two sites' navbars differed in container width (6xl vs 7xl), the docs-only badge pill, hamburger placement and a broken menu animation class. Both now share the same `max-w-7xl` container (the landing footer aligned to match, framing nav and footer consistently while content sections stay 6xl), the same logo block, and the same right-cluster layout; the landing language menu's undefined `anim-pop` class was replaced with the working `anim-fade`. Cross-SPA link semantics and each site's mobile behavior stay as they were.
diff --git a/changelog/0.1.1/2026-07-22-sites-and-blog.zh.md b/changelog/0.1.1/2026-07-22-sites-and-blog.zh.md
new file mode 100644
index 00000000..55c0a923
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-sites-and-blog.zh.md
@@ -0,0 +1,30 @@
+# 站点:统一导航栏、更丰富的博客,以及列出内置 Skill
+
+- **Date:** 2026-07-22
+- **Type:** process
+- **Scope:** `landing`, `docs`
+- **PR:** [#20](https://github.com/Prism-Shadow/penguin-harness/pull/20), [#23](https://github.com/Prism-Shadow/penguin-harness/pull/23), [#25](https://github.com/Prism-Shadow/penguin-harness/pull/25), [#32](https://github.com/Prism-Shadow/penguin-harness/pull/32), [#42](https://github.com/Prism-Shadow/penguin-harness/pull/42), [#45](https://github.com/Prism-Shadow/penguin-harness/pull/45)
+
+[English](2026-07-22-sites-and-blog.md)
+
+## 文档站与落地页的导航栏完全一致
+
+两个站点的导航栏此前在容器宽度(6xl 对 7xl)、仅文档站才有的徽章药丸、汉堡菜单位置,以及一个失效的菜单动画类上存在差异。现在两者共用同一个 `max-w-7xl` 容器(落地页页脚也对齐到同一宽度,使导航与页脚框定一致,而内容小节仍为 6xl)、同一个 logo 区块,以及同样的右侧集群布局;落地页语言菜单中未定义的 `anim-pop` 类被替换为可用的 `anim-fade`。跨 SPA 的链接语义与各站点的移动端行为保持原样。
+
+## 博客分类、置顶文章与页面元信息
+
+博客列表仍是一个扁平列表,带分类徽章与筛选药丸,现在覆盖四个分类——产品动态、发布说明、技术实践(AMD 本地 Agent 那篇已移入此类)与观点。观点类收录分析与看法,而非动手教程,把实践类留给可以跟着做的文章;它标为 "Perspectives" / 「观点」,配青色徽章,与品牌蓝的产品类、实践类徽章以及中性色的发布说明徽章区分开。文章可通过 frontmatter 中的 `pinned: true` 置顶;介绍 PenguinHarness 的发布文章已置顶。博客新增第二篇实践文章:在 AMD GPU 上用 PenguinHarness 实现 Agent 自我改进(中英),并纳入同一套分类与作者约定。详情页把元信息移到标题下方:按语言格式化的日期("July 20, 2026" / 「2026年7月20日」)、作者行(取自 frontmatter 的 `author`,默认为 Yaowei Zheng (PrismShadow AI)),以及一个复制页面链接的按钮,带安全的剪贴板回退与短暂的「已复制」状态。
+
+## 三篇关于 Harness 设计与 Agent 基础设施的技术文章
+
+博客在新的观点分类下新增三篇双语文章,每篇都以一手材料而非二手摘要为依据:
+
+- **Simple Harness Is All You Need**——以 Databricks 编码 Agent 基准测试中那个反直觉的结果开篇:在他们的成本对通过率帕累托图上(经授权转载为 `blog-assets/databricks-pareto.png`),全场最高分属于跑在极简 Pi Harness 上的 Opus 4.8,领先于同一模型在最大努力档下的 Claude Code,而每任务成本约为其一半,且前沿区大部分由 Pi 占据。文章保留了 Databricks 自己的告诫——Pi 在 `max` 努力档下的表现明显低于同等花费的 Claude Code——以及他们给出的解释:Pi 每轮发送的上下文约为其三分之一。随后文章把这一点映射到 PenguinHarness 可量化的设计上:六个内置工具且完全没有文件工具、72 行的系统提示词、16,000 字符的输出上限,以及压缩进全新上下文——再论证极简主义必须止步于何处,因为 Pi 完全不提供权限系统,而逐次调用审批与 Trace 审计在这里是承重结构。
+- **The Easiest Way to Build AI Agents in 2026**——论证构建 Agent 的成本已经从 Agent 本身转移到围绕它组装的技术栈上:在最流行的方案里,这意味着用 LangChain 构建、LangGraph 编排、LangSmith 或 Langfuse 观测与评估、LangGraph Platform 部署——横跨两三家厂商的五个产品,各有各的概念与文档,外加一个人肉充当优化循环。文章按 2026-07-22 核实的事实,把五个代表性方案与 PenguinHarness 做了对比,指出该领域正在向「薄」收敛(AutoGen 进入维护模式、LangChain 的遗留接口迁入 `langchain-classic`、"harness" 一词在两个月内被 AWS、Microsoft 与 Anthropic 采纳为厂商术语),并与之对照地给出一次安装即同时具备聊天、Skill、模型、用量、Trace 与评估中心,然后把调优循环交给 Agent 自己。文中包含一节「什么时候不该用 PenguinHarness」。
+- **AI Infrastructure: Past, Present, and Future**——论证 AI 开发栈(PyTorch、vLLM、Ollama、LlamaFactory)是为人类操作者设计的:这个人把状态记在脑子里、把报错当作调查的起点、文档只读一遍。它并不需要为 Agent 重新发明,因为它本就是命令与配置文件;真正缺失的是围绕它的操作性知识,而已发布的 `ollama`、`vllm` 与 `llamafactory` 三个 Skill 正是把这些编码下来——改动之前先检查、对真正起约束作用的那个条件做预检、用一次观测来验证、把部署好的模型注册上去,好让这件事是完成而不是开了个头。文章以尚未解决的问题收尾:ML 栈的报错仍然是写给人看的、GPU 作为共享资源却没有预约协议,以及可复现性。
+
+落地页博客列表的测试同步更新为新的文章数量,以及由此产生的实践分类排序。
+
+## 内置 Skill,列在人们会去看的地方
+
+README(两种语言)新增一个紧凑的「内置 Skill」小节——一张表列出四个 Skill 分组及其成员——落地页也在 Features 与 Security 之间新增一个对应的 Skills 小节,以分组卡片呈现。这些列表覆盖当前已发布的内容,并随新 Skill 落地而增长——本次发布中已刷新,把 vLLM/Ollama 部署与 LlamaFactory 微调 Skill 纳入其中。
diff --git a/changelog/0.1.1/2026-07-22-skills.md b/changelog/0.1.1/2026-07-22-skills.md
index 43af8487..c92b4d84 100644
--- a/changelog/0.1.1/2026-07-22-skills.md
+++ b/changelog/0.1.1/2026-07-22-skills.md
@@ -1,5 +1,12 @@
# Skills: local serving and fine-tuning join AI App Development, plus deck authoring
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `skills`
+- **PR:** [#19](https://github.com/Prism-Shadow/penguin-harness/pull/19), [#44](https://github.com/Prism-Shadow/penguin-harness/pull/44)
+
+[中文版](2026-07-22-skills.zh.md)
+
Three new built-in skills extend the AI App Development group so agents can stand up and tune the models they build on:
- **vllm** — install and serve models with vLLM's OpenAI-compatible server, including the tool-calling flags agent harnesses need (`--enable-auto-tool-choice --tool-call-parser …`), quantization and memory options, and troubleshooting.
diff --git a/changelog/0.1.1/2026-07-22-skills.zh.md b/changelog/0.1.1/2026-07-22-skills.zh.md
new file mode 100644
index 00000000..88e9ddeb
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-skills.zh.md
@@ -0,0 +1,22 @@
+# Skill:本地部署与微调加入 AI 应用开发分组,另有演示文稿创作
+
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `skills`
+- **PR:** [#19](https://github.com/Prism-Shadow/penguin-harness/pull/19), [#44](https://github.com/Prism-Shadow/penguin-harness/pull/44)
+
+[English](2026-07-22-skills.md)
+
+三个新的内置 Skill 扩展了 AI App Development 分组,使 Agent 能够把它所依赖的模型部署起来并调优:
+
+- **vllm**——用 vLLM 的 OpenAI 兼容服务端安装并部署模型,包含 Agent Harness 所需的工具调用参数(`--enable-auto-tool-choice --tool-call-parser …`)、量化与显存选项,以及排障指引。
+- **ollama**——用 Ollama 拉取并部署本地模型,介绍其 OpenAI 兼容端点,以及通过 `OLLAMA_CONTEXT_LENGTH` 或 Modelfile 调整上下文长度。
+- **llamafactory**——用 LlamaFactory 做微调(数据集注册,以上游示例 YAML 驱动的 `llamafactory-cli train/export/chat/api`),随后用 vLLM 部署产物,或经 Modelfile 导入到 Ollama 部署。
+
+两个部署类 Skill 共用一套引导式流程:先询问用户要部署哪个模型(在用户没有偏好时推荐小巧的 Qwen3.5-0.8B 作为默认),以及倾向哪个引擎——Ollama 作为易上手的默认项,追求吞吐时选 vLLM——然后部署、验证,并用 penguin CLI 注册该端点(模型只有在 `model add` 之后才会出现在 `penguin config model list` 中)。每个 Skill 的图标都沿用对应项目的官方标识。
+
+那条关于根目录隔离的硬性守则,放在教授配置的地方——`penguin-cli` Skill(现为 v5)与 `penguin-sdk` Skill:为 Penguin 自身配置模型使用默认根目录,但为正在开发的 AI 应用配置模型必须使用该应用自己的项目目录(`--root ./penguin_data`),除非用户另有选择——绝不使用全局的 `~/.penguin/data`。部署类 Skill 指向这条规则,而不是重复陈述它。
+
+**bento-slides** 加入 Office Productivity 分组,使 Agent 在被要求做演示文稿时能产出一份真正的幻灯片,而不是一堵要点墙。一份 Bento 幻灯片是一个自包含的 `.bento.html` 文件,其文档就是 `#bento-doc` script 块中的普通 JSON;该 Skill 教 Agent 就地编辑这个块、在从零开始时先从 bento.page 获取应用本身,以及——真正要紧的部分——把素材映射到合适的能力上(数字用图表、网格用表格、跨页变化的主体用形变过渡、下钻用状态页、动效用 ken-burns 与数字滚动),而不是一律退回文字页。它还带上了那些不写就要多跑一轮的坑:图表序列数据必须是纯数字、形变需要稳定的共享元素 id、素材以 data URI 内嵌、已有幻灯片的 `docId` 绝不重新生成。改编自 Bento 项目自己的 Skill(MIT,© 2026 The Bento/Suite authors),在 Skill 正文中注明出处;权威 schema 仍以 https://bento.page/agents.md 为准。
+
+`agenthub-models` Skill 跟进 AgentHub 0.4.1 升级:记录了新的受支持模型注册表、客户端现在可能直接拒绝的配置参数,以及 Gemini 3.6 / Kimi K3 / GLM-5.2 系列及其推理强度旋钮,并附上一张依该版本实际客户端匹配顺序重写的路由表。
diff --git a/changelog/0.1.1/2026-07-22-tooling.md b/changelog/0.1.1/2026-07-22-tooling.md
index 534187a5..b06bff25 100644
--- a/changelog/0.1.1/2026-07-22-tooling.md
+++ b/changelog/0.1.1/2026-07-22-tooling.md
@@ -1,5 +1,12 @@
# Tooling and hardening: in-place upgrades, request validation and core test coverage
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `cli`, `server`, `core`
+- **PR:** [#9](https://github.com/Prism-Shadow/penguin-harness/pull/9), [#10](https://github.com/Prism-Shadow/penguin-harness/pull/10), [#44](https://github.com/Prism-Shadow/penguin-harness/pull/44)
+
+[中文版](2026-07-22-tooling.zh.md)
+
- **`penguin update` upgrades an existing install in place.** `penguin update [--check] [--release <tag>] [-y|--yes]` resolves the newest version from the GitHub Releases API (the same source `install.sh` resolves `releases/latest/download` against) and upgrades using the mechanism the install actually came from, detected from the real path of the running CLI rather than guessed: a tarball install re-runs the official installer preserving its install dir and whether it bundles a Node runtime; a global npm/pnpm/yarn/bun install runs that manager's global install, and prints the command instead of guessing when the manager cannot be identified; a source checkout is refused with a pointer to `git pull` and a rebuild. Without `-y` it prints the mechanism, target version and install dir and asks for confirmation, and a non-TTY stdin requires `--yes` rather than blocking. The data root is never touched — only `bin`, `lib`, `web` and `node` are replaced. The target flag is `--release`, not `--version`, because the CLI's own `-v, --version` takes precedence over a subcommand option of the same name.
- The server now validates `positiveIntParam` and `optionalDateParam` inputs instead of trusting query strings — malformed paging/date parameters return a clean 400 rather than leaking into SQL or arithmetic.
- Core gained dedicated unit tests for `CappedTextBuffer` and `ToolCallIdAllocator`, two small pure modules that previously had no direct coverage.
diff --git a/changelog/0.1.1/2026-07-22-tooling.zh.md b/changelog/0.1.1/2026-07-22-tooling.zh.md
new file mode 100644
index 00000000..a5c70989
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-tooling.zh.md
@@ -0,0 +1,12 @@
+# 工具链与加固:原地升级、请求校验与 core 测试覆盖
+
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `cli`, `server`, `core`
+- **PR:** [#9](https://github.com/Prism-Shadow/penguin-harness/pull/9), [#10](https://github.com/Prism-Shadow/penguin-harness/pull/10), [#44](https://github.com/Prism-Shadow/penguin-harness/pull/44)
+
+[English](2026-07-22-tooling.md)
+
+- **`penguin update` 原地升级已有安装。** `penguin update [--check] [--release <tag>] [-y|--yes]` 从 GitHub Releases API 解析最新版本(与 `install.sh` 解析 `releases/latest/download` 所用的是同一数据源),并按安装实际所采用的机制升级——该机制是从运行中 CLI 的真实路径检测出来的,而不是猜的:tarball 安装会重新运行官方安装脚本,保留其安装目录以及是否自带 Node 运行时;全局 npm/pnpm/yarn/bun 安装会调用对应管理器的全局安装命令,当无法识别管理器时则打印命令而不是瞎猜;源码检出会被拒绝,并提示改用 `git pull` 加重新构建。不带 `-y` 时它会打印机制、目标版本与安装目录并请求确认;stdin 非 TTY 时要求显式 `--yes`,而不是就此阻塞。数据根目录永不被触碰——只有 `bin`、`lib`、`web` 与 `node` 会被替换。目标版本的参数名是 `--release` 而非 `--version`,因为 CLI 自身的 `-v, --version` 优先级高于同名的子命令选项。
+- 服务端现在会校验 `positiveIntParam` 与 `optionalDateParam` 输入,而不再信任查询字符串——畸形的分页/日期参数会干净地返回 400,而不是渗进 SQL 或算术运算。
+- Core 新增了针对 `CappedTextBuffer` 与 `ToolCallIdAllocator` 的专门单元测试,这两个小型纯模块此前没有直接覆盖。
diff --git a/changelog/0.1.1/2026-07-22-web-app.md b/changelog/0.1.1/2026-07-22-web-app.md
index 19e053aa..1cbe8e54 100644
--- a/changelog/0.1.1/2026-07-22-web-app.md
+++ b/changelog/0.1.1/2026-07-22-web-app.md
@@ -1,5 +1,12 @@
# Web App: workspace-grouped sidebar, key-aware model picker, chat rendering, letter avatars
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#8](https://github.com/Prism-Shadow/penguin-harness/pull/8), [#22](https://github.com/Prism-Shadow/penguin-harness/pull/22), [#26](https://github.com/Prism-Shadow/penguin-harness/pull/26), [#27](https://github.com/Prism-Shadow/penguin-harness/pull/27), [#31](https://github.com/Prism-Shadow/penguin-harness/pull/31), [#33](https://github.com/Prism-Shadow/penguin-harness/pull/33), [#35](https://github.com/Prism-Shadow/penguin-harness/pull/35), [#36](https://github.com/Prism-Shadow/penguin-harness/pull/36), [#37](https://github.com/Prism-Shadow/penguin-harness/pull/37), [#39](https://github.com/Prism-Shadow/penguin-harness/pull/39), [#40](https://github.com/Prism-Shadow/penguin-harness/pull/40), [#41](https://github.com/Prism-Shadow/penguin-harness/pull/41)
+
+[中文版](2026-07-22-web-app.zh.md)
+
## Sidebar groups by Workspace
The chat sidebar now groups conversations by Workspace by default, with a persisted toggle to switch back to Agent grouping. Workspace groups are labeled by the directory's basename (full path in the tooltip), ordered by their newest session; auto-created temp workspaces (`workspaces/tmp-<8hex>`) collapse into a single "Temp workspaces" group instead of one group per session. Each workspace header's "+" starts a new conversation pre-filled with that workspace; rows in workspace mode carry a small agent avatar so the agent context stays visible. Group collapse state persists per Project across reloads. Agent mode is unchanged.
diff --git a/changelog/0.1.1/2026-07-22-web-app.zh.md b/changelog/0.1.1/2026-07-22-web-app.zh.md
new file mode 100644
index 00000000..20d3d624
--- /dev/null
+++ b/changelog/0.1.1/2026-07-22-web-app.zh.md
@@ -0,0 +1,42 @@
+# Web App:按 Workspace 分组的侧边栏、感知 key 的模型拾取器、聊天渲染、字母头像
+
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#8](https://github.com/Prism-Shadow/penguin-harness/pull/8), [#22](https://github.com/Prism-Shadow/penguin-harness/pull/22), [#26](https://github.com/Prism-Shadow/penguin-harness/pull/26), [#27](https://github.com/Prism-Shadow/penguin-harness/pull/27), [#31](https://github.com/Prism-Shadow/penguin-harness/pull/31), [#33](https://github.com/Prism-Shadow/penguin-harness/pull/33), [#35](https://github.com/Prism-Shadow/penguin-harness/pull/35), [#36](https://github.com/Prism-Shadow/penguin-harness/pull/36), [#37](https://github.com/Prism-Shadow/penguin-harness/pull/37), [#39](https://github.com/Prism-Shadow/penguin-harness/pull/39), [#40](https://github.com/Prism-Shadow/penguin-harness/pull/40), [#41](https://github.com/Prism-Shadow/penguin-harness/pull/41)
+
+[English](2026-07-22-web-app.md)
+
+## 侧边栏按 Workspace 分组
+
+聊天侧边栏现在默认按 Workspace 对会话分组,并提供一个持久化的开关切回按 Agent 分组。Workspace 分组以目录的 basename 作标签(完整路径在 tooltip 中),按其最新会话排序;自动创建的临时工作区(`workspaces/tmp-<8hex>`)会收拢为单个「临时工作区」分组,而不是每个会话一个分组。每个 Workspace 头部的「+」会新建一个预填该工作区的会话;Workspace 模式下的行会带一个小的 Agent 头像,使 Agent 上下文保持可见。分组的折叠状态按 Project 跨刷新持久化。Agent 模式未变。
+
+此后分组又获得了打磨与结构上的改进:头部统一为一致的悬停高度;Workspace 文件夹图标随分组展开与收起而开合;两种分组模式都支持把分组置顶(按 Project 持久化)。由子 Agent 与定时任务创建的会话,会归入两个默认折叠的文件夹——Subagents 与 Scheduled——与每个分组内的 Archived 平级;每个分组至多列出一页会话,并带一个「更多」行按需加载后续页(会话列表 API 新增 `limit`/`offset`,因此侧边栏永远不会拉取无界列表)。
+
+## 模型拾取器优先列出已配置的模型
+
+聊天模型下拉框只显示已配置 API key 的模型(必须是已存储的、脱敏显示的 key——仅有一个环境变量名不算),并由一个弱化的底部行按需展开其余模型,每个都标有带斜线的钥匙图标(本地化标签保留给辅助技术)。当前选中的模型与 Project 默认模型始终可见;而当尚无任何模型配置了 key 时,下拉框会退回显示全部,而不是渲染成空的。
+
+## 自定义模型分组与 Agent 的字母头像
+
+用户自定义的模型 Provider 分组此前共用同一个通用图标,使得模型拾取器中跨分组的同名模型难以区分。自定义分组现在渲染为首字母方块——取名称的第一个字素,置于由该名称派生的柔和底色之上,配以主题感知的彩色字色,在浅色与深色模式下均保持 WCAG AA 对比度——因而每个分组都有稳定且彼此可辨的外观。Agent 头像也采用同样处理,其颜色以 Agent id 为键,因此重命名后颜色不变。
+
+## 收起态的导航栏
+
+收起后的侧边栏现在是一条完整的导航栏,含八个固定顺序的入口——上一次会话(该 Project 最新的未归档会话;仅在确实没有时禁用,加载过程中不禁用)、新建会话、Agents、Skills、Models、Costs、Traces,以及 Benchmark(此前缺失)——每个都有中英悬停提示,并对任何已打开的会话给出导航栏级别的激活高亮。
+
+## 成本中心的提示气泡
+
+每日 Token 图表的悬停气泡以右下偏移跟随指针,在靠近边缘时翻转方向,因此既不会盖住被悬停的图元,也不会被裁切;指针移动通过命令式定位(不会每次 mousemove 都重渲染)。Cache Read 分段的气泡另外显示缓存命中率——缓存读取除以读取加写入——其计算方式与标注文案都与 Trace 页面已有的命中率完全一致。
+
+## 设置表单
+
+在模型详情对话框中,上下文窗口与最大输出 Token 并排排列,Token 单位置于各自输入框内,说明文字作为 placeholder 并配悬停提示;模型主页移到对话框头部并做成按钮;三个价格字段各自带独立标签,不再有标题行;视觉支持改为 iPhone 风格的开关且不带说明文字。Agent 设置中的运行时下拉框不再提供「默认」这一行——改由一个重置链接恢复继承状态——且所有下拉框的文字尺寸与输入框一致。
+
+## 复制的任务统计已本地化
+
+复制消息操作产出的逐任务统计行此前是硬编码中文;现在它像其他每一条 UI 文案一样走词条,因此英文会话复制出的是英文统计。
+
+## 聊天消息渲染
+
+聊天消息中的链接一律在新标签页打开(`target="_blank" rel="noreferrer"`),显式链接与 GFM 自动识别的裸 URL 同样适用。展开的子 Agent 对话现在渲染在该工具调用自身的参数与输出**之下**而非之上;所有聊天下拉框在移动端都保持在视口内(此前有三个面板最多溢出 143px,其中一个还会让整页横向滚动)。长 URL 与行内代码 token 以 `overflow-wrap: anywhere` 换行——它们在容器边缘断开,同时绝不会在中文行文中把普通拉丁词从中切断——宽表格在消息内部滚动而不是撑宽页面,与文档站的规则一致。流式渲染管线中稳定的组件映射得以保留,因此回复流式输出期间,代码块仍保持其文本选区与复制状态。
diff --git a/changelog/0.1.1/README.md b/changelog/0.1.1/README.md
deleted file mode 100644
index d2ed193c..00000000
--- a/changelog/0.1.1/README.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Version 0.1.1
-
-Released on 2026-07-22.
-
-- [2026-07-22] Models and core: empty tool lists are omitted from LLM requests (fixing 400s from strict OpenAI-compatible servers), the default system prompt gains service-protection and API-key retry guardrails with the default port as a core SDK constant, a per-model max output tokens cap lands on the Models page, the thinking level moves to a conversation-time picker (low and above) that writes through to Agent settings, subagents inherit the parent session's model and thinking level, sessions record their origin in `session_meta.source` as the single source of truth, the SDK moves to AgentHub 0.4.1 and its supported-model registry drives a catalog refresh across every provider group (with the READMEs trimmed to the newest generation per vendor), and session-title generation folds into core's internal module. ([details](2026-07-22-models-and-core.md))
-
-- [2026-07-22] Web App: the chat sidebar groups conversations by Workspace (with an Agent-mode toggle, group pinning, subagent/scheduled folders and paged loading), the collapsed sidebar becomes an eight-entry navigation rail with bilingual tooltips, the model picker lists key-configured models first, chat renders links in a new tab with clean CJK/URL wrapping and the subagent expansion below the tool's own output, mobile dropdowns stay inside the viewport, the Cost center's daily-token tooltip follows the pointer and shows the cache hit rate, the model and Agent settings forms were tightened, the copied task-stats line is localized, and custom model groups and Agents get initial-letter avatars. ([details](2026-07-22-web-app.md))
-
-- [2026-07-22] Skills: vLLM and Ollama deployment plus LlamaFactory fine-tuning join the AI App Development group with a guided serving workflow that follows the user's engine preference, `bento-slides` joins Office Productivity for authoring single-file Bento decks, and `agenthub-models` tracks the AgentHub 0.4.1 API. ([details](2026-07-22-skills.md))
-
-- [2026-07-22] Sites: the docs and landing navbars are now identical, the blog gains Tech-practice and Perspectives categories, pinned posts, author/date/copy-link metadata, a second AMD practice post and three bilingual Perspectives posts (harness minimalism against the Databricks benchmark, a sourced comparison of five agent frameworks, and the AI development stack — vLLM, Ollama, LlamaFactory — as infrastructure now driven by agents rather than people), and the built-in Skills are listed in the READMEs and on the landing page. ([details](2026-07-22-sites-and-blog.md))
-
-- [2026-07-22] Docs and examples: two new README roadmap items, and the self-improvement example reworked to genuinely evolve itself. ([details](2026-07-22-docs-and-examples.md))
-
-- [2026-07-22] Tooling: `penguin update` upgrades an existing install in place via the mechanism it was installed with, plus server query-parameter validation hardening and unit tests for two previously uncovered core modules. ([details](2026-07-22-tooling.md))
diff --git a/changelog/0.1.2/2026-07-22-web-app.md b/changelog/0.1.2/2026-07-22-web-app.md
index 80b2e4f0..66c46cb4 100644
--- a/changelog/0.1.2/2026-07-22-web-app.md
+++ b/changelog/0.1.2/2026-07-22-web-app.md
@@ -1,5 +1,12 @@
# Web App
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#46](https://github.com/Prism-Shadow/penguin-harness/pull/46), [#53](https://github.com/Prism-Shadow/penguin-harness/pull/53), [#54](https://github.com/Prism-Shadow/penguin-harness/pull/54), [#59](https://github.com/Prism-Shadow/penguin-harness/pull/59), [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60), [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[中文版](2026-07-22-web-app.zh.md)
+
## Workspace HTML previews open on a separate origin
"Open in new tab" for a Workspace html file used to serve the page from the app's own origin under a CSP sandbox without `allow-same-origin`. That kept Agent-generated markup away from the session cookie and the API, but it also put the document in an opaque origin, so `localStorage` and `document.cookie` threw `SecurityError` and any third-party embed on the page — analytics, chat widgets, maps — failed outright. The query-parameter URL had a second problem: a page's relative subresources resolved to `/api/sessions/<id>/files/<name>`, a route that does not exist, so multi-file generated apps could never load their own CSS or JS.
diff --git a/changelog/0.1.2/2026-07-22-web-app.zh.md b/changelog/0.1.2/2026-07-22-web-app.zh.md
new file mode 100644
index 00000000..5cca7852
--- /dev/null
+++ b/changelog/0.1.2/2026-07-22-web-app.zh.md
@@ -0,0 +1,88 @@
+# Web App
+
+- **Date:** 2026-07-22
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#46](https://github.com/Prism-Shadow/penguin-harness/pull/46), [#53](https://github.com/Prism-Shadow/penguin-harness/pull/53), [#54](https://github.com/Prism-Shadow/penguin-harness/pull/54), [#59](https://github.com/Prism-Shadow/penguin-harness/pull/59), [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60), [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[English](2026-07-22-web-app.md)
+
+## Workspace HTML 预览改为在独立源上打开
+
+Workspace 中 html 文件的「在新标签页打开」此前是从应用自身的源、在一个没有 `allow-same-origin` 的 CSP 沙箱下提供页面。这确实让 Agent 生成的标记远离了会话 Cookie 与 API,但也把该文档置于不透明源中,于是 `localStorage` 与 `document.cookie` 会抛出 `SecurityError`,页面上任何第三方嵌入——分析、聊天挂件、地图——都彻底失效。基于查询参数的 URL 还有第二个问题:页面的相对子资源会解析到 `/api/sessions/<id>/files/<name>`,而这个路由并不存在,因此多文件的生成式应用永远加载不了自己的 CSS 或 JS。
+
+预览现在在**独立源**上以基于路径的 URL 打开。链接指向 `GET /files/preview-redirect?path=`,它先对调用方鉴权,再签发一个绑定了 Session、预览主机与过期时间的短时效 HMAC token,然后 302 到 `/preview/<token>/<path>`。本地开发时,应用被规范化到一个环回名(`localhost`),预览则由另一个(`127.0.0.1`)提供——Cookie 以主机为键且忽略端口,因此这确实是两个独立的 Cookie 罐,而换个端口做不到这一点。真实部署设置 `PENGUIN_PREVIEW_ORIGIN`;两者都没有时,重定向回退到旧的同源沙箱,`GET /api/me` 上的 `previewIsolated` 报告 `false`,因此文件面板会标注该链接,而不是让页面无声地坏掉。
+
+由于现在的隔离边界是源,预览响应不再剥离 `allow-same-origin`:页面获得正常的源,存储与 Cookie 可用,嵌入也能运行。有若干细节保证了这样做的安全性。应用与预览源是同一个进程上的两个主机名,因此预览主机被锁定为只服务 `/preview/*`:它的 `/api` 回 `401`,所有应用路由都 `302` 到规范主机,因此会话 Cookie 绝不会在那里被设置或被接受——否则预览源上的 Agent HTML 就能同源调用 `/api`,以用户身份行事。token 绑定了预览主机,而 `/preview/...` 拒绝在应用源上提供服务;缺了这一条,这就会变成一个具备完整 API 权限的同源 XSS。响应携带 `Referrer-Policy: no-referrer`,否则带 token 的 URL 会经由 `Referer` 泄漏给正是本次改动所启用的那些第三方。而路径在服务端仍会针对 Workspace 重新解析,因此 `..` 与符号链接逃逸依旧被拒;错误的 token、过期的 token、错误的主机与越界路径,一律回以一个光秃秃的 404。
+
+预览 URL 的端口取自服务端自身的绑定,而不是浏览器当前的源。二者在开发环境下并不相同——SPA 跑在 Vite 的端口上,只有 `/api` 被代理——因此从请求推导会指向一个根本不提供 `/preview` 的端口,标签页会连不上。生产环境下两者重合。只有绑定到环回名(`127.0.0.1` / `localhost`)时才提供环回预览;通配绑定(`0.0.0.0` / `::`)或某个具体的非环回地址没有可达的对应物——`localhost` 可能解析到 `::1`,而 `0.0.0.0` 绑定从不服务它——因此这些情况会回退并必须设置 `PENGUIN_PREVIEW_ORIGIN`,而不是在 `/api/me` 声称已隔离的同时指向一个死地址。
+
+该链接是一个带 `rel="noopener noreferrer"` 的普通锚点,而不是先 fetch 再 `window.open`:在 await 之后开标签页会触发弹窗拦截,而脚本打开的窗口会保留一个指回应用的 `opener` 句柄——这恰恰是独立源要杜绝的那个引用。服务端还同时绑定 IPv6 环回,因为 `localhost` 常常优先解析到 `::1`,否则每个预览 URL 都会拒绝连接。
+
+应用内的渲染视图现在也走同一道门。它此前把文件文本经 `srcdoc` 喂进 iframe——那是一个没有真实 base URL 的文档,因此页面的相对子资源(`foo.png`、`app.js`、`style.css`)永远解析不了——而「在新标签页打开」早已在预览源上提供真实 URL。在隔离可用时,文件面板的 iframe 现在加载同一个 `preview-redirect` URL,于是相对资源可解析、页面存储在面板内也能工作,并处于一个沙箱之下(`allow-scripts allow-same-origin allow-forms allow-popups allow-modals allow-downloads`——现已在文档中逐项列明),该沙箱严格严于不带沙箱的新标签页;隔离不可用时,旧的 `srcdoc` 回退与其警告保持不变。源文本在首次切换到「源码」时才惰性拉取,因此大文件不再被下载两次,而一次瞬时的拉取失败也只影响源码视图。
+
+针对隔离信号的后续加固:`previewIsolated` 在界面登录之后重新拉取,而不是沿用挂载时的取值,因此没有独立源的部署不会在用户经界面登录后把面板送上隔离路径;服务端还会拒绝主机名与应用自身相同的预览源配置——Cookie 忽略端口,因此端口不同并不隔离任何东西——此时在 `/api/me` 上报告 `false` 并启用安全回退,而不是给一个同源文档授予 `allow-same-origin`。
+
+## 统一的表单控件、单一的通知规则,以及去重的文案
+
+表单控件层已经长出五份近乎相同的脚手架副本。现在一个共享的 `Field` 包装器拥有标签 / 提示 / 错误的标记结构,一个共享的 `controlBase` 类名串拥有边框、悬停、聚焦环与深色模式处理,因此 `Input`、`Textarea`、`Select`、`OptionMenu` 与 `PasswordInput` 全都从同一处读取,而不再各自携带一份。`Select` 去掉了手写的开合与定位副作用,改为复用 `OptionMenu` 早已在用的同一个 `usePortalPanel` hook,于是两种菜单都经同一条代码路径实现上下翻转、按视口收敛,以及在滚动/Esc 时关闭。在 `Modal` / `Drawer` / `Sheet` 中重复三遍的关闭按钮合并为单个 `CloseButton`,而在十来处调用点内联的 chevron、对勾与加号图形也变成了共享图标组件。Agent 运行时标签页中的思考等级与压缩模式下拉框去掉了各自的「重置为默认」链接(一个 `ResettableOptionMenu` 包装器),改用朴素的 `OptionMenu`——那个链接只是回退了本次会话内的选择,而关闭对话框本就能做到这一点。
+
+通知现在遵循单一规则。普通结果——一次保存、一次「已是最新」、一次连接失败——以从顶部滑入并自行消失的 toast 呈现;toaster 在成功与错误之外新增了用于中性消息的 `info` 色调。针对某个具体字段的取值错误不再落在表单底部一条通用的红色文字里:出错的输入框变红,其消息直接位于其下方,因此提交失败时视线会径直落到需要修改的字段上。所有创建/设置类表单都迁移到了这个划分上——必填、格式与不匹配类错误改为行内呈现,临时拼凑的绿色「已保存」横幅与瞬时操作失败改为 toast——而那些与「重试」按钮配对的页面加载失败状态仍保留为行内,因为在那里用会消失的 toast 是错的。
+
+针对该规则的审查加固:行内错误文字现在会向辅助技术播报——`FieldError` 带 `role="alert"`,每个共享控件通过 `aria-describedby` 关联其消息,这一接线在控件层做一次、所有表单继承。`Select` 与 `OptionMenu` 获得了与文本输入相同的 `error` 属性(红色边框 + 下方消息),因此失败的下拉框也参与其中。而服务端的拒绝现在会落在其**错误码**所指的字段之下——修改密码与创建用户对话框此前把每一种拒绝都钉在同一个硬编码字段上,于是「新密码过短」会渲染在「当前密码」/「用户名」之下。
+
+i18n 词条经过精简与去重:移除 41 个死键,并把约两打在两种语言下完全相同的取值(Name、Username、Role、Actions、Created、Cost、Time……)折叠进共享的 `common` 键,使一个标签只定义一次。英文文案中位于句中的 "Agent" 改为小写 "agent"——它是普通名词,只在标签或句子开头才大写——而领域术语(Workspace、Token、Task、Session、Project、Trace)与专有名称(Agent State、AgentHub)保留大写。
+
+## Skill 更新覆盖安装前先确认
+
+更新一个 Skill 安装——卡片上的旋转按钮,或管理安装对话框中逐 Agent 的「更新」——会把库中的副本重装覆盖到该 Agent 的文件上。这个覆盖会静默丢弃对已安装 Skill 的任何本地修改,既没有确认,也(不同于 Agent State 导入)没有快照。它现在会先弹出确认对话框:列出每个受影响的 Agent 及其 `v_old → v_new`,警告覆盖会丢失本地修改,并建议必要时先导出备份。背后是一个共享的 `ConfirmModal`(取消 / 确认页脚,危险或主要色调),可供日后的确认场景复用。已有的破坏性操作本就有确认(删除用户 / Agent / Project / 会话 / vault 条目 / 定时任务),而 Agent State 导入仍会自动快照并在版本冲突时额外确认——这些均未改变。
+
+## 本地化的错误提示、完整的错误细节,以及必填标记
+
+服务端的 `{error:{code,message}}` 消息只有英文,因此中文界面的用户会看到前端未映射内容的未翻译文本——而当时只映射了两个错误码。`apiErrorText` 现在经由新的 `S.errors.byCode` 表本地化约两打常见错误码(认证、权限、未找到、id 已被占用、文件/路径、任务进行中、版本冲突……),仅对未映射的错误码回退到服务端原始消息,而此前直接展示 `e.message` 的每一个错误呈现处现在都经它转换。(那条声称服务端消息是中文的过时注释已修正——它们是英文。)
+
+成本中心的近期错误表此前把每条消息截断为一行,完整文本只能通过悬停标题看到,因此一次请求失败只显示了开头——例如 `llm request error: 402 openai_error`——把 Provider 真正的原因切掉了。每条消息**默认仍只显示一行**(错误风暴不该塞满表格),但**点击即可就地展开完整文本**(再次点击收起);完整文本同样保留在悬停标题里。服务端至多保留 500 字符;完整栈仍在日志中。
+
+必填表单字段现在在标签后带一个红色 `*`,使必填与选填一眼可辨。该标记由共享字段控件(`Input`/`Textarea`/`Select`/`OptionMenu`/`PasswordInput`)上的 `required` 属性驱动,它同时设置 `aria-required`,但刻意不透传原生的 `required` 属性(应用在提交时校验;浏览器的气泡提示会与行内字段错误冲突)。
+
+## 侧边栏:会话列表只加载活跃会话;文件夹点击时才加载并各自分页
+
+由子 Agent 与定时任务创建的 Session 本就位于各自带标签、默认折叠的文件夹中(Subagents / Scheduled),因此在每个标题旁重复的小来源徽章只是噪音——已移除。
+
+列表的拉取逻辑与它的「更多」入口也被解耦了。服务端分页此前对来源无感知:一页 20 条可能全是子 Agent / 定时 / 已归档的行,而它们都消失进折叠的文件夹里,于是可见的活跃列表依旧很短,而「更多」还一直显示(或者更糟——被这类页面挡在后面的活跃会话变得不可达,因为首页中没有活跃行的分组根本就不提供「更多」)。会话列表端点现在接受一个 `category` 过滤器(`active` / `subagent` / `schedule` / `archived`,与侧边栏渲染时所用的「归档优先」优先级一致),外加可选的 `counts=1` 以获取分类总数,侧边栏的一切都以此为准:
+
+- 默认加载只拉取**活跃**(用户创建、未归档)行——每页 10 条,「更多」每次加载 10 条——外加各分类总数;已归档、定时与子 Agent 会话不再预先加载。
+- 分组的「更多」只统计**外层的活跃行**(折叠的文件夹从不喂给它),而由于它拉取的页面已按分类过滤,因此每次点击都能让可见列表整整增长一页。
+- 折叠的文件夹依服务端总数标注数量,并在**首次展开时**拉取第一页。展开之后它以自己的「更多」行独立分页——每个分组与每个文件夹各自推进,不会替其他部分拖入页面。
+- 带计数的响应还会**按 Workspace 路径**拆分总数,因此每个分组——包括 Workspace 分组——只为**属于自己的那一份**显示文件夹:标签计数精确,且只在这一份尚未加载完时才显示「更多」。(最初 Workspace 分组是依逐 Agent 总数推断其文件夹的,于是某个 Agent 位于**其他** Workspace 中的子 Agent / 定时会话,会让不相关的分组长出一个空文件夹,而点击其「更多」会让整个文件夹消失。)
+- 审查后续改进:分页游标改为每一对的**已拉取行数**,因此被 `add()` 塞进列表的深链行不会再让下一页跳过一条服务端记录;被点击的「更多」在其拉取期间会禁用并显示「加载中……」(在 Workspace 模式下,一页可能整页落进其他分组——这次点击仍要让人看到有反应);而服务端在**发现流程已有的同一次目录遍历**中定位每个 Session 最早的 Trace 分片,因此 `counts=1` 的分类不再为每个 Session 重新遍历一遍 Traces 树。
+
+不预加载文件夹内容带来一个后果:在 Workspace 分组模式下,如果某个 Workspace 已加载的会话全是已归档或自动化创建的,它就不再自行构成一个分组(没有可见内容可以挂靠);其会话仍可通过 Agent 分组模式的文件夹到达。
+
+自动打开的「上一次会话」现在也遵循单一规则。此前进入 `/chat` 而未指定 Session 时,取的是扁平列表中字面意义上的第一行(第一个 Agent 已加载的最新行——而非该 Project 的最新,且在深链之后还可能是一条已归档或子 Agent 的行),而收起态导航栏的入口只是跳过了已归档行。现在两者——以及删除后跳向相邻会话的行为——都选取已加载的最新**活跃或定时**会话:已归档行是用户主动隐藏的,而子 Agent 会话隶属于其父对话,因此二者都绝不会被自动打开。当被自动打开的会话由定时任务创建时,只有其所在分组的 Scheduled 文件夹会展开并加载;外层活跃列表的「更多」不受影响。
+
+## 每个写文件的操作都先确认;空保存会明说
+
+在服务端写文件的操作此前是混杂的:删除会确认,Skill **更新**会确认,但设置保存(AGENTS.md / 系统提示词、运行时参数、工具覆盖)、Skill **卸载**(它会删除已安装副本,包括本地修改)以及落在同名文件上的工作区上传,都是一键即执行。它们现在统一经共享的 `ConfirmModal` 先行确认,而该组件也做了改版:一张紧凑的卡片,**没有标题栏**——只有一个带色调的图标徽记来一眼定调(删除用红色警告三角,保存/覆盖用中性铅笔),消息位于其旁(每条消息自带其对象与后果),再加一对小的「取消/确认」按钮。原先的标题仍为辅助技术保留以命名对话框。所有既有确认(删除会话/Agent/Project/定时任务/vault 条目、模型对话框写入、导入版本冲突)都迁到了同一个组件上,因此各处确认外观完全一致。在已配置的名称下新增 vault 变量现在也会确认(它会覆盖一个不可恢复的值);聊天内的快捷设置控件(审批模式、思考等级)刻意保持一键。
+
+什么都没改就点保存,此前会静默无事发生(多数表单跳过请求;模型对话框甚至会报「已保存」)。现在每条保存路径都会检测这种空操作——Agent 设置各标签页、定时任务编辑对话框与模型编辑对话框——并显示一个信息 toast:「没有需要保存的更改」。
+
+## 任务运行期间,聊天输入框可转向或排队
+
+运行期间发送此前无处可去——输入框仍可用,但在任务结束前提交是空操作。任务运行时,输入区现在会做两件实事:**转向**(默认)把草稿以 `[user_steering]` 消息在运行途中投递,搭上模型的下一次请求;**排队**则经完整的正常组装路径把整份草稿——包括图片、Skill 与 @ 交接——带 `queueIfBusy` 发出,服务端予以保留,并在运行结束时作为普通的后续任务自动发送。模式在输入工具栏上新增的「更多设置」浮层中选择——这是一个可扩展的设置行面板,草稿状态下也可用,取代了此前在窄屏上会溢出的行内分段开关——该选择像侧边栏分组模式一样按用户记忆,因此运行状态下的一次发送直接依此执行。停止与发送也合并为一个按钮:输入框为空时它停止运行,一旦有内容就变为发送,并按记忆的模式转向或排队。工具栏本身现在是一个左右分列的行,其拾取器经共享的 portal 层渲染,因此面板在窄屏上绝不会被滚动的工具栏裁切。输给运行完成竞态的转向消息会回退到同一条完整发送路径。排队的后续消息能在中止与压缩中存活,并有一个由服务端驱动、可在刷新后保持的「已排队 N 条」提示位于输入框附近;一次成功的转向会显示一个轻量的排队提示,直到其消息出现在流中。转向消息在对话中渲染为随流的、用户样式的芯片——它们绝不会把 Task 切开——而运行中的占位文字会说明其投递方式。
+
+## /model 把对话切换到另一个模型
+
+在处于空闲状态的活跃会话中输入 `/model` 斜杠命令,会打开模型拾取器(与草稿拾取器相同的列表与分组,当前模型有标记)。选择另一个模型会以交接方式继续该对话:为同一个 Agent 在所选模型上开一个**新**会话,复用源会话的 Workspace 与审批模式,其第一条消息以成对的 `[model_switch_from]` 源信息块开头,写明源会话、其最新 trace 文件、工作区与此前的模型——模型需要更早的上下文时会自行从源 trace 读取。命令之后剩余的任何文本会像一次普通发送那样搭进第一个任务,新会话则显示一个「已切换模型」的横幅并链接回源会话。该命令会立即消耗掉自己的 token——Escape 与点击外部只是关闭,与 `/compact` 一致——运行状态在选择时会重新检查,而选择当前模型则是空操作。
+
+## 活跃会话中的思考等级成为逐轮覆盖
+
+活跃会话中只读的思考等级标签变成一个可编辑的拾取器,只列出各个等级。它以 Agent 配置中的等级初始化(经既有的 Agent 配置端点获取),在未被触碰时随任务不发送任何值——配置回退继续生效,因此会话中途修改配置仍然起作用。一旦用户选定某个等级,它就为该会话固定下来并随每个任务发送,且绝不写回 Agent 设置;草稿拾取器「切换即成默认」的行为未变。
+
+## 工具卡片上的调用描述,以及会展示载荷的审批
+
+工具调用卡片把模型撰写的调用描述作为折叠态标题的副标题展示,Agent 设置的 Tools 标签页则为每个参数中声明了该属性的工具条目新增一个逐行的调用描述开关。待审批区块会在一个可滚动的窗格中渲染解码后的文件工具载荷——`old_string` / `new_string` / `content` 与路径并列——而对 shell 工具,审批预览保留真实命令:用户批准的是实际改动,而不是模型对它的概括。文件工具预览把路径缩短为一层父目录加文件名;完整路径保留在展开的参数中。
+
+## 免费模型带 Free 徽章
+
+免费行——`:free` 变体与免费模型路由器——现在显示一个浅黄色的 "Free" 徽章,这是一个新的共享徽章色调,刻意与警告用的琥珀色区分开;它出现在模型页卡片上、默认与视觉徽章旁边,以及聊天模型拾取器中。由一个共享的 `isFreeModel` 助手判定:该条目必须带有显式定价且三个档位全为零,因此未定价或只有部分定价的行——它们的成本只是未知——绝不会被标为免费。
diff --git a/changelog/0.1.2/2026-07-24-backward-compatibility.md b/changelog/0.1.2/2026-07-24-backward-compatibility.md
index d09ed7d9..bf97049f 100644
--- a/changelog/0.1.2/2026-07-24-backward-compatibility.md
+++ b/changelog/0.1.2/2026-07-24-backward-compatibility.md
@@ -1,5 +1,12 @@
# Backward compatibility in this batch
+- **Date:** 2026-07-24
+- **Type:** process
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[中文版](2026-07-24-backward-compatibility.zh.md)
+
What this batch keeps tolerating from data and configuration already on disk, how far each allowance reaches, whether the user has to do anything, and when it could be dropped. Other entries describe the features themselves and point here.
## Legacy angle-bracket markers stay readable
diff --git a/changelog/0.1.2/2026-07-24-backward-compatibility.zh.md b/changelog/0.1.2/2026-07-24-backward-compatibility.zh.md
new file mode 100644
index 00000000..94e2271b
--- /dev/null
+++ b/changelog/0.1.2/2026-07-24-backward-compatibility.zh.md
@@ -0,0 +1,39 @@
+# 本批次的向后兼容
+
+- **Date:** 2026-07-24
+- **Type:** process
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[English](2026-07-24-backward-compatibility.md)
+
+本批次对磁盘上已有的数据与配置继续容忍哪些旧形态、每项容忍的生效范围有多大、用户是否需要动手,以及何时可以移除。其他条目描述功能本身并指向这里。
+
+## 旧的尖括号标记仍可读
+
+系统合成的标记改为成对的方括号形式(`[summary]`、`[context_summary]`、`[use_skills]`、`[handoff_from]`、`[scheduled_task]`、`[developer_instructions]`、`[turn_aborted]`、`[turn_retried]`、`[model_switch_from]`,以及内层的对话记录标签)。产出方只发出新形式,而所有可能遇到旧材料的解析器都同时接受两种形式。有两个来源使这一点无可回避:改动之前写入的 Trace,它们会在恢复时被重新渲染与回放;以及固化在每个已有 Agent 的 `system_config.yaml` 中的压缩提示词,只要该文件未被触碰,它就会继续要求模型用 `<summary>` 标签作答。`model_switch_from` 是一个更窄的情况——它的尖括号形式只存在于「合并后的 `/model` 切换在 main 上运行、而标记尚未落地」那段时间产生的 trace 中——但它搭乘的是同一套双形式解析器。
+
+用户无需做任何事。该策略现在集中在一处——core 的 `omnimessage/markers/` 模块(以 `@prismshadow/penguin-core/markers` 导出),它拥有每个标记的产出方与解析器——因此日后移除这项容忍是改一个模块,而不是全仓扫荡。尽管如此,移除时间仍然遥遥无期:只要仍要求旧 Trace 能打开、旧 Agent 配置仍被逐字尊重,双形式解析器就不能撤,因此这属于大版本才能处理的事项,而不是某个小版本的清理工作。
+
+## 恢复时仍会读取 session_meta.thinking_level
+
+思考等级已成为逐请求参数,不再写入 `session_meta`。更早记录的 Trace 中仍带有该字段,因此恢复时会宽松地读取它,并继续把它作为该会话的默认等级来对待——这对那些从父级继承了等级、否则会以自身 Agent 配置等级回归的子 Agent 会话尤为重要。旧的字面量 `"default"` 与字段缺失一样,都回退到 Agent 配置,与此前一致;重建出的 meta 不会再写入该字段,而当旧 meta 携带它时,Trace 视图仍会渲染该行。
+
+用户无需做任何事。这一项维持成本很低(一次宽松读取加上视图的回退),可以在不再支持恢复改动前的 Trace 之后移除——同样是大版本层面的决定。
+
+## 已有 Agent 逐字保留其已存配置
+
+Agent 的 `system_config.yaml` 完全按写入时的样子加载,不做迁移,也不与当前默认值做合并。因此已存在的 Agent 会保留其旧的系统提示词——包括旧的标记说明,以及被新提示词换成 App Data Dir 的旧 `Project Dir` 措辞——其记录的 `tools.builtin` 列表也保持冻结,因此它**不会**获得 `read_file` / `edit_file` / `write_file`;设置界面同样不会新增行。这是刻意为之:已存的配置是用户的文件。
+
+因此采用新默认值需要用户动手,方式有二:执行**恢复默认配置**(Agent 设置的 Overview 标签页;`POST /api/projects/:projectId/agents/:agentId/config/reset`),它会把该文件重写为当前默认值,仅保留 Agent 的名称、描述与版本——所有自定义内容,包括编辑过的系统提示词、模型与压缩设置以及 MCP Server,都会被覆盖;或者手工编辑 YAML,只添加想要的条目。无论哪种方式,其他 Agent State 文件(AGENTS.md、Skill、vault)都不受影响。这里没有任何带截止期的临时兼容层——逐字加载就是预期行为,会一直保留。
+
+## tools.call_description 缺失即为启用
+
+逐工具的 `call_description` 开关决定是否把该工具的 `description` 参数提供给模型。缺失该键读作启用,因此在这个开关存在之前写入的配置中,那四个命令/子 Agent 条目无需任何人编辑即可继续接受调用描述;而显式的 `false` 会把该属性从组装出的 schema 中过滤掉,且从不重写已存的 YAML。这是一条默认取值规则,而非兼容层;它没有移除期限,日后若要翻转默认值则需要一次迁移。
+
+## 本批次没有引入的兼容处理
+
+分离源的 HTML 预览、新增的 OpenRouter 目录行以及开发数据根目录,都不带针对已存数据的兼容处理。不过有两点后果仍值得知道,二者都不属于被容忍的旧形态:
+
+- 新的目录行会自动进入新建的 Project,因为预设清单是在 Project 的 `.project_config.toml` 创建时写入的。已有 Project 不会自行变化——用户通过模型页的**同步预设**或 CLI 的 `penguin config model add` 来获取新模型。
+- 开发入口现在把 `PENGUIN_HOME` 默认指向 `~/.penguin/dev-data`。此前从源码运行所写入的数据仍留在原处,即已安装的根目录之下;想继续基于它工作的开发者显式导出 `PENGUIN_HOME` 即可,它依然优先于默认值。
diff --git a/changelog/0.1.2/2026-07-24-llm-request-errors.md b/changelog/0.1.2/2026-07-24-llm-request-errors.md
index d96da5c1..59be9f8c 100644
--- a/changelog/0.1.2/2026-07-24-llm-request-errors.md
+++ b/changelog/0.1.2/2026-07-24-llm-request-errors.md
@@ -1,5 +1,12 @@
# LLM request errors surface their underlying cause
+- **Date:** 2026-07-24
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#54](https://github.com/Prism-Shadow/penguin-harness/pull/54)
+
+[中文版](2026-07-24-llm-request-errors.zh.md)
+
A failed LLM request used to record a bare, unactionable message like `terminated`. Node's `fetch` wraps the real transport failure as a `TypeError: terminated` and hangs the actual reason — a socket close, `ECONNRESET`, a provider aborting the stream — on the error's `cause`; taking only `.message` when building the request outcome threw that away.
The outcome message now walks the `cause` chain and appends each level's message and error `code`, so the same failure surfaces as e.g. `terminated: other side closed (UND_ERR_SOCKET)`. This flows straight through to the abort reason (`llm request error: …`), the Cost Center's recent-errors table, and Traces. Segments are de-duplicated, a non-Error cause tail is kept, and the walk guards against a cyclic `cause` chain. Covered by a `describeError` unit test.
diff --git a/changelog/0.1.2/2026-07-24-llm-request-errors.zh.md b/changelog/0.1.2/2026-07-24-llm-request-errors.zh.md
new file mode 100644
index 00000000..e851ed4a
--- /dev/null
+++ b/changelog/0.1.2/2026-07-24-llm-request-errors.zh.md
@@ -0,0 +1,12 @@
+# LLM 请求错误呈现其底层原因
+
+- **Date:** 2026-07-24
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#54](https://github.com/Prism-Shadow/penguin-harness/pull/54)
+
+[English](2026-07-24-llm-request-errors.md)
+
+失败的 LLM 请求此前记录的是像 `terminated` 这样光秃秃、无从下手的信息。Node 的 `fetch` 把真正的传输失败包装成 `TypeError: terminated`,而把实际原因——套接字关闭、`ECONNRESET`、Provider 中断了流——挂在错误的 `cause` 上;构造请求结果时只取 `.message`,就把它丢掉了。
+
+结果信息现在会遍历 `cause` 链并追加每一层的 message 与错误 `code`,因此同一个失败会呈现为例如 `terminated: other side closed (UND_ERR_SOCKET)`。这会一路贯通到中止原因(`llm request error: …`)、成本中心的近期错误表以及 Trace。各段会去重,非 Error 类型的 cause 末端予以保留,遍历过程也防范了 `cause` 成环。由一个 `describeError` 单元测试覆盖。
diff --git a/changelog/0.1.2/2026-07-24-models-and-core.md b/changelog/0.1.2/2026-07-24-models-and-core.md
index 3cd97796..494d0a93 100644
--- a/changelog/0.1.2/2026-07-24-models-and-core.md
+++ b/changelog/0.1.2/2026-07-24-models-and-core.md
@@ -1,5 +1,12 @@
# Models and core: file tools, mid-run steering, /model switches, and new OpenRouter models
+- **Date:** 2026-07-24
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#56](https://github.com/Prism-Shadow/penguin-harness/pull/56), [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60), [#61](https://github.com/Prism-Shadow/penguin-harness/pull/61), [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[中文版](2026-07-24-models-and-core.zh.md)
+
## File tools: read_file, edit_file, write_file
The builtin toolset gains three file tools. `read_file` returns a `cat -n`-style line-numbered view with `offset`/`limit` paging (2000 lines by default), reading incrementally instead of slurping the file: an abort-aware scan with a hard 8MB cap that retains only the requested window, detects CRLF, and truncates overlong single lines. Its output cap is 64000 characters against the 16000 default of the other builtins, and the output is self-budgeted so the trailing "file has N lines total; showing X–Y" continuation note always survives truncation. It refuses binary content with a pointer to the shell and image tools, and refuses `.vault.toml` / `.project_config.toml` by basename — it is auto-approved under read-only approval, so the secret files need their own guard. `edit_file` performs exact `old_string` → `new_string` replacement: the string must occur exactly once — zero occurrences and duplicates both fail with an explanation — `replace_all` covers bulk changes, and success answers with a summary line plus a git-style unified diff: one hunk per replacement site with nearby sites merged, capped at 5 hunks on a `replace_all` storm with an "…and N more replacements" note, self-budgeted so the summary and note survive truncation. `write_file` writes a whole file, creating parent directories as needed, and reports whether it created or overwrote — an overwrite appends a real line diff against the previous content (a `+X/−Y` one-liner once the diff passes ~60 lines), a created file carries none — and the CLI colors the `+`/`-`/`@@` lines of both tools' diff outputs. Both writers land atomically (a temp file in the target directory, then a rename that preserves existing permission bits), and the approval prompt in both UIs shows the decoded edit or write payload, so the user approves the actual change. All three resolve relative paths against the Workspace and accept absolute paths under the same trust model as the shell tool, which remains the general-purpose fallback for everything else. The docs site's framing — it used to present "no file tools at all" as a design tenet — was rewritten around the nine-tool builtin set (zh + en); the landing blog's earlier posts keep their historical six-tool description. New agents get the file tools; an existing agent's frozen tool list does not, until its config is restored to the current defaults — see [backward compatibility](2026-07-24-backward-compatibility.md).
diff --git a/changelog/0.1.2/2026-07-24-models-and-core.zh.md b/changelog/0.1.2/2026-07-24-models-and-core.zh.md
new file mode 100644
index 00000000..80cc2d6e
--- /dev/null
+++ b/changelog/0.1.2/2026-07-24-models-and-core.zh.md
@@ -0,0 +1,50 @@
+# 模型与 core:文件工具、运行中转向、/model 切换,以及新的 OpenRouter 模型
+
+- **Date:** 2026-07-24
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `model-catalog`
+- **PR:** [#56](https://github.com/Prism-Shadow/penguin-harness/pull/56), [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60), [#61](https://github.com/Prism-Shadow/penguin-harness/pull/61), [#62](https://github.com/Prism-Shadow/penguin-harness/pull/62), [#63](https://github.com/Prism-Shadow/penguin-harness/pull/63), [#64](https://github.com/Prism-Shadow/penguin-harness/pull/64)
+
+[English](2026-07-24-models-and-core.md)
+
+## 文件工具:read_file、edit_file、write_file
+
+内置工具集新增三个文件工具。`read_file` 返回 `cat -n` 风格的带行号视图,支持 `offset`/`limit` 分页(默认 2000 行),并且是增量读取而不是整file吞入:一次可中止的扫描,带 8MB 硬上限,只保留请求的窗口,检测 CRLF,并截断过长的单行。它的输出上限为 64000 字符,而其他内置工具是 16000;输出自带预算控制,因此末尾那句「文件共 N 行;显示 X–Y」的续接说明总能在截断中幸存。它拒绝二进制内容并指向 shell 与图像工具,也按 basename 拒绝 `.vault.toml` / `.project_config.toml`——它在只读审批下是自动批准的,因此这些密钥文件需要自己的守卫。`edit_file` 执行精确的 `old_string` → `new_string` 替换:该字符串必须恰好出现一次——零次与多次都会带解释地失败——`replace_all` 用于批量修改;成功时回以一行摘要加一份 git 风格的统一 diff:每个替换点一个 hunk、邻近位置合并,在 `replace_all` 风暴下至多 5 个 hunk 并附「……另有 N 处替换」的说明,同样自带预算控制,使摘要与说明在截断中幸存。`write_file` 写入整个文件,按需创建父目录,并报告它是新建还是覆盖——覆盖时追加一份针对原内容的真实行 diff(diff 超过约 60 行后退化为 `+X/−Y` 的一行式),新建则不带 diff——CLI 会为这两个工具 diff 输出中的 `+`/`-`/`@@` 行着色。两个写入工具都是原子落盘(先在目标目录下写临时文件,再 rename,并保留既有权限位),两个界面中的审批提示都会展示解码后的编辑或写入载荷,因此用户批准的是真正的改动。三者都把相对路径解析到 Workspace 之下,并在与 shell 工具相同的信任模型下接受绝对路径,而 shell 工具仍是其余一切的通用兜底。文档站的立论也随之重写——它此前把「完全没有文件工具」作为一条设计信条——现在围绕九个内置工具的集合展开(中英);落地页博客的早期文章保留其历史上的六工具描述。新建 Agent 会获得文件工具;已有 Agent 被冻结的工具列表则不会,除非其配置被恢复为当前默认值——见[向后兼容](2026-07-24-backward-compatibility.zh.md)。
+
+## 模型撰写的调用描述
+
+四个命令/子 Agent 工具——`exec_command`、`input_command`、`run_subagent`、`input_subagent`——接受一个可选的 `description` 参数:一句由模型撰写、使用用户语言的话,说明这次调用在做什么,在运行期间显示于各界面。该参数像其他工具参数一样存在于 `system_config.yaml` 中这四个条目的 schema 里;只要该条目的 `call_description` 开关(缺失即为启用)处于开启状态,它在那里就是必填的,因此一个提供描述的工具总会携带描述,前端也就能预先确定某次调用的展示形态,而不必在流式过程中猜测;关闭该开关会把该属性及其 `required` 项从组装出的 schema 中过滤掉,且从不重写已存的 YAML。Web 端的 Tools 标签页可逐行切换它。文件工具不接受 `description`:它们的路径参数本身就是自解释的。每个 schema 都把对用户最可见的参数排在最前——这四个工具是 `description` 在前,文件工具是 `file_path` 在前——因此它会最先流入 CLI 与 Web 的预览。
+
+## 精确的 CLI 调用与输出格式
+
+CLI 中的工具调用渲染为 `name <- description (payload)`,而对于 schema 不提供描述的工具则是朴素的 `name <- payload`——该形态是依据本次会话组装出的工具列表预先确定的,而不是在参数流入时猜测,因此朴素形式可实时流式输出,而带描述的调用会等待它那句话、并且只会以带描述的形式出现。调用行与输出行共用完全一致的 `[tool-NNN] name` 前缀,因此 `[tool-NNN] exec_command <- $ date` 与 `[tool-NNN] exec_command -> output` 成对;如果某个输出对应的调用从未被看到,则保留裸的 `[tool-NNN] ->` 标记。文件工具的预览把路径缩短为一层父目录加文件名;聊天与运行的启动横幅现在把版本以及 Agent、Workspace、Model 各自单独成行地打印出来。
+
+## 转向:向运行中的任务发消息
+
+运行中的任务此前是够不着的——运行途中发送的任何内容都只能等到下一次空闲。现在 `Session.steer` 与 `POST /api/sessions/:sessionId/steer` 能把一条消息投递进 RUNNING 状态的任务:文本先入队,在下一次输入组装时作为一条独立的用户消息交付,用成对的 `[user_steering]` 标记包裹,与该轮的工具输出一并发送——作为真实的用户输入写入 Trace,在同一位置流式呈现,且绝不会在界面上把 Task 切开。工具输出永不被改写,而转向的权威性来自该消息的用户角色——某个工具在自己的输出里打印这个标记并不能冒充用户。队列在每次输入组装时排空,包括压缩刚结束之后(在漫长的摘要请求期间到达的转向消息会紧跟摘要之后被投递),只有在运行退出时才被丢弃;若某一轮结束时队列仍非空,循环会带着队列中的文本经同一机制继续。该标记记录在默认提示词的「系统标记」小节中。
+
+繁忙的会话也可以容纳普通的后续消息:`POST /api/sessions/:sessionId/tasks` 接受 `queueIfBusy`,返回 202 并在服务端排队;当运行结束时——包括被中止——每条排队输入都会按顺序作为普通任务自动启动,并携带与之一同存储的逐轮思考等级,而不是回退到会话默认值;排队数量会随任务状态事件与会话快照一并下发。在 CLI 中,任务运行期间输入的一行会成为转向消息(确认信息会回显该文本),渲染器在用户正在输入时会暂存流式输出,并在提交时刷出;而输给完成竞态的转向消息会作为下一条普通提示重新提交。
+
+## 系统标记改为成对方括号
+
+每一个系统合成的标记都从尖括号形式切换为成对的方括号形式:`[turn_aborted]`、`[turn_retried]`、`[context_summary]`、`[summary]`、`[use_skills]`、`[handoff_from]`、`[scheduled_task]`、`[developer_instructions]`,以及合成块内部的对话记录标签。产出方只发出新形式,而解析器继续读取旧的尖括号形式——见[向后兼容](2026-07-24-backward-compatibility.zh.md)。每个标记的产出方与解析器都移入了 core 的同一个模块 `omnimessage/markers/`,同时可经 `@prismshadow/penguin-core/markers` 子路径访问,使标签字面量与双形式读取规则有了单一归属,而不再散落在 core、server 与前端之间。文档中的标记字面量已相应更新(中英)。
+
+## 思考等级改为逐请求;session_meta 只保留不变量
+
+`thinking_level` 从 `session_meta` 中移除:该 meta 现在只保存逐会话的不变量,凡是用户在对话中途可以改变的,要么是逐轮参数,要么就是一个新会话。等级改为以逐请求参数的形式贯穿——`GenerativeModelParameters`、`RunOptions` 与 `TaskCreateRequest`——构造时的取值仅作为默认值;压缩请求刻意保持使用默认值。记录了该字段的 Trace 在恢复时仍被尊重——见[向后兼容](2026-07-24-backward-compatibility.zh.md)。
+
+## 切换模型:一个会读取源 trace 的新会话
+
+在另一个模型上继续对话时,不会向新会话注入任何历史:思考载荷与 Provider 保真信息是与模型绑定的,无法跨模型忠实回放,因此早先那种携带历史的 fork 设计被放弃,改用交接模式。Web 端的 `/model` 命令会经普通的会话创建 API,为同一个 Agent 在所选模型上打开一个**新**会话——刻意复用源会话的 Workspace,使对话所引用的文件仍然可达,同时也复用其审批模式——并投递第一个任务,其输入以成对的 `[model_switch_from]` 源信息块开头,包含源会话 id、其最新 trace 文件的绝对路径、工作区,以及此前的模型二元组,遵循方括号标记约定。模型在需要更早的上下文时会自行读取源 trace。`SessionInfo` 新增可选的 `tracePath`(最新分片,仅在单会话 GET 中填充),并且该标记会从生成的标题中剥离。
+
+## 提示词把项目目录呈现为 App Data Dir;恢复默认是采用路径
+
+模型总把 Environment 小节里的 `Project Dir` 误认为用户的工作目录(那其实是 `CWD`)——把它的内容当作任务输入,并把任务产物写进去。默认提示词现在用一个能说明其本质的名字来呈现同一个值:Environment 行写作 App Data Dir(`{{PROJECT_DIR}}` 占位符未变,因此已有的自定义提示词不受影响),而「文件系统」小节明确陈述其语义——PenguinHarness 的应用数据根目录,存放每个 Agent 的数据文件以及项目级数据文件;它不是当前任务的目录,不是用户提供的输入,也绝不是放置任务产物的地方(工作文件夹是 `CWD`)。提示词中的路径(Agent State、其他 Agent 的资产、草稿区、Skill)写作 `<app_data_dir>/agents/…`,而密钥规则直接指向 App Data Dir 下的 `.project_config.toml`。六个内置 Skill 从 Environment 小节读取 App Data Dir 字段——评估家族对项目根目录的推导简化为 App Data Dir 本身——Web 端系统提示词编辑器的占位符提示也以应用数据根目录的描述来说明 `{{PROJECT_DIR}}`,按提示词中的顺序完整列出。
+
+默认值的变化绝不会自行到达已有 Agent,因为已存配置是逐字加载的。采用路径是一个新的「恢复默认配置」操作——`POST /api/projects/:projectId/agents/:agentId/config/reset` 以及 Agent 设置 Overview 标签页上对应的操作,置于确认对话框之后——它是 Skill 更新在配置侧的对应物;它保留什么、覆盖什么,在[向后兼容](2026-07-24-backward-compatibility.zh.md)中有详细说明。
+
+## OpenRouter 新增:三个免费模型与 Claude Opus 5
+
+目录新增三个 $0 的 OpenRouter 行:`inclusionai/ling-3.0-flash:free` 与 `poolside/laguna-m.1:free`——Ling 3.0 Flash(一个 124B 参数的 MoE)与 Laguna M.1 的免费档,二者上下文均为 262,144——以及 `openrouter/free`,即把每次请求随机发往某个免费模型的免费模型路由器。该路由器刻意声明不支持视觉,因为 Harness 不得把图像发给一个目标可能是纯文本的路由器;它还记录了一个保守的 128,000 Token 上下文下限,使 75% 的压缩夹紧线落在 96,000 Token:若不记录窗口,该夹紧会被静默禁用,而一个被路由到小窗口目标的长会话就会直接硬失败,而不是提早压缩。目录测试中的免费定价不变式恰好覆盖 `:free` 后缀与该路由器 id,Web 界面把这类行标为 Free,模型文档(中英)也说明了免费变体、其零成本,以及 OpenRouter 的免费档限流与数据政策。
+
+与免费阵容一同被要求加入的 `anthropic/claude-opus-5` 作为付费旗舰进入 OpenRouter 区块:上下文 1,000,000,支持视觉,每百万 Token 输入 $5 / 输出 $25,并采用真实公布的缓存价格(读取 $0.50、写入 $6.25),而不是沿用「重复输入」的惯例——按同系列最新在前的规则,紧排在 `claude-fable-5` 之后。
diff --git a/changelog/0.1.2/2026-07-24-sites-and-blog.md b/changelog/0.1.2/2026-07-24-sites-and-blog.md
index dccd1a64..6e3a91e4 100644
--- a/changelog/0.1.2/2026-07-24-sites-and-blog.md
+++ b/changelog/0.1.2/2026-07-24-sites-and-blog.md
@@ -1,3 +1,10 @@
# Sites: a free-models post, featured in the announcement bar
+- **Date:** 2026-07-24
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60)
+
+[中文版](2026-07-24-sites-and-blog.zh.md)
+
The blog gains a bilingual post, `free-models-in-penguin-harness`: the free lineup now in the catalog — Nemotron 3 Ultra (free), the newly added Ling 3.0 Flash and Laguna M.1 free tiers, and the `openrouter/free` Free Models Router — how to enable it (a free OpenRouter key; presets automatic on new Projects, Sync presets on the web Models page or `penguin config model add` from the CLI), and honest caveats: free-tier rate limits, prompts handled under the upstream provider's own terms, availability and quality variance, and the router's varying per-request target — PenguinHarness records a conservative window for it so long Sessions compact early instead of failing — fine for trying things out and light automation, paid models for serious work. The post is featured as the newest announcement-bar slide, at the head of the rotation.
diff --git a/changelog/0.1.2/2026-07-24-sites-and-blog.zh.md b/changelog/0.1.2/2026-07-24-sites-and-blog.zh.md
new file mode 100644
index 00000000..246c119f
--- /dev/null
+++ b/changelog/0.1.2/2026-07-24-sites-and-blog.zh.md
@@ -0,0 +1,10 @@
+# 站点:一篇免费模型文章,登上公告栏
+
+- **Date:** 2026-07-24
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#60](https://github.com/Prism-Shadow/penguin-harness/pull/60)
+
+[English](2026-07-24-sites-and-blog.md)
+
+博客新增一篇双语文章 `free-models-in-penguin-harness`:介绍目录中现有的免费阵容——Nemotron 3 Ultra(免费档)、新加入的 Ling 3.0 Flash 与 Laguna M.1 免费档,以及 `openrouter/free` 免费模型路由器——如何启用(一个免费的 OpenRouter key;新建 Project 自动带上预设,已有 Project 用 Web 模型页的「同步预设」或 CLI 的 `penguin config model add`),以及若干实话实说的注意事项:免费档限流、提示词按上游 Provider 自己的条款处理、可用性与质量存在波动,还有路由器每次请求的目标模型并不固定——PenguinHarness 为它记录了一个保守的上下文窗口,因此长会话会提早压缩而不是直接失败——用来试水与轻量自动化没问题,正经工作还是要用付费模型。这篇文章作为最新一条公告出现在公告栏轮播的首位。
diff --git a/changelog/0.1.2/2026-07-24-tooling.md b/changelog/0.1.2/2026-07-24-tooling.md
index 98172a26..6d48394d 100644
--- a/changelog/0.1.2/2026-07-24-tooling.md
+++ b/changelog/0.1.2/2026-07-24-tooling.md
@@ -1,3 +1,10 @@
# Tooling: the dev data root separates from the installed one
+- **Date:** 2026-07-24
+- **Type:** fix
+- **Scope:** `tooling`
+- **PR:** [#67](https://github.com/Prism-Shadow/penguin-harness/pull/67)
+
+[中文版](2026-07-24-tooling.zh.md)
+
Running the server or CLI from source used to operate on the very same data as the user's real installed penguin: core's `resolveRoot()` returns `PENGUIN_HOME ?? ~/.penguin/data`, the dev entry points set nothing, and so `pnpm dev` shared agents, sessions and `web.db` with the production install. The development entry points — `pnpm dev`, `pnpm dev:server`, `pnpm penguin`, and packages/cli's own `penguin` script — now default `PENGUIN_HOME` to a separate dev data root, `~/.penguin/dev-data`, via POSIX `${PENGUIN_HOME:-…}` substitution in the scripts themselves. An explicitly exported `PENGUIN_HOME` still wins, and the product defaults — `resolveRoot()`, the server config, CLI `--root` — are unchanged: the isolation lives only in the dev scripts, so the installed penguin keeps `~/.penguin/data`. CONTRIBUTING.md's development-commands section and the installation docs (zh + en) document the dev root.
diff --git a/changelog/0.1.2/2026-07-24-tooling.zh.md b/changelog/0.1.2/2026-07-24-tooling.zh.md
new file mode 100644
index 00000000..bfef4d4a
--- /dev/null
+++ b/changelog/0.1.2/2026-07-24-tooling.zh.md
@@ -0,0 +1,10 @@
+# 工具链:开发用数据根目录与已安装的分离
+
+- **Date:** 2026-07-24
+- **Type:** fix
+- **Scope:** `tooling`
+- **PR:** [#67](https://github.com/Prism-Shadow/penguin-harness/pull/67)
+
+[English](2026-07-24-tooling.md)
+
+从源码运行 server 或 CLI 时,此前操作的是与用户真实安装的 penguin 完全相同的数据:core 的 `resolveRoot()` 返回 `PENGUIN_HOME ?? ~/.penguin/data`,而开发入口不设置任何值,于是 `pnpm dev` 与生产安装共用 Agent、会话与 `web.db`。现在开发入口——`pnpm dev`、`pnpm dev:server`、`pnpm penguin`,以及 packages/cli 自己的 `penguin` 脚本——通过脚本内部的 POSIX `${PENGUIN_HOME:-…}` 替换,把 `PENGUIN_HOME` 默认指向一个独立的开发数据根目录 `~/.penguin/dev-data`。显式导出的 `PENGUIN_HOME` 仍然优先,产品侧的默认值——`resolveRoot()`、服务端配置、CLI 的 `--root`——均未改变:隔离只存在于开发脚本中,因此已安装的 penguin 依旧使用 `~/.penguin/data`。CONTRIBUTING.md 的开发命令小节与安装文档(中英)记录了这个开发根目录。
diff --git a/changelog/0.1.2/README.md b/changelog/0.1.2/README.md
deleted file mode 100644
index 9ba112bd..00000000
--- a/changelog/0.1.2/README.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Version 0.1.2
-
-Released on 2026-07-26.
-
-- [2026-07-24] Models and core: three builtin file tools (`read_file` / `edit_file` / `write_file`) with bounded reads, atomic writes and the shell as the general fallback, model-written call descriptions configured per tool entry, exact CLI call/output formats and a fuller startup banner, mid-run steering delivered as standalone `[user_steering]` user messages plus a queue-if-busy follow-up path, all system markers unified onto paired square brackets (the angle form stays parsed), the thinking level turned into a per-request parameter with `session_meta` reduced to invariants, model switching done handoff-style through a new session that reads the source trace, the default prompt presenting the project dir as the App Data Dir with a restore-defaults action as existing agents' adoption path, and OpenRouter catalog rows for three free models plus the paid Claude Opus 5. ([details](2026-07-24-models-and-core.md))
-- [2026-07-24] Sites: a bilingual free-models blog post — the lineup, how to enable it, and honest caveats — featured as the newest announcement-bar slide. ([details](2026-07-24-sites-and-blog.md))
-- [2026-07-24] Tooling: the dev entry points default `PENGUIN_HOME` to a separate `~/.penguin/dev-data` root, so running from source no longer shares agents, sessions and `web.db` with the installed penguin (an exported `PENGUIN_HOME` still wins; product defaults unchanged). ([details](2026-07-24-tooling.md))
-- [2026-07-24] Backward compatibility: what this batch keeps tolerating from existing Traces and configs — the legacy angle-bracket markers, `session_meta.thinking_level` on resume, agents' verbatim stored config (and the Restore default configuration path to the new prompt and file tools), and a missing `tools.call_description` reading as enabled. ([details](2026-07-24-backward-compatibility.md))
-- [2026-07-24] LLM request errors surface their underlying `cause` (e.g. `terminated: other side closed (UND_ERR_SOCKET)`) instead of a bare `terminated`, visible in the Cost Center and Traces. ([details](2026-07-24-llm-request-errors.md))
-- [2026-07-22] Web App: unified the form controls onto a shared Field/portal layer (now with required-field `*` markers), moved notifications to one rule (success/info → top toast, field errors inline with a red border; error prompts localized by code), generalized write confirmations (every file-writing save / uninstall / upload-overwrite now confirms via one polished dialog with tone icons — skill updates show each agent's `v_old → v_new` — and an unchanged save toasts "no changes to save"), made the Cost Center show the full error message, deduplicated the i18n copy (dead keys removed, shared `common` labels, lowercase "agent"), and reworked the sidebar session list onto category-filtered paging (default load = active rows only; the Subagents/Scheduled/Archived folders load on first open and page independently); plus the separate-origin Workspace HTML previews (now also the in-app rendered view's path), mid-run steering or queued follow-ups from the chat input, `/model` continuing the conversation on a picked model in a new session, a per-turn thinking-level override in active sessions, a light-yellow Free badge on free models in the Models cards and the chat picker, and tool-call cards carrying model-written call descriptions with payload-showing approvals. ([details](2026-07-22-web-app.md))
diff --git a/changelog/0.1.3/2026-07-26-core.md b/changelog/0.1.3/2026-07-26-core.md
index dfafa005..448e8e9f 100644
--- a/changelog/0.1.3/2026-07-26-core.md
+++ b/changelog/0.1.3/2026-07-26-core.md
@@ -1,14 +1,22 @@
# Core: resume ignores a legacy thinking level; empty compaction summaries no longer count as success; read_file's secret guard hardened
+- **Date:** 2026-07-26
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#70](https://github.com/Prism-Shadow/penguin-harness/pull/70), [#72](https://github.com/Prism-Shadow/penguin-harness/pull/72), [#84](https://github.com/Prism-Shadow/penguin-harness/pull/84), [#87](https://github.com/Prism-Shadow/penguin-harness/pull/87)
+- **Issue:** [#83](https://github.com/Prism-Shadow/penguin-harness/issues/83), [#85](https://github.com/Prism-Shadow/penguin-harness/issues/85)
+
+[中文版](2026-07-26-core.zh.md)
+
Since the thinking level became a per-turn run parameter (0.1.2), `session_meta` no longer records one — but resume still honored a `thinking_level` field found in an old Trace's meta, restoring it as the resumed Session's default. That compatibility read is removed: resume now always takes the level from the Agent's current config, and a legacy field is ignored outright. The one behavioral consequence is that a resumed legacy subagent session no longer keeps the level it inherited at spawn time — it follows the resuming Agent's configuration like everything else. Spawn-time inheritance in live runs, the per-turn picker, and what meta records are all unchanged.
## An empty compaction summary is a failure, not a result
-A compaction request that came back with only thinking or a tool call — no text — used to be judged `completed`, wrapping an empty `<context_summary>` and discarding the old context: the one thing compaction must never do, since the Agent loses its task state (issue #83). Three fixes close it. The compaction request keeps its configuration — tools included — **byte-identical to ordinary requests** (the same frozen config object, pinned by a test): omitting or altering the tool list would change the request prefix and blow the provider's prompt cache at exactly the moment the context is largest, multiplying the compaction's cost tens of times. A `completed` response whose extracted summary trims to empty, or that answers with a tool call instead, is rejected: any committed tool calls are first **repaired** — one synthesized failed `tool_call_output` per call, in the ordinary tool-failure shape, written to the Trace and prepended to the resent input, so the provider-side pairing stays intact (and if the compaction is abandoned, the repairs move into the carry-over so the live LLM object is never left with a dangling `tool_use`) — then the request retries, with a dedicated cap of 5 rejections separate from the shared transport-reconnect budget; on exhaustion the compaction fails via `compaction_end(failed)` with the original context and Trace file retained. And resume no longer fabricates an empty summary from a textless compaction closure: such a closure is void and the original context replays, so Traces already bitten by the bug recover their task state too.
+A compaction request that came back with only thinking or a tool call — no text — used to be judged `completed`, wrapping an empty `<context_summary>` and discarding the old context: the one thing compaction must never do, since the Agent loses its task state (issue [#83](https://github.com/Prism-Shadow/penguin-harness/issues/83)). Three fixes close it. The compaction request keeps its configuration — tools included — **byte-identical to ordinary requests** (the same frozen config object, pinned by a test): omitting or altering the tool list would change the request prefix and blow the provider's prompt cache at exactly the moment the context is largest, multiplying the compaction's cost tens of times. A `completed` response whose extracted summary trims to empty, or that answers with a tool call instead, is rejected: any committed tool calls are first **repaired** — one synthesized failed `tool_call_output` per call, in the ordinary tool-failure shape, written to the Trace and prepended to the resent input, so the provider-side pairing stays intact (and if the compaction is abandoned, the repairs move into the carry-over so the live LLM object is never left with a dangling `tool_use`) — then the request retries, with a dedicated cap of 5 rejections separate from the shared transport-reconnect budget; on exhaustion the compaction fails via `compaction_end(failed)` with the original context and Trace file retained. And resume no longer fabricates an empty summary from a textless compaction closure: such a closure is void and the original context replays, so Traces already bitten by the bug recover their task state too.
## Mid-task compaction stops re-sending what AgentHub already has
-The empty-summary fix left one bounded hazard behind (issue #85): when auto-compaction fires mid-task, the pending turn input rides along in the compaction request — and once an attempt is **committed** into AgentHub's history, resending that input on a retry (or after giving up) hands strict providers duplicate `tool_result`s to reject. The rule is now a clean binary on one fact: if any compaction attempt committed, the carry is consumed — retries resend only the pairing repairs plus the prompt, and after abandonment the next request continues from committed state without re-sending the turn's outputs; if nothing committed, the previous carry-over is restored verbatim (object-identical). An abort inside the compaction window merges into the pending state instead of overwriting it, and replay reconstructs the same absorbed state after a restart, so live and resumed sessions agree.
+The empty-summary fix left one bounded hazard behind (issue [#85](https://github.com/Prism-Shadow/penguin-harness/issues/85)): when auto-compaction fires mid-task, the pending turn input rides along in the compaction request — and once an attempt is **committed** into AgentHub's history, resending that input on a retry (or after giving up) hands strict providers duplicate `tool_result`s to reject. The rule is now a clean binary on one fact: if any compaction attempt committed, the carry is consumed — retries resend only the pairing repairs plus the prompt, and after abandonment the next request continues from committed state without re-sending the turn's outputs; if nothing committed, the previous carry-over is restored verbatim (object-identical). An abort inside the compaction window merges into the pending state instead of overwriting it, and replay reconstructs the same absorbed state after a restart, so live and resumed sessions agree.
## read_file's secret guard closes case and symlink bypasses
diff --git a/changelog/0.1.3/2026-07-26-core.zh.md b/changelog/0.1.3/2026-07-26-core.zh.md
new file mode 100644
index 00000000..6f2efae1
--- /dev/null
+++ b/changelog/0.1.3/2026-07-26-core.zh.md
@@ -0,0 +1,23 @@
+# Core:恢复时忽略旧的思考等级;空压缩摘要不再算作成功;read_file 的密钥守卫加固
+
+- **Date:** 2026-07-26
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#70](https://github.com/Prism-Shadow/penguin-harness/pull/70), [#72](https://github.com/Prism-Shadow/penguin-harness/pull/72), [#84](https://github.com/Prism-Shadow/penguin-harness/pull/84), [#87](https://github.com/Prism-Shadow/penguin-harness/pull/87)
+- **Issue:** [#83](https://github.com/Prism-Shadow/penguin-harness/issues/83), [#85](https://github.com/Prism-Shadow/penguin-harness/issues/85)
+
+[English](2026-07-26-core.md)
+
+自思考等级变为逐轮运行参数(0.1.2)以来,`session_meta` 就不再记录它——但恢复流程仍会尊重旧 Trace 的 meta 中出现的 `thinking_level` 字段,并把它还原为被恢复 Session 的默认值。这项兼容读取已被移除:恢复现在一律从 Agent 的当前配置取等级,旧字段被直接忽略。唯一的行为后果是:被恢复的旧子 Agent 会话不再保留它在派生时继承的等级——它像其他一切一样跟随执行恢复的 Agent 的配置。实时运行中的派生继承、逐轮拾取器,以及 meta 记录的内容,均未改变。
+
+## 空的压缩摘要是失败,而不是结果
+
+一个只返回了思考内容或一次工具调用、没有文本的压缩请求,此前会被判定为 `completed`,于是包出一个空的 `<context_summary>` 并丢弃旧上下文:这正是压缩绝不能做的事,因为 Agent 会因此丢失任务状态(issue [#83](https://github.com/Prism-Shadow/penguin-harness/issues/83))。三处修复堵住了它。压缩请求保持其配置——包括工具——**与普通请求逐字节一致**(同一个冻结的配置对象,由测试固定):省略或改动工具列表会改变请求前缀,从而恰好在上下文最大的时刻打爆 Provider 的提示词缓存,使压缩成本翻数十倍。凡是 `completed` 响应但其抽取出的摘要 trim 后为空、或以工具调用作答的,一律拒绝:任何已提交的工具调用会先被**修复**——为每次调用合成一条失败的 `tool_call_output`,采用普通工具失败的形态,写入 Trace 并前置到重发的输入中,使 Provider 侧的配对保持完整(而如果压缩被放弃,这些修复会转入结转内容,因此实时的 LLM 对象绝不会留下悬空的 `tool_use`)——然后请求重试,并配有独立于共享传输重连预算的 5 次拒绝上限;额度耗尽后,压缩以 `compaction_end(failed)` 失败,原上下文与 Trace 文件均予保留。而恢复流程也不再从一个无文本的压缩闭合中编造出空摘要:这样的闭合视为无效,原上下文照常回放,因此已被该缺陷咬到的 Trace 也能找回其任务状态。
+
+## 任务中途的压缩不再重发 AgentHub 已有的内容
+
+空摘要的修复留下了一个有界的隐患(issue [#85](https://github.com/Prism-Shadow/penguin-harness/issues/85)):当自动压缩在任务中途触发时,待处理的本轮输入会搭上压缩请求——而一旦某次尝试被**提交**进 AgentHub 的历史,在重试时(或放弃之后)重发该输入,就会把重复的 `tool_result` 递给严格的 Provider 并被拒绝。现在的规则是基于一个事实的干净二分:只要有任何一次压缩尝试已提交,结转内容即被消耗——重试只重发配对修复加提示词,放弃之后下一个请求从已提交状态继续,不再重发本轮的输出;如果什么都没提交,则逐字(对象层面同一)还原此前的结转内容。压缩窗口内的中止会并入待处理状态而不是覆盖它,重放在重启后也会重建出同样的吸收状态,因此实时会话与被恢复的会话结论一致。
+
+## read_file 的密钥守卫堵住大小写与符号链接绕过
+
+内置的 `read_file` 按 basename 拒绝密钥存储(`.vault.toml`、`.project_config.toml`)——这是它自己的守卫,因为 `permission: "r"` 使该工具在只读审批下自动获批,而 shell 工具仍受读写门禁约束。此前那次检查是对词法 basename 做大小写敏感比较,留下两条绕过路径:大小写不敏感的文件系统(macOS/Windows)上 `.VAULT.TOML` 就能打开 vault;而符号链接自身的名字并不能说明它解引用到什么。该守卫现在会转为小写,并同时检查词法 basename 与 realpath 目标的 basename。在大小写敏感的文件系统上,这种小写比较可能拒绝一个大小写不同、实际并非密钥存储的同名兄弟文件——对一个守卫而言,这个误报是正确的取舍。
diff --git a/changelog/0.1.3/2026-07-26-goal-mode.md b/changelog/0.1.3/2026-07-26-goal-mode.md
index d3155b30..30945c31 100644
--- a/changelog/0.1.3/2026-07-26-goal-mode.md
+++ b/changelog/0.1.3/2026-07-26-goal-mode.md
@@ -1,5 +1,12 @@
# Goal mode: loop Tasks on one Session until an objective is done
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `docs`
+- **PR:** [#66](https://github.com/Prism-Shadow/penguin-harness/pull/66)
+
+[中文版](2026-07-26-goal-mode.zh.md)
+
A normal Task ends when the model stops calling tools and replies — fine for a request, wrong for an objective. Goal mode inverts the contract: the user states an objective and the system keeps driving Tasks on the same Session, re-injecting the objective every round, until the goal reaches a terminal state. Going quiet no longer ends the work; the model has to claim completion through a protocol, and everything else loops.
## One API: `session.run(input, { goal })`
diff --git a/changelog/0.1.3/2026-07-26-goal-mode.zh.md b/changelog/0.1.3/2026-07-26-goal-mode.zh.md
new file mode 100644
index 00000000..96672a4b
--- /dev/null
+++ b/changelog/0.1.3/2026-07-26-goal-mode.zh.md
@@ -0,0 +1,35 @@
+# 目标模式:在一个 Session 上循环执行 Task,直到目标达成
+
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `docs`
+- **PR:** [#66](https://github.com/Prism-Shadow/penguin-harness/pull/66)
+
+[English](2026-07-26-goal-mode.md)
+
+普通 Task 在模型停止调用工具并作答时结束——对一次请求而言没问题,对一个目标而言则是错的。目标模式把这个约定反了过来:用户陈述一个目标,系统就在同一个 Session 上持续驱动 Task,每一轮都重新注入该目标,直到目标进入终止状态。沉默不再意味着工作结束;模型必须通过一套协议宣告完成,其余情况一律继续循环。
+
+## 一个 API:`session.run(input, { goal })`
+
+目标模式是 SDK 那一个入口的一个选项,而不是独立的驱动器:`session.run(input, { goal: { budget } })` 把输入的文本当作目标,在该调用内部循环若干轮,并以恰好一条携带结果的 `goal_finished` 事件消息结束消息流(同时写入 Trace)。宿主消费的仍是它们本就在消费的那条消息流;轮次边界即被注入的轮次输入,可通过 `isGoalRoundInput` 识别。
+
+## 协议
+
+该循环创建 `scratchpad/<session_id>/GOAL.yaml`(与 PLAN.md 约定同级)——两个字段,由系统在创建时恰好写入一次:`objective`(其权威取值存在循环的内存中,并在每一轮的区块中重新陈述)与 `status`,即模型回传给循环的信箱(只能写 `complete` 或 `blocked`,每轮之后读取)。系统侧的结束方式只体现为 `goal_finished` 的结果以及服务端状态;该文件始终保留模型自己最后一次写入的内容——那正是一个被打断的目标所需要的恢复点。读取是宽松的:文件缺失、YAML 损坏,或状态不在协议内,都归一化为 `blocked`,使循环停止而不是空转。
+
+每一轮的用户消息是一个 `[goal]` 协议区块(与 `[use_skills]` / `[user_steering]` 同属方括号标记族),其后跟一段普通正文:第 1 轮逐字携带调用方的消息——包括 Skill 调用区块在内——之后各轮则重新注入目标(即第 1 轮文本剥去开头的标记区块;GOAL.yaml 中记录的是同一套推导结果)。该区块内嵌 GOAL.yaml 的内容(由创建该文件时所用的同一批取值组装而成),因此模型看到的正是它被要求编辑的那个文件,并在单独一行上携带当前的预算数字。由于内嵌的 `objective` 属于用户数据,`[goal]` 的闭合标签采用行锚定匹配:YAML 序列化会让字符串内容远离第 0 列(块标量有缩进,单行取值处于行中),因此一个精心构造、包含 `[/goal]` 的目标无法在任何解析它的地方(前端折叠、标题剥离)提前终止该区块。
+
+该区块还携带工作规则:一份完成度自检(提示词层面——系统不校验被宣称的 `complete`)、不得把目标缩水为更容易的子集、进度须记入 PLAN.md 以便在压缩中存活,以及一条阻塞规则——同一个阻塞条件必须连续三轮持续存在,模型才可以宣告 `blocked`,因此一次瞬时障碍不会终结目标。以中止收场的一轮——或被引擎在逐 Task 的 `max_turns` 上限处截断的一轮——会停止整个循环且不再重新触发,磁盘上的目标保持 `active`,成为一个干净的恢复点;另有一道 100 轮的硬性兜底,用于约束那些模型压根不写该文件的目标。
+
+## Token 预算
+
+计量是增量式的——非缓存输入加输出(`request.total − cache_read`),在每一次请求上累加,包括 `run_subagent` 的子会话;这是一份花费估算而非账单(缓存读取的成本只是非缓存输入的一小部分,未计入)。预算(可选;`-1` 表示无限,即默认值)在轮次之间检查;额度耗尽会触发最后一轮收尾(做总结、列出剩余工作、不做客套的 `complete`),然后系统以 `budget_limited` 结束该目标。
+
+## 各接触面
+
+- **CLI 聊天**:`/goal[:<budget>] <objective>`(支持 `500k` / `2m` 后缀);Ctrl-C 中止整个循环,逐轮的统计行维持正常的聊天节奏。
+- **CLI run**:`--goal [budget]` 把 `-m` 变为目标;只有目标真正完成才以 0 退出。
+- **Server**:`POST /api/sessions/:id/tasks` 接受 `goal: { budget }`(同一请求上的 `thinkingLevel` 会搭乘每一轮);整个目标作为一段 `running` 跨度运行(既有的中止端点与定时任务排队因此自然表现正确),进度落入新的 `goal_state` 表,并以 `goal_started` / `goal_round` / `goal_finished` SSE 事件流出,`GET /api/sessions/:id/goal` 可还原最近一次运行。
+- **Web App**:输入区新增一个「+」扩展菜单(面向输入附加功能的通用入口,目标模式是它的第一项,也可经斜杠菜单的 `/goal` 到达),启用后出现带行内预算输入框的目标芯片;在输入区选中的 Skill 会像普通发送一样,以 `[use_skills]` 区块前置到第 1 轮消息上;每一轮都渲染为普通的用户气泡,下方带一行「Goal · 第 N 轮」的说明,输入区上方另有一条实时横幅跟踪轮次、Token 与终止状态。
+
+文档:新增「目标模式」指南页(中英)。
diff --git a/changelog/0.1.3/2026-07-26-web-app.md b/changelog/0.1.3/2026-07-26-web-app.md
index ce49b327..aa6e18df 100644
--- a/changelog/0.1.3/2026-07-26-web-app.md
+++ b/changelog/0.1.3/2026-07-26-web-app.md
@@ -1,5 +1,12 @@
# Web App: subagent panel with a live call graph, streaming that survives refresh, live header stats, one-line mobile rows, Trace import/export, and in-app version/update
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#73](https://github.com/Prism-Shadow/penguin-harness/pull/73), [#74](https://github.com/Prism-Shadow/penguin-harness/pull/74), [#75](https://github.com/Prism-Shadow/penguin-harness/pull/75), [#76](https://github.com/Prism-Shadow/penguin-harness/pull/76), [#77](https://github.com/Prism-Shadow/penguin-harness/pull/77), [#78](https://github.com/Prism-Shadow/penguin-harness/pull/78)
+
+[中文版](2026-07-26-web-app.zh.md)
+
Six chat-and-observability changes land together: subagent conversations move out of the message flow into a dockable panel with a call graph, an in-progress reply now survives a page refresh, the header statistics tick live, running-state rows stop growing on phones, Trace files can be moved across deployments, and the app can tell you what version it runs and update itself.
## Subagent conversations move to a side panel with a call graph
diff --git a/changelog/0.1.3/2026-07-26-web-app.zh.md b/changelog/0.1.3/2026-07-26-web-app.zh.md
new file mode 100644
index 00000000..a84c2ea7
--- /dev/null
+++ b/changelog/0.1.3/2026-07-26-web-app.zh.md
@@ -0,0 +1,34 @@
+# Web App:带实时调用图的子 Agent 面板、刷新不丢的流式输出、实时头部统计、移动端单行运行状态、Trace 导入导出,以及应用内版本与更新
+
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#73](https://github.com/Prism-Shadow/penguin-harness/pull/73), [#74](https://github.com/Prism-Shadow/penguin-harness/pull/74), [#75](https://github.com/Prism-Shadow/penguin-harness/pull/75), [#76](https://github.com/Prism-Shadow/penguin-harness/pull/76), [#77](https://github.com/Prism-Shadow/penguin-harness/pull/77), [#78](https://github.com/Prism-Shadow/penguin-harness/pull/78)
+
+[English](2026-07-26-web-app.md)
+
+六项围绕聊天与可观测性的改动一同落地:子 Agent 对话从消息流中移出、进入一个带调用图的可停靠面板;进行中的回复现在能在页面刷新后存活;头部统计实时跳动;运行状态行在手机上不再撑高;Trace 文件可以跨部署搬运;应用能说出自己的版本并自我更新。
+
+## 子 Agent 对话移入带调用图的侧边面板
+
+一次 `run_subagent` 调用此前会把子会话的整段对话内联进父级的消息流,卡片套卡片。子对话现在住在一个专门的 **Agent 面板**中,它像 Workspace 文件面板那样停靠在右侧(工具栏开关、可拖拽调宽并记忆宽度、窄视口下变为底部抽屉,且两个停靠面板互斥,绝不会一起挤压聊天列)。在消息流中,每个子会话只留下一行与其他折叠流行同款的整宽条——Agent 头像、解析出的 Agent 名称(取自子会话自己的 `session_meta`,依次回退到派生参数、会话列表,最后是短 id)、运行时的加载指示,以及只要其子树中任何位置有待审批就亮起的琥珀色圆点;该圆点是可访问名称的一部分,工具栏按钮也带同样的角标,因此嵌套的审批在面板关闭时仍可被发现。面板顶部展示一张**调用图**:每个参与的 Agent 一个节点(头像 + 名称 + 运行状态点 + 已用时间——运行中是跳动的墙钟,结束后由消息时间戳冻结,因此刷新后的页面显示的时长与实时页面一致;主会话为根节点),边表示谁派生了谁,重复轮询到的子节点会去重。点击节点会切换下方展示的对话——由与主流相同的机制渲染,因此嵌套的工具卡片会实时流式输出,审批按钮也能在面板内直接工作。该图默认展示最近一次 Task,并在每次切换 Session 时重置回它;点击更早一轮中的某一行,则会钉住那一轮的 Task 并展示其历史派生树。打开任一停靠面板(任何入口,包括工具栏)都会关闭另一个,因此两者绝不会一起挤占聊天列。面板的可见性是**按 Task 作用域**的:每个新 Task 开始时它都是关闭的(上一个无关 Task 遗留的打开状态绝不会滞留),当该 Task 首次派生子 Agent 时它会在本 Task 内自动打开一次(仅限停靠布局),而手动的打开或关闭在该 Task 剩余时间内始终优先;进入会话时同样从关闭开始——这条逐 Task 规则是该面板刻意偏离文件面板持久化行为的唯一之处,而目标模式的一次迭代算作一个 Task 边界。子对话现在也终于能实时展示它自己的用户侧:子 Agent 运行器会把派生提示词(以及后续输入)经带来源标记的流转发出来,因此面板无论实时还是刷新之后,都以同样方式渲染子会话的用户消息。
+
+## 进行中的回复能在刷新与重连后存活
+
+在 Task 中途刷新此前会丢掉正在流式输出的一切——写了一半的回复、思考内容,或一次长工具调用的部分输出——直到该消息完成为止,因为历史是从 Trace 读取的(只含完整消息),而新建的 SSE 连接不会重放任何内容。服务端现在为每个运行中的会话保留一条**实时尾巴**:所有未闭合片段的聚合,以来源链与片段标识为键,在消息发布的同一个 tick 内更新,并设有上限,使失控的输出只保留其尾部。消息端点以 `live: { cursor, fragments }` 返回它,且在开始读取 trace 之前原子地捕获。客户端把这些片段作为合成的 `partial_* start` 事件播种在游标位置,丢弃位于游标处及之前的已缓冲部分内容(它们的内容已经包含在片段里),并让完整消息继续经既有的重叠去重流动——刻意从不按游标丢弃完整消息,因为一次发布可能先于它的 trace 追加真正落盘。效果是:在刷新、关闭再打开或一次重新同步之后,已经流出的前缀立刻回来并继续增长,主会话与子 Agent 皆然。端到端测试会在命令中途与文本中途重新加载,并断言最终的对话记录与从未重新加载过的一次运行逐字节一致。
+
+## 头部统计实时更新
+
+聊天头部的三个芯片(含子 Agent 的会话 Token、成本、已用时间)此前实际上只在 Task 结束时才刷新。已用时间现在在 Task 运行期间每秒跳动一次(已结算的跨 Task 总量,加上当前运行 Task 的墙钟,由测试所固定的同一个纯函数助手折叠在一起,因此运行中的增量绝不会在 Task 边界处被重复计入)。成本显示服务端最近记录的取值,加上一份由当前运行 Task 的用量档位按当前模型定价换算出的实时估算——跑在其他模型上的子 Agent 会让 Task 中途的估算略有偏差,空闲时的重新拉取会对齐到已记录的取值;在没有定价时则跳过实时增量,`*` 这个未计价标记仍保持其含义。Token 本就按每个完成的请求推进,未做改动。在全新会话上,成本芯片会一直隐藏到第一笔用量落地,而不是在 Task 刚开始的瞬间闪一个格式化的零。
+
+## 运行状态行在移动端保持单行
+
+在 640px 以下,运行状态相关的界面不再折行或撑高:回复的统计页脚——它固定的高度使折行后的芯片会盖住下方内容,这是其中唯一一个货真价实的缺陷——保持单行;而两处消息页脚(回复与用户气泡)现在在**手机上始终可见**:它们的悬停显示在触摸下从未触发过,这个缺口早于本次 PR 就存在。为了在 390px 下不出现滚动,TPS 芯片在 `sm` 以下隐藏,数值类芯片在那里改用紧凑变体(金额保留两位有效数字,因此非零成本绝不会显示为 `$0.00`;10 秒以上取整秒);所有内容仍置于一个隐藏滚动条的滚动行中作为兜底,复制按钮固定在末端。头部以一个脉动圆点取代「运行中」文字,并使用纯图标的 Workspace 按钮;工作分组隐藏步骤计数,并把「等待审批」药丸收缩为一个带标签的琥珀色圆点。在工具卡片上,文字形式的决策指示**在所有断点下都已移除**——状态图标独自以其可访问名称承载「已批准 · 自动/手动」或「已拒绝 · …」(恰好一个事实来源,而且被拒绝的卡片不会再同时显示「已中止」)。操作按钮遵循相反的规则:允许/拒绝在**任何断点下都保持文字**——指示器可以是图标,按钮必须是文字——而当某次调用在手机上等待审批时,它的完整命令会折行完整显示(这是单行规则唯一被认可的例外:你要读得到你所批准的东西),决策之后再收起。桌面端渲染逐像素未变。
+
+## Trace 文件可以导出与导入
+
+Traces 页面现在能把一条运行轨迹跨部署搬运:任何成员都可以逐字下载 Trace 文件(`application/x-ndjson` 附件),而 Project 所有者可以通过 Agent 行上的上传按钮,把一个文件导入到任意 Agent 之下(14MB 上限,与 Agent 快照导入一致)。导入的文件必须是合法的 Trace JSONL,且首条记录是一个带文件名安全 `session_id` 的 `session_meta`——在服务层构建路径的那一处重新校验。若目标 Agent 下已存在同名 session id,则直接拒绝(409):一个会话的第 _N_ 号文件意味着「上下文分段 _N_」,因此把一个无关文件塞进那里,会把它拼接进既有的对话记录、悄然成为恢复点,并与实时会话的写入者竞争。因此一次被接受的导入总是某个新会话的 001 号文件,以 `wx` 写入,使并发导入也无法互相覆盖,并按其首条记录的本地日期归档(与 Trace 写入者的约定一致);超大的选择会在任何上传发生之前于客户端被拒绝。目录树会立即刷新并选中导入的文件;被导入的会话与其他任何经目录发现的(「非托管」)会话一样可浏览。
+
+## 应用知道自己的版本,并能自我更新
+
+侧边栏用户菜单在「修改密码」正下方新增一行**检查更新**,其右侧行内显示运行中的版本(`v0.1.3`,不带产品名前缀),当检查发现新版本时带一个上标的「有新版本」角标;该行的 tooltip 携带一句可读的 `最近更新 7 月 26 日`(`Last updated Jul 26`),它**完全离线**地取自随发布打戳的 `BUILD_DATE`——今后每个发布都会在 tarball 与 npm 两个任务中于发布时存下它的日期,为此绝不发起任何网络查询。点击该行会强制一次新的检查(`?force=1` 会穿透服务端的 TTL 缓存——这是用户发起且低频的——其结果会被重新缓存),而「已是最新」与失败情形均经共享的 toast 呈现。新会话草稿页在其副标题下方带有同样一行安静的文字,角标即为发布说明链接。打开该菜单同样会触发一次更新检查,这是服务端唯一一次、也是第一次对外网络调用:以与 `penguin update` 相同的请求形态拉取最新的 GitHub Release,在服务端缓存(成功缓存一小时,失败缓存十分钟),严格软失败——查询失败只报告「未知更新」,绝不报错——而 `PENGUIN_UPDATE_CHECK=off` 可将其完全禁用。当存在更新的发布时,头像会亮起一个圆点,菜单中出现发布说明链接;管理员另外获得**立即更新**,它会重新运行 CLI 自己的更新器(`penguin server|web` 把其入口导出为 `PENGUIN_CLI_ENTRY`;该端点以固定的参数列表 spawn `node <entry> update --yes`——请求中的任何内容都不会进入该命令)。CLI 的安装方式检测与各种拒绝逻辑逐字沿用,而一次成功的运行只会说出那件仍然需要人来做的事:重启服务以加载新代码。
diff --git a/changelog/0.1.3/2026-07-26-windows-support.md b/changelog/0.1.3/2026-07-26-windows-support.md
index dcd0ec26..c98d1e8c 100644
--- a/changelog/0.1.3/2026-07-26-windows-support.md
+++ b/changelog/0.1.3/2026-07-26-windows-support.md
@@ -1,5 +1,12 @@
# Windows: a real install story — shell selection, install.ps1, and a win-x64 release package
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `core`, `cli`, `tooling`, `ci`
+- **PR:** [#79](https://github.com/Prism-Shadow/penguin-harness/pull/79)
+
+[中文版](2026-07-26-windows-support.zh.md)
+
The audit found the dependency graph already clean for Windows (`node:sqlite`, pure-JS `tar`, no native modules) and `npm install -g @prismshadow/penguin-cli` already yields a working `penguin` — but every `exec_command` died with `spawn bash ENOENT`, because the command session hardcoded `spawn("bash", ["-lc", cmd])`. That one line was the product-level blocker; the rest was packaging and honesty.
## The agent actually works: shell selection
diff --git a/changelog/0.1.3/2026-07-26-windows-support.zh.md b/changelog/0.1.3/2026-07-26-windows-support.zh.md
new file mode 100644
index 00000000..f3d4d5fc
--- /dev/null
+++ b/changelog/0.1.3/2026-07-26-windows-support.zh.md
@@ -0,0 +1,26 @@
+# Windows:一套像样的安装叙事——shell 选择、install.ps1,以及 win-x64 发布包
+
+- **Date:** 2026-07-26
+- **Type:** feature
+- **Scope:** `core`, `cli`, `tooling`, `ci`
+- **PR:** [#79](https://github.com/Prism-Shadow/penguin-harness/pull/79)
+
+[English](2026-07-26-windows-support.md)
+
+审计发现依赖图对 Windows 本就是干净的(`node:sqlite`、纯 JS 的 `tar`、没有原生模块),`npm install -g @prismshadow/penguin-cli` 也早已能得到一个可用的 `penguin`——但每一次 `exec_command` 都会以 `spawn bash ENOENT` 死掉,因为命令会话把 `spawn("bash", ["-lc", cmd])` 写死了。那一行就是产品层面的拦路虎;其余部分是打包与诚实。
+
+## Agent 真的能跑了:shell 选择
+
+命令会话现在每个进程解析一次自己的 shell:POSIX 逐位保持 `bash -lc`;在 Windows 上,解析器先在 PATH 中探测 Git-Bash(与面向 POSIX 的 Skill 生态兼容性最好;解析到 Windows 系统目录下的 `bash` 会被拒绝——那是 WSL 启动器,完全是另一套文件系统视图),然后是 `pwsh`,再是 `powershell`(`-NoLogo -NoProfile -Command`)。`PENGUIN_SHELL` 在任何平台都可覆盖,参数形态依 basename 推断。所选的 shell 会通过会话环境中新增的 `Shell:` 行告知模型,使它按自己实际拥有的语法写命令。那些 `system_config.yaml` 早于 `{{SHELL}}` 占位符的已有 Agent,通过一个窄口径的组装期回退获得同一行(仅 win32、仅在内存中、不做迁移;见向后兼容条目)——没有它,这些 Agent 的模型会永远把 bash 语法丢给 PowerShell。终止行为随平台而定:POSIX 保留进程组信号逐级升级;Windows 经 `taskkill /pid <pid> /t /f` 杀掉整棵进程树(无法向被管道连接的子进程投递控制台信号,因此 `input_command` 的 Ctrl-C 退化为硬杀——这一点如实记录,而不是假装不存在)。
+
+## 新 CI 抓到的一个沙箱缺口
+
+Windows 没有 `O_NOFOLLOW`,而工作区上传路径中的 `(O_NOFOLLOW ?? 0)` 在那里静默抹掉了对末段符号链接的守卫——这是一条切实可行的「预置一个符号链接,再通过上传覆盖 Workspace 之外的文件」的逃逸路径。win32 上的上传现在经 `lstat` 拒绝末段符号链接(对竞态而言是尽力而为;POSIX 仍保有打开时刻的原子性保证)。
+
+## 安装与发布
+
+仓库根目录的 `install.ps1` 与 `install.sh` 对应:提供 `PENGUIN_VERSION` / `PENGUIN_INSTALL_DIR` 旋钮、SHA256 校验、一次先改名后删除的分级替换(永不触碰 `data\`)、生成 `penguin.cmd` / `penguin.ps1` 两个 shim(均为 CRLF),以及一次用户 `Path` 更新——它以原始形式读写注册表值并保留其类型:朴素的 `[Environment]` API 会在读取时展开 `REG_EXPAND_SZ` 并以 `REG_SZ` 写回,从而不可逆地把用户形如 `%USERPROFILE%` 的条目固化成绝对路径。稳定 URL `https://penguin.ooo/install.ps1` 是一个转发脚本,会在执行前完整下载——被截断的流不可能装一半。发布工作流新增 `penguin-win32-x64.zip`(内置官方 Windows Node,`node.exe` 位于压缩包根目录,启动器为 CRLF)及其校验和,并与 `install.sh` 一同上传 `install.ps1`。升级方式是重新运行安装脚本;原地的 `penguin update` 在 Windows 上仍会拒绝,文档也如实说明。一行命令是 `irm https://penguin.ooo/install.ps1 | iex`,另以 `npm install -g`(Node ≥ 24)作为免脚本的替代方案;落地页展示两种安装方式,README 路线图勾掉了 Windows 支持。
+
+## 让它保持为真:CI 与长尾
+
+一个 `ci-windows` 任务(windows-latest,完整的构建/类型检查/测试,外加一道 PowerShell 语法解析门禁)现在与必需的 Ubuntu 任务并行运行;把它跑绿的过程暴露出四个货真价实的 Windows 问题(清理时的文件锁 `EBUSY`、一个错误的超时测试前提、上面那个符号链接缺口、对路径分隔符想当然的测试断言),均已修复。`.gitattributes` 固定 LF(`.ps1` 为 CRLF),使 Windows 检出不会挂在 Prettier 门禁上或损坏 shell 脚本。跨平台的环境变量处理以一个小型 runner 脚本取代了仅适用于 POSIX 的 `VAR=x` npm 脚本前缀,`penguin config lang` 在 win32 上干净地拒绝(并指向 `setx PENGUIN_LANG`),而安装脚本已用真实 PowerShell 针对一个本地伪造的 Release 做过功能演练:全新安装、保留 `data\` 的升级、校验和不匹配时中止,以及完整的 `irm | iex` 链路。已知并记录在案的限制:config/vault 文件没有 0600 语义(适用的是 NTFS ACL)、仅提供 x64 包(ARM64 经模拟运行)、`.ps1` shim 的执行策略说明、没有由 SIGTERM 驱动的优雅关停,以及——现已写入安装与工具文档、而不只是留在源码里——Windows 上 `input_command` 中的 Ctrl-C 会杀掉整棵命令会话树,而不是中断前台命令。让 Windows CI 保持诚实,也意味着给 win32 测试运行更长的 vitest 超时,并对一个 spawn 时序断言做平台门控;它捕获的每一次抖动都是真实的时序敏感性,而不是产品缺陷。
diff --git a/changelog/0.1.3/2026-07-27-backward-compatibility.md b/changelog/0.1.3/2026-07-27-backward-compatibility.md
index 2f6b0e65..711d421c 100644
--- a/changelog/0.1.3/2026-07-27-backward-compatibility.md
+++ b/changelog/0.1.3/2026-07-27-backward-compatibility.md
@@ -1,5 +1,12 @@
# Backward compatibility in this batch
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `core`
+- **PR:** [#72](https://github.com/Prism-Shadow/penguin-harness/pull/72), [#79](https://github.com/Prism-Shadow/penguin-harness/pull/79)
+
+[中文版](2026-07-27-backward-compatibility.zh.md)
+
Per the repo rule, every compatibility decision of the batch is recorded here once; the feature entries reference this file instead of re-telling it.
## Legacy `thinking_level` in old Traces is ignored on resume (owner-directed)
diff --git a/changelog/0.1.3/2026-07-27-backward-compatibility.zh.md b/changelog/0.1.3/2026-07-27-backward-compatibility.zh.md
new file mode 100644
index 00000000..46d203a4
--- /dev/null
+++ b/changelog/0.1.3/2026-07-27-backward-compatibility.zh.md
@@ -0,0 +1,22 @@
+# 本批次的向后兼容
+
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `core`
+- **PR:** [#72](https://github.com/Prism-Shadow/penguin-harness/pull/72), [#79](https://github.com/Prism-Shadow/penguin-harness/pull/79)
+
+[English](2026-07-27-backward-compatibility.md)
+
+按仓库规则,本批次的每一项兼容决策都在此记录一次;功能条目引用本文件,而不再复述。
+
+## 旧 Trace 中的 `thinking_level` 在恢复时被忽略(由所有者拍板)
+
+旧 Trace 在其 `session_meta` 中记录了 `thinking_level`;自 0.1.2 起该字段不再写入,而恢复流程此前在它存在时仍会继续尊重它。所有者选择了明确的不兼容而非继续支持:恢复现在完全忽略该字段,一律读取 Agent 的当前配置。**被容忍的旧形态:** 该字段可以出现在旧的 meta JSON 中并被无错跳过(Trace 本身仍完全可读)。**生效范围:** 仅 `resumeSession`;实时行为与逐轮拾取器从未受影响。**用户需要做的:** 无——唯一可见的后果是,被恢复的旧子 Agent 会话会跟随执行恢复的 Agent 所配置的等级,而不是它在派生时继承的那个。**移除:** 无需移除;除了那次容忍性的跳过之外,没有保留任何兼容代码。
+
+## 没有 `{{SHELL}}` 的已有 Agent 通过组装期回退获得 Shell 行
+
+`Shell:` 这一环境行经由新的 `{{SHELL}}` 占位符随默认 `system_prompt` 模板发布——但 `system_config.yaml` 是在 Agent 创建时固化的,且从不自动升级,因此本次发布之前创建的每个 Agent 都没有该占位符,而在 Windows 上,它的模型将永远无从得知 `exec_command` 说的是哪种 shell。这里没有采用磁盘迁移,而是在提示词组装时施加一个窄口径回退:**仅在 win32 上**,当模板中不含 `{{SHELL}}` 且输出中尚无 `Shell:` 行时,在内存中把该行追加到 Environment 区块。**被容忍的旧形态:** 早于 `{{SHELL}}` 的模板(以及自行硬编码了 `Shell:` 行的模板,后者优先)。**生效范围:** Windows 上的提示词组装;POSIX 输出逐字节一致,不重写任何文件。**用户需要做的:** 无;把某个 Agent 的配置恢复为默认值也会带上该占位符,从而使该 Agent 不再需要这个回退。**移除:** 当不再预期野外还存在早于 `{{SHELL}}` 的 Agent 配置时即可删除该回退(由回退处的注释跟踪)。
+
+## 增量式协议字段无需处理
+
+`StopReason` 枚举的第六个取值 `auth`(旧读取方会像 `failed` 一样落入兜底;旧 Trace 中绝不会出现它)、`request_end` 的 `message` 与 `retry_in_ms`、`credentials_updated` 服务端事件,以及模型响应上的 `updatedAt`,全都是增量式的:旧 Trace 只是没有它们,旧读取方会忽略它们,也没有任何东西会对旧数据做出不同解读。在此记录只是为了说明已做过检查;没有需要退役的兼容行为。
diff --git a/changelog/0.1.3/2026-07-27-llm-request-errors.md b/changelog/0.1.3/2026-07-27-llm-request-errors.md
index 5eac9128..f703359a 100644
--- a/changelog/0.1.3/2026-07-27-llm-request-errors.md
+++ b/changelog/0.1.3/2026-07-27-llm-request-errors.md
@@ -1,5 +1,12 @@
# Core and Web App: transport and quota errors reconnect with a visible countdown, auth failures lock the Session recoverably
+- **Date:** 2026-07-27
+- **Type:** fix
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#82](https://github.com/Prism-Shadow/penguin-harness/pull/82)
+
+[中文版](2026-07-27-llm-request-errors.zh.md)
+
Two field failures used to abort the turn outright with `[Aborted]: llm request error: …` — a dropped connection (`terminated: other side closed (UND_ERR_SOCKET)`) and a gateway quota rejection (`403 … no active subscription (insufficient_user_quota)`). Neither is a verdict on the Session: a socket drop is just the network, and a quota error heals when the balance tops up. Both now go through the engine's in-run reconnect (the `[turn_retried]` flow that re-sends the turn's input with the already-produced content attached).
The classifier got honest about error shapes: retryability probes the `cause` chain (Node's `fetch` wraps the real transport failure — `UND_ERR_SOCKET` and friends live on `cause`) and the parsed provider body in its OpenAI and Anthropic SDK nestings; a bare `terminated` only counts alongside transport vocabulary, so "terminated by content filter" copy does not retry. The quota carve-out stays tight — 402/403 with `insufficient_user_quota` / `insufficient_quota` codes or a message naming quota/subscription — and **authentication signals are checked first**: a definitive auth code can never be swallowed by the quota keyword heuristic into the retry path.
diff --git a/changelog/0.1.3/2026-07-27-llm-request-errors.zh.md b/changelog/0.1.3/2026-07-27-llm-request-errors.zh.md
new file mode 100644
index 00000000..12e6efd7
--- /dev/null
+++ b/changelog/0.1.3/2026-07-27-llm-request-errors.zh.md
@@ -0,0 +1,16 @@
+# Core 与 Web App:传输与配额错误带可见倒计时重连,认证失败可恢复地锁定 Session
+
+- **Date:** 2026-07-27
+- **Type:** fix
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#82](https://github.com/Prism-Shadow/penguin-harness/pull/82)
+
+[English](2026-07-27-llm-request-errors.md)
+
+有两类现场故障此前会直接以 `[Aborted]: llm request error: …` 中止该轮——连接掉线(`terminated: other side closed (UND_ERR_SOCKET)`)与网关配额拒绝(`403 … no active subscription (insufficient_user_quota)`)。两者都不是对该 Session 的终审判决:套接字掉线只是网络问题,而配额错误在余额充值后就会痊愈。现在两者都走引擎的运行内重连(即 `[turn_retried]` 流程:把该轮输入连同已产出的内容一并重发)。
+
+分类器对错误形态变得诚实了:可重试性会探查 `cause` 链(Node 的 `fetch` 会包装真正的传输失败——`UND_ERR_SOCKET` 之类就活在 `cause` 上),以及在 OpenAI 与 Anthropic SDK 各自嵌套层级中解析出的 Provider 响应体;光秃秃的 `terminated` 只有在伴随传输类词汇时才算数,因此「terminated by content filter」这样的文案不会触发重试。配额的特例保持收紧——402/403 且带 `insufficient_user_quota` / `insufficient_quota` 错误码,或消息中点名配额/订阅——而且**认证信号会被优先检查**:确凿的认证错误码绝不会被配额关键词启发式吞进重试路径。
+
+重试遵循同一条共享的指数阶梯,`min(250ms × 2^(n−1), 30s)`,最多 **8 次重连(合计约 62 秒的耐心)**——前两次尝试与此前一样快,因此一次传输抖动仍能在一秒内恢复,而尾部则长到足以让配额窗口真正关闭。压缩请求保留其自己的 3 次上限(约 1.75s):一次失败的压缩本就保留了原上下文并会在下次触发时重试,因此快速失败胜过拖住会话。在较长的等待进行时,重试行会显示**实时倒计时**(整秒,以客户端时钟为准,由 `request_end` 上新增的增量字段 `retry_in_ms` 驱动——它与实际休眠用的是同一个公式计算),并带两个行内控件:**立即重试**(`POST /api/sessions/:id/retry-now`,跳过剩余等待且不消耗一次尝试次数)与**放弃**(即普通的中止)。`request_end` 还携带失败细节(`message`),因此即便随后发生了重试,成本中心的错误面板记录的也是真实原因——那个 403 响应体,而不是笼统的「超时」。
+
+认证错误不重试;它们以 `StopReason` 的第六个取值呈现——结果与流式 `request_end.status` 上的 `auth`(中止事件仍只带 reason,不新增字段)——并且输入区会锁定,但是**可恢复地**锁定。Session 在创建时固定的是模型*引用*,而凭证是在加载时从当前 Project 配置读取的,因此在模型页修好 key 才是真正的解法:模型更新现在会使该 Project 中所有已缓存的运行时失效(此前只有 vault 编辑会这样做——一个修好的 key 可能要等最长 30 分钟的空闲清扫才被启用),并广播一个 `credentials_updated` 事件,使打开着的标签页即刻解锁。跨页面刷新时,这个锁是一道以最近一次主会话 `request_end("auth")` 时间戳为键的时间门——只有当该失败比凭证文件的 mtime 更新时才处于死锁状态——因此修好的 key 保持修好、仍然错误的 key 会在下次失败时重新锁定,而之后任何一次成功的请求也会清除该状态。该提示的主操作会打开模型页,另有「重试」与「新建会话」作为出口,卡住的草稿仍可选中。子 Agent 的认证失败绝不会锁定父级。端到端验证:一次配额 403 会在可见且递减的倒计时中重试(点击「立即重试」可提前触发),而一次 401 会锁定输入区,在经 API 更新 key 的那一刻无需任何点击即自动解锁,并在刷新之后保持解锁。
diff --git a/changelog/0.1.3/2026-07-27-models-and-composer.md b/changelog/0.1.3/2026-07-27-models-and-composer.md
index 6bcfdee4..84a712a1 100644
--- a/changelog/0.1.3/2026-07-27-models-and-composer.md
+++ b/changelog/0.1.3/2026-07-27-models-and-composer.md
@@ -1,5 +1,12 @@
# Models and composer: Kimi K3 on Fireworks; image upload joins the "+" menu, height and version-line fixes
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `web`, `model-catalog`
+- **PR:** [#91](https://github.com/Prism-Shadow/penguin-harness/pull/91)
+
+[中文版](2026-07-27-models-and-composer.zh.md)
+
## Kimi K3 on Fireworks
The preset catalog gains **Kimi K3** on Fireworks (`accounts/fireworks/models/kimi-k3`): a 1M-token context window, vision support, the OpenAI-compatible client against the shared Fireworks base URL, priced $0.30 / $3 / $15 per Mtok (cache read / cache write / output), slotted ahead of Kimi K2.7 Code in the provider's rows.
diff --git a/changelog/0.1.3/2026-07-27-models-and-composer.zh.md b/changelog/0.1.3/2026-07-27-models-and-composer.zh.md
new file mode 100644
index 00000000..ba9b068f
--- /dev/null
+++ b/changelog/0.1.3/2026-07-27-models-and-composer.zh.md
@@ -0,0 +1,24 @@
+# 模型与输入区:Fireworks 上的 Kimi K3;图片上传并入「+」菜单,高度与版本行修复
+
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `web`, `model-catalog`
+- **PR:** [#91](https://github.com/Prism-Shadow/penguin-harness/pull/91)
+
+[English](2026-07-27-models-and-composer.md)
+
+## Fireworks 上的 Kimi K3
+
+预置目录新增 Fireworks 上的 **Kimi K3**(`accounts/fireworks/models/kimi-k3`):1M Token 上下文窗口,支持视觉,使用 OpenAI 兼容客户端对接共享的 Fireworks base URL,价格为每百万 Token $0.30 / $3 / $15(缓存读取 / 缓存写入 / 输出),在该 Provider 的行中排在 Kimi K2.7 Code 之前。
+
+## 图片上传移入输入区的「+」菜单
+
+图片选择器从独立的工具栏按钮中移出,成为「+」扩展菜单的第一项,而该菜单现在领衔整行工具栏——由两个 8×8 槽位变成一个,这个差别决定了手机上那一行会不会滚动。真正的文件输入框仍挂载在菜单之外(菜单在选中时会卸载其条目),由该条目去点击它,且仍处在这次点击的用户激活窗口内,因此对话框能正常打开。在不支持视觉的模型上,该条目仍可使用,其提示会说明图片将改为以草稿区文件路径的形式发送;目标模式下则禁用它,因为目标轮次只支持纯文本。
+
+## 输入框高度跟随已渲染的取值
+
+输入框的自动增高此前是在每次状态更新旁经 `requestAnimationFrame` 调用的,这会与 React 对受控 textarea 的提交产生竞态:当回调抢先时,它量到的是旧的多行内容并把高度重新钉在很高的位置——而此后再没有任何东西会触发重新测量,于是每次发送之后输入框都保持撑开。尺寸计算现在放在一个以文本取值为键的布局副作用中,它在提交之后、绘制之前运行,因此输入框在挂载时(还原的多行草稿)、输入过程中,以及发送后清空时,都能正确定尺寸且不会闪烁。
+
+## 更安静的版本行
+
+新会话草稿页的版本行去掉了产品名前缀——只留 `vX.Y.Z · 最近更新 …`——因为品牌字标就在它正上方,而侧边栏的版本页脚也是不带前缀的。
diff --git a/changelog/0.1.3/2026-07-27-tooling.md b/changelog/0.1.3/2026-07-27-tooling.md
index c72db602..3294e487 100644
--- a/changelog/0.1.3/2026-07-27-tooling.md
+++ b/changelog/0.1.3/2026-07-27-tooling.md
@@ -1,3 +1,10 @@
# Tooling: keeping the Windows CI honest
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `tooling`, `ci`
+- **PR:** [#88](https://github.com/Prism-Shadow/penguin-harness/pull/88), [#90](https://github.com/Prism-Shadow/penguin-harness/pull/90), [#94](https://github.com/Prism-Shadow/penguin-harness/pull/94)
+
+[中文版](2026-07-27-tooling.zh.md)
+
Three follow-ups hardened the new `ci-windows` job against the runners' pathologies, each backed by evidence rather than a blind retry: the server test suite's cleanup now retries `ENOTEMPTY`/`EBUSY` removals and runs under platform-aware deadlines (one failed cleanup used to cascade into "database is not open" across later files); core's win32 test deadline moved to 120s after instrumented runs showed a single cold Git-Bash spawn taking 35.7s on a degraded runner — with an amplification experiment proving latency flows through the engine 1:1, no race — plus a platform-neutral regression test pinning that a slow tool delays a run only by its own latency; and two cross-PR combination breaks caught by main's CI (a test fake missing a newly required member, platform-naive path expectations) were fixed the hour they appeared. And the batch closes with a dependency security sweep: all 23 open Dependabot alerts resolved with real fixes — vitest 3, react-router 8 and hono-node-server 2 majors verified across the full suite, in-range transitive refreshes, and two temporary overrides (`@anthropic-ai/sdk`, esbuild) each carrying an explicit retirement condition — taking `pnpm audit` to zero in both dev and prod scopes.
diff --git a/changelog/0.1.3/2026-07-27-tooling.zh.md b/changelog/0.1.3/2026-07-27-tooling.zh.md
new file mode 100644
index 00000000..4aa596de
--- /dev/null
+++ b/changelog/0.1.3/2026-07-27-tooling.zh.md
@@ -0,0 +1,10 @@
+# 工具链:让 Windows CI 保持诚实
+
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `tooling`, `ci`
+- **PR:** [#88](https://github.com/Prism-Shadow/penguin-harness/pull/88), [#90](https://github.com/Prism-Shadow/penguin-harness/pull/90), [#94](https://github.com/Prism-Shadow/penguin-harness/pull/94)
+
+[English](2026-07-27-tooling.md)
+
+三项后续工作加固了新的 `ci-windows` 任务,使其能应对 runner 的各种病症,且每一项都以证据而非盲目重试为依据:server 测试套件的清理现在会对 `ENOTEMPTY`/`EBUSY` 的删除做重试,并在按平台区分的超时下运行(此前一次清理失败会连锁引发后续多个文件的「database is not open」);core 的 win32 测试超时提高到 120s,依据是带埋点的运行显示在一台降级的 runner 上,一次冷启动的 Git-Bash spawn 耗时 35.7s——并有一次放大实验证明延迟是 1:1 地穿过引擎,不存在竞态——另配一个平台中立的回归测试,固定住「一个慢工具只按其自身延迟拖慢运行」这一性质;还有两处由 main 的 CI 捕获的跨 PR 组合性破坏(一个测试替身缺少了新近必需的成员,以及对路径分隔符想当然的断言),在出现当小时即修复。这一批以一次依赖安全清扫收尾:23 个开放的 Dependabot 告警全部以真实修复解决——vitest 3、react-router 8 与 hono-node-server 2 三个大版本升级均经全套测试验证,范围内的传递依赖刷新,另有两个临时 override(`@anthropic-ai/sdk`、esbuild)各自带有明确的退役条件——使 `pnpm audit` 在 dev 与 prod 两个范围下均归零。
diff --git a/changelog/0.1.3/README.md b/changelog/0.1.3/README.md
deleted file mode 100644
index 98bcc056..00000000
--- a/changelog/0.1.3/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Version 0.1.3
-
-Released on 2026-07-27.
-
-- [2026-07-27] Models and composer: Kimi K3 (1M context, vision) joins the Fireworks preset rows; the composer's image picker moves into the "+" menu (one toolbar slot instead of two, so the phone row stops scrolling), the composer height re-measures off the rendered value so the box no longer stays expanded after a send, and the draft page's version line drops the product-name prefix. ([details](2026-07-27-models-and-composer.md))
-
-- [2026-07-27] Core and Web App: transport drops (`UND_ERR_SOCKET`-class) and provider quota errors (`insufficient_user_quota`) now reconnect on an exponential ladder (up to 8 attempts ≈62s) with a live countdown plus Retry-now/Give-up controls, real failure details reach the Cost center, and authentication failures lock the composer recoverably — updating the key on the Models page invalidates cached runtimes and unlocks open Sessions instantly. ([details](2026-07-27-llm-request-errors.md))
-
-- [2026-07-26] Web App: subagent conversations move into a docked agents panel with a live call graph of the latest Task (compact chips remain in the stream), an in-progress reply now survives refresh/reconnect via a server-kept live tail, the header statistics (Tokens/cost/elapsed) tick live while a Task runs, running-state rows stay one line on mobile with icon-only colored approval buttons, Trace files can be exported and imported from the Traces page, and the sidebar user menu shows the running version with an update reminder and an admin-run self-update. ([details](2026-07-26-web-app.md))
-
-- [2026-07-26] Windows: the command session picks a real shell (Git-Bash → pwsh → powershell, `PENGUIN_SHELL` override, the choice announced to the model), a win32 symlink-upload sandbox gap is closed, and the release ships `install.ps1` (`irm https://penguin.ooo/install.ps1 | iex`) plus a `penguin-win32-x64.zip` package with a bundled Node runtime, verified by a new windows-latest CI job running the full test suite. ([details](2026-07-26-windows-support.md))
-
-- [2026-07-26] Core: resuming a session now ignores a legacy Trace's recorded `thinking_level`; an empty compaction summary is no longer a success — compaction keeps its tools byte-identical (protecting the prompt-cache prefix), rejects empty or tool-calling responses with paired repair outputs and up to 5 retries, and resume replays the original context instead of a fabricated empty summary; a committed mid-task compaction attempt now absorbs the turn's pending input, so retries and follow-ups never re-send what AgentHub already holds; and `read_file`'s secret-store guard now checks basenames case-insensitively and through symlinks, closing two read bypasses. ([details](2026-07-26-core.md))
-
-- [2026-07-27] Tooling: Windows CI hardening — retrying test cleanups, evidence-sized deadlines, and same-hour fixes for two cross-PR combination breaks, plus a dependency security sweep taking the open Dependabot alerts and pnpm audit to zero. ([details](2026-07-27-tooling.md))
-
-- [2026-07-27] Backward compatibility: the batch's compat decisions in one place — legacy `thinking_level` ignored on resume (owner-directed, nothing retained), the win32 assembly-time `Shell:` line fallback for pre-`{{SHELL}}` Agent configs (with its removal condition), and the additive-only protocol fields. ([details](2026-07-27-backward-compatibility.md))
-
-- [2026-07-26] Goal mode: state an objective with an optional token budget and the system loops Tasks on one Session via `session.run(input, { goal })` — a `[goal]` round protocol embedding GOAL.yaml, budget wrap-up round, runaway safeguards (a cut-off round is terminal; 100-round backstop) — surfaced as the CLI's `/goal` and `run --goal`, a `goal` field on the tasks API, and the Web composer's new "+" menu. ([details](2026-07-26-goal-mode.md))
diff --git a/changelog/0.1.4/2026-07-27-release-pipeline.md b/changelog/0.1.4/2026-07-27-release-pipeline.md
index c4c76e3f..a15df5f4 100644
--- a/changelog/0.1.4/2026-07-27-release-pipeline.md
+++ b/changelog/0.1.4/2026-07-27-release-pipeline.md
@@ -1,5 +1,12 @@
# Release pipeline: a version test that could only fail where it mattered
+- **Date:** 2026-07-27
+- **Type:** fix
+- **Scope:** `ci`, `server`
+- **PR:** [#97](https://github.com/Prism-Shadow/penguin-harness/pull/97), [#99](https://github.com/Prism-Shadow/penguin-harness/pull/99)
+
+[中文版](2026-07-27-release-pipeline.zh.md)
+
`packages/server/test/version.test.ts` asserted the `/api/version` body against `{ version: VERSION, buildDate: null }`. The version came from core's constant; the build date was a hard-coded literal — and `null` is only ever true of a source build. The release workflow **stamps both constants before it builds and tests**: `VERSION` from the tag, `BUILD_DATE` with the run's UTC date. So the assertion held in every ordinary CI run, in every local run, and in the `release` job that builds the tarballs (it runs no tests at all), and failed in exactly one place — the `publish-npm` job's build-and-test step, the gate in front of the registry.
That is what happened to v0.1.3. Its GitHub Release published in full: all 15 assets, the first-ever `penguin-win32-x64.zip`, `install.ps1`. The npm chain never moved, leaving `@prismshadow/penguin-{skills,core,server,cli}` at 0.1.2 on the registry. The two jobs are independent and parallel by design — a deliberate property, so a registry outage cannot cost a Release — which also means a green Release says nothing about npm, and the gap was invisible until someone went looking for it.
diff --git a/changelog/0.1.4/2026-07-27-release-pipeline.zh.md b/changelog/0.1.4/2026-07-27-release-pipeline.zh.md
new file mode 100644
index 00000000..3a4eb57e
--- /dev/null
+++ b/changelog/0.1.4/2026-07-27-release-pipeline.zh.md
@@ -0,0 +1,14 @@
+# 发布流水线:一个只会在要紧之处失败的版本测试
+
+- **Date:** 2026-07-27
+- **Type:** fix
+- **Scope:** `ci`, `server`
+- **PR:** [#97](https://github.com/Prism-Shadow/penguin-harness/pull/97), [#99](https://github.com/Prism-Shadow/penguin-harness/pull/99)
+
+[English](2026-07-27-release-pipeline.md)
+
+`packages/server/test/version.test.ts` 把 `/api/version` 的响应体断言为 `{ version: VERSION, buildDate: null }`。版本号来自 core 的常量;而构建日期是一个硬编码字面量——而 `null` 只有在源码构建下才成立。发布工作流**在构建与测试之前就会把这两个常量打戳**:`VERSION` 取自 tag,`BUILD_DATE` 取该次运行的 UTC 日期。于是这条断言在每一次普通 CI 运行中成立、在每一次本地运行中成立、在构建 tarball 的 `release` 任务中也成立(它根本不跑测试),而只在恰好一个地方失败——`publish-npm` 任务的构建并测试步骤,也就是发往 registry 之前的那道闸门。
+
+v0.1.3 遇到的正是这件事。它的 GitHub Release 完整发布了:全部 15 个产物、史上第一个 `penguin-win32-x64.zip`、`install.ps1`。而 npm 链路从未启动,registry 上的 `@prismshadow/penguin-{skills,core,server,cli}` 停留在 0.1.2。这两个任务在设计上就是独立且并行的——这是一项刻意的性质,好让 registry 故障不至于赔上一次 Release——但这同时也意味着一次绿色的 Release 对 npm 什么都说明不了,而这个缺口在有人专门去查之前是不可见的。
+
+该断言现在把 `buildDate` 与 `BUILD_DATE` 相比较,也就是端点所提供的同一个常量,因此它对打过戳的发布构建与源码构建同样成立,而端点的契约仍被端到端固定住。v0.1.3 这个 tag 无法移动去捡起这个修复——仓库的受保护 tag 规则禁止这样做——因此 0.1.4 成了投递载体:对任何从 npm 安装的人来说,正是这个版本承载了 0.1.3 的全部功能集。
diff --git a/changelog/0.1.4/2026-07-27-sites-and-blog.md b/changelog/0.1.4/2026-07-27-sites-and-blog.md
index d0ced090..68d9c46d 100644
--- a/changelog/0.1.4/2026-07-27-sites-and-blog.md
+++ b/changelog/0.1.4/2026-07-27-sites-and-blog.md
@@ -1,5 +1,12 @@
# Sites: blog images move to the community repo
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#98](https://github.com/Prism-Shadow/penguin-harness/pull/98)
+
+[中文版](2026-07-27-sites-and-blog.zh.md)
+
Blog images are the one asset class in this repo whose growth has no ceiling. A published post's images are never deleted, and every new post adds a few hundred KB more — bytes that only the marketing site ever renders, carried forever by everyone who clones the repo to build the product. They now live where the demo videos already do, in the sibling `Prism-Shadow/penguin-harness-community` repo, served from raw.githubusercontent with `access-control-allow-origin: *` and a five-minute cache; the seven files this repo carried under `packages/landing/public/blog-assets/` (six post images plus the generated `benchmark-light.svg`) are deleted. The accepted trade is that a GitHub outage degrades the site to missing images, which is cheaper than the bytes.
## Post bodies did not change
diff --git a/changelog/0.1.4/2026-07-27-sites-and-blog.zh.md b/changelog/0.1.4/2026-07-27-sites-and-blog.zh.md
new file mode 100644
index 00000000..5186e2da
--- /dev/null
+++ b/changelog/0.1.4/2026-07-27-sites-and-blog.zh.md
@@ -0,0 +1,18 @@
+# 站点:博客图片迁往社区仓库
+
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#98](https://github.com/Prism-Shadow/penguin-harness/pull/98)
+
+[English](2026-07-27-sites-and-blog.md)
+
+博客图片是本仓库中唯一一类增长没有上限的资产。已发布文章的图片永远不会被删除,而每篇新文章又会再添几百 KB——这些字节只有营销站点会渲染,却要由每一个为构建产品而克隆仓库的人永久背负。它们现在与演示视频一样,迁到兄弟仓库 `Prism-Shadow/penguin-harness-community`,经 raw.githubusercontent 提供,带 `access-control-allow-origin: *` 与五分钟缓存;本仓库原先放在 `packages/landing/public/blog-assets/` 下的七个文件(六张文章配图加上生成的 `benchmark-light.svg`)已删除。所接受的代价是:GitHub 故障会使站点降级为图片缺失,这比那些字节要便宜。
+
+## 文章正文未改动
+
+Markdown 仍然写可移植的 `/blog-assets/<name>` 路径,无论是在 `![alt](…)` 图片中,还是在部分文章用于主题切换截图的原始 `<img src="…">` 标签中;由博客渲染器在渲染时把它解析为托管 URL——具体是 `src/lib/links.ts` 中的 `blogAssetUrl` 助手,加上 `src/pages/blog-post.tsx` 中的 `img` 适配器(等到它被调用时,rehype-raw 早已把原始标签转成了普通的 `img` 节点)。把改写放在那里而不是放进 Markdown,使托管位置只有一个事实来源:文章正文保持可读、可 diff,那些针对这些路径做断言的测试仍然断言路径,而再次搬家只需改一行,而不是把每篇文章扫一遍。其他所有图片来源——绝对 URL、GitHub 用户附件上传、站点资产如 `/og-cover.png`——都原样转发,并与改写本身一同由测试固定。
+
+## 重新生成图片现在是两步流程
+
+两个截图脚本改变了写入位置。`scripts/capture-blog-shots.mjs` 与 `scripts/render-benchmark-svg.mjs` 输出到被 gitignore 的暂存目录 `packages/landing/.blog-assets/`(按需创建,因为它在全新克隆中并不存在);它们产出的文件随后被上传到社区仓库的 `blog-assets/` 目录,而文章正是从那里加载。README 的基准测试 SVG 不受影响——`assets/readme/benchmark-{light,dark}.svg` 仍由同一份落地页数据渲染,也仍然提交在本仓库中。
diff --git a/changelog/0.1.4/README.md b/changelog/0.1.4/README.md
deleted file mode 100644
index 531e5cfe..00000000
--- a/changelog/0.1.4/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Version 0.1.4
-
-Released on 2026-07-27.
-
-- [2026-07-27] Release pipeline: the server's version-endpoint test asserted a literal `buildDate: null`, which can only fail in the one job that stamps `BUILD_DATE` — the npm publish. v0.1.3's GitHub Release shipped complete while `@prismshadow/penguin-{skills,core,server,cli}` stayed at 0.1.2 on the registry; the assertion now compares against core's constant, so a stamped release build passes too. ([details](2026-07-27-release-pipeline.md))
-
-- [2026-07-27] Sites: blog images move to the sibling community repo — post bodies keep the portable `/blog-assets/<name>` path and the renderer resolves it to the hosted URL, so a clone no longer carries screenshots only the marketing site renders, and the two capture scripts now stage their output in the gitignored `packages/landing/.blog-assets/`. ([details](2026-07-27-sites-and-blog.md))
diff --git a/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.md b/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.md
index 37994c48..241c08f9 100644
--- a/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.md
+++ b/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.md
@@ -1,5 +1,12 @@
# Isolated Agent tuning pipeline
+- **Date:** 2026-07-25
+- **Type:** feature
+- **Scope:** `web`, `skills`
+- **PR:** [#129](https://github.com/Prism-Shadow/penguin-harness/pull/129)
+
+[中文版](2026-07-25-agent-tuning-pipeline.zh.md)
+
The Web App now includes a runnable example that coordinates Agent creation, Benchmark construction, and score-driven Agent optimization without sharing private evaluation context between phases.
## Web App
diff --git a/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.zh.md b/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.zh.md
new file mode 100644
index 00000000..75b9e7d4
--- /dev/null
+++ b/changelog/0.1.5/2026-07-25-agent-tuning-pipeline.zh.md
@@ -0,0 +1,22 @@
+# 隔离的 Agent 调优流水线
+
+- **Date:** 2026-07-25
+- **Type:** feature
+- **Scope:** `web`, `skills`
+- **PR:** [#129](https://github.com/Prism-Shadow/penguin-harness/pull/129)
+
+[English](2026-07-25-agent-tuning-pipeline.md)
+
+Web App 现在包含一个可运行的示例,它协调 Agent 创建、Benchmark 构建与依分数驱动的 Agent 优化,且各阶段之间不共享私有的评估上下文。
+
+## Web App
+
+新的草稿页示例会为每个阶段启动一个独立的 Penguin CLI Session,其环境派生自当前活动的 Project。它的 Benchmark 使用隐藏的「上下文到动作」映射,使优化器能够展示由分数反馈带来的可度量改进。
+
+Benchmark 构建现在使用临时的 Pilot 评估,一次只调整一个难度维度,然后再冻结并记录 Formal Baseline。
+
+## Skills
+
+Agent 创建、Benchmark 设计、评估与优化这几个 Skill 现在定义了更清晰的归属与访问边界。Benchmark 构建者与优化器通过一套显式的 Evaluator 请求协议来委派每个 Case 的运行,而私有的 Rubric 与 Gold 答案则始终限定在评估 worker 之内。
+
+Benchmark 设计现在把可变的 Pilot 校准与冻结的 Formal Baseline 分开,并防止围绕已观察到的答案做仅改 Rubric 的降分。
diff --git a/changelog/0.1.5/2026-07-27-input-images.md b/changelog/0.1.5/2026-07-27-input-images.md
index 09803e57..528ee6cb 100644
--- a/changelog/0.1.5/2026-07-27-input-images.md
+++ b/changelog/0.1.5/2026-07-27-input-images.md
@@ -1,5 +1,12 @@
# Images reach every input: mid-run steering, goal objectives, and no dead action button
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#71](https://github.com/Prism-Shadow/penguin-harness/pull/71)
+
+[中文版](2026-07-27-input-images.zh.md)
+
Steering — the message you send to an agent that is already running, delivered between turns as a `[user_steering]` user message — used to be text and nothing else. That was a limitation of the channel, not of the model: the very moment an image is most useful is mid-run, when the agent has just produced the wrong layout and the fastest correction is a screenshot. Steering now carries images the way a prompt does, and an image with no caption is a complete steering message on its own.
Core queues the images with the text — `session.steer(input)` takes an OmniMessage list, the same shape `session.run` takes a prompt in — and delivers them as ordinary user image messages directly behind the `[user_steering]` block — the same shape a prompt uses, so the LLM client, the Trace, and replay all already know what to do with them. On a model without vision they fold into `[attached image: <path>]` lines **inside** the block, exactly as a prompt's images fold, because the block has to remain the whole text: a line appended after the closing tag would cost the message its steering identity and every render layer would read it as a new Task. A scratchpad that cannot be written to ends the run — the picture usually arrives *because* the run is going the wrong way, so carrying on without it would spend the rest of the task heading further that way.
diff --git a/changelog/0.1.5/2026-07-27-input-images.zh.md b/changelog/0.1.5/2026-07-27-input-images.zh.md
new file mode 100644
index 00000000..6767bd30
--- /dev/null
+++ b/changelog/0.1.5/2026-07-27-input-images.zh.md
@@ -0,0 +1,28 @@
+# 图片抵达每一个输入通道:运行中转向、目标陈述,以及不再有失效的操作按钮
+
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#71](https://github.com/Prism-Shadow/penguin-harness/pull/71)
+
+[English](2026-07-27-input-images.md)
+
+转向——即你发给一个已经在运行的 Agent 的消息,在轮次之间以 `[user_steering]` 用户消息投递——此前只能是文本。那是通道的限制,而不是模型的限制:图片最有用的时刻恰恰是在运行途中,此时 Agent 刚刚产出了错误的布局,而最快的纠正就是一张截图。转向现在像提示词一样携带图片,而一张没有说明文字的图片本身就是一条完整的转向消息。
+
+Core 把图片与文本一同排队——`session.steer(input)` 接受一个 OmniMessage 列表,与 `session.run` 接受提示词的形状相同——并把它们作为普通的用户图片消息,紧跟在 `[user_steering]` 区块之后投递;这与提示词所用的形状一致,因此 LLM 客户端、Trace 与重放本就知道该拿它们怎么办。在不支持视觉的模型上,它们会折叠成 `[attached image: <path>]` 行,且是折叠在该区块**内部**,与提示词的图片折叠方式完全一致——因为该区块必须仍然是整条文本:追加在闭合标签之后的一行会让该消息丢失其转向身份,于是每一层渲染都会把它读作一个新的 Task。无法写入的草稿区会终结本次运行——图片通常正是*因为*这次运行走偏了才送来的,因此不带着它继续,只会把这个任务余下的时间花在继续走偏上。
+
+各渲染层沿用它们本就对提示词图片施加的分组规则——直到下一条非图片消息为止的所有内容,都归属于它前面那条消息。在 Web 应用中,图片落在转向芯片内部而不是变成各自独立的气泡,聊天流与 Trace 时间线都不会为它们开启新的 Task;而稍后发送的一条纯图片提示词,仍然是一个货真价实的新轮次。
+
+## 目标可以用一张图片来陈述
+
+「把这个页面做得和这张设计稿一样」是一个目标,而一张截图比一段文字陈述得更好——但目标陈述此前直接拒绝图片。它现在接受图片,只有一处与其他所有输入刻意不同:**无论模型是否支持视觉**,它们都会被折叠为草稿区路径。目标陈述会作为每一轮 `[goal]` 区块的文本被重新注入,因此图片不可能以图片的形式一路搭乘。只在第 1 轮发送它,会让此后的每一轮都指向一个压缩早已移除的东西——这是一种无声的失败,因为该陈述*读起来*仍然是对的。而作为一行路径,它能挺过每一轮与每一次压缩,模型也只在真正去看它时才花费 Token。文本仍然是必需的:一张图片陈述不了任何目标,因此没有文本的目标输入会被拒绝。
+
+在聊天中,第 1 轮会在其气泡下方完整展示这些附件,而之后各轮把它们收拢为一行芯片、点击展开——它们确实存在于每一轮的输入里,但一个二十轮的目标不该把同一张图片重复二十遍。
+
+三条输入路径现在共用同一个折叠逻辑,每个 Session 绑定一次,由各条路径自行决定是否施加:提示词与转向消息只在没有视觉能力时折叠,目标陈述则总是折叠。这个开关此前是隐式的——「草稿区目录是否已配置」被拿来代替「模型是否缺少视觉能力」——而这只在有且仅有一条规则需要编码时才行得通。
+
+## 运行中的按钮不再能把你困住
+
+在任务运行期间,输入区那个唯一的操作按钮会在草稿有任何内容时从「停止」翻转为发送形态。转向模式并不能承载每一种草稿,于是一份它承载不了的草稿——一张没有文字的图片,也就是图片尚不可转向的那个年代——会产生一个**永久禁用**的发送按钮,而它还挤掉了「停止」:消息发不出去,运行也无法从输入区停止。唯一的出路是删掉那个附件。
+
+在图片可转向之后,那种特定草稿就是直接转向。转向仍然承载不了的东西——只选了 Skill 而没有文字或图片(`[use_skills]` 区块属于任务级设置,不是能递给一个已经在进行中的轮次的东西),或者一个 `@` 交接目标——现在会在这一次发送上回退到**后续队列**:按钮保持可用并标注为队列操作,整份草稿作为一条消息发出并由服务端保留到运行结束,而 `@` 交接仍然直接打开它的新会话。「停止」是剩下的那部分:当两条通道都不接收框里的东西时,按钮就是这副面孔——空的输入区,还有目标陈述、模型 key 被拒之后的任何草稿,以及一个运行中会话仍在阻塞的、已暂存的 `/model` 分叉。「框里有东西」与「这次发送有地方可去」是两个不同的问题,而「停止」属于后一个。
diff --git a/changelog/0.1.5/2026-07-27-sites-and-blog.md b/changelog/0.1.5/2026-07-27-sites-and-blog.md
index 7719396b..f13a2a62 100644
--- a/changelog/0.1.5/2026-07-27-sites-and-blog.md
+++ b/changelog/0.1.5/2026-07-27-sites-and-blog.md
@@ -1,5 +1,12 @@
# Sites: the 0.1.4 release post
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#96](https://github.com/Prism-Shadow/penguin-harness/pull/96)
+
+[中文版](2026-07-27-sites-and-blog.zh.md)
+
A release post for **0.1.4** in both languages, covering the batch's three themes — Windows becoming a first-class install, goal mode looping Tasks until an objective is actually reached rather than merely replied to, and the agents panel turning subagent fan-outs into a live call graph.
The post is deliberate about limits rather than quiet on them: the Windows package is x64-only for now, `input_command`'s Ctrl-C hard-kills the command tree instead of interrupting the foreground command, and upgrading on Windows means re-running the installer because in-place `penguin update` still refuses there.
diff --git a/changelog/0.1.5/2026-07-27-sites-and-blog.zh.md b/changelog/0.1.5/2026-07-27-sites-and-blog.zh.md
new file mode 100644
index 00000000..910b9c9f
--- /dev/null
+++ b/changelog/0.1.5/2026-07-27-sites-and-blog.zh.md
@@ -0,0 +1,14 @@
+# 站点:0.1.4 发布文章
+
+- **Date:** 2026-07-27
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#96](https://github.com/Prism-Shadow/penguin-harness/pull/96)
+
+[English](2026-07-27-sites-and-blog.md)
+
+一篇双语的 **0.1.4** 发布文章,涵盖这一批次的三个主题——Windows 成为一等的安装方式;目标模式让 Task 持续循环,直到目标真正达成而不只是被回复一句;以及 Agent 面板把子 Agent 的扇出变成一张实时调用图。
+
+这篇文章对限制是刻意点明而非避而不谈:Windows 包目前仅有 x64;`input_command` 的 Ctrl-C 是硬杀整棵命令树,而不是中断前台命令;在 Windows 上升级意味着重新运行安装脚本,因为原地的 `penguin update` 在那里仍会拒绝。
+
+该文章截图所用的采集脚本也加入了既有脚本行列,其输出暂存在被 gitignore 的 blog-assets 目录中以便上传到兄弟社区仓库,而不是把图片提交进本仓库。
diff --git a/changelog/0.1.5/2026-07-27-windows-bundled-shell.md b/changelog/0.1.5/2026-07-27-windows-bundled-shell.md
index 34af44da..791a117c 100644
--- a/changelog/0.1.5/2026-07-27-windows-bundled-shell.md
+++ b/changelog/0.1.5/2026-07-27-windows-bundled-shell.md
@@ -1,8 +1,15 @@
# Windows: the package bundles its own bash, so the Agent's shell no longer depends on the machine
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `core`, `tooling`
+- **PR:** [#95](https://github.com/Prism-Shadow/penguin-harness/pull/95)
+
+[中文版](2026-07-27-windows-bundled-shell.zh.md)
+
`penguin-win32-x64.zip` now ships **MinGit** under `git/`, and `exec_command` uses it when the machine has no Git for Windows of its own.
-## Why
+## The shell was whatever the machine had
The Windows shell was whatever happened to be installed: `bash` if the user had Git for Windows, otherwise PowerShell. That made the same Agent running the same Skill behave differently on two Windows machines, and the degradation was silent — a Skill written for a POSIX shell does not fail loudly under PowerShell, it fails strangely. The sharpest case: `curl -fsSL <url>` under Windows PowerShell 5.1 resolves the built-in `curl` → `Invoke-WebRequest` alias and returns a cmdlet parameter-binding error, which a model recovers from far less easily than "command not found".
diff --git a/changelog/0.1.5/2026-07-27-windows-bundled-shell.zh.md b/changelog/0.1.5/2026-07-27-windows-bundled-shell.zh.md
new file mode 100644
index 00000000..e7824b7c
--- /dev/null
+++ b/changelog/0.1.5/2026-07-27-windows-bundled-shell.zh.md
@@ -0,0 +1,36 @@
+# Windows:安装包自带 bash,Agent 的 shell 不再取决于机器
+
+- **Date:** 2026-07-27
+- **Type:** feature
+- **Scope:** `core`, `tooling`
+- **PR:** [#95](https://github.com/Prism-Shadow/penguin-harness/pull/95)
+
+[English](2026-07-27-windows-bundled-shell.md)
+
+`penguin-win32-x64.zip` 现在在 `git/` 下附带 **MinGit**,当机器上没有自己的 Git for Windows 时,`exec_command` 就使用它。
+
+## shell 此前取决于机器上装了什么
+
+Windows 上的 shell 此前取决于机器上碰巧装了什么:用户有 Git for Windows 就是 `bash`,否则就是 PowerShell。这使得同一个 Agent 跑同一个 Skill,在两台 Windows 机器上表现不同,而且这种退化是无声的——一个为 POSIX shell 写的 Skill 在 PowerShell 下不会响亮地失败,它会以奇怪的方式失败。最尖锐的例子:`curl -fsSL <url>` 在 Windows PowerShell 5.1 下会解析到内置的 `curl` → `Invoke-WebRequest` 别名,返回一个 cmdlet 参数绑定错误,而模型从这种错误中恢复的能力,远不如从「命令未找到」中恢复。
+
+## 附带了什么
+
+MinGit 的 `usr/bin/sh.exe` **就是 GNU bash**——最小化的 Git for Windows 构建把 bash 装在 `sh` 这个名字下。因此这个包以压缩后 37MB(安装后约 91MB)的代价,换来一个真正的 bash、大约六十个核心工具,以及 `git.exe`;而要达到完全对等,完整的 PortableGit 需要约 350MB 的解压体积。
+
+不涉及任何 PATH 布线。MinGit 的 `etc/profile` 默认 `MSYS2_PATH_TYPE=inherit`,因此一个登录 shell(`-lc`,未改动)会得到 `/mingw64/bin:/usr/local/bin:/usr/bin:/bin:<继承的 Windows PATH>`——自带工具与 git 在前,Windows PATH 仍排在它们之后。这正是 MinGit 不带 `curl` 或 `tar` 也无所谓的原因:System32 的 `curl.exe` 与 `tar.exe` 照常解析得到,而且在 bash 里它们是真正的二进制程序,而不是 PowerShell 别名。
+
+## 解析顺序
+
+`PENGUIN_SHELL` → PATH 上的 `bash` → **自带的** → `pwsh` → `powershell`。
+
+自带的那份刻意排在 PATH 探测*之后*:用户自己的 Git for Windows 携带完整的 MSYS 用户态(curl、tar、less、perl……),而 MinGit 只带约六十个工具,因此两者都存在时,用户那份是更好的 shell。自带的是下限,而不是首选。`pwsh` / `powershell` 仍然可达,供什么都不附带的 npm 安装使用。解析出的 shell 向模型报告为 `bash`,因为它本来就是,而这也正是 Skill 生态所面向的。
+
+安装脚本把 `git/` 当作与其他载荷目录一样对待——升级时替换,绝不触碰数据目录——而启动器 shim 把该路径以 `PENGUIN_BUNDLED_SHELL` 公布出来。
+
+## 许可
+
+MinGit 是 GPLv2,因此新增了根级的 `THIRD-PARTY-NOTICES.md`,记录两个被附带的组件——Node 运行时与 MinGit——包括各自的许可证文本位于包内何处,以及各自对应的源码在哪里。所采用的 Git for Windows 发布被固定到一个确切的 tag,因此该声明只需指明单一版本,而附带的字节就是未经修改的官方发布产物。
+
+## 代价,明说
+
+Windows 下载体积大约翻倍(约 65MB → 约 100MB),安装体积增长约 91MB;PowerShell 5.1 的 `Expand-Archive` 要多解压 368 个文件,因此全新安装会明显变慢。这个包也意味着一个**混合**环境——MSYS 核心工具与原生 node、git 并存——而不是一个 POSIX 环境,因此 MSYS 的路径转换仍是需要留意的事。`MSYS_NO_PATHCONV` / `MSYS2_ARG_CONV_EXCL` 刻意不设置:与真实 Git Bash 语义保持一致是最不令人意外的默认,而偏离它会让自带的 shell 表现得与 PATH 上那个不一样。
diff --git a/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.md b/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.md
index 50603f44..9afe7fdb 100644
--- a/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.md
+++ b/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.md
@@ -1,5 +1,12 @@
# Web App and CLI: duration and byte abbreviations carry into the next unit
+- **Date:** 2026-07-28
+- **Type:** fix
+- **Scope:** `web`, `cli`
+- **PR:** [#112](https://github.com/Prism-Shadow/penguin-harness/pull/112)
+
+[中文版](2026-07-28-duration-and-byte-formatting.zh.md)
+
Two display helpers chose a unit — or split a value into minutes and seconds — from the raw input while printing a rounded one, so a duration could read `1m60s` and a file size `1024KB`. Both now round before deciding what to print.
## Durations no longer print a 60-second remainder
diff --git a/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.zh.md b/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.zh.md
new file mode 100644
index 00000000..ba865d13
--- /dev/null
+++ b/changelog/0.1.5/2026-07-28-duration-and-byte-formatting.zh.md
@@ -0,0 +1,18 @@
+# Web App 与 CLI:时长与字节的缩写会进位到下一个单位
+
+- **Date:** 2026-07-28
+- **Type:** fix
+- **Scope:** `web`, `cli`
+- **PR:** [#112](https://github.com/Prism-Shadow/penguin-harness/pull/112)
+
+[English](2026-07-28-duration-and-byte-formatting.md)
+
+两个显示助手是依据原始输入来选定单位、或把取值拆成分与秒的,打印出来的却是四舍五入之后的值,于是时长会读作 `1m60s`、文件大小会读作 `1024KB`。现在两者都先四舍五入,再决定打印什么。
+
+## 时长不再打印出 60 秒的余数
+
+`humanizeDuration` 对分钟取下整,却对秒余数四舍五入——同一次拆分上施加了两个相反的取整方向。因此落在 `[59.5, 60)` 的余数会进位成 60,而分钟并未随之进位:119.7s 渲染成 `1m60s` 而不是 `2m0s`,3599.7s 渲染成 `59m60s`。紧凑模式在低一级单位上有同样的错配:它依据未取整的值选择了「不足一分钟」分支,然后把 `Math.round(59.6)` 打印成 `60s` 而不是 `1m0s`。现在每一种整秒形式都先对总量取整、再拆分这个整数,因此分钟与余数总是来自同一个数字;紧凑模式之外、不足一分钟的取值保留其十分位,不受影响。修复落在两份副本上——`packages/web/src/lib/format.ts` 与 CLI 的 `packages/cli/src/render.ts`,二者的缩写是刻意保持一致的——因此 Web App 与 `[stats]` 行不会各自漂移。凡是展示已结算时长的地方都可见:基准测试评估、Case 与 Run 计时、Trace 轮次时长、工具调用卡片、任务统计页脚,以及 Agent 拓扑视图。
+
+## 字节数不再打印出超范围的单位
+
+`formatBytes` 是拿原始字节数与各数量级阈值比较来选单位的,但取值是经共享的一位小数取整渲染的。一个略低于边界的数值在单位已经定死之后被取整越过了边界,于是 1048570 字节打印成 `1024KB` 而不是 `1MB`,MB/GB 边界也是同样的表现。单位现在依据取整后的值来选择。在 Trace 文件大小与工作区文件浏览器中可见。
diff --git a/changelog/0.1.5/2026-07-28-web-app.md b/changelog/0.1.5/2026-07-28-web-app.md
index 42384068..9f9ea18d 100644
--- a/changelog/0.1.5/2026-07-28-web-app.md
+++ b/changelog/0.1.5/2026-07-28-web-app.md
@@ -1,5 +1,12 @@
# Web App: config forms stop inviting saved logins, panels and pages stop growing scrollbars, blank replies and duplicated outcomes disappear, and Benchmark costs follow the selected currency
+- **Date:** 2026-07-28
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#105](https://github.com/Prism-Shadow/penguin-harness/pull/105), [#106](https://github.com/Prism-Shadow/penguin-harness/pull/106), [#113](https://github.com/Prism-Shadow/penguin-harness/pull/113), [#114](https://github.com/Prism-Shadow/penguin-harness/pull/114), [#116](https://github.com/Prism-Shadow/penguin-harness/pull/116)
+
+[中文版](2026-07-28-web-app.zh.md)
+
Four rendering and input-handling fixes: the browser stops filling account credentials into model configuration, a closed docked panel stops painting a stray 1px divider next to the open one, a provider-signature message that carries no text stops drawing an empty reply bubble, and Benchmark costs use the display currency selected in settings.
## Browser autofill no longer drops account credentials into model configuration
diff --git a/changelog/0.1.5/2026-07-28-web-app.zh.md b/changelog/0.1.5/2026-07-28-web-app.zh.md
new file mode 100644
index 00000000..6a44cf72
--- /dev/null
+++ b/changelog/0.1.5/2026-07-28-web-app.zh.md
@@ -0,0 +1,55 @@
+# Web App:配置表单不再招来保存的登录信息,面板与页面不再长出滚动条,空回复与重复的结果标注消失,Benchmark 成本跟随所选货币
+
+- **Date:** 2026-07-28
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#105](https://github.com/Prism-Shadow/penguin-harness/pull/105), [#106](https://github.com/Prism-Shadow/penguin-harness/pull/106), [#113](https://github.com/Prism-Shadow/penguin-harness/pull/113), [#114](https://github.com/Prism-Shadow/penguin-harness/pull/114), [#116](https://github.com/Prism-Shadow/penguin-harness/pull/116)
+
+[English](2026-07-28-web-app.md)
+
+四处渲染与输入处理修复:浏览器不再把账号凭证填进模型配置;一个关闭的停靠面板不再在打开的那个旁边画出一条多余的 1px 分隔线;一条携带 Provider 签名但不含文本的消息不再画出一个空的回复气泡;Benchmark 成本改用设置中所选的显示货币。
+
+## 浏览器自动填充不再把账号凭证塞进模型配置
+
+打开模型对话框可能把浏览器保存的登录信息直接递进配置里:账号密码落进 API key 输入框,用户名落进它上方的那个字段。有两个成因,都是浏览器在做它自以为有帮助的事:
+
+- 该对话框的字段不属于任何 `<form>` 元素——整个应用只有一个真正的表单,在登录页——因此浏览器把页面上无归属的字段归入一个合成表单,并自行挑一个「用户名」输入框。
+- API key 输入框本已声明 `autocomplete="off"`,而 **Chrome 与 Safari 在密码字段上会忽略它**。它们照样把保存的登录信息递上来。
+
+现在每一个共享表单控件都默认退出自动填充,除非其调用方声明了一个真实的凭证角色。普通字段发出 `autocomplete="off"`,而退出自动填充的*密钥*字段发出 `autocomplete="new-password"`——这是密码管理器唯一会读作「这不是账号密码」的取值——并同时带上各管理器扩展的退出属性(1Password、LastPass、Bitwarden、Dashlane),因为它们读的是自家属性而不是 `autocomplete`。应用的这些表单本就没有一个想要自动填充:它们装的是 API key、模型 id、URL、目录与价格。
+
+登录页与密码对话框未受影响——它们声明了 `username` / `current-password` / `new-password`,而已声明的角色会作为调用方的决定被放行,因此保存与填充真实密码照常可用。
+
+该策略落在共享的 `Input` / `Textarea` 中而不是各个调用点,因此它也覆盖了那些从未被报告过的页面(Agent、Skill、定时任务、vault);少数绕开这些组件的裸输入框——模型与 Skill 菜单的搜索框、目标预算、Workspace 路径编辑器——则各自显式带上同样的退出设置。
+
+## 关闭的停靠面板不再画出多余的分隔线
+
+打开 Workspace 文件面板时,会看到对话与文件之间像是楔进了第二个空面板:一条细线、一段空隙,然后才是真正的分隔线。
+
+两个停靠面板(Workspace 文件、Agent)在关闭时仍保持挂载——宽度过渡需要这个节点——收缩为一个零宽的裁切窗口。在 border-box 尺寸模式下,它们的左边框仍然会在那里画出 1px,于是关闭的 Agent 面板在打开的那个旁边留下一条搁浅的线,而打开面板的拖拽槽成了两者之间的空隙。当两个面板都关闭时,这两条残留的线就叠在窗口右缘。
+
+分隔线现在只属于打开状态,因此关闭的面板完全不占宽度,而对话与当前打开的那个面板之间恰好只有一条分隔线。
+
+## 思考片段之后不再出现空回复气泡
+
+模型思考结束后,有时会紧接着出现一个空的 `assistant:` 气泡——没有文本,只是一个占了一行的空白块。
+
+那并不是一个游离的空字符串。当 Provider 把一个不透明的 `fidelity` 载荷附加到一个原本为空的片段上时,Core 会**刻意**发出一条正文为空的完整文本或思考消息——Gemini 在文本片段上的 `thoughtSignature`、GPT-5 的 `fidelity.phase` 分段标记、GPT-5 思考侧的加密推理。这条消息必须存在,否则签名会从历史中丢失,下一个请求就会不带它发出。它只是没有任何可显示的内容,而且落在思考→文本的交界处,这正是那道空隙出现在思考之后、且只在部分 Provider 与部分轮次出现的原因。
+
+空正文现在在两条可能产生它的路径上都不再生成任何条目。当这条消息独自到达时——历史重建,或中途加入一个流——它被跳过而不是追加。而当确实流式输出过一个纯空白片段时(Core 在第一个*真值*增量上就打开文本片段,而 `"\n\n"` 是真值),进行中的片段会被丢弃而不是就地结算,因此实时视图与刷新后的页面渲染出同样的结果,而不是空气泡在刷新后才消失。纯空白在各处都算作空,与回复复制路径本就当作「无内容」的判断一致。
+
+## Benchmark 成本跟随所选的显示货币
+
+Benchmark 成本此前在显示货币切到 CNY 之后仍停留在 USD。该页面调用共享的金额格式化函数时没有传入所选货币,于是它的 USD 默认值继续生效,而模型库、成本中心、聊天与 Trace 视图都跟随了该设置。
+
+成本趋势的坐标轴与提示气泡、评估总量、Case 总量以及各次运行的成本,现在全部接收所选的显示货币。分数与时长的格式化未变。
+
+## 工具卡片行只陈述一次结果
+
+折叠的工具卡片把同一件事说了两遍:左侧的状态图标本就区分了完成、失败与中止,而时长右侧的药丸又把那个词拼写了一遍。两个药丸——调用的与输出的——都已移除,只留下图标,以其 title 与可访问名称作为唯一来源。
+
+## 页面不再能把文档撑出第二条滚动条
+
+当一个很长的会话列表下方还有第二个 Agent 时,Traces 页与 Agent 设置页会把**文档**撑大:出现第二条滚动条,拖动它会把整个应用外壳往上拉,顶部留出空白。两处的导入控件都把文件输入框保持为视觉隐藏但可 Tab 聚焦,这意味着 `position: absolute`,而两个滚动容器都不是包含块——因此没有任何东西裁切这些盒子,它们位于折叠线以下的位置就变成了文档级溢出。只有一个 Agent 时它完全被掩盖:那个控件位于树的顶部。
+
+该规则现在落在一处而不是每个滚动容器里——每个可滚动容器都是它自己的包含块,在样式表中声明一次——而视觉隐藏的文件输入框成为一个共享控件,无论被放在哪里都自带包含块。一次端到端扫描守护这条不变式:在有两个 Agent、且列表长到足以把第二个推到折叠线以下时,任何页面都不得把文档撑大。
diff --git a/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.md b/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.md
index 7e0a646a..17d53388 100644
--- a/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.md
+++ b/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.md
@@ -1,5 +1,12 @@
# Web App: file attachments in the composer, and `/agent` in place of the `@` mention
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`
+- **PR:** [#121](https://github.com/Prism-Shadow/penguin-harness/pull/121), [#122](https://github.com/Prism-Shadow/penguin-harness/pull/122)
+
+[中文版](2026-07-29-composer-attachments-and-switch-commands.zh.md)
+
The composer gains a second upload entry and loses its `@` trigger. A message can now carry arbitrary files the way it already carried pasted images, and the two commands that move a conversation elsewhere — `/agent` and `/model` — stage their pick as a chip instead of acting on it, so the message that opens the new conversation is the one the user meant to write.
## File attachments
diff --git a/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.zh.md b/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.zh.md
new file mode 100644
index 00000000..952b8584
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-composer-attachments-and-switch-commands.zh.md
@@ -0,0 +1,36 @@
+# Web App:输入区的文件附件,以及用 `/agent` 取代 `@` 提及
+
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`
+- **PR:** [#121](https://github.com/Prism-Shadow/penguin-harness/pull/121), [#122](https://github.com/Prism-Shadow/penguin-harness/pull/122)
+
+[English](2026-07-29-composer-attachments-and-switch-commands.md)
+
+输入区新增第二个上传入口,并去掉了它的 `@` 触发。一条消息现在可以像此前携带粘贴图片那样携带任意文件;而那两个会把对话搬到别处的命令——`/agent` 与 `/model`——现在把选择暂存为一个芯片而不是立即执行,因此开启新对话的那条消息,正是用户本意要写的那条。
+
+## 文件附件
+
+「+」菜单在图片上传正下方放了一个回形针条目:任意文件类型,每条消息至多 20 个文件、单个 10MB、解码后合计 12MB(超限的选择会在浏览器中读取之前就被拒绝,因此不会为了换来一次拒绝而先上传;对于绕过这一层的情况,服务端回以 413 `file_too_large` / `too_many_files`)。选中的文件以可移除的芯片显示在图片缩略图旁边,顺序即选取顺序;而且——与图片一样——一条只有附件、没有文字的消息是可以发送的。目标模式会清空并阻止它们,因为服务端只接受纯文本的目标输入。
+
+这些限制所依附的请求体上限现在是实测而非读取得来的:它此前比较的是 `content-length`,而分块传输的请求压根不带这个头,于是任意大小的请求体都能通过。它改为从流上计数字节。
+
+这里没有上传端点:一个仍处于草稿状态的聊天没有可上传的 Session,因此文件是作为 base64 `data:` URL 搭乘任务请求本身的,与粘贴的图片完全一样。`TaskInputPart` 新增一个 `{type: "file", fileName, dataUrl}` 变体;服务端在不触碰文件系统的情况下校验它,然后把字节写入 Session 草稿区——它随 Session 一起删除,因此清理是免费的——并在消息文本上追加一行 `[attached file: <绝对路径>]`。模型用它平常的文件工具打开该文件;字节从不进入对话。
+
+那一行是追加在用户文本**之后**,而不是作为 `[tag]…[/tag]` 区块前置的:`[use_skills]` 与来源区块是在消息开头解析的,第二个位于开头的区块会打断那条链。追加也有它自己的一条规则,出于同样的原因——`[handoff_from]` 与 `[model_switch_from]` 只有在构成**整条**消息时才被识别,因此一条除了这类区块别无他物的消息会被跳过,那些追加行则自成一条消息。没有这一条,一次携带附件而无文字的交接会把它自己的来源区块变成无法解析的文本,于是新对话开场时在用户气泡里露出的是原始标记,而不是一条横幅。
+
+那一行的写法存放在一个与既有 `[attached image: …]` 产出方共享的 core 模块中,因此两种约定不会各自漂移;Web 渲染器会把两者从正文中重新提取出来,图片变成图像、文件变成一条「附件」提示——并且与图片行一样,只有当该路径确实解析进本 Session 的草稿区时才如此,因此手工敲出来的一行仍是普通文本,而不会渲染进系统外观之中。
+
+附件保留它被赋予的名字。只有 `[A-Za-z0-9._-]` 之外的 ASCII 会被改写——路径中的空格或 shell 元字符,一旦被模型粘进命令里就是货真价实的陷阱——而 ASCII 以上的一切都得以保留,只除去 Unicode 的 C 类(不可见控制符,以及文件名欺骗背后的双向覆盖符):`报告 2026.pdf` 会落成 `报告-2026.pdf`,而不是一个匿名的 `file.pdf`。Windows 卫生处理随之而来——去掉结尾的点与空格,为设备名加前缀(`con.txt` → `_con.txt`)——而主干部分按 UTF-8 **字节**在字符边界处截断,因为一个 CJK 字符要占三个字节,按字符计数会让中文名撑爆文件系统的真实上限。
+
+草稿区的读取端点也随之改变:它的穿越防护原本是一份字符白名单,非 ASCII 的文件名根本过不去。它现在做结构性检查(不含分隔符、不含控制字符、不是相对标记),并通过解析该路径、要求其父目录恰好是该 Session 的目录来加以确认——这严格强于原先的字符集检查,因为它同时拒绝了字符类会漏掉的那些形态,例如 Windows 的驱动器相对路径 `C:evil.png`。该端点的响应现在携带 `X-Content-Type-Options: nosniff`,因为这是从应用自身的源提供用户上传的任意字节。
+
+## `/agent`,以及两个切换都暂存到发送时
+
+输入 `@` 不再打开 Agent 拾取器,随之消失的还有发送时对开头 `@` 的解析。同样的交接现在经 `/agent` 到达,它会消耗掉自己的斜杠 token,并打开一个与 `/model` 同款构造的拾取器——一个匹配 Agent id 与显示名的搜索框、带头像的行、键盘导航、Escape 或点击外部关闭。两个拾取器共用同一个面板组件,而不是各存一份副本。与 `/model` 一样,`/agent` 只在活跃会话中提供:草稿没有可交接的对话,它在草稿页自己的选择器中挑选 Agent。
+
+两个切换命令都是暂存而非立即执行。选中一个 Agent 或一个模型不会发送任何东西:它在文本区上方钉住一个芯片,用户继续打字,回车(或发送)才执行切换——交接进该 Agent 的新聊天,或把本次对话分叉到所选模型上。只有输入区为空时才回退到默认的自动消息;已选中的 Skill 仍以 `[use_skills]` 区块一同搭乘。两个芯片彼此互斥,也与目标模式互斥;用它们的 × 或在文本开头按退格都能丢弃;而且它们与所属的草稿文本一同缓存——因此切换会话或刷新之后,恢复的是完整的意图,而不是留下没有芯片的孤零零文本。
+
+已暂存的模型分叉还会额外等待会话空闲,并在输入区上方说明这一点:它要从一个运行或压缩仍在追加的 Trace 上分出新会话,因此在运行途中触发会让新模型指向一份被截断的对话。每一条发送路径都把已暂存的模型切换按它早已对待交接目标的方式来处理:仅凭它就足以让输入区可发送、它让那个唯一的操作按钮保持在「发送」而非「停止」,并且它会阻止运行中转向——一个已暂存的切换不是发给正在此处运行的 Agent 的消息。
+
+`[handoff_from]` 来源区块此前告诉接收方模型说它是被「@ 提及」的。该标签及其字段行属于旧 Trace 仍在解析的持久化格式,因此只改了散文部分:它现在与触发方式无关,能在输入区改变交接发起方式之后继续成立。
diff --git a/changelog/0.1.5/2026-07-29-cost-center-errors.md b/changelog/0.1.5/2026-07-29-cost-center-errors.md
index 443800b5..b2bb3b3c 100644
--- a/changelog/0.1.5/2026-07-29-cost-center-errors.md
+++ b/changelog/0.1.5/2026-07-29-cost-center-errors.md
@@ -1,5 +1,12 @@
# Cost center: the error table pages back, reads shorter, and stops logging ordinary command exits
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `server`, `web`, `core`
+- **PR:** [#103](https://github.com/Prism-Shadow/penguin-harness/pull/103)
+
+[中文版](2026-07-29-cost-center-errors.zh.md)
+
Three changes to the error panel, which had become hard to use for the thing it exists for — finding the error that actually matters.
## The table pages back
diff --git a/changelog/0.1.5/2026-07-29-cost-center-errors.zh.md b/changelog/0.1.5/2026-07-29-cost-center-errors.zh.md
new file mode 100644
index 00000000..28b3e227
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-cost-center-errors.zh.md
@@ -0,0 +1,34 @@
+# 成本中心:错误表可以往回翻页、读起来更短,并且不再记录普通的命令退出
+
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `server`, `web`, `core`
+- **PR:** [#103](https://github.com/Prism-Shadow/penguin-harness/pull/103)
+
+[English](2026-07-29-cost-center-errors.md)
+
+对错误面板的三处改动——它已经变得难以胜任自己存在的目的:找到那个真正要紧的错误。
+
+## 表格可以往回翻页
+
+它只显示最新的 20 行且没有任何继续往下的方式,因此一小时前的错误根本够不着。
+
+一个新端点会以最新在前的顺序返回历史中的任意窗口,并附带过滤后的行数,好让翻页器知道终点在哪。第 0 页不产生额外开销——它就是仪表盘响应本就携带的那一批——因此只有往回翻才会发出请求。
+
+该端点只接受仪表盘的**日期与 Agent 过滤条件**。模型过滤刻意不予接受:它本就从未作用于错误(HTTP 与进程错误没有模型维度),因此在这里遵从它,会暗示一种上方汇总并未做出的收窄。对未归属错误仅管理员可见这一点原样沿用——一个普通成员往回翻页,绝不能开始看到另一个租户的登录失败。
+
+翻页器位于滚动框之外,因此无需滚到行列表底部就能够到,且只在页数多于一页时出现。加载失败的页会显示其错误信息并保留已经在屏幕上的行,而不是把表格清空。
+
+## 更短的来源标签
+
+一行的来源现在读作 `[env] tool_failed:exec_command`,而不是 `environment · tool_failed:exec_command`。只有 `environment` 需要缩短——其余每种来源(`http`、`llm`、`session`、`usage`、`title`、`subagent`、`process`、`schedule`)本就一眼可读——因此这里是一处缩写,而不是一套方案。「最常见错误码」这个统计量使用同样的形态,因此两者彼此一致。
+
+## 命令工具的非零退出码不再算作错误
+
+Core 此前把每一个非零退出码都映射为失败,而每一个失败都会被记录。但非零退出是 shell 命令返回信息的方式,而不是故障:`grep` 在无匹配时退出 1,`test -f` 在文件不存在时如此,`diff` 在文件有差异时如此。记录它们会把错误表变成 Agent 日常工作的流水账,把真正的错误埋掉,并且消耗掉那些本为保护真错误而存在的行数上限与去重窗口。Agent 本就看得到退出码并会自行调整;其中没有任何东西需要人来处理。
+
+两个命令工具都被覆盖,而不只是显眼的那一个:轮询后台命令的那个工具也会走到同一处退出码映射,因此只排除前台路径会导致同一个命令的非零退出「记不记录取决于它碰巧是怎么结束的」。
+
+被丢弃的判据是工具追加的那条注记(`[exit code: N]`),而不是工具的名字——同样的 `failed` 状态还覆盖着 Agent 无论如何调整都绕不过去的故障:被信号杀死的命令(被 OOM 杀掉的构建、段错误的测试二进制)、spawn 失败(工作目录不存在、EMFILE、无法解析的 shell)、工具超时,或缺失的命令会话管理器。这些仍然记录,而它们恰恰就是这张表所服务的「需要人来处理」的情形。
+
+排除发生在错误被捕获之处,而不是被查询之处,因此这些噪音从不进入表格、行数上限或去重键。带翻页的路由的租户隔离现在也有测试覆盖:外部人员得到 404,穿越式 id 得到 404,而一个成员在偏移量之间翻页时,即便同一页中交错着外部记录,也永远到不了另一个租户的行。
diff --git a/changelog/0.1.5/2026-07-29-default-system-prompt.md b/changelog/0.1.5/2026-07-29-default-system-prompt.md
index 7e6c818b..a94624a7 100644
--- a/changelog/0.1.5/2026-07-29-default-system-prompt.md
+++ b/changelog/0.1.5/2026-07-29-default-system-prompt.md
@@ -1,5 +1,12 @@
# Core: a tighter default system prompt, a reply-language rule, and a shared tooling directory
+- **Date:** 2026-07-29
+- **Type:** refactor
+- **Scope:** `core`, `docs`
+- **PR:** [#120](https://github.com/Prism-Shadow/penguin-harness/pull/120)
+
+[中文版](2026-07-29-default-system-prompt.zh.md)
+
The built-in Agent template is re-read by the model on every turn, and had grown wordy in exactly the sections that repeat most. It loses about a tenth of its words (1087 → 969) with no rule going with them, and two behaviours the prompt never stated are now in it.
## What the trim changed
diff --git a/changelog/0.1.5/2026-07-29-default-system-prompt.zh.md b/changelog/0.1.5/2026-07-29-default-system-prompt.zh.md
new file mode 100644
index 00000000..2a8777ea
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-default-system-prompt.zh.md
@@ -0,0 +1,34 @@
+# Core:更紧凑的默认系统提示词、一条回复语言规则,以及共享工具目录
+
+- **Date:** 2026-07-29
+- **Type:** refactor
+- **Scope:** `core`, `docs`
+- **PR:** [#120](https://github.com/Prism-Shadow/penguin-harness/pull/120)
+
+[English](2026-07-29-default-system-prompt.md)
+
+内置的 Agent 模板会被模型在每一轮重新读取,而它恰恰在重复最多的那些小节里变得啰嗦。它减掉约十分之一的词数(1087 → 969)且没有任何规则随之消失,同时把两条提示词从未言明的行为写了进去。
+
+## 精简改变了什么
+
+「个性」一节把回复语言钉在用户自己的语言上——工具 schema 本就对每一条调用描述提出了这个要求,因此二者在实践中一致,只是只有其中一方把它说了出来。它的作用范围限于散文:代码、标识符与提交信息保留各自的惯例。进程/端口约束从两句收缩为一句,保证不变:不要杀死不是你启动的东西(包括 PenguinHarness 自己的服务),除非被要求;不要占用服务端口;想要的端口被占用时另选一个空闲端口。
+
+API 认证处理不再被拆在两个小节里。「约束」一节带着「至多重试一次」,而「停止规则」一节又带着第四条规则说明之后该做什么;现在它只说一次,作为既有的「你无法解决的错误」规则的特例——至多重试一次,然后停止调用工具,并请用户在对话之外去 Agent 的 vault 或模型设置中更新 key。那些让旧措辞变长的事实完好保留:密钥绝不粘贴进对话;新 key 只在下一次对话中生效,因此继续重试不可能成功。
+
+「系统标记」一节词数减半,同时保留全部四个标记及其说明。「文件系统」一节从八条要点减为七条、从 262 词减为 243 词:两处合并——工作区相对路径的约定并入 `CWD` 那条,其他 Agent 的状态并入对你自己状态的描述——换来一条新增的共享工具要点。「建议工作流」本就推荐并行派发独立子任务;现在它明说这就是穿过一个大任务的快路。它那条 Playwright/curl 的说法并入「工具使用」要点,后者保留了原先两行分别承载的两半:装了 Playwright 就优先用它,否则用 `curl`。
+
+## 工具只安装一次
+
+「文件系统」一节新增一条约定,而 Skills 一节去掉了那句解释「不存在某物」的「没有 skill 工具」的填充文字。它落在「文件系统」而非 Skills,是因为它管辖任何要安装工具的任务,而不只是一次 Skill 运行;它也是按模型真正面临的选择来写的:项目本身有环境时就装进项目自己的环境;否则把那些可复用的东西——Python 虚拟环境、模型与包缓存——放在 `<app_data_dir>/agents/<agent_id>/shared_env/<name>/` 之下,并跨 Session 复用。
+
+Node 被单独点名,且在**项目本身之内**优先使用 pnpm——这两半都重要。它的共享存储使重复安装不会在磁盘上产生副本,而位置则决定了安装是否可解析:`node_modules` 是从项目目录向上解析的,因此放在 Agent 目录之下的包,对运行在 `CWD` 中的代码是不可见的。
+
+`shared_env/` 是一条提示词层面的约定,而不是代码会创建的路径:`paths.ts` 未做改动,Agent State 快照仍然只打包 `agent_state/`,因此一个虚拟环境绝不可能撑爆一次导出。Sessions & Traces 文档中的数据布局树列出了该目录并写明了这个注意事项,`01-PRINCIPLES.md` 中的逐 Agent 布局也做了记录。
+
+## App Data Dir 那条要点不再自相矛盾
+
+同一小节的 App Data Dir 要点既说该目录「不是任务的目录」,又说产物绝不可留在那里。而一个临时 Workspace 是 `<app_data_dir>/agents/<agent_id>/workspaces/tmp-<8hex>`——正在那棵树之内,并且对任何被指派了它的任务而言就是 `CWD`——因此这条规则恰恰在最需要它的地方破了。它现在只承载输入规则(App Data Dir 的内容不是用户提供的,绝不是任务输入),并明说 `CWD` 可以位于那棵树之内:那一个文件夹属于任务,其余的不属于。产物该放哪里,其下方的草稿区要点本就正面陈述过,而那条无论 `CWD` 指向何处都成立。
+
+## 已有的 Agent
+
+不迁移任何东西,也不重写任何东西。Agent 始终逐字地以其磁盘上的 `agent_state/system_config.yaml` 运行,因此这项改动只影响**新创建的** Agent。已有 Agent 通过设置页的 *恢复默认配置* 操作来采纳它,而该操作会覆盖整份配置——自定义系统提示词、工具列表、模型与压缩设置、MCP Server——只保留 `name`、`description` 与 `version`。
diff --git a/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.md b/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.md
index cf15e9ca..f917b4cb 100644
--- a/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.md
+++ b/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.md
@@ -1,5 +1,12 @@
# The harness's own port stops colliding: out of the Agent's environment, off the dev server
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `core`, `tooling`
+- **PR:** [#100](https://github.com/Prism-Shadow/penguin-harness/pull/100)
+
+[中文版](2026-07-29-harness-env-and-dev-ports.zh.md)
+
Two places where PenguinHarness's listen port reached somewhere it should not have.
## `PORT` no longer leaks into commands the Agent runs
diff --git a/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.zh.md b/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.zh.md
new file mode 100644
index 00000000..b01c7318
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-harness-env-and-dev-ports.zh.md
@@ -0,0 +1,28 @@
+# Harness 自己的端口不再冲突:移出 Agent 环境,也移出开发服务器
+
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `core`, `tooling`
+- **PR:** [#100](https://github.com/Prism-Shadow/penguin-harness/pull/100)
+
+[English](2026-07-29-harness-env-and-dev-ports.md)
+
+有两处地方,PenguinHarness 的监听端口到达了它本不该到达的位置。
+
+## `PORT` 不再泄漏进 Agent 运行的命令
+
+`penguin web` 把 `PORT` 与 `HOST` 写进自己的 `process.env`,以此作为与 server 模块通信的通道,而命令 Environment 是直接从 `process.env` 构建子进程环境的。于是每一次 `exec_command` 都继承了 `PORT=7364`——而 `npm run dev`、Vite、Next 以及大多数 Express 模板都会读 `PORT`,因此被要求启动开发服务器的 Agent 会试图绑定 **Harness 自己的端口**,而不是另选一个。
+
+子进程环境现在会丢弃 `PORT`、`HOST`,以及内部的 `PENGUIN_CLI_ENTRY` / `PENGUIN_WEB_DIST`。这些键是被移除而不是置空,因为程序可能只检测 `PORT` 是否存在而不看取值。即便该值来自用户的 shell(`PORT=3000 penguin web`),剥离同样适用:它依然意味着「PenguinHarness 所在的端口」,而这正是被派生的服务器必须避开的那个端口。Agent 的 vault 在此之后应用,因此在那里刻意设置 `PORT` 仍然能到达命令。
+
+`PENGUIN_HOME` 与其他面向用户的 `PENGUIN_*` 设置被刻意保留——一个正在开发 PenguinHarness 本身的 Agent 完全可能正当地需要同一个数据根目录,这属于配置决定而非泄漏。
+
+## 开发用后端从 7364 迁走
+
+`pnpm dev:server` 与已安装的 `penguin web` 绑定同一个端口,而这两者经常同时运行。结果要么是开发服务器绑定失败,要么——更安静也更糟——Vite 代理连的是**已安装**的那个服务器而不是正在开发的这个,于是代码改动看起来毫无效果。
+
+开发用后端现在监听 **7368**;7365、7366 与 7367 已分别是 web、landing 与 docs 的开发服务器。`pnpm dev:web` 仍在 7365 且仍是要打开的地址——变的只是它代理到哪里。完整的端口分配记录在 `core/internal/ports.ts` 中,那是读者会去查的地方,尽管开发端口本身不得不在 vite 配置与 package.json 脚本里写成字面量。
+
+覆盖依然有效,而且现在会一起移动:开发脚本只在 `PORT` 未设置时才施加它,而 Vite 代理读取 `PORT` 并以 7368 作为回退,因此改动后端端口会带着代理一起走,而不是把它留在旧地址上。
+
+开发用**数据根目录**当初正是为了同样的理由与已安装的分离;这次是把端口这一半也做完。
diff --git a/changelog/0.1.5/2026-07-29-llm-request-lifecycle.md b/changelog/0.1.5/2026-07-29-llm-request-lifecycle.md
index dacd4902..102cf112 100644
--- a/changelog/0.1.5/2026-07-29-llm-request-lifecycle.md
+++ b/changelog/0.1.5/2026-07-29-llm-request-lifecycle.md
@@ -1,5 +1,12 @@
# Core: what a failed request does next
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#104](https://github.com/Prism-Shadow/penguin-harness/pull/104), [#107](https://github.com/Prism-Shadow/penguin-harness/pull/107)
+
+[中文版](2026-07-29-llm-request-lifecycle.zh.md)
+
## Every failure but a rejected credential now retries
The engine used to reconnect on `timeout` and `malformed` only. `failed` — the bucket for "the classifier did not judge this transient" — ended the turn.
diff --git a/changelog/0.1.5/2026-07-29-llm-request-lifecycle.zh.md b/changelog/0.1.5/2026-07-29-llm-request-lifecycle.zh.md
new file mode 100644
index 00000000..e5b0daf8
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-llm-request-lifecycle.zh.md
@@ -0,0 +1,30 @@
+# Core:一个失败的请求接下来会做什么
+
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `core`
+- **PR:** [#104](https://github.com/Prism-Shadow/penguin-harness/pull/104), [#107](https://github.com/Prism-Shadow/penguin-harness/pull/107)
+
+[English](2026-07-29-llm-request-lifecycle.md)
+
+## 除被拒绝的凭证之外,所有失败现在都会重试
+
+引擎此前只在 `timeout` 与 `malformed` 时重连。`failed`——也就是「分类器没有判定它是瞬时的」这个兜底桶——会直接终结该轮。
+
+麻烦在于那个分类器是什么:一份已知错误码、HTTP 状态与消息词汇的允许清单。一个用自己的措辞描述瞬时故障的网关(比如 `Upstream HTTP/2 stream failed`)会径直穿过它,落进 `failed`。对一个真正永久的错误做重试,代价不过是走完退避阶梯然后以同样方式结束;而中止一个瞬时错误则会毁掉这一轮。于是策略放宽了:**`failed` 也重试,而 `auth` 是唯一会终止运行的 LLM 状态**——被拒绝的凭证不可能靠重试变得可用。这改变的是策略,不是分类法:一个 `failed` 请求在它的 `request_end` 上以及在成本中心里仍然报告为 `failed`,不会被改称超时。
+
+重试是可见的,因为用户看不见的重试就是一个没有解释、也没有出路的卡死会话:`failed` 的渲染与另外两者完全一致——Web App 的倒计时带「立即重试」与「放弃」,CLI 的 `[retry]` 行——而尝试次数在混合阶梯上持续累加,而不是从 #1 重新开始。
+
+压缩重试同一组状态。它此前在 `failed` 时停止,而轮次循环却会重试它,这个取舍恰好反了——一次放弃的压缩会保留完整上下文,于是下一个请求会以更小的余量再次撞上同一堵墙。仍然更窄的是预算:压缩跑在自己更短的上限上(3 次重试),而不是轮次循环的 5 次。
+
+可观测性跟随策略。被阶梯恢复过来的 `failed` 不再被归档为面向运维的事故——它作为预期情况记录在 `llm_failed_retried` 之下,而耗尽阶梯的情况仍作为非预期记录在 `llm_failed` 之下。认证失败迁到自己的 `llm_auth` 错误码:它们此前与 `llm_failed` 共用去重桶,因此一次紧跟在已恢复抖动之后的真实凭证失败会被直接丢弃。Trace 分段此前保有旧规则的第二份副本,把一次被重试的 `failed` 读作轮次边界,从而把一轮的 Token、时长与 TPS 抹到了两个 Task 上;它现在跟随引擎的循环。
+
+## 忽略 Stop 的 Provider 不再能把 Session 卡死
+
+在请求中途按下停止,可能会让一个 Session 永远处于运行状态——发不出消息、也压缩不了,而再按一次停止毫无作用。除了重启,这个 Session 就算完了。该问题是针对 Kimi 报告的。
+
+请求循环本已防住了其中一半。在循环挂起于某个 `yield` 时打断——这是常见情况,此时引擎正阻塞着等待工具审批——会被它在再次从上游拉取之前所做的中止检查捕获。而在循环**阻塞于拉取本身之内**时打断则未被覆盖:Provider 的流 Promise 永远不会敲定,于是什么都没回来供检查。空闲计时器也救不了它,因为到那时该请求内部的 AbortController 早已中止,而计时器自己的中止是一次空操作。没有任何东西还能结束这次运行。
+
+现在这次拉取会与一个「在该 controller 中止的那一刻即敲定」的 Promise 竞速——无论触发者是用户还是空闲计时器——因此无论上游怎么表现,请求总能收尾。被遗弃的流会被尽力而为地请求关闭,且刻意不去等待它:一个连自己的中止信号都忽略的流,很可能也会忽略这个。终态由哪一个触发器先触发来分类,因此停止仍然把运行结束为「被打断」,而空闲停滞仍然把它结束为一次会重连的超时。
+
+这一点刻意做成与 Provider 无关。「请求在其信号触发时是否终止」是 Harness 自己要守住的保证,而不是从底下碰巧是哪个 SDK 那里继承来的东西。
diff --git a/changelog/0.1.5/2026-07-29-offline-install-bundles.md b/changelog/0.1.5/2026-07-29-offline-install-bundles.md
index 43719d1f..a667a960 100644
--- a/changelog/0.1.5/2026-07-29-offline-install-bundles.md
+++ b/changelog/0.1.5/2026-07-29-offline-install-bundles.md
@@ -1,5 +1,12 @@
# Multi-platform offline installer bundles
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `tooling`, `ci`
+- **PR:** [#131](https://github.com/Prism-Shadow/penguin-harness/pull/131)
+
+[中文版](2026-07-29-offline-install-bundles.zh.md)
+
- Release builds now wrap each Windows, Linux and macOS platform archive with its checksum and native installer, producing five self-contained offline bundles.
- `install.sh` and `install.ps1` can install a verified local Release archive without network access while preserving their existing online behavior.
- POSIX offline bundles use a dedicated entry point that passes their payload explicitly, so the online installer never trusts archives discovered beside a temporary script.
diff --git a/changelog/0.1.5/2026-07-29-offline-install-bundles.zh.md b/changelog/0.1.5/2026-07-29-offline-install-bundles.zh.md
new file mode 100644
index 00000000..1478a6a6
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-offline-install-bundles.zh.md
@@ -0,0 +1,14 @@
+# 多平台离线安装包
+
+- **Date:** 2026-07-29
+- **Type:** feature
+- **Scope:** `tooling`, `ci`
+- **PR:** [#131](https://github.com/Prism-Shadow/penguin-harness/pull/131)
+
+[English](2026-07-29-offline-install-bundles.md)
+
+- 发布构建现在把 Windows、Linux 与 macOS 的每个平台压缩包连同其校验和与原生安装脚本一并打包,产出五个自包含的离线安装包。
+- `install.sh` 与 `install.ps1` 可以在无网络的情况下安装一个经校验的本地 Release 压缩包,同时保留它们既有的在线行为。
+- POSIX 离线包使用专门的入口点,显式传入其载荷,因此在线安装脚本绝不会信任那些恰好摆在临时脚本旁边的压缩包。
+- 平台包携带一份目标清单,使显式指定的本地压缩包路径可以被重命名,而不必依赖文件名来做兼容性检查。
+- Windows 离线包包含 `install.cmd` 作为双击入口;Linux 与 macOS 包则保持 `install.sh` 的可执行位。
diff --git a/changelog/0.1.5/2026-07-29-session-elapsed.md b/changelog/0.1.5/2026-07-29-session-elapsed.md
index 7b6f23d0..2c0969f4 100644
--- a/changelog/0.1.5/2026-07-29-session-elapsed.md
+++ b/changelog/0.1.5/2026-07-29-session-elapsed.md
@@ -1,5 +1,12 @@
# Web App: the Session's elapsed time is taken from Trace timestamps, so a reload stops restarting it
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#124](https://github.com/Prism-Shadow/penguin-harness/pull/124)
+
+[中文版](2026-07-29-session-elapsed.zh.md)
+
The elapsed chip in the chat header restarted from zero whenever a running Session was reloaded, and the figure it eventually settled on depended on the browser clock. Both came from the same root: the running Task was the one part of the number not derived from the Trace.
## Reloading mid-run resumes the chip instead of restarting it
diff --git a/changelog/0.1.5/2026-07-29-session-elapsed.zh.md b/changelog/0.1.5/2026-07-29-session-elapsed.zh.md
new file mode 100644
index 00000000..646a6b26
--- /dev/null
+++ b/changelog/0.1.5/2026-07-29-session-elapsed.zh.md
@@ -0,0 +1,24 @@
+# Web App:Session 的已用时间取自 Trace 时间戳,因此刷新不再让它重新计时
+
+- **Date:** 2026-07-29
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#124](https://github.com/Prism-Shadow/penguin-harness/pull/124)
+
+[English](2026-07-29-session-elapsed.md)
+
+聊天头部的已用时间芯片,在重新加载一个运行中的 Session 时会从零重新开始,而它最终稳定在的数字又取决于浏览器时钟。两者同出一源:运行中的那个 Task 是这个数字里唯一不由 Trace 推导出来的部分。
+
+## 运行中途刷新会续上芯片,而不是重新开始
+
+该芯片渲染的是已结算的跨 Task 总量,加上运行中 Task 至今的墙钟,而后半部分是从一个本地时钟锚点开始跳动的。历史重建会给每条被重放的消息喂入同一个「现在」,因此这个锚点被打上了页面加载那一瞬间的时间戳:一个已经跑了五分钟的 Task 被当作刚刚开始,于是芯片跌回已结算总量并再次从零往上爬。
+
+现在这个锚点会在重放结束后,按该 Task 身后已经过去的时间做回溯校正,因此跳动的数值会从它离开的地方续上。那段已过时间完全以服务端时间测量,之后才施加到本地时钟上,这既把客户端/服务端的时钟偏差排除在结果之外,又让芯片能平滑地继续跳动。实时流不受影响:它一次推送一条消息、用的是真实的当前时钟,而 Task 打开时那里的已过时间仍然是零。
+
+它是针对服务端自己的时钟、在读取时刻测量的,取自消息响应的 HTTP `Date` 头,而不是针对 Trace 的最后一条记录。这个区别正是让「仍在进行中的事件」也被计入的原因:当一个工具正在执行、一个 Request 正在流式输出,或一次压缩正在进行时,自它开始以来 Trace 上并没有追加任何内容,因此只测量 Trace 所记录内容的刷新,会完全看不到该事件已经花掉的时间。Trace 自身的跨度仍是下限——当没有返回 `Date` 头时它就是回退值;而一个被缓存或被改写的头只可能比真实当下更旧,因此它只会少报、绝不会超报。该头携带整秒,这已经比一个按整秒跳动的芯片所能显示的更细。
+
+## 一个已结算的轮次,实时看与重放看读数一致
+
+一个轮次的时长,是从它的第一条消息到它最后一个非压缩 `request_end` 之间的跨度。有一种情况逃出了这条规则:一个压根没有 `request_end` 的轮次——在它的第一个 Request 甚至还没运行时就被打断了——在恰好被实时观看时是用本地时钟测量的,而在稍后被重放时则是用消息跨度测量的。于是同一个轮次在刷新前显示一个数字、刷新后显示另一个,而前者还把空闲检测与中途加入的时延一并折了进去。它现在在两条路径上都结算为其消息跨度,而这个跨度仍由那次打断性中止自身的时间戳来界定。
+
+本地时钟现在只在恰好一个地方进入已用时间的计算——为进行中的 Task 做动画——而绝不进入任何已结算的数值。该统计量的含义未变:仍是每个 Task 墙钟之和。压缩的处理也未变,轮次中途的压缩计入跨度内、轮次之后的压缩计入跨度外,而聊天页与 Trace 页的总量之间那处刻意的差异也保持原样。
diff --git a/changelog/0.1.5/2026-07-30-backward-compatibility.md b/changelog/0.1.5/2026-07-30-backward-compatibility.md
index 23c486cf..23b04d86 100644
--- a/changelog/0.1.5/2026-07-30-backward-compatibility.md
+++ b/changelog/0.1.5/2026-07-30-backward-compatibility.md
@@ -1,5 +1,12 @@
# Backward compatibility in this batch
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `web`
+- **PR:** [#130](https://github.com/Prism-Shadow/penguin-harness/pull/130)
+
+[中文版](2026-07-30-backward-compatibility.zh.md)
+
Per the repo rule, every compatibility decision of the batch is recorded here once; the feature entries reference this file instead of re-telling it.
## The two per-panel width preferences are adopted into one shared key
diff --git a/changelog/0.1.5/2026-07-30-backward-compatibility.zh.md b/changelog/0.1.5/2026-07-30-backward-compatibility.zh.md
new file mode 100644
index 00000000..c0900b25
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-backward-compatibility.zh.md
@@ -0,0 +1,30 @@
+# 本批次的向后兼容
+
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `web`
+- **PR:** [#130](https://github.com/Prism-Shadow/penguin-harness/pull/130)
+
+[English](2026-07-30-backward-compatibility.md)
+
+按仓库规则,本批次的每一项兼容决策都在此记录一次;功能条目引用本文件,而不再复述。
+
+## 两个逐面板的宽度偏好被并入一个共享键
+
+Workspace 文件面板与 Agent 面板各自持久化自己被拖出的宽度——localStorage 中的 `penguin.filesPanelWidth` 与 `penguin.subagentsPanelWidth`。它们现在共用 `penguin.panelWidth` 这一个宽度,因此已存的取值必须被承接过来,否则每一个曾经拖过面板的用户在升级后首次加载时都会悄无声息地弹回默认宽度。
+
+**被容忍的旧形态:** 两个旧键中的任意一个。升级后的首次读取会同时查看两者,把其中**更宽的**那个采纳进新键,然后删除两个旧键。取更宽者,是因为这两个面板此前是各自独立调整尺寸的:取碰巧先被读到的那个键,可能会把用户两次选择中较窄的那个交给合并后的面板,而这在原本较宽的那个面板上读起来就是一次倒退。
+
+**生效范围:** 仅浏览器 localStorage——不涉及服务端数据、配置文件或 Trace。两个键都没有(或存储不可用)的用户会得到按比例的默认值,与此前一致。
+
+**用户需要做的:** 无。这次迁移是静默且单向的,不需要重新拖动任何东西。
+
+**移除:** 相关代码是 `packages/web/src/features/chat/use-panel-width.ts` 中的 `LEGACY_WIDTH_KEYS` 与 `storedWidth()`。它是自清理的——读取旧键的同时就删除它们——因此对任何在本次发布之后打开过一次 Web App 的人来说,它已是死代码。**它应当在下下个发布中删除**(即承载本批次的那个版本之后再隔一个版本),由准备那次发布的人执行;代码处的注释也是这么写的。仓库里没有别的东西读这些键,因此移除它是一次纯粹的删除,没有任何可见影响。留得更久只是多一个死分支——没有任何正确性上的理由需要保留它。
+
+## 面板可见性与草稿页的示例布局不构成兼容面
+
+这两者在本批次中都改变了行为,而且都不读取持久化状态:面板的开合是逐会话保存在内存中的(本就从未存储过),而示例文件夹的展开状态是会在挂载时重置的组件状态。升级的用户会立刻看到新行为,没有任何东西需要迁移。
+
+## 被重命名的导航条目与被删除的文案无需处理
+
+`nav.railAgents` 与 `benchmark.maxScore` 已从两份词条中删除,另有若干 `nav.*` 的措辞发生变化。界面文案是编译进产物包的,既不持久化也不被已存数据引用,因此不存在需要容忍的旧形态。在此记录只是为了说明已做过检查。
diff --git a/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.md b/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.md
index f96f2ef5..e4147c18 100644
--- a/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.md
+++ b/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.md
@@ -1,5 +1,12 @@
# Docs: the Tools and Configuration references match the code again
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `docs`
+- **PR:** [#126](https://github.com/Prism-Shadow/penguin-harness/pull/126)
+
+[中文版](2026-07-30-docs-tools-and-configuration-reference.zh.md)
+
Three reference blocks had fallen behind the codes they document
`run_subagent`'s argument block listed `model_id` alone, though a model is always referenced by the complete `(provider, model_id)` pair: the tool schema declares both and rejects a call carrying only one, and the page's own prose already said as much. Only the code block was stale, and it is the part a reader copies — both language editions now list `provider` beside `model_id`.
diff --git a/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.zh.md b/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.zh.md
new file mode 100644
index 00000000..f7b1a576
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-docs-tools-and-configuration-reference.zh.md
@@ -0,0 +1,16 @@
+# 文档:工具与配置参考重新与代码一致
+
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `docs`
+- **PR:** [#126](https://github.com/Prism-Shadow/penguin-harness/pull/126)
+
+[English](2026-07-30-docs-tools-and-configuration-reference.md)
+
+有三处参考区块落后于它们所描述的代码
+
+`run_subagent` 的参数区块只列出了 `model_id`,然而模型始终以完整的 `(provider, model_id)` 二元组引用:该工具的 schema 同时声明了两者,并会拒绝只带其中一个的调用,而页面自己的正文其实已经这么写了。落后的只有代码块,而那恰恰是读者会复制的部分——现在两个语言版本都在 `model_id` 旁列出了 `provider`。
+
+Provider 凭证表只覆盖了 `MODEL_PROVIDERS` 中十二个分组里的九个,遗漏了 `fireworks`、`qwen-token-plan` 与 `qwen-pay-as-you-go` 三个网关。这三者读取的都是 `OPENAI_API_KEY` / `OPENAI_BASE_URL`,原因与 `openrouter`、`siliconflow` 早已列在那一行上是一样的:网关的模型 id 无法被自动路由,因此其条目走 OpenAI 客户端。对于表中缺失的分组,人们自然而然的猜测会错两次,因为无论是形似厂商的 `FIREWORKS_API_KEY`,还是该网关所转售模型对应厂商的变量,都不会被读取。
+
+Project 模型条目表漏掉了 `max_tokens`,也就是那个在设置后会覆盖 Agent 的 `model.max_tokens` 的逐模型输出上限。正是它才让窄上下文模型变得可用——Agent 预置的默认值 32000 在小窗口里根本容不下它加上任何提示词,而上游会直接拒绝这样的请求——而 CLI 参考早已记录了写入该值的那个参数。
diff --git a/changelog/0.1.5/2026-07-30-install-docs-and-landing.md b/changelog/0.1.5/2026-07-30-install-docs-and-landing.md
index e3192bb3..99229404 100644
--- a/changelog/0.1.5/2026-07-30-install-docs-and-landing.md
+++ b/changelog/0.1.5/2026-07-30-install-docs-and-landing.md
@@ -1,5 +1,12 @@
# Install documentation and landing refresh for 0.1.5
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `landing`, `docs`
+- **PR:** [#134](https://github.com/Prism-Shadow/penguin-harness/pull/134)
+
+[中文版](2026-07-30-install-docs-and-landing.zh.md)
+
The 0.1.5 release repackages how the product introduces and installs itself, in both READMEs and on the landing site.
## One tagline pair everywhere
diff --git a/changelog/0.1.5/2026-07-30-install-docs-and-landing.zh.md b/changelog/0.1.5/2026-07-30-install-docs-and-landing.zh.md
new file mode 100644
index 00000000..afc05c73
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-install-docs-and-landing.zh.md
@@ -0,0 +1,24 @@
+# 0.1.5 的安装文档与落地页刷新
+
+- **Date:** 2026-07-30
+- **Type:** process
+- **Scope:** `landing`, `docs`
+- **PR:** [#134](https://github.com/Prism-Shadow/penguin-harness/pull/134)
+
+[English](2026-07-30-install-docs-and-landing.md)
+
+0.1.5 重新打包了产品自我介绍与自我安装的方式,涉及两份 README 与落地页站点。
+
+## 全站统一一对标语
+
+README 与落地页统一到同样的两行:**"Your Automated Agent Builder, Right on Your Desktop / Server"**(落地页首屏仍轮播 Desktop/Server 这个词,README 则用斜杠把这一对写在一起)与副标题 **"Create Self-Evolving Agents in One Click"**——中文为「全自动 Agent 构建平台,运行在你的桌面 / 服务器上」与「一键创建自进化 Agent」。首屏的 "Agents building agents" 徽章被移除;该说法移到 LangChain 对比小节,该节改名为 **"Building Agents with Agents"**(用 Agent 构建 Agent)。
+
+## README:每种安装方式都写全
+
+安装小节现在为每种方式各给一段完整、可直接复制粘贴的代码块——Linux、macOS 与 Windows 的在线一行命令,以及 npm——每段都以 `penguin web` 结尾;五个离线安装包则按操作系统记录在一个可折叠的 `<details>` 块内(解压并运行的命令、架构提示,以及无条件的 SHA256 说明)。Web App 的功能卖点并入该小节的引言;CLI & SDK 小节未变。
+
+## 落地页:用切换,不用罗列
+
+- 首屏的安装框与快速开始的安装步骤都改为按操作系统切换(Linux / macOS / Windows),而不是把所有命令堆叠起来;快速开始另加一层在线/离线切换,离线一侧带上安装包说明、按操作系统的命令、架构提示与 Releases 链接。离线命令与在线一行命令并列存放在 `lib/links.ts` 中。
+- 公告栏从四条轮播减为两条:Kimi K3 与免费模型,以及 AMD 开发者计划的额度。
+- 0.1.5 发布文章以两种语言发布(`penguinharness-0-1-5`),涵盖离线安装、附件与输入图片、运行内的 LLM 恢复,以及 Skill 库升级。
diff --git a/changelog/0.1.5/2026-07-30-paste-filter-utf8.md b/changelog/0.1.5/2026-07-30-paste-filter-utf8.md
index 66a75e56..f99d2480 100644
--- a/changelog/0.1.5/2026-07-30-paste-filter-utf8.md
+++ b/changelog/0.1.5/2026-07-30-paste-filter-utf8.md
@@ -1,5 +1,12 @@
# CLI: pasting CJK or emoji into chat no longer corrupts characters at chunk boundaries
+- **Date:** 2026-07-30
+- **Type:** fix
+- **Scope:** `cli`
+- **PR:** [#127](https://github.com/Prism-Shadow/penguin-harness/pull/127)
+
+[中文版](2026-07-30-paste-filter-utf8.zh.md)
+
`penguin chat` decoded each stdin chunk on its own, so a multi-byte character that a terminal split across two reads was destroyed in both halves. Pasting a few thousand Chinese characters was enough to lose one.
`PasteFilter` sits between raw-mode stdin and readline, and a raw-mode chunk ends wherever the terminal's buffer ended — routinely mid-character, since a paste is delivered in fixed-size blocks that have nothing to do with character boundaries. Decoding a chunk in isolation turned its incomplete trailing bytes into U+FFFD immediately, and the leading bytes of the next chunk into more of them: a single 3-byte character came out as three replacement characters rather than one, so the text also silently grew. Pasting about 1400 Chinese characters — roughly one 4KB terminal block — was already enough to hit it, and the loss was invisible until the model answered about text the user never sent.
diff --git a/changelog/0.1.5/2026-07-30-paste-filter-utf8.zh.md b/changelog/0.1.5/2026-07-30-paste-filter-utf8.zh.md
new file mode 100644
index 00000000..54ad3f02
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-paste-filter-utf8.zh.md
@@ -0,0 +1,16 @@
+# CLI:向聊天中粘贴中日韩文字或 emoji 不再在分块边界处损坏字符
+
+- **Date:** 2026-07-30
+- **Type:** fix
+- **Scope:** `cli`
+- **PR:** [#127](https://github.com/Prism-Shadow/penguin-harness/pull/127)
+
+[English](2026-07-30-paste-filter-utf8.md)
+
+`penguin chat` 此前对每个 stdin 分块单独解码,因此被终端切分到两次读取中的多字节字符会在两半里同时被毁掉。粘贴几千个汉字就足以丢掉一个。
+
+`PasteFilter` 位于原始模式 stdin 与 readline 之间,而原始模式的分块在终端缓冲区结束的地方结束——经常正好在字符中间,因为粘贴是以固定大小的块交付的,与字符边界毫无关系。孤立地解码一个分块,会立刻把它末尾不完整的字节变成 U+FFFD,又把下一个分块开头的字节变成更多的 U+FFFD:一个 3 字节的字符出来变成三个替换字符而不是一个,因此文本还会悄悄变长。粘贴约 1400 个汉字——大致就是一个 4KB 的终端块——就已经足以触发,而且这种丢失在模型开始回答用户从未发送过的文本之前是不可见的。
+
+解码现在经 `StringDecoder` 跨分块进行,它会把不完整的尾部字节序列保留到下一个分块将其补全为止。对 Agent 所运行命令的输出,`setEncoding("utf8")` 早已是这么做的;输入路径是唯一一处手写解码的地方。既有的 `leftover` 机制——用于重组被分块切开的括号粘贴标记——保持不变:它作用于已解码的文本,因此它能看到的字符本就是完整的。
+
+测试喂入的是字节切片而非字符串,因为一个字符串分块按定义就是整数个字符,压根表达不出这个缺陷:一个被从中切断的 CJK 字符、一个在第二个字节处被切断的 emoji、一个逐字节交付的字符,以及一个标记与一个字符在同一批分块边界上同时被撕开。
diff --git a/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.md b/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.md
index f4a1fe2f..8a3aa9ea 100644
--- a/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.md
+++ b/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.md
@@ -1,5 +1,12 @@
# web-design and penguin-sdk skills: editorial theme, output contracts, thinking and images
+- **Date:** 2026-07-30
+- **Type:** feature
+- **Scope:** `skills`, `web`
+- **PR:** [#133](https://github.com/Prism-Shadow/penguin-harness/pull/133)
+
+[中文版](2026-07-30-skills-web-design-and-penguin-sdk.zh.md)
+
Two of the built-in skills were reworked across three iterations (web-design v3 → v6, penguin-sdk v14 → v17), with the goal of getting better results from shorter user prompts.
## web-design
diff --git a/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.zh.md b/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.zh.md
new file mode 100644
index 00000000..9ef49cac
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-skills-web-design-and-penguin-sdk.zh.md
@@ -0,0 +1,28 @@
+# web-design 与 penguin-sdk Skill:编辑风主题、输出契约、思考与图片
+
+- **Date:** 2026-07-30
+- **Type:** feature
+- **Scope:** `skills`, `web`
+- **PR:** [#133](https://github.com/Prism-Shadow/penguin-harness/pull/133)
+
+[English](2026-07-30-skills-web-design-and-penguin-sdk.md)
+
+两个内置 Skill 经过三轮迭代重做(web-design v3 → v6,penguin-sdk v14 → v17),目标是让更短的用户提示词得到更好的结果。
+
+## web-design
+
+- 第二套完整的视觉语言,即可选启用的**纸质编辑风**主题:暖色的纸/墨/细线 Token,一个暖强调色加一个状态绿,系统衬线体的展示级标题配无衬线正文(中日韩衬线回退,仍不使用 CDN 字体),以大写等宽的微标签作为层级工具,更紧的圆角配柔和暖阴影,以及标志性形状(非对称圆角的品牌标记、与之呼应的用户气泡圆角、轨道徽章装饰)。仅浅色;GitHub 风格的默认主题保留,二者绝不混用。
+- 与主题无关的聊天/RAG 升级:可选的知识侧栏(带索引状态行)、更完整的空状态构图(眉题 → 单强调词标题 → 副标题 → 药丸标签或编号示例卡片)、答案流式输出期间的检索状态行、作为另一种引用呈现方式的来源折叠面板,以及输入区改进(快捷键提示、免责声明、渐变淡出)。
+- 一份**交付即完整**的契约:那一行请求就是全部规格——该 Skill 从不询问页面该长什么样,而是按请求形态路由到相应配方,并且每次交付都包含 `lang`/viewport/title、持久化的深色模式、经过设计的加载/空/错误状态、可用的键盘路径、alt 文本,以及零外部请求。
+- 针对现代模型新增的两类消息的聊天配方:可折叠的推理区块(在第一个答案增量到来时自动折叠,绝不重新样式化成答案正文),以及输入区图片附件(回形针/粘贴/拖放、缩略图队列、消息内预览)。
+
+## penguin-sdk
+
+- 一节**思考与图片消息**,已对照 core 的 OmniMessage 协议核实:把 `partial_thinking` 流式送入它自己的折叠通道并忽略 `fidelity`(那是 core 的重放记账);用 `imageUrlMessage` 与 `userText` 并列构建图片输入,并让配置中的 `vision` 标记优雅降级(折叠为 `[attached image: <path>]` 并经项目的 `vision_model` 回读);另附一份速查表,覆盖其余与应用相关的载荷(`request_end` 的错误信号、`token_usage`、压缩事件、工具活动)。
+- 流式循环的指引涵盖 `opts.thinkingLevel`(`none…xhigh`,对 `model.thinking_level` 的逐轮覆盖),并把 Session 生命周期点名为应用的记忆模型——有状态聊天用一个长生命周期 Session,无状态问答则每个请求一个。
+- RAG 配方中新增一段**输出格式与语言**:在人设与逐请求提示词中固定格式(纯文本、裸 `[n]` 引用——或在结构确有必要时用一份经过消毒的 HTML 白名单),而不是塞进一个 Markdown 渲染器;并用一份在入库时构建、于 `search()` 中展开的小型双语关键词映射,来桥接跨语言的词法检索。
+- 原本重叠的「构建之前」与「先检查模型」两节合并为一节关于 key 与数据根目录的内容,每条规则只陈述一次。
+
+## Web 草稿页示例
+
+知识既已移入 Skill,草稿页的示例提示词在两种语言下都变短了:RAG 示例去掉了它那段关于 BM25 跨语言的讲解与空状态指令(保留双语自测步骤),而游戏中心 / 音乐播放器示例去掉了主题持久化与响应式细节——那些现在由 web-design Skill 来保证。
diff --git a/changelog/0.1.5/2026-07-30-web-app-refinements.md b/changelog/0.1.5/2026-07-30-web-app-refinements.md
index 952070bf..fd389288 100644
--- a/changelog/0.1.5/2026-07-30-web-app-refinements.md
+++ b/changelog/0.1.5/2026-07-30-web-app-refinements.md
@@ -1,5 +1,12 @@
# Web App: one name per navigation entry, one update row, one panel width, and a fixed-height example shelf
+- **Date:** 2026-07-30
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#119](https://github.com/Prism-Shadow/penguin-harness/pull/119), [#130](https://github.com/Prism-Shadow/penguin-harness/pull/130)
+
+[中文版](2026-07-30-web-app-refinements.zh.md)
+
A pass over the surfaces you touch on every visit. Navigation entries settle on a single name each, the user menu's three update rows collapse into one, the two docked panels stop behaving like two different panels, Project display names become editable, and the draft page's examples become a fixed-height shelf that can keep growing.
## Navigation entries have one name each
diff --git a/changelog/0.1.5/2026-07-30-web-app-refinements.zh.md b/changelog/0.1.5/2026-07-30-web-app-refinements.zh.md
new file mode 100644
index 00000000..52729a4e
--- /dev/null
+++ b/changelog/0.1.5/2026-07-30-web-app-refinements.zh.md
@@ -0,0 +1,64 @@
+# Web App:每个导航条目一个名字、一行更新入口、一个面板宽度,以及定高的示例架
+
+- **Date:** 2026-07-30
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#119](https://github.com/Prism-Shadow/penguin-harness/pull/119), [#130](https://github.com/Prism-Shadow/penguin-harness/pull/130)
+
+[English](2026-07-30-web-app-refinements.md)
+
+对每次访问都会碰到的那些界面做的一轮梳理。导航条目各自定于一个名字,用户菜单里三行更新入口收拢为一行,两个停靠面板不再表现得像两个不同的面板,Project 显示名变为可编辑,草稿页的示例变成一个定高、可持续扩充的架子。
+
+## 导航条目各有唯一名字
+
+侧边栏、收起态导航栏与页面标题此前各自漂移——导航栏写「智能体」而固定导航写「智能体仓库」,英文里 Costs 与 Trajectory 混用。现在每个条目在每种语言下恰好一个名字,并在所有地方使用:
+
+| | |
+| --- | --- |
+| 新建对话 / New chat | 智能体 / Agents |
+| 技能库 / Skills | 模型库 / Models |
+| 成本中心 / Cost Center | 轨迹观测 / Trajectories |
+| 评估中心 / Evaluation Center | |
+
+仅用于导航栏的 `nav.railAgents` 字符串已删除,因为两份词条现在对该条目的措辞与固定导航一致。
+
+## 侧边栏的「新建对话」不再与滚动的列表相撞
+
+滚动侧边栏时,导航条目会一路贴到固定的「新建对话」按钮上,两处文字挨在一起。按钮下方的那段间距是滚动容器**内部**的内边距,因此它属于可滚动内容并随之滚走。它现在属于固定区块,从而在任何滚动位置都保持——与两个相邻导航行之间同样的文字到文字的节奏。
+
+## 三行更新入口变成一行
+
+最糟的情况下,用户菜单会把发布说明链接、管理员的「立即更新」行与「检查更新」行三者叠在一起。现在只有一行,具备两种状态:在尚未得知有更新版本之前,它显示「检查更新」并执行手动检查;一旦得知,它就以一个前置的强调色圆点标出该版本,并打开更新对话框。版本号旁的上标角标已移除——标签本身就点明了新版本。
+
+该对话框吸收了原先各行承载的内容:它现在展示发布说明链接,并且只向管理员提供自更新。非管理员看到的是同样的版本与链接,只读,而不是一个端点本来就会拒绝的操作。
+
+## 两个停靠面板表现为一个面板
+
+Workspace 文件面板与 Agent 面板是互斥的——打开一个就关闭另一个——因此在观感上它们本就是一个会切换内容的右侧面板。它们现在也照此行事:
+
+- **一个宽度。** 拖动任一面板会立即改变另一个的尺寸,并作为单一的布局偏好持久化。存放在此前任一逐面板键下的宽度会被采纳一次,取两者中更宽的那个,因此合并后的面板绝不会比原先任一面板都窄。
+- **更宽的默认值**,约为窗口的 40% 而不是约三分之一(上限未变,仍是窗口的一半、720px 封顶)。现在一个面板既要放文件树,也要放子 Agent 的对话记录,而对话记录是要求更高的那一位租客——三分之一的窗口会把它渲染成一列窄窄的、不断折行的工具输出。
+- **一条可见性规则。** 打开的面板能在切换对话时存活;**新建对话**是唯一会把两者都关闭的时点,因此从草稿创建的 Session 开场时两个面板都是关的。这项改动退役了 Agent 面板此前按 Task 作用域的自动关闭,而那正是两者之间唯一一处刻意的分歧。该面板保留「在当前 Task 首次实时派生子 Agent 时自动打开」的行为;Task 边界现在只是重新武装这次尝试,而不再关闭任何东西。
+
+## Agent 面板会说出子 Agent 被派去做什么
+
+调用图此前只写出每个子节点的 Agent,却从不写出它的任务,因此打开一份子对话记录时,看不到它自身目的的任何交代。图中每个节点现在是两行:Agent 名称连同其已用时间与状态,其下是派生它的那次 `run_subagent` 调用中由模型撰写的 `description`。这句话是自由格式的,而节点框是固定尺寸,因此它被截断为一行,完整文本放在该节点的 tooltip 中。节点高度保持统一——没有描述的节点(根节点、独立的子节点、被省略的那种)会丢掉第二行并把第一行居中,而不是收缩高度,因为收缩会连带牵动行的排布与连线几何。
+
+## Project 显示名可编辑
+
+Project 设置对话框此前把显示名作为静态文本展示,改名意味着重建 Project。所有者现在可以编辑它(`PATCH /api/projects/:projectId`,把 `name` 写入 `project_config.toml` 并保留文件中的其他一切)。id 保持不可变——它命名着目录、Workspace 路径与每一处已存引用——现在以弱化的说明文字置于该字段下方。成员看到的名称为只读。
+
+## 草稿页的示例变成定高的架子
+
+三张示例卡片占据了页面上固定的一块,且没有地方再加第四张。它们现在是两个书签式的文件夹,**搭建网页应用 / Build web apps** 与 **搭建和优化智能体 / Build and optimize agents**,任何时刻恰好有一个处于展开状态:选中一个文件夹会关闭上一个,而展开的那个无法被收起。因此这一块的高度是恒定的——两行文件夹加上一个文件夹的内容行——所以切换文件夹时它下方的东西不会位移,而一个六行的展示区内部也永远不需要滚动条。
+
+每个示例现在是单行标题,它那句描述移入行的 tooltip,图标移到文件夹行上——那才是你真正会扫视以挑选类别的地方。
+
+目录中新增两项:
+
+- **由多个 Agent 搭建的迷你游戏中心**——十个游戏,两两机制不重样,各自是一个单文件的 `games/<slug>/index.html`,由子 Agent 并行搭建,统一挂在一个索引页之后。
+- **Claude Code 文档 RAG Agent** 示例现在点明了查询与语料的语言匹配问题。文档是英文而问题常是中文,而对 BM25 这类词法检索器,中文查询必须先桥接到英文——否则一个词都匹配不上,检索会静默退化为空而不是失败。它的自测现在覆盖一个中文问题与一个英文问题。
+
+## 评估中心
+
+Case 行与陈述预览此前都打印「Max 100」。这个量程不该由界面来断言——一个 Benchmark 的总分由它自己的评分 Rubric 定义——因此该标签连同其字符串一并移除。「查看任务」也不再以强调链接色渲染:行本身就是按钮,因此其中一个强调色的标签读起来像是第二个可单独点击的目标。它现在与 Workspace 下载链接一样采用安静的灰色,悬停反馈交由行来承担。
diff --git a/changelog/0.1.5/README.md b/changelog/0.1.5/README.md
deleted file mode 100644
index 24aa1d8f..00000000
--- a/changelog/0.1.5/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Version 0.1.5
-
-Released on 2026-07-30.
-
-- [2026-07-30] Skills: web-design (v3 → v6) gains an opt-in paper editorial theme, a ship-complete delivery contract, and chat recipes for the thinking block and composer attachments; penguin-sdk (v14 → v17) documents the thinking and image message kinds, a plain-text output contract, cross-language BM25 retrieval, and a merged keys/data-root setup flow — with the Web draft page's example prompts shortened now that the skills carry the knowledge. ([details](2026-07-30-skills-web-design-and-penguin-sdk.md))
-
-- [2026-07-30] Sites and docs: the README and landing page unify on the new tagline pair ("Your Automated Agent Builder, Right on Your Desktop / Server" · "Create Self-Evolving Agents in One Click"); the README spells out every install method as a complete per-OS code block with the offline bundles behind a collapsible; the landing install sections switch by OS and method instead of listing everything; the announcement bar drops to two items; the LangChain comparison is retitled "Building Agents with Agents"; and the 0.1.5 release post ships in both languages. ([details](2026-07-30-install-docs-and-landing.md))
-
-- [2026-07-30] Backward compatibility: the batch's compat decisions in one place — the two per-panel localStorage width keys adopted into one shared key (widest wins, self-cleaning, with its removal release named), plus the changes checked and found to need no handling. ([details](2026-07-30-backward-compatibility.md))
-
-- [2026-07-30] Web App: navigation entries settle on one name each across the sidebar, the collapsed rail and page titles; the user menu's three update rows collapse into one; the Workspace and Agents panels share a single (wider) width and a single open/closed lifetime, closing only on a new chat; the Agents panel says what each subagent was sent to do; Project display names become editable; and the draft page's examples become a fixed-height, always-one-open folder shelf with a multi-agent game-center example added. ([details](2026-07-30-web-app-refinements.md))
-
-- [2026-07-30] CLI: pasting CJK or emoji into `penguin chat` no longer corrupts a character wherever the terminal split its stdin blocks — each chunk was decoded on its own, so a character torn across two reads became three replacement characters instead of one, and about 1400 Chinese characters was enough to trigger it. ([details](2026-07-30-paste-filter-utf8.md))
-
-- [2026-07-30] Docs: three reference blocks catch up with the code they document — `run_subagent`'s argument block lists the `provider` that `model_id` must be paired with, the provider credential table covers the three gateway groups it had been missing, and the Project model entry table documents `max_tokens`. ([details](2026-07-30-docs-tools-and-configuration-reference.md))
-
-- [2026-07-29] Core: every LLM failure except a rejected credential now retries inside the run — the classifier separating transient from permanent is an allowlist, so a gateway wording a transient fault its own way used to kill the turn — with the retry visible in both frontends, compaction on the same set under its own shorter budget, and a recovered failure no longer reported to the operator as an incident. Separately, pressing Stop mid-request can no longer leave a Session running forever when the provider's stream neither yields nor rejects after the abort. ([details](2026-07-29-llm-request-lifecycle.md))
-
-- [2026-07-29] Cost center: the error table can page back through the whole history instead of showing only the newest 20, its source column reads `[env]` rather than `environment ·`, and an ordinary non-zero exit from a command tool is no longer recorded as an error — `grep` finding nothing had been crowding out the failures the table exists to show. ([details](2026-07-29-cost-center-errors.md))
-
-- [2026-07-29] Core and tooling: `PORT` / `HOST` and the internal CLI plumbing no longer reach commands the Agent runs, so a dev server started by `exec_command` picks its own port instead of binding the harness's; and the development backend moves to 7368, so `pnpm dev` no longer collides with an installed `penguin web` — or, quieter and worse, proxies to it. ([details](2026-07-29-harness-env-and-dev-ports.md))
-
-- [2026-07-29] Web App: the composer can attach files of any type — written to the Session scratchpad and handed to the model as `[attached file: <path>]` lines, keeping non-ASCII names — and the `@` mention becomes an `/agent` command; both switch commands are session-only and stage their pick as a chip, cached with the text, until Enter sends. ([details](2026-07-29-composer-attachments-and-switch-commands.md))
-
-- [2026-07-29] Core: the default system prompt is about a tenth shorter (1087 → 969 words), with the trim concentrated in the sections re-read every turn. It now pins replies to the user's language, states the API-key stop rule once, points at parallel subagents for large tasks, and has tooling installed once into a shared per-Agent `shared_env/` directory while project dependencies stay in the project. The App Data Dir rule also stops forbidding deliverables in a tree that a temporary Workspace lives inside. Existing Agents keep their own prompt. ([details](2026-07-29-default-system-prompt.md))
-
-- [2026-07-29] Web App: the chat header's elapsed chip no longer restarts from zero when a running Session is reloaded and now counts an event still in flight, and a round interrupted before its first Request settles to the same figure whether it was watched live or replayed — the running Task is anchored to the server's own clock instead of the browser's. ([details](2026-07-29-session-elapsed.md))
-
-- [2026-07-28] Web App: model configuration stops inviting the browser's saved login — every form control opts out of autofill unless it declares a real credential role, and a secret field says `new-password`, the only value Chrome and Safari honor on a password box; a closed docked side panel no longer paints its 1px divider next to the open one, which read as a second, empty panel beside the Workspace files; a provider-signature message carrying no text stops drawing an empty reply bubble after a thinking segment; Benchmark costs now follow the display currency selected in settings; the tool card states a call's outcome once instead of twice; and no page can grow the document into a second scrollbar that drags the whole shell. ([details](2026-07-28-web-app.md))
-
-- [2026-07-28] Web App and CLI: duration and byte abbreviations now carry into the next unit instead of printing `1m60s` or `1024KB` — both helpers rounded the value they displayed but chose the unit (or the minute/second split) from the raw input. ([details](2026-07-28-duration-and-byte-formatting.md))
-
-- [2026-07-27] Input images: mid-run steering carries them (an uncaptioned image is a complete steering message), a goal objective accepts them as scratchpad paths on every model since it is re-injected as text each round, and the composer's mid-run action button can no longer sit disabled with Stop displaced. ([details](2026-07-27-input-images.md))
-
-- [2026-07-27] Windows: the `win32-x64` package bundles MinGit under `git/`, so `exec_command` has a real bash even on a machine with no Git for Windows — the shell stops depending on what happens to be installed. A user's own Git for Windows still wins (its MSYS userland is the fuller one); the bundle is the floor, and PowerShell is now reached only by npm installs. GPLv2 obligations are recorded in a new root `THIRD-PARTY-NOTICES.md`. ([details](2026-07-27-windows-bundled-shell.md))
-
-- [2026-07-27] Sites: the 0.1.4 release post in both languages, with a capture script for its screenshots. ([details](2026-07-27-sites-and-blog.md))
-
-- [2026-07-25] Agent tuning: the Web App gains an end-to-end example for creating, benchmarking, and optimizing an Agent through isolated CLI Sessions, while the built-in tuning Skills tighten phase ownership, private evaluation boundaries, and Evaluator dispatch contracts. ([details](2026-07-25-agent-tuning-pipeline.md))
diff --git a/changelog/0.2.0/2026-07-30-file-summary-task-boundary.md b/changelog/0.2.0/2026-07-30-file-summary-task-boundary.md
index 784e15a3..ea5de2ab 100644
--- a/changelog/0.2.0/2026-07-30-file-summary-task-boundary.md
+++ b/changelog/0.2.0/2026-07-30-file-summary-task-boundary.md
@@ -1,3 +1,10 @@
# File summaries wait for the Task to finish
+- **Date:** 2026-07-30
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#143](https://github.com/Prism-Shadow/penguin-harness/pull/143)
+
+[中文版](2026-07-30-file-summary-task-boundary.zh.md)
+
The main conversation's file summary no longer appears after an intermediate assistant message while tools and later model turns are still running. It now appears once at the completed Task boundary and scans all assistant text from that Task, so paths mentioned before a tool call are still available in the final summary. Nested agent conversations keep their existing per-message summaries because their embedded stream does not expose the parent view's Task footer. File-existence caching also stops retaining negative results, allowing a later Task to create and surface a path that was previously absent. Existence checks go out in server-sized batches, so a long Task referencing more paths than one files/stat call accepts still gets its summary instead of silently losing it.
diff --git a/changelog/0.2.0/2026-07-30-file-summary-task-boundary.zh.md b/changelog/0.2.0/2026-07-30-file-summary-task-boundary.zh.md
new file mode 100644
index 00000000..83c53a2d
--- /dev/null
+++ b/changelog/0.2.0/2026-07-30-file-summary-task-boundary.zh.md
@@ -0,0 +1,10 @@
+# 文件摘要等待 Task 结束
+
+- **Date:** 2026-07-30
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#143](https://github.com/Prism-Shadow/penguin-harness/pull/143)
+
+[English](2026-07-30-file-summary-task-boundary.md)
+
+主对话的文件摘要不再在工具与后续模型轮次仍在运行时、于某条中间助手消息之后出现。它现在只在 Task 完成的边界处出现一次,并扫描该 Task 中的全部助手文本,因此在工具调用之前提到的路径在最终摘要中仍然可用。嵌套的 Agent 对话保留其既有的逐消息摘要,因为它们内嵌的流不暴露父视图的 Task 页脚。文件存在性缓存也不再保留否定结果,使后续 Task 得以创建并呈现一个此前并不存在的路径。存在性检查按服务端可接受的批量大小发出,因此一个引用路径数超过单次 files/stat 调用上限的长 Task 仍能拿到它的摘要,而不是无声地丢掉。
diff --git a/changelog/0.2.0/2026-07-31-backward-compatibility.md b/changelog/0.2.0/2026-07-31-backward-compatibility.md
index a5f9a461..19867160 100644
--- a/changelog/0.2.0/2026-07-31-backward-compatibility.md
+++ b/changelog/0.2.0/2026-07-31-backward-compatibility.md
@@ -1,5 +1,12 @@
# Backward compatibility in this batch
+- **Date:** 2026-07-31
+- **Type:** process
+- **Scope:** `tooling`, `core`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142), [#145](https://github.com/Prism-Shadow/penguin-harness/pull/145)
+
+[中文版](2026-07-31-backward-compatibility.zh.md)
+
Per the repo rule, every compatibility decision of the batch is recorded here once; the feature entries reference this file instead of re-telling it.
## Installers keep a legacy program-archive path for pre-0.1.6 releases
diff --git a/changelog/0.2.0/2026-07-31-backward-compatibility.zh.md b/changelog/0.2.0/2026-07-31-backward-compatibility.zh.md
new file mode 100644
index 00000000..140cbf48
--- /dev/null
+++ b/changelog/0.2.0/2026-07-31-backward-compatibility.zh.md
@@ -0,0 +1,34 @@
+# 本批次的向后兼容
+
+- **Date:** 2026-07-31
+- **Type:** process
+- **Scope:** `tooling`, `core`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142), [#145](https://github.com/Prism-Shadow/penguin-harness/pull/145)
+
+[English](2026-07-31-backward-compatibility.md)
+
+按仓库规则,本批次的每一项兼容决策都在此记录一次;功能条目引用本文件,而不再复述。
+
+## 安装脚本为 0.1.6 之前的发布保留一条旧的程序压缩包路径
+
+从本批次起,规范的 Release 产物是一个扁平的安装包,其载荷以 `payload.tar.gz` / `payload.zip` 的形式置于其中。直到 v0.1.5 为止的发布,在同样的产物名下直接提供程序目录树(顶层为 `penguin/`),而用户仍然可以固定到那些版本,或在本地保有这类文件。
+
+**被容忍的旧形态:** 任何顶层没有 `payload.*` 的压缩包都被当作程序压缩包处理。以 `--version` 固定到 0.1.6 之前的发布会下载旧的原始产物并经这条路径安装;`--archive` / `-ArchivePath` 既接受新的安装包或其内层载荷,也接受旧的原始压缩包(仍要求相邻的 `.sha256`,被改名的文件仍回退到规范产物名的校验和加上清单规则)。
+
+**生效范围:** 仅限 `install.sh` 与 `install.ps1` 中的形态探测与程序压缩包分支。发布打包、CI 与文档只描述新形态;不涉及任何磁盘上的用户数据(`~/.penguin/data` 从来就不属于安装或升级的范围)。
+
+**用户需要做的:** 对于文档中记载的流程,无。
+
+**移除:** 只要 0.1.6 之前的发布仍可能成为 `--version` 的目标,这条旧分支就应保留。当某次发布决定不再支持安装 0.1.6 之前的版本时,由准备那次发布的人删除程序压缩包分支,连同 `tar -tzf` / zip 条目探测一并删除;两个安装脚本中的相应位置都引用了本文件。
+
+## 从 v0.1.5 及更早发布中保存下来的安装脚本无法安装新产物
+
+这是一次刻意的不兼容,而非被处理掉的兼容:旧安装脚本会以同样的名字下载产物、通过外层校验和,然后以它那句「unexpected archive layout: top-level penguin/ missing」报错失败,因为新产物是一个安装包。文档中记载的安装命令不受影响——penguin.ooo 的转发脚本在运行时抓取的是附加在最新 Release 上的安装脚本——而对于一份保存下来的旧脚本,修法就是重新抓取一次。旧发布自己的产物不受触碰:一个固定在旧版本上的旧安装脚本可以永远正常工作。
+
+## Windows 载荷去掉了它的 penguin.ps1 启动器
+
+这是一次带自清理升级路径的刻意移除,而不是被容忍的旧形态。输入 `penguin` 不受影响——PowerShell 与 cmd.exe 都会解析到 `bin\penguin.cmd`,而它豁免于那条曾在默认客户端 Windows 上拦住 `.ps1` 启动器的执行策略。只有直接调用 `.\penguin.ps1` 的用法需要改为 `penguin` / `penguin.cmd`。本次改动之前完成的安装会保留其旧启动器直到下一次升级:安装脚本整体替换 `bin\`,因此重新运行它会连同旧 `bin\` 的其余内容一起移除陈旧的 `penguin.ps1`——这也正是那些已经出现「running scripts is disabled」错误的机器的修法。已经没有任何东西读取或重新生成该文件;无需后续的移除动作。
+
+## 恢复截断工具输出这一批次无需处理
+
+`EnvironmentConfig.sessionScratchpadDir` 是增量式且可选的:从不传入它的独立 SDK 嵌入方保持与此前完全一致的截断行为,已有 Trace 的重放不变,也没有任何已存格式改变形状。在此记录只是为了说明已做过检查。
diff --git a/changelog/0.2.0/2026-07-31-evaluation-center-case-details.md b/changelog/0.2.0/2026-07-31-evaluation-center-case-details.md
index ccbf46e9..14923c43 100644
--- a/changelog/0.2.0/2026-07-31-evaluation-center-case-details.md
+++ b/changelog/0.2.0/2026-07-31-evaluation-center-case-details.md
@@ -1,5 +1,12 @@
# Evaluation Center Case details and Score charts
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `web`, `server`, `skills`
+- **PR:** [#146](https://github.com/Prism-Shadow/penguin-harness/pull/146)
+
+[中文版](2026-07-31-evaluation-center-case-details.zh.md)
+
Case details now separate the task materials visible to the Target Agent from the scoring rubric available to project members, while keeping both file roots path-confined. Score charts use a padded dynamic axis without discarding authoritative stored values, and the benchmark Skills use YAML folded scalars for Scoreboard summaries.
## Details
diff --git a/changelog/0.2.0/2026-07-31-evaluation-center-case-details.zh.md b/changelog/0.2.0/2026-07-31-evaluation-center-case-details.zh.md
new file mode 100644
index 00000000..2552113f
--- /dev/null
+++ b/changelog/0.2.0/2026-07-31-evaluation-center-case-details.zh.md
@@ -0,0 +1,16 @@
+# 评估中心的 Case 详情与分数图表
+
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `web`, `server`, `skills`
+- **PR:** [#146](https://github.com/Prism-Shadow/penguin-harness/pull/146)
+
+[English](2026-07-31-evaluation-center-case-details.md)
+
+Case 详情现在把「对目标 Agent 可见的任务材料」与「对项目成员可见的评分 Rubric」分开呈现,同时把两个文件根都限制在各自路径之内。分数图表采用带留白的动态坐标轴,且不丢弃权威的已存取值;Benchmark 相关 Skill 则用 YAML 折叠标量来写 Scoreboard 摘要。
+
+## 细节
+
+- Case 详情把任务材料与评分 Rubric 作为两个独立的文件组展示。Rubric 对目标 Agent 保持隐藏。
+- 分数图表对观测到的、位于量程内的取值加留白,把显示的坐标轴钳制在 0–100,并保留已存的有限取值用于绘图与提示气泡。
+- Benchmark 设计与优化 Skill 把摘要字段写为 YAML 折叠标量,并在追加一次 Evaluation 之后解析完整的 Scoreboard。
diff --git a/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.md b/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.md
index 3a8f6e11..0e0d41ad 100644
--- a/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.md
+++ b/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.md
@@ -1,5 +1,12 @@
# Core: truncated tool output remains recoverable within its Session
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `core`, `web`
+- **PR:** [#145](https://github.com/Prism-Shadow/penguin-harness/pull/145)
+
+[中文版](2026-07-31-recover-truncated-tool-output.zh.md)
+
Tool output still obeys each entry's `maxOutputLength` exactly as before: the Web/CLI stream, the complete `tool_call_output`, Trace, and the next model input remain byte-for-byte aligned, with truncation and terminal markers staying outside the cap.
When a tool call in an Agent Session actually exceeds that cap, Environment now also saves the text it received to the Session scratchpad (`scratchpad/<sessionId>/truncated-tool-output/`, created only on actual truncation, private permissions where the platform has them) and appends the recovery path to the same tool result seen by the frontend and the model. No model-facing tool or schema is added: the model inspects the file with the existing `read_file` (`offset`/`limit`) or targeted `rg`/`tail` commands.
diff --git a/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.zh.md b/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.zh.md
new file mode 100644
index 00000000..b4b35c3b
--- /dev/null
+++ b/changelog/0.2.0/2026-07-31-recover-truncated-tool-output.zh.md
@@ -0,0 +1,22 @@
+# Core:被截断的工具输出在其 Session 内仍可恢复
+
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `core`, `web`
+- **PR:** [#145](https://github.com/Prism-Shadow/penguin-harness/pull/145)
+
+[English](2026-07-31-recover-truncated-tool-output.md)
+
+工具输出仍然精确遵守每个条目的 `maxOutputLength`,与此前完全一致:Web/CLI 流、完整的 `tool_call_output`、Trace 与下一次模型输入依旧逐字节对齐,截断标记与终止标记仍位于上限之外。
+
+当 Agent Session 中的某次工具调用确实超出该上限时,Environment 现在还会把它收到的文本存入 Session 草稿区(`scratchpad/<sessionId>/truncated-tool-output/`,仅在真正发生截断时创建,在支持的平台上使用私有权限),并把恢复路径追加到前端与模型看到的同一份工具结果上。不新增任何面向模型的工具或 schema:模型用既有的 `read_file`(`offset`/`limit`)或有针对性的 `rg`/`tail` 命令去查看该文件。
+
+接线是一个通用的 Environment 参数,而不是一个特性专用的管理器:`EnvironmentConfig.sessionScratchpadDir` 指明 Session 作用域的存储根目录,Environment 在内部由它派生出 `truncated-tool-output/`,而新的 `sessionScratchpadDir()` 路径助手成为 `scratchpad/<sessionId>` 的唯一定义(输入图片与目标文件本就在那里,现在也由同一个助手派生)。Agent 组装会自动传入它;独立的 SDK 嵌入方省略它即保持此前只截断的行为,或者通过传入一个目录来选择加入——没有任何归档类跨越公开配置接口。
+
+对模型可见的路径是一个普通的绝对路径,且始终是该注记的最后一个元素——而路径写法规则现在覆盖 core 为模型组装的每一个路径,统一经由从包出口导出的一个 `modelVisiblePath` 助手:系统提示词的 App Data Dir 与 CWD 行、`[attached image: …]` 行、服务端的 `[attached file: …]` 行,以及目标文件那一行。在 Windows 上该写法使用正斜杠:`exec_command` 经(Git)Bash 运行,而 Node 的 fs API 也接受正斜杠,因此模型可以把同样的写法原样再发进 JSON 工具参数与 shell 命令中,而不会出现反斜杠转义错误;Harness 的路径都是普通绝对路径(绝不带 `\\?\` 前缀),因此这次替换是无损的,而 POSIX 路径原样通过。
+
+文件工具在消费侧仍与 Windows 写法兼容:`path.resolve` 同样接受 `C:\…` 与 `C:/…`(由仅在 win32 运行的测试固定),工具消息回显调用方自己的写法,而工具输出中唯一一处由系统组装的路径——`read_file` 的「未找到」工作区提示——也使用对模型可见的写法。Web App 的文件卡片随之调整:此前剥离工作区前缀要求助手所用的分隔符与 Workspace 的完全一致,因此在 Windows 工作区上,正斜杠写法压根产生不了卡片;它现在把两侧都按 `/` 比较,并对盘符不区分大小写,而 POSIX 工作区仍然绝不触碰反斜杠(在那里它是合法的文件名字符)。
+
+每次调用至多归档 8 MiB——比 `read_file` 的 8 MiB 扫描上限少一个字节,好让该工具最后那次零字节读取仍能确认文件结束。更大的调用则保留 UTF-8 安全的头尾窗口,中间以显式的 `[archive middle truncated]` 空缺标出。捕获内存是有界的(精确阶段用 Buffer 块,晋升之后用固定容量的环形尾缓冲),跨流增量被切开的代理对会被重新拼合;而这只是逐次调用的上限:Session 没有归档总量配额。恢复保留的是 Environment 收到的内容;产出方在上游就已丢弃的文本(例如来自有界未读缓冲的 `[..., N chars of earlier output dropped ...]` 标记)无法恢复。
+
+恢复文件包含未脱敏的工具文本,与 Session 草稿区同生共死——既有的显式 Session 删除路径会移除它们,不新增独立的清理生命周期,而这可能会延长意外读入的敏感数据在本地静态留存的时间。Trace 存储的是同一份被截断的结果与那个绝对路径,而不是归档字节的第二份副本。归档写入失败绝不改变该工具的 `stop_reason`;可见的注记与 stderr 警告只携带一个简短的 errno 码,不带路径或原始错误。
diff --git a/changelog/0.2.0/2026-07-31-unified-installer-artifact.md b/changelog/0.2.0/2026-07-31-unified-installer-artifact.md
index 11026bf3..1d514632 100644
--- a/changelog/0.2.0/2026-07-31-unified-installer-artifact.md
+++ b/changelog/0.2.0/2026-07-31-unified-installer-artifact.md
@@ -1,5 +1,12 @@
# Tooling: one canonical install bundle per target, for online and offline alike
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `tooling`, `ci`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142)
+
+[中文版](2026-07-31-unified-installer-artifact.zh.md)
+
Each Release now attaches exactly one artifact per target: `penguin-{linux,darwin}-{x64,arm64}.tar.gz`, `penguin-universal.tar.gz` and `penguin-win32-x64.zip` are flat installer bundles, each sealing the native installer, the program payload (`payload.tar.gz` / `payload.zip`) and the payload's SHA256 checksum. Raw program archives and the five `*-offline` wrappers introduced in 0.1.5 are no longer published; `SHA256SUMS` covers exactly the six bundles.
Both installation modes consume the same file. Online, `install.sh` / `install.ps1` download the bundle, verify it against its published `.sha256` — checksums are now always mandatory; the online warn-and-skip fallback is gone — then open the flat outer layer and verify the payload checksum sealed inside before staging. Offline, the user transfers that one file, extracts it once and runs the bundled `./install.sh` (or double-clicks `install.cmd`); the installer finds the sibling payload by itself and verifies the same sealed checksum with no network access, so no separate checksum file needs to be carried.
diff --git a/changelog/0.2.0/2026-07-31-unified-installer-artifact.zh.md b/changelog/0.2.0/2026-07-31-unified-installer-artifact.zh.md
new file mode 100644
index 00000000..9225fd9e
--- /dev/null
+++ b/changelog/0.2.0/2026-07-31-unified-installer-artifact.zh.md
@@ -0,0 +1,22 @@
+# 工具链:每个目标一个规范安装包,在线与离线通用
+
+- **Date:** 2026-07-31
+- **Type:** feature
+- **Scope:** `tooling`, `ci`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142)
+
+[English](2026-07-31-unified-installer-artifact.md)
+
+每次 Release 现在为每个目标恰好附加一个产物:`penguin-{linux,darwin}-{x64,arm64}.tar.gz`、`penguin-universal.tar.gz` 与 `penguin-win32-x64.zip` 都是扁平的安装包,各自封装了原生安装脚本、程序载荷(`payload.tar.gz` / `payload.zip`)以及该载荷的 SHA256 校验和。原始程序压缩包与 0.1.5 引入的五个 `*-offline` 外包装不再发布;`SHA256SUMS` 恰好覆盖这六个安装包。
+
+两种安装方式消费的是同一个文件。在线时,`install.sh` / `install.ps1` 下载该安装包,对照其公布的 `.sha256` 校验——校验和现在一律强制;在线情况下「警告并跳过」的回退已经取消——然后打开扁平的外层,在暂存之前校验封装在内的载荷校验和。离线时,用户传送那一个文件、解压一次,运行其中自带的 `./install.sh`(或双击 `install.cmd`);安装脚本自行找到同级的载荷,并在无网络访问的情况下校验同一份封装校验和,因此不需要另外携带校验和文件。
+
+压缩包形态是按内容而非文件名探测的:顶层存在 `payload.*` 即为安装包,否则按顶层含 `penguin/` 的程序压缩包处理。这一次探测取代了此前的在线/离线分流,并使被固定的 0.1.6 之前版本与旧的本地压缩包仍可安装(见本批次的[向后兼容说明](2026-07-31-backward-compatibility.zh.md))。在 Windows 上,扁平的外层意味着首次解压绝不会产生深层路径——PowerShell 5.1 的 260 字符限制从下载目录出发已不再可能触及——而 zip 形态探测读取条目列表却不解压;只有安装脚本才展开载荷,且直接展开进它那个路径很短的暂存目录。
+
+规范的安装脚本以逐字节一致的形式随包同行——生成式的 POSIX 外包装入口(`penguin-installer.sh` 加上桩 `install.sh`)已经取消,取而代之的是那一个真正安装脚本中的同级载荷检测。该检测经过加固以保住 0.1.5 那条「绝不信任临时脚本旁边的压缩包」的性质:它只对一个真正名为 `install.sh` 的实体文件生效,而 penguin.ooo 的转发脚本现在把下载暂存在一个私有的 `mktemp -d` 目录中,而不是共享 `/tmp` 里的一个裸文件。Windows 转发脚本本就把安装脚本作为内存中的脚本块运行,其同级检测也仅限离线。
+
+原地升级不再在那些会钉住使用中目录的文件系统上失败。`penguin update` 会在 CLI 进程仍从 `lib/` 中执行时重新运行安装脚本;在 Docker 下的 overlayfs 上,朴素的 `mv lib .old.<pid>/lib` 会以 `Device or resource busy` 失败并回滚。目录移动现在经三种策略逐级降级——整目录改名、逐条目改名到新建或已存在的目标、再到逐条目复制并清空源(POSIX 保证已 unlink 但仍打开的文件对使用它的进程依然有效)——并保留一个被钉住的空目录外壳供后续移入复用,回滚遵循同样的规则,失败信息则明说要先停止正在运行的 penguin 进程。一个封闭式测试把 `mv`/`rmdir` 打桩为拒绝任何触及已安装 `lib/` 的目录改名,并验证升级仍能干净完成。
+
+两处 Windows 上的小刺从根上解决。载荷不再提供 `penguin.ps1` 启动器:PowerShell 在 PATH 上优先选 `.ps1` 而非 `.cmd`,而客户端 Windows 默认使用 Restricted 执行策略,于是全新安装后朴素的 `penguin` 命令会以「running scripts is disabled」失败;批处理文件豁免于该策略,PowerShell 与 cmd.exe 都会解析到 `penguin.cmd`,而由于升级会整体替换 `bin\`,重新运行安装脚本也就顺带移除了旧的 shim(见本批次的[向后兼容说明](2026-07-31-backward-compatibility.zh.md))。另外,在向用户 Path 注册表值追加之后,安装脚本现在会广播 `WM_SETTINGCHANGE`——仅做一次原始注册表写入,会让资源管理器以及由它启动的每一个终端在下次登录之前都停留在陈旧的 Path 上,这正是一个全新的 PowerShell 窗口仍然找不到 `penguin` 的原因;完成提示现在说的是「打开一个新的终端窗口」,而不是新开一个标签页。
+
+`scripts/package-release-bundles.sh` 取代 `package-offline-bundles.sh`,而发布工作流现在把载荷作为中间产物构建、打包这六个安装包,并在上传之前校验真实产出:外层校验和、精确的扁平成员集合、逐字节一致的安装脚本与载荷,以及一次通过的封装校验和。`scripts/test-installer.sh` 与 `scripts/test-installer.ps1` 取代了仅覆盖离线的测试脚本,以封闭方式覆盖安装包布局、把网络访问打桩为失败的离线安装、载荷被损坏时的拒绝、升级回滚、两层校验和、无回退的下载失败,以及被固定的旧版本,并接入既有的 Linux 与 Windows CI 任务。README、文档的安装页与落地页的安装文案都描述这条单产物流程。
diff --git a/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.md b/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.md
index 71a1b885..9441913f 100644
--- a/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.md
+++ b/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.md
@@ -1,6 +1,14 @@
# File tools diagnose missing paths instead of implying absolute paths are rejected
-`read_file` / `edit_file` accepted absolute paths all along, but their "File not found" message mentioned only workspace-relative resolution — so a genuinely missing file (typically a dropped `agent_state/` segment) read as "absolute paths are unsupported", and the model retried path forms instead of questioning the path (#138).
+- **Date:** 2026-08-02
+- **Type:** fix
+- **Scope:** `core`, `skills`
+- **PR:** [#155](https://github.com/Prism-Shadow/penguin-harness/pull/155)
+- **Issue:** [#138](https://github.com/Prism-Shadow/penguin-harness/issues/138)
+
+[中文版](2026-08-02-file-tool-missing-path-diagnostics.zh.md)
+
+`read_file` / `edit_file` accepted absolute paths all along, but their "File not found" message mentioned only workspace-relative resolution — so a genuinely missing file (typically a dropped `agent_state/` segment) read as "absolute paths are unsupported", and the model retried path forms instead of questioning the path ([#138](https://github.com/Prism-Shadow/penguin-harness/issues/138)).
## Details
diff --git a/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.zh.md b/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.zh.md
new file mode 100644
index 00000000..a06a8683
--- /dev/null
+++ b/changelog/0.2.0/2026-08-02-file-tool-missing-path-diagnostics.zh.md
@@ -0,0 +1,17 @@
+# 文件工具诊断缺失路径,而不是暗示绝对路径被拒绝
+
+- **Date:** 2026-08-02
+- **Type:** fix
+- **Scope:** `core`, `skills`
+- **PR:** [#155](https://github.com/Prism-Shadow/penguin-harness/pull/155)
+- **Issue:** [#138](https://github.com/Prism-Shadow/penguin-harness/issues/138)
+
+[English](2026-08-02-file-tool-missing-path-diagnostics.md)
+
+`read_file` / `edit_file` 一直都接受绝对路径,但它们的「File not found」消息只提到按工作区相对解析——于是一个真正缺失的文件(通常是漏掉了 `agent_state/` 这一段)读起来像是「不支持绝对路径」,模型便去反复尝试各种路径形式,而不是去质疑这个路径本身([#138](https://github.com/Prism-Shadow/penguin-harness/issues/138))。
+
+## 细节
+
+- 两个工具现在都会说明支持绝对路径,并附上一段诊断:最深的已存在祖先目录、第一个缺失的路径段,以及该祖先目录中按与缺失段的名称相似度排序的条目(至多 8 个,目录带结尾斜杠)——对于所报告的那个案例,提示会直接点名 `agent_state/`。
+- ENOTDIR(某个路径段是文件而非目录)现在得到同样的诊断,而不是一条裸的 errno 消息。
+- agent-creation Skill 现在写明 `AGENTS.md` 位于 `agent_state/` 之下,而不是 Agent 目录的根部——这正是那段路径被漏掉的可能来源(Skill 版本 7)。
diff --git a/changelog/0.2.0/2026-08-02-update-check-feedback.md b/changelog/0.2.0/2026-08-02-update-check-feedback.md
index eb5371d9..ad18557a 100644
--- a/changelog/0.2.0/2026-08-02-update-check-feedback.md
+++ b/changelog/0.2.0/2026-08-02-update-check-feedback.md
@@ -1,3 +1,10 @@
# Web App: the manual update check reports every outcome
+- **Date:** 2026-08-02
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142)
+
+[中文版](2026-08-02-update-check-feedback.zh.md)
+
The sidebar user menu's "Check for updates" row used to notify only when nothing changed visibly; finding a newer release changed the row silently. The manual check now gives explicit feedback for every outcome: a spinner and busy label while the check runs, a success toast when already up to date, and a success toast naming the release when a newer one is found — at which point the same row turns into the persistent "New version vX available" entry that opens the update dialog (release-notes link, admin-only self-update). Failed lookups and disabled checks keep their error/info toasts. The outcome mapping is a pure, unit-tested classifier: disabled beats failed beats found, and "found" must name a version so neither the toast nor the row is ever blank.
diff --git a/changelog/0.2.0/2026-08-02-update-check-feedback.zh.md b/changelog/0.2.0/2026-08-02-update-check-feedback.zh.md
new file mode 100644
index 00000000..28da4052
--- /dev/null
+++ b/changelog/0.2.0/2026-08-02-update-check-feedback.zh.md
@@ -0,0 +1,10 @@
+# Web App:手动更新检查会报告每一种结果
+
+- **Date:** 2026-08-02
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#142](https://github.com/Prism-Shadow/penguin-harness/pull/142)
+
+[English](2026-08-02-update-check-feedback.md)
+
+侧边栏用户菜单里的「检查更新」行此前只在没有可见变化时才给出通知;而当它发现更新版本时,那一行是无声变化的。手动检查现在对每一种结果都给出明确反馈:检查进行时显示加载指示与忙碌标签;已是最新时给出成功 toast;发现更新版本时给出点名该版本的成功 toast——与此同时,同一行变为常驻的「有新版本 vX」条目,点击它打开更新对话框(发布说明链接、仅管理员可用的自更新)。查询失败与检查被禁用仍保留各自的错误/信息 toast。这套结果映射是一个纯函数、有单元测试的分类器:禁用优先于失败,失败优先于发现;而「发现」必须点名一个版本,因此 toast 与那一行都绝不会是空的。
diff --git a/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.md b/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.md
index 173ddd7e..27eec5a4 100644
--- a/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.md
+++ b/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.md
@@ -1,19 +1,27 @@
# Steering survives reloads and carries files; session list scales
+- **Date:** 2026-08-02
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#156](https://github.com/Prism-Shadow/penguin-harness/pull/156), [#157](https://github.com/Prism-Shadow/penguin-harness/pull/157), [#158](https://github.com/Prism-Shadow/penguin-harness/pull/158)
+- **Issue:** [#136](https://github.com/Prism-Shadow/penguin-harness/issues/136), [#137](https://github.com/Prism-Shadow/penguin-harness/issues/137), [#139](https://github.com/Prism-Shadow/penguin-harness/issues/139), [#140](https://github.com/Prism-Shadow/penguin-harness/issues/140)
+
+[中文版](2026-08-02-web-app-steering-and-session-list.zh.md)
+
Steering messages no longer vanish on refresh or come back as duplicate-prone drafts, file attachments steer like images do, tool-card subtitles stop jittering while arguments stream, and the sidebar stays fast and scannable with many agents, workspaces, and CLI sessions.
-## Steering across reloads, with visible content (#136, #140)
+## Steering across reloads, with visible content ([#136](https://github.com/Prism-Shadow/penguin-harness/issues/136), [#140](https://github.com/Prism-Shadow/penguin-harness/issues/140))
- The server now mirrors each running session's undelivered steering queue (text plus image/file counts) and broadcasts it on every `task_state` event and the SSE subscribe snapshot. The composer's "steering queued" hint shows each queued message's content and survives reloads; entries retire as their `[user_steering]` message reaches the stream, and the mirror drops when the run exits.
- A successful steer discards the localStorage draft, like a normal send — previously the sent text was resurrected as a draft on reload, and re-sending it duplicated the steering message. Draft discard also clears the text ref so a later skill/chip flush cannot bring already-sent text back.
- File attachments now ride steering exactly like images: written to the session scratchpad under the task-attachment rules and delivered as `[attached file: <path>]` lines on the steering text. A file-only draft steers instead of silently falling into the follow-up queue with the other channel's hint; a 409 cleans the written files up.
- New e2e spec: steer during a slow tool run → reload → hint with content, empty composer, exactly-once delivery.
-## Tool-card subtitles render once, fully formed (#137)
+## Tool-card subtitles render once, fully formed ([#137](https://github.com/Prism-Shadow/penguin-harness/issues/137))
The collapsed tool row's subtitle (the model-written call description, or the shortened file path) no longer re-renders on every streamed fragment — a growing description re-solved the header's flex line ~8×/s and `shortenPath` on a still-growing path rewrote non-monotonically. A field now renders only once its closing quote has arrived (the gate lifts when argument streaming settles, so aborted calls still show what they have), and a complete description wins over the file path when a user-edited schema enables one on a file tool — the rule the CLI already applied.
-## Session list: DB-served by default, CLI sessions opt-in, groups page (#139)
+## Session list: DB-served by default, CLI sessions opt-in, groups page ([#139](https://github.com/Prism-Shadow/penguin-harness/issues/139))
- The sessions index gains DB-only `client` ('web' / 'cli'; NULL = legacy row, treated as web) and `has_trace` columns; existing `web.db` files are upgraded in place by an idempotent ALTER guard on open.
- The default list serves web sessions straight from the DB (SQL-ordered under a new index) with no Trace-directory scanning in steady state; `cli=1` opts into Trace discovery + adoption, and adopted CLI rows stay excluded from the default list while remaining individually reachable (deep links).
diff --git a/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.zh.md b/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.zh.md
new file mode 100644
index 00000000..55d226b8
--- /dev/null
+++ b/changelog/0.2.0/2026-08-02-web-app-steering-and-session-list.zh.md
@@ -0,0 +1,29 @@
+# 转向能在刷新后存活并携带文件;会话列表可扩展
+
+- **Date:** 2026-08-02
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#156](https://github.com/Prism-Shadow/penguin-harness/pull/156), [#157](https://github.com/Prism-Shadow/penguin-harness/pull/157), [#158](https://github.com/Prism-Shadow/penguin-harness/pull/158)
+- **Issue:** [#136](https://github.com/Prism-Shadow/penguin-harness/issues/136), [#137](https://github.com/Prism-Shadow/penguin-harness/issues/137), [#139](https://github.com/Prism-Shadow/penguin-harness/issues/139), [#140](https://github.com/Prism-Shadow/penguin-harness/issues/140)
+
+[English](2026-08-02-web-app-steering-and-session-list.md)
+
+转向消息不再在刷新时消失、也不再以容易产生重复的草稿形式回来;文件附件能像图片一样转向;工具卡片副标题在参数流式输出期间不再抖动;而侧边栏在面对大量 Agent、Workspace 与 CLI 会话时仍然快速可读。
+
+## 跨刷新的转向,且内容可见([#136](https://github.com/Prism-Shadow/penguin-harness/issues/136)、[#140](https://github.com/Prism-Shadow/penguin-harness/issues/140))
+
+- 服务端现在为每个运行中的会话镜像其尚未投递的转向队列(文本加上图片/文件数量),并在每个 `task_state` 事件与 SSE 订阅快照上广播它。输入区的「转向已排队」提示会显示每条排队消息的内容,并能在刷新后存活;条目会在其 `[user_steering]` 消息进入流时退场,而该镜像在运行退出时丢弃。
+- 一次成功的转向会像普通发送那样丢弃 localStorage 草稿——此前已发送的文本会在刷新时作为草稿复活,重新发送它就产生了重复的转向消息。草稿丢弃同时清空文本引用,因此稍后的 Skill/芯片刷新不可能把已发送的文本带回来。
+- 文件附件现在完全像图片一样搭乘转向:按任务附件规则写入会话草稿区,并作为 `[attached file: <path>]` 行投递在转向文本上。只有文件的草稿会转向,而不是带着另一条通道的提示无声地落进后续队列;一次 409 会把已写入的文件清理掉。
+- 新增 e2e 用例:在一次缓慢的工具运行期间转向 → 刷新 → 看到带内容的提示、空的输入区,以及恰好一次的投递。
+
+## 工具卡片副标题一次成型地渲染([#137](https://github.com/Prism-Shadow/penguin-harness/issues/137))
+
+折叠工具行的副标题(模型撰写的调用描述,或缩短后的文件路径)不再在每个流式片段上重新渲染——一段不断增长的描述会让头部的 flex 行以每秒约 8 次的频率重新求解,而对一个仍在增长的路径调用 `shortenPath` 又会非单调地改写它。现在某个字段只有在它的收尾引号到达之后才渲染(当参数流式输出稳定时该闸门放行,因此被中止的调用仍会显示它已有的内容),而当用户编辑过的 schema 在文件工具上启用了描述时,完整描述优先于文件路径——这正是 CLI 早已采用的规则。
+
+## 会话列表:默认由数据库提供,CLI 会话按需开启,分组分页([#139](https://github.com/Prism-Shadow/penguin-harness/issues/139))
+
+- 会话索引新增仅存在于数据库中的 `client`('web' / 'cli';NULL 表示旧记录,按 web 处理)与 `has_trace` 两列;已有的 `web.db` 文件在打开时由一个幂等的 ALTER 守卫就地升级。
+- 默认列表直接从数据库提供 web 会话(在新索引下由 SQL 排序),稳定状态下不再扫描 Trace 目录;`cli=1` 才选择启用 Trace 发现与收编,而被收编的 CLI 行仍排除在默认列表之外,同时可以单独到达(深链)。
+- 侧边栏用户菜单新增逐用户的「显示 CLI 会话」开关(默认关闭),持久化在 `ui_prefs` 中;切换它会在新的过滤条件下重新拉取列表。
+- 两种侧边栏分组模式都对分组本身分页:初始 10 个分组,「更多分组(N)」再展开 10 个——这是纯粹的渲染上限,按 Project 重置,并在切换模式时重置。
diff --git a/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.md b/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.md
index 3aad5338..7dfb772e 100644
--- a/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.md
+++ b/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.md
@@ -1,5 +1,12 @@
# Models: qianwenai lineup refresh, DeepSeek flash revisions, flash as the seeded default
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `model-catalog`, `docs`, `skills`
+- **PR:** [#160](https://github.com/Prism-Shadow/penguin-harness/pull/160)
+
+[中文版](2026-08-03-model-catalog-qianwenai-flash.zh.md)
+
Prices and specs read from each model's page or the gateway's models API on 2026-08-03.
## Qianwenai groups
diff --git a/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.zh.md b/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.zh.md
new file mode 100644
index 00000000..524ac5ef
--- /dev/null
+++ b/changelog/0.2.0/2026-08-03-model-catalog-qianwenai-flash.zh.md
@@ -0,0 +1,30 @@
+# 模型:qianwenai 阵容刷新、DeepSeek flash 修订,以及以 flash 作为预置默认
+
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `model-catalog`, `docs`, `skills`
+- **PR:** [#160](https://github.com/Prism-Shadow/penguin-harness/pull/160)
+
+[English](2026-08-03-model-catalog-qianwenai-flash.md)
+
+价格与规格于 2026-08-03 读取自各模型页面或网关的 models API。
+
+## qianwenai 分组
+
+Qwen Pay-As-You-Go 新增 `qwen3.8-max`(每百万 Token CNY 1.5/12/36,支持视觉)与 `deepseek-v4-flash-0731`(CNY 0.2/1/2,纯文本;该页面把 DeepSeek 列为不带前缀的形式,与带 `kimi/` 和 `ZHIPU/` 前缀的转售不同),并移除 `qwen3.7-max`。Qwen Token Plan 新增同样这两个模型,并移除 `qwen3.8-max-preview` 与 `qwen3.7-max`,而 `deepseek-v4-pro`、`glm-5.2` 与 `qwen3.7-plus` 保留;预览条目既已移除,Token Plan 的模型页链接就不再需要它那处特例回退。
+
+## OpenRouter
+
+新增 `deepseek/deepseek-v4-flash-0731` 与 `openai/gpt-5.6-luna`,并移除 `poolside/laguna-m.1:free`——models API 已不再列出它(只剩 `laguna-s-2.1` / `laguna-xs-2.1` 这一代)。每一个 OpenRouter 行的定价也在一次遍历中从 models API 重新读取,这正是目录注释自 2026-07-20 起就记下的那笔欠账:`cache_read` 现在在有公布缓存命中价的地方存储该价格;`cache_write` 在 Anthropic/GPT 行上存储真实的 1.25× 逐 Token 写入溢价,其余则存储输入价(Gemini 的 API 字段是按小时的存储费率,而非逐 Token 价格,因此那些行保留输入价);而已漂移的输入/输出牌价跟随 API 更新(`moonshotai/kimi-k2.6`、`openai/gpt-5.6-terra`、`tencent/hy3`、`z-ai/glm-5.2`,以及未标日期的 `deepseek/deepseek-v4-flash`)。
+
+## SiliconFlow
+
+此前三个未定价的行(`Pro/moonshotai/Kimi-K2.6`、`Pro/zai-org/GLM-5.1`、`Qwen/Qwen3.6-35B-A3B`)拿到了它们的官方人民币牌价;GLM-5.1 按两档输入长度计费,目录存储较低的那一档,并标注为长上下文使用时的下限。目录中已不再有任何未定价的条目。
+
+## 默认模型、文档与 Skill
+
+预置的 Project 默认变为 `deepseek` / `deepseek-v4-flash`。文档随之更新(models / configuration / quickstart,中英);penguin-sdk skill(v18)点名了它那条纯环境变量配置路径所依赖的新预置默认,agenthub-models(v9)则补上了 `deepseek/deepseek-v4-flash-0731` 这个 OpenRouter 写法;而已发布的、提到被移除免费模型的博客文章保持冻结。
+
+## 对已有 Project 的影响
+
+不存在自动迁移:模型条目与默认值是在 Project 创建时被复制进 `.project_config.toml` 的,升级时没有任何东西会重写它们。Web 端的「同步预设」操作在用户显式执行时,会按目录顺序追加仅目录中存在的行,并更新与预设匹配的行中由目录掌管的字段(视觉、上下文窗口、客户端类型、定价、base URL)——凭证与列表位置予以保留,任何东西都不会被删除,已存的默认值也不受触碰;被下架的预设只是不再被重新添加。只有新创建的 Project 才会开箱看到新的阵容与默认值。
diff --git a/changelog/0.2.0/2026-08-03-oss-distribution.md b/changelog/0.2.0/2026-08-03-oss-distribution.md
index 8d7039df..5584c130 100644
--- a/changelog/0.2.0/2026-08-03-oss-distribution.md
+++ b/changelog/0.2.0/2026-08-03-oss-distribution.md
@@ -1,6 +1,13 @@
# Tooling: Alibaba Cloud OSS distribution for Release assets
-Release downloads no longer depend on GitHub's reachability alone (#166).
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `tooling`, `ci`, `docs`
+- **PR:** [#166](https://github.com/Prism-Shadow/penguin-harness/pull/166)
+
+[中文版](2026-08-03-oss-distribution.zh.md)
+
+Release downloads no longer depend on GitHub's reachability alone ([#166](https://github.com/Prism-Shadow/penguin-harness/pull/166)).
- A new `mirror-oss` release job downloads the exact assets attached to the GitHub Release, re-verifies their checksums, and mirrors the same bytes to an Alibaba Cloud OSS bucket; `latest.json` is uploaded last and only after every asset landed, so the mirror never advertises a partially mirrored version. The job reads its provider/role ARNs and bucket settings from the `oss-production` environment and fails fast with a named error when one is missing.
- `install.sh` / `install.ps1` gain a download-source switch: `PENGUIN_DOWNLOAD_SOURCE=auto` (default) prefers the OSS mirror and falls back to the same version on GitHub when the mirror is unavailable; `oss` and `github` pin one source. `PENGUIN_DOWNLOAD_BASE_URL` / `PENGUIN_DOWNLOAD_FALLBACK_BASE_URL` override the asset directories directly (https-validated), and download progress names the source it is actually using.
diff --git a/changelog/0.2.0/2026-08-03-oss-distribution.zh.md b/changelog/0.2.0/2026-08-03-oss-distribution.zh.md
new file mode 100644
index 00000000..86e24d54
--- /dev/null
+++ b/changelog/0.2.0/2026-08-03-oss-distribution.zh.md
@@ -0,0 +1,15 @@
+# 工具链:Release 产物的阿里云 OSS 分发
+
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `tooling`, `ci`, `docs`
+- **PR:** [#166](https://github.com/Prism-Shadow/penguin-harness/pull/166)
+
+[English](2026-08-03-oss-distribution.md)
+
+发布下载不再只依赖 GitHub 的可达性([#166](https://github.com/Prism-Shadow/penguin-harness/pull/166))。
+
+- 新增的 `mirror-oss` 发布任务会下载附加在 GitHub Release 上的那些确切产物,重新校验它们的校验和,并把同样的字节镜像到阿里云 OSS 存储桶;`latest.json` 最后上传,且只在每个产物都落地之后才上传,因此镜像绝不会对外宣告一个只镜像了一半的版本。该任务从 `oss-production` 环境读取其 provider/role ARN 与存储桶设置,缺任何一项都会带具名错误快速失败。
+- `install.sh` / `install.ps1` 新增下载源开关:`PENGUIN_DOWNLOAD_SOURCE=auto`(默认)优先使用 OSS 镜像,并在镜像不可用时回退到 GitHub 上的同一版本;`oss` 与 `github` 则固定使用其中一个源。`PENGUIN_DOWNLOAD_BASE_URL` / `PENGUIN_DOWNLOAD_FALLBACK_BASE_URL` 可直接覆盖产物目录(经 https 校验),而下载进度会写明它实际正在使用的源。
+- 一个 `oss-staging` 工作流,加上 `scripts/publish-release-to-oss.sh`、`scripts/install-ossutil.sh` 与 `scripts/test-oss-staging.sh`,在进入生产之前端到端演练整条镜像路径;而封闭式的安装脚本测试在两个平台上都覆盖了这个源开关。
+- 安装文档以两种语言记录了下载源这一行。
diff --git a/changelog/0.2.0/2026-08-03-web-chat-navigation.md b/changelog/0.2.0/2026-08-03-web-chat-navigation.md
index a7f9641d..4a030eb3 100644
--- a/changelog/0.2.0/2026-08-03-web-chat-navigation.md
+++ b/changelog/0.2.0/2026-08-03-web-chat-navigation.md
@@ -1,6 +1,13 @@
# Web App: chat navigation — input history, stacked sticky headers, minimap tick rail
-Long conversations were hard to move through: recalling a previous request meant retyping it, collapsing a long thinking/tool run meant scrolling all the way back to its header, and reaching a specific exchange meant scrolling past everything in between. Three navigation aids on the chat page address this (#164).
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#164](https://github.com/Prism-Shadow/penguin-harness/pull/164)
+
+[中文版](2026-08-03-web-chat-navigation.zh.md)
+
+Long conversations were hard to move through: recalling a previous request meant retyping it, collapsing a long thinking/tool run meant scrolling all the way back to its header, and reaching a specific exchange meant scrolling past everything in between. Three navigation aids on the chat page address this ([#164](https://github.com/Prism-Shadow/penguin-harness/pull/164)).
## ArrowUp input history
diff --git a/changelog/0.2.0/2026-08-03-web-chat-navigation.zh.md b/changelog/0.2.0/2026-08-03-web-chat-navigation.zh.md
new file mode 100644
index 00000000..ba3db1e8
--- /dev/null
+++ b/changelog/0.2.0/2026-08-03-web-chat-navigation.zh.md
@@ -0,0 +1,33 @@
+# Web App:聊天导航——输入历史、层叠粘性标题、缩略图刻度轨
+
+- **Date:** 2026-08-03
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#164](https://github.com/Prism-Shadow/penguin-harness/pull/164)
+
+[English](2026-08-03-web-chat-navigation.md)
+
+长对话此前很难穿行:想召回一条此前的请求就得重打一遍,想折叠一段很长的思考/工具运行就得一路滚回它的标题处,而要抵达某次具体的问答就得滚过中间的一切。聊天页新增的三个导航辅助解决了这一点([#164](https://github.com/Prism-Shadow/penguin-harness/pull/164))。
+
+## ↑ 输入历史
+
+- 在输入区(实质上)为空时,↑ 以最新在前的顺序召回本会话此前的输入,与 shell 一致;↓ 反向前进,并在越过最新一条之后恢复开始导航时暂存的草稿。
+- 编辑一条被召回的内容会立即结束导航;在一条多行内容内部,方向键先逐行移动光标(只有在首行按 ↑ / 末行按 ↓ 才跨越历史,与 zsh 一致),而输入法候选词的导航不受影响。
+- 只有用户真正打出来的文本才算数:交接 / 模型切换的来源区块、定时触发的提示词,以及第 1 轮之后的目标重发都排除在外;转向消息包含在内;连续的重复项会被折叠。草稿聊天没有历史,保留方向键的原生行为。
+
+## 「推理与工具」粘性标题,按层级层叠
+
+- 分组标题在其分组主体处于视野内时吸附在消息列表顶部,而当前滚动到的思考/工具行则紧贴其下方钉住——各行在其小节边界处互相推出,因此内容正上方的那条栏总是正在阅读的那一节,绝不会是被跳过的层级。一段很长的运行可以从它内部的任何位置折叠,可以按小节,也可以整体折叠。
+- 从被吸附的标题处折叠会把视图滚回那个分组/行(展开,以及在视野内折叠,则不移动视图)。该卡片使用 `overflow: clip` 而非 `overflow: hidden` 做裁切——hidden 的祖先是一个滚动容器,而这恰恰是 `position: sticky` 失效的原因;分组的偏移量以相同的 rem 单位抵消掉流容器自身的顶部内边距(行的偏移量再在其上加一个标题高度),而被吸附的栏其背景是不透明的,因此滚动内容不会透出来。
+
+## 对话缩略图(刻度轨)
+
+- 这个快速跳转索引不占用对话的任何宽度:一条刻度轨覆盖在居中列所空出的左侧空白上——每次问答一个刻度(轮次增多时刻度间距压缩),当前阅读位置的刻度更长更深,由滚动侦测跟踪(流的底部算作最新一轮)。
+- 悬停或聚焦某个刻度会弹出一张浮动预览卡——加粗的用户问题,下方是截断的纯文本回复预览(Markdown 已扁平化;最新一轮在其回复尚未开始时显示一个脉动的「回答中」提示)——点击则直接跳到该轮,并在落点消息上短暂闪烁。这张卡片是纯粹的 tooltip:不接收点击,且只在悬停时挂载,因此静止状态下消息文本绝不会在 DOM 中重复一份。
+- 当刻度轨完全无法显示时——没有悬停指针的手机,或者左侧空白被停靠面板吃掉的任何窗口——该索引移到右上角工具栏的一个图标按钮上,点开是一个问答下拉列表(问题 + 截断的回复、当前阅读位置高亮、点击跳转),使导航在任何布局下都可达。当前条目的判定只计入属于大纲条目的锚点:仅有横幅的消息、被合并的图片片段,以及第 1 轮之后的目标轮次,都解析到覆盖它们的那个条目,而不是清除高亮。
+- 工具栏的 Agent 面板按钮在 sm 以下与它旁边的 Workspace 按钮一样去掉文字标签(只保留图标与 title/aria)——那些文字在手机上吃掉了会话标题的空间。
+- 刻度轨只在实测左侧空白确实有余量时才渲染(实时测量——打开停靠侧栏会隐藏它,关闭则恢复),且仅限支持悬停的指针;覆盖层本身不接收指针事件,因此滚轮在左侧空白的任何位置都照常滚动消息流。协议横幅不生成条目,目标轮次并入第 1 轮的条目,定时轮次会被列出;跳转锚点只打在主对话上,且查询限定在其滚动容器范围内,因此嵌套的子 Agent 渲染不会与之冲突。
+
+## e2e
+
+新增的 `outline.spec.mjs` 在 1440×860 下端到端覆盖刻度轨(悬停卡片、跳转、面板吃掉空白时的自动隐藏)、层叠粘性标题与历史召回;测试套件保持 Playwright 的默认视口——刻度轨在静止状态下不重复任何文本,因此既有用例无需改动。
diff --git a/changelog/0.2.0/README.md b/changelog/0.2.0/README.md
deleted file mode 100644
index cc7f79b0..00000000
--- a/changelog/0.2.0/README.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Version 0.2.0
-
-Released on 2026-08-03.
-
-- [2026-08-03] Tooling: Release assets are mirrored to Alibaba Cloud OSS — the mirror-oss release job re-uploads the exact checksum-verified GitHub Release artifacts (`latest.json` last, only after every asset landed), and the installers gain a download-source switch (`PENGUIN_DOWNLOAD_SOURCE=auto|oss|github`, auto preferring OSS with a same-version GitHub fallback) plus validated `PENGUIN_DOWNLOAD_BASE_URL` overrides, with a staging workflow and installer tests covering the mirror path. ([details](2026-08-03-oss-distribution.md))
-
-- [2026-08-03] Web App: three chat-navigation aids — ↑ recalls the session's previous inputs shell-style in the composer, the "Reasoning & Tools" header and the current thinking/tool row stick to the top of the stream stacked by level so long runs collapse from anywhere inside them, and a zero-width tick-rail minimap over the stream's left gutter previews every exchange on hover (question + truncated answer) for one-click jumps. ([details](2026-08-03-web-chat-navigation.md))
-
-- [2026-08-03] Models: the qianwenai groups move to the current lineup (qwen3.8-max and deepseek-v4-flash-0731 in, qwen3.7-max and qwen3.8-max-preview out), OpenRouter gains deepseek/deepseek-v4-flash-0731 and openai/gpt-5.6-luna, drops the delisted poolside/laguna-m.1:free and has every row's cache/input/output prices re-read from the models API, the last unpriced SiliconFlow rows get list prices, and new Projects default to deepseek-v4-flash — existing Projects keep their stored models and default. ([details](2026-08-03-model-catalog-qianwenai-flash.md))
-
-- [2026-08-02] Web App: steering messages survive reloads with their content visible and can carry file attachments, tool-card subtitles render once fully formed instead of jittering, and the session list is DB-served by default with an opt-in CLI-session toggle and paged sidebar groups. ([details](2026-08-02-web-app-steering-and-session-list.md))
-
-- [2026-08-02] File tools: `read_file` / `edit_file` diagnose a missing path — deepest existing ancestor, first missing segment, nearest-named entries — instead of a bare "File not found" that read as absolute paths being rejected; the agent-creation Skill spells out `agent_state/AGENTS.md`. ([details](2026-08-02-file-tool-missing-path-diagnostics.md))
-
-- [2026-08-02] Web App: the manual "Check for updates" row reports every outcome — busy spinner while checking, success toasts for both up-to-date and update-found (naming the release, with the row itself becoming the update entry), and the existing failure/disabled notices — via a unit-tested outcome classifier. ([details](2026-08-02-update-check-feedback.md))
-
-- [2026-07-31] Tooling: each Release now attaches exactly one artifact per target — a flat installer bundle sealing the native installer, the program payload and its checksum — serving online and offline installation from the same file, with mandatory checksums at both layers, no more raw archives or `*-offline` wrappers, and hermetic installer tests in CI; in-place upgrades survive filesystems that pin in-use directories (the `penguin update` overlayfs `Device or resource busy` failure), the Windows payload drops its policy-blocked `penguin.ps1` launcher, and the installer broadcasts the user-Path change so new terminal windows find `penguin`. ([details](2026-07-31-unified-installer-artifact.md))
-
-- [2026-07-31] Backward compatibility: the batch's compat decisions in one place — installers keep a content-probed legacy path so pre-0.1.6 releases and old local archives stay installable (with its removal owner named), old saved installer scripts break loudly against new assets by design, the dropped `penguin.ps1` launcher cleans itself up on upgrade, and the truncated-output batch is additive with nothing to migrate. ([details](2026-07-31-backward-compatibility.md))
-
-- [2026-07-31] Core: tool output that exceeds `maxOutputLength` in an Agent Session is now saved to the Session scratchpad and the recovery path appended to the same truncated result the model and frontends see — no new tool, no change to the visible cap or the stream-equals-complete contract — wired through one generic `EnvironmentConfig.sessionScratchpadDir` parameter, with per-call 8 MiB bounds and UTF-8-safe head/tail for larger calls; every model-visible path core composes (prompt Environment lines, attachment lines, goal file, tool messages, recovery notes) now shares one forward-slash spelling on Windows via `modelVisiblePath`, file tools keep accepting both Windows spellings, and the Web App's file cards match Windows paths in any separator spelling. ([details](2026-07-31-recover-truncated-tool-output.md))
-
-- [2026-07-31] Evaluation Center: Case details separate Target Agent task materials from project-member-visible scoring rubrics, Score charts use a padded dynamic axis without discarding stored values, and the benchmark Skills write YAML-safe Scoreboard summaries. ([details](2026-07-31-evaluation-center-case-details.md))
-
-- [2026-07-30] Web App: the main conversation's file summary moves to the completed Task boundary — one card per Task scanning all of its assistant text, nested agent conversations keep their per-message summaries, and file-existence caching stops retaining negative results so a later Task can surface a newly created path. ([details](2026-07-30-file-summary-task-boundary.md))
diff --git a/changelog/0.2.1/2026-08-04-agent-skills-and-list.md b/changelog/0.2.1/2026-08-04-agent-skills-and-list.md
index f3c18768..dacc8b16 100644
--- a/changelog/0.2.1/2026-08-04-agent-skills-and-list.md
+++ b/changelog/0.2.1/2026-08-04-agent-skills-and-list.md
@@ -1,5 +1,12 @@
# Web App: skills management on the Agent settings page, deep-linked list icons
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#179](https://github.com/Prism-Shadow/penguin-harness/pull/179), [#186](https://github.com/Prism-Shadow/penguin-harness/pull/186)
+
+[中文版](2026-08-04-agent-skills-and-list.zh.md)
+
## Skills tab
Agent settings gains a Skills tab, placed right after Tools. The installed list re-reads `agent_state/skills/` on every fetch — the directory stays the single source of truth, exactly as the vault and schedule files do, so hand-installed or agent-installed skills show up without any registry. Rows carry the skill icon, name, localized short description and version/updated metadata; uninstalling asks for confirmation first.
diff --git a/changelog/0.2.1/2026-08-04-agent-skills-and-list.zh.md b/changelog/0.2.1/2026-08-04-agent-skills-and-list.zh.md
new file mode 100644
index 00000000..66774888
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-agent-skills-and-list.zh.md
@@ -0,0 +1,20 @@
+# Web App:Agent 设置页上的 Skill 管理,以及可深链的列表图标
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#179](https://github.com/Prism-Shadow/penguin-harness/pull/179), [#186](https://github.com/Prism-Shadow/penguin-harness/pull/186)
+
+[English](2026-08-04-agent-skills-and-list.md)
+
+## Skills 标签页
+
+Agent 设置新增一个 Skills 标签页,紧排在 Tools 之后。已安装列表每次拉取都会重新读取 `agent_state/skills/`——该目录始终是唯一事实来源,与 vault 和定时任务文件完全一样,因此手工安装或由 Agent 安装的 Skill 无需任何注册表即可出现。每行携带 Skill 图标、名称、本地化的简短描述与版本/更新元信息;卸载前会先请求确认。
+
+标签页头部可打开一个导入对话框,它以推荐路径开场:通过与 Agent 对话来安装。来源字段接受的不止是网页 URL——还可以是 GitHub/GitLab 仓库或目录、本地文件夹路径、来自其他生态的安装命令(`npx skills add …`、Claude Code / Codex 插件安装——那些插件本质上就是 Skill 文件),或者一个裸的市场引用——而一个小型分类器会按形式定制生成的提示词(抓取该页面 / 克隆并定位 SKILL.md 目录 / 读取该文件夹 / 推断该命令会安装什么并从其源头抓取,而不是盲目执行它)。每个变体都保留「先审阅」条款,并在 skill-porting 库 Skill 已安装时指向它。「打开新会话」会经既有的草稿缓存把生成的提示词预填进输入区——Agent 可以对它所安装的内容做出调整,而盲目解压做不到这一点。该对话框的第二条路径是上传一个 Skill zip:新增的成员级 `POST /api/projects/:p/agents/:a/skills/archive` 以 base64 JSON 接收压缩包(这是该 API 既定的上传形态),接受位于 zip 根部、或位于恰好一个顶层目录之内的 `SKILL.md`,按常规名称模式从该目录派生名称(否则取自 frontmatter),拒绝路径逃逸条目,并把载荷限制在 200 个文件 / 单文件 5 MB / 解压后 20 MB 之内。上传一个已安装的名称会得到 409,而对话框会提供一个显式的覆盖选项,它会整体替换该目录。解压使用 server 包中新增的 `fflate` 依赖。
+
+反方向也一并提供:每一行都带一个导出操作,把已安装的 Skill 下载为 `<name>.zip`——当 frontmatter 声明了显式版本时则为 `<name>-v<version>.zip`——整个目录置于单个顶层文件夹之下,像 trace 下载那样作为直接附件提供,并受同样的大小上限约束,因此一个 Skill 经导入端点往返之后原样不变。导出与卸载是带 tooltip 的图标按钮,遵循工具行所采用的「图标加 tooltip」规则。
+
+## Agent 列表
+
+每个 Agent 行上的工具、vault key、定时任务与 Skill 这几个统计图标,现在都是按钮,点击会打开设置页并落在对应的标签页上。设置页为此学会了 `?tab=` 深链:其取值会对照实时的标签页列表校验(未知取值回退到 Overview),而切换标签会保持 URL 同步且不污染浏览历史。列表行上的活动会话数徽章已移除——会话那一列本就说明了这件事——而设置页的 Overview 保留其活动会话数字。
diff --git a/changelog/0.2.1/2026-08-04-ansi-tool-output.md b/changelog/0.2.1/2026-08-04-ansi-tool-output.md
index e5d9f7fc..9a19bf20 100644
--- a/changelog/0.2.1/2026-08-04-ansi-tool-output.md
+++ b/changelog/0.2.1/2026-08-04-ansi-tool-output.md
@@ -1,6 +1,14 @@
# Fix: ANSI color codes no longer leak into tool output
-A nested `penguin run` driven through `exec_command` and polled with `input_command` filled Web tool cards with `[36m`/`[0m` fragments spliced into words (#102). Three layers each contributed, and each is fixed:
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `cli`, `core`, `web`
+- **PR:** [#187](https://github.com/Prism-Shadow/penguin-harness/pull/187)
+- **Issue:** [#102](https://github.com/Prism-Shadow/penguin-harness/issues/102)
+
+[中文版](2026-08-04-ansi-tool-output.zh.md)
+
+A nested `penguin run` driven through `exec_command` and polled with `input_command` filled Web tool cards with `[36m`/`[0m` fragments spliced into words ([#102](https://github.com/Prism-Shadow/penguin-harness/issues/102)). Three layers each contributed, and each is fixed:
- **CLI**: the renderer wrote escape codes unconditionally. Color is now decided once per output stream — TTY, `NO_COLOR` unset, `TERM` not `dumb`, with a non-empty `FORCE_COLOR` overriding in either direction, matching Node's own semantics — and every renderer escape routes through that palette, so piped output is plain text.
- **Command tool environment**: the child environment always set `NO_COLOR=1` and `TERM=dumb`, but an inherited `FORCE_COLOR` silently won (Node ignores `NO_COLOR` when `FORCE_COLOR` is set). `FORCE_COLOR` and `CLICOLOR_FORCE` are now stripped — removed, not blanked, since Node reads an empty `FORCE_COLOR` as "on" — so the hardening finally holds; a vault-provided value still passes through by design.
diff --git a/changelog/0.2.1/2026-08-04-ansi-tool-output.zh.md b/changelog/0.2.1/2026-08-04-ansi-tool-output.zh.md
new file mode 100644
index 00000000..d37d2741
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-ansi-tool-output.zh.md
@@ -0,0 +1,17 @@
+# 修复:ANSI 颜色码不再泄漏进工具输出
+
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `cli`, `core`, `web`
+- **PR:** [#187](https://github.com/Prism-Shadow/penguin-harness/pull/187)
+- **Issue:** [#102](https://github.com/Prism-Shadow/penguin-harness/issues/102)
+
+[English](2026-08-04-ansi-tool-output.md)
+
+一个经 `exec_command` 驱动、并用 `input_command` 轮询的嵌套 `penguin run`,会把 `[36m`/`[0m` 片段拼接进单词、塞满 Web 的工具卡片([#102](https://github.com/Prism-Shadow/penguin-harness/issues/102))。三个层次各有一份责任,每一份都已修复:
+
+- **CLI**:渲染器无条件写出转义码。颜色现在按输出流决定一次——是否 TTY、`NO_COLOR` 未设置、`TERM` 不为 `dumb`,而非空的 `FORCE_COLOR` 可在两个方向上覆盖,与 Node 自身的语义一致——渲染器的每一处转义都经这套调色板,因此被管道接走的输出就是纯文本。
+- **命令工具环境**:子进程环境本就总是设置 `NO_COLOR=1` 与 `TERM=dumb`,但继承来的 `FORCE_COLOR` 会静默胜出(当 `FORCE_COLOR` 被设置时 Node 会忽略 `NO_COLOR`)。`FORCE_COLOR` 与 `CLICOLOR_FORCE` 现在被剥离——是移除而不是置空,因为 Node 把空的 `FORCE_COLOR` 读作「开启」——于是这项加固终于成立;而由 vault 提供的取值仍按设计放行。
+- **Web**:工具输出经一个防御性的 ANSI 剥离器渲染(覆盖 CSI 包括多参数 SGR、OSC、双字节转义,以及在流中途被切断的不完整序列),且只在渲染时施加——历史 Trace 得以干净显示,而它们的文件并未被改写。Trace 事件检查器刻意保留原始载荷:那本就是原始数据视图。
+
+回归测试覆盖全部三层,包括所报告的 `FORCE_COLOR=3` + `NO_COLOR=1` + `TERM=dumb` 组合,以及跨流式分块边界被切开的序列。
diff --git a/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.md b/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.md
index bd6726ba..aa21dc7e 100644
--- a/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.md
+++ b/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.md
@@ -1,3 +1,10 @@
# CLI: `penguin web` reports readiness-probe failures
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `cli`
+- **PR:** [#169](https://github.com/Prism-Shadow/penguin-harness/pull/169)
+
+[中文版](2026-08-04-cli-web-probe-diagnostics.zh.md)
+
`penguin web` used to discard every readiness-probe exception and print the same generic "not responding yet" line, which read as the server being slow even when the real cause was a firewall silently dropping loopback requests. The probe now retains the last nested Node/undici error, classifies it (connection timeout, refused, reset/socket, permission, DNS, unknown), and prints an actionable, localized diagnosis on stderr — the timeout case asks the user to allow PenguinHarness to communicate on the configured local port rather than telling anyone to disable a firewall. Any HTTP response still counts as ready, and the classification is covered by focused unit tests.
diff --git a/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.zh.md b/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.zh.md
new file mode 100644
index 00000000..d3170ac8
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-cli-web-probe-diagnostics.zh.md
@@ -0,0 +1,10 @@
+# CLI:`penguin web` 报告就绪探测的失败原因
+
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `cli`
+- **PR:** [#169](https://github.com/Prism-Shadow/penguin-harness/pull/169)
+
+[English](2026-08-04-cli-web-probe-diagnostics.md)
+
+`penguin web` 此前会丢弃每一个就绪探测异常,并打印同一句笼统的「尚未响应」,读起来像是服务端启动慢——即便真实原因是防火墙在静默丢弃环回请求。该探测现在保留最后一个嵌套的 Node/undici 错误,对其分类(连接超时、被拒绝、重置/套接字、权限、DNS、未知),并在 stderr 上打印一条可操作、已本地化的诊断——超时那一种会请用户允许 PenguinHarness 在所配置的本地端口上通信,而不是叫人去关掉防火墙。任何 HTTP 响应仍然算作就绪,而这套分类由针对性的单元测试覆盖。
diff --git a/changelog/0.2.1/2026-08-04-compaction-retry-observability.md b/changelog/0.2.1/2026-08-04-compaction-retry-observability.md
index de2a7614..bd3b18d8 100644
--- a/changelog/0.2.1/2026-08-04-compaction-retry-observability.md
+++ b/changelog/0.2.1/2026-08-04-compaction-retry-observability.md
@@ -1,5 +1,13 @@
# Compaction extraction tolerance, retry parity, and failure observability
-Fixes #170, where deepseek-v4-flash sessions became unusable: the model wrote `[summary][/summary]` as a title with the body after the closing tag, extraction took the empty pair, and every retry re-showed the model its own committed bad output — which it copied verbatim, forever. `extractSummary` now applies a tolerance ladder (first non-empty tag pair → whatever remains after stripping empty summary blocks → tagless output verbatim), preserving byte-identical re-extraction of healthy historical Traces.
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `core`, `server`, `web`, `cli`
+- **PR:** [#174](https://github.com/Prism-Shadow/penguin-harness/pull/174)
+- **Issue:** [#170](https://github.com/Prism-Shadow/penguin-harness/issues/170)
+
+[中文版](2026-08-04-compaction-retry-observability.zh.md)
+
+Fixes [#170](https://github.com/Prism-Shadow/penguin-harness/issues/170), where deepseek-v4-flash sessions became unusable: the model wrote `[summary][/summary]` as a title with the body after the closing tag, extraction took the empty pair, and every retry re-showed the model its own committed bad output — which it copied verbatim, forever. `extractSummary` now applies a tolerance ladder (first non-empty tag pair → whatever remains after stripping empty summary blocks → tagless output verbatim), preserving byte-identical re-extraction of healthy historical Traces.
A committed-but-unusable compaction response now counts as one more failed attempt on the standard `compactionMaxReconnects` budget and exponential backoff ladder — only `auth` stops without retrying — with the tool_use pairing repaired and a corrective note prepended before the re-sent prompt (append-only, prompt-cache-safe). The burned cost becomes visible: `compaction_end` gains `attempts`, every attempt's `token_usage` is surfaced between the compaction event pair, and a failed compaction lands as one cost-center error row. Retry state moves to one shared `RetryDetail` shape (`error_message` / `attempt` / `retry_in_ms`) across `request_end` and `compaction_end`, read directly by the CLI and Web retry displays instead of client-side counting. New agents get a shorter compaction prompt that shows the format as a concrete example; existing agents keep their stored prompt and are covered by the extraction rescue and retry guidance.
diff --git a/changelog/0.2.1/2026-08-04-compaction-retry-observability.zh.md b/changelog/0.2.1/2026-08-04-compaction-retry-observability.zh.md
new file mode 100644
index 00000000..559820da
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-compaction-retry-observability.zh.md
@@ -0,0 +1,13 @@
+# 压缩的抽取容忍、重试对齐与失败可观测性
+
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `core`, `server`, `web`, `cli`
+- **PR:** [#174](https://github.com/Prism-Shadow/penguin-harness/pull/174)
+- **Issue:** [#170](https://github.com/Prism-Shadow/penguin-harness/issues/170)
+
+[English](2026-08-04-compaction-retry-observability.md)
+
+修复 [#170](https://github.com/Prism-Shadow/penguin-harness/issues/170):deepseek-v4-flash 的会话变得完全不可用——模型把 `[summary][/summary]` 当作标题写出来,正文却放在闭合标签之后,抽取取到的是那个空标签对,而每一次重试又把模型自己已提交的坏输出再展示给它一遍——于是它逐字照抄,永无止境。`extractSummary` 现在施加一条容忍阶梯(首个非空标签对 → 剥离空 summary 区块之后剩下的内容 → 无标签的输出原样采用),同时保证对健康的历史 Trace 逐字节一致地重新抽取。
+
+一次已提交但不可用的压缩响应,现在算作标准 `compactionMaxReconnects` 预算与指数退避阶梯上的又一次失败尝试——只有 `auth` 会不重试即停止——并会修复 tool_use 配对、在重发的提示词之前前置一条纠正性注记(仅追加,对提示词缓存安全)。被烧掉的成本变得可见:`compaction_end` 新增 `attempts`,每次尝试的 `token_usage` 都在压缩事件对之间呈现,而一次失败的压缩会作为一行成本中心错误落地。重试状态收敛为一个共享的 `RetryDetail` 形状(`error_message` / `attempt` / `retry_in_ms`),贯穿 `request_end` 与 `compaction_end`,由 CLI 与 Web 的重试展示直接读取,而不再在客户端自行计数。新建 Agent 会获得一份更短的压缩提示词,它以一个具体示例来展示格式;已有 Agent 保留其已存提示词,并由抽取救援与重试指引覆盖。
diff --git a/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.md b/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.md
index 98d104b0..b39382c8 100644
--- a/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.md
+++ b/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.md
@@ -1,3 +1,10 @@
# data-analysis skill v2 and a leaner multi-run evaluation flow
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `skills`, `docs`
+- **PR:** [#194](https://github.com/Prism-Shadow/penguin-harness/pull/194)
+
+[中文版](2026-08-04-data-analysis-skill-v2.zh.md)
+
The `data-analysis` library skill moves to v2, tightening its constraints on data granularity and semantics, native artifact handling, complete delivery, and risk-proportional verification. The benchmark flow stops re-running what it already measured: the design stage pins every Case at one run and reuses the selected Pilot results verbatim as the Formal Baseline, the Optimization stage takes a user-specified per-Candidate `runs` count dispatched Case × Runs in parallel and compares the recorded averages directly, and the Evaluator treats `run` as an upstream-assigned label instead of rejecting runs beyond the config's total. Docs (zh/en), the frontend example prompts and the contract tests are updated in sync.
diff --git a/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.zh.md b/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.zh.md
new file mode 100644
index 00000000..f6be08e7
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-data-analysis-skill-v2.zh.md
@@ -0,0 +1,10 @@
+# data-analysis skill v2 与更精简的多 Run 评估流程
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `skills`, `docs`
+- **PR:** [#194](https://github.com/Prism-Shadow/penguin-harness/pull/194)
+
+[English](2026-08-04-data-analysis-skill-v2.md)
+
+`data-analysis` 库 Skill 升到 v2,收紧了它在数据粒度与语义、原生产物处理、完整交付,以及与风险成比例的验证这几方面的约束。基准测试流程不再重跑它已经测过的东西:设计阶段把每个 Case 固定为一次运行,并逐字复用选定的 Pilot 结果作为 Formal Baseline;优化阶段接受用户指定的逐候选 `runs` 次数,按 Case × Runs 并行派发,并直接比较所记录的平均值;而 Evaluator 把 `run` 视作上游指派的标签,不再拒绝超出配置总数的运行。文档(中英)、前端示例提示词与契约测试同步更新。
diff --git a/changelog/0.2.1/2026-08-04-deps-hono-redos.md b/changelog/0.2.1/2026-08-04-deps-hono-redos.md
index 7ba4f293..c751fd4c 100644
--- a/changelog/0.2.1/2026-08-04-deps-hono-redos.md
+++ b/changelog/0.2.1/2026-08-04-deps-hono-redos.md
@@ -1,3 +1,10 @@
# Dependencies: hono ≥ 4.12.34 (CORS preflight ReDoS)
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `server`
+- **PR:** [#197](https://github.com/Prism-Shadow/penguin-harness/pull/197)
+
+[中文版](2026-08-04-deps-hono-redos.zh.md)
+
Resolves the repository's one open Dependabot alert: GHSA-8j4g-w8fx-2239 / CVE-2026-69207, a moderate ReDoS in Hono's `hono/cors` middleware — quadratic regex backtracking on an attacker-controlled `Access-Control-Request-Headers` preflight header when `allowHeaders` is unconfigured. The server package's direct `hono` range moves from `^4.8.0` to `^4.12.34` (the first patched version, same major); the lockfile change is confined to the hono chain, and `pnpm audit` reports no known vulnerabilities after the bump.
diff --git a/changelog/0.2.1/2026-08-04-deps-hono-redos.zh.md b/changelog/0.2.1/2026-08-04-deps-hono-redos.zh.md
new file mode 100644
index 00000000..590a0b7d
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-deps-hono-redos.zh.md
@@ -0,0 +1,10 @@
+# 依赖:hono ≥ 4.12.34(CORS 预检 ReDoS)
+
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `server`
+- **PR:** [#197](https://github.com/Prism-Shadow/penguin-harness/pull/197)
+
+[English](2026-08-04-deps-hono-redos.md)
+
+解决本仓库唯一一个开放的 Dependabot 告警:GHSA-8j4g-w8fx-2239 / CVE-2026-69207,Hono 的 `hono/cors` 中间件中一处中危 ReDoS——当 `allowHeaders` 未配置时,攻击者可控的 `Access-Control-Request-Headers` 预检头会触发正则的平方级回溯。server 包对 `hono` 的直接依赖范围从 `^4.8.0` 提升到 `^4.12.34`(首个修复版本,同一大版本);lockfile 的改动限于 hono 依赖链,升级之后 `pnpm audit` 报告没有已知漏洞。
diff --git a/changelog/0.2.1/2026-08-04-desktop-app.md b/changelog/0.2.1/2026-08-04-desktop-app.md
index 6fd63186..3aa6180b 100644
--- a/changelog/0.2.1/2026-08-04-desktop-app.md
+++ b/changelog/0.2.1/2026-08-04-desktop-app.md
@@ -1,5 +1,12 @@
# Desktop app: Electron shell over the embedded server
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `desktop`, `server`, `web`, `cli`
+- **PR:** [#173](https://github.com/Prism-Shadow/penguin-harness/pull/173), [#177](https://github.com/Prism-Shadow/penguin-harness/pull/177), [#180](https://github.com/Prism-Shadow/penguin-harness/pull/180), [#189](https://github.com/Prism-Shadow/penguin-harness/pull/189), [#199](https://github.com/Prism-Shadow/penguin-harness/pull/199), [#206](https://github.com/Prism-Shadow/penguin-harness/pull/206)
+
+[中文版](2026-08-04-desktop-app.zh.md)
+
New `packages/desktop`: a desktop distribution of the Web App that runs the existing server and frontend unchanged — an Electron shell forks `@prismshadow/penguin-server` as a utilityProcess on the shared data root and points its window at `http://localhost:<port>`, keeping the plain same-origin HTTP/SSE contract (no private IPC, no preload, no node integration in the window).
## Shell
diff --git a/changelog/0.2.1/2026-08-04-desktop-app.zh.md b/changelog/0.2.1/2026-08-04-desktop-app.zh.md
new file mode 100644
index 00000000..e60ce4f0
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-desktop-app.zh.md
@@ -0,0 +1,36 @@
+# 桌面应用:内嵌服务端之上的 Electron 外壳
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `desktop`, `server`, `web`, `cli`
+- **PR:** [#173](https://github.com/Prism-Shadow/penguin-harness/pull/173), [#177](https://github.com/Prism-Shadow/penguin-harness/pull/177), [#180](https://github.com/Prism-Shadow/penguin-harness/pull/180), [#189](https://github.com/Prism-Shadow/penguin-harness/pull/189), [#199](https://github.com/Prism-Shadow/penguin-harness/pull/199), [#206](https://github.com/Prism-Shadow/penguin-harness/pull/206)
+
+[English](2026-08-04-desktop-app.md)
+
+新增 `packages/desktop`:Web App 的桌面分发形态,它原封不动地运行既有的服务端与前端——一个 Electron 外壳把 `@prismshadow/penguin-server` 作为 utilityProcess 在共享数据根目录上 fork 出来,并把窗口指向 `http://localhost:<port>`,保持朴素的同源 HTTP/SSE 契约(没有私有 IPC、没有 preload、窗口中没有 node 集成)。
+
+## 外壳
+
+这个单实例外壳以 `PORT=0` 启动服务端,从一次 `PENGUIN_PORT_FILE` 通告中获知实际端口,并加载一次性的 `GET /api/auth/desktop-login?token=…`——这个逐次启动的令牌(经 `PENGUIN_DESKTOP_TOKEN` 传入)让窗口以 admin 身份登录,无需登录页。外部链接与 Workspace 预览在系统浏览器中打开。崩溃的服务端以 1 秒/2 秒/4 秒退避重启;退出时经 `POST /api/desktop/shutdown` 停止它(Bearer 令牌——这在 Windows 上是唯一的优雅路径,因为在那里杀死子进程属于硬终止),失败则回退到 kill。
+
+## 服务端的桌面模式
+
+桌面模式仅限环回,并新增:那个一次性登录端点、可复用的关停端点、一列 `auth_sessions.via`("password" | "desktop",幂等 ALTER),以及 `GET /api/me` 上的 `desktopMode` 与 `sessionVia`。由桌面创建的数据根目录,其预置 admin 会获得一个完全随机、且从不打印的密码——登录经外壳的令牌完成;而由桌面建立的会话可以在不提供旧密码的情况下修改密码(针对同一服务端的浏览器会话仍然必须提供)。在 `PORT=0` 下,`::1` 的预览监听器现在复用实际绑定的端口,而不是再抓一个随机端口。
+
+## 每个数据根目录一个实例
+
+`web.db` 是单写者,而定时任务调度器不得运行两份,因此新增的 `<root>/server.lock`(pid + 端口存活性;陈旧的锁会被覆盖,关停时释放)保证每个数据根目录只有一个服务端,并以无副作用的方式导出为 `@prismshadow/penguin-server/lock`。`penguin server` 现在会拒绝一个繁忙的根目录并打印既有实例的 URL;`penguin web` 则打开既有实例而不是失败;桌面外壳会把它的窗口挂到那个实例上(走正常登录页——一次性令牌只对由外壳自己派生的服务端有效)。这也顺带消除了此前那个隐患:两个 `penguin web` 进程重复运行同一批定时任务。
+
+## 桌面模式下的 Web App
+
+窗口会隐藏那些被外壳变得没有意义的东西:登出入口(窗口本身就是会话)、初始密码横幅(预置密码是随机的且从不展示),以及自更新入口(更新属于桌面应用;Web 端的自更新会重新运行 CLI 入口,而它在外壳下并不存在)。对桌面会话,修改密码对话框去掉旧密码字段。
+
+## 打包(三平台)
+
+electron-builder 从一棵 `pnpm deploy --prod` 暂存树产出 macOS 的 dmg + zip(arm64/x64)、Windows 的 NSIS,以及 Linux 的 AppImage + deb——那是一棵可移植的 node_modules,其中工作区包已实体化,Web 构建产物放在 server 包的 npm 布局位置;asar 刻意关闭(外壳要 fork 服务端、Skill 库要从磁盘读它的文件、Agent 命令要派生真实的 shell)。Windows 携带与 CLI zip 相同的、被固定版本的 MinGit,并以 `PENGUIN_BUNDLED_SHELL` 公布。一个可复用的 `desktop-build.yml` 三操作系统矩阵(带 `workflow_dispatch` 空跑)在 `release.yml` 内部、于 Release 创建**之前**运行——产物在发布后即不可变——并附加这些安装包与 `SHA256SUMS.desktop`。M3 的产物未签名;签名、公证、图标与 electron-updater 是下一个里程碑。开发体验方面:根级 `pnpm desktop` 会构建一切并在开发数据根目录上启动外壳,而一个预检把「陈旧注入副本」导致的 `ERR_MODULE_NOT_FOUND` 变成一条可操作的提示。
+
+## 修复
+
+两个 Workspace HTML 预览入口在桌面应用中此前都是死的,现在都可用了。预览重定向解析出的端口是 `0`——预览 URL 是按服务端自身的绑定端口构建的(这是刻意的,因为开发时 SPA 跑在另一个端口上),而外壳以 `PORT=0` 启动服务端——于是产生了 `http://127.0.0.1:0/…` 这样一个被浏览器判为不安全端口而拒绝的地址;实际绑定的端口现在会在监听之后回写,而未知端口则降级为沙箱化的同源预览,而不是给出一个加载不了的 URL。「在新标签页打开」此前静默无事发生,因为该链接属于应用源,而外壳拒绝一切弹窗、只把外部 URL 转发给系统浏览器——而在那里,受 Cookie 门控的重定向本来也会 401;应用源的弹窗现在会打开一个不含 Node 的子窗口,它跟随该重定向并可在本实例的环回界面内导航,其余一切仍然向外走。另外,桌面外壳的进程凭证(`PENGUIN_DESKTOP_TOKEN`、`PENGUIN_PORT_FILE`)与被固定的预置密码,不再泄漏进 Agent 的命令环境。
+
+该应用也不再在两次启动之间遗忘界面偏好(语言、主题):渲染器把它们持久化在 `localStorage` 中,而浏览器按窗口的源来隔离它,可每次启动都用 `PORT=0` 就让这个源每次都变。外壳现在会记住服务端实际绑定过的端口(`userData/preferred-port`),并在它于两个环回协议栈上都仍空闲时再次请求该端口,一旦被占用则回退到 `PORT=0`——端口号的唯一来源仍然是操作系统分配器,而丢掉一个端口的代价恰好是一次偏好重置。
diff --git a/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.md b/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.md
index bfd2975b..e238295a 100644
--- a/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.md
+++ b/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.md
@@ -1,5 +1,12 @@
# Desktop installers on the OSS mirror, and a landing download page
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `ci`, `landing`, `docs`
+- **PR:** [#177](https://github.com/Prism-Shadow/penguin-harness/pull/177), [#201](https://github.com/Prism-Shadow/penguin-harness/pull/201), [#205](https://github.com/Prism-Shadow/penguin-harness/pull/205)
+
+[中文版](2026-08-04-desktop-distribution-and-download-page.zh.md)
+
## Distribution
Desktop installers move to version-less artifact names following the CLI bundle convention — `penguin-desktop-darwin-{arm64,x64}.dmg` / `.zip`, `penguin-desktop-win32-x64.exe`, `penguin-desktop-linux-x86_64.AppImage` / `penguin-desktop-linux-amd64.deb` — with the version carried by the Release tag and `SHA256SUMS.desktop`. The OSS mirror job now mirrors all seven installers plus `SHA256SUMS.desktop` into the immutable per-tag prefix, verified as a set through `SHA256SUMS.desktop`; the CLI bundles' canonical manifest is unchanged.
diff --git a/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.zh.md b/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.zh.md
new file mode 100644
index 00000000..6ac53c69
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-desktop-distribution-and-download-page.zh.md
@@ -0,0 +1,16 @@
+# 桌面安装包上 OSS 镜像,以及落地页的下载页
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `ci`, `landing`, `docs`
+- **PR:** [#177](https://github.com/Prism-Shadow/penguin-harness/pull/177), [#201](https://github.com/Prism-Shadow/penguin-harness/pull/201), [#205](https://github.com/Prism-Shadow/penguin-harness/pull/205)
+
+[English](2026-08-04-desktop-distribution-and-download-page.md)
+
+## 分发
+
+桌面安装包改用不带版本号的产物名,沿用 CLI 安装包的约定——`penguin-desktop-darwin-{arm64,x64}.dmg` / `.zip`、`penguin-desktop-win32-x64.exe`、`penguin-desktop-linux-x86_64.AppImage` / `penguin-desktop-linux-amd64.deb`——版本由 Release tag 与 `SHA256SUMS.desktop` 承载。OSS 镜像任务现在把全部七个安装包连同 `SHA256SUMS.desktop` 一并镜像进不可变的按 tag 前缀之下,并通过 `SHA256SUMS.desktop` 作为整体校验;CLI 安装包的规范清单未变。
+
+## 落地页站点
+
+新增 `/download` 页,采用经典软件下载页的形态:每个平台一张卡片并为访客所用系统加徽标;点击下载按钮起初指向 GitHub 的静态 `releases/latest/download/<name>` 链接,在客户端解析出存储桶的 `latest.json` 指针之后切换为 OSS 镜像的按 tag URL(校验方式与安装脚本转发层校验它的方式完全一致——一次失败的拉取,例如缺少 CORS,会静默保留 GitHub 链接);另有 GitHub/OSS 源的手动切换、校验和与全部发布的链接,以及未签名构建的首次启动说明。导航(落地页及其文档站对齐副本)、页脚、快速开始提示、站点地图与 Pages 路由外壳都已相应接线,而 README(中英)新增一节桌面应用安装,指向该页面。
diff --git a/changelog/0.2.1/2026-08-04-download-source-selection.md b/changelog/0.2.1/2026-08-04-download-source-selection.md
index 0e62e02c..ba8a4f7c 100644
--- a/changelog/0.2.1/2026-08-04-download-source-selection.md
+++ b/changelog/0.2.1/2026-08-04-download-source-selection.md
@@ -1,5 +1,12 @@
# Download source selection for standalone installers and `penguin update`
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `tooling`, `cli`
+- **PR:** [#176](https://github.com/Prism-Shadow/penguin-harness/pull/176), [#196](https://github.com/Prism-Shadow/penguin-harness/pull/196)
+
+[中文版](2026-08-04-download-source-selection.zh.md)
+
Standalone `install.sh` / `install.ps1` files gain the same OSS-first source selection the `penguin.ooo` forwarding layer got in 0.2.0 (`PENGUIN_DOWNLOAD_SOURCE=auto|oss|github`). Newly published installers are stamped with their immutable Release tag, so a versioned installer downloads exactly its matching package instead of silently following a future latest Release — `auto` tries that tag on OSS first and falls back to the same tag on GitHub, explicit `PENGUIN_DOWNLOAD_BASE_URL` / fallback overrides keep top priority, and offline installation plus unconditional checksum enforcement are unchanged. An unstamped source-tree installer locks a tag through the OSS `latest.json` pointer before downloading anything, and a one-sided stamping state fails the release rather than shipping mismatched POSIX and Windows installers.
`penguin update` now follows the same contract instead of requiring GitHub at the start of every upgrade: release discovery prefers the validated OSS `latest.json` and its immutable release in `auto` (same-tag GitHub fallback; forced `oss` and `github` modes stay strict), the selected payload base and same-tag fallback are handed to the child installer with a stale inherited fallback explicitly cleared, explicit HTTPS mirrors keep precedence, and source-selection failures are reported localized.
diff --git a/changelog/0.2.1/2026-08-04-download-source-selection.zh.md b/changelog/0.2.1/2026-08-04-download-source-selection.zh.md
new file mode 100644
index 00000000..1006b2b6
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-download-source-selection.zh.md
@@ -0,0 +1,12 @@
+# 独立安装脚本与 `penguin update` 的下载源选择
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `tooling`, `cli`
+- **PR:** [#176](https://github.com/Prism-Shadow/penguin-harness/pull/176), [#196](https://github.com/Prism-Shadow/penguin-harness/pull/196)
+
+[English](2026-08-04-download-source-selection.md)
+
+独立的 `install.sh` / `install.ps1` 文件获得了 `penguin.ooo` 转发层在 0.2.0 中已有的那套 OSS 优先的源选择(`PENGUIN_DOWNLOAD_SOURCE=auto|oss|github`)。新发布的安装脚本会被打上其不可变的 Release tag,因此一个带版本的安装脚本下载的正是与之匹配的包,而不会悄悄跟随未来的最新 Release——`auto` 会先在 OSS 上尝试该 tag,再回退到 GitHub 上的同一 tag;显式的 `PENGUIN_DOWNLOAD_BASE_URL` / 回退覆盖仍保持最高优先级;离线安装与无条件的校验和强制均未改变。一个未打戳的源码树安装脚本会先经 OSS 的 `latest.json` 指针锁定一个 tag,然后才开始下载任何东西;而只打了一半戳的状态会让发布失败,而不是发出 POSIX 与 Windows 安装脚本互相不匹配的版本。
+
+`penguin update` 现在遵循同一份契约,而不再要求每次升级开头都必须能访问 GitHub:版本发现在 `auto` 模式下优先使用经校验的 OSS `latest.json` 及其不可变发布(同 tag 的 GitHub 回退;强制的 `oss` 与 `github` 模式保持严格);所选的载荷基址与同 tag 回退会交给子安装脚本,并显式清除继承来的陈旧回退值;显式的 HTTPS 镜像保持优先;而源选择失败会以本地化的方式报告。
diff --git a/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.md b/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.md
index 8fb05527..260c47f3 100644
--- a/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.md
+++ b/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.md
@@ -1,5 +1,12 @@
# Server: the last two IO hotspots — scheduler ticks and chat-history loads
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#200](https://github.com/Prism-Shadow/penguin-harness/pull/200), [#202](https://github.com/Prism-Shadow/penguin-harness/pull/202)
+
+[中文版](2026-08-04-io-hotspots-scheduler-messages.zh.md)
+
The disk-IO audit that produced the trace index left two hotspots standing; both are closed.
## Scheduler ticks and project-config reads
diff --git a/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.zh.md b/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.zh.md
new file mode 100644
index 00000000..c876ee21
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-io-hotspots-scheduler-messages.zh.md
@@ -0,0 +1,18 @@
+# Server:最后两处 IO 热点——调度器心跳与聊天历史加载
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#200](https://github.com/Prism-Shadow/penguin-harness/pull/200), [#202](https://github.com/Prism-Shadow/penguin-harness/pull/202)
+
+[English](2026-08-04-io-hotspots-scheduler-messages.md)
+
+那次产出了 Trace 索引的磁盘 IO 审计留下了两处热点;两处都已关闭。
+
+## 调度器心跳与 Project 配置读取
+
+30 秒一次的调度器心跳此前会重新读取每个 Agent 的每一个定时任务文件,并为每个定时任务文件重新解析同一份 `.project_config.toml`,永无止境,且不做任何变化检测——这是该进程中唯一一处无条件的周期性磁盘负载。定时任务扫描现在按 Agent 缓存,以定时任务目录的 mtime 加上逐文件的 mtime/size 检查为键(逐文件的 stat 堵住了 POSIX 的那个盲点:原地编辑不会触动目录 mtime,因此手工编辑过的文件在下一次心跳时仍能被拾取);Agent 目录的枚举本身也以同样方式设闸,而那条「刚刚变化的 mtime 绝不缓存为干净」的哨兵移入了共享的 `internal/mtime-gate.ts`,Trace 索引现在也导入它——契约只存在于一处。`.project_config.toml` 在 `ProjectConfigService` 内部获得一份已解析表的缓存,复用前先做 stat 检查,并由每一条服务写入路径同步失效,因此调度器校验、定时任务路由与用量定价三者对磁盘上的每一个版本共用一次解析,而手工编辑仍然能生效。稳定状态下每次心跳:若干次 stat,零次文件读取;调度行为、列出顺序与校验语义逐字节一致,而测试以 fs 探针固定住这个零读取的稳定状态。
+
+## 聊天历史分页
+
+`GET /api/sessions/:id/messages` 此前为每个请求重建整个会话的对话记录——每个分片整份读入,递归包含子 Agent 会话,而且每次 SSE 重新同步都要重做一遍。该端点现在接受增量式的游标参数:`tailLimit` 返回最新的窗口(并带上运行中会话的实时附着内容,捕获语义不变),`before=<shard>:<ordinal>` 则往回翻更早的历史;不带参数时响应与此前逐字节一致,并由一个原始字节测试固定。窗口只在 Task 边界处切分——工具调用配对、压缩跨度与成组发送绝不会被切开——而且只读取与该窗口重叠的那些分片,分片清单来自 Trace 索引,更早分片的轮次数与 Token 总量则由逐分片的 `page_stats` 前缀缓存提供(这是一个派生的、带版本的列,以幂等方式加进已有数据库;用户无需任何操作)。Web 端先加载尾部(200 个单位),并在向上滚动时每次回填 100 个、以锚定方式前置插入;而一次重新同步只有在纪元与游标连续性可证明时才拼接到保留的前缀上,任何存疑情形都回退到旧的整份重新拉取。对话大纲通过服务端提供的「更早轮次数」,在部分历史上仍保持全局正确的轮次编号,而头部的 Token/已用时间数字则通过带种子的前缀统计保持真实。
diff --git a/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.md b/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.md
index 7be29a21..c4048ea6 100644
--- a/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.md
+++ b/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.md
@@ -1,5 +1,12 @@
# Models: OpenRouter gains qwen/qwen3.8-max
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `model-catalog`, `skills`
+- **PR:** [#178](https://github.com/Prism-Shadow/penguin-harness/pull/178)
+
+[中文版](2026-08-04-model-catalog-openrouter-qwen38-max.zh.md)
+
Prices and specs read from OpenRouter's models API on 2026-08-04.
The OpenRouter group gains `qwen/qwen3.8-max` — USD 2/6 per mtok input/output, cache reads at the published 0.25 hit price, cache writes at the genuine 2.5 (1.25× input) premium, a 1,000,000-token context window, vision — inserted ahead of `qwen/qwen3.6-35b-a3b` per the newer-versions-first ordering. The block's provenance comment now counts it among the rows carrying a real cache-write premium. The catalog already had the model through the qianwenai resale groups; this adds the OpenRouter spelling with OpenRouter's own USD prices.
diff --git a/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.zh.md b/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.zh.md
new file mode 100644
index 00000000..8d3ab55e
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-model-catalog-openrouter-qwen38-max.zh.md
@@ -0,0 +1,16 @@
+# 模型:OpenRouter 新增 qwen/qwen3.8-max
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `model-catalog`, `skills`
+- **PR:** [#178](https://github.com/Prism-Shadow/penguin-harness/pull/178)
+
+[English](2026-08-04-model-catalog-openrouter-qwen38-max.md)
+
+价格与规格于 2026-08-04 读取自 OpenRouter 的 models API。
+
+OpenRouter 分组新增 `qwen/qwen3.8-max`——每百万 Token 输入/输出 USD 2/6,缓存读取采用公布的 0.25 命中价,缓存写入采用真实的 2.5(1.25× 输入)溢价,上下文窗口 1,000,000,支持视觉——按同系列最新在前的顺序,插在 `qwen/qwen3.6-35b-a3b` 之前。该区块的来源注释现在把它计入那些携带真实缓存写入溢价的行。目录本就通过 qianwenai 的转售分组收录了这个模型;这次新增的是它的 OpenRouter 写法,配 OpenRouter 自己的美元价格。
+
+agenthub-models skill(v10)新增一行 Qwen 3.8 Max 并记录其 OpenRouter id——目录中没有其他网关转售它,因此那一列是孤立的一项。
+
+与每次目录新增一样,不存在自动迁移:已有 Project 保留其已存的模型表,通过模型页显式的「同步预设」操作来取得该行;新建 Project 则开箱可见。
diff --git a/changelog/0.2.1/2026-08-04-project-chat-defaults.md b/changelog/0.2.1/2026-08-04-project-chat-defaults.md
index 599bf1e9..e91fc313 100644
--- a/changelog/0.2.1/2026-08-04-project-chat-defaults.md
+++ b/changelog/0.2.1/2026-08-04-project-chat-defaults.md
@@ -1,5 +1,12 @@
# Web App: per-Project defaults for new chats
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#191](https://github.com/Prism-Shadow/penguin-harness/pull/191)
+
+[中文版](2026-08-04-project-chat-defaults.zh.md)
+
Project settings gains a "New chat defaults" section (owner-editable; members see it read-only; placed below Members, laid out as a compact two-column grid): the default Agent, working directory (empty means the auto temp dir), approval mode and thinking level applied when a chat is created. The workspace and model controls are the composer's own pickers — the draft view's directory browser and the chat input's model picker were extracted into shared components (`workspace-select.tsx`, `model-select.tsx`) and both original surfaces refactored onto them, so the settings dialog and the composer render one implementation. In the dialog they wear a `form` trigger variant styled with the dialog's own field tokens (the composer keeps its pill triggers byte-for-byte), their menus paint above the modal, and the modal's private Escape stack was generalized into a shared esc-layer stack so Escape closes the topmost thing first — menu, then dialog. The values live in an optional `[default_chat]` table in `.project_config.toml` — `agent_id`, `workspace`, `approval_mode`, `thinking_level` — served by a member `GET` and owner `PUT /api/projects/:p/chat-defaults`; the PUT is a declarative whole-block replace (an omitted key clears it), rejects unknown agents and invalid enum values, and read-modify-writes the TOML so models and credentials are untouched.
The draft view seeds from these beneath anything more specific: route state (e.g. "New Chat" from an agent row) beats an unsent draft, which beats the project default, which beats the previous hardcoded fallbacks. The model row deliberately adds no new key: it renders and writes the same top-level `default_model` the models page owns, through a narrow owner `PUT /api/projects/:p/models/default` that validates membership in the models table, and changing it releases any draft-pinned model exactly as the models page does (the two surfaces now share that helper).
diff --git a/changelog/0.2.1/2026-08-04-project-chat-defaults.zh.md b/changelog/0.2.1/2026-08-04-project-chat-defaults.zh.md
new file mode 100644
index 00000000..bef215c0
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-project-chat-defaults.zh.md
@@ -0,0 +1,16 @@
+# Web App:逐 Project 的新会话默认值
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#191](https://github.com/Prism-Shadow/penguin-harness/pull/191)
+
+[English](2026-08-04-project-chat-defaults.md)
+
+Project 设置新增一节「新会话默认值」(所有者可编辑,成员只读;位于 Members 之下,排布为紧凑的两列网格):创建会话时施加的默认 Agent、工作目录(留空表示自动临时目录)、审批模式与思考等级。工作区与模型控件用的就是输入区自己的拾取器——草稿视图的目录浏览器与聊天输入的模型拾取器被抽取为共享组件(`workspace-select.tsx`、`model-select.tsx`),两处原有界面也重构到它们之上,因此设置对话框与输入区渲染的是同一份实现。在对话框中它们穿上一个 `form` 触发变体,采用对话框自己的字段设计 Token(输入区保留其药丸触发器,逐字节不变),它们的菜单绘制在模态之上,而模态原本私有的 Escape 栈被推广为一个共享的 esc-layer 栈,因此 Escape 会先关闭最上层的东西——先菜单,再对话框。这些取值存放在 `.project_config.toml` 中一个可选的 `[default_chat]` 表里——`agent_id`、`workspace`、`approval_mode`、`thinking_level`——由成员级 `GET` 与所有者级 `PUT /api/projects/:p/chat-defaults` 提供服务;该 PUT 是声明式的整块替换(省略某个键即清除它),会拒绝未知 Agent 与非法枚举值,并对 TOML 做读-改-写,因此模型与凭证不受触碰。
+
+草稿视图在任何更具体的来源之下以这些值作为种子:路由状态(例如从 Agent 行点「新建会话」)优先于未发送的草稿,草稿优先于 Project 默认值,Project 默认值优先于此前那些硬编码兜底。模型那一行刻意不新增任何键:它渲染并写入模型页所拥有的同一个顶层 `default_model`,经一个窄口径的所有者级 `PUT /api/projects/:p/models/default` 完成,并校验其在模型表中的存在性;而修改它会像模型页那样释放任何被草稿钉住的模型(两处界面现在共用那个助手)。
+
+思考等级的解析顺序是:Agent 显式的 `model.thinking_level`,否则 Project 默认值,否则 `medium`。草稿拾取器显示生效值,而一次选择仍然写入 Agent 自己的配置——Project 的取值永远只是兜底。随之而来一处刻意的行为变化:一个没有显式等级的 Agent 配置现在跟随 Project 默认值,而此前它总是意味着内置默认值。
+
+这个表块是增量式的——没有它的配置行为与此前完全一致,也不运行任何迁移。有一个版本偏斜的注意事项:较旧的 penguin CLI(0.2.0 及更早)在重写 Project 配置时会丢掉这个表块,因为它的加载器是按已知键重建字面量的;当前代码则能原样往返。TOML 渲染器也学会了把表值键排在标量键之后,因此稍后追加的一个标量(比如给一份缺少 `name` 的配置做重命名)不会再被解析进它前面的那个表里。
diff --git a/changelog/0.2.1/2026-08-04-skill-porting-library-skill.md b/changelog/0.2.1/2026-08-04-skill-porting-library-skill.md
index ab1daadc..1983895b 100644
--- a/changelog/0.2.1/2026-08-04-skill-porting-library-skill.md
+++ b/changelog/0.2.1/2026-08-04-skill-porting-library-skill.md
@@ -1,5 +1,12 @@
# Skills: skill-porting — install skills from any ecosystem
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `skills`, `docs`
+- **PR:** [#195](https://github.com/Prism-Shadow/penguin-harness/pull/195)
+
+[中文版](2026-08-04-skill-porting-library-skill.zh.md)
+
New library skill `skill-porting` (agent-tuning group) teaching an agent to bring skills in from the outside world and land them correctly in `agent_state/skills/<name>/`. Its schema tables were verified by directly fetching each source on 2026-08-04 — the skill says so and treats the live JSON as authoritative:
- **Claude Code plugin marketplaces** (`anthropics/claude-plugins-official`, 278 plugins): the marketplace.json shape, all four `source` forms (relative path, sha-pinned `url`, `git-subdir`, `github`) and the five places a plugin can keep skills.
diff --git a/changelog/0.2.1/2026-08-04-skill-porting-library-skill.zh.md b/changelog/0.2.1/2026-08-04-skill-porting-library-skill.zh.md
new file mode 100644
index 00000000..0ccaa63d
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-skill-porting-library-skill.zh.md
@@ -0,0 +1,19 @@
+# Skill:skill-porting——从任意生态引入 Skill
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `skills`, `docs`
+- **PR:** [#195](https://github.com/Prism-Shadow/penguin-harness/pull/195)
+
+[English](2026-08-04-skill-porting-library-skill.md)
+
+新的库 Skill `skill-porting`(agent-tuning 分组)教 Agent 把外部世界的 Skill 引进来,并正确落到 `agent_state/skills/<name>/`。它的 schema 表格是在 2026-08-04 直接抓取各来源核实过的——该 Skill 自己写明了这一点,并把线上 JSON 视作权威:
+
+- **Claude Code 插件市场**(`anthropics/claude-plugins-official`,278 个插件):marketplace.json 的结构、全部四种 `source` 形式(相对路径、按 sha 固定的 `url`、`git-subdir`、`github`),以及一个插件可能存放 Skill 的五个位置。
+- **Codex 插件**(`openai/plugins`,180 个插件):`.agents/plugins/marketplace.json` 的条目结构及其 `policy` 区块,以及 `.codex-plugin/plugin.json` 的布局。
+- **`npx skills add` / skills.sh**(`vercel-labs/skills`):规格形式、逐 Agent 的安装目标位置,以及仓库内的发现顺序——通过从源仓库抓取来解析,绝不盲目运行安装脚本。
+- 普通的 **GitHub 仓库/子目录**(稀疏检出 / tarball / 原始抓取三种变体)与**本地文件夹**,另加 agentskills.io 的 SKILL.md 约定。
+
+每条流程都以同样的规范化收尾:把 frontmatter 适配到 penguin 的字段(`short_description`、`short_description_zh`、整数 `version`、`updated`),把 penguin 没有运行时支持的命令/agent/hook 移植过来或干脆丢弃(并且要诚实——该 Skill 禁止假装某项被丢弃的能力还在),最后验证安装结果。安全优先是强制的:安装前读遍每一个文件,拒绝任何会外泄数据、回连外部或覆盖安全规则的内容,优先使用固定的版本号。
+
+Web 端导入对话框生成的提示词会在该 Skill 已安装时指向它。文档的 Skill 表格(中英)补上了库同步测试所要求的那一行。
diff --git a/changelog/0.2.1/2026-08-04-traces-page-scaling.md b/changelog/0.2.1/2026-08-04-traces-page-scaling.md
index c269435e..240cc7e1 100644
--- a/changelog/0.2.1/2026-08-04-traces-page-scaling.md
+++ b/changelog/0.2.1/2026-08-04-traces-page-scaling.md
@@ -1,5 +1,12 @@
# Web App: the Traces page scales like the session sidebar
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#183](https://github.com/Prism-Shadow/penguin-harness/pull/183)
+
+[中文版](2026-08-04-traces-page-scaling.zh.md)
+
The trace list used to fetch everything at once: every agent auto-expanded on load, each expansion walked the agent's entire trace tree server-side with a stat per file, every session row and file pill rendered, and any session the paged sidebar store hadn't loaded fell back to its raw id in mono type — long-lived Projects froze the page.
`GET /api/projects/:p/agents/:a/traces` now takes optional `offset`/`limit`. Without them the response shape is byte-identical to before; with them the server returns newest-first session groups plus a total, and only the returned page is stat-ed (sizes written back to the index).
diff --git a/changelog/0.2.1/2026-08-04-traces-page-scaling.zh.md b/changelog/0.2.1/2026-08-04-traces-page-scaling.zh.md
new file mode 100644
index 00000000..1698b07e
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-traces-page-scaling.zh.md
@@ -0,0 +1,18 @@
+# Web App:Traces 页像会话侧边栏一样可扩展
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `web`, `server`
+- **PR:** [#183](https://github.com/Prism-Shadow/penguin-harness/pull/183)
+
+[English](2026-08-04-traces-page-scaling.md)
+
+Trace 列表此前是一次性把一切都拉下来:每个 Agent 在加载时自动展开,每次展开都在服务端走遍该 Agent 的整棵 trace 树并对每个文件做一次 stat,每一行会话与每一枚文件标签都渲染出来,而任何分页的侧边栏 store 尚未加载的会话,都以等宽字体回退显示它的原始 id——长期使用的 Project 会把页面卡死。
+
+`GET /api/projects/:p/agents/:a/traces` 现在接受可选的 `offset`/`limit`。不带它们时响应形状与此前逐字节一致;带上之后,服务端返回最新在前的会话分组加上一个总数,并且只对返回的这一页做 stat(尺寸回写进索引)。
+
+发现流程本身不再逐请求触碰目录树。一个由 SQLite 派生的 **trace 索引**(`trace_files`,加上在注册时读取一次的逐会话事实:来源、工作区、以首条提示词作兜底的标题、模型引用)为每一个消费方提供服务。热路径是两次 stat——对 traces 根目录与最新日期目录各做一次 mtime 闸门检查;闸门一旦变动,就只对发生变化的日期目录做增量 readdir,每个新会话经一次有界的头部读取分类一次;服务端侧的写入(导入、会话/Agent/Project 删除)同步更新索引;而任何消费方在未命中时,都必须先强制完整对账一次才允许返回 404,因此一个陈旧的索引代价是多扫一次,而绝不会给出错误答案。该索引是一份可重建的缓存——磁盘上的 Trace 文件始终是唯一事实来源,升级或重启之后的第一个请求只是把它重建一遍。同一个索引现在还供给 Agent 列表的 30 天活跃度迷你图(此前每次 Agent 列表请求都要走遍全部历史)、`/messages` 的子 Agent 解析器(此前是全 Project 扫描)、trace 的定位/下载/删除、CLI 会话发现——收编流程已不再读取任何文件——以及会话恢复。列表操作不做任何头部读取;标题来自已存的事实:先取数据库中的会话标题,否则取注册时记下的首条提示词兜底。
+
+该页面现在完全照搬侧边栏的结构,而不只是照搬它的纯函数助手。侧边栏的分组头部、文件夹小节、「更多」行与分组模式开关,被从其内部闭包中逐字抽取到共享的 `components/ui/group-list.tsx` 中——而侧边栏本身也重构到它们之上,因此两处界面渲染的是同一份实现。traces 树获得两种分组模式(按 Workspace 或按 Agent,共用与侧边栏相同的持久化偏好——在任一界面切换模式,两边一起切换),以及每个分组下的三个惰性文件夹(子 Agent、定时任务、已归档),各自独立分页。服务端的支持是增量式的:分页的会话分组携带 `category` 与 `workspace`,响应携带逐分类与逐工作区的计数,而 `category=` 过滤器可在单个文件夹内分页——全部由 trace 索引作答,且由于事实是在注册时存下的,第一个请求的分类就是精确的。
+
+其他方面,此前的修复依然成立:加载更多的分页粒度拆分(traces 专用的步长——20 个会话、15 个分组,比侧边栏的 10 更大,因为整页高度能放下更多)、分组上限配一行「更多分组」、对被深链的 Agent 采用置顶优先的排序、默认只展开被聚焦的(或第一个)Agent、文件标签数量设上限,以及带记忆化的标题查找。CLI 来源的会话在这里同样遵循用户的「显示 CLI 会话」偏好,默认隐藏;而一条指向 CLI 会话的「查看 trace」深链,无论该偏好如何都仍能解析并打开详情面板。会话 id 不再出现在该页面的任何位置——未命名的会话显示标准的「新会话」标签,详情副标题只保留日期 · 大小。聊天页也做了反向链接:其会话信息下拉新增一个「查看 trace」操作,深链到 traces 页并聚焦该 Agent、选中该会话;当会话位于第一页之外或在某个文件夹内时,回退为对单个 Agent 的完整拉取。
diff --git a/changelog/0.2.1/2026-08-04-web-app.md b/changelog/0.2.1/2026-08-04-web-app.md
index c3b3c345..4284d1e3 100644
--- a/changelog/0.2.1/2026-08-04-web-app.md
+++ b/changelog/0.2.1/2026-08-04-web-app.md
@@ -1,5 +1,12 @@
# Web App: random seeded admin password and login throttling
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#172](https://github.com/Prism-Shadow/penguin-harness/pull/172)
+
+[中文版](2026-08-04-web-app.zh.md)
+
The built-in admin's fixed, publicly documented initial password (`penguin-2026`) is gone.
## Random seed password
diff --git a/changelog/0.2.1/2026-08-04-web-app.zh.md b/changelog/0.2.1/2026-08-04-web-app.zh.md
new file mode 100644
index 00000000..86921d74
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-web-app.zh.md
@@ -0,0 +1,18 @@
+# Web App:随机预置的管理员密码与登录节流
+
+- **Date:** 2026-08-04
+- **Type:** feature
+- **Scope:** `server`, `web`
+- **PR:** [#172](https://github.com/Prism-Shadow/penguin-harness/pull/172)
+
+[English](2026-08-04-web-app.md)
+
+内置管理员那个固定且被公开记录的初始密码(`penguin-2026`)没有了。
+
+## 随机预置密码
+
+首次启动时,服务端现在为 `admin` 预置一个随机的 `penguin-<4 位数字>` 密码,并只在启动控制台上打印一次(`Seeded built-in admin "admin" — initial password: penguin-1234 …`);登录页与修改密码对话框改为指向启动输出,而不再点名某个常量,README、文档、安装脚本的后续步骤与博客文章随之更新。`PENGUIN_SEED_ADMIN_PASSWORD` 可为自动化测试与 e2e 固定该预置值,并且与其他所有初始/重置密码一样受 ≥ 8 字符策略约束——一个配置上的手误不可能造出一个弱得离谱的特权账户。
+
+## 登录节流
+
+登录端点新增按用户名的节流,使这个一万种取值的密码形态只是便利、而不是攻击面:连续 5 次失败之后,下一次尝试只有在距上次失败经过一段指数增长的延迟后才被受理(从 1 秒翻倍至 60 秒封顶;窗口内的尝试得到 `429 too_many_attempts`——界面上已本地化——且不会延长该窗口),而一次成功登录会清零计数。约 40 次失败之后,攻击者每分钟只能猜一次,而打错字的用户等待时间永远不超过上限。未知用户名同样被节流,因此这个节流不构成账户是否存在的判别器。计数器存放在进程内存中,重启即清空。
diff --git a/changelog/0.2.1/2026-08-04-web-chat-refinements.md b/changelog/0.2.1/2026-08-04-web-chat-refinements.md
index 3e9bfba3..f8377ce5 100644
--- a/changelog/0.2.1/2026-08-04-web-chat-refinements.md
+++ b/changelog/0.2.1/2026-08-04-web-chat-refinements.md
@@ -1,5 +1,12 @@
# Web App: outline windowing, a cost stat that stays put, attachments as user content, quieter failure and update chrome
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#182](https://github.com/Prism-Shadow/penguin-harness/pull/182), [#184](https://github.com/Prism-Shadow/penguin-harness/pull/184), [#185](https://github.com/Prism-Shadow/penguin-harness/pull/185), [#188](https://github.com/Prism-Shadow/penguin-harness/pull/188), [#190](https://github.com/Prism-Shadow/penguin-harness/pull/190)
+
+[中文版](2026-08-04-web-chat-refinements.zh.md)
+
## Conversation outline
The tick-rail minimap over the stream's left gutter now appears only once a conversation reaches 5 exchanges, and renders a sliding window of at most 20 turns either side of the active one instead of one tick per turn forever — the window recenters as reading position moves, shifts rather than shrinks at the ends, and small edge dots mark hidden ranges; global turn numbering is preserved and the toolbar dropdown fallback still lists every turn. Two overlap bugs went with it: the tick stack is height-adaptive with an overflow backstop, so very long runs can no longer spill ticks over the toolbar and composer; and the gutter-fit check, which compared against a hardcoded 768 px column, now resolves the column's real 48 rem width against the live root font size — under browser font scaling the old check kept the rail visible while the widened prose column ran beneath it.
diff --git a/changelog/0.2.1/2026-08-04-web-chat-refinements.zh.md b/changelog/0.2.1/2026-08-04-web-chat-refinements.zh.md
new file mode 100644
index 00000000..02046776
--- /dev/null
+++ b/changelog/0.2.1/2026-08-04-web-chat-refinements.zh.md
@@ -0,0 +1,24 @@
+# Web App:大纲开窗、不再消失的成本统计、作为用户内容的附件,以及更安静的失败与更新外观
+
+- **Date:** 2026-08-04
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#182](https://github.com/Prism-Shadow/penguin-harness/pull/182), [#184](https://github.com/Prism-Shadow/penguin-harness/pull/184), [#185](https://github.com/Prism-Shadow/penguin-harness/pull/185), [#188](https://github.com/Prism-Shadow/penguin-harness/pull/188), [#190](https://github.com/Prism-Shadow/penguin-harness/pull/190)
+
+[English](2026-08-04-web-chat-refinements.md)
+
+## 对话大纲
+
+覆盖在消息流左侧空白上的刻度轨缩略图,现在只有当对话达到 5 次问答之后才出现,并且渲染的是以当前活动轮次为中心、两侧各至多 20 轮的滑动窗口,而不再是永远每轮一个刻度——窗口随阅读位置移动而重新居中,在两端是平移而非收缩,并以小的边缘圆点标示被隐藏的区间;全局轮次编号得以保留,而工具栏下拉的兜底仍然列出每一轮。随之修掉两个重叠缺陷:刻度栈现在按高度自适应并带溢出兜底,因此很长的运行不再能把刻度溢出到工具栏与输入区之上;而那个「左侧空白是否放得下」的检查此前是与硬编码的 768px 列宽比较的,现在改为按实时的根字号解析该列真实的 48rem 宽度——在浏览器字体缩放下,旧检查会让刻度轨保持可见,而被撑宽的正文列已经跑到了它下面。
+
+## 成本统计
+
+工具栏的成本芯片可能在运行中途消失:目标轮次会重置实时任务的计量桶,而运行状态又阻止了会话总量的重新拉取;在一次运行进行中才打开的页面压根没有拉取过已累计的总量;而排队的后续任务之间那一瞬的空闲,还可能用一个空响应把已知的总量冲掉。所显示的数字现在在会话运行期间是粘性且单调的——最近一次拉取到的总量,加上每个已结束 Task 的已结算增量,再加上进行中 Task 的实时估算,并在会话空闲后逐字对齐。用量拉取现在无论运行状态如何都会在会话打开时触发,而一个空响应再也不能抹掉一个已知的取值。
+
+## 附件作为用户内容
+
+上传的文件附件属于用户的消息,现在也照此渲染:位于用户文本下方,与上传的图片处在同一个右对齐容器与悬停时间戳页脚中,而不再是气泡上方那条左对齐的系统提示横幅(`AttachedFilesBanner` 变为纯呈现组件;对齐、动画与时间戳由其调用方负责)。一条只有文件的转向消息现在也会在转向芯片内部显示它的附件横幅——此前文件名会被完全丢弃,芯片渲染成空的。
+
+## 更安静的外观
+
+工具行不再打印任何停止原因标记——`[failed]`、`[aborted]`、`[timeout]`、`[malformed]` 与 `[auth]` 全部移除;状态图标是结果的唯一承载者,原始原因仍保留在它的 tooltip 与 aria-label 中,而 Trace 查看器保留逐事件的字面取值。首页的「有新版本」提示褪去了它的强调色药丸,改为以版本行自身字体呈现的普通上标文字;只保留链接的可点击感。
diff --git a/changelog/0.2.1/README.md b/changelog/0.2.1/README.md
deleted file mode 100644
index e81242b6..00000000
--- a/changelog/0.2.1/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Version 0.2.1
-
-Released on 2026-08-04.
-
-- [2026-08-04] Desktop app distribution: installers move to version-less names (`penguin-desktop-<os>-<arch>.<ext>`), are mirrored to the OSS bucket's immutable per-tag prefix alongside `SHA256SUMS.desktop`, and get a landing `/download` page — per-platform cards with the visitor's OS badged, static GitHub latest links that swap to the OSS mirror once its `latest.json` resolves client-side, a source toggle, and checksum links; nav/footer/README wired. ([details](2026-08-04-desktop-distribution-and-download-page.md))
-
-- [2026-08-04] Tooling & CLI: standalone `install.sh` / `install.ps1` gain the forwarder's OSS-first download source selection with immutable Release-tag stamping, and `penguin update` adopts the same contract — OSS `latest.json` discovery with same-tag GitHub fallback in `auto`, strict forced modes, mirror overrides, localized failures. ([details](2026-08-04-download-source-selection.md))
-
-- [2026-08-04] Core: compaction survives malformed summaries (fixes #170) — tolerant extraction, unusable responses retried on the standard backoff budget with a corrective note, burned attempts and tokens surfaced in stats, and one shared `RetryDetail` shape (`error_message`/`attempt`/`retry_in_ms`) across `request_end` and `compaction_end` read by both frontends. ([details](2026-08-04-compaction-retry-observability.md))
-
-- [2026-08-04] Skills: `data-analysis` v2 — tighter data-semantics/delivery/verification constraints, and a leaner multi-run evaluation flow (Pilot results reused as the Formal Baseline, per-Candidate `runs` dispatched Case × Runs, Evaluator accepts `run` as a label). ([details](2026-08-04-data-analysis-skill-v2.md))
-
-- [2026-08-04] Server: the last two IO hotspots closed — the 30-second scheduler tick and the schedules routes now serve from mtime-gated caches (zero steady-state file reads, hand edits still picked up; `.project_config.toml` parsed once per on-disk version across scheduler, routes and usage pricing), and `GET /messages` gains cursor pagination with tail-first web loading, Task-boundary windows, provable-continuity resync splicing and globally correct outline numbering — the no-params response stays byte-identical. ([details](2026-08-04-io-hotspots-scheduler-messages.md))
-
-- [2026-08-04] Dependencies: `hono` bumped to ≥ 4.12.34, resolving the open Dependabot alert (GHSA-8j4g-w8fx-2239, CORS preflight ReDoS); lockfile change confined to the hono chain. ([details](2026-08-04-deps-hono-redos.md))
-
-- [2026-08-04] Desktop app: new `packages/desktop` — an Electron shell that runs the existing server as a utilityProcess on the shared data root and its window on `http://localhost` with token-based no-login sign-in, graceful shutdown, and crash restart; desktop mode on the server (one-shot login, shutdown endpoint, unprinted random seed, `desktopMode`/`sessionVia` on /api/me), a new per-root `server.lock` single-instance guard the CLI and shell both honor, desktop-aware Web App chrome, and three-platform packaging (electron-builder over a pnpm-deploy staging tree, built by a reusable CI matrix ahead of Release creation; unsigned until the signing milestone). UI preferences (language, theme) now survive restarts: the shell reuses last launch's port when still free so the window origin — and its origin-scoped localStorage — stays stable, with `PORT=0` remaining the sole allocator. ([details](2026-08-04-desktop-app.md))
-
-- [2026-08-04] Web App: the public fixed admin password `penguin-2026` is replaced by a random `penguin-<4 digits>` seed printed once at first start (`PENGUIN_SEED_ADMIN_PASSWORD` pins it for tests, policy-checked), and the login endpoint gains per-username exponential throttling (5 free failures, 1s doubling to 60s, `429 too_many_attempts`, reset on success, identical for unknown usernames) so the 4-digit space cannot be enumerated. ([details](2026-08-04-web-app.md))
-
-- [2026-08-04] CLI: `penguin web` readiness-probe failures are no longer swallowed — the last error is classified (timeout / refused / reset / permission / DNS) and reported with actionable, localized guidance instead of a generic "not responding yet". ([details](2026-08-04-cli-web-probe-diagnostics.md))
-
-- [2026-08-04] Skills: new `skill-porting` library skill — verified, schema-accurate flows for bringing skills in from Claude Code plugin marketplaces, Codex plugins, `npx skills add`/skills.sh, GitHub repos and local folders, normalizing them into penguin's skill format with a read-everything-first safety gate. ([details](2026-08-04-skill-porting-library-skill.md))
-
-- [2026-08-04] Web App: skills become manageable from Agent settings — a Skills tab after Tools listing the installed set straight from disk, uninstall with confirmation, an Import dialog that leads with chat-driven install (URL + generated review-first prompt) and also accepts a skill zip through a new validated archive endpoint, and per-skill zip export that round-trips through that import; the agent list's tools/vault/schedules/skills icons deep-link to the matching settings tab via a new `?tab=` param, and the list rows drop the active-session badge. ([details](2026-08-04-agent-skills-and-list.md))
-
-- [2026-08-04] Web App: Project settings gains a "New chat defaults" section — default Agent, working directory, approval mode and thinking level stored as an additive `[default_chat]` block in `.project_config.toml`, seeded into new drafts beneath route overrides and unsent drafts; the model row reads and writes the same `default_model` the models page owns through a narrow set-default endpoint, and thinking level resolves Agent-explicit → project default → `medium`. ([details](2026-08-04-project-chat-defaults.md))
-
-- [2026-08-04] Web App: the Traces page becomes a second surface of the session sidebar — shared group/folder/mode-toggle components (the sidebar refactored onto them), workspace and agent grouping on the sidebar's own persisted preference, lazy subagent/schedule/archived folders, server-side session paging — and trace discovery plus the agents-list activity sparkline move off per-request filesystem walks onto a SQLite-derived, mtime-reconciled trace index (rebuildable cache; disk stays the source of truth). CLI sessions now follow the show-CLI-sessions preference (default hidden), titles fall back to the first user prompt, and raw session ids are gone from the page. ([details](2026-08-04-traces-page-scaling.md))
-
-- [2026-08-04] Web App: chat refinements — the conversation outline rail appears from 5 exchanges and windows to ±20 turns around the active one (fixing its overlap onto the composer and, under browser font scaling, onto the prose column), the toolbar cost stat no longer blinks out mid-run, uploaded file attachments render as user content (right-aligned below the text like uploaded images, and inside the steering chip instead of vanishing from files-only steering), tool rows drop the stop-reason text markers entirely in favor of the status icon, and the home update hint sheds its pill for plain superscript text. ([details](2026-08-04-web-chat-refinements.md))
-
-- [2026-08-04] Fix: ANSI color codes no longer leak into tool output — the CLI gates color on TTY/`NO_COLOR`/`TERM` with `FORCE_COLOR` override semantics matching Node, the command tool strips inherited `FORCE_COLOR`/`CLICOLOR_FORCE` from child environments so its `NO_COLOR=1` hardening wins, and the Web renders tool output through a defensive ANSI stripper covering historical Traces. ([details](2026-08-04-ansi-tool-output.md))
-
-- [2026-08-04] Models: OpenRouter gains `qwen/qwen3.8-max` (1M context, vision, published cache-hit and cache-write prices), and the agenthub-models skill (v10) records the OpenRouter spelling — existing Projects pick it up through the models page's explicit "sync presets" action. ([details](2026-08-04-model-catalog-openrouter-qwen38-max.md))
diff --git a/changelog/0.2.2/2026-08-03-chat-toolbar-layout.md b/changelog/0.2.2/2026-08-03-chat-toolbar-layout.md
index 0eff8a78..d21b4503 100644
--- a/changelog/0.2.2/2026-08-03-chat-toolbar-layout.md
+++ b/changelog/0.2.2/2026-08-03-chat-toolbar-layout.md
@@ -1,3 +1,11 @@
# Chat toolbar actions stay clear of live statistics
-At medium desktop widths, the pinned sidebar leaves the chat toolbar substantially narrower than the viewport breakpoint suggests. The Agents panel and Workspace actions now remain icon-only until the large-screen breakpoint, preserving space between the running indicator and the live Token, cost, and elapsed-time statistics; their labels return on wider screens, while titles and accessible names keep the compact buttons identifiable. A browser regression test reproduces the approximately 2:1 viewport from issue #150 and verifies that the running status and Token total never intersect.
+- **Date:** 2026-08-03
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#151](https://github.com/Prism-Shadow/penguin-harness/pull/151)
+- **Issue:** [#150](https://github.com/Prism-Shadow/penguin-harness/issues/150)
+
+[中文版](2026-08-03-chat-toolbar-layout.zh.md)
+
+At medium desktop widths, the pinned sidebar leaves the chat toolbar substantially narrower than the viewport breakpoint suggests. The Agents panel and Workspace actions now remain icon-only until the large-screen breakpoint, preserving space between the running indicator and the live Token, cost, and elapsed-time statistics; their labels return on wider screens, while titles and accessible names keep the compact buttons identifiable. A browser regression test reproduces the approximately 2:1 viewport from issue [#150](https://github.com/Prism-Shadow/penguin-harness/issues/150) and verifies that the running status and Token total never intersect.
diff --git a/changelog/0.2.2/2026-08-03-chat-toolbar-layout.zh.md b/changelog/0.2.2/2026-08-03-chat-toolbar-layout.zh.md
new file mode 100644
index 00000000..2f257b28
--- /dev/null
+++ b/changelog/0.2.2/2026-08-03-chat-toolbar-layout.zh.md
@@ -0,0 +1,11 @@
+# 聊天工具栏的操作避开实时统计
+
+- **Date:** 2026-08-03
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#151](https://github.com/Prism-Shadow/penguin-harness/pull/151)
+- **Issue:** [#150](https://github.com/Prism-Shadow/penguin-harness/issues/150)
+
+[English](2026-08-03-chat-toolbar-layout.md)
+
+在中等桌面宽度下,固定的侧边栏会让聊天工具栏比视口断点所暗示的窄得多。Agent 面板与 Workspace 操作现在一直保持纯图标形态,直到大屏断点为止,从而在运行指示与实时的 Token、成本、已用时间统计之间留出空间;它们的文字标签在更宽的屏幕上回归,而 title 与可访问名称让紧凑形态的按钮仍可辨识。一个浏览器回归测试复现了 issue [#150](https://github.com/Prism-Shadow/penguin-harness/issues/150) 中约 2:1 的视口比例,并验证运行状态与 Token 总量绝不相交。
diff --git a/changelog/0.2.2/2026-08-06-desktop-app.md b/changelog/0.2.2/2026-08-06-desktop-app.md
index 6b9339ae..33ac5281 100644
--- a/changelog/0.2.2/2026-08-06-desktop-app.md
+++ b/changelog/0.2.2/2026-08-06-desktop-app.md
@@ -1,5 +1,12 @@
# Desktop app: brand icons, completion notifications, single-user mode, bundled penguin CLI
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `desktop`, `server`, `web`
+- **PR:** [#226](https://github.com/Prism-Shadow/penguin-harness/pull/226)
+
+[中文版](2026-08-06-desktop-app.zh.md)
+
## App icons
Every platform now shows the penguin brand mark instead of the stock Electron icon: electron-builder converts the committed 1024px PNG (rendered from the brand SVG by `scripts/render-icon.mjs`, which reuses the landing package's Playwright chromium) to icns/ico for macOS/Windows, Linux ships a pre-rendered freedesktop icon set, and the window itself carries the icon on Linux/Windows. No tray is introduced — the "default icon" came from the window/app icons never being configured.
diff --git a/changelog/0.2.2/2026-08-06-desktop-app.zh.md b/changelog/0.2.2/2026-08-06-desktop-app.zh.md
new file mode 100644
index 00000000..a7bedfe8
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-desktop-app.zh.md
@@ -0,0 +1,27 @@
+# 桌面应用:品牌图标、完成通知、单用户模式、自带 penguin CLI
+
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `desktop`, `server`, `web`
+- **PR:** [#226](https://github.com/Prism-Shadow/penguin-harness/pull/226)
+
+[English](2026-08-06-desktop-app.md)
+
+## 应用图标
+
+每个平台现在都显示企鹅品牌标识,而不是 Electron 的默认图标:electron-builder 把提交在仓库中的 1024px PNG(由 `scripts/render-icon.mjs` 从品牌 SVG 渲染而来,它复用了 landing 包的 Playwright chromium)转换为 macOS/Windows 所需的 icns/ico,Linux 提供一套预渲染的 freedesktop 图标集,而窗口本身在 Linux/Windows 上也带上该图标。没有引入托盘——所谓「默认图标」只是因为窗口/应用图标从未被配置过。
+
+## 任务完成通知
+
+当桌面窗口未聚焦或已隐藏时,一次 Agent 运行结束会触发一条带 Session 标题的系统通知;点击它会聚焦窗口并打开该 Session。实现在渲染进程侧,基于标准的 Web Notification API,作用于会话列表的状态转变之上(首次观测绝不触发;逐次运行去重,并带陈旧快照的冷却期)——没有 preload、没有私有 IPC,遵循桌面外壳「就是一个普通浏览器窗口」的设计。仅对桌面外壳的会话生效(`sessionVia === "desktop"`),因此浏览器绝不会被弹出权限请求;Windows 的 toast 从外壳取得其 AppUserModelID。
+
+## 单用户桌面模式
+
+桌面应用现在明确是单用户的:在桌面外壳下,服务端会拒绝用户管理(`/api/admin/users*`)与 Project 成员路由,返回 `403 desktop_single_user`;而 Web 应用在桌面模式下隐藏 Users 菜单项、管理员用户页与 Project 成员小节。已有的用户与数据不受触碰,正常的多用户服务端也不受影响。
+
+## 自带 penguin CLI
+
+安装后的桌面应用现在包含完整的 CLI,通过把应用自己的 Electron 运行时当作 Node 来运行的启动器(`ELECTRON_RUN_AS_NODE`),无需系统安装 Node 即可使用:
+
+- Linux deb:`/usr/bin/penguin` 在安装时自动创建(postinst 扩展了 electron-builder 的默认模板;绝不覆盖非符号链接的文件,且只有当它指向本应用时才在卸载时移除)。
+- macOS / Windows / AppImage:一个原生菜单项「安装 'penguin' 命令…」,外加一次性的首次启动询问——macOS 建立 `/usr/local/bin/penguin` 符号链接(必要时一次管理员提权),Windows 把应用的 `bin` 目录追加到用户 PATH(幂等,新开的终端即可识别),AppImage 则写入一个 `~/.local/bin/penguin` 包装脚本,把 AppImage 自身当作 Node 运行。
diff --git a/changelog/0.2.2/2026-08-06-landing-desktop-first.md b/changelog/0.2.2/2026-08-06-landing-desktop-first.md
index 634e0fb7..e7c4d6c4 100644
--- a/changelog/0.2.2/2026-08-06-landing-desktop-first.md
+++ b/changelog/0.2.2/2026-08-06-landing-desktop-first.md
@@ -1,5 +1,12 @@
# Landing homepage leads with the desktop app
+- **Date:** 2026-08-06
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#221](https://github.com/Prism-Shadow/penguin-harness/pull/221)
+
+[中文版](2026-08-06-landing-desktop-first.zh.md)
+
The homepage now presents the desktop download as the first install path; CLI and self-host content sits below the fold at the quick start.
- Hero: the CLI one-liner install box is replaced by a platform-aware "Download for \<OS\>" primary button linking to `/download` (generic label when detection fails), an "All platforms" line, and a "CLI and self-hosted install ↓" link down to the quick start; the GitHub button stays.
diff --git a/changelog/0.2.2/2026-08-06-landing-desktop-first.zh.md b/changelog/0.2.2/2026-08-06-landing-desktop-first.zh.md
new file mode 100644
index 00000000..93bf9447
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-landing-desktop-first.zh.md
@@ -0,0 +1,15 @@
+# 落地页首页以桌面应用为先
+
+- **Date:** 2026-08-06
+- **Type:** process
+- **Scope:** `landing`
+- **PR:** [#221](https://github.com/Prism-Shadow/penguin-harness/pull/221)
+
+[English](2026-08-06-landing-desktop-first.md)
+
+首页现在把桌面下载作为第一条安装路径;CLI 与自托管内容下移到折叠线之下的快速开始处。
+
+- 首屏:CLI 一行安装框被一个按平台感知的「下载 \<OS\> 版」主按钮取代,指向 `/download`(检测失败时使用通用文案),另有一行「全部平台」,以及一条「CLI 与自托管安装 ↓」链接跳到快速开始;GitHub 按钮保留。
+- 结尾 CTA:主按钮 → `/download`,次按钮 → 快速开始;「阅读文档」保留。
+- 快速开始第 1 步的桌面说明改从「已经在用桌面应用了?」的角度切入(共享本地数据根目录),仍然链接到下载页。
+- 操作系统检测抽取到 `src/lib/platform.ts`,由首屏与下载页共用;`/download` 页本身——产物链接、镜像解析、校验和、首次启动 FAQ——以及小节顺序、导航锚点与路由外壳均未改动。
diff --git a/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.md b/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.md
index 987ca699..962e51b9 100644
--- a/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.md
+++ b/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.md
@@ -1,5 +1,12 @@
# Models: Inkling and Fireworks DeepSeek V4 Flash 0731 join; gateway GLM-5.1 delisted
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `model-catalog`, `skills`, `docs`
+- **PR:** [#220](https://github.com/Prism-Shadow/penguin-harness/pull/220), [#230](https://github.com/Prism-Shadow/penguin-harness/pull/230)
+
+[中文版](2026-08-06-model-catalog-inkling-dsv4-flash-0731.zh.md)
+
Prices and specs read from each model's provider page on 2026-08-06.
## New models
diff --git a/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.zh.md b/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.zh.md
new file mode 100644
index 00000000..ccce5955
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-model-catalog-inkling-dsv4-flash-0731.zh.md
@@ -0,0 +1,26 @@
+# 模型:Inkling 与 Fireworks 上的 DeepSeek V4 Flash 0731 加入;网关的 GLM-5.1 下架
+
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `model-catalog`, `skills`, `docs`
+- **PR:** [#220](https://github.com/Prism-Shadow/penguin-harness/pull/220), [#230](https://github.com/Prism-Shadow/penguin-harness/pull/230)
+
+[English](2026-08-06-model-catalog-inkling-dsv4-flash-0731.md)
+
+价格与规格于 2026-08-06 读取自各模型的 Provider 页面。
+
+## 新增模型
+
+Thinking Machines Lab 的 Inkling(2026-07-14 发布:1M 上下文,多模态图像 + 音频输入)在两个网关上加入:OpenRouter 的 `thinkingmachines/inkling`(每百万 Token 缓存 $0.17 / 非缓存输入 $1 / 输出 $4.05,读取自 models API——当模型的网页与 API 不一致时以 API 为准)与 Fireworks AI 的 `accounts/fireworks/models/inkling`(缓存 $0.17 / 非缓存输入 $1 / 输出 $4.05)。Fireworks AI 还新增 `accounts/fireworks/models/deepseek-v4-flash-0731`($0.028 / $0.14 / $0.28),按同系列最新在前的排序规则置于未标日期的 flash 行之前。
+
+## 下架
+
+OpenRouter 的 `z-ai/glm-5.1` 与 SiliconFlow 的 `Pro/zai-org/GLM-5.1` 网关条目被移除;Z.AI 直连的 `glm-5.1` 保留。已有 Project 配置照常工作——模型条目是在创建时被复制进 `.project_config.toml` 的,升级时没有任何东西重写它们;被下架的预设只是不再被模型页的「同步预设」操作重新添加。
+
+## OpenRouter 价格刷新(2026-08-07)
+
+后续从 models API 对整个 OpenRouter 分组做的一次遍历重读,也刷新了自 2026-08-03 以来发生漂移的那些行:`deepseek/deepseek-v4-flash`($0.01764 / $0.0882 / $0.1764)、`moonshotai/kimi-k2.6`($0.0992 / $0.589 / $2.48)、`qwen/qwen3.6-35b-a3b`(缓存读取 $0.05,现已公布)与 `z-ai/glm-5.2`($0.1261 / $0.679 / $2.134)。没有任何一行携带缓存写入溢价;「未公布缓存价则回退」的规则现在只覆盖 `:free` 行。(`inclusionai/ling-3.0-flash:free` 已不再出现在 API 列表中——暂留在目录中,等待下架决定。)
+
+## 文档与 Skill
+
+agenthub-models skill(v11)新增 Inkling 与 Fireworks 0731 的写法,并不再点名已下架的 GLM-5.1 网关 id;README(中英)的支持模型表新增 Inkling 系列(OpenRouter、Fireworks AI)。
diff --git a/changelog/0.2.2/2026-08-06-release-version-guard.md b/changelog/0.2.2/2026-08-06-release-version-guard.md
index 25d600d3..b3c6a3ea 100644
--- a/changelog/0.2.2/2026-08-06-release-version-guard.md
+++ b/changelog/0.2.2/2026-08-06-release-version-guard.md
@@ -1,5 +1,12 @@
# Release tooling: the repo version can no longer drift behind a shipped release
+- **Date:** 2026-08-06
+- **Type:** process
+- **Scope:** `ci`, `tooling`
+- **PR:** [#219](https://github.com/Prism-Shadow/penguin-harness/pull/219)
+
+[中文版](2026-08-06-release-version-guard.zh.md)
+
v0.2.1 was tagged from a repo still versioned 0.2.0 — its prep PR moved the changelog and wrote RELEASE.md but skipped the version bump that 0.2.0's prep performed — so every dev/source build compared itself against the published v0.2.1 and prompted about an update indefinitely, while release artifacts (stamped from the tag at build time) looked fine.
- Root and every `packages/*/package.json` version, plus core's `VERSION` constant, are bumped to 0.2.1 to match the shipped release.
diff --git a/changelog/0.2.2/2026-08-06-release-version-guard.zh.md b/changelog/0.2.2/2026-08-06-release-version-guard.zh.md
new file mode 100644
index 00000000..9382559a
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-release-version-guard.zh.md
@@ -0,0 +1,14 @@
+# 发布工具链:仓库版本不再能落后于已发布的版本
+
+- **Date:** 2026-08-06
+- **Type:** process
+- **Scope:** `ci`, `tooling`
+- **PR:** [#219](https://github.com/Prism-Shadow/penguin-harness/pull/219)
+
+[English](2026-08-06-release-version-guard.md)
+
+v0.2.1 是从一个版本号仍为 0.2.0 的仓库上打的 tag——它的发布准备 PR 移动了 changelog 并写了 RELEASE.md,却漏掉了 0.2.0 发布准备时执行过的版本号提升——于是每一个 dev/源码构建都拿自己去和已发布的 v0.2.1 比较,从而无休止地提示更新,而发布产物(在构建时由 tag 打戳)看起来一切正常。
+
+- 根级与每个 `packages/*/package.json` 的版本号,连同 core 的 `VERSION` 常量,一并提升到 0.2.1,与已发布的版本对齐。
+- `release.yml` 的两处打戳步骤(release 任务与并行的 npm 发布任务)现在会拒绝版本号与仓库 `package.json` 不匹配的 tag 推送,并在错误信息中写明修法。手动的 `workflow_dispatch` 只给出警告,因此一个 Release 丢失了的旧 tag 仍能从它自己的源码重建;安装脚本测试的固定数据会自行跳过该检查(回放目录中没有 `package.json`),使这段打戳代码块仍可被 `scripts/test-installer.sh` 回放。
+- `CONTRIBUTING.md` 把版本号提升记录为一项显式的发布准备步骤,与 changelog 改名和 RELEASE.md 并列。
diff --git a/changelog/0.2.2/2026-08-06-system-proxy-switch.md b/changelog/0.2.2/2026-08-06-system-proxy-switch.md
index 7175c643..86d3e083 100644
--- a/changelog/0.2.2/2026-08-06-system-proxy-switch.md
+++ b/changelog/0.2.2/2026-08-06-system-proxy-switch.md
@@ -1,5 +1,12 @@
# Admin proxy options: app/agent switches and an explicit proxy address
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `server`, `web`, `desktop`, `core`
+- **PR:** [#225](https://github.com/Prism-Shadow/penguin-harness/pull/225), [#233](https://github.com/Prism-Shadow/penguin-harness/pull/233)
+
+[中文版](2026-08-06-system-proxy-switch.zh.md)
+
The sidebar user menu gains an admin-only "Proxy options" entry opening a settings dialog — server-global, stored in a new `server_settings` table and served by `GET/PUT /api/admin/settings` — implementing (and then extending) the long-specced 出网与系统代理 design so that using a proxy needs no environment variable at all.
- Two independent switches share one address:
diff --git a/changelog/0.2.2/2026-08-06-system-proxy-switch.zh.md b/changelog/0.2.2/2026-08-06-system-proxy-switch.zh.md
new file mode 100644
index 00000000..715861c1
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-system-proxy-switch.zh.md
@@ -0,0 +1,18 @@
+# 管理员代理选项:应用/Agent 两个开关与显式代理地址
+
+- **Date:** 2026-08-06
+- **Type:** feature
+- **Scope:** `server`, `web`, `desktop`, `core`
+- **PR:** [#225](https://github.com/Prism-Shadow/penguin-harness/pull/225), [#233](https://github.com/Prism-Shadow/penguin-harness/pull/233)
+
+[English](2026-08-06-system-proxy-switch.md)
+
+侧边栏用户菜单新增一个仅管理员可见的「代理选项」入口,打开一个设置对话框——服务端全局,存放在新的 `server_settings` 表中,由 `GET/PUT /api/admin/settings` 提供服务——实现(并进一步扩展)了那份早已成文的「出网与系统代理」设计,使得使用代理完全不需要任何环境变量。
+
+- 两个互相独立的开关共用一个地址:
+ - **应用使用代理**(默认开)——服务端自身的出网流量(LLM 请求、更新检查、图片抓取)。Node 内置的 fetch 会忽略代理变量,因此服务端把自己的全部流量都路由经一个在入口处安装一次的 undici 全局 dispatcher。开且填了地址 = http 与 https 都用该地址;开但未填 = 使用 `HTTP_PROXY` / `HTTPS_PROXY` 环境变量(两种大小写写法);关 = 始终直连。
+ - **Agent 环境使用代理**(默认开)——命令子进程的环境策略。开且填了地址 = 注入 `HTTP_PROXY`/`HTTPS_PROXY`(两种写法)以及合并后的 `NO_PROXY`,覆盖继承来的取值;开但未填 = 原样透传宿主环境;关 = 剥离代理变量(保留 `NO_PROXY`)。SDK 的接缝是 `proxyEnv?: () => ProxyEnvPolicy | null`(strip / inject / null 透传;不提供即维持独立运行时的原有行为,子 Agent 继承)。
+- 代理地址接受 `http://host[:port]`、`https://host[:port]` 或裸的 `host[:port]`(规范化为 `http://…`);其他一律 `400 invalid_proxy_url`;留空则清回「跟随系统代理」。该对话框是一个带显式保存按钮的表单(无改动时保存为空操作并给出 toast);校验错误行内呈现。
+- 在任何开启状态下,生效的 `NO_PROXY` 都始终包含 `localhost,127.0.0.1,::1`,使环回流量——就绪探测、SSE、工作区预览——不经任何代理。切换会立即作用于新建连接,无需重启。由 CLI 托管的服务端(`penguin web`)享有同样的覆盖。
+- 桌面端:外壳在启动时解析操作系统代理(Electron 的 `resolveProxy`;采用 PAC 的 `PROXY`/`HTTPS` 结果,SOCKS 刻意跳过——undici 只讲 HTTP(S) 代理),并把它注入内嵌服务端的环境,且不覆盖已显式配置的取值——因此在桌面上,「跟随系统代理」真的就是操作系统的代理设置。
+- 那个过渡期的单一 `useSystemProxy` 开关(从未发布)在两个新开关的键缺失时,会被读取一次作为它们的回退默认值。
diff --git a/changelog/0.2.2/2026-08-06-web-app.md b/changelog/0.2.2/2026-08-06-web-app.md
index ba13899a..021328c6 100644
--- a/changelog/0.2.2/2026-08-06-web-app.md
+++ b/changelog/0.2.2/2026-08-06-web-app.md
@@ -1,5 +1,12 @@
# Web App: directory browsing de-raced, Project defaults reach new drafts, update dot explained, focused model catalog, protocol hints, "temporary workspace" unified
+- **Date:** 2026-08-06
+- **Type:** fix
+- **Scope:** `web`, `core`, `server`
+- **PR:** [#222](https://github.com/Prism-Shadow/penguin-harness/pull/222), [#223](https://github.com/Prism-Shadow/penguin-harness/pull/223), [#224](https://github.com/Prism-Shadow/penguin-harness/pull/224), [#231](https://github.com/Prism-Shadow/penguin-harness/pull/231), [#237](https://github.com/Prism-Shadow/penguin-harness/pull/237)
+
+[中文版](2026-08-06-web-app.zh.md)
+
## Directory browsing no longer mis-navigates under repeated clicks
While a listing was loading, clicking a folder row again in the files panel compounded path segments (`home` → `home/home` → `home/home/home/home`) and stranded the user on "path not found"; the workspace picker could also be silently relocated when a slow directory response landed after a newer one. Listings are now bound to the directory they were fetched for (a double-click recomputes the same target regardless of timing), in-flight navigation disables rows and breadcrumbs, picker requests are sequenced so only the newest response wins (the editable path row included), and the `dir_not_found` server error renders localized copy instead of the raw English message with the malformed path in it.
diff --git a/changelog/0.2.2/2026-08-06-web-app.zh.md b/changelog/0.2.2/2026-08-06-web-app.zh.md
new file mode 100644
index 00000000..ed437bc3
--- /dev/null
+++ b/changelog/0.2.2/2026-08-06-web-app.zh.md
@@ -0,0 +1,32 @@
+# Web App:目录浏览去竞态、Project 默认值抵达新草稿、更新圆点自我说明、聚焦的模型目录、协议提示、「临时工作区」统一
+
+- **Date:** 2026-08-06
+- **Type:** fix
+- **Scope:** `web`, `core`, `server`
+- **PR:** [#222](https://github.com/Prism-Shadow/penguin-harness/pull/222), [#223](https://github.com/Prism-Shadow/penguin-harness/pull/223), [#224](https://github.com/Prism-Shadow/penguin-harness/pull/224), [#231](https://github.com/Prism-Shadow/penguin-harness/pull/231), [#237](https://github.com/Prism-Shadow/penguin-harness/pull/237)
+
+[English](2026-08-06-web-app.md)
+
+## 目录浏览在反复点击下不再走错
+
+在列表仍在加载时,于文件面板中再次点击某个文件夹行会让路径段不断叠加(`home` → `home/home` → `home/home/home/home`),把用户搁浅在「路径不存在」上;工作区拾取器也可能在一个较慢的目录响应晚于较新响应到达时被静默改变位置。列表现在与它被拉取时所针对的那个目录绑定(无论时序如何,双击都会算出同一个目标),导航进行中会禁用行与面包屑,拾取器请求被串行化因此只有最新的响应胜出(包括可编辑的路径行),而服务端的 `dir_not_found` 错误改为渲染本地化文案,而不是那条内含畸形路径的英文原始消息。
+
+## 保存 Project 新会话默认值会重置新对话草稿
+
+打开一次 `/chat/new` 就会把当时的 Agent / 工作区 / 审批模式钉进逐用户的草稿缓存,而那份陈旧草稿会遮蔽此后对 Project 新会话默认值的任何改动。保存默认值现在会剥掉对应的缓存钉住项——已打出但未发送的文本、已暂存的 Skill 与芯片都保留——并对同一标签页中打开的草稿页做实时重新播种(否则它那个防抖持久化会把旧值原样写回去);其他标签页在下次访问时取得该变化。模型的钉住项仍然恰好在默认模型本身改变时释放,从而保持「切换即成默认」的延续行为不变。
+
+## 头像上的更新圆点会自我说明
+
+侧边栏头像的更新指示现在会在悬停 tooltip 与可访问标签中点名可用的版本(与更新那一行的措辞完全一致),而收起态图标栏的头像也显示同样的指示——此前那个圆点没有标签,图标栏则什么都不显示。顺带修掉了版本信息缓存中一处被动订阅者的缺口,使图标栏能看到它挂载期间返回的结果。
+
+## 模型目录以 DeepSeek 为焦点打开
+
+模型页现在默认只展开 DeepSeek 分组;其他厂商分组与用户自定义分组初始为折叠。当搜索查询处于活动状态时,任何含有匹配项的分组会被强制展开(这是派生状态,不持久化),因此结果绝不会藏在折叠的分组里。用户自己的展开/折叠操作按 Project 持久化(localStorage,与侧边栏分组折叠同一套模式),并在下次访问时恢复;没有已存状态时,则适用「只展开 DeepSeek」的默认。
+
+## 模型对话框解释协议,而不是对它发出警告
+
+模型配置对话框的 base URL 字段现在在框内带一个灰色后缀,显示客户端会追加到 base URL 之后的确切路径——OpenAI 兼容条目(网关、自定义分组,以及 DeepSeek/Z.AI/Moonshot/Qwen)为 `/chat/completions`,OpenAI 直连为 `/responses`,Anthropic 为 `/v1/messages`,Gemini 为 `/v1beta/models`(每一条都对照 SDK 的实际请求路径核实过)——取代了原先那句啰嗦的「该模型使用厂商官方协议」警告。预置的原厂直连分组的机制提示(AgentHub 自动路由、环境变量回退)统一为一句面向用户的话:「仅支持 <厂商> 的官方 API 协议;OpenAI 兼容端点请使用自定义模型分组。」
+
+## 「临时工作区」统一
+
+自动创建的会话工作区现在在工作区拾取器及其提示、定时任务表单、服务端/SDK 错误信息、文档,以及 penguin-sdk skill(v19)中,一致称作「临时工作区」/ "temporary workspace"——取代此前混用的「自动临时目录」措辞。持久化的键、id 与磁盘上的 `workspaces/tmp-<8hex>` 形态均未触碰。
diff --git a/changelog/0.2.2/2026-08-07-core-runtime.md b/changelog/0.2.2/2026-08-07-core-runtime.md
index df47ddb8..20fc858d 100644
--- a/changelog/0.2.2/2026-08-07-core-runtime.md
+++ b/changelog/0.2.2/2026-08-07-core-runtime.md
@@ -1,12 +1,20 @@
# Core: unlimited default turn cap, model-window-derived limits, slower and simpler retries, trace integrity under concurrency and crashes
+- **Date:** 2026-08-07
+- **Type:** fix
+- **Scope:** `core`, `docs`
+- **PR:** [#232](https://github.com/Prism-Shadow/penguin-harness/pull/232), [#234](https://github.com/Prism-Shadow/penguin-harness/pull/234), [#235](https://github.com/Prism-Shadow/penguin-harness/pull/235), [#249](https://github.com/Prism-Shadow/penguin-harness/pull/249)
+- **Issue:** [#215](https://github.com/Prism-Shadow/penguin-harness/issues/215), [#218](https://github.com/Prism-Shadow/penguin-harness/issues/218)
+
+[中文版](2026-08-07-core-runtime.zh.md)
+
## Unlimited default turn cap
A new agent's `system_config.yaml` now defaults to `max_turns: -1` (unlimited) instead of `100`, and the SDK's fallback for an omitted `maxTurns` agrees, so long agent runs are no longer cut off unexpectedly by the per-Task turn cap; a positive integer still caps the Task, and `-1` remains the only accepted non-positive value. Existing agents keep their stored `max_turns` verbatim and adopt the new default via the settings page's "Restore default configuration". Goal mode's 100-round runaway backstop is unchanged, but an explicit `maxRounds: -1` now disables it (internal knob, regression-tested).
## Limits derived from the model window (vLLM and other small-window endpoints)
-Running against a small-window OpenAI-compatible endpoint (e.g. a local vLLM with `--max-model-len 32768`) used to fail three ways: requests 400'd because the configured `max_tokens` went on the wire regardless of how much of the window the input already occupied, and the compaction threshold (default 128000) was unreachable inside the window. Now (#218):
+Running against a small-window OpenAI-compatible endpoint (e.g. a local vLLM with `--max-model-len 32768`) used to fail three ways: requests 400'd because the configured `max_tokens` went on the wire regardless of how much of the window the input already occupied, and the compaction threshold (default 128000) was unreachable inside the window. Now ([#218](https://github.com/Prism-Shadow/penguin-harness/issues/218)):
- Each request's effective output cap is `min(configured max_tokens, context_window − estimated input − 1024)`, floored at 512 — a no-op for big-window cloud models. Input is estimated from the last request's real `token_usage` plus a character heuristic that errs high; images (including images inside tool outputs) count as a flat allowance rather than raw base64. Entries with no configured `context_window` (or one below 4096) are not clamped; a hard-binding clamp prints a one-line diagnostic.
- The effective compaction threshold is `min(configured max_context_length, context_window − 2048)` (headroom for the summary request's own output), replacing the old 75%-of-window rule — a 32k-window model now compacts at ~30.7k instead of never. Derived at use; stored config is never rewritten.
@@ -18,6 +26,6 @@ The retry ladder's base goes 250ms → 2000ms (2s/4s/8s/16s/30s, ≈60s total pa
## Trace integrity under concurrent writes and crashes
-Trace appends are serialized inside the writer, so concurrent producers (parallel tools, the model stream) can no longer tear a multi-megabyte record — e.g. a base64 image Data URL — into invalid JSONL (#215). Trace reads are best-effort: a malformed middle line in files damaged before the fix is skipped with a truncated stderr diagnostic and every parseable record is kept, so previously corrupted sessions resume and render again (the skip is O(n) even for heavily damaged files); server-side Trace import still validates strictly, and truncated-last-line tolerance is unchanged. The Session-index head reader shares the tolerant path, so a damaged head window no longer blocks reconciliation forever.
+Trace appends are serialized inside the writer, so concurrent producers (parallel tools, the model stream) can no longer tear a multi-megabyte record — e.g. a base64 image Data URL — into invalid JSONL ([#215](https://github.com/Prism-Shadow/penguin-harness/issues/215)). Trace reads are best-effort: a malformed middle line in files damaged before the fix is skipped with a truncated stderr diagnostic and every parseable record is kept, so previously corrupted sessions resume and render again (the skip is O(n) even for heavily damaged files); server-side Trace import still validates strictly, and truncated-last-line tolerance is unchanged. The Session-index head reader shares the tolerant path, so a damaged head window no longer blocks reconciliation forever.
-A field incident closed the remaining tear window (#249): `fs.appendFile` splits payloads larger than 512 KiB into multiple underlying writes, which is how a pre-serialization build spliced a `request_end` event into the middle of a 1.48 MB image record at exactly the 524288-byte chunk boundary — and even with serialized appends, a process death between chunks would still leave a partial record that later appends glue onto. Each record is now appended with a single `write(2)` on an O_APPEND handle, so a crash can at most truncate the last record, never split one mid-file. Before Session resumption continues a pre-existing shard, the writer probes the tail: a file not ending in a newline gets the next record started on a fresh line, so a crash-torn tail never swallows the records appended after it (a mid-record append failure such as ENOSPC heals the same way). Both guarantees are documented on the docs' sessions-and-traces page.
+A field incident closed the remaining tear window ([#249](https://github.com/Prism-Shadow/penguin-harness/pull/249)): `fs.appendFile` splits payloads larger than 512 KiB into multiple underlying writes, which is how a pre-serialization build spliced a `request_end` event into the middle of a 1.48 MB image record at exactly the 524288-byte chunk boundary — and even with serialized appends, a process death between chunks would still leave a partial record that later appends glue onto. Each record is now appended with a single `write(2)` on an O_APPEND handle, so a crash can at most truncate the last record, never split one mid-file. Before Session resumption continues a pre-existing shard, the writer probes the tail: a file not ending in a newline gets the next record started on a fresh line, so a crash-torn tail never swallows the records appended after it (a mid-record append failure such as ENOSPC heals the same way). Both guarantees are documented on the docs' sessions-and-traces page.
diff --git a/changelog/0.2.2/2026-08-07-core-runtime.zh.md b/changelog/0.2.2/2026-08-07-core-runtime.zh.md
new file mode 100644
index 00000000..27aac60a
--- /dev/null
+++ b/changelog/0.2.2/2026-08-07-core-runtime.zh.md
@@ -0,0 +1,31 @@
+# Core:默认轮次上限改为无限、由模型窗口推导的限额、更慢更简单的重试、并发与崩溃下的 Trace 完整性
+
+- **Date:** 2026-08-07
+- **Type:** fix
+- **Scope:** `core`, `docs`
+- **PR:** [#232](https://github.com/Prism-Shadow/penguin-harness/pull/232), [#234](https://github.com/Prism-Shadow/penguin-harness/pull/234), [#235](https://github.com/Prism-Shadow/penguin-harness/pull/235), [#249](https://github.com/Prism-Shadow/penguin-harness/pull/249)
+- **Issue:** [#215](https://github.com/Prism-Shadow/penguin-harness/issues/215), [#218](https://github.com/Prism-Shadow/penguin-harness/issues/218)
+
+[English](2026-08-07-core-runtime.md)
+
+## 默认轮次上限改为无限
+
+新建 Agent 的 `system_config.yaml` 现在默认 `max_turns: -1`(无限)而不是 `100`,SDK 对省略 `maxTurns` 的兜底也与之一致,因此长时间的 Agent 运行不会再被逐 Task 的轮次上限意外截断;正整数仍然会限制该 Task,而 `-1` 仍是唯一被接受的非正取值。已有 Agent 逐字保留其已存的 `max_turns`,通过设置页的「恢复默认配置」来采纳新默认值。目标模式那道 100 轮的失控兜底未变,但显式的 `maxRounds: -1` 现在可以禁用它(内部旋钮,有回归测试)。
+
+## 由模型窗口推导的限额(vLLM 及其他小窗口端点)
+
+面向小窗口的 OpenAI 兼容端点运行(例如带 `--max-model-len 32768` 的本地 vLLM)此前会以三种方式失败:请求会 400,因为配置的 `max_tokens` 无论输入已占据窗口多少都会照发上线;而压缩阈值(默认 128000)在该窗口内根本无法触及。现在([#218](https://github.com/Prism-Shadow/penguin-harness/issues/218)):
+
+- 每个请求的有效输出上限是 `min(配置的 max_tokens, context_window − 估算输入 − 1024)`,下限为 512——对大窗口的云端模型是空操作。输入依据上一次请求真实的 `token_usage` 加上一个偏高估计的字符启发式来估算;图片(包括工具输出中的图片)按一个固定额度计入,而不是原始 base64。没有配置 `context_window`(或其值低于 4096)的条目不做钳制;一次真正起约束作用的钳制会打印一行诊断。
+- 有效的压缩阈值是 `min(配置的 max_context_length, context_window − 2048)`(为摘要请求自身的输出留出余量),取代原先「窗口的 75%」的规则——一个 32k 窗口的模型现在会在约 30.7k 处压缩,而不是永远不压缩。该值在使用时推导;已存配置绝不被重写。
+- 文档新增一节「本地 / 自托管的 OpenAI 兼容端点(例如 vLLM)」(`--enable-auto-tool-choice`、`--tool-call-parser`,把条目的上下文窗口设为 `max_model_len`)。
+
+## 更慢、更简单的 LLM 重试
+
+重试阶梯的基数从 250ms 改为 2000ms(2s/4s/8s/16s/30s,合计约 60 秒的耐心;次数与上限未变),因此瞬时的 Provider 故障获得了真正的恢复窗口,而每一次计划中的等待都超过 Web 应用倒计时显示的下限。分类简化为「除认证外每一种 LLM 错误都重试」:明确的认证信号仍然立即停止,其余一切——裸的 403、400、429、5xx、配额/订阅类消息、传输错误——都走这条阶梯,只有在耗尽之后才失败。配额检测的那套机制(`isQuotaExhaustedError` 及其消息启发式)已被移除。刻意的取舍:真正永久性的错误现在会先烧完整条阶梯才浮出水面。
+
+## 并发写入与崩溃下的 Trace 完整性
+
+Trace 追加在写入器内部被串行化,因此并发的产出方(并行工具、模型流)不再能把一条数兆字节的记录——例如一个 base64 图片 Data URL——撕成无效的 JSONL([#215](https://github.com/Prism-Shadow/penguin-harness/issues/215))。Trace 读取是尽力而为的:修复之前受损文件中位于中间的畸形行会被跳过,并给出一条截断的 stderr 诊断,同时保留每一条可解析的记录,因此此前已损坏的会话得以重新恢复与渲染(即便对严重受损的文件,这个跳过也是 O(n) 的);服务端的 Trace 导入仍然严格校验,而对末行截断的容忍未变。Session 索引的头部读取器共用这条容忍路径,因此一个受损的头部窗口不会再永久阻塞对账。
+
+一次现场事故堵上了最后那道撕裂窗口([#249](https://github.com/Prism-Shadow/penguin-harness/pull/249)):`fs.appendFile` 会把大于 512 KiB 的载荷拆成多次底层写入——正是这一点,让一个串行化之前的构建在恰好 524288 字节的分块边界上,把一个 `request_end` 事件插进了一条 1.48 MB 图片记录的中间——而即便有了串行化追加,分块之间的进程死亡仍会留下一条残缺记录,被后续追加粘接上去。每条记录现在都在一个 O_APPEND 句柄上以单次 `write(2)` 追加,因此崩溃至多截断最后一条记录,而绝不会在文件中间把一条记录劈开。在 Session 恢复继续写入一个既有分片之前,写入器会探测其末尾:一个不以换行结尾的文件会让下一条记录另起一行,因此被崩溃撕裂的末尾绝不会吞掉在它之后追加的记录(记录写到一半失败,例如 ENOSPC,也以同样方式痊愈)。这两项保证都记录在文档的 sessions-and-traces 页上。
diff --git a/changelog/0.2.2/2026-08-07-memory.md b/changelog/0.2.2/2026-08-07-memory.md
index 1608cb3e..16fc03e9 100644
--- a/changelog/0.2.2/2026-08-07-memory.md
+++ b/changelog/0.2.2/2026-08-07-memory.md
@@ -1,5 +1,12 @@
# Memory: what an agent keeps between Sessions
+- **Date:** 2026-08-07
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#144](https://github.com/Prism-Shadow/penguin-harness/pull/144)
+
+[中文版](2026-08-07-memory.zh.md)
+
An agent now has a long-term store it maintains itself: Markdown notes under `agent_state/memory/`, kept in two scopes — one for the user and one per Workspace — each with its own `MEMORY.md` index that enters the context, topic bodies read on demand. It covers what a later Session cannot re-derive from the Workspace — who the user is and their standing preferences, project decisions with their reasons, conventions, entry points into external systems.
Memory is not context compaction. Compaction preserves one Session's short-term working state; Memory is what survives the Session ending.
diff --git a/changelog/0.2.2/2026-08-07-memory.zh.md b/changelog/0.2.2/2026-08-07-memory.zh.md
new file mode 100644
index 00000000..14808b6b
--- /dev/null
+++ b/changelog/0.2.2/2026-08-07-memory.zh.md
@@ -0,0 +1,62 @@
+# Memory:Agent 在 Session 之间保留下来的东西
+
+- **Date:** 2026-08-07
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#144](https://github.com/Prism-Shadow/penguin-harness/pull/144)
+
+[English](2026-08-07-memory.md)
+
+Agent 现在拥有一个由它自己维护的长期存储:位于 `agent_state/memory/` 下的 Markdown 笔记,分为两个作用域——一个面向用户,一个逐 Workspace——各自带有一份进入上下文的 `MEMORY.md` 索引,而主题正文按需读取。它承载的是后续 Session 无法从 Workspace 重新推导出来的东西:用户是谁及其长期偏好、项目决策及其理由、约定、进入外部系统的入口。
+
+Memory 不是上下文压缩。压缩保留的是单个 Session 的短期工作状态;Memory 是 Session 结束之后仍然幸存的东西。
+
+## 作用域与布局
+
+有两个作用域,都属于同一个 Agent,且绝不与另一个 Agent 共享:
+
+- **用户作用域**(`memory/user/`)——无论 Agent 在哪里工作都成立的东西:用户是谁、他们的长期偏好、不绑定于某个代码库的参考材料。每个会话都会读取它。
+- **Workspace 作用域**(`memory/<workspace_memory_key>/`)——关于某一个 Workspace 的事实:项目决策、收到的反馈、指向其外部系统的入口。同一个 Agent 在同一个 Workspace 中的各个会话共享它;不同 Workspace 的主题文件彼此分开。
+
+每个作用域携带自己的 `MEMORY.md` 索引——每条记忆一行,`- [标题](file.md) — 钩子`,链接相对于该作用域目录——而不同 Agent 即便在同一个 Workspace 中也绝不共享 Memory。
+
+```text
+agent_state/memory/
+├── user/ # 用户作用域(随 Agent 一同创建)
+│ ├── MEMORY.md # 该作用域的索引
+│ └── prefers-pnpm.md
+└── my-app-a81f32c4/ # 在该 Workspace 中的首个 Session 时创建
+ ├── .workspace # 该键所代表的 Workspace 路径
+ ├── MEMORY.md
+ └── testing-conventions.md
+```
+
+保留 `user` 这个名字是安全的,因为每一个生成出来的 workspace memory key 都是 `<base>-<8 位十六进制>`,因此总是带连字符——一个不含连字符的名字永远不可能被生成出来。
+
+workspace memory key 是 `<安全的 basename>-<真实路径 sha256 的 8 位十六进制>`。身份由目录本身决定,不依赖 Git:指向同一目录的两个符号链接解析为同一个键,而移动或重命名一个目录会使它成为一个新的 Workspace——旧的 Memory 留在磁盘上、挂在旧键之下,而不是跟着一条不再存在的路径走。
+
+**临时** Workspace 不获得 Workspace 作用域。它每个会话分配一个,因此绝不会有后续会话在那里运行并把它读回来——以它为键的记忆将是只写存储。这类会话仍然获得用户作用域,而它学到的任何东西本就该归在那里。判定依据是该目录的位置——是否位于某个 Agent 的 `workspaces/` 之下——而不是调用方是否显式传入了 Workspace,因为子 Agent 会把父级的 Workspace 作为显式参数继承下来,临时的也不例外。
+
+一个主题文件是一个语义上的主题,而不是每个 Task、Session 或日期一个,并在 frontmatter 中声明 `name`(kebab-case,与文件名一致)/ `description`(一行,用于在召回时判断相关性)/ `updated_at`——一条记忆属于哪个作用域由它所在的目录表达,因此没有类型字段。正文中用 `[[name]]` 链接相关记忆,而更正 / 决策类记忆带 **Why:** 与 **How to apply:** 两行。绝不保存的内容:凭证、任务进度、未经确认的猜测,以及代码与 Git 历史本就说明了的事实。
+
+## 什么会抵达模型
+
+只有索引,经由模板的 `{{MEMORY}}` 占位符:它展开为 `memory.prompt`——Memory 是做什么用的、以模板示例形式给出的保存机制,然后是一节 `## User memory` 及其索引(`{{USER_MEMORY_INDEX}}`)——再加上 `memory.workspace_prompt`(一节 `## Workspace memory`,含 `{{WORKSPACE_MEMORY_INDEX}}`),后者仅当该 Session 运行在持久 Workspace 中时才出现,因此临时 Workspace 绝不会被告知一个它并不拥有的作用域。两份提示词都是逐 Agent 的配置,可在 Memory 标签页编辑,并像模板的其他小节一样以 Markdown 标题组织。`User Memory Dir` 那一行是字面模式 `<app_data_dir>/agents/<agent_id>/agent_state/memory/user`,可从 Environment 小节解析出来;而 `Workspace Memory Dir` 那一行经 `{{WORKSPACE_MEMORY_DIR}}` 渲染为已解析的结果,因为它的最后一段——workspace memory key——是一个模型自己永远拼不出来的路径哈希。
+
+空索引会注入一句明确的「尚未保存任何内容」,而注入按每个作用域 200 行设上限,再以合计 25,000 字符作为长行索引的兜底——超过上限时,一条截断说明会告诉模型自行打开完整的 `MEMORY.md`。默认的 Memory 提示词声明了行数上限,并要求索引行控制在约 150 字符以内;字符兜底只存在于代码中。
+
+不含 `{{MEMORY}}` 的模板不会注入任何内容——例如一个在 Memory 之前创建的 Agent。Memory 标签页会报告这一点,并提供把该占位符插入进去(插在 `# Environment` 之前,也就是默认模板给它的位置)作为一个显式的一键操作;绝不会自动拼接进去。组装后的提示词记录在 `session_meta` 中。
+
+读取、写入与去重都是模型自己的工作,经由普通的文件工具完成——Harness 只决定 Memory 存在哪里、并把写入限制在其中,仅此而已。
+
+## 在 Web App 中管理它
+
+Agent 设置在 Prompt 与 Runtime 之间新增一个 **Memory** 标签页:顶部是开关(立即写入,不并入该标签页的保存,因此关闭 Memory 绝不会捎带上一处无关的半成品编辑),随后是按作用域分组的全部记忆——用户记忆在前,然后每个 Workspace 一组,以其目录 basename 为标题、完整的 `.workspace` 路径列在旁边,最近活跃者在前。分组点击头部即折叠,与 Skill 库同一套约定,而折叠状态按用户 × Project × Agent 记在浏览器中。每行显示该记忆的名称、描述与日期。
+
+该标签页也在分组下方就地编辑那两份 memory 提示词。行是刻意只读的,配以像 Skill 标签页那样的纯图标操作。**查看**(眼睛)在桌面端的右侧抽屉、窄屏的底部抽屉中打开渲染后的正文(剥去 frontmatter——那些字段头部已经显示了),交互与聊天页面板一致(半高 / 全高吸附点);**删除**(垃圾桶)会确认、删除文件,并从该作用域的 `MEMORY.md` 中机械地移除其 `](<file>)` 行,因此索引绝不会列出一个已经不在的文件;**编辑**(铅笔)先打开一个桥接模态——一个需求字段加上所生成提示词的实时预览,形态与 Skill 导入模态相同——然后经同一套草稿缓存路由跳转到与该 Agent 的新会话,提示词已预填、需求已填入(或留在末尾以便在输入区补完)。一条 Workspace 记忆的编辑会话还会钉住那个 Workspace,因此这个进行编辑的 Session 被注入的正是它即将改动的那份索引。
+
+每个分组头部还带一个**新增**入口,是位于折叠箭头左侧的一个幽灵文本操作——沿用模型页的逐分组约定——其模态与编辑模态同形,含一个必填的内容或来源字段(粘贴的文本、一个文件路径或一个 URL;来源由 Agent 自己去读),桥接到一个新会话,由 Agent 把内容整理进该作用域。两种桥接草稿都刻意保持精简,只点明目标与诉求——保存机制本就住在该 Agent 的 Memory 提示词里。而 Agent 列表卡片的统计行会在其他计数旁以一个大脑图标显示记忆数量,并深链到 Memory 标签页。
+
+关闭 Memory 会保留每一个文件,标签页也完全可用;它只是让 Memory 不再进入上下文、也不再为新 Session 准备目录。
+
+API 位于 `/api/projects/:p/agents/:a/memory` 之下——概览、逐作用域的文件列表、文件读取、文件删除,以及幂等的占位符插入;刻意不提供内容写入或重命名,因为内容的改动经由聊天进行。它从不接受路径:一个文件由 Agent、作用域键与该作用域内的一个名称来寻址,每一项都经过校验,并在解析之后再次做包含性复核。
diff --git a/changelog/0.2.2/2026-08-10-mcp-servers.md b/changelog/0.2.2/2026-08-10-mcp-servers.md
index e50fa86a..1806b8ed 100644
--- a/changelog/0.2.2/2026-08-10-mcp-servers.md
+++ b/changelog/0.2.2/2026-08-10-mcp-servers.md
@@ -1,6 +1,15 @@
# MCP Server support: stdio, Streamable HTTP and SSE transports
-`tools.mcpServers` in `system_config.yaml` — until now a reserved, empty seam — is wired to a real MCP (Model Context Protocol) client, built on the official TypeScript SDK v2 (`@modelcontextprotocol/client` 2.0.0, spec revision 2026-07-28). Each entry keeps the spec's `{ name, config }` shape; `config` describes one of three transports (#242, closing #239 and #229):
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `docs`
+- **PR:** [#242](https://github.com/Prism-Shadow/penguin-harness/pull/242)
+- **Issue:** [#229](https://github.com/Prism-Shadow/penguin-harness/issues/229), [#239](https://github.com/Prism-Shadow/penguin-harness/issues/239)
+- **Breaking:** yes — pre-split Traces' embedded tool record is no longer read or displayed.
+
+[中文版](2026-08-10-mcp-servers.zh.md)
+
+`tools.mcpServers` in `system_config.yaml` — until now a reserved, empty seam — is wired to a real MCP (Model Context Protocol) client, built on the official TypeScript SDK v2 (`@modelcontextprotocol/client` 2.0.0, spec revision 2026-07-28). Each entry keeps the spec's `{ name, config }` shape; `config` describes one of three transports ([#242](https://github.com/Prism-Shadow/penguin-harness/pull/242), closing [#239](https://github.com/Prism-Shadow/penguin-harness/issues/239) and [#229](https://github.com/Prism-Shadow/penguin-harness/issues/229)):
- `stdio` — spawn a local server process (`command` / `args` / `env` / `cwd`);
- `http` — Streamable HTTP, the current spec's remote transport (`url` / `headers`);
@@ -29,3 +38,7 @@ Session creation no longer blocks on MCP connects — the first send used to fre
- Credential validation stays at Session-creation time (the server's `model_credential_missing` 400 is preserved); a resumed session no longer blocks on MCP either, at the price of trace-corruption errors surfacing on the first run instead of at resume.
Existing configs are unaffected: `mcpServers` defaulted to `[]` and the inner `config` object was never interpreted before, so no stored shape changes and no migration is involved. Docs: the tools, configuration, interfaces, web-app and omni-message pages (zh + en) document the schema, events and semantics.
+
+## Compatibility
+
+`session_meta` no longer carries `tools`; the schemas arrive as a separate `tool_list_ready` event. A Trace written before the split keeps its embedded tool record on disk, but nothing reads or displays it — everything else about such a Trace renders unchanged. No migration and no user action; no compatibility code was kept for the old shape. Stored `mcpServers` configs are unaffected: the field defaulted to `[]` and the inner `config` object was never interpreted before.
diff --git a/changelog/0.2.2/2026-08-10-mcp-servers.zh.md b/changelog/0.2.2/2026-08-10-mcp-servers.zh.md
new file mode 100644
index 00000000..839335bf
--- /dev/null
+++ b/changelog/0.2.2/2026-08-10-mcp-servers.zh.md
@@ -0,0 +1,44 @@
+# MCP Server 支持:stdio、Streamable HTTP 与 SSE 传输
+
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`, `cli`, `docs`
+- **PR:** [#242](https://github.com/Prism-Shadow/penguin-harness/pull/242)
+- **Issue:** [#229](https://github.com/Prism-Shadow/penguin-harness/issues/229), [#239](https://github.com/Prism-Shadow/penguin-harness/issues/239)
+- **Breaking:** yes — 拆分之前的 Trace 中内嵌的工具记录不再被读取或展示。
+
+[English](2026-08-10-mcp-servers.md)
+
+`system_config.yaml` 中的 `tools.mcpServers`——此前一直是一个预留的空接缝——现已接上一个真正的 MCP(Model Context Protocol)客户端,基于官方 TypeScript SDK v2(`@modelcontextprotocol/client` 2.0.0,规范修订版 2026-07-28)。每个条目保持规范的 `{ name, config }` 形状;`config` 描述三种传输之一([#242](https://github.com/Prism-Shadow/penguin-harness/pull/242),关闭 [#239](https://github.com/Prism-Shadow/penguin-harness/issues/239) 与 [#229](https://github.com/Prism-Shadow/penguin-harness/issues/229)):
+
+- `stdio`——派生一个本地服务进程(`command` / `args` / `env` / `cwd`);
+- `http`——Streamable HTTP,即当前规范的远程传输(`url` / `headers`);
+- `sse`——面向尚未迁移的服务的旧版 HTTP+SSE 传输(`url` / `headers`)。
+
+`transport` 在可推断时可以省略(`command` → stdio,`url` → http);`sse` 必须显式写出。各条目共用可选的 `connectTimeoutMs`(连接 + 发现的预算,默认 10 秒)以及施加于该服务每个工具的 `timeoutMs` / `maxOutputLength` 约束。
+
+## 行为
+
+- 首次 `listTools()`(Session 组装时)会并行连接所有服务并发现一次工具;结果是一份 Session 生命周期内的快照(`tools/list_changed` 被忽略)。无效条目与不可达的服务会被跳过并给出 stderr 警告——Session 创建绝不被阻塞。
+- 被发现的工具以 `mcp__<server>__<tool>` 加入扁平的工具命名空间,并原样经既有的 Environment 执行契约运行:分帧、逐工具超时、前端截断、中断与审批流程全部适用。
+- 只读审批模式:被服务标注 `readOnlyHint: true` 的工具映射为权限 `r`;其余为 `rw`(标注属于不可信的提示,因此默认取更严格的方向)。
+- stdio 服务进程看到的是 SDK 那份安全的继承环境,加上该条目自己的 `env`——Agent 的 vault 刻意**不**注入 MCP 服务进程(与命令子进程不同);某个服务需要的变量必须列在它自己的条目里。`cwd` 默认为 Session 的 Workspace。`Environment.dispose()` 会关闭每一个客户端,包括 stdio 的子进程。
+- 结果的映射方式为:文本块 → 输出文本;图像块 → data-URL 图像;音频与二进制资源 → 占位行;`structuredContent` 仅在不存在文本块时才序列化;服务报告的 `isError` 落为 `stop_reason: "failed"`。
+
+## Web App
+
+Agent 设置页的 Tools 标签把 MCP Servers 区块从一份只读的 JSON 转储变成 vault 式的管理:一张已配置服务的表格,加上一个新增/编辑表单——顶部是传输方式的标签页(默认 http——url / headers;stdio:command / args / env / cwd;共用的预算字段预填其生效默认值),删除置于确认之后,且立即持久化——条目中未知的配置键在编辑后仍得以保留。连通性测试与模型页对齐:表单中一个独立的「测试连接」按钮会经新的 `POST …/config/mcp-test` 路由探测当前取值(服务端连接 + 工具发现,什么都不保存;结果以 toast 给出工具数量与延迟),而小节级的按钮会在确认对话框之后依次测试每一个已配置的服务,并在每一行落上一个带色调的结果徽章。服务端的 PUT 现在会经 core 的传输解析器逐条校验,并做重名检查,因此一个损坏的条目会在保存时以精确的 400 被拒绝,而不是等到下次 Session 启动时才被警告并跳过。
+
+## 可见的连接阶段 + 协议拆分(破坏性)
+
+Session 创建不再阻塞于 MCP 连接——此前首次发送会在服务连接期间无声地卡住。工具集现在在首次运行开始时惰性解析,并以协议形式流出:
+
+- `session_meta` **丢弃其 `tools` 字段**;完整的 schema 在发现完成之后作为新的 `tool_list_ready` 事件随之而来,并在每个压缩后的 Trace 文件中紧挨 meta 重写一次。**与拆分之前的 Trace 明确不兼容**(刻意为之,未保留任何兼容代码):它们内嵌的工具记录不再被读取或展示——旧 Trace 的其他一切照常渲染,也无需任何操作。
+- 连接 + 发现的等待由一对 `mcp_connect_begin` / `mcp_connect_end` 括起——结束事件携带一个压缩风格的整体 `status`(completed / failed / aborted)以及逐服务的结果(各服务并行连接;墙钟时间即这对事件的时间戳之差)。在 Trace 中,这一对事件与 `tool_list_ready` 落在该次运行的输入之后、位于新的这一轮之内——包括被恢复会话的重连。Web 聊天把这个阶段渲染为一个统一的步骤行(复用「推理与工具」分组头部的外壳,含粘性标题栏,与压缩行共用):运行中/成功/失败保持同一形态,已结算的行以发现到的工具数量领起并点名不可用的服务,展开后每个服务一组——状态、工具数量与该服务的连接耗时——各自可再展开为它的工具列表或失败详情;CLI 打印成对的 `[mcp]` 行(失败原因内联在结束行上);分析时间线把「mcp connect」渲染为一段位于它自己的「其他」图例类别下的跨度(而非一次工具执行)。在连接中途中止会取消该次尝试——下次发送会重连;而继续同一个对话绝不会重连(引擎跨 Task 存活)。被中止的那一轮会被记录下来:Session 自身把输入、被中止的连接事件对与中止事件写入 Trace(分析页会显示这次打断;刷新或重启后该消息仍在),而那份输入会带进下一次发送,而不是被丢弃。Trace 事件行把工具参数 schema 渲染为一张属性表,而不是原始 JSON。
+- 凭证校验仍留在 Session 创建时刻(服务端的 `model_credential_missing` 400 予以保留);被恢复的会话也不再阻塞于 MCP,代价是 trace 损坏类错误会在首次运行时浮现,而不是在恢复时。
+
+已有配置不受影响:`mcpServers` 默认为 `[]`,而其内层的 `config` 对象此前从未被解释,因此没有任何已存形态发生改变,也不涉及迁移。文档:tools、configuration、interfaces、web-app 与 omni-message 五个页面(中英)记录了该 schema、事件与语义。
+
+## 兼容性
+
+`session_meta` 不再携带 `tools`;schema 改由独立的 `tool_list_ready` 事件送达。在拆分之前写入的 Trace 在磁盘上仍保有其内嵌的工具记录,但已没有任何东西读取或展示它——这类 Trace 的其他一切照常渲染。不涉及迁移,用户也无需任何操作;针对旧形态没有保留任何兼容代码。已存的 `mcpServers` 配置不受影响:该字段默认为 `[]`,其内层 `config` 对象此前从未被解释。
diff --git a/changelog/0.2.2/2026-08-10-web-app.md b/changelog/0.2.2/2026-08-10-web-app.md
index 1b3cf849..f21cda12 100644
--- a/changelog/0.2.2/2026-08-10-web-app.md
+++ b/changelog/0.2.2/2026-08-10-web-app.md
@@ -1,5 +1,12 @@
# Web App: session details card with live process control, draft conversations, sequenced panel swaps, a persistent initial-password notice, and chat polish
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`
+- **PR:** [#241](https://github.com/Prism-Shadow/penguin-harness/pull/241), [#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)
+
+[中文版](2026-08-10-web-app.zh.md)
+
## Header statistics become the details card, with the session's processes inside
The chat toolbar's Token / cost / elapsed statistics move to the far right and are now themselves the details entry: on wide viewports clicking the numbers opens the details card (no separate info icon), and narrow viewports collapse the whole trigger to the single info icon. While the conversation has live background processes, a green running-services count rides to the right of the elapsed time.
diff --git a/changelog/0.2.2/2026-08-10-web-app.zh.md b/changelog/0.2.2/2026-08-10-web-app.zh.md
new file mode 100644
index 00000000..d6a1910c
--- /dev/null
+++ b/changelog/0.2.2/2026-08-10-web-app.zh.md
@@ -0,0 +1,44 @@
+# Web App:带实时进程控制的会话详情卡、草稿对话、有序的面板交换、常驻的初始密码提示,以及聊天打磨
+
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`
+- **PR:** [#241](https://github.com/Prism-Shadow/penguin-harness/pull/241), [#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)
+
+[English](2026-08-10-web-app.md)
+
+## 头部统计变成详情卡,会话的进程就在其中
+
+聊天工具栏的 Token / 成本 / 已用时间统计移到最右侧,并且它们本身就是详情入口:宽视口下点击这些数字即打开详情卡(不再有单独的信息图标),而窄视口把整个触发点收缩为那一个信息图标。当该对话有存活的后台进程时,一个绿色的运行中服务计数挂在已用时间右侧。
+
+详情卡以小节形式展示模型、**Session id**(可选中的等宽文本,旁边配复制按钮)、工作区、创建时间与统计,其中统计以每行一个数字的项目符号列表呈现——Token 那一条读作 `总 Token <total>(缓存命中率 <pct>)`,命中率为缓存读取占全部已记录输入的比例。其下是一个可交互的**会话进程**列表:该对话启动的后台进程(一个活过了其让出窗口的 `exec_command`,比如跑在 localhost:3000 的开发服务器)各自显示命令、启动时间与 pid,运行中的行带一个停止按钮,它会杀掉整个进程组并移除该行。原先的「查看 trace」按钮变成同一套「标签加取值」结构下的 **trace 文件**小节,其中实际的 `.jsonl` 路径是一个带下划线的链接,深链进 trace 观测。
+
+底层方面,命令会话现在暴露枚举能力(environment 与 core Session 上的 `listBackgroundCommands`;进程 id、pid、命令、cwd、启动时间、运行状态)与按 id 终止,由两个新端点提供服务(`GET /api/sessions/:id/processes`、`POST /api/sessions/:id/processes/:processId/kill`——只由活动运行时作答,绝不复活一个)。随之堵上两个真实的生命周期缺口:删除 Session、Agent 或 Project 现在会在其进行中的驱动结束后释放运行时,因此后台进程随对话一同消亡,而不是永远跑下去;而活动表的空闲清退会跳过仍有运行中后台进程的条目——清退它会让操作系统进程失去任何停止手段而被搁浅。
+
+## 已打出但未发送的文本变成草稿对话
+
+在新会话输入区仍有文本时点击任一「新建对话」入口——侧边栏按钮、分组头部的「+」、收起态导航栏、Agent 页,或 Skill 库的快捷调用(此前会静默覆盖已打出的文本)——现在会把那份草稿停放为一个**草稿对话**:会话列表顶部「草稿」分组中的一行(按用户 × Project 存于 localStorage,最新在前,上限 50)。打开某一行(`/chat/draft-<id>`)会恢复完整草稿——文本、Agent、工作区、模型、审批模式与已选中的 Skill——可随时编辑与发送;发送会创建真实 Session 并移除该行,而这些行也可以在确认之后删除。活动的草稿槽只保留模型的延续(「切换即成默认」,与发送之后一致),因此新会话总是从空白输入区开始,已打出的内容绝不会不可见地滞留。
+
+## 管理员初始密码在被修改之前一直可见
+
+预置的 admin 密码此前只在首次启动时打印一次;若那一行还没被读到就滚走了,凭证就没了。它现在会在仍是初始密码期间保存在数据根目录中(`initial-admin-password`,仅所有者权限),而每次服务端启动都会用 ASCII 边框重新打印并附上修改提醒——`penguin web` 挂接到一个已在运行的实例时也打印同样的提示。admin 的任何密码更新(自行修改、桌面端设置,或管理员重置——其所选的取值绝不持久化)都会删除该文件;在本次改动之前预置的数据根目录没有该文件,保持静默。文档相应更新。
+
+## 面板交换先收回再展开
+
+在 Agent 面板与工作区面板之间切换此前会同时运行两段宽度过渡:总宽度保持不变,因此正在关闭的面板其内容从不移动——它只是被进入的面板抹了过去,读起来就是「没有收回动画」。停靠面板的交换现在有了时序:已打开的面板完全收回(聊天列把空间收回去),然后另一个滑入。移动端的 Sheet 保持即时切换——它们是覆盖而非共享宽度。
+
+## 对话打开时吸附在底部、位于提示横幅之下
+
+消息流会在其滚动容器或内容于流提交之外发生尺寸变化时重新吸附到底部——此前初始密码横幅在 `/api/me` 解析之后才挂载,或者一张延迟加载的图片,都会让刚打开的对话停在离底部一个横幅高度的位置,而且没有任何滚动事件来纠正它。
+
+## 定时任务:拾取器与默认值对话框对齐
+
+定时任务的创建/编辑表单现在使用与 Project 新会话默认值对话框相同的表单式拾取器:在「每次运行新建 Session」模式下,模型与工作区控件就是那对共享的下拉框 / 目录浏览器(而不是一个光秃秃的 `<select>` 加一个裸路径输入框),而选中 Project 默认值——或者保持不动——意味着「跟随默认」,因此此后对 Project 默认模型的修改会继续贯通。「绑定 Session」模式把它那个自由文本的 Session id 字段换成一个覆盖该 Agent 完整会话列表的**可搜索下拉框**,按标题或 id 匹配。三个表单拾取器(模型、工作区、会话)现在共用同一个触发组件。
+
+## 复制反馈保持一致,且始终落在按钮上
+
+每一个复制控件都经由同一个共享按钮:反馈落在按钮自身——图标变成对勾,tooltip 读作「已复制」,空间允许时还会显示「已复制」文字——而且它绝不替换附近的标签。(详情卡的 Session id 行曾是唯一的例外,会翻转它的「Session id」标签;它现在与其余部分行为一致。)
+
+## 更小的改进
+
+保存 Project 新会话默认值现在会以一个「已保存」toast 确认(对话框保持打开,因此此前一次成功保存是无声的)。Agent 的 Prompt 标签页的「可用占位符」列表补回了缺失的 `{{SHELL}}` 项——默认系统提示词用了十三个占位符而该列表只显示十二个——并配一个测试把该列表固定到真实的默认提示词上,使它不会再次漂移。基准测试的 case 详情对话框打开时两个材料分组(任务材料与 rubric)都展开,readme 的自动预览留在任务材料一侧,因此两者不会争抢预览窗格。而会话输入区那个只读模型芯片现在可点击:它会说明 `/model` 用于切换模型,并在新会话中继续该对话。
diff --git a/changelog/0.2.2/2026-08-10-web-chat-ux.md b/changelog/0.2.2/2026-08-10-web-chat-ux.md
index 53c44672..62b561c5 100644
--- a/changelog/0.2.2/2026-08-10-web-chat-ux.md
+++ b/changelog/0.2.2/2026-08-10-web-chat-ux.md
@@ -1,5 +1,13 @@
# Web App: chat UX batch — password notice, process list, draft conversations, panel sequencing, queued-send correctness
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`, `cli`
+- **PR:** [#227](https://github.com/Prism-Shadow/penguin-harness/pull/227), [#241](https://github.com/Prism-Shadow/penguin-harness/pull/241), [#246](https://github.com/Prism-Shadow/penguin-harness/pull/246)
+- **Issue:** [#89](https://github.com/Prism-Shadow/penguin-harness/issues/89)
+
+[中文版](2026-08-10-web-chat-ux.zh.md)
+
## Startup initial-password notice (server + CLI)
The seeded admin password is persisted in `<root>/initial-admin-password` (0600) while it remains the initial one. Every server start re-prints it framed in ASCII with a change-it reminder, and `penguin web` attaching to an already-running instance prints the same notice (new side-effect-free subpath export `@prismshadow/penguin-server/initial-password`). Any admin password update — self change, desktop set, or an admin reset — deletes the file; legacy roots without the file stay silent. Docs (`quickstart` / `web-app` / `server-api`, READMEs) updated.
@@ -22,4 +30,4 @@ Opening the workspace panel while the agents panel is open (or vice versa) retra
## Queued follow-up correctness
-Two races around the mid-run send path are fixed: a `/steer` that returns `409 not_running` during the completion boundary now re-routes the whole draft through the existing `queueIfBusy` Task path instead of a bare `POST /tasks` that could land `409 task_in_progress` and drop the draft (#227, closes #89); and the per-turn thinking level picked in the composer now rides the follow-up queue path too — previously `onQueueFollowUp` posted only the input, silently dropping the level on the very send it was picked for (#246).
+Two races around the mid-run send path are fixed: a `/steer` that returns `409 not_running` during the completion boundary now re-routes the whole draft through the existing `queueIfBusy` Task path instead of a bare `POST /tasks` that could land `409 task_in_progress` and drop the draft ([#227](https://github.com/Prism-Shadow/penguin-harness/pull/227), closes [#89](https://github.com/Prism-Shadow/penguin-harness/issues/89)); and the per-turn thinking level picked in the composer now rides the follow-up queue path too — previously `onQueueFollowUp` posted only the input, silently dropping the level on the very send it was picked for ([#246](https://github.com/Prism-Shadow/penguin-harness/pull/246)).
diff --git a/changelog/0.2.2/2026-08-10-web-chat-ux.zh.md b/changelog/0.2.2/2026-08-10-web-chat-ux.zh.md
new file mode 100644
index 00000000..42c6a39b
--- /dev/null
+++ b/changelog/0.2.2/2026-08-10-web-chat-ux.zh.md
@@ -0,0 +1,33 @@
+# Web App:聊天体验批次——密码提示、进程列表、草稿对话、面板时序、排队发送的正确性
+
+- **Date:** 2026-08-10
+- **Type:** feature
+- **Scope:** `web`, `server`, `core`, `cli`
+- **PR:** [#227](https://github.com/Prism-Shadow/penguin-harness/pull/227), [#241](https://github.com/Prism-Shadow/penguin-harness/pull/241), [#246](https://github.com/Prism-Shadow/penguin-harness/pull/246)
+- **Issue:** [#89](https://github.com/Prism-Shadow/penguin-harness/issues/89)
+
+[English](2026-08-10-web-chat-ux.md)
+
+## 启动时的初始密码提示(server + CLI)
+
+只要预置的 admin 密码仍是初始密码,它就会被持久化在 `<root>/initial-admin-password`(0600)中。每次服务端启动都会用 ASCII 边框重新打印它并附上「请尽快修改」的提醒,而 `penguin web` 挂接到一个已在运行的实例时也会打印同样的提示(新增无副作用的子路径导出 `@prismshadow/penguin-server/initial-password`)。任何 admin 密码更新——自行修改、桌面端设置,或管理员重置——都会删除该文件;没有该文件的旧数据根目录保持静默。文档(`quickstart` / `web-app` / `server-api`、README)同步更新。
+
+## 对话详情:合并的统计入口、进程列表、trace 文件行
+
+Token / 成本 / 已用时间三个芯片移到工具栏最右侧,并在 `sm+` 视口下自身即是详情的触发点(`sm` 以下只显示信息图标)。当该对话有存活的后台进程时,一个绿色的运行中服务计数会挂在已用时间芯片右侧。详情卡逐行显示模型 / 工作区 / 创建时间 / 统计(Token 带输入 / 缓存 / 输出的拆分),随后是一个可交互的进程列表(命令、启动时间、pid;停止按钮会杀掉整个进程组),以及一行 trace 文件,点名实际的 `.jsonl` 路径并深链到 trace 页(取代了原先的「查看 trace」按钮)。
+
+## 后台进程的接线与生命周期(core + server)
+
+`ManagedSession` 保存 `cmd`/`cwd`/`startedAt` 并暴露 `pid`;注册表新增枚举与按 id 终止;core 的 `Session`/`Environment` 暴露 `listBackgroundCommands()` / `killBackgroundCommand()`;新增路由 `GET /api/sessions/:id/processes` 与 `POST /api/sessions/:id/processes/:processId/kill`(仅限活动运行时)。删除 Session/Agent/Project 现在会在其驱动结束后释放运行时——后台进程随对话一同消亡——而空闲清退会跳过仍有存活后台进程的条目(清退会让操作系统进程失去任何停止手段而被搁浅)。
+
+## 停放的草稿对话
+
+在输入区仍有已打出文本时点击任一新建会话入口,会把该草稿停放为侧边栏新增的「草稿」分组中的一行(按用户 × Project 存于 localStorage,最新在前,上限 50)。这些行在 `/chat/draft-<id>` 打开并还原全部选择,可编辑(自动保存)、可发送(成为真实会话,该行移除)、可删除(带确认对话框)。Skill 的快捷调用 / 导入提示现在也走停放,而不再静默覆盖已打出的文本。
+
+## 面板与消息流打磨
+
+在 Agent 面板打开时打开工作区面板(或反之),会先让已打开的面板完全收回,再把新的滑入,因此这次交换读起来是一次真正的收回,而不是被抹掉;移动端的 Sheet 保持即时切换。一个 ResizeObserver 会在容器或内容于流提交之外发生尺寸变化时,把消息流重新吸附到底部(仍受既有的跟随守卫约束)——初始密码横幅不再会让一个刚打开的对话停在离底部一个横幅高度的位置。基准测试的 case 浏览器默认展开两个材料分组,并把 readme 的自动预览钉在陈述分组上;点击输入区那个只读模型芯片会提示 `/model` 可切换模型。
+
+## 排队后续消息的正确性
+
+修复了运行中途发送路径周围的两处竞态:一次在完成边界上返回 `409 not_running` 的 `/steer`,现在会把整份草稿改道经既有的 `queueIfBusy` Task 路径,而不是走一个可能落得 `409 task_in_progress` 并丢掉草稿的裸 `POST /tasks`([#227](https://github.com/Prism-Shadow/penguin-harness/pull/227),关闭 [#89](https://github.com/Prism-Shadow/penguin-harness/issues/89));以及在输入区选定的逐轮思考等级现在也会搭乘后续队列路径——此前 `onQueueFollowUp` 只投递输入,恰恰在它被选定的那一次发送上静默丢掉了该等级([#246](https://github.com/Prism-Shadow/penguin-harness/pull/246))。
diff --git a/changelog/0.2.2/2026-08-11-agent-kernel-version.md b/changelog/0.2.2/2026-08-11-agent-kernel-version.md
index 708655b9..737f70c8 100644
--- a/changelog/0.2.2/2026-08-11-agent-kernel-version.md
+++ b/changelog/0.2.2/2026-08-11-agent-kernel-version.md
@@ -1,10 +1,17 @@
# Agent config kernel version: dated generations with a smart update
-`system_config.yaml` is baked at agent creation and never auto-upgraded, so until now the only way to newer built-in defaults was a full restore that discarded every customization. Agent configs now carry a **kernel version** (#263): a date, `kernel_version: 2026-08-11`, recording which generation of built-in defaults the config was created from or last updated to. Creation and "restore defaults" both stamp it; ordinary config edits never touch it (it is unrelated to `version`, the optimization counter).
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257), [#261](https://github.com/Prism-Shadow/penguin-harness/pull/261), [#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)
+
+[中文版](2026-08-11-agent-kernel-version.zh.md)
+
+`system_config.yaml` is baked at agent creation and never auto-upgraded, so until now the only way to newer built-in defaults was a full restore that discarded every customization. Agent configs now carry a **kernel version** ([#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)): a date, `kernel_version: 2026-08-11`, recording which generation of built-in defaults the config was created from or last updated to. Creation and "restore defaults" both stamp it; ordinary config edits never touch it (it is unrelated to `version`, the optimization counter).
## Development-side bumps, mechanically enforced
-The version only moves when development changes the defaults, and it cannot be forgotten: a guard test pins the hash of every leaf default to the latest entry of a per-generation history table, so any default change fails CI until `KERNEL_VERSION` gets a new date and the table gains the generation. The history is seeded with two generations — the current defaults and the byte-exact pre-#257 reconstruction — and matching is purely by hash, never by the stored date.
+The version only moves when development changes the defaults, and it cannot be forgotten: a guard test pins the hash of every leaf default to the latest entry of a per-generation history table, so any default change fails CI until `KERNEL_VERSION` gets a new date and the table gains the generation. The history is seeded with two generations — the current defaults and the byte-exact pre-[#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) reconstruction — and matching is purely by hash, never by the stored date.
## Update beside restore
@@ -14,4 +21,4 @@ Outdated agents are flagged with the minimal-chrome convention — the kernel-ve
## The overview settles into ruled sections
-The rest of the overview follows the kernel controls (#261), as horizontal-rule-divided sections in the skill library's visual family rather than boxed cards: an **Agent State** section (State version with the snapshot import/export actions beside it, and the state path below — click-to-copy via the chat details card's optimistic "Copied" convention, full path on hover) and the **Kernel** section (Update and Restore in its action slot). Version values render dark and semibold against small gray labels so the number is the first thing read. The name/description form keeps its Save beside the fields it actually saves, and the active-session statistic is dropped from the overview.
+The rest of the overview follows the kernel controls ([#261](https://github.com/Prism-Shadow/penguin-harness/pull/261)), as horizontal-rule-divided sections in the skill library's visual family rather than boxed cards: an **Agent State** section (State version with the snapshot import/export actions beside it, and the state path below — click-to-copy via the chat details card's optimistic "Copied" convention, full path on hover) and the **Kernel** section (Update and Restore in its action slot). Version values render dark and semibold against small gray labels so the number is the first thing read. The name/description form keeps its Save beside the fields it actually saves, and the active-session statistic is dropped from the overview.
diff --git a/changelog/0.2.2/2026-08-11-agent-kernel-version.zh.md b/changelog/0.2.2/2026-08-11-agent-kernel-version.zh.md
new file mode 100644
index 00000000..10bbe574
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-agent-kernel-version.zh.md
@@ -0,0 +1,24 @@
+# Agent 配置内核版本:带日期的世代与智能更新
+
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257), [#261](https://github.com/Prism-Shadow/penguin-harness/pull/261), [#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)
+
+[English](2026-08-11-agent-kernel-version.md)
+
+`system_config.yaml` 是在 Agent 创建时固化的、从不自动升级,因此在此之前,通往更新内置默认值的唯一途径是一次会丢弃所有自定义内容的完整恢复。Agent 配置现在携带一个**内核版本**([#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)):一个日期,`kernel_version: 2026-08-11`,记录该配置是从内置默认值的哪一个世代创建、或最后更新到了哪一代。创建与「恢复默认」都会打上这个戳;普通的配置编辑绝不触碰它(它与 `version` 这个优化计数器无关)。
+
+## 开发侧的版本提升,由机制强制执行
+
+该版本只在开发改动了默认值时才移动,而且不可能被忘记:一个守卫测试把每一个叶子默认值的哈希固定到逐世代历史表的最新条目上,因此任何默认值变更都会让 CI 失败,直到 `KERNEL_VERSION` 拿到一个新日期、且该表新增一代为止。这份历史以两代作为种子——当前默认值,以及 [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) 之前逐字节重建的那一代——匹配纯粹按哈希进行,绝不按已存的日期。
+
+## 更新与恢复并列
+
+一个**更新内核**控件直接位于 Agent 概览页「恢复默认」之上,执行的是智能合并而非清空重来:仍等于任一已记录世代默认值的字段会前进到新的默认值;被用户修改过的字段予以保留,并以可读的名称回报;而来自该表无法识别的世代的取值会被保守保留(恢复仍是那条完整刷新的逃生舱)。内置工具按工具名逐个比较,因此一处被自定义过的工具描述只会让那一个工具留在原地,用户新增的条目得以存活,而被刻意删除的默认工具不会被复活。该合并经保留注释的 yaml 路径写入,并容忍手工编辑造成的损坏(无效的小节节点会被替换而不是崩溃)。
+
+过期的 Agent 以最简外观的约定标出——概览页上的内核版本行加一条更新提示,以及 Agent 列表卡片上一个带 tooltip 的图标标记,可深链到那里。「过期」采用顺序比较,因此一份由更新的构建打过戳的配置在降级之后绝不会来唠叨。早于该戳的旧配置按设计计为过期——见[兼容说明](2026-08-11-backward-compatibility.zh.md)。
+
+## 概览页收拢为分栏小节
+
+概览页的其余部分跟随这些内核控件([#261](https://github.com/Prism-Shadow/penguin-harness/pull/261)),采用 Skill 库那一视觉家族的、以水平分割线划分的小节,而不是带框的卡片:一个 **Agent State** 小节(状态版本,快照导入/导出操作紧随其旁,状态路径置于其下——点击即复制,沿用聊天详情卡那套乐观的「已复制」约定,完整路径在悬停时显示),以及 **Kernel** 小节(更新与恢复位于其操作槽中)。版本数值以深色半粗体渲染,对照小号灰色标签,因此数字是第一眼读到的东西。名称/描述表单把它的保存按钮留在它真正保存的那些字段旁边,而活动会话统计从概览页移除。
diff --git a/changelog/0.2.2/2026-08-11-backward-compatibility.md b/changelog/0.2.2/2026-08-11-backward-compatibility.md
index e1af27c9..612383af 100644
--- a/changelog/0.2.2/2026-08-11-backward-compatibility.md
+++ b/changelog/0.2.2/2026-08-11-backward-compatibility.md
@@ -1,17 +1,24 @@
# Backward compatibility: legacy baked templates, section placeholders, kernel version
-## Prompt-injection section placeholders (#257) `system_config.yaml` is baked at agent creation and never auto-upgraded, so every agent created before this change carries the old template text — hardcoded `# Vault` and `# Skills` sections with inline `{{VAULT_KEYS}}` / `{{SKILL_METADATA}}` placeholders, and no schedules section.
+- **Date:** 2026-08-11
+- **Type:** process
+- **Scope:** `core`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257), [#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)
+
+[中文版](2026-08-11-backward-compatibility.zh.md)
+
+## Prompt-injection section placeholders ([#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)) `system_config.yaml` is baked at agent creation and never auto-upgraded, so every agent created before this change carries the old template text — hardcoded `# Vault` and `# Skills` sections with inline `{{VAULT_KEYS}}` / `{{SKILL_METADATA}}` placeholders, and no schedules section.
**What old shape is tolerated.** Template-level substitution of the inline `{{VAULT_KEYS}}` and `{{SKILL_METADATA}}` placeholders continues to work, now honoring the new toggles: `vault.enabled: false` / `skills.enabled: false` blanks the inline list. On such templates the toggle cannot remove the baked section wording around the list — that text is literal template content; the tab explains this on legacy templates.
-**How far it reaches.** Every agent created before #257. New agents get the placeholder-only template and are unaffected.
+**How far it reaches.** Every agent created before [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257). New agents get the placeholder-only template and are unaffected.
**Does the user need to act?** No — existing agents keep rendering the prompt they always had. To adopt the new per-feature prompts and full toggle behavior, each tab offers a one-click migration that replaces the legacy default section with the placeholder, available when the baked wording is byte-identical to the old default (the frozen `LEGACY_VAULT_SECTION` / `LEGACY_SKILLS_SECTION` constants; a test pins that a migrated legacy default template equals the current default). A hand-edited section is never rewritten — the alert strip directs those templates to the System Prompt tab instead. Schedules has no legacy shape; its placeholder is a plain one-click insert, as Memory's was.
**When it can be removed.** The legacy inline-substitution path and the frozen section constants carry retirement comments (the `withShellLineFallback` convention): remove once pre-`{{SKILLS}}`-era agent configs are no longer expected in the wild — realistically after a migration nudge has shipped in a release or two and telemetry/user reports show no legacy templates remaining.
-## Kernel version (#263)
+## Kernel version ([#263](https://github.com/Prism-Shadow/penguin-harness/pull/263))
-`system_config.yaml` predating the change carries no `kernel_version` stamp and is therefore reported **outdated** — that is the feature working, not breakage; nothing changes until the user clicks Update (or Restore). The smart merge recognizes the current and the pre-#257 generations by hash; a value matching neither — older generations, or user edits — is conservatively kept, so an update can never destroy a customization it cannot prove is stock. No user action is required.
+`system_config.yaml` predating the change carries no `kernel_version` stamp and is therefore reported **outdated** — that is the feature working, not breakage; nothing changes until the user clicks Update (or Restore). The smart merge recognizes the current and the pre-[#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) generations by hash; a value matching neither — older generations, or user edits — is conservatively kept, so an update can never destroy a customization it cannot prove is stock. No user action is required.
-**When it can be removed.** The seeded pre-#257 history entry shares #257's retirement horizon (drop both together once legacy configs are gone); the guard test and history table themselves are permanent machinery, growing one row per deliberate defaults change.
+**When it can be removed.** The seeded pre-[#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) history entry shares [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)'s retirement horizon (drop both together once legacy configs are gone); the guard test and history table themselves are permanent machinery, growing one row per deliberate defaults change.
diff --git a/changelog/0.2.2/2026-08-11-backward-compatibility.zh.md b/changelog/0.2.2/2026-08-11-backward-compatibility.zh.md
new file mode 100644
index 00000000..40cb1d47
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-backward-compatibility.zh.md
@@ -0,0 +1,24 @@
+# 向后兼容:固化的旧模板、小节占位符、内核版本
+
+- **Date:** 2026-08-11
+- **Type:** process
+- **Scope:** `core`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257), [#263](https://github.com/Prism-Shadow/penguin-harness/pull/263)
+
+[English](2026-08-11-backward-compatibility.md)
+
+## 提示词注入的小节占位符([#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)) `system_config.yaml` 是在 Agent 创建时固化的、从不自动升级,因此本次改动之前创建的每个 Agent 都携带旧的模板文本——硬编码的 `# Vault` 与 `# Skills` 小节,内含 `{{VAULT_KEYS}}` / `{{SKILL_METADATA}}` 行内占位符,且没有 schedules 小节。
+
+**被容忍的旧形态。** 对行内 `{{VAULT_KEYS}}` 与 `{{SKILL_METADATA}}` 占位符的模板级替换继续有效,且现在会遵从新的开关:`vault.enabled: false` / `skills.enabled: false` 会把行内列表清空。在这类模板上,开关无法移除围绕该列表固化的小节措辞——那是字面的模板内容;相应标签页会在旧模板上说明这一点。
+
+**影响范围。** 所有在 [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) 之前创建的 Agent。新建 Agent 得到的是只含占位符的模板,不受影响。
+
+**用户需要动手吗?** 不需要——已有 Agent 继续渲染它们一贯的提示词。若要采纳新的逐功能提示词与完整的开关行为,每个标签页都提供一键迁移,把旧的默认小节替换为占位符;当固化的措辞与旧默认值逐字节一致时该迁移可用(即冻结的 `LEGACY_VAULT_SECTION` / `LEGACY_SKILLS_SECTION` 常量;有测试固定「迁移后的旧默认模板等于当前默认模板」)。手工编辑过的小节绝不会被重写——提示条会把这类模板引向「系统提示词」标签页。Schedules 没有旧形态;它的占位符只是一次普通的一键插入,与 Memory 当初一样。
+
+**何时可以移除。** 行内替换的旧路径与那两个冻结的小节常量都带有退役注释(沿用 `withShellLineFallback` 的约定):一旦野外不再预期存在 `{{SKILLS}}` 之前时代的 Agent 配置即可移除——现实地说,是在某个发布中推送过一次迁移提示、并且遥测/用户反馈显示已无旧模板残留之后。
+
+## 内核版本([#263](https://github.com/Prism-Shadow/penguin-harness/pull/263))
+
+早于本次改动的 `system_config.yaml` 不带 `kernel_version` 戳,因此会被报告为**过期**——这是功能在正常工作,而不是坏了;在用户点击「更新」(或「恢复」)之前什么都不会变。智能合并按哈希识别当前世代与 [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) 之前的世代;两者都不匹配的取值——更早的世代,或用户的修改——会被保守保留,因此一次更新绝不可能毁掉一处它无法证明是原装的自定义内容。用户无需任何操作。
+
+**何时可以移除。** 那条作为种子的 [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) 之前的历史条目,与 [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257) 共享同一个退役时点(旧配置消失后一并移除);而守卫测试与历史表本身是永久性的机制,每一次刻意的默认值变更增加一行。
diff --git a/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.md b/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.md
index c2668f0e..26f7c68d 100644
--- a/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.md
+++ b/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.md
@@ -1,12 +1,19 @@
# Web App: no more phantom list reloads when leaving a running conversation
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#242](https://github.com/Prism-Shadow/penguin-harness/pull/242)
+
+[中文版](2026-08-11-chat-phantom-idle-reload.zh.md)
+
The chat page reloads the session and Agent lists when a Task finishes (a turn may have
spawned a sub-session or auto-created an Agent). That trigger watched only the stream's
task state — but the stream also resets to "idle" whenever it detaches, so **switching
conversations or clicking "new conversation" while a Task was still running** fired the
same reload pair. Both sidebar contexts refetched and the whole app re-rendered right
after the click, occasionally visible as an uncontrolled flicker on entering the draft
-page (#242).
+page ([#242](https://github.com/Prism-Shadow/penguin-harness/pull/242)).
The trigger is now guarded by session identity: only a running→idle transition observed
on the SAME session counts as a completion. On a switch the tracker restarts from idle —
diff --git a/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.zh.md b/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.zh.md
new file mode 100644
index 00000000..6b6f6898
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-chat-phantom-idle-reload.zh.md
@@ -0,0 +1,12 @@
+# Web App:离开运行中的对话时不再出现幻影列表重载
+
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#242](https://github.com/Prism-Shadow/penguin-harness/pull/242)
+
+[English](2026-08-11-chat-phantom-idle-reload.md)
+
+聊天页会在一个 Task 结束时重新加载会话与 Agent 列表(某一轮可能派生了子会话或自动创建了 Agent)。而那个触发条件只盯着流的任务状态——但流在脱离(detach)时也会重置为「idle」,因此**在 Task 仍在运行时切换对话或点击「新建对话」**就会触发同一对重载。两个侧边栏上下文都会重新拉取,整个应用在点击之后立刻重新渲染,偶尔表现为进入草稿页时一次不受控的闪烁([#242](https://github.com/Prism-Shadow/penguin-harness/pull/242))。
+
+该触发条件现在由会话标识守卫:只有在**同一个**会话上观察到的 running→idle 转变才算作一次完成。切换时跟踪器从 idle 重新开始——在与 id 变化同一次提交中看到的状态仍属于此前那个流。而在另一个对话打开期间完成的运行,仍会经会话事件通道抵达侧边栏。
diff --git a/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.md b/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.md
index 0ffd3882..68b22386 100644
--- a/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.md
+++ b/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.md
@@ -1,5 +1,12 @@
# Dependencies: @hono/node-server ≥ 2.0.5 and nanoid ≥ 3.3.17 (workspace overrides)
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `server`, `tooling`
+- **PR:** [#264](https://github.com/Prism-Shadow/penguin-harness/pull/264)
+
+[中文版](2026-08-11-deps-hono-node-server-nanoid.zh.md)
+
Resolves Dependabot alert 20 — GHSA-frvp-7c67-39w9, a medium path traversal in `@hono/node-server`'s `serve-static` on Windows via an encoded backslash (`%5C`). The server package's direct dependency was already `^2.0.5` (resolving 2.0.12); the vulnerable 1.19.17 copy came transitively from `@modelcontextprotocol/node`, which pins `^1.19.9` and has no fixed release. A workspace override in `pnpm-workspace.yaml` (the only place pnpm 11 honors overrides) forces every copy to ≥ 2.0.5, with a comment noting the removal condition; the MCP stdio / Streamable HTTP / SSE transport tests all pass against the forced version.
-The same pass clears the one remaining `pnpm audit` finding: `nanoid` < 3.3.17 (high — custom generators can loop indefinitely when size is 0). Only 3.x copies existed in the lockfile, so the override stays within the major. `pnpm audit` reports **no known vulnerabilities** after both overrides (#264).
+The same pass clears the one remaining `pnpm audit` finding: `nanoid` < 3.3.17 (high — custom generators can loop indefinitely when size is 0). Only 3.x copies existed in the lockfile, so the override stays within the major. `pnpm audit` reports **no known vulnerabilities** after both overrides ([#264](https://github.com/Prism-Shadow/penguin-harness/pull/264)).
diff --git a/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.zh.md b/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.zh.md
new file mode 100644
index 00000000..7ac99a04
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-deps-hono-node-server-nanoid.zh.md
@@ -0,0 +1,12 @@
+# 依赖:@hono/node-server ≥ 2.0.5 与 nanoid ≥ 3.3.17(工作区 override)
+
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `server`, `tooling`
+- **PR:** [#264](https://github.com/Prism-Shadow/penguin-harness/pull/264)
+
+[English](2026-08-11-deps-hono-node-server-nanoid.md)
+
+解决 Dependabot 告警 20——GHSA-frvp-7c67-39w9,`@hono/node-server` 的 `serve-static` 在 Windows 上经编码反斜杠(`%5C`)触发的中危路径穿越。server 包的直接依赖本已是 `^2.0.5`(解析到 2.0.12);那个有漏洞的 1.19.17 副本是由 `@modelcontextprotocol/node` 传递引入的,它固定在 `^1.19.9` 且没有已修复的发布版本。`pnpm-workspace.yaml` 中的一条工作区 override(pnpm 11 只在这里认 override)强制所有副本 ≥ 2.0.5,并附注释写明移除条件;MCP 的 stdio / Streamable HTTP / SSE 传输测试在被强制的版本下全部通过。
+
+同一轮清扫也解决了 `pnpm audit` 剩下的唯一一处发现:`nanoid` < 3.3.17(高危——自定义生成器在 size 为 0 时可能无限循环)。lockfile 中只存在 3.x 的副本,因此该 override 停留在同一大版本内。两条 override 之后,`pnpm audit` 报告**没有已知漏洞**([#264](https://github.com/Prism-Shadow/penguin-harness/pull/264))。
diff --git a/changelog/0.2.2/2026-08-11-humanizer-skill.md b/changelog/0.2.2/2026-08-11-humanizer-skill.md
index 64503208..97dba687 100644
--- a/changelog/0.2.2/2026-08-11-humanizer-skill.md
+++ b/changelog/0.2.2/2026-08-11-humanizer-skill.md
@@ -1,6 +1,13 @@
# New library skill: humanizer
-`humanizer` joins the built-in library under the Office Productivity group as a manual-install skill — `preinstall: false`, so it stays out of default_agent's preinstalled set and installs from the Skill Library on demand (#256).
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `skills`
+- **PR:** [#256](https://github.com/Prism-Shadow/penguin-harness/pull/256)
+
+[中文版](2026-08-11-humanizer-skill.zh.md)
+
+`humanizer` joins the built-in library under the Office Productivity group as a manual-install skill — `preinstall: false`, so it stays out of default_agent's preinstalled set and installs from the Skill Library on demand ([#256](https://github.com/Prism-Shadow/penguin-harness/pull/256)).
## What it does
diff --git a/changelog/0.2.2/2026-08-11-humanizer-skill.zh.md b/changelog/0.2.2/2026-08-11-humanizer-skill.zh.md
new file mode 100644
index 00000000..57bf5321
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-humanizer-skill.zh.md
@@ -0,0 +1,18 @@
+# 新的库 Skill:humanizer
+
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `skills`
+- **PR:** [#256](https://github.com/Prism-Shadow/penguin-harness/pull/256)
+
+[English](2026-08-11-humanizer-skill.md)
+
+`humanizer` 作为一个手动安装的 Skill 加入内置库的 Office Productivity 分组——`preinstall: false`,因此它不进入 default_agent 的预装集合,而是按需从 Skill 库安装([#256](https://github.com/Prism-Shadow/penguin-harness/pull/256))。
+
+## 它做什么
+
+把任意语言的散文改写或润色成读起来像经过编辑的人类写作,处于书籍、报纸与百科的语域,而不是默认的 AI 输出。SKILL.md 的工作面刻意做得很小:七条起草原则(把每种模式都变化开、密度来自嵌在完整语法中的锚定事实、给可引用的句子设配额、一个有真材料的真作者、结构服务于内容、母语的惯用法与排版、验证并校准),统辖于一条元规则——瞄准经编辑散文的自然分布,而不是一张完美的评分表。详细的工具则以参考文件的形式提供,在诊断普查阶段读取而非在起草时读取:一份分三层的 25 条特征目录(句式模式、语篇形态,以及「人味化处理」自身留下的指纹)、面向中文、英文、日文、法文、德文与西班牙文的逐语言表层形式,以及支撑每条规则的实测案例研究。
+
+## 它是怎么得出来的
+
+五轮实证,在该 Skill 的 `reference/case-study.md` 中带计数记录在案:一次受控的「基线对改写」练习;产出语篇层特征的读者实地测试;一次十篇、五种语言、由独立编辑 Agent 进行的盲评交叉审阅(其中两篇双评以考察一致性,全部篇目依被接受的标记修订,最差的四篇重新盲评,平均评判从约 71 降到 30)——这一轮产出了「擦洗层」;以及此后两轮用户复核,抓出了接连出现的过度矫正(先是电报式压缩,然后是被削短的条件句与连接词的单调)。有一个反复出现的结果塑造了它的设计:对着一张长清单起草,产出的是「为了合规而生」的文本,因此规则住在诊断这一步,而起草的内核保持精简。
diff --git a/changelog/0.2.2/2026-08-11-prompt-injection-toggles.md b/changelog/0.2.2/2026-08-11-prompt-injection-toggles.md
index 6f64377b..03a47afb 100644
--- a/changelog/0.2.2/2026-08-11-prompt-injection-toggles.md
+++ b/changelog/0.2.2/2026-08-11-prompt-injection-toggles.md
@@ -1,6 +1,13 @@
# Skills, Vault and Schedules adopt Memory's prompt-injection pattern
-The three remaining prompt-borne subsystems now follow the shape Memory established (#257): the system-prompt template carries only a section placeholder, the section's wording is per-agent editable config, and an on/off switch decides whether the section is injected at all.
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)
+
+[中文版](2026-08-11-prompt-injection-toggles.zh.md)
+
+The three remaining prompt-borne subsystems now follow the shape Memory established ([#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)): the system-prompt template carries only a section placeholder, the section's wording is per-agent editable config, and an on/off switch decides whether the section is injected at all.
## Template and config
diff --git a/changelog/0.2.2/2026-08-11-prompt-injection-toggles.zh.md b/changelog/0.2.2/2026-08-11-prompt-injection-toggles.zh.md
new file mode 100644
index 00000000..0f1a8f35
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-prompt-injection-toggles.zh.md
@@ -0,0 +1,24 @@
+# Skills、Vault 与 Schedules 采用 Memory 的提示词注入模式
+
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `core`, `server`, `web`
+- **PR:** [#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)
+
+[English](2026-08-11-prompt-injection-toggles.md)
+
+其余三个借提示词生效的子系统现在遵循 Memory 确立的形态([#257](https://github.com/Prism-Shadow/penguin-harness/pull/257)):系统提示词模板只携带一个小节占位符,该小节的措辞是逐 Agent 可编辑的配置,而一个开关决定这一节是否被注入。
+
+## 模板与配置
+
+默认模板中硬编码的 `# Vault` 与 `# Skills` 小节,在原位置被替换为 `{{VAULT}}` 与 `{{SKILLS}}` 占位符,另有一个新的 `{{SCHEDULES}}` 占位符落在 `{{MEMORY}}` 之后。每一个都展开为其功能对应的提示词——`system_config.yaml` 中的 `vault.prompt`、`skills.prompt`、`schedules.prompt`,其中 Vault 与 Skills 默认沿用此前的内置措辞——并由 `vault.enabled` / `skills.enabled` / `schedules.enabled` 控制(默认开启)。原先的行内数据占位符在这些提示词内部继续有效:`{{VAULT_KEYS}}` 与 `{{SKILL_METADATA}}` 渲染 key 名列表与已安装 Skill 的条目行,而新的 `{{SCHEDULE_LIST}}` 渲染既有定时任务文件的清单(为空时附一句明确的「尚未定义定时任务」)。四个小节占位符在同一遍中展开,因此经由某一节到来的内容绝不可能把另一节的 token 偷渡进第二次展开。
+
+## 让模型学会管理定时任务
+
+新的默认 Schedules 提示词教模型用与 Memory 教它记笔记同样的方式来增删改查定时任务:通过普通的文件工具,不新增任何专用工具。它点明目录(`agent_state/schedule/`,一个任务一个 TOML),展示文件格式,并陈述字段规则——`prompt` 必填,`enabled` 默认为 false 因此一个生效的任务要显式设置它,ISO 8601 的 `start_at`/`end_at`,形如 `30m`/`12h`/`7d` 的 `period` 且下限为 5 分钟,`session_id` 与 `workspace`+`provider`+`model_id` 互斥——再加上卫生规则(创建前先看清单、就地编辑、删除已废弃的文件),以及服务端会在约 30 秒内对账该目录、无需任何注册步骤。
+
+## 标签页
+
+Skills、Vault 与 Schedules 三个标签页各自获得 Memory 标签页的那套控件:顶部一个启用开关(启用技能 / 启用密钥保险柜 / 启用定时任务,形态与 Memory 的开关一致——立即写入,不并入该标签页的保存),当模板缺少该小节占位符时的一条提示条(一键插入,或在旧模板上一键迁移——见[兼容说明](2026-08-11-backward-compatibility.zh.md)),以及底部一个可编辑的提示词小节,把该功能的内层占位符做成点击即插入的芯片。Vault 与 Schedules 保留它们仅所有者可编辑的约定。定时任务表格也不再在单元格中途折行:表头与紧凑列设为 nowrap,名称与目标截断并配悬停 title,而下次/上次触发时间在既有的横向滚动容器之上刻意堆叠为两行的单元格。
+
+这些开关只管辖提示词注入——这一点写在配置文档里,而不是作为标签页文案:小节关闭时,Vault 的取值仍会作为环境变量注入 shell 子进程(模型只是失去了 key 名列表),调度器仍会触发既有任务,而已安装的 Skill 仍可经 `[use_skills]` 显式使用。
diff --git a/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.md b/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.md
index d706ecce..504532dc 100644
--- a/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.md
+++ b/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.md
@@ -1,6 +1,13 @@
# Web App: copyable Session id, schedule-form pickers, saved toast, {{SHELL}} placeholder
-Four chat/settings tweaks (#245):
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)
+
+[中文版](2026-08-11-web-session-and-schedule-forms.zh.md)
+
+Four chat/settings tweaks ([#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)):
- **Copyable Session id.** The chat details card gains a Session id row under the model line; the id is a click-to-copy button (label flips to "Copied", optimistic so it works regardless of clipboard-permission context).
- **Schedule form selectors match the Project defaults dialog.** New-Session mode uses the same form-variant `ModelSelect` / `WorkspaceSelect` pickers instead of a native `<select>` plus a raw path input (leaving the project default selected still means "follow the default"); Bind-Session mode replaces the free-text Session-id input with a searchable dropdown fed by the agent's session list, matching on title or id.
diff --git a/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.zh.md b/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.zh.md
new file mode 100644
index 00000000..8677cb73
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-web-session-and-schedule-forms.zh.md
@@ -0,0 +1,15 @@
+# Web App:可复制的 Session id、定时任务表单拾取器、保存提示、{{SHELL}} 占位符
+
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `web`
+- **PR:** [#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)
+
+[English](2026-08-11-web-session-and-schedule-forms.md)
+
+四处聊天/设置的调整([#245](https://github.com/Prism-Shadow/penguin-harness/pull/245)):
+
+- **可复制的 Session id。** 聊天详情卡在模型那一行下方新增一行 Session id;该 id 是一个点击即复制的按钮(标签翻转为「已复制」,采用乐观反馈,因此无论剪贴板权限上下文如何都能工作)。
+- **定时任务表单的选择器与 Project 默认值对话框一致。** 「每次运行新建 Session」模式改用同样的 form 变体 `ModelSelect` / `WorkspaceSelect` 拾取器,而不再是原生 `<select>` 加一个裸路径输入框(保持选中 Project 默认值仍然意味着「跟随默认」);「绑定 Session」模式则把自由文本的 Session id 输入框换成一个可搜索的下拉框,数据来自该 Agent 的会话列表,按标题或 id 匹配。
+- **Project 新会话默认值的保存提示。** 保存该默认值区块会给出一个「已保存」toast——对话框保持打开,因此此前成功保存是无声的。
+- **恢复 `{{SHELL}}` 占位符。** Agent 的 Prompt 标签页的占位符列表显示 12 项,而默认系统提示词用了 13 个——`{{SHELL}}` 缺失,于是从这份点击插入列表重建 Environment 区块时会静默丢掉 shell 那一行。现已按提示词中的顺序补上,并配一个单元测试,从 core 真实的 `DEFAULT_SYSTEM_PROMPT` 推导出期望的 token,使该列表不会再次漂移。
diff --git a/changelog/0.2.2/2026-08-11-web-ui-polish.md b/changelog/0.2.2/2026-08-11-web-ui-polish.md
index 0db426ad..7c8ae2dd 100644
--- a/changelog/0.2.2/2026-08-11-web-ui-polish.md
+++ b/changelog/0.2.2/2026-08-11-web-ui-polish.md
@@ -1,9 +1,16 @@
# Web App: dismissible password banner, /model hint, agent list and tab order polish
-Five UI fixes from one review pass (#252, #253, #254, #255, #259):
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#252](https://github.com/Prism-Shadow/penguin-harness/pull/252), [#253](https://github.com/Prism-Shadow/penguin-harness/pull/253), [#254](https://github.com/Prism-Shadow/penguin-harness/pull/254), [#255](https://github.com/Prism-Shadow/penguin-harness/pull/255), [#259](https://github.com/Prism-Shadow/penguin-harness/pull/259)
-- **Dismissible initial-password banner (#254).** The top banner urging a change away from the seeded password gains a close X at its right edge — a flat glyph with no background fill, hover darkening only, matching the "Change now" link's colors. Dismissal is permanent per user: it is stored server-side in `ui_prefs` (`initialPasswordBannerDismissed`), so it holds across devices and browsers. The banner renders only after the preference is hydrated — a dismissed banner never flashes — and fails open to visible when the preference request errors.
-- **Locked-model chip hint and cursor (#252).** After a session locks its model, clicking the read-only model chip now toasts just 输入 /model 切换模型 / "Type /model to switch models" instead of the long parenthetical about new-session continuation, and the chip's hover cursor changes from the question-mark `cursor-help` to `cursor-pointer` — it is a clickable button, and this was the codebase's only `cursor-help`.
-- **Agent list settings button (#253).** The per-agent Settings button rendered a hand-rolled gear path that had drifted from the sidebar's canonical lucide gear and looked muddy at 13px, with an icon color one shade dimmer than its own label. The canonical gear now lives in the shared icon module, the sidebar imports it from there, and the button's icon inherits the label color like its New Chat neighbor.
-- **Toggle switch restyle (#259).** The shared slide switch no longer keeps a gray halo after a mouse click — the focus ring moves to `focus-visible` with an accent tint — and gets a proper edge: an inset hairline on the track, off-state grays retuned for the true-neutral dark palette (the old cool-tinted `gray-600` read dirty), a hairline on the knob so it survives the near-white neutral accent theme, and eased transitions. The knob's hairline is drawn as a border inside its own 16px box (an outer ring stacked on the track hairline along the near arc as one heavier line, which read as uneven distance), its offset drop shadow is gone, and the geometry is all integer pixels with the knob concentric to the track's end caps — a uniform 1px clearance to the outline on every side, in both states, verified by magnified screenshots at 1x and 2x in both themes. Component API and switch semantics unchanged; all five usage sites verified.
-- **Agent detail tab order and stat row (#255).** The detail tabs settle into the canonical order Overview, System Prompt, Runtime, Tools, Skills, Memory, Vault, Schedules (Memory moves from third place; the zh tab label Prompt becomes 系统提示词, en "System Prompt"), and the agent list's clickable stat icons mirror the same order between the session count and the updated-at time. The stat row also drops its per-item `min-w` reservation — short counts no longer leave lopsided holes — with the uniform flex gap widened from `gap-x-2.5` to `gap-x-4` so the row keeps breathing room.
+[中文版](2026-08-11-web-ui-polish.zh.md)
+
+Five UI fixes from one review pass ([#252](https://github.com/Prism-Shadow/penguin-harness/pull/252), [#253](https://github.com/Prism-Shadow/penguin-harness/pull/253), [#254](https://github.com/Prism-Shadow/penguin-harness/pull/254), [#255](https://github.com/Prism-Shadow/penguin-harness/pull/255), [#259](https://github.com/Prism-Shadow/penguin-harness/pull/259)):
+
+- **Dismissible initial-password banner ([#254](https://github.com/Prism-Shadow/penguin-harness/pull/254)).** The top banner urging a change away from the seeded password gains a close X at its right edge — a flat glyph with no background fill, hover darkening only, matching the "Change now" link's colors. Dismissal is permanent per user: it is stored server-side in `ui_prefs` (`initialPasswordBannerDismissed`), so it holds across devices and browsers. The banner renders only after the preference is hydrated — a dismissed banner never flashes — and fails open to visible when the preference request errors.
+- **Locked-model chip hint and cursor ([#252](https://github.com/Prism-Shadow/penguin-harness/pull/252)).** After a session locks its model, clicking the read-only model chip now toasts just 输入 /model 切换模型 / "Type /model to switch models" instead of the long parenthetical about new-session continuation, and the chip's hover cursor changes from the question-mark `cursor-help` to `cursor-pointer` — it is a clickable button, and this was the codebase's only `cursor-help`.
+- **Agent list settings button ([#253](https://github.com/Prism-Shadow/penguin-harness/pull/253)).** The per-agent Settings button rendered a hand-rolled gear path that had drifted from the sidebar's canonical lucide gear and looked muddy at 13px, with an icon color one shade dimmer than its own label. The canonical gear now lives in the shared icon module, the sidebar imports it from there, and the button's icon inherits the label color like its New Chat neighbor.
+- **Toggle switch restyle ([#259](https://github.com/Prism-Shadow/penguin-harness/pull/259)).** The shared slide switch no longer keeps a gray halo after a mouse click — the focus ring moves to `focus-visible` with an accent tint — and gets a proper edge: an inset hairline on the track, off-state grays retuned for the true-neutral dark palette (the old cool-tinted `gray-600` read dirty), a hairline on the knob so it survives the near-white neutral accent theme, and eased transitions. The knob's hairline is drawn as a border inside its own 16px box (an outer ring stacked on the track hairline along the near arc as one heavier line, which read as uneven distance), its offset drop shadow is gone, and the geometry is all integer pixels with the knob concentric to the track's end caps — a uniform 1px clearance to the outline on every side, in both states, verified by magnified screenshots at 1x and 2x in both themes. Component API and switch semantics unchanged; all five usage sites verified.
+- **Agent detail tab order and stat row ([#255](https://github.com/Prism-Shadow/penguin-harness/pull/255)).** The detail tabs settle into the canonical order Overview, System Prompt, Runtime, Tools, Skills, Memory, Vault, Schedules (Memory moves from third place; the zh tab label Prompt becomes 系统提示词, en "System Prompt"), and the agent list's clickable stat icons mirror the same order between the session count and the updated-at time. The stat row also drops its per-item `min-w` reservation — short counts no longer leave lopsided holes — with the uniform flex gap widened from `gap-x-2.5` to `gap-x-4` so the row keeps breathing room.
diff --git a/changelog/0.2.2/2026-08-11-web-ui-polish.zh.md b/changelog/0.2.2/2026-08-11-web-ui-polish.zh.md
new file mode 100644
index 00000000..3c55ee28
--- /dev/null
+++ b/changelog/0.2.2/2026-08-11-web-ui-polish.zh.md
@@ -0,0 +1,16 @@
+# Web App:可关闭的密码横幅、/model 提示、Agent 列表与标签顺序打磨
+
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `web`
+- **PR:** [#252](https://github.com/Prism-Shadow/penguin-harness/pull/252), [#253](https://github.com/Prism-Shadow/penguin-harness/pull/253), [#254](https://github.com/Prism-Shadow/penguin-harness/pull/254), [#255](https://github.com/Prism-Shadow/penguin-harness/pull/255), [#259](https://github.com/Prism-Shadow/penguin-harness/pull/259)
+
+[English](2026-08-11-web-ui-polish.md)
+
+一轮审查带出的五处界面修复([#252](https://github.com/Prism-Shadow/penguin-harness/pull/252)、[#253](https://github.com/Prism-Shadow/penguin-harness/pull/253)、[#254](https://github.com/Prism-Shadow/penguin-harness/pull/254)、[#255](https://github.com/Prism-Shadow/penguin-harness/pull/255)、[#259](https://github.com/Prism-Shadow/penguin-harness/pull/259)):
+
+- **可关闭的初始密码横幅([#254](https://github.com/Prism-Shadow/penguin-harness/pull/254))。** 那条催促用户改掉预置密码的顶部横幅在右缘新增一个关闭叉——一个不带背景填充的扁平字形,只在悬停时加深,配色与「立即修改」链接一致。关闭是逐用户永久生效的:它存放在服务端的 `ui_prefs` 中(`initialPasswordBannerDismissed`),因此跨设备、跨浏览器都成立。该横幅只在偏好完成水合之后才渲染——已关闭的横幅绝不会闪一下——而当偏好请求出错时则安全地回退为显示。
+- **锁定模型芯片的提示与光标([#252](https://github.com/Prism-Shadow/penguin-harness/pull/252))。** 会话锁定模型之后,点击那个只读模型芯片现在只提示「输入 /model 切换模型」,而不再是那段关于新会话延续的冗长括注;芯片的悬停光标也从问号形的 `cursor-help` 改为 `cursor-pointer`——它是一个可点击的按钮,而这也是整个代码库中唯一一处 `cursor-help`。
+- **Agent 列表的设置按钮([#253](https://github.com/Prism-Shadow/penguin-harness/pull/253))。** 逐 Agent 的设置按钮此前渲染的是一条手写的齿轮路径,它已经与侧边栏那个规范的 lucide 齿轮产生漂移,在 13px 下显得糊,而且图标颜色比它自己的标签还暗一档。规范的齿轮现在住在共享图标模块中,侧边栏从那里导入,而该按钮的图标像它旁边的「新建对话」一样继承标签颜色。
+- **开关控件重做样式([#259](https://github.com/Prism-Shadow/penguin-harness/pull/259))。** 共享的滑动开关在鼠标点击后不再残留灰色光晕——聚焦环改到 `focus-visible` 并带强调色调——并获得了像样的边缘:轨道上一条内嵌细线,关闭态的灰色为真正中性的深色调色板重新调过(旧的偏冷 `gray-600` 显脏),旋钮上一条细线使它在接近纯白的中性强调主题下仍能显形,以及带缓动的过渡。旋钮的细线画作它自己 16px 盒内的一条边框(此前是叠在轨道细线之上的一圈外环,在近弧处合成一条更粗的线,读起来像是间距不均),它那道偏移投影已去掉,而几何尺寸全部为整数像素、旋钮与轨道端帽同心——在两种状态下、四周对轮廓都是均匀的 1px 间隙,并已在两种主题下用 1x 与 2x 的放大截图逐一核实。组件 API 与开关语义未变;五处使用点全部验证过。
+- **Agent 详情的标签顺序与统计行([#255](https://github.com/Prism-Shadow/penguin-harness/pull/255))。** 详情标签定于规范顺序:Overview、System Prompt、Runtime、Tools、Skills、Memory、Vault、Schedules(Memory 从第三位移出;中文标签「Prompt」改为「系统提示词」,英文为 "System Prompt"),而 Agent 列表中可点击的统计图标在会话数与更新时间之间镜像同一顺序。该统计行还去掉了逐项的 `min-w` 预留——较短的计数不再留下参差的空洞——并把统一的 flex 间距从 `gap-x-2.5` 加宽到 `gap-x-4`,使该行保有呼吸空间。
diff --git a/changelog/0.2.2/README.md b/changelog/0.2.2/README.md
deleted file mode 100644
index 26c4d58e..00000000
--- a/changelog/0.2.2/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# Version 0.2.2
-
-Released on 2026-08-11.
-
-- [2026-08-11] Dependencies: workspace overrides force `@hono/node-server` ≥ 2.0.5 (GHSA-frvp-7c67-39w9 path traversal in `serve-static` on Windows; the vulnerable copy came transitively from `@modelcontextprotocol/node`, which pins `^1.19.9` with no fixed release yet) and `nanoid` ≥ 3.3.17 (infinite-loop high) — `pnpm audit` reports no known vulnerabilities after both (#264). ([details](2026-08-11-deps-hono-node-server-nanoid.md))
-
-- [2026-08-11] Skills: new manual-install library skill `humanizer` — rewrites prose in any language into book/newspaper/encyclopedia register; a seven-principle drafting core backed by a 25-tell three-layer diagnostic catalog, six-language cues and a five-round measured case study as reference files; Office Productivity group, `preinstall: false` (#256). ([details](2026-08-11-humanizer-skill.md))
-
-- [2026-08-11] Core + Web App: agent configs gain a dated **kernel version** — creation and restore stamp the defaults generation, a hash-pin guard test forces a dated bump on any defaults change, and an Update control beside "restore defaults" smart-merges newer defaults while keeping user-customized fields (reported by readable names; unknown generations conservatively kept), with outdated hints on the agent overview and list cards; the overview itself settles into ruled Kernel and Agent State sections — version values rendered prominent, snapshot import/export beside the State version, a click-to-copy state path, the active-session stat dropped (#263, #261, stacked on #257). ([details](2026-08-11-agent-kernel-version.md), [compat](2026-08-11-backward-compatibility.md))
-
-- [2026-08-11] Core + Web App: Skills, Vault and Schedules adopt Memory's injection pattern — the default template carries only `{{VAULT}}` / `{{SKILLS}}` / `{{SCHEDULES}}` section placeholders, each expanding to a per-agent editable prompt behind an enable switch on its tab; the new Schedules prompt teaches the model to manage schedule TOMLs with the ordinary file tools (`{{SCHEDULE_LIST}}` roster included), and legacy baked templates keep working, with one-click migration where the old default wording is intact (#257). ([details](2026-08-11-prompt-injection-toggles.md), [compat](2026-08-11-backward-compatibility.md))
-
-- [2026-08-11] Web App: UI polish — the initial-password banner gains a flat dismiss X persisted per user, the locked-model chip's hint shrinks to "type /model to switch models" with a pointer cursor, the agent list's Settings button adopts the canonical sidebar gear at label color, and the agent detail tabs settle into Overview / System Prompt / Runtime / Tools / Skills / Memory / Vault / Schedules with the list's stat icons mirroring that order at uniform, wider spacing, and the shared toggle switch drops its lingering post-click focus halo for a refined track/knob treatment (#252, #253, #254, #255, #259). ([details](2026-08-11-web-ui-polish.md))
-
-- [2026-08-11] Web App: the chat details card gains a click-to-copy Session id, the schedule form adopts the Project-defaults model/workspace pickers and a searchable session dropdown, saving Project new-chat defaults toasts, and the missing `{{SHELL}}` placeholder is restored to the prompt-placeholder list (drift-proofed by a test against the real default prompt). ([details](2026-08-11-web-session-and-schedule-forms.md))
-
-- [2026-08-11] Web App: leaving a still-running conversation (switch or "new conversation") no longer fires a phantom completion that reloaded the session/Agent lists — the reload trigger is now guarded by session identity, removing an occasional app-wide flicker right after the click (#242). ([details](2026-08-11-chat-phantom-idle-reload.md))
-
-- [2026-08-10] Core: MCP Server support lands on the reserved `tools.mcpServers` seam — official TypeScript SDK v2, three transports (stdio / Streamable HTTP / legacy SSE), tools exposed as `mcp__<server>__<tool>` under the unchanged execution and approval contract, `readOnlyHint` → read-only permission, vault kept out of server processes, unreachable servers skipped with a warning; the agent settings page gains form-based MCP Server management with a connectivity test; session creation no longer blocks on MCP connects — the wait streams as `mcp_connect_begin/end` events (unified chat step row shared with compaction, CLI lines, a Trace-timeline span) and the toolset moves from `session_meta.tools` into a new `tool_list_ready` event (**breaking**: pre-split Traces' embedded tool record is no longer displayed) (#242; closes #239, #229). ([details](2026-08-10-mcp-servers.md))
-
-- [2026-08-10] Web App: the chat header statistics move to the far right and double as the details-card trigger (numbers when wide, info icon when narrow, a live running-services count beside the elapsed time), the card gains a copyable Session id and lists the session's background processes with a working Stop (new `/processes` endpoints; deletion now ends a conversation's processes, idle eviction spares runtimes with live ones) and names the trace file path, typed-but-unsent new-chat text parks as sendable draft conversations in a sidebar Drafts group, docked panel swaps retract before expanding, the seeded admin password is stored in the data root and re-printed framed on every start until changed (CLI attach included), conversations open pinned to the bottom under the notice banner, the scheduled-task form's model/workspace/session pickers match the defaults dialog (searchable session dropdown), saving Project defaults toasts "已保存", copy feedback is unified onto the button, the `{{SHELL}}` placeholder returns to the prompt tab, benchmark case materials open expanded, and the locked model chip points at `/model`. ([details](2026-08-10-web-app.md))
-
-- [2026-08-10] Web App: chat UX batch — the seeded admin password is persisted and re-printed at every server start until changed, header stats merge into a details card with a live background-process list (kill controls; processes die with the conversation and block idle eviction) and a trace-file deep link, typed new-chat text parks as sidebar draft conversations, docked panels retract before swapping, the stream stays bottom-pinned across resizes, and mid-run sends survive the steering completion race with the per-turn thinking level carried on queued follow-ups (#241, #227, #246). ([details](2026-08-10-web-chat-ux.md))
-
-- [2026-08-07] Core: default `max_turns` becomes -1 (unlimited, SDK fallback aligned), request caps and the compaction threshold derive from the model's context window (vLLM-class small windows work; #218), the LLM retry ladder slows to a 2s base with "everything except auth retries" classification, and Trace appends are serialized with best-effort tolerant reads for damaged files (#215); each record now lands via a single `write(2)` and resumption heals crash-torn tails, so a big record can no longer be split at the 512 KiB chunk boundary (#249). ([details](2026-08-07-core-runtime.md))
-
-- [2026-08-07] Memory: an agent keeps long-term notes between Sessions under `agent_state/memory/` — a user scope (`memory/user/`, read by every Session) plus one directory per Workspace, each with its own `MEMORY.md` index; only the indexes enter the context (capped at 200 lines / 25,000 chars per scope), bodies read on demand. A temporary Workspace gets the user scope only. The template's `{{MEMORY}}` placeholder expands to the agent's own `memory.prompt` (+ `memory.workspace_prompt` in a persistent Workspace), both editable on the Memory tab; a pre-Memory template injects nothing until its one-click placeholder insert. Agent settings gain a Memory tab: memories grouped by scope with view / delete (index lines pruned) / edit-via-chat. ([details](2026-08-07-memory.md))
-
-- [2026-08-06] Desktop app: penguin brand icons on every platform, task-completion system notifications (renderer-only, desktop sessions), explicit single-user mode (user/member management rejected with `desktop_single_user` and hidden), and a bundled `penguin` CLI on PATH (automatic on deb; menu-driven install elsewhere, no system Node needed). ([details](2026-08-06-desktop-app.md))
-
-- [2026-08-06] Admin proxy options: a "Proxy options" dialog (explicit Save) with independent "application" and "agent environment" switches sharing one proxy address (empty = follow the system proxy; no environment variable needed), loopback always exempt, live toggle, OS-proxy injection on desktop. ([details](2026-08-06-system-proxy-switch.md))
-
-- [2026-08-06] Web App: directory browsing no longer compounds path segments under repeated clicks (listings bound to their own directory, sequenced picker requests, localized `dir_not_found`), saving Project new-chat defaults resets the new-conversation draft (typed text survives, open drafts reseed live), the avatar update dot gains a tooltip and reaches the collapsed rail, the model catalog opens with only DeepSeek expanded and remembers the user's toggles per Project, the model dialog shows the protocol path in the base URL field and unified vendor-protocol hints, and the auto-created session workspace is consistently named 临时工作区 / "temporary workspace" (penguin-sdk skill v19). ([details](2026-08-06-web-app.md))
-
-- [2026-08-06] Landing homepage leads with the desktop app: platform-aware download CTA in the hero, closing CTA repointed, CLI one-liner install moved below the fold to the quick start; `/download` page unchanged. ([details](2026-08-06-landing-desktop-first.md))
-
-- [2026-08-06] Models: Thinking Machines Lab's Inkling joins on OpenRouter and Fireworks AI, Fireworks AI gains DeepSeek V4 Flash 0731, and the OpenRouter + SiliconFlow GLM-5.1 gateway listings are delisted (Z.AI direct stays; existing Project configs unaffected); OpenRouter prices refreshed from the models API on 2026-08-07 (Inkling cached input $0.17, four drifted rows corrected); agenthub-models skill v11. ([details](2026-08-06-model-catalog-inkling-dsv4-flash-0731.md))
-
-- [2026-08-06] Release tooling: repo versions realigned with the shipped 0.2.1, and the release workflow now refuses a tag push whose version does not match `package.json` (the drift that made every dev build nag about updates); the bump is documented as a release-prep step. ([details](2026-08-06-release-version-guard.md))
-
-- [2026-08-03] Web App: at medium desktop widths the chat toolbar's Agents/Workspace actions stay icon-only until the large-screen breakpoint, so they no longer overlap the running indicator and live statistics (#151). ([details](2026-08-03-chat-toolbar-layout.md))
-
diff --git a/changelog/README.md b/changelog/README.md
index 01029aa1..0ee0d707 100644
--- a/changelog/README.md
+++ b/changelog/README.md
@@ -1,13 +1,96 @@
# Changelog Details
-The root [../CHANGELOG.md](../CHANGELOG.md) keeps one brief line per release. Work in progress lives in [`unreleased/`](unreleased/); each shipped release owns a numbered folder here:
+[中文版](README.zh.md)
-- `<folder>/README.md` — the summary: one brief line per change, each linking its detail file, e.g. `- [YYYY-MM-DD] Brief description. ([details](YYYY-MM-DD-short-slug.md))`
-- `<folder>/YYYY-MM-DD-short-slug.md` — one detail file per entry, named by the entry date: an H1 title, then what changed and why, using `##` sections once the entry covers more than one thing.
-- `<version>/RELEASE.md` — the announcement published verbatim as the GitHub Release body: a lead sentence, then `## Install`, `## Highlights`, `## Notable in this release`, `## Requirements`, and a closing link to this folder. Only a numbered folder has one; it is written at release, when the version is finally known.
-- Entries are grouped by the surface they change — Models, Web App, landing site, skills, docs, tooling — rather than one file per commit. A related change extends the existing file and its summary line instead of opening a new one.
-- A batch that carries backward-compatibility handling collects it in one `YYYY-MM-DD-backward-compatibility.md`: what old shape is tolerated, how far it reaches, whether the user must act, and when it can be removed. The surface entries reference that file instead of re-explaining it. A batch with no such handling has no such file.
-- Unreleased changes go in `unreleased/`, never in a numbered folder: the next version number is not knowable while the work is being written — the batch that accumulated as `0.2.0/` shipped as 0.1.1 — so a guessed number only creates a rename to get wrong later. At release, rename `unreleased/` to the version actually shipped, swap its `# Unreleased` heading for `# Version X.Y.Z` plus a `Released on <date>.` line, write `RELEASE.md`, add the release line to the root file, and create a fresh empty `unreleased/`. Released folders are frozen.
-- `RELEASE.md` must be **committed before the tag is created**: the release workflow reads it from the tag's own checkout, so a file added afterwards is never published. When it is missing, the workflow falls back to notes GitHub generates from the merged PRs rather than publishing an empty body.
+Release history lives in two levels:
-Written in English. History starts after the v0.0.1 release (2026-07-19); earlier changes are not backfilled.
+1. [`../CHANGELOG.md`](../CHANGELOG.md) — one line per release, linking its folder.
+2. `<version>/YYYY-MM-DD-<slug>.md` — one detail file per change, recording what the change did.
+
+There is deliberately **no per-release index file**. An index is a single file every PR has to touch, which turns an ordinary batch into a merge conflict; a folder listing plus `grep` answers the same questions without one. See [Finding things](#finding-things).
+
+Everything that has not shipped goes into `unreleased/`, which is named for its state rather than a number because the version is not decided until release. Never create a numbered folder for unshipped work and never invent the next version number. At release preparation, `unreleased/` is renamed to the version actually shipped, `RELEASE.md` is written, the release line is added to the root file, and the next change recreates `unreleased/`.
+
+`<version>/RELEASE.md` is the announcement published verbatim as the GitHub Release body: a lead sentence, then `## Install`, `## Highlights`, `## Notable in this release`, `## Requirements`, and a closing link to the folder. Only a numbered folder has one; it is written at release, when the version is finally known, and it must be **committed before the tag is created** — the release workflow reads it from the tag's own checkout, so a file added afterwards is never published. When it is missing, the workflow falls back to notes GitHub generates from the merged PRs. It is English-only: it is a publishing artifact, not a changelog record.
+
+Released folders are frozen.
+
+## Detail file format
+
+Copy this template:
+
+```markdown
+# <Title: name the change, not the PR>
+
+- **Date:** YYYY-MM-DD
+- **Type:** feature
+- **Scope:** `module`, `module`
+- **PR:** [#N](https://github.com/Prism-Shadow/penguin-harness/pull/N)
+- **Issue:** [#N](https://github.com/Prism-Shadow/penguin-harness/issues/N)
+- **Breaking:** yes — <what breaks, in one line>
+
+[中文版](<name>.zh.md)
+
+<lead paragraph: what the change did>
+
+## <bespoke section>
+
+- ...
+```
+
+The metadata block sits directly under the H1, one field per bullet, always in the order above, so a reader and a `grep` find each field in the same place.
+
+| Field | Required | Value |
+| --- | --- | --- |
+| `Date` | always | The entry date, matching the filename prefix. |
+| `Type` | always | Exactly one of `feature` (new user-facing capability), `fix` (defect correction), `refactor` (restructuring with no capability change), `process` (tooling, docs, skills, CI, release plumbing). |
+| `Scope` | always | 1–5 code areas, backticked, named as the tree names them (`core`, `server`, `web`, `cli`, `desktop`, `landing`, `docs`, `skills`, `tooling`, `ci`, `model-catalog`, `trace-index`, …). |
+| `PR` | when one exists | Full link to the PR(s) that shipped this change. A bare `#N` does not render as a link in a Markdown file, so always write the URL — in the body too. A PR mentioned in the prose for context is a cross-reference, not a shipping PR, and stays inline. |
+| `Issue` | when one exists | Full link to the issue(s) the change closes or answers. **Check which one a number is before writing it** — this repository's bug reports and its PRs share one numbering space, and a report filed as an issue belongs here, not under `PR`. Multiple links are comma-separated. |
+| `Breaking` | only when breaking | `yes — <one line>`. Omit the field entirely otherwise, so `grep -rl 'Breaking:' changelog/` lists exactly the breaking changes. |
+
+Omit a field that does not apply rather than writing a placeholder. A change with no PR or issue (pre-convention entries, or work landed outside a PR) simply has no such line.
+
+A cross-repository reference is written as a full link too, and named: `agenthub [#162](https://github.com/Prism-Shadow/agenthub/pull/162)`. A bare `#162` in the prose reads as this repository's #162, which is a different change entirely.
+
+### Body
+
+An entry records **what was done**, in past tense. It opens with a lead paragraph and continues in bespoke sections named for their content — reuse an existing name (`## Details`, `## Compatibility`) before inventing one. An entry whose `Breaking` field is set carries a `## Compatibility` section stating what breaks and the migration step: the instruction, not an argument for why the rest is safe.
+
+**Reasoning does not go on disk.** No `## Why`, `## Problem`, `## Decision`, `## Alternatives considered`, `## Verification`, `## Risks`. The thinking still has to happen — it is reported in the conversation and written into the PR description, which stays attached to the diff it describes. An agent that wants it pulls the PR description, `git blame`, or `git log`; those carry their own timestamp, so nothing has to be re-checked for staleness first.
+
+**Do not describe the current state of the codebase.** "`X` is not exported from `Y`", "the client folder now holds `Z`" — these read as fact, drift silently as the code moves, and cost every later reader a verification they did not ask for. Write what the change did at the time, not what the repository is today.
+
+Cross-reference other entries with relative links, e.g. `[backward compatibility](2026-07-24-backward-compatibility.md)` — from a Chinese file, link the Chinese counterpart so a reader stays in one language. Relative links survive the folder rename at release time and can be checked mechanically.
+
+## Chinese counterpart
+
+Every entry ships in both languages: `<name>.md` in English and `<name>.zh.md` in Chinese, mirroring it section for section. A change is not complete until both exist — write the English file first, then the counterpart, in the same PR.
+
+What stays in English, verbatim, so one `grep` works across both languages:
+
+- The metadata field names and their values — `- **Type:** feature`, the `Scope` identifiers, the `Date`, and the links. Only the `Breaking` reason is prose, so only it is translated.
+- Code identifiers, model ids, parameter names, error classes, and file paths.
+
+What gets translated: all prose, and the section headings. Use these renderings for the standard headings:
+
+| English | 中文 |
+| --- | --- |
+| `## Details` | `## 细节` |
+| `## Compatibility` | `## 兼容性` |
+
+Bespoke headings are translated naturally, keeping the same order and count as the English file. Each file links its counterpart on the line directly below the metadata block: `[中文版](<name>.zh.md)` in the English file, `[English](<name>.md)` in the Chinese one.
+
+## Finding things
+
+| Question | Query |
+| --- | --- |
+| What shipped in a release? | `ls changelog/<version>/` |
+| What has ever broken compatibility? | `grep -rl 'Breaking:' changelog/` |
+| Every entry touching the model catalog | `grep -rl 'Scope:.*model-catalog' changelog/` |
+| Only bug fixes | `grep -rl 'Type:\*\* fix' changelog/` |
+| Which PR shipped an entry | `grep 'PR:' changelog/<version>/<entry>.md` |
+| Which entries a PR appears in | `grep -rl 'pull/263' changelog/` |
+| Entries answering a reported issue | `grep -rl 'Issue:' changelog/` |
+
+Written in English first, mirrored in Chinese. History starts after the v0.0.1 release (2026-07-19); earlier changes are not backfilled.
diff --git a/changelog/README.zh.md b/changelog/README.zh.md
new file mode 100644
index 00000000..6440945d
--- /dev/null
+++ b/changelog/README.zh.md
@@ -0,0 +1,96 @@
+# Changelog 细则
+
+[English](README.md)
+
+发布历史分两层:
+
+1. [`../CHANGELOG.md`](../CHANGELOG.md)——每个版本一行,链接到它的目录。
+2. `<version>/YYYY-MM-DD-<slug>.md`——每项改动一个详情文件,记录该改动做了什么。
+
+这里**刻意不设逐版本的索引文件**。索引是一个每个 PR 都得改的单一文件,会把一次普通的批次变成一次合并冲突;而目录列表加上 `grep` 无需索引即可回答同样的问题。见[如何查找](#如何查找)。
+
+尚未发布的一切都放进 `unreleased/`,它以状态而非编号命名,因为版本号在发布之前并不确定。绝不为未发布的工作创建带编号的目录,也绝不臆造下一个版本号。在发布准备时,把 `unreleased/` 改名为实际发布的版本,写好 `RELEASE.md`,向根文件添加该版本一行,而下一次改动会重新创建 `unreleased/`。
+
+`<version>/RELEASE.md` 是作为 GitHub Release 正文逐字发布的公告:一句导语,然后是 `## Install`、`## Highlights`、`## Notable in this release`、`## Requirements`,以及结尾指向该目录的链接。只有带编号的目录才有它;它在发布时、版本号终于确定之后才写,并且**必须在创建 tag 之前提交**——发布工作流是从该 tag 自己的检出中读取它的,因此事后添加的文件永远不会被发布。缺失时,工作流会退回到 GitHub 依已合并 PR 生成的说明。它只有英文:那是一份发布产物,而不是 changelog 记录。
+
+已发布的目录是冻结的。
+
+## 详情文件格式
+
+照此模板:
+
+```markdown
+# <标题:命名这次改动,而不是这个 PR>
+
+- **Date:** YYYY-MM-DD
+- **Type:** feature
+- **Scope:** `module`, `module`
+- **PR:** [#N](https://github.com/Prism-Shadow/penguin-harness/pull/N)
+- **Issue:** [#N](https://github.com/Prism-Shadow/penguin-harness/issues/N)
+- **Breaking:** yes — <一行说明什么被破坏了>
+
+[English](<name>.md)
+
+<导语段:这次改动做了什么>
+
+## <自定义小节>
+
+- ...
+```
+
+元数据块紧接在 H1 之下,每个字段一条 bullet,顺序恒如上,因此读者与 `grep` 都能在同一位置找到每个字段。
+
+| 字段 | 何时必需 | 取值 |
+| --- | --- | --- |
+| `Date` | 总是 | 该条目的日期,与文件名前缀一致。 |
+| `Type` | 总是 | 恰好是以下之一:`feature`(新的、用户可见的能力)、`fix`(缺陷修复)、`refactor`(不改变能力的重构)、`process`(工具链、文档、Skill、CI、发布管道)。 |
+| `Scope` | 总是 | 1–5 个代码区域,用反引号包裹,按代码树中的叫法命名(`core`、`server`、`web`、`cli`、`desktop`、`landing`、`docs`、`skills`、`tooling`、`ci`、`model-catalog`、`trace-index` 等)。 |
+| `PR` | 存在时 | 指向承载该改动的 PR 的完整链接。裸的 `#N` 在 Markdown 文件中不会渲染成链接,因此务必写出 URL——正文中也一样。为提供背景而在正文中提到的 PR 属于交叉引用,而非承载该改动的 PR,保持内联即可。 |
+| `Issue` | 存在时 | 指向该改动关闭或回应的 issue 的完整链接。**写之前先确认某个号码到底是哪一种**——本仓库的缺陷报告与 PR 共用同一套编号空间,而以 issue 形式提交的报告属于这里,不属于 `PR`。多个链接以逗号分隔。 |
+| `Breaking` | 仅当破坏性 | `yes — <一行说明>`。其他情况整条省略,使 `grep -rl 'Breaking:' changelog/` 恰好列出所有破坏性改动。 |
+
+不适用的字段应整条省略,而不是写占位符。没有 PR 或 issue 的改动(约定确立之前的条目,或在 PR 之外落地的工作)就是没有那一行。
+
+跨仓库的引用同样写成完整链接,并点名仓库:`agenthub [#162](https://github.com/Prism-Shadow/agenthub/pull/162)`。正文里一个裸的 `#162` 会被读作本仓库的 #162,那是完全不同的一次改动。
+
+### 正文
+
+条目记录的是**做了什么**,用过去时。它以一个导语段开场,随后是按内容命名的自定义小节——优先复用已有名称(`## 细节`、`## 兼容性`),再考虑发明新的。凡 `Breaking` 字段被设置的条目,都带一节 `## 兼容性`,说明什么被破坏以及迁移步骤:给出指令,而不是论证其余部分为何安全。
+
+**推理不落盘。** 不要 `## 为什么`、`## 问题`、`## 决策`、`## 备选方案`、`## 验证`、`## 风险`。思考仍然必须发生——它在对话中汇报,并写进 PR 描述,而 PR 描述始终附着于它所描述的那份 diff。需要它的 Agent 会去拉 PR 描述、`git blame` 或 `git log`;那些都自带时间戳,因此无需先核实是否已经过时。
+
+**不要描述代码库的当前状态。** 「`X` 未从 `Y` 导出」「客户端目录现在放着 `Z`」——这类句子读起来像事实,会随代码移动而悄然失真,并让此后每一位读者付出他们没要求过的一次核实。写这次改动在当时做了什么,而不是仓库今天是什么样。
+
+用相对链接交叉引用其他条目,例如 `[向后兼容](2026-07-24-backward-compatibility.zh.md)`——从中文文件出发时链接中文对照本,使读者停留在同一种语言里。相对链接能挺过发布时的目录改名,也可以机械校验。
+
+## 中文对照
+
+每个条目都以两种语言提供:英文的 `<name>.md` 与中文的 `<name>.zh.md`,逐节对应。两者齐备才算完成——先写英文文件,再写对照本,同一个 PR 内完成。
+
+以下内容保持英文原样,使一次 `grep` 能跨两种语言生效:
+
+- 元数据的字段名及其取值——`- **Type:** feature`、`Scope` 中的标识符、`Date`,以及各链接。只有 `Breaking` 的原因是散文,因此只有它被翻译。
+- 代码标识符、模型 id、参数名、错误类与文件路径。
+
+需要翻译的:全部散文,以及小节标题。标准标题采用如下译法:
+
+| English | 中文 |
+| --- | --- |
+| `## Details` | `## 细节` |
+| `## Compatibility` | `## 兼容性` |
+
+自定义标题自然翻译,并保持与英文文件相同的顺序与数量。每个文件在元数据块正下方那一行链接它的对照本:英文文件中写 `[中文版](<name>.zh.md)`,中文文件中写 `[English](<name>.md)`。
+
+## 如何查找
+
+| 问题 | 查询 |
+| --- | --- |
+| 某个版本发布了什么? | `ls changelog/<version>/` |
+| 历史上哪些改动破坏过兼容? | `grep -rl 'Breaking:' changelog/` |
+| 所有涉及模型目录的条目 | `grep -rl 'Scope:.*model-catalog' changelog/` |
+| 只看缺陷修复 | `grep -rl 'Type:\*\* fix' changelog/` |
+| 某个条目由哪个 PR 承载 | `grep 'PR:' changelog/<version>/<entry>.md` |
+| 某个 PR 出现在哪些条目中 | `grep -rl 'pull/263' changelog/` |
+| 回应了已报告 issue 的条目 | `grep -rl 'Issue:' changelog/` |
+
+先写英文,再镜像为中文。历史从 v0.0.1 发布(2026-07-19)之后开始;更早的改动不做回填。
diff --git a/changelog/unreleased/2026-08-11-cli-model-remove.md b/changelog/unreleased/2026-08-11-cli-model-remove.md
index 8a481877..9b625361 100644
--- a/changelog/unreleased/2026-08-11-cli-model-remove.md
+++ b/changelog/unreleased/2026-08-11-cli-model-remove.md
@@ -1,5 +1,12 @@
# CLI: `penguin config model remove` closes the model CRUD gap
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `cli`, `core`, `docs`
+- **PR:** [#273](https://github.com/Prism-Shadow/penguin-harness/pull/273)
+
+[中文版](2026-08-11-cli-model-remove.zh.md)
+
`penguin config model` could add an entry, list entries and point the default / vision settings at one, but never delete one — while its sibling `config vault` has had `remove` all along. Dropping a stale model, or a credential inlined on it, meant reaching for the Web App's models page or hand-editing `.project_config.toml`, which that file's own contract rules out: it is written with mode 0600 and read/written only through the system interfaces.
- `penguin config model remove --model-id <id> --provider <group>` deletes a model entry along with the credential stored inline on it. Both halves of the reference are required and matched exactly, so the same upstream id under another provider group is left alone — the same no-guessing rule the other `model` subcommands follow, here guarding a delete rather than a credential write. A pair that is not in the config is reported on stderr with a non-zero exit code, mirroring `vault remove`.
diff --git a/changelog/unreleased/2026-08-11-cli-model-remove.zh.md b/changelog/unreleased/2026-08-11-cli-model-remove.zh.md
new file mode 100644
index 00000000..1845ddec
--- /dev/null
+++ b/changelog/unreleased/2026-08-11-cli-model-remove.zh.md
@@ -0,0 +1,14 @@
+# CLI:`penguin config model remove` 补齐模型 CRUD 缺口
+
+- **Date:** 2026-08-11
+- **Type:** feature
+- **Scope:** `cli`, `core`, `docs`
+- **PR:** [#273](https://github.com/Prism-Shadow/penguin-harness/pull/273)
+
+[English](2026-08-11-cli-model-remove.md)
+
+`penguin config model` 能新增条目、列出条目,也能把默认模型 / 视觉模型指向某个条目,唯独不能删除——而同级的 `config vault` 一直都有 `remove`。想删掉一个陈旧模型、或删掉内联在它上面的凭证,就只能去 Web App 的模型页,或者手工编辑 `.project_config.toml`,而后者恰恰被该文件自身的约定排除在外:它以 0600 权限写入,只允许经由系统接口读写。
+
+- `penguin config model remove --model-id <id> --provider <group>` 删除一个模型条目,连同内联存储在它上面的凭证一并删除。引用的两个部分都必须提供且精确匹配,因此另一个 Provider 分组下同名的上游 id 不会被波及——这与其他 `model` 子命令遵循的「不做猜测」规则一致,只是这里守护的是删除而非凭证写入。配置中不存在的组合会在 stderr 上报告并以非零状态码退出,与 `vault remove` 保持一致。
+- 当 `default_model` / `vision_model` 指向的正是被删除的条目时,这两项会被清空,与模型页删除时的既有行为一致。指针若继续指向一个已不存在的模型,下一次 `createSession` 会直接失败,因此确认信息会带上删除后生效的默认模型;如果这次删除同时导致视觉模型被清空,也会一并说明。
+- 新增 core 的 `removeModel(root, projectId, ref)`,与 `removeVaultEntry` 一样幂等:不存在的组合不算错误、也不写入任何内容,是否需要提示交由调用方决定。
diff --git a/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.md b/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.md
index 134f3ef6..4820e00d 100644
--- a/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.md
+++ b/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.md
@@ -1,5 +1,12 @@
# Trace index: mtime gate catches compaction-rotated shards in non-newest date dirs
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `server`, `trace-index`
+- **PR:** [#271](https://github.com/Prism-Shadow/penguin-harness/pull/271)
+
+[中文版](2026-08-11-trace-index-compaction-rotate.zh.md)
+
## The bug
Context compaction calls `TraceWriter.rotate()` to split the Trace into a new shard
diff --git a/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.zh.md b/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.zh.md
new file mode 100644
index 00000000..873fc0b1
--- /dev/null
+++ b/changelog/unreleased/2026-08-11-trace-index-compaction-rotate.zh.md
@@ -0,0 +1,24 @@
+# Trace 索引:mtime 闸门捕获落在非最新日期目录中的压缩轮转分片
+
+- **Date:** 2026-08-11
+- **Type:** fix
+- **Scope:** `server`, `trace-index`
+- **PR:** [#271](https://github.com/Prism-Shadow/penguin-harness/pull/271)
+
+[English](2026-08-11-trace-index-compaction-rotate.md)
+
+## 缺陷
+
+上下文压缩会调用 `TraceWriter.rotate()` 把 Trace 切分为新的分片(`_002`)。新文件写入的是该 Session **最初**的日期目录(Writer 的 `dateDir` 在构造时即固定、此后不再改变),而该目录可能比磁盘上最新的日期目录更旧。
+
+`TraceIndexService` 的 mtime 闸门为优化热路径,在确认根目录 mtime 未变之后,**只**对最新的日期目录做 stat 检查。注释中假定「实践中总是最新的那个(Writer 按当前本地日期命名目录)」。压缩的 `rotate()` 打破了这个假设:新分片落在一个更旧的目录里,而闸门从不检查该目录的 mtime,于是索引永远不会登记它。
+
+`locateAll()` 只在索引对某个 Session 返回**零**行时才强制对账;由于 `_001` 已被索引(`rows.length = 1`),强制路径永远不会触发。结果是:`GET /messages` 只返回到 `compaction_end` 为止的消息,界面停留在「压缩完成」的横幅上。该分片会一直缺失,直到有别的事情为这个 Agent 触动了闸门——次日的第一个 Session(新的日期目录会改变根目录 mtime)、最新目录中出现任何新分片、一次导入或 Session 删除,或者一次强制遍历——因为闸门一旦真的去看,差异循环对被 rotate 触碰过的目录的跳过判定就会失败。实践中这把窗口限制在了午夜,而不是下一次重启。
+
+## 修复
+
+闸门现在对**每一个已知的日期目录**做 stat,而不再只看最新的那个。最新目录仍然被最先 stat,因此常见情况(今天的目录中出现新分片)依旧一次 stat 即可确定;其余目录并发 stat,只用于判定 rotate 这种情况。该做法仍然不需要 readdir,且树未变化时的快速返回路径依然有效。
+
+这里显式做出的权衡是:安静状态下的热路径不再是固定的两次 stat,而是一次根目录 stat 加上每个日期目录一次 stat;而 Agent 每运行一个日历日就会创建一个日期目录,且没有清理机制——所以 N 会随 Agent 的生命周期增长,而不是停留在「屈指可数」。这些 stat 并发执行,而在多个 Agent 或子 Agent 子节点上扇出的调用方会成倍放大它。这也取代了 `changelog/0.2.1/2026-08-04-traces-page-scaling.md` 中对热路径的描述(「热路径是两次 stat——对 traces 根目录和最新日期目录各做一次 mtime 闸门检查」),那份已冻结的条目至今仍是这么写的。
+
+仍有两个盲区,二者都源于按目录 mtime 而非文件 mtime 来把关:**原地追加**根本不会改变任何目录的 mtime(只有创建或删除目录项才会),而这正是被恢复的 Session 所做的事——core 会固定分片与日期目录,于是本次运行只是让既有文件变大,它已记录的 `size_bytes` 随之失效;以及**回填时间戳的写入**,即外部进程修改文件后又把其所在目录的 mtime 重置为缓存中的值。`locateAll()` 的强制重试只在整个 Session 未命中(索引行数为零)时触发,因此对于已有分片被索引的 Session,这两种情况都不在覆盖范围内:它会一直陈旧下去,直到出现一次无关的强制对账、一次显式的强制重建,或者一次重启。
diff --git a/changelog/unreleased/2026-08-14-macos-app-icon-size.md b/changelog/unreleased/2026-08-14-macos-app-icon-size.md
index d7358329..ea6b5ffd 100644
--- a/changelog/unreleased/2026-08-14-macos-app-icon-size.md
+++ b/changelog/unreleased/2026-08-14-macos-app-icon-size.md
@@ -1,5 +1,12 @@
# Match the macOS app icon size
+- **Date:** 2026-08-14
+- **Type:** fix
+- **Scope:** `desktop`
+- **PR:** [#281](https://github.com/Prism-Shadow/penguin-harness/pull/281)
+
+[中文版](2026-08-14-macos-app-icon-size.zh.md)
+
PenguinHarness now uses a dedicated macOS icon master with the brand artwork centred inside the platform's safe area, matching the visual size of neighbouring apps in the Dock and Launchpad.
The Windows icon master and Linux icon set remain unchanged.
diff --git a/changelog/unreleased/2026-08-14-macos-app-icon-size.zh.md b/changelog/unreleased/2026-08-14-macos-app-icon-size.zh.md
new file mode 100644
index 00000000..8abfd2b0
--- /dev/null
+++ b/changelog/unreleased/2026-08-14-macos-app-icon-size.zh.md
@@ -0,0 +1,12 @@
+# 校正 macOS 应用图标尺寸
+
+- **Date:** 2026-08-14
+- **Type:** fix
+- **Scope:** `desktop`
+- **PR:** [#281](https://github.com/Prism-Shadow/penguin-harness/pull/281)
+
+[English](2026-08-14-macos-app-icon-size.md)
+
+PenguinHarness 现在使用专门的 macOS 图标母版,品牌图形居中放置于该平台的安全区内,在 Dock 与 Launchpad 中与相邻应用的视觉尺寸一致。
+
+Windows 图标母版与 Linux 图标集保持不变。
diff --git a/changelog/unreleased/2026-08-14-model-group-protocol.md b/changelog/unreleased/2026-08-14-model-group-protocol.md
index b8b5ca06..fc21fa5d 100644
--- a/changelog/unreleased/2026-08-14-model-group-protocol.md
+++ b/changelog/unreleased/2026-08-14-model-group-protocol.md
@@ -1,5 +1,12 @@
# Models: use the OpenAI-compatible client when moving to Custom
+- **Date:** 2026-08-14
+- **Type:** fix
+- **Scope:** `web`, `model-catalog`
+- **PR:** [#282](https://github.com/Prism-Shadow/penguin-harness/pull/282)
+
+[中文版](2026-08-14-model-group-protocol.zh.md)
+
Moving an existing model to the Custom group now sets `client_type` to `openai`, matching models added directly to that group and preventing unsupported-model errors for custom IDs.
Unknown IDs in first-party groups now offer a one-click move to Custom while preserving the entered settings.
diff --git a/changelog/unreleased/2026-08-14-model-group-protocol.zh.md b/changelog/unreleased/2026-08-14-model-group-protocol.zh.md
new file mode 100644
index 00000000..0154ae31
--- /dev/null
+++ b/changelog/unreleased/2026-08-14-model-group-protocol.zh.md
@@ -0,0 +1,12 @@
+# 模型:移入 Custom 分组时改用 OpenAI 兼容客户端
+
+- **Date:** 2026-08-14
+- **Type:** fix
+- **Scope:** `web`, `model-catalog`
+- **PR:** [#282](https://github.com/Prism-Shadow/penguin-harness/pull/282)
+
+[English](2026-08-14-model-group-protocol.md)
+
+将已有模型移入 Custom 分组时,现在会把 `client_type` 设为 `openai`,与直接添加到该分组的模型保持一致,避免自定义 ID 触发不支持的模型错误。
+
+第一方分组中的未知 ID 现在提供一键移入 Custom 的入口,并保留已填写的设置。
diff --git a/changelog/unreleased/2026-08-18-admin-password-reset.md b/changelog/unreleased/2026-08-18-admin-password-reset.md
index 7428360b..75f6252c 100644
--- a/changelog/unreleased/2026-08-18-admin-password-reset.md
+++ b/changelog/unreleased/2026-08-18-admin-password-reset.md
@@ -1,5 +1,12 @@
# Offline admin password reset: `penguin server reset-admin-password`
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `cli`, `server`
+- **PR:** [#315](https://github.com/Prism-Shadow/penguin-harness/pull/315)
+
+[中文版](2026-08-18-admin-password-reset.zh.md)
+
The admin resets every other user's password from the user-management page, but a forgotten **admin** password had no recovery path once it was changed from the initial one (the plaintext file in the data root only survives while the password is still initial). A new CLI subcommand closes the gap from the machine that owns the data root:
```bash
diff --git a/changelog/unreleased/2026-08-18-admin-password-reset.zh.md b/changelog/unreleased/2026-08-18-admin-password-reset.zh.md
new file mode 100644
index 00000000..06d714d2
--- /dev/null
+++ b/changelog/unreleased/2026-08-18-admin-password-reset.zh.md
@@ -0,0 +1,20 @@
+# 离线重置管理员密码:`penguin server reset-admin-password`
+
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `cli`, `server`
+- **PR:** [#315](https://github.com/Prism-Shadow/penguin-harness/pull/315)
+
+[English](2026-08-18-admin-password-reset.md)
+
+管理员可以从用户管理页重置其他每一个用户的密码,但**管理员自己**的密码一旦从初始密码改掉之后再忘记,就没有任何找回途径(数据根目录中的明文文件只在密码仍为初始值期间存在)。一个新的 CLI 子命令从拥有该数据根目录的那台机器上补齐了这个缺口:
+
+```bash
+penguin server reset-admin-password
+```
+
+- 当有存活的服务端占用该根目录时拒绝执行(`web.db` 是单写者),并指出正在运行的实例;在服务端已停止的情况下,它把内置的 `admin` 重置为一个全新的随机 `penguin-<4 位数字>` 初始密码,并以服务端启动时所用的同一个带框提示打印出来。
+- 整套初始密码机制被重新武装:置上 `password_is_initial`,明文以仅所有者可读的权限存入数据根目录,带框提醒在每次服务端启动时重新打印直到密码被修改——同时 admin 的所有登录会话被清除,与管理员发起的重置行为一致。
+- 无可重置内容的根目录会被如实报告且不产生副作用:缺失的 `web.db` 绝不会被该命令创建,而未初始化的数据库会被明确指出。
+- 实现:一个无副作用的 `@prismshadow/penguin-server/reset-admin-password` 子路径导出(与 `./lock` 同理),使 CLI 无需导入会开始监听的服务端入口即可执行重置。授权依据是本地文件系统访问权——能运行它的人,本就拥有它所写文件旁边的那个 SQLite 数据库。
+- 可发现性:`penguin server` 会直接启动服务,因此没人会去翻它的子命令帮助——登录页页脚新增第二行提示点名该命令(那是被锁在门外的管理员必定会看的地方),而 `server` 命令的描述里也提到该子命令,使它出现在顶层 `penguin --help` 中。
diff --git a/changelog/unreleased/2026-08-18-hot-update.md b/changelog/unreleased/2026-08-18-hot-update.md
index f9b7d117..ac7be04d 100644
--- a/changelog/unreleased/2026-08-18-hot-update.md
+++ b/changelog/unreleased/2026-08-18-hot-update.md
@@ -1,5 +1,12 @@
# Hot update: replace the running harness's code over HTTP, no restart
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `server`, `cli`, `web`, `tooling`
+- **PR:** [#298](https://github.com/Prism-Shadow/penguin-harness/pull/298)
+
+[中文版](2026-08-18-hot-update.zh.md)
+
A running PenguinHarness — the desktop app included — can now be updated in place: one
HTTP push replaces the backend platform, the CLI's command implementations, and the Web
App together, in seconds, without restarting the server or reinstalling anything. Live
diff --git a/changelog/unreleased/2026-08-18-hot-update.zh.md b/changelog/unreleased/2026-08-18-hot-update.zh.md
new file mode 100644
index 00000000..a7c9d864
--- /dev/null
+++ b/changelog/unreleased/2026-08-18-hot-update.zh.md
@@ -0,0 +1,28 @@
+# 热更新:经 HTTP 替换运行中 Harness 的代码,无需重启
+
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `server`, `cli`, `web`, `tooling`
+- **PR:** [#298](https://github.com/Prism-Shadow/penguin-harness/pull/298)
+
+[English](2026-08-18-hot-update.md)
+
+一个正在运行的 PenguinHarness——包括桌面应用——现在可以就地更新:一次 HTTP 推送即可把后端平台、CLI 的命令实现与 Web App 一并替换,耗时数秒,无需重启服务端、也无需重新安装任何东西。存活状态能挺过这次替换——在更新之前启动的终端进程,在更新之后仍在运行,其输出完好无损。
+
+## 一次推送,一个版本
+
+`POST /api/hmr/upgrade` 接受单个 gzip 载荷,其中携带三份产物——平台包、CLI 包与构建好的 web dist——并把它们作为一个原子版本施加。新的平台必须能启动、web dist 必须校验通过,然后才会提交任何东西;两者中任一失败都会让此前的版本原封不动地继续运行。重启会把最后一次提交的版本作为一个整体恢复,而受损的存储会回退到随包发布的默认值,而不是一个半成品更新。该存储保留当前版本外加一个可回滚的候选版本。
+
+部署是一条命令:`PENGUIN_ADMIN_PASSWORD=… node scripts/deploy.mjs <port|url>` 会构建并推送全部内容,经由 ssh 隧道推送到远程机器同样有效。
+
+## 被推送的代码拥有自己的 API
+
+运行时不再拥有路由表。每一个请求都会先交给正在运行的平台,因此一次推送可以新增一个端点、替换一个端点,或改变某个既有端点的行为——无需重新构建,也无需发布新的服务端版本。只有 `/api/hmr/*` 这条升级通道是保留的:一个损坏的平台正是要靠它被替换掉,因此任何推送都不能把它拿走。
+
+## CLI 随推送一同更新
+
+`penguin` 始终运行内置于它自身的命令;而 `penguin-hmr` 运行的是最近一次推送到该机器上的 CLI 实现,直接取自更新存储——因此命令层面的修复可以与它们所对话的服务端代码在同一次推送中发布,无需重装二进制文件。
+
+## 访问控制
+
+这些热更新 API 要求管理员会话(与浏览器相同的登录),并且除非经 HTTPS 提供,否则仅限环回访问——这里刻意不提供落盘的令牌,也不提供不安全网络的绕过开关:一份文件凭证会被以同一用户身份运行的一切读到,包括某个 Agent 自己的 shell。
diff --git a/changelog/unreleased/2026-08-18-minimax-m3-preset.md b/changelog/unreleased/2026-08-18-minimax-m3-preset.md
index 540fe8c2..818af9d7 100644
--- a/changelog/unreleased/2026-08-18-minimax-m3-preset.md
+++ b/changelog/unreleased/2026-08-18-minimax-m3-preset.md
@@ -1,5 +1,12 @@
# Built-in MiniMax M3 model preset
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `core`, `web`, `docs`, `model-catalog`
+- **PR:** [#167](https://github.com/Prism-Shadow/penguin-harness/pull/167)
+
+[中文版](2026-08-18-minimax-m3-preset.zh.md)
+
The built-in model catalog gains a MiniMax provider group with one direct `MiniMax-M3` preset, ready to use with only an API key.
## Core
diff --git a/changelog/unreleased/2026-08-18-minimax-m3-preset.zh.md b/changelog/unreleased/2026-08-18-minimax-m3-preset.zh.md
new file mode 100644
index 00000000..f885082e
--- /dev/null
+++ b/changelog/unreleased/2026-08-18-minimax-m3-preset.zh.md
@@ -0,0 +1,26 @@
+# 内置 MiniMax M3 模型预设
+
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `core`, `web`, `docs`, `model-catalog`
+- **PR:** [#167](https://github.com/Prism-Shadow/penguin-harness/pull/167)
+
+[English](2026-08-18-minimax-m3-preset.md)
+
+内置模型目录新增一个 MiniMax Provider 分组,内含一个直连的 `MiniMax-M3` 预设,只需填入 API key 即可使用。
+
+## Core
+
+新的 `minimax` 分组(标签为 "MiniMax",排在 Moonshot 与 Custom 之间)收录 `MiniMax-M3`,支持 1,000,000 Token 上下文与视觉输入。该预设固定使用 AgentHub 的 `minimax-m3` Responses 客户端,并内联直连端点 `https://api.minimax.io/v1`,因此本身不含任何密钥。MiniMax 的两种计费模式共用这一个端点——分组的取 key 链接指向按量付费的 API key 页面,Token Plan Subscription Key 同样可用——所以这里只设一个 `minimax` 分组,而不像 Qwen 那样需要按计费模式拆分。
+
+价格记录的是 MiniMax 按量付费标准档、输入不超过 512K Token 的费率:每百万 Token 缓存读取 $0.06、输入 $0.30、输出 $1.20。输入超过 512K 后各档费率翻倍,priority 档另为 1.5 倍,因此长上下文与 priority 用量会被低估;这与目录对 OpenAI(>272K)和 Gemini 3.1 Pro(>200K)已经采用的基准档口径一致。环境变量回退与 AgentHub 的精确路由保持一致:只有搭配 `minimax-m3` 客户端的 `MiniMax-M3` 才会解析到 `MINIMAX_API_KEY` / `MINIMAX_BASE_URL`;形似的以及不受支持的 MiniMax id 仍然无法路由。
+
+Core 与 CLI 升级到 `@prismshadow/agenthub` ^0.4.2,这是首个提供 `minimax-m3` Responses 客户端的版本。
+
+## Web App
+
+Provider 图标集新增 MiniMax 官方的流线标识,扁平化为 currentColor 单色——与其他厂商品牌标识采用同样的识别用途处理方式。模型对话框的 base URL 协议提示已知晓 M3 客户端请求的是 `{base}/responses`,而非其他所有非 OpenAI、非 Anthropic、非 Gemini 客户端使用的 `/chat/completions`。
+
+## Docs
+
+中英文模型与配置页面记录了这个新分组、它的凭证解析方式、省略的阶梯定价,以及 M3 的思考等级映射——其中 `none` 对应 `reasoning.effort = "none"`。
diff --git a/changelog/unreleased/2026-08-18-proxy-socks.md b/changelog/unreleased/2026-08-18-proxy-socks.md
index 9131bf2d..9d37c7ba 100644
--- a/changelog/unreleased/2026-08-18-proxy-socks.md
+++ b/changelog/unreleased/2026-08-18-proxy-socks.md
@@ -1,5 +1,12 @@
# Proxy options: SOCKS proxy addresses
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `server`
+- **PR:** [#315](https://github.com/Prism-Shadow/penguin-harness/pull/315)
+
+[中文版](2026-08-18-proxy-socks.zh.md)
+
The admin proxy address (the "Proxy options" dialog, `PUT /api/admin/settings`) now accepts any proxy URL undici's dispatcher takes — `http://`, `https://` and the (experimental in undici 7.29) `socks5://` / `socks://` schemes, credentials allowed — alongside the unchanged bare `host[:port]` shorthand (still normalized to `http://…`).
- The write-time gate is a probe ProxyAgent construction rather than a scheme list: what undici refuses (`socks4://`, `ftp://`, …) is `400 invalid_proxy_url` instead of a stored value that would crash every later startup — the dispatcher is rebuilt from the stored address on every boot, and undici throws at construction time on schemes it cannot speak.
diff --git a/changelog/unreleased/2026-08-18-proxy-socks.zh.md b/changelog/unreleased/2026-08-18-proxy-socks.zh.md
new file mode 100644
index 00000000..3e3bb16d
--- /dev/null
+++ b/changelog/unreleased/2026-08-18-proxy-socks.zh.md
@@ -0,0 +1,15 @@
+# 代理选项:SOCKS 代理地址
+
+- **Date:** 2026-08-18
+- **Type:** feature
+- **Scope:** `server`
+- **PR:** [#315](https://github.com/Prism-Shadow/penguin-harness/pull/315)
+
+[English](2026-08-18-proxy-socks.md)
+
+管理员代理地址(「代理选项」对话框,`PUT /api/admin/settings`)现在接受 undici 的 dispatcher 所能接受的任意代理 URL——`http://`、`https://`,以及(在 undici 7.29 中尚属实验性的)`socks5://` / `socks://` 方案,允许带凭证——与之并存的还有未变的裸 `host[:port]` 简写(仍规范化为 `http://…`)。
+
+- 写入时的校验是试造一个 ProxyAgent,而不是比对一份方案白名单:凡 undici 拒绝的(`socks4://`、`ftp://` 等)都会得到 `400 invalid_proxy_url`,而不是被存下来、然后让此后每一次启动都崩溃——dispatcher 在每次启动时都会依已存地址重建,而 undici 对它讲不了的方案会在构造时抛错。
+- 规范的存储形式从 `url.origin` 改为去掉解析器补出的那个裸 `/` 之后的 `url.href`:origin 会丢掉凭证,并且对 socks 这类非特殊方案会读出 `"null"`。
+- Agent 环境开关会把 `socks5://` 地址逐字注入 `HTTP_PROXY` / `HTTPS_PROXY`;各类工具对在那里接受 SOCKS URL 的支持程度不一。桌面端的操作系统代理解析仍然跳过 PAC 的 SOCKS 结果,理由相同——操作系统级的 SOCKS 改为通过该对话框显式选用。
+- 新增一个端到端测试,把一次 fetch 经由一个伪 SOCKS5 服务器隧道发出;环回地址的 NO_PROXY 豁免对 SOCKS 地址与此前完全一样适用。
diff --git a/changelog/unreleased/2026-08-18-web-code-highlight-bundle.md b/changelog/unreleased/2026-08-18-web-code-highlight-bundle.md
index 0199c026..cd72a640 100644
--- a/changelog/unreleased/2026-08-18-web-code-highlight-bundle.md
+++ b/changelog/unreleased/2026-08-18-web-code-highlight-bundle.md
@@ -1,10 +1,17 @@
# Web App: code highlighting drops the WASM engine and the full grammar registry
+- **Date:** 2026-08-18
+- **Type:** refactor
+- **Scope:** `web`
+- **PR:** [#300](https://github.com/Prism-Shadow/penguin-harness/pull/300)
+
+[中文版](2026-08-18-web-code-highlight-bundle.zh.md)
+
The first code block a conversation renders used to pull ~308 KB gzip of highlighter before coloring a single token; it now pulls ~69 KB.
## What changed
-Chat code blocks and the workspace source view no longer import `shiki` (its full bundle) (#300). The highlighter is assembled from `shiki/core` with an explicit language list, and the oniguruma WASM engine is replaced by Shiki's pure-JavaScript regex engine.
+Chat code blocks and the workspace source view no longer import `shiki` (its full bundle) ([#300](https://github.com/Prism-Shadow/penguin-harness/pull/300)). The highlighter is assembled from `shiki/core` with an explicit language list, and the oniguruma WASM engine is replaced by Shiki's pure-JavaScript regex engine.
The full bundle's cost is not the grammars — those already load lazily, one chunk per language — it is the two things that load with the *first* block regardless of language: the WASM engine (622 KB raw / 230 KB gzip) and the registry describing all 332 bundled grammars.
diff --git a/changelog/unreleased/2026-08-18-web-code-highlight-bundle.zh.md b/changelog/unreleased/2026-08-18-web-code-highlight-bundle.zh.md
new file mode 100644
index 00000000..709c5355
--- /dev/null
+++ b/changelog/unreleased/2026-08-18-web-code-highlight-bundle.zh.md
@@ -0,0 +1,37 @@
+# Web App:代码高亮去掉 WASM 引擎与完整语法注册表
+
+- **Date:** 2026-08-18
+- **Type:** refactor
+- **Scope:** `web`
+- **PR:** [#300](https://github.com/Prism-Shadow/penguin-harness/pull/300)
+
+[English](2026-08-18-web-code-highlight-bundle.md)
+
+一段对话渲染的第一个代码块,此前要先拉取约 308 KB gzip 的高亮器才能给出第一个着色 token;现在只拉取约 69 KB。
+
+## 变更内容
+
+聊天代码块与工作区源码视图不再导入 `shiki`(它的完整打包)([#300](https://github.com/Prism-Shadow/penguin-harness/pull/300))。高亮器改为基于 `shiki/core` 以一份显式语言清单组装,而 oniguruma 的 WASM 引擎被 Shiki 的纯 JavaScript 正则引擎取代。
+
+完整打包的开销不在语法上——那些本就按语言惰性加载、每种语言一个分块——而在于两样无论什么语言都会随**第一个**代码块一起加载的东西:WASM 引擎(原始 622 KB / gzip 230 KB),以及描述全部 332 种内置语法的注册表。
+
+在本应用上实测,以第一个 TypeScript 代码块为例:
+
+| | 之前 | 之后 |
+| --- | --- | --- |
+| 高亮器内核 | 62.08 KB | 48.25 KB |
+| 正则引擎 | 230.29 KB(WASM) | — |
+| 主题 | 含在内核中 | 5.06 KB |
+| `typescript` 语法 | 16.04 KB | 16.04 KB |
+| **第一个代码块** | **约 308 KB** | **约 69 KB** |
+| `dist/` 总量 | 11 MB,304 个分块 | 3.3 MB,29 个分块 |
+
+(均为 gzip;主入口分块增大 0.85 KB,用于现在无需加载高亮器即可解析的扩展名与别名表。)
+
+这个 JavaScript 引擎是等价替换而非近似:全部 332 种内置语法中的 220,772 条 TextMate 模式全部成功转换为 JavaScript 正则,无一失败;而在抽样语言(TypeScript、C++、shell、PHP、Ruby、Python、Markdown、HTML)上,它的 token 输出与 oniguruma 逐字节一致。
+
+## 代价
+
+只有 `code-languages.ts` 中列出的语言会被高亮——即工作区浏览器按文件扩展名映射的那 23 种,加上 `diff`。用该清单之外的语言(`swift`、`kotlin` 等)标注的代码块会渲染为未高亮的等宽文本,而完整打包本会给它上色。新增一种语言只需一行,而同一个文件也承载着决定去取哪份语法的围栏别名(` ```ts `、` ```bash `),因此一次引入了新别名的 Shiki 升级需要在那里补一行,否则该围栏会不再高亮。
+
+未变之处:两种主题仍由同一遍高亮以 CSS 变量形式提供,因此明暗切换绝不会重新高亮;未标注语言的围栏与未映射的文件扩展名仍渲染为带主题的纯文本;消息流式输出期间仍然跳过高亮。
diff --git a/changelog/unreleased/README.md b/changelog/unreleased/README.md
deleted file mode 100644
index 2b8fe135..00000000
--- a/changelog/unreleased/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Unreleased
-
-- [2026-08-18] Web App: the admin proxy address accepts `socks5://` / `socks://` URLs (undici's experimental SOCKS5 tunnel) alongside `http(s)://`, credentials allowed; validation becomes "whatever undici's dispatcher constructs", so schemes it refuses (`socks4://`, …) stay `400 invalid_proxy_url` instead of bricking the next server start. ([details](2026-08-18-proxy-socks.md))
-- [2026-08-18] CLI: `penguin server reset-admin-password` — offline rescue for a forgotten Web admin password: with the server stopped, resets `admin` to a fresh initial password (framed notice, re-printed on every start until changed; the login-page footer and top-level `penguin --help` now point at the command) and clears its sign-in sessions. ([details](2026-08-18-admin-password-reset.md))
-- [2026-08-18] Core & Web App: an official `MiniMax-M3` preset (1M context, vision) pins AgentHub's `minimax-m3` Responses client and direct endpoint, uses `MINIMAX_*` credential fallback, prices at the standard pay-as-you-go tier (≤512K input), and adds the MiniMax provider glyph plus bilingual docs (requires AgentHub >= 0.4.2). ([details](2026-08-18-minimax-m3-preset.md))
-- [2026-08-18] The running harness — desktop app included — can be updated over HTTP without a restart: one atomic push replaces the backend platform, the CLI's commands (`penguin-hmr`), and the Web App together; pushed code can add or replace API endpoints; live terminals survive the swap. Admin session required, loopback-only without HTTPS. ([details](2026-08-18-hot-update.md))
-- [2026-08-18] Web App: code highlighting is assembled from `shiki/core` with an explicit language list and the pure-JavaScript regex engine instead of Shiki's full bundle — the first code block of a conversation costs ~69 KB gzip instead of ~308 KB (the oniguruma WASM engine and the 332-grammar registry are gone; every bundled grammar was verified to translate to JavaScript regexes with byte-identical tokens), at the cost of languages outside the carried list rendering unhighlighted (#300). ([details](2026-08-18-web-code-highlight-bundle.md))
-- [2026-08-14] Match the macOS app icon's visual size to neighbouring apps. ([details](2026-08-14-macos-app-icon-size.md))
-- [2026-08-14] Unknown model IDs can be moved to Custom with the OpenAI-compatible client. ([details](2026-08-14-model-group-protocol.md))
-- [2026-08-11] CLI: `penguin config model remove --model-id <id> --provider <group>` deletes a model entry and the credential inlined on it, matched on the exact pair so a same-id entry under another group is left alone; the `default_model` / `vision_model` settings are cleared when they named the removed entry, matching what the Web App's models page already does on delete. ([details](2026-08-11-cli-model-remove.md))
-- [2026-08-11] Server: the Trace index's mtime gate now stats every known date directory instead of only the newest, so a compaction-rotated shard (`rotate()` writes to the session's original date dir, not necessarily the newest) is registered instead of silently missing — `GET /messages` returns the full post-compaction conversation instead of stopping at `compaction_end`. ([details](2026-08-11-trace-index-compaction-rotate.md))
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
index 56dafbbc..086ee58a 100644
--- a/packages/landing/content/blog/gemini-3-6-in-penguinharness.en.md
+++ b/packages/landing/content/blog/gemini-3-6-in-penguinharness.en.md
@@ -117,4 +117,4 @@ curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/downl
penguin web
```
-Then open the Models page, drop in a Gemini or OpenRouter key, and pick `gemini-3.6-flash`. The full release notes live in [`changelog/0.1.1/`](https://github.com/Prism-Shadow/penguin-harness/blob/main/changelog/0.1.1/README.md).
+Then open the Models page, drop in a Gemini or OpenRouter key, and pick `gemini-3.6-flash`. The full release notes live 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
index 7aa87d4e..6e5281c8 100644
--- a/packages/landing/content/blog/gemini-3-6-in-penguinharness.zh.md
+++ b/packages/landing/content/blog/gemini-3-6-in-penguinharness.zh.md
@@ -117,4 +117,4 @@ curl -fsSL https://github.com/Prism-Shadow/penguin-harness/releases/latest/downl
penguin web
```
-然后打开 Models 页面,填入 Gemini 或 OpenRouter 的 Key,选择 `gemini-3.6-flash` 即可。完整的发布说明见 [`changelog/0.1.1/`](https://github.com/Prism-Shadow/penguin-harness/blob/main/changelog/0.1.1/README.md)。
+然后打开 Models 页面,填入 Gemini 或 OpenRouter 的 Key,选择 `gemini-3.6-flash` 即可。完整的发布说明见 [`changelog/0.1.1/`](https://github.com/Prism-Shadow/penguin-harness/tree/main/changelog/0.1.1)。