← All projects
Project record1 mention
Originally shared on Hacker News

Margarita

A markdown-based language for writing and controlling coding agents. It provides two file formats: .mg, a templating language that renders dynamic prompts to Markdown with variables, conditionals, loops, and includes; and .mgx, an agent scripting language that extends .mg with agentic execution including state, memory, tool calls, and user input.

Last shared For People writing and controlling coding agents; the author notes uncertainty about usefulness now that most people just use Claude Code.
01 / The problem

What it addresses

Controlling coding agents is cumbersome; the project aims to let you write agents as easily as writing markdown.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Margarita

    A markdown-based language for writing and controlling coding agents. It provides two file formats: .mg, a templating language that renders dynamic prompts to Markdown with variables, conditionals, loops, and includes; and .mgx, an agent scripting language that extends .mg with agentic execution including state, memory, tool calls, and user input.

    Problem: Controlling coding agents is cumbersome; the project aims to let you write agents as easily as writing markdown.

    Audience: People writing and controlling coding agents; the author notes uncertainty about usefulness now that most people just use Claude Code.

    Posted by @margarita_dev · Original source ↗

    Source text · @margarita_dev · · Source ↗

    Margarita provides two file formats: .mg — A templating language that renders dynamic prompts to Markdown. Extends Markdown with variables, conditionals, loops, and includes. .mgx — An agent scripting language that extends .mg with agentic execution: state, memory, tool calls, user input, and more.