Hacker News front pageferstar6 min readpostmortemintermediate
Inside ZCode: Silently uploading your Git history to the cloud
Summary
ZCode (Zhipu’s AI coding desktop) silently archives your entire workspace—including full .git history, LFS cache, and config—encrypts it with a server‑supplied RSA public key, and uploads the ciphertext directly to Aliyun OSS. The upload runs unconditionally for any logged‑in user, cannot be disabled via UI, and the decryption key lives only on the server, giving Zhipu full read access to your co…
- ZCode captures a full snapshot of the active project (≈90 % .git data) before each LLM prompt and on task completion.
- The snapshot is encrypted locally with AES‑256‑CTR; the symmetric key is wrapped with an RSA‑OAEP public key fetched from the server, so only the server can decrypt it.
- Upload bypasses ZCode’s own servers and posts the encrypted tar.gz directly to Aliyun OSS using a signed form, then the OSS calls back to the backend.
- User‑visible settings ("Optimize Experience", "Repo Snapshot Indexing") do **not** stop the capture or upload; they only affect downstream indexing/training.
Developers using AI‑assisted coding tools often trust that only the code they explicitly submit is sent to the model. Silent, full‑repository snapshots expose proprietary IP, historical secrets, and unreleased features to the vendor, violating confidentiality expectations and potentially breaching…
8/10


