<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i" -->

---
title: Bun ports 535K lines to Rust with AI, Z.ai gets caught...
description: Bun's team rewrote its entire Zig codebase into Rust using AI agents in four months, and the results are hard to argue with even as critics question the...
canonical: https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bun ports 535K lines to Rust with AI, Z.ai gets caught uploading repos | daily.dev
og:description: Bun's team rewrote its entire Zig codebase into Rust using AI agents in four months, and the results are hard to argue with even as critics question the...
og:url: https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i
og:image: https://api.daily.dev/og/posts/idJK4G24i.png
og:image:alt: Bun ports 535K lines to Rust with AI, Z.ai gets caught uploading repos
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bun ports 535K lines to Rust with AI, Z.ai gets caught uploading repos

**[Agentic Digest](https://daily.dev/sources/agents_digest)** · 5 min read · 3 upvotes · 1 comments

## Summary

Bun's team rewrote its entire Zig codebase into Rust using AI agents in four months, and the results are hard to argue with even as critics question the method. Z.ai's coding client got caught silently uploading encrypted copies of local repos to Alibaba cloud, and users can't verify what was taken or deleted. A new benchmark shows even the best coding agent setups fail most realistic client work because they don't ask questions. And two researchers found sandbox escapes in OpenAI Codex that let attackers run commands on the host machine.

## Content

**TLDR:** Bun's team rewrote its entire Zig codebase into Rust using AI agents in four months, and the results are hard to argue with even as critics question the method. Z.ai's coding client got caught silently uploading encrypted copies of local repos to Alibaba cloud, and users can't verify what was taken or deleted. A new benchmark shows even the best coding agent setups fail most realistic client work because they don't ask questions. And two researchers found sandbox escapes in OpenAI Codex that let attackers run commands on the host machine.

---

## Bun rewrites 535K lines of Zig into Rust using AI agents, ships in four months

Bun creator Jarred Sumner says the migration, done mostly with a pre-release Claude model plus about 50 dynamic workflows and adversarial reviewer agents, took four months instead of an estimated year and cost roughly $165,000 in API tokens. The payoff in v1.4.0 is real: 128 longstanding bugs fixed, native memory leaks gone (609 MB stable vs. 6.7 GB climbing in repeated builds), and HTTP throughput up 2-5%. Zig's creator Andrew Kelley published a pointed rebuttal asking whether this actually reduces bugs or just shifts risk into code nobody reviewed carefully, and that's the real question worth sitting with here — a rewrite this size is either a proof of concept for the industry or a very expensive way to find out where the bodies are buried. [Read more](https://daily.dev/posts/rBHvdbhtY)

## Z.ai's coding client silently uploaded encrypted repo archives to Alibaba cloud

ZCode, Z.ai's coding client, was found uploading encrypted archives of developers' local Git repos, with the encryption key held only by Z.ai. That means nobody outside the company can verify what was uploaded or confirm their claim that it's been deleted. The feature powering this — repo indexing for session checkpoints and rollback — was on by default after launch, and unlike xAI's transparent response to a similar Grok Build incident, Z.ai hasn't published a retention policy or allowed independent verification. A robotics company has reportedly banned the tools internally, and the trust damage outlasts the bug since Z.ai's open-weight models run through other clients too. [Read more](https://daily.dev/posts/x49PcvaGU)

## Best coding agent setup passes only 23.9% of realistic client simulations

The new ττ-bench treats agent-building like actual client work: scattered records, a client to question, an API, existing code, and a budget. Claude Opus 5 paired with Claude Code, the best configuration tested, passed just 23.9% of 53 held-out customer simulations, against 82.2% for expert-authored solutions. The failures weren't really coding failures — agents searched records instead of understanding them, rarely asked clarifying questions, and wrote tests that missed their own bugs. Builds asking zero questions averaged 0.16; those asking four or more averaged 0.50, which is about as clean a signal as you'll get that requirements-gathering is the bottleneck, not code generation. [Read more](https://daily.dev/feed-by-ids?id=FoxY29KYn&id=fXxAgqsic)

## Researchers escape OpenAI Codex's sandbox two different ways

Security researcher Oren Yomtov found Heapjack, which exploits a shared memory heap in Codex Desktop's node_repl component to steal an auth token and run unsandboxed commands just by having Codex analyze a malicious repo — even in strict read-only mode. The second bug, Overpatch, abuses the CLI's apply_patch tool to escape workspace-write restrictions via a symlink and execute code the next time a terminal opens. Both were reported August 12, 2026 and patched within eight days: Codex Desktop build 26.818.21641 and Codex CLI 0.149.0. Update now if you haven't. [Read more](https://daily.dev/posts/Wdkcv7LCt)

---

## Also notable

- **MIT finds a mathematical ceiling on LLM scaling:** Because models compress more concepts than they have internal dimensions, doubling width halves interference but multiplies training cost roughly sixfold, and error reduction is capped by Zipf's law regardless of budget. [Read more](https://daily.dev/posts/ckiIWB91i)
- **Open weights now run 78.4% of AI-native companies:** The stat driving debate this week is that open models don't need to beat GPT-5 on the frontier, they just need enough traffic to break the unit economics closed labs need to justify an IPO, reportedly pushed toward 2027 for both OpenAI and Anthropic. [Read more](https://daily.dev/posts/COmIJ4qjO)
- **vLLM's speculative decoding for Kimi K3 jumps throughput from 110 to 435 tokens/sec:** The setup uses DeepSeek's DSpark algorithm and a custom RDMA connector across GB300 NVL72 racks, delivering up to 3.5x higher throughput under concurrent load on math reasoning tasks. [Read more](https://daily.dev/posts/hScktbkMC)
- **TypeScript compiler feedback loop cuts AI agent fix iterations from 3.8 to 1.6:** Feeding compact compiler diagnostics plus Vitest failures back into the agent's context raised first-pass fix rate from 54% to 87% while dropping token usage per error from about 110 to 42. [Read more](https://daily.dev/posts/UCvFXGpNP)
- **Anthropic study: junior engineers using AI scored 50% vs 67% without it on a follow-up quiz:** Addy Osmani cites this alongside a 400,000-session Claude Code study showing task-specific expertise still predicts verified success, arguing agents are quietly eroding the trial-and-error that builds engineering skill. [Read more](https://daily.dev/posts/nZQKcHaM8)

## Community discussion

Top comments from developers on daily.dev.

**@pdfopsdev** · 0 upvotes

> imo the test suite is what makes a port like this checkable at all. most codebases have nothing to diff an agent's rewrite against, so this doesn't generalize as much as the headline suggests.

## Similar posts on daily.dev

- [Zig creator calls Bun's Claude Rust rewrite 'unreviewed slop'](https://daily.dev/posts/zig-creator-calls-bun-s-claude-rust-rewrite-unreviewed-slop--zlkefwvdc) · DEVCLASS · 11 upvotes · 5 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ai-agents](https://daily.dev/tags/ai-agents), [#rust](https://daily.dev/tags/rust), [#openai-codex](https://daily.dev/tags/openai-codex), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i","headline":"Bun ports 535K lines to Rust with AI, Z.ai gets caught uploading repos","text":"Bun's team rewrote its entire Zig codebase into Rust using AI agents in four months, and the results are hard to argue with even as critics question the method. Z.ai's coding client got caught silently uploading encrypted copies of local repos to Alibaba cloud, and users can't verify what was taken or deleted. A new benchmark shows even the best coding agent setups fail most realistic client work because they don't ask questions. And two researchers found sandbox escapes in OpenAI Codex that let attackers run commands on the host machine.","url":"https://daily.dev/posts/bun-ports-535k-lines-to-rust-with-ai-z-ai-gets-caught-uploading-repos-idjk4g24i","datePublished":"2026-09-21T04:17:43.191Z","dateModified":"2026-09-21T04:18:04.099Z","author":{"@type":"Organization","name":"Agentic Digest","logo":"https://media.daily.dev/image/upload/s--V91DY4ls--/f_auto,q_auto/v1772617267/logos/agents_digest","url":"https://daily.dev/sources/agents_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"comment":[{"@type":"Comment","text":"imo the test suite is what makes a port like this checkable at all. most codebases have nothing to diff an agent’s rewrite against, so this doesn’t generalize as much as the headline suggests.","datePublished":"2026-09-21T18:15:10.508Z","url":"https://daily.dev/posts/idJK4G24i#c-FvGlSa1p2","author":{"@type":"Person","name":"PDFops","url":"https://daily.dev/pdfopsdev","image":"https://media.daily.dev/image/upload/s---8isRBKc--/f_auto/v1782922291/avatars/avatar_orjMeK8QKaaVZwGq7ScPz?_a=BAMAMicg0"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/agents_digest","name":"Agentic Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Agentic Digest","item":"https://daily.dev/sources/agents_digest"},{"@type":"ListItem","position":3,"name":"Bun ports 535K lines to Rust with AI, Z.ai gets caught uploading repos"}]}
```

