Getting started

TypeGlish documentation

TypeGlish compiles plain-English prompts into structured, testable programs — a real type system for English, a checker that proves contradictions before you ship, and tests that live beside the rules they guard.

Write and scale prompts like code.

Start here

Why a compiler for English

Raw prompts are sand: fast to build with, quick to crumble under weight. TypeGlish gives prompts load-bearing structure — the same prompt, graded and proven:

prompt.md → support.tg✗ crumbles✓ holds
// before: vibes
Be helpful and always try to resolve things quickly,
but never promise anything specific.

// after: a policy
Agent SHOULD resolve in one reply.
Agent NEVER commits TO a delivery date; INSTEAD shares a tracking link.
Same intent, one reading. The before version contains a contradiction the model resolves differently per conversation.
Already have a prompt in production? npx typeglish check prompt.md reads plain English as-is — start from the notes it gives you.