Historia-chanPython · local AI personal assistant · development since 2025
still in development
The second biggest thing I have built. Historia-chan is a private, local-first AI personal assistant designed to accompany the user, learn about them over time, and use practical desktop tools without ever sending chats, screenshots, or personal facts to a third party.
Company-hosted AI models like ChatGPT send conversations and images to remote servers where user data can be stored or trained on, making true privacy impossible. Standard local models restore privacy, but out of the box they forget past sessions and lack everyday tools. Historia bridges that gap on the user's own hardware.
- Private vector memory — learns facts about the user as they talk and remembers them across conversations. Stored locally in LanceDB vector databases on your computer, so your memories can be inspected, moved, or deleted at any time. A dedicated memory extractor organizes durable facts (
USER_FACT,USER_PREFERENCE,PROJECT,RELATIONSHIP,IMPORTANT_EVENT,GOAL,NOSTALGIA), summarizes short-term context every 20 messages, and folds each session when you pressReset Chat. - Voice conversation — speak naturally into your microphone (transcribed locally with
faster-whisper) and hear Historia speak back usingKokoro TTS. - Screenshot vision — click
Shot/Screenshotto capture any region on your screen; Historia reads math problems, code, documents, or UI captures and explains the answer step by step. - Chat instructions & web research — give Historia persistent
Chat Instructionsthat she always follows, and let her search the internet and return trustworthy sources with direct links so you can verify them yourself. - Expressive & customizable avatar — speaks through a custom VRM model rendered in
Three.jswith 20+ animations and expressions, changing facial expressions and blinking as she talks. Both her model and personality can be swapped to be anything or anyone. - Honest, grounded personality — unlike hosted assistants that agree with everything to win acceptance, Historia is designed to push back clearly if she thinks something is wrong and to answer honestly within her limits as an AI assistant.
Historia is already a working local companion, and development is focused on turning her into a smaller, faster, multi-device assistant that stays 100% local.
- Scalable memory management — when stored knowledge is small, retrieval is fast and simple; as personal history grows over time, smarter retrieval is needed so Historia never loses track of relevant facts.
- Local file read & write tools — giving Historia controlled tools to read and write files directly on the user's computer to help with real tasks.
- Desktop overlay mode — moving Historia out of a single window tab so she can move freely across the screen as an interactive character, highlight things directly, and carry out requests on screen.
- Android app & lightweight models — shrinking the local model footprint so any Android phone can run Historia offline to set alarms, place calls, send messages, and sync memories back and forth with the home PC.
- Everyday companion skills — expanding into interactive activities such as playing chess, drawing, designing, and managing proactive reminders — all running locally with zero data shared externally.
Currently used
- PySide6 (Qt) — cross-platform Python UI supporting Windows and Linux, with a path toward Android.
- llama.cpp (26B MoE) — local LLM backend currently running a 26B Mixture of Experts (MoE) model for chat and tool tasks, paired with a separate deterministic extractor for memory updates.
- faster-whisper — local Speech-to-Text reimplementation of OpenAI's Whisper using CTranslate2.
- Kokoro TTS (82M) — compact 82M-parameter local Text-to-Speech model.
- VRM & Three.js — VRM character models and 3D environment rendering in
Three.js. - LanceDB — embedded vector database for fast, portable local memory storage.
- Codebase modules — organized across
ui/(PySide6 + VTuber viewer),llm/(llama.cpp + Bing scraping / optional Tavily search),speech/(whisper + Kokoro),memory/(LanceDB),vision/(screenshot pipeline), andavatar/(character definitions).
Planned
- Retrieval-Augmented Generation (RAG) — more efficient and accurate retrieval as the local LanceDB knowledge base scales up.
- SearXNG — privacy-respecting metasearch to replace Bing scraping.
- Multi-Agent specialized LLMs — splitting jobs across smaller, task-specific models instead of one heavy 26B MoE model (which is impractical for low-end PCs and phones): e.g. a 4B model for speech/dialogue, a 2B model for screen reading, and a 0.8B model for web search.
The goal is to make Historia small and efficient enough for everyday, completely offline use on every device you own: talk to her outside on your phone for quick questions and daily tasks, then come home, export those memories to Historia on your PC, and continue with full desktop capabilities.
In short, Historia is built to be a private, personal, learning companion — equipped with tools shaped around its user while keeping every conversation and memory strictly on your own machines.