AI记忆与自学习平台

Quoth是一个两层级系统,包含云平台和本地插件,提供持久化记忆、自主学习和代理协调功能,适用于AI驱动的开发场景。

  • by Montinou
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 Montinou/quoth-mcp

使用说明

Quoth——人工智能记忆与自主学习平台

持续记忆、自主学习和人工智能驱动开发的代理协调

Quoth是一个两层系统:

  1. 云平台 (Next.js SaaS)-具有仪表板、API、搜索和团队协作的多对端知识管理
  2. Claude代码插件 (v3.2.0)--本地自学习守护进程,用于捕获轨迹、学习模式、路由任务和协调代理

建筑

Cloud Platform (src/)                    Plugin (quoth-plugin/)
├── Next.js 16 + React 19               ├── 22 MCP tools (stdio)
├── Neon PostgreSQL (Drizzle ORM)        ├── SQLite + HNSW (local)
├── Clerk authentication                 ├── Background daemon
├── Vercel AI Gateway embeddings         ├── Trajectory capture
│   (text-embedding-3-large, 2000d)      ├── Pattern learning (Haiku)
├── Cohere reranking                     ├── Intelligence routing
├── Cloud MCP server (/api/mcp)          └── Hook-based automation
└── Dashboard + API routes

云MCP工具

可通过HTTP访问 https://quoth.triqual.dev/api/mcp:

工具 说明
quoth_search_index 语义搜索与文本嵌入-3大(2000d)+队列重排序
quoth_read_doc 按ID检索完整文档内容
quoth_read_chunks 检索文档块以进行精细访问
quoth_memory_store 为当前代理/会话存储内存条目
quoth_memory_search 对存储的记忆进行语义搜索
quoth_memory_list 列出存储的内存条目
quoth_memory_forget 删除内存条目
quoth_agent_register 在项目中注册代理
quoth_agent_list 列出注册代理人
quoth_agent_assign 为任务分配代理
quoth_agent_send_message 向另一个代理发送消息
quoth_agent_inbox 读取代理的收件箱
quoth_agent_tasks 列出分配给代理的任务
quoth_agent_task_reassign 将任务重新分配给其他代理
quoth_project_create 创建一个新的Quoth项目
quoth_project_invite 邀请合作者参与项目
quoth_token_generate 生成MCP访问令牌
quoth_genesis Bootstrap项目文档(最小/标准/全面)

插件MCP工具(22)

可通过stdio在本地获取(quoth-learning 服务器):

模式(8): quoth_log_outcome, quoth_score_pattern, quoth_top_patterns, quoth_search_patterns, quoth_project_patterns, quoth_promote_global, quoth_seed_from_exolar, quoth_propose_update

代理人(6): quoth_daemon_status, quoth_ingest_trajectory, quoth_agent_register, quoth_agent_heartbeat, quoth_agent_list, quoth_assign_task

情报(6): quoth_route_task, quoth_intelligence_init, quoth_intelligence_context, quoth_intelligence_consolidate, quoth_intelligence_stats, quoth_intelligence_feedback

技能(2): quoth_extract_skill, quoth_list_skills

插件挂钩

所有钩子都通过统一的调度程序运行(hook-dispatch.js).自动挂钩中的零API调用。

钩子事件 它的作用
UserPromptSubmit 将任务路由到最优代理,显示相关模式
SessionStart 初始化智能图,注入顶部模式(>=0.6置信度)
SessionEnd 整合情报图,重新计算PageRank
PreCompact 与SessionEnd相同(预上下文压缩)
PostToolUse (Write/Edit) 情报记录编辑
PostToolUse (Bash/Write/Edit/Agent) 捕获轨迹文件的工具调用
PreToolUse (Bash) 阻止危险命令
SubagentStart 通过additional Context注入领域相关模式
SubagentStop 对智力的隐性积极反馈

安装

云MCP服务器

claude mcp add --transport http quoth https://quoth.triqual.dev/api/mcp

插件(完全自主学习)

cd quoth-plugin && bash scripts/setup.sh

Symlinks挂钩 ~/.quoth/hooks/,将钩子声明注入 ~/.claude/settings.json,并添加MCP服务器配置。我暂时没有。

团队协作

  • 多用户项目 --与团队成员共享知识库
  • 基于角色的访问 --管理员、编辑和查看器角色
  • 电子邮件邀请 --通过安全令牌邀请合作者

环境变量

变量 描述
CLERK_SECRET_KEY 职员身份验证密钥
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY 职员可发布密钥(客户端)
DATABASE_URL Neon PostgreSQL连接字符串
AI_GATEWAY_API_KEY Vercel人工智能网关——文本嵌入-3大(2000d)
JWT_SECRET MCP令牌生成
RESEND_API_KEY 电子邮件投递(可选)
QUOTH_API_KEY 插件云同步(qth_*键)

构建与测试

npm run build    # Build Next.js app
npm test         # Run Vitest tests
npm run lint     # ESLint

链接

  • 网站: https://quoth.triqual.dev
  • 文档: https://quoth.triqual.dev/docs
  • 更新日志: https://quoth.triqual.dev/changelog

许可证

麻省理工学院