logoalt Hacker News

Show HN: Agent Draw: An agent draws while you talk, built on TLDraw

31 pointsby jameswhitfordlast Monday at 2:50 PM7 commentsview on HN

We recently built 2draw, a Drawful-style game where players draw on a shared canvas and race to guess each other's drawings, on tldraw, an infinite-canvas SDK for React.

We started wondering what it would take to put an agent in that loop, as an opponent or a rival guesser, and dug into how an agent could read and draw on a tldraw canvas. That research turned into:

Agent draw, a tool that lets an agent draw to the canvas for you while you present.

You can try it right now, or grab the source:

- Live demo: https://tldraw-agent-draw-demo.james-664.workers.dev

- Source: https://github.com/ritza-co/tldraw-agent-draw-demo

Here you can see the agent assisting me in my demo presentation of a third grade chemistry class:

- https://www.youtube.com/watch?v=iIH2hJAxxm8


Comments

ldubinetstoday at 2:48 AM

This is sick! I built a similar tool at https://shimmerdiagrams.com

I really enjoyed reading your blog post, it was pretty informative about the techniques. I had built mine as a prototype and specifically interested in running all models local and in browser.

Tldraw seems to be a better medium for this that mermaid.

eventualcomptoday at 12:50 AM

Heh. I do something like this when I'm at work in meetings, basically dynamically trying to map out what people are saying so that I can build mental models.

Funny that soon the AI can define my own mental model on the fly soon.

vanditk194yesterday at 11:15 PM

This is a great idea! I see so many use cases, esepically in education. I could've really used something like back when I was tutoring in grad school.

mkolodnyyesterday at 9:21 PM

Good idea! It could be fun to try creating an RSA-esque visual explanation video instead of using canvas selection (https://youtu.be/zDZFcDGpL4U).

3kidsinacoatyesterday at 9:22 PM

A very interesting way of interacting with an AI agent. I tried out the demo for creating mind maps, and it was an interesting experience to see it grow and be able to explore different branches. An interesting concept for exploring AI-supported visual thinking.

tt_devyesterday at 11:19 PM

Very cool. Takes some getting used to but its powerful

Marciplanyesterday at 11:18 PM

Steve is a treasure <3