Remix.run Logo
Show HN: Margarita - Programming language for Agents using Markdown-ish syntax(margarita.run)
6 points by margarita_dev 9 hours ago | 2 comments

On my list of build it from scratch has always been to build a programming language. So with the help of AI I was able to get it done! Why did I build it? At work I've seen two major problems with our ai workflows/ skills libraries. There is a lack of determinism when your whole workflow is a markdown file of 100 steps, and markdown skill libraries lack composability. Meaning we violate things like DRY in the all the md files in the skills library.

I built Margarita to allow for markdown and logical operators to exist together, which means you can bring in determinism through code structures when it makes sense, and fall back to llm dynamic code when that makes sense. As an added bonus allows for composable prompts ala React which solve my other gripe with skills libraries being a mash of text everywhere.

Overall I've been getting pretty luke warm responses from Reddit, so I'll probably just shelve it, but it was a blast to make. Got to build code agents for pretty much every llm provider and built my own harness. I would recommend doing that it's a great learning experience.

https://www.margarita.run https://github.com/Banyango/margarita

rishabhpoddar 8 hours ago | parent [-]

Fairly interesting! A few questions:

- When asking the user for an input, does it support multi turn user conversation?

- Who is this made for? Developers would much rather just use python directly with coding agents; non developers would probably still be afraid of seeing the python-ish syntax in the md file + they wont be able to use existing coding agents cause there would be no examples of this new language in any of the LLM's training data.

But it's an awesome attempt! I like the idea overall, and the design of the website!

margarita_dev 8 minutes ago | parent [-]

- When asking the user for an input, does it support multi turn user conversation? Yes, it supports both multi-turn conversations from the llm and you can programmatically ask the user things too -> https://www.banyango.com/margarita/latest/user_input/

- Who is this made for? I think this is crux of my issues so far here. I have been targeting developers who maybe don't see as much value in this as you mentioned.

That said I think that there is a decent cost to developers for maintaining code each time you want more determinism, or don't want to spend tokens on repeatable steps. My hope was that having a lower cost solution closer to markdown would be a nice middle ground.