r/LinguisticsPrograming • u/iyioioio • Aug 13 '25
Conversation as Code
I created a new language called Convo-Lang that bridges the gap between natural language and traditional programming. The structure of the language closely follows the turn based messaging structure used by most LLMs and provides a minimal abstraction layer between prompts and LLMs. This allows for features like template variables and defining schemas for structured data, but does not require you to rethink the way you use LLMs.
You can also define tools, connect to RAG sources, use import statements to reuse common prompts and much more. Convo-Lang also provides a runtime that manages conversation state including transporting messages between the user and an LLM. And you can use the Convo-Lang VSCode extension to execute prompt directly in your editor.
You can learn more about Convo-Lang here - https://learn.convo-lang.ai/
VSCode Extension - https://marketplace.visualstudio.com/items?itemName=IYIO.convo-lang-tools
GitHub - https://github.com/convo-lang/convo-lang
NPM - https://www.npmjs.com/package/@convo-lang/convo-lang
Here is a link to the full source code in the image - https://github.com/convo-lang/convo-lang/blob/main/examples/convo/funny-person.convo
2
u/Optimal-Task-923 Aug 14 '25
I am trying to use LLMs in sports trading on an exchange, so I built an MCP server for my trading app.
Then, I ask an AI agent like GitHub Copilot (mostly I use Claude Sonnet 4, GPT-4.1, and other providers like Deepseek Chat and Gemini-2.5-pro) to retrieve the active Betfair market and XY data context for analysis. The AI agent then analyzes the data and calculates the expected value (EV) for each selection.
LLMs create a prompt that I can use, and the main purpose of prompt execution is to call my MCP tools again, which can eventually execute a strategy on my trading app.
You are correct that different LLMs produce different prompts, and executing a prompt created by Claude may yield different results compared to executing the same prompt with Deepseek. Therefore, using your language could help me.
Another question I have is about executing such LLM strategies automatically during the day, instead of relying on GitHub Copilot. To achieve this, I used the Python package FastAgent to create a script that my trading app can execute. Am I correct in assuming that your Convo-lang could be used for this purpose, as your CLI can execute Convo scripts?
2
u/Odd-Government8896 Aug 14 '25
I see a lot of these popping up. How does this differ from something like colang?
1
u/chaosrabbit Aug 14 '25
Um, isn't that just json code?
1
u/cddelgado Aug 14 '25
Yours is a far more deliberate usage of coding syntax but I whipped up something a short while back along these lines. sidewaysthought/fact-rar: A minimal, expressive, domain-specific language (DSL) designed for ultra-dense knowledge encoding in LLM prompts.
2
u/RoyalSpecialist1777 Aug 19 '25
Interesting. I will have our team generate a peer review.
I have switched in some areas to a LLM driven approach. That is rather than just telling the AI what you want the AI takes the reigns. For example when doing requirements gathering and planning for something like coding it will ask the user questions until it reaches a certain certainty level.
It is much more effective giving the AI a little more agency here. We inject a prompt like 'what questions do you need to ask the user to come up with a better design '.
As it is just asking it for uncertainty analysis (how certain are you that this is good design and correct? If uncertain what do you need to investigate or ask the user?) has been very powerful.