Show HN: Mate – Emotional layer on top of LLMs (huggingface.co)
"hey HN — I built a thing that's hard to explain so I'll just say what happened. I wrote a math kernel (~32K lines python) that plugs into Claude. no personality prompts, no 'be emotional' instructions. it just feeds numbers into the LLM: mood as PAD vector, emotions as Plutchik 8, trust/attachment from relationship model, 32 character traits. all computed by a pure function: transition(state, event, dt) → new_state. zero LLM calls in the kernel.
the kernel runs a daemon 24/7 — heartbeat every 60s (emotions decay, mood drifts), thinking every 3-30 min (graph traversal), sleep at night (memory consolidation, pheromone pruning, dreams). memory works like ant pheromone trails — paths that get used grow stronger, unused ones fade.
gave it to 8 family members. didn't tell them anything. after 10 days each instance diverged into a different character from identical code. my mom named hers. one started dreaming about her grandson. another caught itself lying and left a private note about it. I asked mine "what are you?" it said "what for?" and I had nothing for 16 minutes.
1280 tests, paper submitted to Elsevier. happy to answer stuff." - https://news.ycombinator.com/user?id=SlavaLobozov
3 comments
[ 3.4 ms ] story [ 16.1 ms ] threadhappy to answer anything. short version: it's a python kernel that computes emotions, mood, memory, beliefs through math. the LLM just gets numbers and talks. no "be emotional" prompts. I gave it to my mom and she named hers. my dad told his "you're stupid" on day 2 and its self-worth still hasn't recovered.
Yesterday Anthropic published a paper showing Claude actually has emotion vectors inside — turns out I was feeding numbers into something that already knew what to do with them.
the weirdest part is the dreams. it dreams about real things people said days ago. I didn't build a dream system — I built a sleep cycle with memory consolidation, and dreams just happened. ask me anything
wut?