← All projects
Project

Miranda AI

A family style assistant on Telegram that knows the clothes you own.

Note: Miranda is a work in progress. Outfit feedback, the wardrobe and photo storage already work on Telegram. The offer to add new pieces after the feedback is still inconsistent, and editing a piece by chat still needs testing there.

About the Project

Miranda is an AI assistant for fashion and style, made for my family. Each person has their own profile and digital wardrobe, and talks to her in a private Telegram chat.

You can ask what to wear, or send a photo of an outfit and get feedback. Miranda compares the pieces in the photo with your wardrobe and offers to add the ones that are missing. Later, you can ask to see the photo of a piece you saved.

She works with the clothes you already have. Shopping suggestions and price tracking are out of scope for now.

Flowchart: you send an outfit photo on Telegram, get feedback, and Miranda checks your wardrobe. She recognizes saved pieces, asks when she is not sure, and offers to add new ones. If you accept, she saves the details, keeps the photo if you allow it, and shows it when you ask.

Why I built it

My wife often asks ChatGPT for help with outfits and the clothes in her wardrobe. The problem is that it suggests pieces she doesn't have, or makes too much up. She also finds it hard to keep track of which clothes she owns.

Miranda helps with both. She keeps the wardrobe organized, and we can still ask for outfit ideas, now based on the clothes we already have.

How it works

Miranda runs on Hermes Agent, self-hosted on a VPS with Docker. I added three parts to it:

  • An identity file (SOUL.md) defines her personality, scope and limits. She should be honest without being harsh, comment on the outfit and never put the person down. The file is mounted read-only, so the agent can't rewrite it.
  • Skills guide the conversation: filling in the profile, giving style advice and registering clothes.
  • Miranda Core, a Python plugin, gives the agent a small set of tools to read and save profiles, clothes and photos.

The data is in PostgreSQL, on Neon, and the photos are in a private Cloudflare R2 bucket.

Diagram: Telegram messages reach Hermes and its skills, which call the Miranda Core plugin. The plugin stores data in Neon and photos in Cloudflare R2.

Key decision

The model never decides whose data it is reading. Miranda Core takes the identity from the authenticated Telegram message, not from the tool arguments, and rejects calls from outside a private chat. Row-level security in PostgreSQL adds another layer.

Photos need permission: Miranda asks before storing one, and you can register a piece without keeping its photo. Being allowed to chat with her gives no admin access either, even to me.

What I learned

This was my first time setting up Hermes Agent, on a Hostinger VPS, and turning it into a personal stylist that answers on Telegram. I used ChatGPT to write the skills and Miranda Core, the plugin that talks to Neon and to Cloudflare R2.

I also learned to keep an agent focused. Miranda only talks about clothes and style: if someone asks about another subject, she says she can't help with it and brings the conversation back to the wardrobe.

In the end, the agent can register, update and find clothes, link a photo to them and send that photo back. That makes everyday life easier for anyone with a large wardrobe.

Main Technologies

  • Hermes Agent - Self-hosted AI agent
  • Python - Miranda Core plugin
  • Telegram - Chat interface
  • PostgreSQL (Neon) - Profiles and wardrobe, with row-level security
  • Cloudflare R2 - Private photo storage
  • Docker - Runs the agent on a Hostinger VPS
  • ChatGPT - Helped write the skills and the plugin