vercel-labs/zerolang

The Programming Language for Agents

What it solves

Zerolang addresses the inefficiency of AI agents coding via text. Traditional agent loops rely on writing and editing text files, which often leads to guessing, formatting errors, and a cycle of trial-and-error. Zerolang replaces text as the source of truth with a semantic graph, allowing agents to interact directly with the compiler's internal representation.

How it works

Instead of editing line ranges in a text file, agents use a graph-native approach. They query the program database (zero.graph) for symbols, types, and ownership facts, and then submit "checked patches" to modify the semantic structure. The compiler validates these edits before they are written to the store. While the graph is the primary authoring surface for agents, humans can still interact with the code through .0 files, which are human-readable projections of the graph.

Who it’s for

It is designed for AI agents and developers building agentic workflows who want to reduce token usage and increase the reliability of automated code generation and modification.

Highlights

  • Graph-Native Database: Uses a semantic graph as the program database rather than source text.
  • Checked Edits: Agents submit patches that are validated by the compiler to prevent stale or invalid changes.
  • Projection Boundary: Explicit import/export mechanisms allow humans to review or edit text projections without silently diverging from the graph.
  • Agent-Friendly Tooling: Provides specific commands like zero query and zero patch to expose compiler facts directly to agents.

Related

  • Project
  • Project
  • Project
  • Project
  • Project