NickCharlie/astrbot_plugin_self_learning
AstrBot 自主学习插件 — 让 AI 聊天机器人自主学习对话风格、理解群组黑话、管理社交关系与好感度、自适应人格演化,像真人一样自然对话。
What it solves
AstrBot chatbots normally reply without remembering the group's specific style, slang, or social dynamics. This plugin lets the bot continuously learn from group conversations and inject that learned context into future LLM requests, so replies gradually feel more native, personalized, and aware of the group's culture and relationships.
How it works
The plugin hooks into three points in AstrBot: when a message arrives, after the bot sends a reply, and before the next LLM request. It captures messages, runs learning pipelines (expression patterns, jargon mining, social analysis, memory/knowledge graphs), sends results to a review queue, and after approval injects them as extra context into the LLM request. It also provides a WebUI dashboard for settings, review, and monitoring. The plugin does not replace AstrBot's reply logic; it enhances it at those three points. It supports SQLite, MySQL, and PostgreSQL databases with automatic table creation and column-level migration.
Who it’s for
AstrBot users—especially group admins—who want their bot to gradually adopt the group's communication style, slang, and social relationships. It requires admin permissions for management commands and manual dependency installation via the WebUI. It is designed for long-running deployments where the bot can learn from ongoing group activity.
Highlights
- Continuous learning from group chat: expression style, jargon, social relationships, memory, and personality evolution.
- Human-in-the-loop review: approve, reject, delete, rollback, and auto-apply learned content.
- Injects learned context into LLM requests (few-shot examples, jargon explanations, social context, memory).
- WebUI dashboard with 14 routes: overview, review queue, jargon, expression, persona, shadow mode, emotion hub, graphs, settings, and more.
- Multi-database support (SQLite, MySQL, PostgreSQL) with auto table creation and column-level migration.
- Management commands for status, start/stop/force learning, manual remember, affection status, and mood.
- Integrates with companion plugins (LivingMemory, Group Chat Plus, LivingHello) to avoid overlapping features.
Related
- Project
- Project
- Project
- Project
- Project