You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize this is a major spanner in your branding - but most people already know the many reasons why a richer and more-structured input must be used for prompt engineering, and openai themselves recently announced this.
If you want humans to be able to read it - sure - markdown.
If you want an LLM to reliably understand it, along with all the nuances of priority, recursive embedding, unambiguous references, nested steps, and so forth - do not use markdown.
Bonus - if you switched to HTML/XML for this instead of markdown - the very fact you've got .md in your name, and do not use .md, would cement your leadership in this space in everyone's minds - that's the kind of strangeness that people remember. and being bold enough to offer the correct advice will definitely earn you respect!!
Reacted by mikekobit-stripe
Reacted by ふぁ, Ori Nachum, Stephen Akinyemi, Alex Gavrilescu, Carmelo Santana, Yordis Prieto, Seán O'Grady, Artem Sapegin, Juan Abia, 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) and 13 more
If you want to properly fix the total SNAFU that is the current state of LLM input/output/and rule-following - reach out. Designing a solution for this is urgently needed, and some incredibly elegant ones are still possible - "you can't put markdown inside markdown" is all the clue you need about why something has to evolve here !!!
<!DOCTYPE html>
<html xmlns="https://agents.md/sds">
<head>
<title>Self-Documenting Schema (SDS) Comprehensive Documentation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="sds.css">
<script src="sds.js" defer></script>
</head>
<body>
<section class="metadata">
<h2>Metadata</h2>
<dl>
<dt>Version:</dt>
<dd>1.0.0</dd>
<dt>Timestamp:</dt>
<dd>2025-03-10T12:00:00Z</dd>
<dt>Purpose:</dt>
<dd>
<p>This document serves as the comprehensive specification and documentation for the Self-Documenting Schema (SDS) format.</p>
<p>It defines the structure, usage patterns, and capabilities of SDS across all OpenAI components and AI interactions.</p>
<p>This document <i>is</i> also sds.</p>
</dd>
<dt>Status:</dt>
<dd>Active</dd>
<dt>Related_Documents:</dt>
<dd>
<ul>
<li><a href="sds_reasoning_types.html">AI Reasoning Types Framework</a> - Detailed specification of AI reasoning capabilities</li>
</ul>
</dd>
</dl>
</section>
<section class="explanation">
<h2>SDS Overview</h2>
<dl>
<dt>What is SDS?</dt>
<dd>
<p>The Self-Documenting Schema (SDS) is a structured, human-readable, and machine-interpretable format designed for:</p>
<ol>
<li>AI-Human Communication</li>
<li>AI-AI Communication</li>
<li>Component Interfaces</li>
<li>System Documentation</li>
<li>Data Streaming</li>
<li>Rule Definition</li>
</ol>
<p>Key characteristics:</p>
<ul>
<li>Based on valid HTML5</li>
<li>Self-describing and self-validating</li>
<li>Supports both structured and streaming data</li>
<li>Human-readable in standard web browsers (you are reading sds right now!)</li>
<li>Machine-parseable with standard XML tools</li>
</ul>
</dd>
</dl>
</section>
... and so forth: pm if interested.
Reacted by Artem Sapegin, 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко), Christian Oliff, Nicholas Kyriakides, Roman, Linus Oleander and Andre
It might not be as good as other formats (xml etc.) but it's the best format that both humans and AI agents can easily collaborate with.
I think the goal of AGENTS.md is to allow any dev to add additional context to their repo in the easiest possible way. In many cases the README.md is already good enough but it is common practice to add specific instructions for AI agents.
Plus, in the future, models might get better at parsing markdown as this becomes more of a standard.
Source: backlog.md
Reacted by Ori Nachum, Stephen Akinyemi, Ben Alkov and Andre
In addition to what @MrLesk said, the proposed xml is wasteful.
A combination of simple xml tags, with markdown inside is fair - I believe Anthropic is using that.
Reacted by Artem Sapegin, Ben Alkov, Daniel Lyons and Andre
@MrLesk@OriNachum - you misunderstood the point of repo - it is NOT for humans
Markdown works!
No it does not - not for ChatGPT - not well enough - and definitely not well enough to base a rules standard on!!!
There's dozens of reasons why markdown should never be used for serious rules (I already listed some - did you understand my post?); if you've not encountered the problems yet, you're probably not doing anything that requires serious rule adherence (like code, structur4ed output, or even rules themselves).
Reacted by priyo bhunia
Reacted by Ori Nachum, Alex Gavrilescu, Carmelo Santana, Yordis Prieto, Artem Sapegin, James Knoblauch, Christian Oliff, Bernd and Roman
I have over 10 markdown instruction documents, I write spec for most of my features and have different documentation and stuff amd each sometimes takes me a whole night to craft out nicely and then I keep adding in any stuff I missed, markdown really works, humans can read it and agents can still just see it as text, after all, you not going to write code in rules files are you?
not to great extent, and the rules is human made not LLM slop so it gotta be good to both humans and LLMs, for code snippets or anything of sorts, xml can be embedded in markdown, so can html.
Any instruction good or bad is only as good as its quality, markdown or xml won't save you on bad instructions. I think markdown with xml pieces in is the best combo, am not writing xml completely for rather something that is basically documenting stuff.
I have over 10 markdown instruction documents...
So you're new to this.
You can't put markdown in markdown.
You can't pout anything else (xml/html/etc) in markdown either, if that "else" contains markdown...
You need to read and understand the OP - " the nuances of priority, recursive embedding, unambiguous references, nested steps " - otherwise you're wasting everyone's time because you have not learned this lesson yet.
If you think it's working for you today, you're either not doing anything important enough yet, or have not realized that it's not working properly for you yet.
Context is everything. markdown simply doesn't offer the power you need to give an AI the correct context. If you want to compromise so you can more-easily read it yourself - fine - but this agents.md concept is for AGENTS - so it makes MORE sense to do what's best for THEM, rather than compromise...
Reacted by Bhaumin
Reacted by Ori Nachum, Julien Roncaglia, Christian Oliff and Bernd
I have over 10 markdown instruction documents...
So you're new to this.
You can't put markdown in markdown.
You can't pout anything else (xml/html/etc) in markdown either, if that "else" contains markdown...
You need to read and understand the OP - " the nuances of priority, recursive embedding, unambiguous references, nested steps " - otherwise you're wasting everyone's time because you have not learned this lesson yet.
If you think it's working for you today, you're either not doing anything important enough yet, or have not realized that it's not working properly for you yet.
Context is everything. markdown simply doesn't offer the power you need to give an AI the correct context. If you want to compromise so you can more-easily read it yourself - fine - but this agents.md concept is for AGENTS - so it makes MORE sense to do what's best for THEM, rather than compromise...
I like how you keep assuming people aren't doing anything important, but would say you take such assumption with a grain of salt, now for AI not following instructions is a bigger problem than just which format is used, don't make it look like its simple, if it was, well then use your magical format and you done, for more context on that point, read here: https://www.parlant.io/blog/how-parlant-guarantees-compliance otherwise even looking at this from business perspective, markdown is much easier for purely non technical vibe coders to pickup than your xml and html stuff, this is important for products like cursor, further making this the overall winner, human readable, business sense, LLMs can read it, if it didn't work for you, it works for others sorry.
You can't pout anything else (xml/html/etc) in markdown either, if that "else" contains markdown...
You need to read and understand the OP - " the nuances of priority, recursive embedding, unambiguous references, nested steps " - otherwise you're wasting everyone's time because you have not learned this lesson yet.
If you think it's working for you today, you're either not doing anything important enough yet, or have not realized that it's not working properly for you yet.
Sir, you repeat disrespecting others.
I will have to report your replies if you keep doing it.
Please avoid any unpleasantries.
You can put markdown in markdown - I have, it works.
Besides that, I advocate xml tags with markdown as @Hussseinkizz perfectly phrased in their answer.
Please be nice.
This is a public medium.
Reacted by Hussein Kizz ★, Christian Oliff, Cyrille Giquello, Bernd and JonZeolla
There's dozens of reasons why markdown should never be used for serious rules (I already listed some - did you understand my post?); if you've not encountered the problems yet, you're probably not doing anything that requires serious rule adherence (like code, structured output, or even rules themselves).
next time your AI messes something up, come back and read the above - eventually it will dawn on you that heaping sh** on the people who worked out how to fix things is just blowing back in your face.
As far as I am learning, it is a bit more nuanced than black or white, I'll try to explain what I learned:
It is model specific to some degree:
Claude works well with xml tags, Gemini manage them less precisely (anecdotal from community).
Semantic XML tagging:
They help the model respect more hardcoded rules for both the above families, Gemini seems to be able to handle very few at the same time:
My assumption is that this is at least partialy true due to the latest update to Anthropic's model about attention weight and protection against overtriggering.
-Resetting the context window seems to be the most effective way for rule adherence, cleary not always feasable
Markdown works well for both of the above I compared/researched on.
While Claude can respect carefully the Hierarchy of the comments (# vs## vs ###) Gemini struggle distinguish between more nested usage of MD (precisely between ## and ### kinds of comments: this is also anecdotal to be trsansparent)
Pure HTML is a waste of..
Not only in terms of token consumption, but it could even be misleading the model:
Adds multiple attention anchors to understand things such as ordered/unordered lists, css and other web dev tipical syntax.
-The above mantioned syntax may mislead the model assuming the task is web design related. Especially strings like are really noise that the model has to cut through.
-If you are not buiding HTML projects no reason to use it pure, metadata structure it is intersting but most model still struggle more with meta instruction than anything else ("control your work" etc. are the first ones to b cerimonialized, the agent says "Checked" without really checking anything)
What helps the rule adherence?
Enforcing determinstic output script, and other hardcoded evals
Rules hierarchy clear, not too many priorities, not too nested
Keeping track of the rules that are really used (and most are not as shown in the links)
something comes from the link below
other from personal research, everything up to debate, but cmon it's not politic :)
Activity
gitcnd commentedon Aug 19, 2025
If you want to properly fix the total SNAFU that is the current state of LLM input/output/and rule-following - reach out. Designing a solution for this is urgently needed, and some incredibly elegant ones are still possible - "you can't put markdown inside markdown" is all the clue you need about why something has to evolve here !!!
DD-L commentedon Aug 20, 2025
This is somewhat similar to Microsoft's POML (Prompt Orchestration Markup Language).
link: https://github.com/microsoft/poml
compgeniuses commentedon Aug 20, 2025
I would be very much curious to here, what the guys here https://github.com/eyaltoledano/claude-task-master have to say about this, as they have been working on vastly superior and comprehensive task management system
MrLesk commentedon Aug 20, 2025
Markdown works!
It might not be as good as other formats (xml etc.) but it's the best format that both humans and AI agents can easily collaborate with.
I think the goal of AGENTS.md is to allow any dev to add additional context to their repo in the easiest possible way. In many cases the README.md is already good enough but it is common practice to add specific instructions for AI agents.
Plus, in the future, models might get better at parsing markdown as this becomes more of a standard.
Source: backlog.md
OriNachum commentedon Aug 20, 2025
In addition to what @MrLesk said, the proposed xml is wasteful.
A combination of simple xml tags, with markdown inside is fair - I believe Anthropic is using that.
Priyabhunia commentedon Aug 20, 2025
What if a txt format
gitcnd commentedon Aug 20, 2025
@MrLesk @OriNachum - you misunderstood the point of repo - it is NOT for humans
No it does not - not for ChatGPT - not well enough - and definitely not well enough to base a rules standard on!!!
There's dozens of reasons why markdown should never be used for serious rules (I already listed some - did you understand my post?); if you've not encountered the problems yet, you're probably not doing anything that requires serious rule adherence (like code, structur4ed output, or even rules themselves).
OriNachum commentedon Aug 20, 2025
Your response lacks of respect and is condescending.
This is a public medium - please act accordingly.
With that said, I am responsible for a lot of projects running in production with 100% success rate and working over long time.
Some of the agents use pretty long prompts, and chain multiple agents.
Your assumptions are incorrect, though, I believe you to have experienced problems working with AI.
Hussseinkizz commentedon Sep 1, 2025
I have over 10 markdown instruction documents, I write spec for most of my features and have different documentation and stuff amd each sometimes takes me a whole night to craft out nicely and then I keep adding in any stuff I missed, markdown really works, humans can read it and agents can still just see it as text, after all, you not going to write code in rules files are you?
not to great extent, and the rules is human made not LLM slop so it gotta be good to both humans and LLMs, for code snippets or anything of sorts, xml can be embedded in markdown, so can html.
Any instruction good or bad is only as good as its quality, markdown or xml won't save you on bad instructions. I think markdown with xml pieces in is the best combo, am not writing xml completely for rather something that is basically documenting stuff.
gitcnd commentedon Sep 1, 2025
You can't put markdown in markdown.
You can't pout anything else (xml/html/etc) in markdown either, if that "else" contains markdown...
You need to read and understand the OP - " the nuances of priority, recursive embedding, unambiguous references, nested steps " - otherwise you're wasting everyone's time because you have not learned this lesson yet.
If you think it's working for you today, you're either not doing anything important enough yet, or have not realized that it's not working properly for you yet.
Context is everything. markdown simply doesn't offer the power you need to give an AI the correct context. If you want to compromise so you can more-easily read it yourself - fine - but this agents.md concept is for AGENTS - so it makes MORE sense to do what's best for THEM, rather than compromise...
Hussseinkizz commentedon Sep 2, 2025
I like how you keep assuming people aren't doing anything important, but would say you take such assumption with a grain of salt, now for AI not following instructions is a bigger problem than just which format is used, don't make it look like its simple, if it was, well then use your magical format and you done, for more context on that point, read here: https://www.parlant.io/blog/how-parlant-guarantees-compliance otherwise even looking at this from business perspective, markdown is much easier for purely non technical vibe coders to pickup than your xml and html stuff, this is important for products like cursor, further making this the overall winner, human readable, business sense, LLMs can read it, if it didn't work for you, it works for others sorry.
OriNachum commentedon Sep 2, 2025
Sir, you repeat disrespecting others.
I will have to report your replies if you keep doing it.
Please avoid any unpleasantries.
You can put markdown in markdown - I have, it works.
Besides that, I advocate xml tags with markdown as @Hussseinkizz perfectly phrased in their answer.
Please be nice.
This is a public medium.
LuciferBrow commentedon Dec 28, 2025
@colby-oai
nicholaswmin commentedon Jan 2, 2026
Yeah markdown's far from ideal but id rather communicate prompts via a disabled carrier pigeon than go back to XML.
And you even put the word "comphehensive" in it.
Hey I got an idea, slap "Enterprise Edition" on it, then patent it.
Go all the way.
gitcnd commentedon Jan 2, 2026
@nicholaswmin
There's dozens of reasons why markdown should never be used for serious rules (I already listed some - did you understand my post?); if you've not encountered the problems yet, you're probably not doing anything that requires serious rule adherence (like code, structured output, or even rules themselves).
next time your AI messes something up, come back and read the above - eventually it will dawn on you that heaping sh** on the people who worked out how to fix things is just blowing back in your face.
nicholaswmin commentedon Jan 3, 2026
Yes I have, I just dont like it nor you
FractalRecursion commentedon May 2, 2026
As far as I am learning, it is a bit more nuanced than black or white, I'll try to explain what I learned:
It is model specific to some degree:
Claude works well with xml tags, Gemini manage them less precisely (anecdotal from community).
Semantic XML tagging:
My assumption is that this is at least partialy true due to the latest update to Anthropic's model about attention weight and protection against overtriggering.
-Resetting the context window seems to be the most effective way for rule adherence, cleary not always feasable
Markdown works well for both of the above I compared/researched on.
While Claude can respect carefully the Hierarchy of the comments (# vs## vs ###) Gemini struggle distinguish between more nested usage of MD (precisely between ## and ### kinds of comments: this is also anecdotal to be trsansparent)
Pure HTML is a waste of..
Not only in terms of token consumption, but it could even be misleading the model:
-The above mantioned syntax may mislead the model assuming the task is web design related. Especially strings like are really noise that the model has to cut through.
-If you are not buiding HTML projects no reason to use it pure, metadata structure it is intersting but most model still struggle more with meta instruction than anything else ("control your work" etc. are the first ones to b cerimonialized, the agent says "Checked" without really checking anything)
What helps the rule adherence?
something comes from the link below
other from personal research, everything up to debate, but cmon it's not politic :)
https://arxiv.org/html/2602.11328v1#S2
I hope It can help. stay happy and healthy