MDS compiler lets developers write agent prompts once and build to any format
A developer has released MDS (Markdown Script), an open-source compiler that allows LLM agent prompts to be written once in Markdown and compiled into multiple output formats. The tool addresses a common problem where developers must manually maintain duplicate prompt files across different platforms such as Claude Code, Cursor, Codex, and Gemini. MDS supports variables, imports, functions, and conditionals, and automatically outputs either clean Markdown or a JSON chat-message array depending on the template content. The compiler also performs build-time validation, catching errors like undefined variables and import cycles before they reach a running agent. Available as a Rust CLI and a JavaScript/TypeScript library, MDS aims to eliminate fragile copy-paste workflows in multi-platform agent development.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in