Intent: exploring contract-based language design for AI-generated code
// momentum
// why it's here
- Active: last commit 5 days ago
- Built almost entirely by one person
- Health 57/100 with only 8 stars
// how to help
// readme
Intent Programming Language
Intent is a programming language designed for AI code assistants to write, that compiles to multiple targets for humans to use. The toolchain is built in Go and produces native binaries (via Rust), JavaScript, and WebAssembly from a single source file.
The language prioritizes explicit contracts, declared intent, and verifiable correctness over brevity. Every function carries preconditions and postconditions, every entity carries invariants, and intent blocks link natural-language goals to formal verification points. Programs can be tested in Intent itself (test "..." { ... } blocks) and edited in VS Code with full LSP support โ diagnostics, hover, go-to-definition, completion, formatting, signature help, semantic-token highlighting, and Z3 verification status.
The toolchain self-hosts. The formatter, linter, checker, and compiler are each written in Intent. The stage1 โ stage2 โ stage3 gates check that the Intent compiler reproduces all four tools byte-for-byte on each bootstrap target. See Milestone 9 in the roadmap.