I recreated Tom Riddle's diary from Harry Potter with Claude, and it feels like magic

XDA

Source published: Site published:

Original article

There are some moments in life that you never forget. I say this as someone who often jokes that my memory is worse than a goldfish's. Even so, one memory that has stayed with me is the first time I read and watched the entire Harry Potter series. It's been years, but I still remember how much I wished some of the things in the books were real. One of those things was a diary that could write back to me.

I've recently been using vibe coding to bring back parts of my childhood, from recreating the games I grew up playing to the gadgets I used as a child. So, when I saw a post on X about someone using AI to bring that very diary to life on their reMarkable, I knew right away what I wanted to build next. But I wanted to make mine work on an e-reader I already owned: my Boox.

Someone turned their reMarkable into Tom Riddle's diary

Straight out of the Chamber of Secrets

If you've never read or watched Harry Potter and the Chamber of Secrets, Tom Riddle's diary looked like an ordinary diary with blank pages. But it had a special power: anything you wrote in it would disappear from the pages, and the diary would then write back to you.

The idea always felt like magic to me. Even though I'm much older now, I still think there's something special about writing with a pen on paper and having the paper write back. So you can imagine how excited I was when I saw that a developer named Maxime Rivest had recreated this experience on his reMarkable Paper Pro using Anthropic's Fable model.

The project is called Riddle, and it's open-source. Rivest has made the whole project available on GitHub. Just like the diary in Harry Potter, it has no text boxes, no send buttons, and nothing that looks like a normal chatbot.

Instead, you simply write on your reMarkable as you usually would. After you stop writing for 2.8 seconds, the app turns your writing into an image and sends it to a large language model (LLM) that can understand images. Your handwriting slowly disappears from the page, and the diary replies in cursive, drawing each stroke one at a time. It looks as if someone on the other side is physically writing back to you. Rivest also added a memory system. This lets you find old diary entries simply by writing what you're looking for.

I used the same AI model to build a version for my Boox

My Boox was ready for a little magic

Although the developer made Riddle open-source, and you can run it on your own reMarkable, I don't currently own one. I do have a Boox Note Air 6C, though. Since Rivest used Anthropic's Fable model to build the diary, I decided to see if the same model could create a version for my Boox.

You can try the diary yourself on any device with a web browser here. You'll just need to sign in to your Claude account and give it permission to use AI.

I started by asking Fable 5.2 to research Rivest's project. Then I gave it a very simple prompt asking it to build a version that I could use on my Boox. I didn't tell Fable how to build the diary or which features to include. I had already given it enough information about Rivest's project.

Instead of making a native Android app that I would have to install manually on my device, Fable built the diary as a Claude Artifact. This meant I could open it directly in the browser on my Boox. The first version was quite basic, so I asked Fable to make it more complete. This time, it added a black cover with T. M. Riddle's name, a proper animation that showed the handwriting appearing one stroke at a time, and a memory system that stayed in place between sessions.

The diary felt just as magical as I'd imagined

The closest I'll get to attending Hogwarts

Because the diary was built as an AI-powered Claude Artifact, it could create replies using my existing Claude account. All I had to do was open the link on my Boox, sign in to Claude, and give the diary permission to use AI.

I'll admit that even though I knew exactly how it worked, watching my handwriting disappear from the page and seeing the diary write back felt just as magical as I had imagined it would when I was a child. The main difference I noticed between Rivest's version and the one Fable made for me was the speed. My diary replied a little too quickly. I liked the slower writing animation in Rivest's version better, although changing the speed would be easy.

What impressed me even more than the animation was how well the diary remembered things. At first, I introduced myself to it as Mahnoor. Later, I opened it again and introduced myself as Harry to see if it would stay in character. It remembered that I had earlier called myself Mahnoor and asked which of the two names was really mine.

Since the diary sends an image of what I write to an LLM instead of simply turning my handwriting into text, I also wanted to see how well it could understand drawings. I drew a lightning bolt on the page without writing any words next to it. The diary replied:

Ah, a lightning bolt. The very mask a certain boy wore upon his brow. Is it the sketch of a scar or a clever joke? Tell me which of you drew it, Mahnoor or Harry?

It had not only understood my drawing and connected it to the Harry Potter world, but had also linked it to our earlier conversation. I then asked the diary about the Chamber of Secrets, and it kept replying just as I would expect Tom Riddle's diary to.

Even when I asked about the Chamber of Secrets again and again, it refused to stop acting like Tom Riddle's diary. Instead, it asked why I was so interested in it. Small details like these made the experience feel much more like talking to the diary I had read about years ago than chatting with an AI.

The magic isn't limited to my Boox

Another nice surprise was that Fable built the diary as a Claude Artifact instead of a regular Boox app. This meant I wasn't limited to using it on my Boox. I opened it on my laptop and phone, and it worked just as well on both. The diary's memory also carried over between devices. It remembered the two different names I had used, the lightning bolt I had drawn, and parts of our earlier conversations.