diff --git a/docs/assets/demo.svg b/docs/assets/demo.svg
index cd89326..aab3a59 100644
--- a/docs/assets/demo.svg
+++ b/docs/assets/demo.svg
@@ -1 +1 @@
-
\ No newline at end of file
+Restored session: 2026年8月28日星期五19时05分41秒CST➜zcode-cligit:(main)✗➜zcode-cligit:(main)✗npxzcode-app-cli@latest◆ ZCODEv3.10.1-17╭Workspace╮~/Documents/code/ai/zcode-cli · mainAsk a task about this workspace╰/help commands · /status details╯◈ local/GLM-5.2◉ yolo⚡︎maxctx 100% leftsession 0 tokens›分析一下当前项目◆ ZCODE~/Documents/code/ai/zcode-cli · main◇Thinking· activethinking…[🕒︎3s ]The user wants me to analyze the current project. Let me explore the codebase to understand whatthinking…[🕓︎4s ]◇Thought· Ctrl+O to expand我将分析当前项目的结构、技术栈和功能。让我先浏览项目目录。○Bash· preparing●Reading 1 file… ·Ctrl+O to expand●Bashls -la /Users/kingsword09/Documents/code/ai/zcode-cli· running○Read 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/package.json·Ctrl+O to expandActivity· 1 active tool●Bash· 0s◈ local/GLM-5.2◉ yolo⚡︎maxctx 99% leftsession 0 tokens✓Bashls -la /Users/kingsword09/Documents/code/ai/zcode-cli899mstotal 264drwxr-xr-x@ 26 kingsword09 staff 832 8 28 19:06 .drwxr-xr-x@ 157 kingsword09 staff 5024 8 28 01:27 ..-rw-r--r--@ 1 kingsword09 staff 6148 8 16 18:56 .DS_Storedrwxr-xr-x@ 18 kingsword09 staff 576 8 28 19:05 .gitdrwxr-xr-x@ 3 kingsword09 staff 96 7 14 21:40 .github-rw-r--r--@ 1 kingsword09 staff 108 8 12 14:33 .gitignore-rw-r--r--@ 1 kingsword09 staff 1118 7 15 08:43 .impeccable.mddrwxr-xr-x@ 4 kingsword09 staff 128 8 28 17:09 .releasedrwxr-xr-x@ 4 kingsword09 staff 128 7 15 19:35 .zcodedrwxr-xr-x 4 kingsword09 staff 128 7 14 21:40 bin-rw-r--r--@ 1 kingsword09 staff 31546 8 28 18:12 bun.lock-rw-r--r--@ 1 kingsword09 staff 2677 8 28 18:12 config.example.json-rw-r--r--@ 1 kingsword09 staff 39812 8 28 19:06 demo.castdrwxr-xr-x@ 6 kingsword09 staff 192 8 28 18:12 docs… 12 more lines · Ctrl+O to expandwaiting for model…[🕕︎6s ]◇Thought· Ctrl+O to expand✓Bashls -la /Users/kingsword09/Documents/code/ai/zcode-cli899mstotal 264◈ local/GLM-5.2◉ yolo⚡︎maxctx 99% leftcache 77% hitsession 0 tokensthinking…[🕙︎10s ]drwxr-xr-x@ 26 kingsword09 staff 832 8 28 19:06 .drwxr-xr-x@ 157 kingsword09 staff 5024 8 28 01:27 ..让我并行浏览一下源代码、文档和关键的配置文件。-rw-r--r--@ 1 kingsword09 staff 6148 8 16 18:56 .DS_Storedrwxr-xr-x@ 18 kingsword09 staff 576 8 28 19:05 .gitdrwxr-xr-x@ 3 kingsword09 staff 96 7 14 21:40 .github-rw-r--r--@ 1 kingsword09 staff 108 8 12 14:33 .gitignore-rw-r--r--@ 1 kingsword09 staff 1118 7 15 08:43 .impeccable.mddrwxr-xr-x@ 4 kingsword09 staff 128 8 28 17:09 .releasepreparing Read…[🕛︎12s ]●Reading 2 files… ·Ctrl+O to expandpreparing Read…[🕐︎13s ]○Read 4 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/tsconfig.json·Ctrl+O to expand✓Bashls -la /Users/kingsword09/Documents/code/ai/zcode-cli/src/Users/kingsword09/Documents/code/ai/zcod…33ms/Users/kingsword09/Documents/code/ai/zcode-cli/bin:total 136drwxr-xr-x 4 kingsword09 staff 128 7 14 21:40 .drwxr-xr-x@ 26 kingsword09 staff 832 8 28 19:06 ..-rwxr-xr-x@ 1 kingsword09 staff 62900 8 28 18:03 zcode.js-rwxr-xr-x@ 1 kingsword09 staff 98 7 14 21:40 zcode.ts/Users/kingsword09/Documents/code/ai/zcode-cli/docs:total 72drwxr-xr-x@ 6 kingsword09 staff 192 8 28 18:12 .drwxr-xr-x@ 3 kingsword09 staff 96 7 17 21:22 assets-rw-r--r--@ 1 kingsword09 staff 16347 8 28 18:12 CONFIGURATION.md-rw-r--r--@ 1 kingsword09 staff 5388 8 26 14:52 DEVELOPMENT.md-rw-r--r--@ 1 kingsword09 staff 10688 8 26 14:52 RELEASING.md… 58 more lines · Ctrl+O to expandwaiting for model…[🕐︎13s ]让我并行浏览一下源代码、文档和关键的配置文件。/Users/kingsword09/Documents/code/ai/zcode-cli/docs:total 72drwxr-xr-x@ 6 kingsword09 staff 192 8 28 18:12 .drwxr-xr-x@ 26 kingsword09 staff 832 8 28 19:06 ..◈ local/GLM-5.2◉ yolo⚡︎maxctx 98% leftcache 0% hitsession 0 tokenswaiting for model…[🕚︎23s ]drwxr-xr-x@ 3 kingsword09 staff 96 7 17 21:22 assets让我并行查看TUI包、一些关键源文件以及文档。preparing Bash…[🕚︎23s ]-rw-r--r--@ 1 kingsword09 staff 16347 8 28 18:12 CONFIGURATION.md-rw-r--r--@ 1 kingsword09 staff 5388 8 26 14:52 DEVELOPMENT.md-rw-r--r--@ 1 kingsword09 staff 10688 8 26 14:52 RELEASING.md… 58 more lines · Ctrl+O to expandpreparing Read…[🕛︎24s ]○Read 2 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/bin/zcode.ts·Ctrl+O to expand✓Bashfind /Users/kingsword09/Documents/code/ai/zcode-cli/test -type f | sort | head -5013ms/Users/kingsword09/Documents/code/ai/zcode-cli/test/app-server-client.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/assistant-stream.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/attachment-bar.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/attachments.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/background-task-events.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/background-task-output.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/bounded-tool-text.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/choice-dialog.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/code-highlighter.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/config-bootstrap.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/config-template.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/context-breakdown.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/context-cache.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/context-status-view.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/darwin-oauth-callback.test.ts… 35 more lines · Ctrl+O to expandwaiting for model…[🕛︎24s ]/Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui/src/diff-browser.ts/Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui/src/events.ts… 59 more lines · Ctrl+O to expand/Users/kingsword09/Documents/code/ai/zcode-cli/test/context-cache.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/context-status-view.test.ts/Users/kingsword09/Documents/code/ai/zcode-cli/test/darwin-oauth-callback.test.ts… 35 more lines · Ctrl+O to expand◈ local/GLM-5.2◉ yolo⚡︎maxctx 98% leftcache 35% hitsession 0 tokensthinking…[🕓︎28s ]thinking…[🕔︎29s ]○Read 2 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/bin/zcode.ts·Ctrl+O to expand我来获取启动器(launcher)的入口点并统计代码行数,以了解项目规模。preparing Bash…[🕗︎32s ]我来获取启动器(launcher)的入口点并统计代码行数,以了解项目规模。○Read 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/src/launcher.ts·Ctrl+O to expand…· runningrunning Bash…[🕙︎34s ]Activity· 2 active tools○Bash◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% leftcache 35% hitsession 0 tokens2723 total=== packages/zcode-tui/src/ ===… 23 more lines · Ctrl+O to expand…· running✓Bashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (last…43ms=== vendor/zcode.cjs size ===-rwxr-xr-x@ 1 kingsword09 staff 12M 8 28 18:03 vendor/zcode.cjs=== git log (last 15) ===d5b766b chore(release): prepare zcode-app-cli 3.10.1-17 (#99)43f2e2d feat(tui): add robust fullscreen mode and runtime compatibility (#98)4a0a61b chore(release): prepare zcode-app-cli 3.9.2-16 (#97)0df5308 docs(config): add glm-5.3-flash multimodal model to template (#96)b628041 chore(release): prepare zcode-app-cli 3.9.1-16 (#95)2ae50db fix(runtime): decouple upstream compatibility from minified symbols (#94)ce2dcfb fix(tui): cap session title length and dedupe turn-end refresh (#91)e6e110c chore(release): prepare zcode-app-cli 3.8.1-15 (#90)5ef738d fix(tui): allow backtracking in AskUserQuestion flow (#89)45e80d5 fix(tui): wire mode picker through runtime bridge (#88)996ee28 feat(tui): show session title in terminal tab (#81)… 21 more lines · Ctrl+O to expand◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% leftcache 53% hitsession 0 tokenswaiting for model…[🕑︎38s ]45e80d5 fix(tui): wire mode picker through runtime bridge (#88)996ee28 feat(tui): show session title in terminal tab (#81)waiting for model…[🕒︎39s ]… 21 more lines · Ctrl+O to expand让我查看一下TUI的index.ts头文件和git历史记录,以更好地了解项目的活跃度。○Read 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui/src/index.ts·Ctrl+...✓Bashecho "=== commit count ===" && git rev-list --count HEAD && echo && echo "=== contributors ===" &&47ms=== commit count ===91=== contributors ===71 Kingsword19 github-actions[bot]1 penghuizhang=== first/last commit dates ===2026-07-13 17:30:52 +08002026-08-28 18:51:06 +0800=== recent commit subjects grouped ===19 chore(release)11 fix(tui)… 15 more lines · Ctrl+O to expandwaiting for model…[🕕︎42s ]19 chore(release)11 fix(tui)… 15 more lines · Ctrl+O to expand◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% leftcache 49% hitsession 0 tokensthinking…[🕛︎48s ]I now have a good understanding of the project.thinking…[🕐︎49s ]◇Thinking· activeI now have a good understanding of the project. Let me compile a comprehensive analysis.Key findings:1.Project identity:zcode-app-cliv3.10.1-17 — an unofficial terminal client for the ZCode Desktopagent runtimeKey findings:thinking…[🕑︎50s ]2.Architecture: Node.js npm launcher that spawns the extracted officialzcode.cjsruntime (12MB1.Project identity:zcode-app-cliv3.10.1-17 — an unofficial terminal client for the ZCode Desktopagent runtimeminified) as a child process, with a local@zcode/tuiTUI adapter built on@earendil-works/pi-tuithinking…[🕒︎51s ]2.Architecture: Node.js npm launcher that spawns the extracted officialzcode.cjsruntime (12MBpi-tui for TUI renderingminified) as a child process, with a local@zcode/tuiTUI adapter built on@earendil-works/pi-tui3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (bundler), Node.js >=22.19,thinking…[🕓︎52s ]pi-tui for TUI renderingalone4.Code size: ~45.6k lines TS (excluding vendor/node_modules), with 40.4k lines in the TUI packagealone5.Structure:5.Structure:- bin/zcode.{ts,js}— entry point-- bin/zcode.{ts,js}— entry point- src/— launcher, OAuth, model access, plugin CLI, desktop migration (~2.7k lines)- packages/zcode-tui/— thethinking…[🕔︎53s ]- src/— launcher, OAuth, model access, plugin CLI, desktop migration (~2.7k lines)- packages/zcode-tui/— the terminal UI (~40k lines, with index.ts being 5.3k lines)- vendor/zcode.cjs— 12MB extracted official runtime- packages/zcode-tui/— the terminal UI (~40k lines, with index.ts being 5.3k lines)- vendor/zcode.cjs— 12MB extracted official runtime- scripts/— build, sync, smoke tests, release toolingthinking…[🕕︎54s ]- test/— extensive test suite- scripts/— build, sync, smoke tests, release tooling- test/— extensive test suite6.Git activity: 91 commits over ~6 weeks (Jul 13 - Aug 28 2026), primarily Kingsword + github-actions6.Git activity: 91 commits over ~6 weeks (Jul 13 - Aug 28 2026), primarily Kingsword + github-actionsbot, single main branch7.**Releasethinking…[🕖︎55s ]bot, single main branch7.Release cadence: high — 19 release prep commits, versions v3.7.3-10 through v3.10.1-17, App-alignedSemVer prerelease formatthinking…[🕗︎56s ]8.Features: rich TUI with streaming, attachments, plugin/skill management, OAuth, rewind, diffSemVer prerelease format8.Features: rich TUI with streaming, attachments, plugin/skill management, OAuth, rewind, diffbrowser, task center, etc.browser, task center, etc.9.CI: GitHub Actions on Node 22.19I now have a complete picture. Here's my analysis.thinking…[🕘︎57s ]项目分析:zcode-app-cliI now have a complete picture. Here's my analysis.zcode-app-cliv3.10.1-17是ZCode Desktop官方Agent运行时的非官方终端客户端。它不重新实现Agent逻辑,项目分析:zcode-app-clithinking…[🕙︎58s ]而是提取桌面版内置的12 MB压缩运行时(vendor/zcode.cjs),用本地TUI适配层替换桌面GUI,再以Node.js子zcode-app-cliv3.10.1-17是ZCode Desktop官方Agent运行时的非官方终端客户端。它不重新实现Agent逻辑,而是提取桌面版内置的12 MB压缩运行时(vendor/zcode.cjs),用本地TUI适配层替换桌面GUI,再以Node.js子进程方式启动并直接继承用户终端。###架构thinking…[🕚︎59s ]``````bin/zcode.{ts,js} → launcher (src/)配置/登录/版本元数据thinking…[🕛︎1m 00s ]↓ spawn child,继承stdiovendor/zcode.cjs (12MB)官方Agent/模型/会话/工具/MCP逻辑↓加载本地TUI适配thinking…[🕐︎1m 01s ]packages/zcode-tui @earendil-works/pi-tui渲染层thinking…[🕑︎1m 02s ]设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,原始终端模式、IME光标定位和设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,原始终端模式、IME光标定位和resize都由官方运行时直接掌管。###技术栈thinking…[🕒︎1m 03s ]层面选型语言/打包TypeScript 7 + tsdown(ESM, target node22.19)层面选型语言/打包TypeScript 7 + tsdown(ESM, target node22.19)包管理/开发Bun 1.3.12(bun run dev走ts直跑)层面选型语言/打包TypeScript 7 + tsdown(ESM, target node22.19)包管理/开发Bun 1.3.12(bun run dev走ts直跑)TUI渲染@earendil-works/pi-tui^0.84.3thinking…[🕓︎1m 04s ]层面选型语言/打包TypeScript 7 + tsdown(ESM, target node22.19)包管理/开发Bun 1.3.12(bun run dev走ts直跑)TUI渲染@earendil-works/pi-tui^0.84.3浏览器自动化playwright-core1.59.1(仅提供库,不下载浏览器二进制)运行时要求Node.js ≥22.19;macOS/Linux/Windows x64/ARM64###代码规模(不含vendor与node_modules)thinking…[🕔︎1m 05s ]区域行数说明区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) /thinking…[🕕︎1m 06s ]区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) / desktop-migration(340) /区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) /desktop-migration(340) / model-access(247)等packages/zcode-tui/src/~40,400其中index.ts5,355行、rich-markdown.ts3,542行——这是项目的核心`thinking…[🕖︎1m 07s ]test/+scripts/~2,500单元测试+ PTY冒烟脚本+发布工具合计TS~45,600thinking…[🕗︎1m 08s ]TUI包占了绝大部分代码量,是真正的「终端界面重写」工作所在。######开发活跃度--91次提交,时间跨度2026-07-13 → 08-28(约6周,仍在快速迭代)thinking…[🕘︎1m 09s ]-91次提交,时间跨度2026-07-13 → 08-28(约6周,仍在快速迭代)-贡献者:Kingsword(71)+ github-actions bot(19,发布自动化)+ 1位协作者thinking…[🕙︎1m 10s ]-贡献者:Kingsword(71)+ github-actions bot(19,发布自动化)+ 1位协作者-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App对齐的SemVer预发布格式(主版本-构建号)-提交主题分布:19次release prep、11次fix(tui)、7次feat(tui)thinking…[🕚︎1m 11s ]-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App对齐的SemVer预发布格式(主版本-构建号)-提交主题分布:19次release prep、11次fix(tui)、7次feat(tui)——典型的「以TUI为重心、高频小步发布」节奏###功能特性(摘要)thinking…[🕛︎1m 12s ]-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引用、$Skill补全、持久化prompt历史-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引用、$Skill补全、持久化prompt历史-流式与对话:官方会话事件驱动的流式输出、/mode/model/resume/plugins等upstream slash命令、Shift+Tabthinking…[🕐︎1m 13s ]-流式与对话:官方会话事件驱动的流式输出、/mode/model/resume/plugins等upstream slash命令、Shift+Tab模式循环、双Esc回退(带workspace checkpoint选择)-**模式循环、双Esc回退(带workspace checkpoint选择)-附件与富输出:剪贴板图片(Ctrl+V//paste-image)、紧凑工具执行视图、父子Agent工具树、语法高亮Markdownthinking…[🕑︎1m 14s ]-附件与富输出:剪贴板图片(Ctrl+V//paste-image)、紧凑工具执行视图、父子Agent工具树、语法高亮Markdown、Pierre风格inline diff、终端原生Mermaid预览、Pierre风格inline diff、终端原生Mermaid预览-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(n/N遍历)、后台任务中心(Agent/Bash/Workflow)thinking…[🕒︎1m 15s ](Agent/Bash/Workflow)-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥)、Coding Plan API key、自定义provider;工具权限交互式审批-插件/Skill:launcher通过官方app-server协议代理marketplace操作(不patch运行时),thinking…[🕓︎1m 16s ]工具权限交互式审批-插件/Skill:launcher通过官方app-server协议代理marketplace操作(不patch运行时-插件/Skill:launcher通过官方app-server协议代理marketplace操作(不patch运行时),--browser-use=headless默认对Agent会话注入###配置模型thinking…[🕔︎1m 17s ]config.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/5.2/5.1/turbo模型清单)、config.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/5.2/5.1/turbo模型清单)、model(严格{main, lite})、permission、storage、features(compact/rewind/subagent/memory/skill/mcp)、hooks、skills、plugins等。用户配置落点~/.zcode/cli/config.json,项目级thinking…[🕕︎1m 18s ]hooks、skills、plugins等。用户配置落点~/.zcode/cli/config.json,项目级覆盖走zcode.json或.zcode/config.json,既有文件永不替换。###工程化亮点thinking…[🕖︎1m 19s ]-运行时同步:scripts/sync-runtime.ts(68 KB)从本地/Applications/ZCode.app或远程安装包提取resources/glm,并把严格parseGlobalArgs选项表导出到vendor/extraction.json——launcher消费这份能力清单,避免维护重复的全局选项列表thinking…[🕗︎1m 20s ]-分层验证:typecheck+bun test(单元)+check(运行时检查)+check:tui(真实PTY冒烟,覆盖登录、模式切换、图片附件、嵌套Agent、Mermaid、diff、压力测试等),从观察到的终端输出推进而非固定计时器thinking…[🕘︎1m 21s ]-发布工具链:bump-build.ts/build-release.ts/pack-release.ts/check-package.ts --prepack(prepack钩子),CI在Node 22.19上验证锁定的运行时构建thinking…[🕙︎1m 22s ]-更新通知:启动时最多每20小时检查一次npmlatest,非阻塞展示,CI自动跳过###一句话定位这是一个以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目——核心价值在thinking…[🕚︎1m 23s ]这是一个以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目——核心价值在40k行的TUI重写与launcher的薄桥接,而非Agent逻辑本身;目前处于高频迭代期,发布节奏紧凑且由自动化驱动。thinking…[🕛︎1m 24s ]如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥、运行时同步机制,或测试策略),我可以继续展开。Worked for 1m 24s◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% leftcache 97% hitsession 33.5K tokensContextContext pressure, cache health, and prompt composition. Exact cache tokens are kept separate fromestimates.Recent cache requests1ac032cdc77% hit · 13K input · 10K read░267592bdb0% hit · 14.8K input · 0 read32f7b250b35% hit · 23.5K input · 8.2K read434ccfdcb53% hit · 27.8K input · 14.7K read59e858e7049% hit · 29.8K input · 14.7K readFilter:type to search→ CloseType to filter · Up/Down choose · Ctrl+O details · ←/→ or PgUp/PgDn scroll · Enter confirm · Esc›分析一下当前项目Worked for 1m 24sToken usage: total=33,491 input=30,466 output=3,025To continue this session, runzcode --resume sess_1f94d703-bae2-465f-aa7f-c3d209f5efb1➜zcode-cligit:(main)✗npx zcode-app-cli@latest➜zcode-cligit:(main)✗npx zcode-app-cli@latest➜zcode-cligit:(main)✗npxzcode-app-cli@latest⠙⠹⠸⠼⠴⠦分析一下当前项目◆ ZCODE╭Workspace╮Ask a task about this workspaceworking…[🕛︎0s ]waiting for model…[🕛︎0s ]waiting for model…[🕐︎1s ]waiting for model…[🕑︎2s ]waiting for model…[🕒︎3s ]The user wantsThe user wants me to analyze theThe user wants me to analyze the current project. LetThe user wants me to analyze the current project. Let me explore the codeThe user wants me to analyze the current project. Let me explore the codebase to understand what thisproject我将我将分析当前项目的结构我将分析当前项目的结构、技术我将分析当前项目的结构、技术栈和功能。我将分析当前项目的结构、技术栈和功能。让我preparing Bash…[🕓︎4s ]preparing Read…[🕔︎5s ]●Reading 1 file… ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/package.json·Ctrl+O to expandprocessing model response…[🕔︎5s ]running Bash…[🕔︎5s ]running Bash…[🕕︎6s ]waiting for model…[🕖︎7s ]waiting for model…[🕗︎8s ]waiting for model…[🕘︎9s ]waiting for model…[🕙︎10s ]LetLet me explore moreLet me explore more of the project structure to understand it让我并行让我并行浏览一下源代码让我并行浏览一下源代码、thinking…[🕚︎11s ]preparing Bash…[🕚︎11s ]preparing Bash…[🕛︎12s ]●Reading 3 files… ·Ctrl+O to expand●Reading 4 files… ·Ctrl+O to expanddrwxr-xr-x@ 4 kingsword09 staff 128 7 15 19:35 .zcodedrwxr-xr-x 4 kingsword09 staff 128 7 14 21:40 bin●Bashls -la /Users/kingsword09/Documents/code/ai/zcode-cli/src/Users/kingsword09/Documents/code/ai/zcod…· runningrunning Bash…[🕐︎13s ]◈ local/GLM-5.2◉ yolo⚡︎maxctx 98% leftcache 77% hitsession 0 tokenswaiting for model…[🕑︎14s ]waiting for model…[🕒︎15s ]waiting for model…[🕓︎16s ]waiting for model…[🕔︎17s ]waiting for model…[🕕︎18s ]waiting for model…[🕖︎19s ]waiting for model…[🕗︎20s ]waiting for model…[🕘︎21s ]waiting for model…[🕙︎22s ]让我并行查看TUI包、一些关键让我并行查看TUI包、一些关键源文件以及文档○Read 4 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/tsconfig.json·Ctrl+O to expand●Bashfind /Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui -type f -not -path'*/node_m…· running○Bashfind /Users/kingsword09/Documents/code/ai/zcode-cli/test -type f | sort | head -50· queuedrunning Bash…[🕛︎24s ]waiting for model…[🕐︎25s ]waiting for model…[🕑︎26s ]waiting for model…[🕒︎27s ]waiting for model…[🕓︎28s ]Let me lookLet me look at aLet me look at a few more key source files toLet me look at a few more key source files to understand theLet me look at a few more key source files to understand the launcher and the overall structure我来获取我来获取启动器(launcher我来获取启动器(launcher)我来获取启动器(launcher)的入口点并统计我来获取启动器(launcher)的入口点并统计代码行数,以了解项目preparing Read…[🕔︎29s ]preparing Bash…[🕕︎30s ]preparing Bash…[🕖︎31s ]preparing Bash…[🕘︎33s ]preparing Bash…[🕙︎34s ]●Bashecho "=== src/ ===" && wc -l src/*.ts | sort -n && echo && echo "=== packages/zcode-tui/src/ ==="&…· running●Bashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (last●Bashecho "=== src/ ===" && wc -l src/*.ts | sort -n && echo && echo "=== packages/zcode-tui/src/ ==="&…· running○Bashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (last…· queued297ms=== src/ ===39 src/command.ts39 src/runtime-capabilities.ts42 src/plugin-protocol.ts152 src/app-server-client.ts165 src/zai-oauth.ts171 src/update-check.ts247 src/model-access.ts340 src/desktop-migration.ts391 src/darwin-oauth-callback.ts549 src/launcher.ts588 src/plugin-cli.ts●Bashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (lastwaiting for model…[🕙︎34s ]waiting for model…[🕚︎35s ]waiting for model…[🕛︎36s ]waiting for model…[🕐︎37s ]让我让我查看让我查看一下TUI的`让我查看一下TUI的index.ts头文件让我查看一下TUI的index.ts头文件和git历史让我查看一下TUI的index.ts头文件和git历史记录,让我查看一下TUI的index.ts头文件和git历史记录,以更好地了解项目的活跃让我查看一下TUI的index.ts头文件和git历史记录,以更好地了解项目的活跃度。preparing Read…[🕒︎39s ]preparing Bash…[🕓︎40s ]preparing Bash…[🕔︎41s ]preparing Bash…[🕕︎42s ]●Reading 1 file… ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui/src/index.ts·C...●Bashecho "=== commit count ===" && git rev-list --count HEAD && echo && echo "=== contributors ===" &&processing model response…[🕕︎42s ]●Bashecho "=== commit count ===" && git rev-list --count HEAD && echo && echo "=== contributors ===" &&running Bash…[🕕︎42s ]waiting for model…[🕖︎43s ]waiting for model…[🕗︎44s ]waiting for model…[🕘︎45s ]waiting for model…[🕙︎46s ]waiting for model…[🕚︎47s ]waiting for model…[🕛︎48s ]II nowI now have a goodI now have a good understanding of the project. Let me compile a comprehensive analysis.1.**1.**Project1.Project identity:1.Project identity: `zcode1.Project identity:zcode-app-cliv3.10.1.Project identity:zcode-app-cliv3.10.1-17 — an2.Architecture:2.Architecture: Node.js npm launcher that2.Architecture: Node.js npm launcher that spawns the extracted official `zcode.cminified) as a childminified) as a child process,minified) as a child process, with a local `minified) as a child process, with a local@zcode/tuiTUI adapterminified) as a child process, with a local@zcode/tuiTUI adapter built on `@earendil3.3.Tech stack: TypeScript,3.Tech stack: TypeScript, Bun (3.Tech stack: TypeScript, Bun (package manager +3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (bundler), Node3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (bundler), Node.js >=3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (bundler), Node.js >=22.19, pi3.Tech stack: TypeScript, Bun (package manager + dev runner), tsdown (bundler), Node.js >=22.19,4.**4.**Code size4.Code size: ~45.6k lines TS4.Code size: ~45.6k lines TS (excluding vendor/node4.Code size: ~45.6k lines TS (excluding vendor/node_modules4.Code size: ~45.6k lines TS (excluding vendor/node_modules), with 40.4.Code size: ~45.6k lines TS (excluding vendor/node_modules), with 40.4k lines in the T4.Code size: ~45.6k lines TS (excluding vendor/node_modules), with 40.4k lines in the TUI4.Code size: ~45.6k lines TS (excluding vendor/node_modules), with 40.4k lines in the TUI package5.Structure:-`-`bin/zcode.{ts,- bin/zcode.{ts,js}-`src- src/— launcher,- src/— launcher, OAuth, model access, plugin CLI,- src/— launcher, OAuth, model access, plugin CLI, desktop migration (~2.7k-`packages/zcode- packages/zcode-tui/— the terminal UI- packages/zcode-tui/— the terminal UI (~40k lines- packages/zcode-tui/— the terminal UI (~40k lines, with index.ts being 5- vendor/zcode.cjs- vendor/zcode.cjs— 12MB extracted- scripts/—- scripts/— build, sync, smoke- test/6.6.Git activity: 91 commits over6.Git activity: 91 commits over ~6 weeks (Jul 136.Git activity: 91 commits over ~6 weeks (Jul 13 - Aug 286.Git activity: 91 commits over ~6 weeks (Jul 13 - Aug 28 2026), primarily Kingsword6.Git activity: 91 commits over ~6 weeks (Jul 13 - Aug 28 2026), primarily Kingsword +bot,bot, single77.Release cadence: high7.Release cadence: high — 19 release7.Release cadence: high — 19 release prep commits, versions v7.Release cadence: high — 19 release prep commits, versions v3.7.3-7.Release cadence: high — 19 release prep commits, versions v3.7.3-10 through v3.10.17.Release cadence: high — 19 release prep commits, versions v3.7.3-10 through v3.10.1-17, App7.Release cadence: high — 19 release prep commits, versions v3.7.3-10 through v3.10.1-17, App-alignedSem88.**8.Features: rich T8.Features: rich TUI with8.Features: rich TUI with streaming,8.Features: rich TUI with streaming, attachments, plugin8.Features: rich TUI with streaming, attachments, plugin/skill management,8.Features: rich TUI with streaming, attachments, plugin/skill management, OAuthbrowser, task9.**9.CI: GitHub Actions9.CI: GitHub Actions onLet meLet me write aLet me write a comprehensive but readable analysisI now have aI now have a complete picture项目分析:zcode**`zcode-app**zcode-app-cli**zcode-app-cliv3.10.1-17zcode-app-cliv3.10.1-17是ZCode Desktopzcode-app-cliv3.10.1-17是ZCode Desktop官方Agent运行zcode-app-cliv3.10.1-17是ZCode Desktop官方Agent运行时的非zcode-app-cliv3.10.1-17是ZCode Desktop官方Agent运行时的非官方终端客户端。而是提取桌面版内置而是提取桌面版内置的12 MB而是提取桌面版内置的12 MB压缩运行时(而是提取桌面版内置的12 MB压缩运行时(vendor/zcode.cjs),而是提取桌面版内置的12 MB压缩运行时(vendor/zcode.cjs),用本地TUI适配层而是提取桌面版内置的12 MB压缩运行时(vendor/zcode.cjs),用本地TUI适配层替换桌面GUI,再进程方式进程方式启动并直接继承用户``bin/zcodebin/zcode.{bin/zcode.{ts,js} →bin/zcode.{ts,js} → launcher (src/)bin/zcode.{ts,js} → launcher (src/)配置/登录/bin/zcode.{ts,js} → launcher (src/)配置/登录/版本元bin/zcode.{ts,js} → launcher (src/)配置/登录/版本元数据↓ spawn↓ spawn child,继承stdiovendor/zcode.cjs (vendor/zcode.cjs (12MBvendor/zcode.cjs (12MB)官方Agentvendor/zcode.cjs (12MB)官方Agent/模型/会话/工具/Mvendor/zcode.cjs (12MB)官方Agent/模型/会话/工具/MCPvendor/zcode.cjs (12MB)官方Agent/模型/会话/工具/MCP逻辑packagespackages/zcode-tpackages/zcode-tui @epackages/zcode-tui @earendil-packages/zcode-tui @earendil-works/pi-tuipackages/zcode-tui @earendil-works/pi-tui渲染层设计上设计上保持「运行时归设计上保持「运行时归官方、终端界面归本地设计上保持「运行时归官方、终端界面归本地」的边界:launcher不设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,原始终端设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,原始终端模式、IME设计上保持「运行时归官方、终端界面归本地」的边界:launcher不插入第二个PTY,原始终端模式、IME光标resize都resize都由官方运行时resize都由官方运行时直接掌###技术栈|层面|层面|选|层面|选型|层面选型层面选型语言/打包TypeScript层面选型语言/打包TypeScript 7 + ts层面选型语言/打包TypeScript 7 + tsdown(ESM层面选型语言/打包TypeScript 7 + tsdown(ESM, target层面选型语言/打包TypeScript 7 + tsdown(ESM, target node22.19语言/打包TypeScript 7 + tsdown(ESM, target node22.19)包管理包管理/包管理/开发Bun包管理/开发Bun 1包管理/开发Bun 1.3.12(`bun包管理/开发Bun 1.3.12(bun run dev包管理/开发Bun 1.3.12(bun run dev走tsTTUITUI渲染`@eTUI渲染@earendil-works/pi-tuiTUI渲染@earendil-works/pi-tui^0.84.3浏览器自动化浏览器自动化`play浏览器自动化`playwright-core浏览器自动化playwright-core1.59.浏览器自动化playwright-core1.59.1(仅提供库,不下载浏览器自动化playwright-core1.59.1(仅提供库,不下载浏览器二进制)运运行时要求Node.js运行时要求Node.js ≥22.19;运行时要求Node.js ≥22.19;macOS/Linux/Windows x运行时要求Node.js ≥22.19;macOS/Linux/Windows x64/ARM64###代码规模###代码规模(###代码规模(不含vendor与node_modules)||区域||区域|行数|说明|区域|行数|说明|src/~区域行数说明src/~2,700launcher(区域行数说明src/~2,700launcher(549) / plugin-cli(区域行数说明src/~2,700launcher(549) / plugin-cli(588) /区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) / desktop-migration(340model-accessmodel-access(247model-access(247)等区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) / desktop-migration(340)/ model-access(247)等`packages/zcode区域行数说明src/~2,700launcher(549) / plugin-cli(588) / OAuth回调(391) /desktop-migration(340) / model-access(247)等packages/zcode-tui/src/~40packages/zcode-tui/src/~40,400其中index.tspackages/zcode-tui/src/~40,400其中index.ts5,355行、`packages/zcode-tui/src/~40,400其中index.ts5,355行、`rich-markpackages/zcode-tui/src/~40,400其中index.ts5,355行、`rich-markdown.tspackages/zcode-tui/src/~40,400其中index.ts5,355行、rich-markdown.ts3,542packages/zcode-tui/src/~40,400其中index.ts5,355行、rich-markdown.ts3,542行——这是test/+scripts/test/+scripts/~2,500test/+scripts/~2,500单test/+scripts/~2,500单元测试+ PTtest/+scripts/~2,500单元测试+ PTY冒烟脚本****合计TS合计TS**~45,合计TS~45,600TUI包TUI包占了绝大部分TUI包占了绝大部分代码量,是TUI包占了绝大部分代码量,是真正的「终端界面重###开-91次提交,-91次提交,时间跨度-91次提交,时间跨度**2026-07-13 → 08-91次提交,时间跨度2026-07-13 → 08-28(约6周-贡献者-贡献者:Kingsword(-贡献者:Kingsword(71)+ github-贡献者:Kingsword(71)+ github-actions bot(19-贡献者:Kingsword(71)+ github-actions bot(19,发布自动化)-贡献者:Kingsword(71)+ github-actions bot(19,发布自动化)+ 1-单-单一main-单一main分-单一main分支,标签序列`v3.-单一main分支,标签序列v3.7.3-10-单一main分支,标签序列v3.7.3-10→ `v3.10.1-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App对齐-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App对齐的SemVer预-单一main分支,标签序列v3.7.3-10→v3.10.1-17,采用App对齐的SemVer预发布格式(`主-提交主题分布:19-提交主题分布:19次release prep、11-提交主题分布:19次release prep、11次fix(tui)-提交主题分布:19次release prep、11次fix(tui)、7次`-提交主题分布:19次release prep、11次fix(tui)、7次feat(tui)——典型的「以TUI为-提交主题分布:19次release prep、11次fix(tui)、7次feat(tui)——典型的「以TUI为重心、高频小步发布-提交主题分布:19次release prep、11次fix(tui)、7次feat(tui)——典型的「以TUI为重心、高频小步发布」节奏###功能特性(摘要-**编辑与-编辑与输入:pi-编辑与输入:pi-tui差-编辑与输入:pi-tui差分渲染、CJK感知-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引用、-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引用、$Skill-编辑与输入:pi-tui差分渲染、CJK感知多行编辑器、@文件/Plugin引用、$Skill补全、持久化prompt-**流式-流式与对话:官方会-流式与对话:官方会话事件-流式与对话:官方会话事件驱动的流式输出-流式与对话:官方会话事件驱动的流式输出、/mode/model-流式与对话:官方会话事件驱动的流式输出、/mode/model/resume/plugins等-流式与对话:官方会话事件驱动的流式输出、/mode/model/resume/plugins等upstream slash命令、模式模式循环模式循环、双Esc回退(-附件与富输出:剪贴-附件与富输出:剪贴板图片(Ctrl+V-附件与富输出:剪贴板图片(Ctrl+V/`-附件与富输出:剪贴板图片(Ctrl+V//paste-image)、紧凑-附件与富输出:剪贴板图片(Ctrl+V//paste-image)、紧凑工具执行视图、父子-附件与富输出:剪贴板图片(Ctrl+V//paste-image)、紧凑工具执行视图、父子Agent、P、Pierre风格inline diff、、Pierre风格inline diff、终端原生-**检查-检查与导航:-检查与导航:/diff`/context-检查与导航:/diff/context/status-检查与导航:/diff/context/status/activity`/-检查与导航:/diff/context/status/activity/tasks、可搜索transcript-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(`n-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(n/`-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(n/N遍历)、-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(n/N遍历)、后台任务中心(-检查与导航:/diff/context/status/activity/tasks、可搜索transcript(n/N遍历)、后台任务中心(Agent-登录与权限:mac-登录与权限:macOS OAuth(`zcode://-登录与权限:macOS OAuth(`zcode://zai-auth/callback-登录与权限:macOS OAuth(zcode://zai-auth/callback-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥)、Coding Plan API-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥)、Coding Plan API key、-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥)、Coding Plan API key、自定义provider-登录与权限:macOS OAuth(zcode://zai-auth/callback原生回调桥)、Coding Plan API key、自定义provider;工具权限交互-插件/Skill-插件/Skill:launcher-插件/Skill:launcher通过官方app-server-插件/Skill:launcher通过官方app-server协议代理marketplace操作-插件/Skill:launcher通过官方app-server协议代理marketplace操作(不-插件/Skill:launcher通过官方app-server协议代理marketplace操作(不patch运行时),`--),`--browser-use=head),--browser-use=headless默认对Agent`configconfig.example.json定义config.example.json定义了完整的config.example.json定义了完整的可选schemaconfig.example.json定义了完整的可选schema:`providerconfig.example.json定义了完整的可选schema:provider(含glm-5.3config.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/config.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/5.2/5.1/tconfig.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/5.2/5.1/turbo模型清单config.example.json定义了完整的可选schema:provider(含glm-5.3/5.3-flash/5.2/5.1/turbo模型清单)、`model(严格`{mainmodel(严格{main, lite})、model(严格{main, lite})、permission、`storagemodel(严格{main, lite})、permission、storage、model(严格{main, lite})、permission、storage、features(compact/rewindmodel(严格{main, lite})、permission、storage、features(compact/rewind/subagent/memory/smodel(严格{main, lite})、permission、storage、features(compact/rewind/subagent/memory/skill/mcp)、hooks、`skillshooks、skills、plugins等。用户hooks、skills、plugins等。用户配置落点`hooks、skills、plugins等。用户配置落点`~/.zhooks、skills、plugins等。用户配置落点`~/.zcode/cli/config.jsonhooks、skills、plugins等。用户配置落点~/.zcode/cli/config.json,项目级覆盖走`.zcode/config.zcode/config.json.zcode/config.json,**既有文件永不替换###工程化-**运行-**运行时同步-运行时同步:`scripts/sync-运行时同步:scripts/sync-runtime.ts(-运行时同步:scripts/sync-runtime.ts(68 KB)从本地`/-运行时同步:scripts/sync-runtime.ts(68 KB)从本地/Applications/ZCode.app或远程-运行时同步:scripts/sync-runtime.ts(68 KB)从本地/Applications/ZCode.app或远程安装包-运行时同步:scripts/sync-runtime.ts(68 KB)从本地/Applications/ZCode.app或远程安装包提取`resources`resources/glmresources/glm,并把resources/glm,并把严格`parseGlobalArgsresources/glm,并把严格parseGlobalArgs选项表resources/glm,并把严格parseGlobalArgs选项表导resources/glm,并把严格parseGlobalArgs选项表导出到`vendor/extractionresources/glm,并把严格parseGlobalArgs选项表导出到vendor/extraction.json——launcherresources/glm,并把严格parseGlobalArgs选项表导出到vendor/extraction.json——launcher消费,避免,避免维护重复的全局选项列表-**分层-分层验证:`-分层验证:typecheck+ `bun-分层验证:typecheck+bun test-分层验证:typecheck+bun test(单元)+check-分层验证:typecheck+bun test(单元)+check(运行时检查)+ `check-分层验证:typecheck+bun test(单元)+check(运行时检查)+ `check:tui换、图片换、图片附件、嵌套Agent、换、图片附件、嵌套Agent、Mermaid、diff换、图片附件、嵌套Agent、Mermaid、diff、压力测试换、图片附件、嵌套Agent、Mermaid、diff、压力测试等),从观察到的换、图片附件、嵌套Agent、Mermaid、diff、压力测试等),从观察到的终端输出推进而非换、图片附件、嵌套Agent、Mermaid、diff、压力测试等),从观察到的终端输出推进而非固定计时-**发布工具-发布工具链-发布工具链:`-发布工具链:bump-build.ts/-发布工具链:bump-build.ts/build-release.ts/-发布工具链:bump-build.ts/build-release.ts/pack-release.ts/check-package.ts --prepack(子子),子),CI在Node 22.19子),CI在Node 22.19上验证锁定的运行-**更新-更新通知:启动时-更新通知:启动时最多每20小-更新通知:启动时最多每20小时检查一次npm `latest-更新通知:启动时最多每20小时检查一次npmlatest-更新通知:启动时最多每20小时检查一次npmlatest,非阻塞展示,CI自动###一句话定位这是一个**以工程这是一个**以工程化方式这是一个**以工程化方式把闭源桌面Agent运行时「终端这是一个**以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目这是一个以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目——核心价值在40k行的这是一个以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目——核心价值在40k行的T这是一个以工程化方式把闭源桌面Agent运行时「终端化」的适配层项目——核心价值在40k行的TUI重launcherlauncher的薄桥接,而非launcher的薄桥接,而非Agent逻辑本身;目前launcher的薄桥接,而非Agent逻辑本身;目前处于高频迭代期,发布节奏紧凑launcher的薄桥接,而非Agent逻辑本身;目前处于高频迭代期,发布节奏紧凑且由自动化驱动。如果你接下来如果你接下来想深入某一块(例如如果你接下来想深入某一块(例如TUI渲如果你接下来想深入某一块(例如TUI渲染管线如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥、运行时同步机制,如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥、运行时同步机制,或测试策略),我可以如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥、运行时同步机制,或测试策略),我可以继续展开如果你接下来想深入某一块(例如TUI渲染管线、OAuth回调桥、运行时同步机制,或测试策略),我可以继续展开。/→ help /help [command] — Show this slash command help.login/login [zai-coding-plan|bigmodel-coding-plan|zai-coding-plan-api-key <api-key>|bigmodel-clogout/logout — Remove the shared Z.ai login credentials.compact/compact [instructions] — Compact the current conversation with optional instructions.init/init [notes] — Create or update workspace AGENTS.md instructions.expert/expert [status|resume|stop|<task>] — Run or manage the expert workflow.effort/effort [list|<level>] — Show or switch the current session reasoning effort.(1/34)/context→ context Inspect context usage and prompt compositionContext overview32.4K / 1M tokens · 3% used · 967.6K remainingCache health · exact runtime tokensActive branch55% hit · 6 requests ·139.3K input · 77.3K read · 0 writeWhole tree55% hit · 6 requests ·139.3K input · 77.3K read · 0 writeLatest 97% · min 0% · max 97% · 6 turns100%75%50%25%0%······cache hit · ░ uncached request · blank gap = unavailableDetails 1–20 of 34 · ↓ 14 · ←/→ or PgUp/PgDn scroll6b80524e997% hit · 30.5K input · 29.7K readEstimated prompt composition by characters●Tool input/output60,316 chars · 91.9%●Assistant messages5,340 chars · 8.1%●User messages8 chars · 0.0%Session cache totalsLatest request 97% hit rate · 29.7K read · 0 written · 30.5K inputSession tokens 77.3K read · 0 written · 139.3K inputSession total 55% hit rate · 6 requests1 overview · 2 cache trend · 3 composition · v cycle · r refreshDetails 15–34 of 34 · ↑ 14 · ←/→ or PgUp/PgDn scrollSaving session...completed.
\ No newline at end of file