ZCode, the GLM coding agent, silently uploads your Git history
TL;DR Highlight
Logged-in ZCode silently encrypts and uploads your whole .git history to the cloud
Who Should Read
A developer who connects private repos to AI coding agents or desktop apps and worries about code leaking
Core Mechanics
- Logging in uploads the whole workspace
- Per the article, ZCode packs .git history, LFS cache, reflogs and app configs, encrypts them and uploads to Aliyun OSS.
- The captured case was a 313MB encrypted archive from a 345MB workspace with 42,411 files.
- 86.6% of the payload is .git
- .git/lfs is 196.1MB (56.8%), .git/objects 102.2MB (29.6%), source and docs 46.2MB (13.4%).
- Git objects retain API keys deleted in later commits, unreleased branch names and internal hostnames.
- Only Z.ai's server holds the key
- The payload key is wrapped with an RSA-OAEP public key delivered by the server.
- The private key lives only in Z.ai's cloud, and the researcher failed to decrypt with every local private key.
- Turning off the toggles doesn't stop it
- "Optimize Experience" only controls authorization for model training.
- "Repo Snapshot Indexing" only controls server indexing, while local packaging and upload continue.
- It's a host sidecar, not an agent tool
- None of the 31 captured tools handle snapshots, uploads or telemetry, and the sidecar starts unconditionally at launch.
- One session logged 62 capture events, and the privacy policy doesn't mention full-workspace uploads.
- Open weights don't mean an open harness
- GLM weights are open but the ZCode harness is closed per the article.
- A Z.ai executive said nothing beyond what's listed on the website would be implemented, and snapshotting isn't listed.
Community Reactions
- Comment questions the article's framing
- One commenter noted the thread was an LLM paraphrase of the original post.
- Another argued the article confuses git log with the whole git repository.
- A comparison claim appeared
- One commenter claimed Claude also uploads git history (git log) to Anthropic daily.
- No evidence was given in the comment.
- A dismissive reaction too
- One joking comment said people are making a fuss and that the company doesn't even use its own products.
How to Apply
- Lock the checkpoints directory to block uploads
- If you use ZCode today, recreate ~/.zcode/v2/checkpoints and set chattr +i (Linux) or chflags uchg (macOS).
- The checkpoint rollback UI will stop working.
- Add two questions to your agent tool checklist
- Check what the runtime transmits while logged in.
- Check who can decrypt the data it stores.
- Don't use closed harnesses on sensitive repos
- Move repos with keys or internal hosts in history to an open-source agent.
- Add possibly exposed keys to your rotation list.
Try It
# Paste in shell (Linux). On macOS, replace the last line with: chflags uchg ~/.zcode/v2/checkpoints
rm -rf ~/.zcode/v2/checkpoints
mkdir -p ~/.zcode/v2/checkpoints
sudo chattr +i ~/.zcode/v2/checkpoints
# Undo: sudo chattr -i ~/.zcode/v2/checkpoints (macOS: chflags nouchg)Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques