Compose-Lang — Summary
Compose-Lang is an LLM-assisted compiler that turns minimal architecture specification files (.compose) into production code. It introduces a three-keyword DSL (model, feature, guide) that acts as the source-of-truth for code generation, eliminating the drift between documentation and implementation by making architecture the code generator itself. The compose build CLI command drives a traditional compiler pipeline (Lexer → Parser → Semantic Analyzer → IR) and then delegates code generation to an LLM backend, producing framework-specific output for Next.js, React, Vue, and other targets. Reproducible builds are achieved via LLM response caching — the same .compose input always produces the same output as long as the cache is present. The project ships a VSCode extension for syntax highlighting and code intelligence, completing the IDE integration story.
Unlike seeds such as spec-kit or openspec — which layer workflow and artifact management on top of an existing coding agent — Compose-Lang replaces the agent's freeform prompt-to-code loop with a compiler abstraction: the human writes specs, the compiler decides what code to generate, and incremental export maps track which symbols changed so only affected files are regenerated. This positions it closest to openspec's "architecture-first" philosophy but differs architecturally: openspec manages delta documents consumed by a coding agent, while Compose-Lang is itself the code generator and does not delegate to an interactive agent session.