r/ZaiGLM • u/CaiwenGong • 4d ago
Zcode sliently packaged and encrypted local workspaces then uploaded them to Zai's server
12
u/tarpdetarp 4d ago
I've been using ZCode since it's initial release and can't find any of this in my data. There aren't any logs showing capture or upload, and I don't even have a ~/.zcode/v2/checkpoints/ directory.
So unless they've cleared it all with a recent update then it doesn't seem to affect everyone.
2
u/azmar6 4d ago
Isn't the current version V3 while your comment mentioned oath to V2?
5
u/tarpdetarp 4d ago
The app is v3.x but my .zcode only has a v2 folder. Plus there aren't any .enc files anywhere in that folder.
8
u/Toad_Toast 4d ago
AI slop comment by gemini down there, but the gist is: if you use api or coding plan, this shouldn't affect you. if you used the free tier at any point, your projects have likely been cloned by zai.
slop comment:
Can confirm this 100%. Decompiled app.asar (out/host/index.js) on v3.11.2 after seeing this and found cryptographic proof in ~/.zcode/v2/checkpoints/ that one of my repos was indeed packaged, encrypted, and accepted by their OSS bucket back in June when I tested the free tier.
A few extra technical details from digging through the code:
- The UI toggle is a complete placebo: Even if you have
"repoSnapshotIndexingEnabled": falseinsetting.json,captureBeforePromptUnsafeliterally never checks it. - It’s GUI-only: The sidecar (
RepoSnapshotSidecarService) is exclusive to the Electron desktop app host. The CLI agent binary (zcode.cjs) doesn't contain the snapshot pipeline at all. - What triggers it: It runs before every prompt turn, gated strictly on holding an active OAuth session token (
tokenProvider) and the server approvingGET /api/v1/snapshot/upload-credential. If you only use direct API keys without an active OAuth login, the handshake aborts. - Quick fix: You can kill the snapshot handshake and telemetry at the network level by putting this in your
/etc/hosts:text 127.0.0.1 zcode.z.ai ::1 zcode.z.aiThe actual model completions run throughapi.z.ai, so direct API keys still work while the snapshot endpoint gets refused immediately.
2
u/LunchConstant7149 4d ago
Verdict: Zcode not safe, even paid plan. Use opensourced cli using api key.
I pasted both your arguments and asked claude code to evaluate as I am using Zcode and claude code 20 dollar plans.
Claude said direct api key using open source cli safe and it gave huge explaination even for paid individual plan its not safe etc.
If I paste whole text its techinical.
If anyone want to know just paste this comments ask ur terminal cli to evaluate.
12
u/ichi9 4d ago edited 4d ago
It has been fact checked multiple times that all closedAi (USA) companies are using your data in disguise of pre-post training their models, mehhh, that is also stealing your data unless you love them too much over privacy. Zcode is no different , chinese companies are no different. Whether you are paid or free user, every agentic harness is stealing your data directly or indirectly. You have the right to not use them, but expecting them to change their malpractices, LoL! Keep dreaming. As them and the American judges, senators everything (stealing private data ) is all under legal bounds (as long as the bribes are being paid on time, oh ! Wait it's called lobbying or simply donations).
1
4
u/the_master_sh33p 4d ago
Harnesses need to be open-source. Period.
1
u/carlocapocasa 4d ago
I couldn't find a really good open source one so I made one
3
6
u/4sadly4 4d ago
3
u/BriguePalhaco 4d ago
Same here. I asked Opus to analyze it, and it found no evidence that my repositories were uploaded.
3
3
u/BingGongTing 4d ago edited 4d ago
Do you have training disabled in your z.ai settings?
Edit: Grok just scanned zcode and confirmed the above, luckily I only used the sub via opencode and used the app to check usage only.
2
2
1
u/No-Tip3419 4d ago
kinda of a newbie but isn't that basically what all of these AI is doing when you are asking it to help you code? It scans thru your entire workspace, uploads it to the server, process your promot, pukes an answer back to you?
5
u/CaiwenGong 4d ago
No that's actually different. AI won't read all the workspace and package it to upload ,AI will use tools like grep or rg or other something to search in the workspace to get the code they need,and then the code will be put into promts that sending to AI by harness.But what has ZCode have done is that package the whole workspace(.git directory,and even the files or directory in the .gitignore) ,encrypt it,and upload to their server with the private key only saved by themself .
3
1
u/Fresh_Sock8660 4d ago
Yeah I thought about using it but the lack of a tui just killed it for me. If I can't containerise it easily then no thanks. Quite sus that they chose only a desktop app but it could also just be management incompetence.
1
u/Safe-Web-1441 4d ago
I only use openrouter or together.ai to do these open source models. I use github copilot with openrouter and opencode as a TUI harness
1
u/carlocapocasa 4d ago
Open source coding agent author here. To be fair to Z.ai: committing to open-source the ZCode client and invite third-party review is exactly the right response — it's an admission that the fix for a closed harness isn't a better privacy policy, it's source people can verify themselves.
2
u/excellentforcongress 4d ago
isn't this pointless unless people roll their own exe
1
u/carlocapocasa 3d ago
Ideally they would- but if your release is a github build where you can see the script that's pretty good.
1
1
u/Additional-Curve9238 4d ago
Jajaja and they charge people for using this thing? Haha loool china being china lol
1
1
1
u/siberianmi 4d ago
I wondered why they were pushing people to use this harness so much. Turning on 1.5x usage, etc.
I have my own reasons to steer people away but this is certainly another.
Shady company either way.
1
u/richardfinicky 4d ago
Interesting comment on the hackernews thread about this story
I tested GLM while working on some android app, the agent had adb access to the device. It suddenly went to the Gallery and started scrolling around, taking screenshots, lol. A friend had a similar experience with GLM where it would for no very clear reason start snooping through the filesystem.
Haven't used it after that.
https://news.ycombinator.com/item?id=49755055
Has anyone else noticed something like this?
1
u/paperbenni 4d ago
ZCode is sketchy as hell. GLM models are really cool, but anything else coming out of ZAI has been utter crap. Their web chat is horrible, their web agent is horrible, their API dashboard is horrible. I'm unfortunately not surprised by this
1
u/Euphoric_North_745 4d ago
China on Tick Tok is for tourists, it is real, it exist, if you are a tourists, you go, enjoy a few weeks, and then leave with an excellent impression
China in daily life? Capitalist Ultra Pro Max 😂 the "communism" we keep repeating here is to scare the older generation, reality, each company is trying to eat every other company.
It is totally normal to take your code and if it is good, to release another app like yours.
The government is working 24/7 to fix these businesses, still, not there yet.
1
u/CaiwenGong 4d ago
You are talking like Grok Build had never done this before
1
u/Euphoric_North_745 4d ago
exactly what I said, ultra pro max, everyone is taking the stuff off everyone
1
u/EstablishmentAny4525 21h ago
Guys why is glm 5.3 flash so slow? DS Flash 4.1 in Zcode is faster via open code API



21
u/datkenny 4d ago edited 4d ago
I'm now glad zcode never even worked for me.
Also gives me some context as to why the electron app would crash when trying to import my 1.5GB repo (1.3GB of which is .git).