Extract of the study :
We study allowing large language models (LLMs) to process arbitrarily long prompts through the lens of inference-time scaling. We propose Recursive Language Models (RLMs), a general inference paradigm that treats long prompts as part of an external environment and allows the LLM to programmatically examine, decompose, and recursively call itself over snippets of the prompt. We find that RLMs can successfully process inputs up to two orders of magnitude beyond model context windows and, even for shorter prompts, dramatically outperform the quality of vanilla frontier LLMs and common long-context scaffolds across four diverse long-context tasks while having comparable cost. At a small scale, we post-train the first natively recursive language model. Our model, RLM-Qwen3-8B, outperforms the underlying Qwen3-8B model by on average and even approaches the quality of vanilla GPT-5 on three long-context tasks.
Very nice idea for the project. The "baby steps" you're taking seems to be the right way to go. You may need to focus a bit more on the documentation though. I was interested in trying the product (for the sake of trying), but couldn't easily go further than the install steps.
This is where command and query (with subscribe) must be neatly separated.
An event A launches an updates of the DB, that launches the query part to react, then stop. There is the risk of having an infinite loop, if the event A is launched by the query part, which is very related to the behavior of your app.
research paper : https://arxiv.org/abs/2512.24601