What changed
Developers investigating Z.ai’s ZCode coding assistant found that its Codebase Indexing/Repo Wiki workflow could package local workspaces for cloud processing, including repository history and other `.git` data. Researcher ferstar documented a 313MB encrypted archive containing 42,411 files and 564 attempted uploads on one machine; other researchers reported successful server receipts on separate workspaces. Z.ai apologised, attributed the behaviour to Repo Wiki, removed that feature and the repository-snapshot upload workflow, shipped remediation in the 3.14 line, and said previously uploaded data had been deleted. It subsequently published ZCode’s client, backend, UI, Agent CLI and runtime under an open-source licence for outside inspection.
Why it matters
AI coding tools increasingly index entire repositories to build context, documentation and persistent memory. That makes apparently local convenience features a potential source-code export mechanism, and Git history can contain deleted credentials, old configuration, proprietary code and data that is no longer visible in the working tree. ZCode shows why a privacy toggle or high-level product description is not enough: developers need a precise data-flow boundary for indexing features, including what is collected, where it is sent, how long it is retained and whether `.git` metadata is included.
The upload was tied to repository indexing, not an explicit share action
The reported path was triggered by ZCode’s Codebase Indexing and Repo Wiki functionality. The client assembled workspace snapshots for cloud-side processing rather than asking the user to select files for an explicit upload. Independent analysis found archives could include the full `.git` directory, Git LFS caches, commit objects and reflogs as well as current source and documents.
Git history makes the privacy boundary much larger than the visible codebase
In ferstar’s analysed workspace, Git-related data made up most of the snapshot bytes. That matters operationally because Git history can preserve code, secrets and configuration that developers believe they deleted long ago. A coding assistant that sends repository metadata off-device therefore exposes a materially different data set from one that sends only files selected into the current prompt.
Z.ai removed the path and opened the product to inspection
Z.ai says the affected Repo Wiki feature and snapshot-upload workflow were removed and that third-party checks by CAICT and NSFOCUS found the relevant cloud data deleted. ZCode’s public repository now exposes the desktop client, web/backend components, shared UI and Agent CLI/runtime. The company says it is establishing an ongoing vulnerability-reporting process and intends to publish a fuller security assessment.
Open source improves the future audit trail, but not the past one
The newly published repository lets developers inspect current behaviour, and the original researcher says the offending Repo Wiki upload code is absent. However, independent reporting notes that the repository arrived with a very short commit history rather than the historical code that implemented the upload path. That limits outsiders’ ability to reconstruct the old behaviour directly from Git and means claims about prior retention and access still depend partly on company statements and external forensic evidence.