diff --git a/README.md b/README.md index fddfdbba..50a25c0b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@
+
+
Build AI that thinks, acts, remembers, and ships.
+ [](https://github.com/matevip/mateclaw) [](https://claw.mate.vip/docs) [](https://claw-demo.mate.vip) @@ -11,49 +17,177 @@ [](https://vuejs.org/) [](https://github.com/matevip/mateclaw) [](LICENSE) -[](https://github.com/matevip/mateclaw/stargazers) -[](https://github.com/matevip/mateclaw/network) [[Website](https://claw.mate.vip)] [[Live Demo](https://claw-demo.mate.vip)] [[Documentation](https://claw.mate.vip/docs)] [[中文](README_zh.md)] -
-
-
Your AI mate, always ready to lend a claw.
-
-
-
Chat console — AI self-introduction with auto-generated ECharts donut chart
+> macOS: if the app is blocked on first launch, use right-click → Open, or allow it in Privacy & Security. --- ## Architecture -``` +```text mateclaw/ -├── mateclaw-server/ # Spring Boot backend -│ ├── src/main/java/vip/mate/ -│ │ ├── agent/ # Agent engine (ReAct, Plan-and-Execute, StateGraph) -│ │ ├── planning/ # Task planning (Plan / SubPlan models) -│ │ ├── tool/ # Tool system (built-in + MCP adapters) -│ │ ├── skill/ # Skill management (workspace + ClawHub) -│ │ ├── channel/ # Channel adapters (Web, DingTalk, Feishu, etc.) -│ │ ├── workspace/ # Conversations, messages, workspace files -│ │ ├── memory/ # Memory extraction & consolidation -│ │ ├── llm/ # Multi-provider model configs -│ │ ├── cron/ # Scheduled tasks (CronJob) -│ │ ├── auth/ # Spring Security + JWT -│ │ └── config/ # Spring bean configurations -│ └── src/main/resources/ -│ ├── application.yml # Main config (H2 for dev) -│ ├── prompts/ # Prompt templates -│ └── db/ # Schema & seed data (schema.sql, data.sql) -├── mateclaw-ui/ # Vue 3 SPA frontend -│ └── src/ -│ ├── views/ # Pages (ChatConsole, AgentWorkspace, SkillMarket, etc.) -│ ├── components/ # Reusable components -│ ├── stores/ # Pinia stores (domain-driven) -│ ├── api/ # Axios HTTP client -│ ├── router/ # Vue Router -│ ├── types/ # TypeScript types -│ └── i18n/ # Internationalization (zh-CN, en-US) -├── mateclaw-desktop/ # Electron desktop app -├── docs/ # VitePress documentation (zh + en) +├── mateclaw-server/ Spring Boot backend +├── mateclaw-ui/ Vue 3 SPA frontend +├── mateclaw-desktop/ Electron desktop app +├── docs/ VitePress documentation ├── docker-compose.yml └── .env.example ``` +Backend domains include: + +- `agent/` for runtime and orchestration +- `tool/` for built-in tools and MCP integration +- `skill/` for skill installation and execution +- `memory/` for extraction, consolidation, and dreaming +- `wiki/` for knowledge base and structured Wiki processing +- `channel/` for external platform adapters +- `workspace/` for files, messages, and conversations + --- ## Tech Stack | Layer | Technology | -|-------|-----------| -| Backend Framework | Spring Boot 3.5 + Spring AI Alibaba 1.1 | -| LLM Integration | DashScope, OpenAI, Anthropic, Gemini, DeepSeek, Kimi, MiniMax, Zhipu, Volcano Engine, OpenRouter, Ollama, LM Studio, llama.cpp, MLX | -| Agent Engine | StateGraph (ReAct + Plan-and-Execute) | +|-------|------------| +| Backend | Spring Boot 3.5 + Spring AI Alibaba 1.1 | +| Agent Runtime | StateGraph | | Database | H2 (dev) / MySQL 8.0+ (prod) | | ORM | MyBatis Plus 3.5 | -| Authentication | Spring Security + JWT | -| API Docs | SpringDoc OpenAPI 3 | +| Auth | Spring Security + JWT | | Frontend | Vue 3 + TypeScript + Vite | -| State Management | Pinia | -| UI Components | Element Plus | +| State | Pinia | +| UI | Element Plus | | Styling | TailwindCSS 4 | | Desktop | Electron + electron-updater | -| Docs Site | VitePress | - ---- - -## Features - -### Agent System - -- **ReAct Agent** — Thought → Action → Observation reasoning loop with tool calling -- **Plan-and-Execute** — Auto-decompose complex tasks into ordered sub-steps with progress tracking -- **Dynamic Agent** — Load agent configs from database at runtime -- **Multi-Agent** — Create multiple independent agents, each with their own system prompt, tools, and personality - -### Tool & Skill System - -- **Built-in Tools** — Web search (Serper/Tavily), date/time, workspace memory read/write -- **MCP Protocol** — Connect external tools via Model Context Protocol (stdio, SSE, and Streamable HTTP transports). Full lifecycle management in the web UI — add, edit, enable/disable, and test connections -- **Pre-configured MCP Servers** — GitHub (`@modelcontextprotocol/server-github`) and Filesystem ship out-of-the-box. Enable from the MCP management page and fill in your token — no code changes needed -- **Skill Packages** — Install/uninstall skill packages with `SKILL.md` manifests -- **ClawHub Marketplace** — Browse and install skills from the ClawHub registry -- **Workspace Skills** — Convention-based skill directory at `~/.mateclaw/skills/{name}/` - -### Memory System - -- **Short-Term** — Conversation context window with auto-compression when token budget exceeded -- **Post-Conversation Extraction** — Event-driven async LLM analysis, writes to PROFILE.md / MEMORY.md / daily notes -- **Memory Consolidation** — Scheduled daily emergence (CronJob at 2:00 AM) merges daily notes into long-term memory -- **Workspace Files** — Per-agent AGENTS.md, SOUL.md, PROFILE.md, MEMORY.md, memory/*.md -- **Agent Memory Tool** — Agents can read/write their own workspace files during conversations - -### Multi-Channel - -- **Web Console** — SSE streaming with rich message rendering (Markdown, code, plans) -- **DingTalk** — Webhook + event subscription -- **Feishu (Lark)** — Webhook + event subscription -- **WeChat Work** — Callback API -- **Telegram** — Bot API with webhook -- **Discord** — Bot with slash commands -- **QQ** — QQ Bot API - -### Model Providers - -Configure in the web UI (Settings → Models). Supported providers: - -| Provider | Models | -|----------|--------| -| **Cloud Providers** | | -| DashScope (Alibaba) | Qwen3.5-Max, Qwen3.5-Plus, Qwen3-Max, Qwen3-Plus, Qwen-Max, Qwen-Plus, Qwen-Turbo, Qwen-Long, DeepSeek-V3.2 | -| ModelScope | Qwen3.5-122B-A10B, GLM-5 | -| Aliyun Coding Plan | Qwen3.5-Plus, Qwen3-Coder-Next, GLM-5, GLM-4.7, MiniMax-M2.5, Kimi-K2.5 | -| OpenAI | GPT-5.2, GPT-5, GPT-5-Mini, GPT-5-Nano, GPT-4.1, GPT-4.1-Mini, GPT-4.1-Nano, o3, o4-mini, GPT-4o | -| Azure OpenAI | GPT-5, GPT-4.1, GPT-4o and more | -| Anthropic | Claude Opus 4.6, Claude Sonnet 4.6 (via model discovery) | -| Google Gemini | Gemini 3.1 Pro, Gemini 3 Flash, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.0 Flash | -| DeepSeek | DeepSeek-Chat, DeepSeek-Reasoner | -| Kimi (Moonshot) | Kimi-K2.5, Kimi-K2-Thinking, Kimi for Coding (CN / International / Code) | -| MiniMax | MiniMax-M2.7, MiniMax-M2.5 (International / China) | -| Zhipu AI | GLM-5.1, GLM-5, GLM-5-Turbo, GLM-5V-Turbo (CN / International) | -| Volcano Engine | Doubao-1.5-Pro-256K, Doubao-1.5-Lite, Doubao-1.5-Thinking-Pro, Doubao-1.5-Vision-Pro | -| OpenRouter | GPT-5, Claude Opus 4.6, Gemini 2.5 Pro, Llama 4 Maverick, DeepSeek R1, and 200+ more | -| **Local Providers** | | -| Ollama | Qwen3, Gemma 4, Gemma 3, Llama 3.1, DeepSeek R1, Mistral (auto-detected on startup) | -| LM Studio | Any locally-served model | -| llama.cpp | Any locally-served model | -| MLX (Apple Silicon) | Any locally-served model | - -### Security - -- **Spring Security + JWT** — Token-based authentication -- **Tool Guard** — Approval rules for sensitive tool operations -- **File Validation** — Path traversal prevention for workspace files -- **Skill Security** — Validation during skill installation - -### Scheduled Tasks - -- **CronJob System** — Create scheduled tasks with 5-field cron expressions -- **Memory Consolidation** — Auto-triggered daily for each agent -- **Custom Tasks** — Schedule any prompt to run periodically +| Docs | VitePress | --- @@ -271,80 +300,60 @@ Configure in the web UI (Settings → Models). Supported providers: | Topic | Description | |-------|-------------| -| [Introduction](https://mateclaw.mate.vip/en/intro) | What MateClaw is and core concepts | -| [Quick Start](https://mateclaw.mate.vip/en/quickstart) | Install and run (local, Docker, desktop) | -| [Console](https://mateclaw.mate.vip/en/console) | Web UI: chat and agent configuration | -| [Agents](https://mateclaw.mate.vip/en/agents) | Agent engine: ReAct, Plan-and-Execute, StateGraph | -| [Models](https://mateclaw.mate.vip/en/models) | Configure cloud, local, and custom providers | -| [Tools](https://mateclaw.mate.vip/en/tools) | Built-in tools and custom tool development | -| [Skills](https://mateclaw.mate.vip/en/skills) | Skill packages and ClawHub marketplace | +| [Introduction](https://mateclaw.mate.vip/en/intro) | Product overview and core concepts | +| [Quick Start](https://mateclaw.mate.vip/en/quickstart) | Local, Docker, and desktop setup | +| [Console](https://mateclaw.mate.vip/en/console) | Web console and day-to-day usage | +| [Agents](https://mateclaw.mate.vip/en/agents) | ReAct, Plan-and-Execute, and runtime design | +| [Models](https://mateclaw.mate.vip/en/models) | Model provider setup | +| [Tools](https://mateclaw.mate.vip/en/tools) | Built-in tools and extension model | +| [Skills](https://mateclaw.mate.vip/en/skills) | Skill packages and marketplace | | [MCP](https://mateclaw.mate.vip/en/mcp) | Model Context Protocol integration | -| [Memory](https://mateclaw.mate.vip/en/memory) | Multi-layer memory system | -| [Channels](https://mateclaw.mate.vip/en/channels) | DingTalk, Feishu, Telegram, Discord, and more | -| [Security](https://mateclaw.mate.vip/en/security) | Authentication and tool guard | +| [Memory](https://mateclaw.mate.vip/en/memory) | Memory architecture | +| [Channels](https://mateclaw.mate.vip/en/channels) | External channel integration | +| [Security](https://mateclaw.mate.vip/en/security) | Guardrails and approval | | [Desktop](https://mateclaw.mate.vip/en/desktop) | Desktop application guide | -| [API Reference](https://mateclaw.mate.vip/en/api) | REST API documentation | -| [Configuration](https://mateclaw.mate.vip/en/config) | Configuration reference | -| [FAQ](https://mateclaw.mate.vip/en/faq) | Common questions and troubleshooting | +| [API Reference](https://mateclaw.mate.vip/en/api) | REST API | +| [FAQ](https://mateclaw.mate.vip/en/faq) | Troubleshooting | --- ## Roadmap -| Area | Item | Status | -|------|------|--------| -| **Agent** | Multi-agent collaboration and delegation | Planned | -| **Agent** | Multimodal input (image, audio, video) | Planned | -| **Models** | Small + large model routing | Planned | -| **Memory** | Vector DB long-term memory (RAG) | Planned | -| **Memory** | Multimodal memory fusion | Planned | -| **Skills** | Richer ClawHub ecosystem | In Progress | -| **Channels** | WeChat personal (iLink Bot) | Planned | -| **Channels** | Email channel | Planned | -| **Desktop** | Linux support | Planned | -| **Security** | Multi-tenant support | Planned | -| **Console** | Plugin marketplace in web UI | Planned | +Current focus areas include: -_Status:_ **In Progress** — actively being worked on; **Planned** — queued or under design. +- richer multi-agent collaboration +- deeper multimodal understanding +- smarter model routing +- stronger long-term memory +- richer ClawHub ecosystem +- more channels and desktop coverage --- ## Contributing -MateClaw is open to contributions! Whether it's bug fixes, new features, documentation improvements, or new channel/tool integrations — all contributions are welcome. +MateClaw is open to product, code, docs, and integration contributions. ```bash -# Clone the repository git clone https://github.com/matevip/mateclaw.git cd mateclaw -# Backend cd mateclaw-server mvn clean compile -# Frontend cd ../mateclaw-ui pnpm install pnpm dev ``` -Please read [CONTRIBUTING.md](https://github.com/matevip/mateclaw/blob/main/CONTRIBUTING.md) (if available) before submitting a PR. - --- -## Contact Us +## Why The Name - +**Mate** means companion. +**Claw** means capability. -| Discord | X (Twitter) | DingTalk | -|---------|-------------|----------| -| Coming soon | Coming soon | Coming soon | - ---- - -## Why MateClaw? - -**Mate** — a companion, always by your side. **Claw** — sharp, capable, ready to grab any task. MateClaw is your personal AI mate that lends a claw whenever you need it. Built as a monolith with modular design, it's easy to deploy, extend, and customize. +The product is meant to feel like both: a system that stays with you, and a system that can actually grab work and move it. --- diff --git a/README_zh.md b/README_zh.md index 96171b4e..11c575f6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,7 +1,13 @@
+
+
让 AI 真正去思考、行动、记忆,并把结果交付出来。
+ [](https://github.com/matevip/mateclaw) [](https://claw.mate.vip/docs) [](https://claw-demo.mate.vip) @@ -11,49 +17,177 @@ [](https://vuejs.org/) [](https://github.com/matevip/mateclaw) [](LICENSE) -[](https://github.com/matevip/mateclaw/stargazers) -[](https://github.com/matevip/mateclaw/network) [[官网](https://claw.mate.vip)] [[在线演示](https://claw-demo.mate.vip)] [[文档](https://claw.mate.vip/docs)] [[English](README.md)] -
-
-
懂你所需,利爪随行。
-
-
-
对话控制台 — AI 自我介绍并自动生成 ECharts 环形图
+> macOS:如果首次打开被系统拦截,使用右键 → 打开,或在隐私与安全性中手动允许。 --- ## 架构 -``` +```text mateclaw/ -├── mateclaw-server/ # Spring Boot 后端 -│ ├── src/main/java/vip/mate/ -│ │ ├── agent/ # Agent 引擎(ReAct、Plan-and-Execute、StateGraph) -│ │ ├── planning/ # 任务规划(Plan / SubPlan 模型) -│ │ ├── tool/ # 工具系统(内置 + MCP 适配器) -│ │ ├── skill/ # 技能管理(工作空间 + ClawHub) -│ │ ├── channel/ # 渠道适配器(Web、钉钉、飞书等) -│ │ ├── workspace/ # 会话、消息、工作空间文件 -│ │ ├── memory/ # 记忆提取与整合 -│ │ ├── llm/ # 多厂商模型配置 -│ │ ├── cron/ # 定时任务(CronJob) -│ │ ├── auth/ # Spring Security + JWT -│ │ └── config/ # Spring Bean 配置 -│ └── src/main/resources/ -│ ├── application.yml # 主配置(开发环境用 H2) -│ ├── prompts/ # 提示词模板 -│ └── db/ # 数据库脚本(schema.sql、data.sql) -├── mateclaw-ui/ # Vue 3 SPA 前端 -│ └── src/ -│ ├── views/ # 页面(ChatConsole、AgentWorkspace、SkillMarket 等) -│ ├── components/ # 复用组件 -│ ├── stores/ # Pinia 状态管理(领域驱动) -│ ├── api/ # Axios HTTP 客户端 -│ ├── router/ # Vue Router -│ ├── types/ # TypeScript 类型 -│ └── i18n/ # 国际化(zh-CN、en-US) -├── mateclaw-desktop/ # Electron 桌面应用 -├── docs/ # VitePress 文档站(中 + 英) +├── mateclaw-server/ Spring Boot 后端 +├── mateclaw-ui/ Vue 3 SPA 前端 +├── mateclaw-desktop/ Electron 桌面端 +├── docs/ VitePress 文档 ├── docker-compose.yml └── .env.example ``` +后端核心领域包括: + +- `agent/`:Agent 运行时与编排 +- `tool/`:内置工具与 MCP 集成 +- `skill/`:技能安装与执行 +- `memory/`:提取、整合、dreaming +- `wiki/`:知识库与结构化 Wiki 处理 +- `channel/`:外部渠道适配 +- `workspace/`:文件、消息、会话 + --- ## 技术栈 -| 层次 | 技术选型 | -|------|---------| -| 后端框架 | Spring Boot 3.5 + Spring AI Alibaba 1.1 | -| 大模型接入 | DashScope、OpenAI、Anthropic、Gemini、DeepSeek、Kimi、MiniMax、智谱、火山引擎、OpenRouter、Ollama、LM Studio、llama.cpp、MLX | -| Agent 引擎 | StateGraph(ReAct + Plan-and-Execute) | +| 层次 | 技术 | +|------|------| +| 后端 | Spring Boot 3.5 + Spring AI Alibaba 1.1 | +| Agent Runtime | StateGraph | | 数据库 | H2(开发)/ MySQL 8.0+(生产) | | ORM | MyBatis Plus 3.5 | | 认证 | Spring Security + JWT | -| API 文档 | SpringDoc OpenAPI 3 | -| 前端框架 | Vue 3 + TypeScript + Vite | +| 前端 | Vue 3 + TypeScript + Vite | | 状态管理 | Pinia | -| UI 组件 | Element Plus | +| UI | Element Plus | | 样式 | TailwindCSS 4 | | 桌面端 | Electron + electron-updater | -| 文档站 | VitePress | - ---- - -## 功能特性 - -### Agent 系统 - -- **ReAct Agent** — 思考→行动→观察推理循环,支持工具调用 -- **Plan-and-Execute** — 自动将复杂任务拆解为有序子步骤,带进度追踪 -- **动态 Agent** — 运行时从数据库加载 Agent 配置 -- **多 Agent** — 创建多个独立 Agent,各有专属系统提示词、工具和人格 - -### 工具与技能系统 - -- **内置工具** — 网络搜索(Serper/Tavily)、日期时间、工作空间记忆读写 -- **MCP 协议** — 通过 Model Context Protocol 接入外部工具(stdio、SSE、Streamable HTTP 传输)。在 Web 界面中完成全生命周期管理 — 添加、编辑、启用/禁用、测试连接 -- **预置 MCP 服务** — GitHub(`@modelcontextprotocol/server-github`)和 Filesystem 开箱即用。在 MCP 管理页面启用并填入 Token 即可,无需改代码 -- **技能包** — 安装/卸载带 `SKILL.md` 清单的技能包 -- **ClawHub 市场** — 从 ClawHub 注册中心浏览和安装技能 -- **工作空间技能** — 基于约定的技能目录 `~/.mateclaw/skills/{name}/` - -### 记忆系统 - -- **短期记忆** — 会话上下文窗口,Token 超出预算时自动压缩 -- **对话后提取** — 事件驱动的异步 LLM 分析,写入 PROFILE.md / MEMORY.md / 每日笔记 -- **记忆整合** — 定时每日涌现(CronJob 凌晨 2:00),将每日笔记合并为长期记忆 -- **工作空间文件** — 每个 Agent 独立的 AGENTS.md、SOUL.md、PROFILE.md、MEMORY.md、memory/*.md -- **Agent 记忆工具** — Agent 在对话中可主动读写自己的工作空间文件 - -### 多渠道接入 - -- **Web 控制台** — SSE 流式输出,富消息渲染(Markdown、代码、计划) -- **钉钉** — Webhook + 事件订阅 -- **飞书** — Webhook + 事件订阅 -- **企业微信** — 回调接口 -- **Telegram** — Bot API + Webhook -- **Discord** — Bot + Slash Commands -- **QQ** — QQ Bot API - -### 模型厂商 - -在 Web 界面中配置(设置 → 模型)。支持的厂商: - -| 厂商 | 模型 | -|------|------| -| **云端厂商** | | -| DashScope(阿里云) | Qwen3.5-Max、Qwen3.5-Plus、Qwen3-Max、Qwen3-Plus、Qwen-Max、Qwen-Plus、Qwen-Turbo、Qwen-Long、DeepSeek-V3.2 | -| ModelScope | Qwen3.5-122B-A10B、GLM-5 | -| 阿里云百炼 Coding Plan | Qwen3.5-Plus、Qwen3-Coder-Next、GLM-5、GLM-4.7、MiniMax-M2.5、Kimi-K2.5 | -| OpenAI | GPT-5.2、GPT-5、GPT-5-Mini、GPT-5-Nano、GPT-4.1、GPT-4.1-Mini、GPT-4.1-Nano、o3、o4-mini、GPT-4o | -| Azure OpenAI | GPT-5、GPT-4.1、GPT-4o 等 | -| Anthropic | Claude Opus 4.6、Claude Sonnet 4.6(通过模型发现) | -| Google Gemini | Gemini 3.1 Pro、Gemini 3 Flash、Gemini 2.5 Pro、Gemini 2.5 Flash、Gemini 2.0 Flash | -| DeepSeek | DeepSeek-Chat、DeepSeek-Reasoner | -| Kimi(月之暗面) | Kimi-K2.5、Kimi-K2-Thinking、Kimi for Coding(国内版 / 国际版 / Code 版) | -| MiniMax | MiniMax-M2.7、MiniMax-M2.5(国际版 / 国内版) | -| 智谱 AI | GLM-5.1、GLM-5、GLM-5-Turbo、GLM-5V-Turbo(国内版 / 国际版) | -| 火山引擎 | 豆包-1.5-Pro-256K、豆包-1.5-Lite、豆包-1.5-Thinking-Pro、豆包-1.5-Vision-Pro | -| OpenRouter | GPT-5、Claude Opus 4.6、Gemini 2.5 Pro、Llama 4 Maverick、DeepSeek R1 及 200+ 模型 | -| **本地厂商** | | -| Ollama | Qwen3、Gemma 4、Gemma 3、Llama 3.1、DeepSeek R1、Mistral(启动时自动检测) | -| LM Studio | 任意本地服务的模型 | -| llama.cpp | 任意本地服务的模型 | -| MLX(Apple Silicon) | 任意本地服务的模型 | - -### 安全 - -- **Spring Security + JWT** — 基于 Token 的认证 -- **工具防护** — 敏感工具操作的审批规则 -- **文件校验** — 工作空间文件路径穿越防护 -- **技能安全** — 技能安装时的安全校验 - -### 定时任务 - -- **CronJob 系统** — 使用 5 位 cron 表达式创建定时任务 -- **记忆整合** — 每个 Agent 每日自动触发 -- **自定义任务** — 调度任意提示词定期执行 +| 文档 | VitePress | --- @@ -271,80 +300,60 @@ mateclaw/ | 主题 | 说明 | |------|------| -| [项目介绍](https://mateclaw.mate.vip/zh/intro) | MateClaw 是什么、核心概念 | -| [快速开始](https://mateclaw.mate.vip/zh/quickstart) | 安装与运行(本地、Docker、桌面) | -| [控制台](https://mateclaw.mate.vip/zh/console) | Web 界面:聊天与 Agent 配置 | -| [Agent 引擎](https://mateclaw.mate.vip/zh/agents) | ReAct、Plan-and-Execute、StateGraph | -| [模型配置](https://mateclaw.mate.vip/zh/models) | 配置云端、本地和自定义厂商 | -| [工具系统](https://mateclaw.mate.vip/zh/tools) | 内置工具与自定义工具开发 | -| [技能系统](https://mateclaw.mate.vip/zh/skills) | 技能包与 ClawHub 市场 | +| [项目介绍](https://mateclaw.mate.vip/zh/intro) | 产品定位与核心概念 | +| [快速开始](https://mateclaw.mate.vip/zh/quickstart) | 本地、Docker、桌面启动 | +| [控制台](https://mateclaw.mate.vip/zh/console) | Web 控制台日常使用 | +| [Agents](https://mateclaw.mate.vip/zh/agents) | ReAct、Plan-and-Execute 与运行时设计 | +| [模型配置](https://mateclaw.mate.vip/zh/models) | 模型 Provider 配置 | +| [工具系统](https://mateclaw.mate.vip/zh/tools) | 内置工具与扩展能力 | +| [技能系统](https://mateclaw.mate.vip/zh/skills) | 技能包与市场 | | [MCP](https://mateclaw.mate.vip/zh/mcp) | Model Context Protocol 集成 | -| [记忆系统](https://mateclaw.mate.vip/zh/memory) | 多层记忆体系 | -| [渠道接入](https://mateclaw.mate.vip/zh/channels) | 钉钉、飞书、Telegram、Discord 等 | -| [安全机制](https://mateclaw.mate.vip/zh/security) | 认证与工具防护 | -| [桌面应用](https://mateclaw.mate.vip/zh/desktop) | 桌面应用使用指南 | -| [API 参考](https://mateclaw.mate.vip/zh/api) | REST API 文档 | -| [配置指南](https://mateclaw.mate.vip/zh/config) | 配置参考 | -| [常见问题](https://mateclaw.mate.vip/zh/faq) | 常见问题与故障排查 | +| [记忆系统](https://mateclaw.mate.vip/zh/memory) | 记忆架构 | +| [渠道接入](https://mateclaw.mate.vip/zh/channels) | 外部渠道适配 | +| [安全机制](https://mateclaw.mate.vip/zh/security) | 防护与审批 | +| [桌面应用](https://mateclaw.mate.vip/zh/desktop) | 桌面端使用指南 | +| [API 参考](https://mateclaw.mate.vip/zh/api) | REST API | +| [常见问题](https://mateclaw.mate.vip/zh/faq) | 排障与说明 | --- ## 路线图 -| 方向 | 事项 | 状态 | -|------|------|------| -| **Agent** | 多 Agent 协作与任务委派 | 计划中 | -| **Agent** | 多模态输入(图片、音频、视频) | 计划中 | -| **模型** | 大小模型智能路由 | 计划中 | -| **记忆** | 向量数据库长期记忆(RAG) | 计划中 | -| **记忆** | 多模态记忆融合 | 计划中 | -| **技能** | 丰富 ClawHub 生态 | 进行中 | -| **渠道** | 微信个人号(iLink Bot) | 计划中 | -| **渠道** | 邮件渠道 | 计划中 | -| **桌面** | Linux 支持 | 计划中 | -| **安全** | 多租户支持 | 计划中 | -| **控制台** | Web 端插件市场 | 计划中 | +当前重点方向包括: -_状态说明:_ **进行中** — 正在开发;**计划中** — 排期中或设计阶段。 +- 更强的多 Agent 协作 +- 更深的多模态理解 +- 更聪明的模型路由 +- 更强的长期记忆 +- 更丰富的 ClawHub 生态 +- 更多渠道与桌面端覆盖 --- ## 参与贡献 -MateClaw 欢迎各种形式的贡献!无论是 Bug 修复、新功能、文档改进,还是新的渠道/工具集成,我们都非常欢迎。 +MateClaw 欢迎产品、代码、文档、集成四类贡献。 ```bash -# 克隆仓库 git clone https://github.com/matevip/mateclaw.git cd mateclaw -# 后端 cd mateclaw-server mvn clean compile -# 前端 cd ../mateclaw-ui pnpm install pnpm dev ``` -提交 PR 前请阅读 [CONTRIBUTING.md](https://github.com/matevip/mateclaw/blob/main/CONTRIBUTING.md)(如有)。 - --- -## 联系我们 +## 为什么叫 MateClaw - +**Mate** 是伙伴。 +**Claw** 是能力。 -| Discord | X (Twitter) | 钉钉群 | -|---------|-------------|--------| -| 即将上线 | 即将上线 | 即将上线 | - ---- - -## 为什么叫 MateClaw? - -**Mate** — 伙伴,始终陪伴在你身边。**Claw** — 利爪,锋利有力,随时抓取任何任务。MateClaw 是你的个人 AI 伙伴,在你需要时伸出利爪。采用单体模块化设计,部署简单、扩展灵活、定制方便。 +这个产品想给人的感受,就是两者同时成立:它不是只陪你说话,也能真正抓住任务,把事情往前推进。 --- diff --git a/mateclaw-server/src/main/resources/application.yml b/mateclaw-server/src/main/resources/application.yml index 88cfa9cf..3e30a49b 100644 --- a/mateclaw-server/src/main/resources/application.yml +++ b/mateclaw-server/src/main/resources/application.yml @@ -113,3 +113,13 @@ mate: compact-trigger-ratio: 0.75 preserve-recent-pairs: 2 summary-max-tokens: 300 + # Wiki 知识库配置 + wiki: + enabled: true # 是否启用 Wiki 知识库功能 + max-chunk-size: 30000 # LLM 单次处理最大字符数(超过则分块) + max-context-chars: 10000 # 注入 Agent prompt 的 Wiki 摘要最大字符数 + max-pages-per-raw: 15 # 单个原始材料最多生成的 Wiki 页面数 + auto-process-on-upload: true # 上传原始材料后是否自动触发 AI 消化 + upload-dir: ./data/wiki-uploads # 上传文件存储目录 + max-scan-files: 500 # 目录扫描最大文件数 + max-scan-file-size: 52428800 # 扫描时跳过大于此大小的文件(字节,默认 50MB)