v0.1.13 · early preview →

TypeScript your agents can't quietly break.

Glyph compiles to clean TypeScript and reads almost identically, so you can adopt it one file at a time. The difference is what it won't let through: no any and no casts you can write, a match that must handle every case, and record types that validate themselves at runtime. The footguns an agent ships that tsc --strict waves past don't compile here.

$ npm install -g @glyphlang/glyph
module welcome import std/result { Result, Ok, Err } type Role =  | Admin  | Member  | Guest type User = {  email: string,  role: Role,} fn welcome(user: User) -> Result<string, string> {  return match user.role {    Admin => Ok("Welcome back, admin"),    Member => Ok("Hello, ${user.email}"),    Guest => Err("guests cannot sign in"),  }}
Passes tsc --strict Compiles to readable TS Written in Rust Exhaustiveness enforced

If you know TypeScript, you know most of this

Glyph reads almost identically. You don't learn a new language, just a handful of deltas. Each one trades a footgun for a guarantee. Here are the ones in the sample above.

match an exhaustive switch: the compiler makes you handle every case. There is no if/else; match is the only conditional, so a case can't be silently forgotten.
Result<T, E> errors as return values, not thrown exceptions. You handle one with match, or propagate it with the ? operator.
fn f() -> T a function; the -> is its return type. A type X = {...} is a record, and a type X = A | B is a tagged union.
mut x = e reassignment is explicit and greppable. A plain let binding never changes under you; you write mut to change one.

"Agents" here means AI coding assistants (Claude, Copilot, Cursor). Glyph helps them most, but the guarantees are plain engineering wins whether or not you use one, and if you already run strict TypeScript with zod and eslint, here's what a language buys over that →

The tax you already pay

If you build with AI agents on a TypeScript codebase, you know the daily cost. Glyph is TypeScript with these footguns removed.

Glyph removes each one, by construction.

Why Glyph wins

In order of what matters most. The first two are the wedge, the problems you feel every day. The last two are the polish that makes it pleasant.

Questions engineers actually ask

Real questions, straight answers: what works today, and what's next. Read them as one guided walk-through.

Write less. Break nothing.

Try the Playground →