Skip to content

Comment on I accidentally turned LLM memory into program analysis

Comments

I recently stumbled upon the technique of asking the LLM to create a Dot Viz (or mermaid) flowchart of the program flow.

The LLMs are great at:

- understanding the flow

- making diagrams

- running the code with logging they add to to even better understand the flow

The flow being in Dot (or other machine readable format) makes it even easier for the LLM to use that as a reference going forward.

Yeah I do something similar. I've been using mermaid to create attack trees and as we explore the codebase for vulnerabilities we keep the tree up to date.

This is how I used to do it before LLMs too, it's just way faster now

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.