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 @@ -Restored session: 2026717153213CSTzcode-cligit:(main)zcode-cligit:(main)zcodeSYSTEM INITIATEDZCODEv3.3.6-3 · runtime v0.15.2…sword09/Documents/code/ai/zcode-cli · branch main◈ local/GLM-5.2◉ yolo⚡︎maxctx 100% left0 tokensfThought· Ctrl+O to expandBashls -la· runningRead 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/package.json·Ctrl+O to expandBashgit log --oneline -20· queuedrunning Bash…[🕗︎8s ]Activity· 2 active toolsBash· 0sBash◈ local/GLM-5.2◉ yolo⚡︎maxctx 99% left0 tokens… 12 more lines · Ctrl+O to expandBashgit log --oneline -2016ms7edd3e4 docs: restructure README and split detailed docs into docs/ (#44)c4b6256 chore(release): prepare zcode-app-cli 3.3.6-4 (#43)c7768f1 fix(cli): report package version and surface updates immediately (#42)5af9d92 chore(release): prepare zcode-app-cli 3.3.6-3 (#41)35030e0 fix(tui): show full details for long question options (#40)fdff8e3 test(tui): stabilize one-hertz timer smoke (#39)d6e3624 fix(release): support npm 12 pack output (#38)db26f7d chore(release): prepare zcode-app-cli 3.3.6-2 (#37)f611e78 fix(release): resolve absolute updater artifact URLs (#36)39c3f15 perf(tui)!: optimize streaming rendering and add performance gates (#35)1bc9e58 refactor(tui): improve input queue and tool renderer structure (#34)8e95fab feat(tui): surface runtime retry and stream stall status (#33)1a0b297 feat(tui): add runtime-aware steering and queued follow-ups (#32)6956ea3 fix(tui): consume image attachments on submit (#31)51405b3 feat(tui): add keyboard attachment management (#30)… 5 more lines · Ctrl+O to expandwaiting for model…[🕒︎15s ]Read 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/README.md·Ctrl+O to expandBashls -la src/ docs/ scripts/ test/ packages/ vendor/ 2>/dev/null28msdocs/:total 48drwxr-xr-x@ 5 kingsword09 staff 160 7 17 15:30 .drwxr-xr-x 26 kingsword09 staff 832 7 17 15:32 ..-rw-r--r--@ 1 kingsword09 staff 9489 7 17 15:30 CONFIGURATION.md-rw-r--r--@ 1 kingsword09 staff 3469 7 17 15:30 DEVELOPMENT.md-rw-r--r--@ 1 kingsword09 staff 8088 7 17 15:30 RELEASING.mdpackages/:total 0drwxr-xr-x 3 kingsword09 staff 96 7 13 15:34 .drwxr-xr-x 26 kingsword09 staff 832 7 17 15:32 ..drwxr-xr-x 5 kingsword09 staff 160 7 13 15:41 zcode-tuiscripts/:… 104 more lines · Ctrl+O to expand34mstotal 8drwxr-xr-x 5 kingsword09 staff 160 7 13 15:41 .drwxr-xr-x 3 kingsword09 staff 96 7 13 15:34 ..drwxr-xr-x@ 3 kingsword09 staff 96 7 17 15:06 dist-rw-r--r-- 1 kingsword09 staff 247 7 13 15:40 package.jsondrwxr-xr-x 56 kingsword09 staff 1792 7 17 12:18 src{"name": "@zcode/tui","version": "0.1.0","type": "module","main": "dist/index.js","exports": {".": "./dist/index.js"},"dependencies": {Bashfind src -type f -name "*.ts" | xargs wc -l 2>/dev/null | tail -20· runningBashfind packages -type f -name "*.ts" 2>/dev/null | head -30 && echo "---" && find packages -type f-n…· queuedrunning Bash…[🕐︎25s ]◈ local/GLM-5.2◉ yolo⚡︎maxctx 98% left0 tokensBashfind src -type f -name "*.ts" | xargs wc -l 2>/dev/null | tail -20271ms236 src/launcher.ts171 src/update-check.ts165 src/zai-oauth.ts187 src/model-access.ts39 src/command.ts391 src/darwin-oauth-callback.ts1189 totalBashfind packages -type f -name "*.ts" 2>/dev/null | head -30 && echo "---" && find packages -type f-n…· runningActivity· 1 active toolBashfind packages -type f -name "*.ts" 2>/dev/null | head -30 && echo "---" && find packages -type f-n…555mspackages/zcode-tui/src/panels.tspackages/zcode-tui/src/workspace-diff.tspackages/zcode-tui/src/tool-view.tspackages/zcode-tui/src/session-status.tspackages/zcode-tui/src/thinking-view.tspackages/zcode-tui/src/system-event-view.tspackages/zcode-tui/src/selection-command.tspackages/zcode-tui/src/goal-status.tspackages/zcode-tui/src/diff-browser.tspackages/zcode-tui/src/runtime-projection.tspackages/zcode-tui/src/interactions.tspackages/zcode-tui/src/notifications.tspackages/zcode-tui/src/welcome-banner.tspackages/zcode-tui/src/terminal-text.tspackages/zcode-tui/src/input-queue.ts… 21 more lines · Ctrl+O to expandwaiting for model…[🕑︎26s ]Bashfind packages/zcode-tui/src -type f -name "*.ts" | wc -l && echo "---" && lspackages/zcode-tui/src/· runningRead 2 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/tsdown.config.ts·Ctrl+O to expandrunning Bash…[🕘︎33s ]Bashfind packages/zcode-tui/src -type f -name "*.ts" | wc -l && echo "---" && lspackages/zcode-tui/src/285ms62---assistant-stream.tsattachment-bar.tsattachments.tsbounded-tool-text.tschoice-dialog.tscode-highlighter.tscolor-scheme.tscontext-status-view.tsdiff-browser.tsevents.tsexit-summary.tsfile-diff-budget.tsfile-diff-view.ts… 41 more lines · Ctrl+O to expandwaiting for model…[🕙︎34s ]waiting for model…[🕕︎42s ]Bashls bin/ && echo "---" && cat bin/zcode.ts 2>/dev/null | head -40zcode.jszcode.tsimport { main } from "../src/launcher.ts";process.exitCode = await main(process.argv.slice(2));Bashls -la .github/ && find .github -type f | head -20· runningRead 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui/src/index.ts·Ctrl+O...running Bash…[🕕︎42s ]Bashls -la .github/ && find .github -type f | head -20260msdrwxr-xr-x@ 3 kingsword09 staff 96 7 14 21:40 .drwxr-xr-x@ 5 kingsword09 staff 160 7 14 22:48 workflows.github/workflows/publish.yml.github/workflows/prepare-release.yml.github/workflows/ci.ymlcontents: readconcurrency:group: zcode-cli-ci-${{ github.event.pull_request.number || github.ref }}cancel-in-progress: true… 36 more lines · Ctrl+O to expandRead 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/docs/DEVELOPMENT.md·Ctrl+O to expandBashwc -l packages/zcode-tui/src/*.ts 2>/dev/null | sort -rn | head -1513ms15424 total3542 packages/zcode-tui/src/rich-markdown.ts3477 packages/zcode-tui/src/index.ts722 packages/zcode-tui/src/code-highlighter.ts554 packages/zcode-tui/src/tool-view.ts526 packages/zcode-tui/src/transcript.ts495 packages/zcode-tui/src/file-diff-view.ts451 packages/zcode-tui/src/choice-dialog.ts414 packages/zcode-tui/src/events.ts391 packages/zcode-tui/src/notifications.ts325 packages/zcode-tui/src/runtime-projection.ts237 packages/zcode-tui/src/tool-payload.ts231 packages/zcode-tui/src/terminal-text.ts226 packages/zcode-tui/src/workspace-diff.ts196 packages/zcode-tui/src/bounded-tool-text.tswaiting for model…[🕙︎1m 10s ]"appVersion": "3.3.6","tui": {"implementation": "@zcode/tui","foundation": "@earendil-works/pi-tui"… 9 more lines · Ctrl+O to expandrunning Bash…[🕙︎1m 10s ]drwxr-xr-x@ 4 kingsword09 staff 128 7 15 19:35 .drwxr-xr-x@ 3 kingsword09 staff 96 7 15 16:12 plansdrwxr-xr-x 3 kingsword09 staff 96 7 15 19:35 tasks"schemaVersion": 1,"platform": "linux","arch": "x64","url": "https://cdn-zcode.z.ai/zcode/electron/releases/3.3.6/linux-x64/ZCode-3.3.6-linux-x64.deb","sha512": "NwQzSBf+Q5FR3VWwAEQUeALHR9jvDjRT7PJLVQ4iLOyTxPm7Lt8kMQbQXI7MJ/wEDQ0EK3FBBjJQVlJiC4Kgsw=="}Bashls test/fixtures/ 2>/dev/null && find test/fixtures -type f | head -20263mstui-features.tstui-login-override.tstui-pressure.tstest/fixtures/tui-pressure.tstest/fixtures/tui-features.tstest/fixtures/tui-login-override.tswaiting for model…[🕕︎1m 18s ]Thinking· activeRead 3 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/docs/CONFIGURATION.md·Ctrl+O to expand◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% left0 tokensthinking…[🕑︎1m 26s ]:📊:zcode-app-cli:3.3.6-4:MIT:Kingsword:[github.com/kingsthinking…[🕒︎1m 27s ]:github.com/kingsword09/zcode-cli(https://github.com/kingsword09/zcode-cli)ZCode Desktopagent,Zthinking…[🕓︎1m 28s ]ZCode Desktopagent,ZCode Desktopresources/glm,@zcode/tui,Node.js🏗️```textNode.js npm launcher (config / login / version metadata)```inherited stdin / stdout / stderrofficial zcode.cjs agent runtime (vendor/, 9.2MB)local @zcode/tui adapter (packages/zcode-tui/)@earendil-works/pi-tui (TUI)thinking…[🕕︎1m 30s ]:-IMEresize,launcherPTY-:0.15.2,ZCode App3.3.6-:macOS / Linux / Windows (x64 & ARM64)-OAuthmacOS(`thinking…[🕖︎1m 31s ]-OAuthmacOS(zcode://zai-auth/callback)📁src/Node launcher(///)6,~1189packages/zcode-tui/src/TUI()62,~16284vendor/ZCode.app(`thinking…[🕗︎1m 32s ]src/Node launcher(///)6,~1189packages/zcode-tui/src/TUI()62,~16284vendor/ZCode.app(zcode.cjs9.2MB)+-scripts/////16test/60+`thinking…[🕘︎1m 33s ]docs/CONFIGURATION / DEVELOPMENT / RELEASING3bin/zcode.ts/zcode.js-.github/workflows/CI / publish / prepare-release3 workflows🔑### 1. Launcher(src/)-`thinking…[🕙︎1m 34s ]- launcher.ts(236):,--version(SIGINT/SIGTERM/SIGHUP)- model-access.ts:访- zai-oauth.ts+darwin-oauth-callback.ts:macOSOAuth(background-only callbackreceiverthinking…[🕚︎1m 35s ]receiver,state,zcode://handler)- update-check.ts:20npmlatest,~/.zcode/cli/version.json### 2. TUI(packages/zcode-tui/src/),@earendil-works/pi-tui:**&thinking…[🕑︎1m 38s ]&:- rich-markdown.ts(3542,) -MarkdownCJKPierreinline diff- code-highlighter.ts(722)- file-diff-view.ts(495) -word-leveldiff-`terminal-text.tsthinking…[🕒︎1m 39s ]- terminal-text.ts- CJK&:- tool-view.ts(554) /tool-renderers//tool-tree-view.ts- AgentPrompt/Response- choice-dialog.ts(451) -- transcript.ts(526) -transcript- interactions.ts-AskUserQuestionExitPlanMode:- events.ts(414) -/- runtime-projection.ts(325) -- goal-status.ts/ `thinking…[🕓︎1m 40s ]- goal-status.ts/session-status.ts/turn-status.ts-- input-queue.ts-(steering):- diff-browser.ts-/diff- rewind.ts-Esc退- workspace-autocomplete.ts-@thinking…[🕔︎1m 41s ]- attachments.ts/attachment-bar.ts-### 3. Vendor- vendor/zcode.cjs:9.2MBElectron-node bundle- vendor/packages/:6(android-emulatordocument-skillsios-simulatorrestore-legacy-sessionsskill-creatorzcode-guide)thinking…[🕕︎1m 42s ]- vendor/extraction.json:(App 3.3.6 / CLI 0.15.2,/Applications/ZCode.app)- zcode-runtime.lock.json:Linux x64URLsha512🛠️bun run buildtsdownthinking…[🕖︎1m 43s ]bun run buildtsdown:launcher (bin/zcode.js) + tui (packages/zcode-tui/dist)bun run sync:local/Applications/ZCode.appbun run sync:lockedzcode-runtime.lock.jsonbun run check+check-runtime.ts`bun runthinking…[🕗︎1m 44s ]bun run buildtsdown:launcher (bin/zcode.js) + tui(packages/zcode-tui/dist)bun run sync:local/Applications/ZCode.appbun run sync:lockedzcode-runtime.lock.jsonbun run check+check-runtime.tsbun run check:tui4PTYbun testbun run typechecktsc --noEmitbun run verify:tui-perfTUIrelease:prepare/release:build/release:packthinking…[🕘︎1m 45s ]✅︎-广:60+,launcherOAuthTUIrelease-CI:.github/workflows/ci.ymlNode 22.19 + Bun 1.3.12`release:buildthinking…[🕙︎1m 46s ]-CI:.github/workflows/ci.ymlNode 22.19 + Bun 1.3.12release:build+release:pack+,concurrency cancel-:zcode-runtime.lock.jsonlinux-x64,sync-runtime.ts(30KB)-:bench-tui-stream.ts(56KB)bench-tui-memory.tsverify-tui-perf.ts-:SemVerthinking…[🕚︎1m 47s ]-:SemVer prerelease3.3.6-4,npm `@thinking…[🕛︎1m 48s ]-:SemVer prerelease3.3.6-4,npm@latesttagApp+build📦︎package.jsonfiles:bin/zcode.js, vendor/, config.example.json,zcode-runtime.lock.json, README.md, LICENSE`provenance: truethinking…[🕐︎1m 49s ]provenance: true(npm),prepackcheck-package.ts --prepack🎯1.:launcher / vendor/ TUI2.:9MBzcode.cjs,thinking…[🕒︎1m 51s ]2.:9MBzcode.cjs,TUI+ macOS OAuth3.:sync/check/bench/release,PTY4.:CJKMermaidPierrediffOSC 95.**thinking…[🕓︎1m 52s ]5.:TUI(39c3f15!):- vendor/zcode.cjs9.2MB,,Z.ai(README)- packages/zcode-tui/src/rich-markdown.tsthinking…[🕔︎1m 53s ]- packages/zcode-tui/src/rich-markdown.ts3542,-demo.cast,asciinema,README TODO/GIF(OAuthTUI线release),[🕛︎1m 54s ]◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% left31.7K tokensWorked for 1m 54sToken usage: total=31,688 input=28,681 output=3,007To continue this session, runzcode --resume sess_7356f931-773a-450e-a485-6b0251ddd081zcode-cligit:(main)zcodezcode-cligit:(main)zcodezcode-cligit:(main)zcodezcode-cligit:(main)zcodefeworking…[🕛︎0s ]waiting for model…[🕛︎0s ]waiting for model…[🕐︎1s ]waiting for model…[🕑︎2s ]waiting for model…[🕒︎3s ]waiting for model…[🕓︎4s ]waiting for model…[🕔︎5s ]waiting for model…[🕕︎6s ]waiting for model…[🕖︎7s ]thinking…[🕖︎7s ]thinking…[🕗︎8s ]waiting for model…[🕗︎8s ]waiting for model…[🕘︎9s ]waiting for model…[🕙︎10s ]waiting for model…[🕚︎11s ]waiting for model…[🕛︎12s ]waiting for model…[🕐︎13s ]waiting for model…[🕑︎14s ]Bashls -la src/ docs/ scripts/ test/ packages/ vendor/ 2>/dev/null· runningrunning Bash…[🕒︎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 ]waiting for model…[🕚︎23s ]waiting for model…[🕛︎24s ]waiting for model…[🕐︎25s ]Bashls -la packages/zcode-tui/ && cat packages/zcode-tui/package.json 2>/dev/null | head -50running Bash…[🕑︎26s ]waiting for model…[🕒︎27s ]waiting for model…[🕓︎28s ]waiting for model…[🕔︎29s ]waiting for model…[🕕︎30s ]waiting for model…[🕖︎31s ]waiting for model…[🕗︎32s ]waiting for model…[🕘︎33s ]running Bash…[🕙︎34s ]waiting for model…[🕚︎35s ]waiting for model…[🕛︎36s ]waiting for model…[🕐︎37s ]waiting for model…[🕑︎38s ]waiting for model…[🕒︎39s ]waiting for model…[🕓︎40s ]waiting for model…[🕔︎41s ]waiting for model…[🕖︎43s ]waiting for model…[🕗︎44s ]waiting for model…[🕘︎45s ]waiting for model…[🕙︎46s ]waiting for model…[🕚︎47s ]waiting for model…[🕛︎48s ]waiting for model…[🕐︎49s ]waiting for model…[🕑︎50s ]waiting for model…[🕒︎51s ]waiting for model…[🕓︎52s ]Bashcat .github/workflows/ci.yml 2>/dev/null | head -6015msname: CIon:push:branches:- mainpull_request:workflow_dispatch:permissions:Bashwc -l packages/zcode-tui/src/*.ts 2>/dev/null | sort -rn | head -15· runningrunning Bash…[🕔︎53s ]waiting for model…[🕔︎53s ]waiting for model…[🕕︎54s ]waiting for model…[🕖︎55s ]waiting for model…[🕗︎56s ]waiting for model…[🕘︎57s ]waiting for model…[🕙︎58s ]waiting for model…[🕚︎59s ]waiting for model…[🕛︎1m 00s ]waiting for model…[🕐︎1m 01s ]waiting for model…[🕑︎1m 02s ]waiting for model…[🕒︎1m 03s ]waiting for model…[🕓︎1m 04s ]waiting for model…[🕔︎1m 05s ]waiting for model…[🕕︎1m 06s ]waiting for model…[🕖︎1m 07s ]waiting for model…[🕗︎1m 08s ]waiting for model…[🕘︎1m 09s ]Bashls vendor/packages/ 2>/dev/null && echo "---" && cat vendor/extraction.json 2>/dev/null && echo"--…22msandroid-emulator-plugindocument-skills-pluginios-simulator-pluginrestore-legacy-sessions-pluginskill-creator-pluginzcode-guide-plugin"cliVersion": "0.15.2","extractedAt": "2026-07-17T04:38:40.011Z","source": "/Applications/ZCode.app",Bashls -la .zcode/ 2>/dev/null && echo "---" && cat zcode-runtime.lock.json 2>/dev/null· runningBashls test/fixtures/ 2>/dev/null && find test/fixtures -type f | head -20· queuedBashls -la .zcode/ 2>/dev/null && echo "---" && cat zcode-runtime.lock.json 2>/dev/null14msBashls test/fixtures/ 2>/dev/null && find test/fixtures -type f | head -20· runningwaiting for model…[🕚︎1m 11s ]waiting for model…[🕛︎1m 12s ]waiting for model…[🕐︎1m 13s ]waiting for model…[🕑︎1m 14s ]waiting for model…[🕒︎1m 15s ]waiting for model…[🕓︎1m 16s ]waiting for model…[🕔︎1m 17s ]Let me look at a few more important files tothinking…[🕕︎1m 18s ]waiting for model…[🕖︎1m 19s ]waiting for model…[🕗︎1m 20s ]waiting for model…[🕘︎1m 21s ]waiting for model…[🕙︎1m 22s ]waiting for model…[🕚︎1m 23s ]waiting for model…[🕛︎1m 24s ]waiting for model…[🕐︎1m 25s ]waiting for model…[🕑︎1m 26s ]I have a good understanding of the project now. Let me compile a comprehensive📊:`zcode:`3.3.6-:[github.com/kingsword09/zcode-cli](https://github.com/kingsword09/z**ZCode Desktopagentlocal @zcode/tui adapter (packages/zcodethinking…[🕔︎1m 29s ]-OAuthmacOS(`zcode://zai-authsrc/Node launcher(///)6,~1189packages/zcode-tui/src/TUI()- model-access.ts:receiver,state,zcode://handlerthinking…[🕛︎1m 36s ]thinking…[🕐︎1m 37s ]- rich-markdown.ts(3542- file-diff-view.ts(495) -word-level- diff-browser.ts- vendor/zcode.cjs:9- vendor/packages/:6`bun run check-**-:zcode-runtime.lock.jsonlinux-x64,sync-runtime.ts(30KB)provenance: true(npm),prepack1.:thinking…[🕑︎1m 50s ]3.**4.**4.:CJKMermaid4.:CJKMermaidPierrediffOSC 95.:TUI(39c3f15!)- packages/zcode-tui/src/rich-markdown.ts3542,Saving session...completed. \ No newline at end of file +Restored session: 2026828190541CSTzcode-cligit:(main)zcode-cligit:(main)npxzcode-app-cli@latest◆ ZCODEv3.10.1-17Workspace~/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 · mainThinking· activethinking…[🕒︎3s ]The user wants me to analyze the current project. Let me explore the codebase to understand whatthinking…[🕓︎4s ]Thought· Ctrl+O to expandBash· preparingReading 1 file… ·Ctrl+O to expandBashls -la /Users/kingsword09/Documents/code/ai/zcode-cli· runningRead 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/package.json·Ctrl+O to expandActivity· 1 active toolBash· 0s◈ local/GLM-5.2◉ yolo⚡︎maxctx 99% leftsession 0 tokensBashls -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 expandBashls -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 expandBashls -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 assetsTUIpreparing 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 expandBashfind /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 expandlauncherpreparing Bash…[🕗︎32s ]launcherRead 1 file ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/src/launcher.ts·Ctrl+O to expand· runningrunning Bash…[🕙︎34s ]Activity· 2 active toolsBash◈ local/GLM-5.2◉ yolo⚡︎maxctx 97% leftcache 35% hitsession 0 tokens2723 total=== packages/zcode-tui/src/ ===… 23 more lines · Ctrl+O to expand· runningBashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (last43ms=== 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 expandTUIindex.tsgitRead 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-17ZCode DesktopAgentAgentzcode-app-clithinking…[🕙︎58s ]12 MBvendor/zcode.cjsTUIGUINode.jszcode-app-cliv3.10.1-17ZCode DesktopAgentAgent12 MBvendor/zcode.cjsTUIGUINode.js###thinking…[🕚︎59s ]``````bin/zcode.{ts,js} → launcher (src/)//thinking…[🕛︎1m 00s ]↓ spawn child,stdiovendor/zcode.cjs (12MB)Agent////MCPTUIthinking…[🕐︎1m 01s ]packages/zcode-tui @earendil-works/pi-tuithinking…[🕑︎1m 02s ]launcherPTYIMElauncherPTYIMEresize###thinking…[🕒︎1m 03s ]/TypeScript 7 + tsdownESM, target node22.19/TypeScript 7 + tsdownESM, target node22.19/Bun 1.3.12bun run devts/TypeScript 7 + tsdownESM, target node22.19/Bun 1.3.12bun run devtsTUI@earendil-works/pi-tui^0.84.3thinking…[🕓︎1m 04s ]/TypeScript 7 + tsdownESM, target node22.19/Bun 1.3.12bun run devtsTUI@earendil-works/pi-tui^0.84.3playwright-core1.59.1Node.js ≥22.19macOS/Linux/Windows x64/ARM64###vendornode_modulesthinking…[🕔︎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,400index.ts5,355rich-markdown.ts3,542——`thinking…[🕖︎1m 07s ]test/+scripts/~2,500+ PTY+TS~45,600thinking…[🕗︎1m 08s ]TUI######--912026-07-13 → 08-286thinking…[🕘︎1m 09s ]-912026-07-13 → 08-286-Kingsword71+ github-actions bot19+ 1thinking…[🕙︎1m 10s ]-Kingsword71+ github-actions bot19+ 1-mainv3.7.3-10v3.10.1-17AppSemVer--19release prep11fix(tui)7feat(tui)thinking…[🕚︎1m 11s ]-mainv3.7.3-10v3.10.1-17AppSemVer--19release prep11fix(tui)7feat(tui)——TUI###thinking…[🕛︎1m 12s ]-pi-tuiCJK@/Plugin$Skillprompt-pi-tuiCJK@/Plugin$Skillprompt-/mode/model/resume/pluginsupstream slashShift+Tabthinking…[🕐︎1m 13s ]-/mode/model/resume/pluginsupstream slashShift+TabEsc退workspace checkpoint-**Esc退workspace checkpoint-Ctrl+V//paste-imageAgentMarkdownthinking…[🕑︎1m 14s ]-Ctrl+V//paste-imageAgentMarkdownPierreinline diffMermaidPierreinline diffMermaid-/diff/context/status/activity/taskstranscriptn/NAgent/Bash/Workflowthinking…[🕒︎1m 15s ]Agent/Bash/Workflow-macOS OAuthzcode://zai-auth/callbackCoding Plan API keyprovider-/Skilllauncherapp-servermarketplacepatchthinking…[🕓︎1m 16s ]-/Skilllauncherapp-servermarketplacepatch-/Skilllauncherapp-servermarketplacepatch--browser-use=headlessAgent###thinking…[🕔︎1m 17s ]config.example.jsonschemaproviderglm-5.3/5.3-flash/5.2/5.1/turboconfig.example.jsonschemaproviderglm-5.3/5.3-flash/5.2/5.1/turbomodel{main, lite}permissionstoragefeaturescompact/rewind/subagent/memory/skill/mcphooksskillsplugins~/.zcode/cli/config.jsonthinking…[🕕︎1m 18s ]hooksskillsplugins~/.zcode/cli/config.jsonzcode.json.zcode/config.json###thinking…[🕖︎1m 19s ]-scripts/sync-runtime.ts68 KB/Applications/ZCode.appresources/glmparseGlobalArgsvendor/extraction.json——launcherthinking…[🕗︎1m 20s ]-typecheck+bun test+check+check:tuiPTYAgentMermaiddiffthinking…[🕘︎1m 21s ]-bump-build.ts/build-release.ts/pack-release.ts/check-package.ts --prepackprepackCINode 22.19thinking…[🕙︎1m 22s ]-20npmlatestCI###Agent——thinking…[🕚︎1m 23s ]Agent——40kTUIlauncherAgentthinking…[🕛︎1m 24s ]TUI线OAuthWorked 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 read267592bdb0% 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 · EscWorked for 1m 24sToken usage: total=33,491 input=30,466 output=3,025To continue this session, runzcode --resume sess_1f94d703-bae2-465f-aa7f-c3d209f5efb1zcode-cligit:(main)npx zcode-app-cli@latestzcode-cligit:(main)npx zcode-app-cli@latestzcode-cligit:(main)npxzcode-app-cli@latest◆ ZCODEWorkspaceAsk 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 thisprojectpreparing 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 itthinking…[🕚︎11s ]preparing Bash…[🕚︎11s ]preparing Bash…[🕛︎12s ]Reading 3 files… ·Ctrl+O to expandReading 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 binBashls -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 ]TUITUIRead 4 files ·⎿ /Users/kingsword09/Documents/code/ai/zcode-cli/tsconfig.json·Ctrl+O to expandBashfind /Users/kingsword09/Documents/code/ai/zcode-cli/packages/zcode-tui -type f -not -path'*/node_m…· runningBashfind /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 structurelauncherlauncherlauncherlauncherpreparing 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/ ==="&…· runningBashecho "=== vendor/zcode.cjs size ===" && ls -lh vendor/zcode.cjs && echo && echo "=== git log (lastBashecho "=== src/ ===" && wc -l src/*.ts | sort -n && echo && echo "=== packages/zcode-tui/src/ ==="&…· runningBashecho "=== 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.tsBashecho "=== 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`TUIindex.tsTUIindex.tsgitTUIindex.tsgitTUIindex.tsgitTUIindex.tsgitpreparing 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 picturezcode**`zcode-app**zcode-app-cli**zcode-app-cliv3.10.1-17zcode-app-cliv3.10.1-17ZCode Desktopzcode-app-cliv3.10.1-17ZCode DesktopAgentzcode-app-cliv3.10.1-17ZCode DesktopAgentzcode-app-cliv3.10.1-17ZCode DesktopAgent12 MB12 MB12 MBvendor/zcode.cjs12 MBvendor/zcode.cjsTUI12 MBvendor/zcode.cjsTUIGUI``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////MCPpackagespackages/zcode-tpackages/zcode-tui @epackages/zcode-tui @earendil-packages/zcode-tui @earendil-works/pi-tuipackages/zcode-tui @earendil-works/pi-tuilauncherlauncherPTYlauncherPTYlauncherPTYIMElauncherPTYIMEresizeresizeresize###||||||/TypeScript/TypeScript 7 + ts/TypeScript 7 + tsdownESM/TypeScript 7 + tsdownESM, target/TypeScript 7 + tsdownESM, target node22.19/TypeScript 7 + tsdownESM, target node22.19//Bun/Bun 1/Bun 1.3.12`bun/Bun 1.3.12bun run dev/Bun 1.3.12bun run devtsTTUITUI`@eTUI@earendil-works/pi-tuiTUI@earendil-works/pi-tui^0.84.3`play`playwright-coreplaywright-core1.59.playwright-core1.59.1playwright-core1.59.1Node.jsNode.js ≥22.19Node.js ≥22.19macOS/Linux/Windows xNode.js ≥22.19macOS/Linux/Windows x64/ARM64#########vendornode_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) / OAuthsrc/~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/zcodesrc/~2,700launcher(549) / plugin-cli(588) / OAuth(391) /desktop-migration(340) / model-access(247)packages/zcode-tui/src/~40packages/zcode-tui/src/~40,400index.tspackages/zcode-tui/src/~40,400index.ts5,355`packages/zcode-tui/src/~40,400index.ts5,355`rich-markpackages/zcode-tui/src/~40,400index.ts5,355`rich-markdown.tspackages/zcode-tui/src/~40,400index.ts5,355rich-markdown.ts3,542packages/zcode-tui/src/~40,400index.ts5,355rich-markdown.ts3,542——test/+scripts/test/+scripts/~2,500test/+scripts/~2,500test/+scripts/~2,500+ PTtest/+scripts/~2,500+ PTY****TSTS**~45,TS~45,600TUITUITUITUI###-91-91-91**2026-07-13 → 08-912026-07-13 → 08-286--Kingsword-Kingsword71+ github-Kingsword71+ github-actions bot19-Kingsword71+ github-actions bot19-Kingsword71+ github-actions bot19+ 1--main-main-main`v3.-mainv3.7.3-10-mainv3.7.3-10→ `v3.10.1-mainv3.7.3-10v3.10.1-17App-mainv3.7.3-10v3.10.1-17App-mainv3.7.3-10v3.10.1-17AppSemVer-mainv3.7.3-10v3.10.1-17AppSemVer`-19-19release prep11-19release prep11fix(tui)-19release prep11fix(tui)7`-19release prep11fix(tui)7feat(tui)——TUI-19release prep11fix(tui)7feat(tui)——TUI-19release prep11fix(tui)7feat(tui)——TUI###-**-pi-pi-tui-pi-tuiCJK-pi-tuiCJK@-pi-tuiCJK@/Plugin-pi-tuiCJK@/Plugin-pi-tuiCJK@/Plugin$Skill-pi-tuiCJK@/Plugin$Skillprompt-**----/mode/model-/mode/model/resume/plugins-/mode/model/resume/pluginsupstream slashEsc退--Ctrl+V-Ctrl+V/`-Ctrl+V//paste-image-Ctrl+V//paste-image-Ctrl+V//paste-imageAgentPPierreinline diffPierreinline diff-**--/diff`/context-/diff/context/status-/diff/context/status/activity`/-/diff/context/status/activity/taskstranscript-/diff/context/status/activity/taskstranscript`n-/diff/context/status/activity/taskstranscriptn/`-/diff/context/status/activity/taskstranscriptn/N-/diff/context/status/activity/taskstranscriptn/N-/diff/context/status/activity/taskstranscriptn/NAgent-mac-macOS OAuth`zcode://-macOS OAuth`zcode://zai-auth/callback-macOS OAuthzcode://zai-auth/callback-macOS OAuthzcode://zai-auth/callback-macOS OAuthzcode://zai-auth/callbackCoding Plan API-macOS OAuthzcode://zai-auth/callbackCoding Plan API key-macOS OAuthzcode://zai-auth/callbackCoding Plan API keyprovider-macOS OAuthzcode://zai-auth/callbackCoding Plan API keyprovider-/Skill-/Skilllauncher-/Skilllauncherapp-server-/Skilllauncherapp-servermarketplace-/Skilllauncherapp-servermarketplace-/Skilllauncherapp-servermarketplacepatch`--`--browser-use=head--browser-use=headlessAgent`configconfig.example.jsonconfig.example.jsonconfig.example.jsonschemaconfig.example.jsonschema`providerconfig.example.jsonschemaproviderglm-5.3config.example.jsonschemaproviderglm-5.3/5.3-flash/config.example.jsonschemaproviderglm-5.3/5.3-flash/5.2/5.1/tconfig.example.jsonschemaproviderglm-5.3/5.3-flash/5.2/5.1/turboconfig.example.jsonschemaproviderglm-5.3/5.3-flash/5.2/5.1/turbo`model`{mainmodel{main, lite}model{main, lite}permission`storagemodel{main, lite}permissionstoragemodel{main, lite}permissionstoragefeaturescompact/rewindmodel{main, lite}permissionstoragefeaturescompact/rewind/subagent/memory/smodel{main, lite}permissionstoragefeaturescompact/rewind/subagent/memory/skill/mcphooks`skillshooksskillspluginshooksskillsplugins`hooksskillsplugins`~/.zhooksskillsplugins`~/.zcode/cli/config.jsonhooksskillsplugins~/.zcode/cli/config.json`.zcode/config.zcode/config.json.zcode/config.json**###-**-**-`scripts/sync-scripts/sync-runtime.ts-scripts/sync-runtime.ts68 KB`/-scripts/sync-runtime.ts68 KB/Applications/ZCode.app-scripts/sync-runtime.ts68 KB/Applications/ZCode.app-scripts/sync-runtime.ts68 KB/Applications/ZCode.app`resources`resources/glmresources/glmresources/glm`parseGlobalArgsresources/glmparseGlobalArgsresources/glmparseGlobalArgsresources/glmparseGlobalArgs`vendor/extractionresources/glmparseGlobalArgsvendor/extraction.json——launcherresources/glmparseGlobalArgsvendor/extraction.json——launcher-**-`-typecheck+ `bun-typecheck+bun test-typecheck+bun test+check-typecheck+bun test+check+ `check-typecheck+bun test+check+ `check:tuiAgentAgentMermaiddiffAgentMermaiddiffAgentMermaiddiffAgentMermaiddiffAgentMermaiddiff-**--`-bump-build.ts/-bump-build.ts/build-release.ts/-bump-build.ts/build-release.ts/pack-release.ts/check-package.ts --prepackCINode 22.19CINode 22.19-**--20-20npm `latest-20npmlatest-20npmlatestCI###******Agent**AgentAgent——40kAgent——40kTAgent——40kTUIlauncherlauncherlauncherAgentlauncherAgentlauncherAgentTUITUI线TUI线OAuthTUI线OAuthTUI线OAuthTUI线OAuthTUI线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 charactersTool 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