Use HTML as the primary chat language for your agents so they can draw diagrams
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| A week or two ago Thariq published an article on how good AI's were at working with HTML and that there was not really any reason to use markdown anymore. And yet all of our coding agents work with markdown and output markdown and have been trained on markdown. So as a bit of an experiment I decided to see how good they were at using HTML as part of the main chat. The answer is - pretty good. So this is a coding agent with the interface running in a web browser. The responses from the agent are piped straight into the page. At first it would still always use markdown, and then I realized that effectively my system prompt was in markdown! Once I switched the system prompt to HTML it got way better. The current system prompt: (Yeah, I'm also playing around with first person system prompts, benefit/drawbacks unclear) And as a result it can now chose to render diagrams as part of it's chat response, can put them in tables etc. etc. In this case I'm using Qwen3.6-27B and it's doing pretty good at making SVG diagrams (ChatGPT isn't much better), though it still has a tendency to try use markdown. I suspect it's just so baked into the models at this point. Qwen3-vl-4 is pretty bad at SVG's, so I strongly suspect this is an emerging capability of models. Repo behind all of this: https://github.com/sdfgeoff/HTML-agent [link] [comments] |
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.