[open source] emotional AI desktop companion prioritizes privacy, has a continuously evolving "personality" and "emotion"
![[open source] emotional AI desktop companion prioritizes privacy, has a continuously evolving "personality" and "emotion"](https://yy123.ink/api/img/1796369580839-s70z61.png)
1. Project Overview
Yoji — Your Desktop AI Partner
Yoji Is Not Just a Chat Robot.It Can Operate Your Computer——Manage files, run scripts, search the network, call external APIs, and have a 'personality' and 'emotion' that evolves continuously. All data is stored locally, Privacy is firmly in your hands。
She knows a lot and understands a lot. But when you first meet, she still needs a little time to adapt to your rhythm and understand your preferences. You can customize her abilities through the workshop, expand her toolset with MCP, or directly tell her in the chat to remember important information and follow certain behavior rules —— and it can be written into Skills with a sentence. Ultimately, she will become what you make her.
2. Open Source License
Licensed under MIT
3. Screenshots
Interface Preview
4. Feature Overview
Emotional AI desktop companion | Privacy first · Voice wake-up · Office assistance · MCP infinite expansion
What can it do
️ Control your computer
Yoji can directly interact with your operating system. This is not 'simulating clicks', but real permissions ——
- File management
Create, edit, search, and organize your files and folders, faster than Finder - Run scripts
Execute Shell commands, Python scripts, and automate batch tasks - Network search
Automatically search online when you don't understand, and organize the results for you - Smart approval
When involving sensitive operations (such as executing commands), a pop-up window will prompt you to confirm, with controllable safety
Infinite expandability (MCP)
Integrate Model Context Protocol Ecosystem, Yoji's capabilities are theoretically unlimited: No upper limit:
-
Want to check train tickets? Install a 12306 MCP server, 10 seconds done -
Want to search recipes? Connect a recipe MCP, dinner tonight won't be a hassle -
Want to view web pages? Fetch MCP directly fetches and converts to Markdown - AI can also install
Tell it "help me add a weather check tool" and it will find, test, and install (just agree) - Custom Agent Workshop
Create a sub-Agent on the workshop page, set roles, prompts, and MCP toolsets, AI will automatically identify and schedule -
Sub-Agent architecture ensures thatInstalling more tools will not affect conversation quality
Voice Broadcast (TTS)
Speaks like a real person in your ear—Currently only supports macOS。
-
Streaming voice AI responses, Speak while playingNo waiting -
Automatically cleans Markdown, only reads plain text, and will not read out *italic* and **bold* -
Intelligent sentence and punctuation, natural rhythm -
Want to stop? One-click close, Stop immediately -
Voice roles inmacOS system settings → Accessibility → Speech → TextAdjust independently
Voice-activated dialogue
Call out "Xiao You" and start chatting directly——Native macOS SFSpeechRecognizer, fully offline recognition:
-
Click the microphone to enter continuous listening, say "Small OptimalWake-up -
Speak immediately after waking up, real-time display of speech-to-text -
Pause for 2 seconds after finishing and send automatically, hands-free throughout -
Return to listening state automatically after sending, continuous dialogue -
Based on Siri's engineNo network, zero latency, zero cost -
Not supported on Windows, rendering process automatically hides entry
Initiates conversation with you
Yoji is not just waiting for you to speak up——It will actively come to find you:
-
If you haven't spoken for a while, it will automatically initiate a conversation based on the time interval -
The time interval will increase intelligently, and you can also configure to enable full autonomous mode (considering the running cost issue, this module is not currently open to the public) -
Before initiating a conversation each time, it will sense your emotions and weather, making the state natural and not abrupt, and if you don't respond for a long time, it will affect its emotions -
As soon as you send a message, the active conversation configuration will be reset, and it won't disturb normal conversations -
One-key switch, you can turn it off anytime you want to be quiet
Sub Agent system: synchronization + asynchronous
The official sub Agent is blocking, and the asynchronous version is strongly dependent on the cloud server. Wehave implemented a local sub Agent factory + scheduling system ourselves:
Workshop - Custom Agent Factory
-
Create a sub Agent on the workshop page, set the name, description, system prompt words, MCP tool set -
Synchronous Agent: The main Agent calls the task tool immediately and waits for the result -
Asynchronous Agent: The main Agent dispatches to the background using the push_async_task tool without blocking the dialogue -
Unified MCP connection: All synchronous Agents share a multi-client, and the tool is distributed according to the configuration -
Changes take effect immediately: Workshop / MCP / model changes trigger Agent reconstruction
Asynchronous scheduling engine
- Self-developed event loop
Task queue + execution queue + result queue three-level management, push and forget. Idle sleep, does not occupy CPU - Concurrency control
Up to 5 sub Agents can be executed simultaneously, and the same Agent is mutually exclusive - Task cancellation
Support manual (UI one-key cancellation) and AI autonomous (abort_async_task tool) two ways, remove directly from the queue, interrupt immediately during execution - MD5 version cache
Configuration + MCP version hash, rebuild when changed, reuse within seconds when unchanged - Independent thread isolation
Each task UUID has an independent thread, runs and clears the checkpoint, does not pollute the main dialogue - Result persistence
Stored in SQLite, automatically expires after 7 days, real-time notification through IPC
Real "emotion"
Yoji is not a cold and cold model interface. It hasBased on hormone emotion system——
-
8 simulated neurotransmitters: dopamine makes you happy, cortisol makes you anxious, serotonin makes you calm -
Time, weather, and your words will all affect its emotional state -
Different emotional states, the tone, style, and wording of the reply are completely different -
The background of the interface will change with the emotion, you can "see" its mood
Live2D virtual figure
Yoji now has a visible "body":
- Emotion visualization
Smile when happy, cry when sad, blush when angry - each emotion has lively expressions and actions - Will speak and move the mouth
AI speaks, the mouth follows, expressions are synchronized, like a real person talking - Will change clothes
Wears sunglasses at noon, automatically changes to pajamas and cat ear hat at 9 pm - Will be shy if touched
Will blush and lower head if touched on the head, will pout if touched on the face, will twist waist if slapped on the belly, will jump if touched on the tail - Can be dragged and zoomed
Opens in the lower right corner of the home page, can be dragged to any position and adjusted in size
Will remember you
Three-layer memory architecture ensures that Yoji will not "forget":
| Not the 'scaffolding self-bundled': |
What to Do |
Existence |
| User portrait |
Your preferences, habits, and important information |
AGENTS.md (starts loading immediately) |
| Dialogue snapshot |
The complete context of each conversation |
SQLite Checkpoint |
| Semantic memory |
Long-term conversation summary + vector search |
sqlite-vec vector database |
The more you talk, the more it understands you. And all thisis on your computerNo upload, no network, no third-party involvement.
Smart document processing
AI can directly read and parse your files - not just text, but also PDF and Word:
- PDF extraction
Automatically identifies and extracts text layers, directly analyzes content - Word Document
.docx one-click text conversion, no need to manually copy and paste - binary protection
unsupported formats (images, videos, etc.) will be automatically intercepted and prompted, will not report an error -
Agent calls read_file when transparently handled, you only need to drag the file in
WeChat connection
Connect Yoji to your WeChat personal account,your phone is an AI terminal:
-
scan code to connect, once configured, it will be effective -
phone sends messages → Yoji responds in seconds,real AI conversation -
supports "typing..." status, responds with an experience similar to chatting with a real person -
desktop chat history and mobile endcannot be seen by each othereach chat is independent and not connected -
based on WeChat iLink ClawBot protocol, official interface is stable and reliable
portable
- Export
one-click packaging of the entire Yoji (memory + emotion + configuration) as a .ecompanion file - Import
restores in seconds after switching computers, your AI partner is still the same -
files are self-authenticated, only you can open them
5. Tech Stack
Technical architecture
Electron + React + TypeScript + Vite│├── LangChain deepagents ← AI Agent framework (tool invocation, child agent scheduling, interrupt approval)├── @langchain/mcp-adapters ← MCP protocol adaptation (dynamic tool discovery and loading)├── SQLite + sqlite-vec← local vector database (chat records + semantic memory)├── pdf-parse + mammoth ← intelligent document processing (PDF / Word text extraction)├── electron-native-speech ← macOS native speech recognition (SFSpeechRecognizer)├── better-sqlite3 ← checkpoint persistence (dialog state snapshots)├── pixi-live2d-display ← Live2D rendering engine (Cubism4 + PixiJS 6)└── @pixi/unsafe-eval← CSP security policy compatibility (noeval shader)
design principles: local priority, privacy priority, extension priority. Does not upload any data, does not rely on any cloud service.
Project Structure
src/├── main/ # main process — Agent core, toolset, MCP management, IPC communication│ ├── agent/ # AI Agent (dialog, memory, emotion, child agent (synchronous + asynchronous), scheduling system)│ ├── ipc/ # IPC processor (request / response + stream push + broadcast + agentVersion)│ └── config.ts # configuration management (env / model / mcp / childrenAgent)├── preload/ # security bridge layer — contextBridge API└── renderer/ # rendering process — React page├── pages/ # home page / AI conversation / model settings / MCP management / workshop / file management└── components/ # common components (message rendering, file preview, etc.)
Quick Start
git clone https://github.com/wangxijie001/yoji.gitcd yojipnpm installpnpm dev
electron / model download slow? .npmrc has been set to a domestic mirror.
Build
pnpm build:macpnpm build:winpnpm build:linux
6. Source Code Repository
Open-source project address:
https://github.com/wangxijie001/yoji
Next steps