---
title: "Z.ai's coding agent swallowed 42,411 files, and the developers got the bill"
description: "ZCode packed a developer's whole workspace into an archive only Z.ai could open, then logged 564 failed attempts to ship it to Alibaba Cloud. The fix and the audits describe an empty bucket, and the listing had compounded to near nine times its IPO price by late August."
publisher: "The Inference"
section: "Security"
published: 2026-09-29T23:34:13.769Z
modified: 2026-09-29T23:34:13.769Z
canonical: https://theinference.org/article/z-ai-s-coding-agent-swallowed-42-411-files-and-the-developers-got-the-bill
language: en
keywords: "Z.ai, AI Agents, Security, China, Developer Tools"
---

# Z.ai's coding agent swallowed 42,411 files, and the developers got the bill

> ZCode packed a developer's whole workspace into an archive only Z.ai could open, then logged 564 failed attempts to ship it to Alibaba Cloud. The fix and the audits describe an empty bucket, and the listing had compounded to near nine times its IPO price by late August.

Two [Z.ai](https://theinference.org/markets/companies/z-ai) stories ran through the same fortnight and never touched. The first is a trust scandal: ZCode, the company's coding agent, was caught [packing a developer's entire workspace into an encrypted archive and logging 564 failed attempts](https://mixed-news.com/en/zai-zcode-packed-42411-files-564-upload-attempts/) to upload it to Alibaba Cloud [1][2].

The second is a commercial account: a company-built AI agent standing up inference on more than 100,000 Chinese-made accelerators [3], under [a listing that had compounded to near nine times its January IPO price by late August](https://theinference.org/article/z-ai-banked-5-02bn-days-before-its-coding-assistant-was-caught-packaging-git-histories) [4]. Developers are paying for the first. The second is the business.

## The capture ran unconditionally, sealed with a key only Z.ai held

On 18 September 2026 the developer who writes as ferstar traced a swollen ZCode directory to a 313MB encrypted snapshot of a commercial project: 42,411 files, the bulk of it Git history and cached assets [1][2][5]. The archive sat pending after 564 failed uploads; a second snapshot, a 538-file public repository compressed to about 15KB, did reach [Alibaba](https://theinference.org/markets/companies/alibaba)'s storage [1][2].

The contents were sealed with AES-256-CTR, the key wrapped with RSA-OAEP, its private half held only on Z.ai's servers, so neither ferstar nor the ZCode client could open what had been taken [1][2][6]. Capture ran unconditionally: the two visible settings governed downstream use, not whether the snapshot was taken [1]. Z.ai traced the origin to a ["Codebase Indexing" feature enabled by default](https://www.msn.com/en-us/news/other/chinas-zai-disables-ai-coding-assistant-features-after-security-issue/ar-AA2cG96x) [7].

*Chart: **The packed archive was overwhelmingly Git history and cached assets** Pie chart of the 313MB encrypted snapshot: 196.1MB Git large-file cache, 102.2MB Git objects carrying full commit history, and 14.7MB of reflog and everything else*

*Composition of the 313MB encrypted snapshot ferstar found on 18 September 2026, in megabytes, as stated in The Next Web's account of his analysis; the third slice is derived by subtraction. Source: The Next Web, 22 September 2026. [1]*

## Deletion attested by the deleter

Version 3.14.0 removed the Repo Wiki entry point and the repository-upload workflow, and the source shipped on GitHub under Apache-2.0 [6][8][9]. CAICT, the ministry-affiliated assessment body, [found the zcode-prod bucket in a zero-data state](https://technode.com/2026/09/24/zhipu-says-zcode-removed-repository-upload-paths-after-data-controversy/), and NSFOCUS confirmed the bucket and every object in it deleted [8][9]. Z.ai says the data "has never been used for model training" and has promised the full assessment reports [6][9].

The published repository carries two commits: the development history and the upload code are gone, so the old behavior can no longer be inspected [1][6]. Nobody has said how long it ran or how many workspaces it captured [1]. A leading Chinese robotics firm has banned Z.ai's tools internally [10]. The gravest corporate allegation, six workspaces including database passwords, was retracted by its own author as wrong evidence [1][7].

## The machine never stopped

A day before ferstar's post, Z.ai described GLM-5.3-Flash reaching production on that 100,000-plus accelerator cluster in under two weeks, with throughput roughly tripled, after the model processed 62 trillion tokens in six days as the anonymous Ox Alpha; the figures are the company's own [3][4]. The listing, Knowledge Atlas Technology until July, priced at HK$116.20 and traded near HK$1,100 in late August, on 2025 revenue of 724.3 million yuan against a 4.7 billion yuan net loss [4].

Through the scandal's own week, [a 26 September Hong Kong Connect flow note](https://www.smartkarma.com/insights/hk-connect-flows-weekly-sep-24th-knowledge-atlas-bidu-aia-chinagoldintl-hua-hong-semi-cnooc) still featured the stock among its highlighted names; the direction of those flows sits behind a paywall, so whether mainland money was buying or selling cannot be read from it [11].

## Every attestation comes from the party that held the key

The trust bill is itemized to the file. The compounding is itemized to the token. Deletion is attested by the only party that ever held the key, the training denial is the company's word, and the full CAICT and NSFOCUS reports have no release date [1][6][8]. Until they surface, the ledger closes on one signature.

## Takeaway

ZCode captured developer workspaces unconditionally, the open-source cleanup shipped with its history wiped, and every attestation of deletion comes from the party that held the key, while the 100,000-chip inference build and a near-nine-fold listing keep compounding.

## Sources

1. [The Next Web, "Z.ai apologised, open-sourced ZCode, and wiped the commit history", 22 September 2026](https://thenextweb.com/news/zai-zcode-open-source-commit-history-security-assessment)
2. [The News International (Pareesa Afreen), "ZCode tried uploading your files 564 times, researcher finds", 20 September 2026](https://www.thenews.com.pk/latest/1416973-zcode-tried-uploading-your-files-564-times-researcher-finds)
3. [Unite.AI, "Z.ai Details GLM-5.3-Flash Inference Build on 100,000 Chinese Chips", 17 September 2026](https://www.unite.ai/z-ai-details-glm-5-3-flash-inference-build-on-100-000-chinese-chips/)
4. [Business Insider via AOL (Huileng Tan), "Everything we know about Z.ai, the Chinese company behind the mysterious Ox Alpha model", 28 August 2026](https://www.aol.com/articles/everything-know-z-ai-chinese-072803000.html)
5. [MIXED Reality News, "Z.ai's ZCode packed 42,411 of one developer's files and tried 564 times to upload them", 26 September 2026](https://mixed-news.com/en/zai-zcode-packed-42411-files-564-upload-attempts/)
6. [The Register (Connor Jones), "Z.ai says sorry for slurping up your code, open sources ZCode", 22 September 2026](https://www.theregister.com/security/2026/09/22/zai-says-sorry-for-slurping-up-your-code-open-sources-zcode/5298300)
7. [Reuters (Laurie Chen), "China's Z.ai disables AI coding assistant features after security issue", 21 September 2026](https://www.msn.com/en-us/news/other/chinas-zai-disables-ai-coding-assistant-features-after-security-issue/ar-AA2cG96x)
8. [TechNode, "Zhipu says ZCode removed repository-upload paths after data controversy", 24 September 2026](https://technode.com/2026/09/24/zhipu-says-zcode-removed-repository-upload-paths-after-data-controversy/)
9. [InfoWorld (Gyana Swain), "Z.ai disables coding assistant feature after flaw exposed enterprise code upload risk", 22 September 2026](https://www.infoworld.com/article/4225022/z-ai-disables-coding-assistant-feature-after-flaw-exposed-enterprise-code-upload-risk.html)
10. [Silicon UK, "Developers Complain After Z.ai's ZCode Sends Data To Cloud", 22 September 2026](https://www.silicon.co.uk/cloud/ai/z-ai-programming-trust-631667)
11. [Smartkarma (Ke Yan), "HK Connect Flows Weekly (Sep 24th)", 26 September 2026](https://www.smartkarma.com/insights/hk-connect-flows-weekly-sep-24th-knowledge-atlas-bidu-aia-chinagoldintl-hua-hong-semi-cnooc)


---

Z.ai's coding agent swallowed 42,411 files, and the developers got the bill — The Inference. Canonical: https://theinference.org/article/z-ai-s-coding-agent-swallowed-42-411-files-and-the-developers-got-the-bill
