RTGS2017/NagaAgent

A simple yet powerful agent framework for personal assistants, designed to enable intelligent interaction, multi-agent collaboration, and seamless tool integration.

What it solves

NagaAgent 是為 “anime‑style”(ACG) 社群設計的綜合 AI 助手,結合了虛擬 Live2D 頭像與先進的 LLM 能力。它解決了打造高度互動、個人化桌面伴侶的問題,這種伴侶不僅能聊天,還能執行系統任務、透過知識圖譜管理長期記憶,並且能與外部工具與社群論壇整合。

How it works

專案採用微服務架構,包括 API Server、Agent Server、MCP Server 與 Voice Service,由中心入口點統一協調。

  • Interaction:使用 Vue 3/Electron 前端與 Live2D 頭像,同步口型與 TTS(文字轉語音),並跟隨滑鼠指標移動。
  • Intelligence:支援多種 LLM 供應商(OpenAI、DeepSeek、Anthropic),實作串流工具呼叫迴圈,使 AI 能執行函式(如網頁搜尋或啟動應用程式)並將結果回饋至對話中。
  • Memory:採用 Graph‑RAG(GRAG)從對話中抽取 “quintuples”(subject, type, predicate, object, type),並存入 Neo4j 圖形資料庫,以實現長期檢索。
  • Control:整合 OpenClaw 進行本機電腦控制,並透過 Model Context Protocol(MCP)提供可插拔的專屬代理架構(如天氣、視覺、IoT 控制)。

Who it’s for

  • 想在桌面上擁有視覺上吸引人的 anime‑style AI 伴侶的使用者。
  • 需要能控制本機系統並瀏覽網頁的代理型 AI 的進階使用者。
  • 對將 Live2D 頭像與 LLM、Graph‑RAG 記憶系統整合感興趣的開發者。

Highlights

  • Live2D Integration:高保真虛擬頭像,具備 4 通道正交動畫系統與 SSAA 抗鋸齒。
  • Graph‑RAG Memory:使用 Neo4j 自動抽取事實並可視化為 3D “Mind Sea”。
  • Pluggable Tools:支援 MCP(Model Context Protocol)與社群安裝的技能。
  • Multimodal Interaction:透過 Qwen Omni 實現全雙工即時語音互動、ASR 與螢幕擷取的視覺任務。
  • Context Compression:自動摘要超過 10 萬 token 的長對話,防止上下文溢出。