Zhang Hongbo’s team at the IDEA Research Institute released MoonBit 1.0 at the sixth IDEA conference in November 2026. The general-purpose language, in development since October 2022, addresses two practical questions for developers working with AI agents: where generated code should run, and how to check that it does what was intended.
IDEA founding chair Harry Shum presented the release as an example of what it means to rethink computer science for AI. In his view, an agent’s choice of programming language can affect the software it is able to deliver. MoonBit’s team put that idea to a limited test by asking the same model to build a database engine in two languages.
What MoonBit changes for an agent
MoonBit provides a WebAssembly-based sandbox that isolates generated code during execution. The team reported startup times on the order of microseconds. Formal verification serves a different purpose: MoonBit integrates a logic language for mathematical proofs, so an agent can supply a correctness proof alongside its code. The team said verification can also extend to assembly produced by the compiler. Support for proofs does not mean that every generated program comes with one.
In three rounds of database-engine development involving about 500 tests, the team had Opus 5.5 work in both MoonBit and Rust. The test pass rates were nearly identical, but the model used 12% fewer tokens with MoonBit. The team estimated that the model’s MoonBit training material was only 1% as extensive as its Rust material. The token result applies to this model and task; it does not establish a general advantage over Rust.
The team also reported that MoonBit took one-tenth as long as Rust to compile a workload spanning hundreds of packages and finished faster than Go. As a separate example of development at scale, it described a 17 MB office document processing tool built from 880,000 lines of MoonBit. It reported incremental compilation times of one to two seconds at the million-line scale.
Package growth and adoption
According to Zhang, MoonBit’s ecosystem grew from roughly 2,500 libraries at the start of 2026 to 36,000 by the conference. Package downloads approached 10 million over the preceding six months, including nearly 3 million in the most recent month. Those are download counts, not counts of distinct users. Peking University has introduced MoonBit in a graduate course, and the team said agent developers outside China were already using it in products.
Keeping credentials out of cloud tool calls
A separate conference demonstration addressed a limit of code isolation: an agent may still need access to files, accounts and third-party services. Wang Jiaping’s security team showed a hardware prototype that lets an agent call a cloud model while keeping credentials and tool execution on the user’s device.
The prototype combines local data redaction with a trusted execution domain. The team said the design uses three main chips and has a bill of materials below 1,000 yuan. Unlike MoonBit 1.0, this was a prototype, not a product release. It addresses a different part of the engineering problem: MoonBit isolates the code an agent generates, while Wang’s design controls where the agent uses sensitive data to act on a user’s behalf.