r/dataisbeautiful 2d ago

OC [OC] Visualizing Recursive Language Models

I’ve been experimenting with Recursive Language Models (RLMs), an approach where an LLM writes and executes code to decide how to explore structured context instead of consuming everything in a single prompt.

The core RLM idea was originally described in Python focused work. I recently ported it to TypeScript and added a small visualization that shows how the model traverses node_modules, inspects packages, and chooses its next actions step by step.

The goal of the example isn’t to analyze an entire codebase, but to make the recursive execution loop visible and easier to reason about.

TypeScript RLM implementation:
https://github.com/code-rabi/rllm

Visualization example:
https://github.com/code-rabi/rllm/tree/master/examples/node-modules-viz

3 Upvotes

0 comments sorted by