codymaster 4.8.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +55 -7
  2. package/README.md +142 -95
  3. package/dist/advisory-handoff.js +89 -0
  4. package/dist/advisory-report.js +105 -0
  5. package/dist/cli/command-registry.js +8 -0
  6. package/dist/cli/commands/bench.js +69 -0
  7. package/dist/cli/commands/brain.js +108 -0
  8. package/dist/cli/commands/engineering.js +108 -0
  9. package/dist/cli/commands/evolve.js +123 -0
  10. package/dist/cli/commands/mcp-serve.js +104 -0
  11. package/dist/cm-config.js +0 -18
  12. package/dist/codybench/judges/automated.js +31 -0
  13. package/dist/codybench/runners/claude-code.js +32 -0
  14. package/dist/codybench/suites/memory-retention.js +85 -0
  15. package/dist/codybench/suites/tdd-regression.js +35 -0
  16. package/dist/codybench/suites/token-efficiency.js +55 -0
  17. package/dist/codybench/types.js +2 -0
  18. package/dist/context-db.js +157 -0
  19. package/dist/continuity.js +2 -6
  20. package/dist/execution-analyzer.js +138 -0
  21. package/dist/indexer/skills-lib.js +533 -0
  22. package/dist/indexer/skills-map.js +1374 -0
  23. package/dist/indexer/skills.js +16 -0
  24. package/dist/learning-promoter.js +246 -0
  25. package/dist/mcp-context-server.js +230 -1
  26. package/dist/skill-chain.js +63 -1
  27. package/dist/skill-evolver.js +456 -0
  28. package/dist/skill-execution-cache.js +254 -0
  29. package/dist/smart-brain-router.js +184 -0
  30. package/dist/storage-backend.js +10 -8
  31. package/dist/token-budget.js +88 -0
  32. package/package.json +2 -3
  33. package/scripts/postinstall.js +10 -59
  34. package/skills/CLAUDE.md +0 -5
  35. package/skills/_shared/helpers.md +2 -8
  36. package/skills/cm-browse/SKILL.md +6 -0
  37. package/skills/cm-conductor-worktrees/SKILL.md +4 -0
  38. package/skills/cm-content-factory/landing/docs/content/changelog.md +4 -4
  39. package/skills/cm-content-factory/landing/docs/content/deployment.md +3 -3
  40. package/skills/cm-content-factory/landing/docs/content/execution-flow.md +8 -8
  41. package/skills/cm-content-factory/landing/docs/content/memory-system.md +38 -0
  42. package/skills/cm-content-factory/landing/docs/content/openspace.md +1 -1
  43. package/skills/cm-content-factory/landing/docs/content/use-cases.md +2 -2
  44. package/skills/cm-content-factory/landing/docs/content/v5-intro.md +3 -3
  45. package/skills/cm-content-factory/landing/docs/index.html +1 -1
  46. package/skills/cm-content-factory/landing/index.html +3 -3
  47. package/skills/cm-content-factory/landing/translations.js +37 -37
  48. package/skills/cm-continuity/SKILL.md +32 -33
  49. package/skills/cm-design-studio/SKILL.md +4 -0
  50. package/skills/cm-ecosystem-roadmap/SKILL.md +4 -0
  51. package/skills/cm-engineering-meta/SKILL.md +4 -0
  52. package/skills/cm-guardian-runtime/SKILL.md +5 -1
  53. package/skills/cm-mcp-engineering/SKILL.md +4 -0
  54. package/skills/cm-post-deploy-canary/SKILL.md +4 -0
  55. package/skills/cm-project-bootstrap/SKILL.md +11 -0
  56. package/skills/cm-qa-visual-cli/SKILL.md +4 -0
  57. package/skills/cm-retro-cli/SKILL.md +4 -0
  58. package/skills/cm-second-opinion-cli/SKILL.md +4 -0
  59. package/skills/cm-security-gate/SKILL.md +1 -0
  60. package/skills/cm-skill-chain/SKILL.md +25 -4
  61. package/skills/cm-skill-evolution/SKILL.md +83 -0
  62. package/skills/cm-skill-health/SKILL.md +83 -0
  63. package/skills/cm-skill-index/SKILL.md +11 -3
  64. package/skills/cm-skill-search/SKILL.md +49 -0
  65. package/skills/cm-skill-share/SKILL.md +58 -0
  66. package/skills/cm-sprint-bus/SKILL.md +4 -0
  67. package/skills/cm-start/SKILL.md +0 -10
  68. package/skills/cm-tdd/SKILL.md +2 -2
  69. package/skills/profiles/full.txt +4 -0
  70. package/install.sh +0 -1125
  71. package/scripts/viking-demo.ts +0 -105
  72. package/skills/cm-content-factory/landing/docs/content/openviking.md +0 -33
@@ -11,7 +11,7 @@ const translations = {
11
11
  badge: "CodyMaster v5 — The Senior AI-Native Engineering Workspace",
12
12
  title: "Ship Complete Products in Minutes.<br/><span class=\"gradient-text\">Not Weeks.</span>",
13
13
  subtitle1: "Stop wrestling with context limits and glued-together scripts.<br/><strong>CodyMaster v5</strong> gives AI agents a semantic memory and an autonomous workspace to build real products.",
14
- subtitle2: "Powered by OpenViking for flawless semantic retrieval and OpenSpace for secure orchestration.",
14
+ subtitle2: "Powered by Smart Spine memory and OpenSpace for secure orchestration.",
15
15
  btnStart: "Deploy Smart Spine — 60s",
16
16
  btnSee: "See the architecture ↓",
17
17
  statTemplates: "Ready Agent Skills",
@@ -30,7 +30,7 @@ const translations = {
30
30
  without4: "Weeks of debugging fixing regressions caused by lost context",
31
31
  without5: "Stagnant capability — AI never learns from project failures",
32
32
  withTitle: "CODYMASTER v5",
33
- with1: "Persistent Memory — OpenViking learns <strong>your system</strong> deeply",
33
+ with1: "Persistent Memory — Smart Spine keeps <strong>your system</strong> close at hand",
34
34
  with2: "Autonomous Execution — OpenSpace handles the <strong>entire lifecycle</strong>",
35
35
  with3: "Semantic Retrieval — <strong>Vector embeddings</strong> find exact context",
36
36
  with4: "Ship in <strong>minutes</strong> with automated safety and testing gates",
@@ -42,7 +42,7 @@ const translations = {
42
42
  title: "One Backbone. True Autonomy.",
43
43
  subtitle: "From ideation to production — CodyMaster v5 provides the infrastructure for autonomous AI execution.",
44
44
  m1Name: "Semantic Memory",
45
- m1Desc: "OpenViking integration pulls exact context from huge codebases using vector embeddings.",
45
+ m1Desc: "Smart Spine combines indexes and local memory retrieval to pull exact context from huge codebases.",
46
46
  m2Name: "Autonomous Workspace",
47
47
  m2Desc: "OpenSpace provides isolated execution environments for agents to run and test code safely.",
48
48
  m3Name: "Skill Orchestration",
@@ -63,7 +63,7 @@ const translations = {
63
63
  title: "3 steps to production.",
64
64
  subtitle: "No manual prompting. No context-window wrangling. A systematic engineering approach.",
65
65
  s1Name: "Initialize Spine",
66
- s1Desc: "Run the bootstrap command. OpenSpace sets up your secure workspace and OpenViking immediately indexes the semantic structure of your codebase.",
66
+ s1Desc: "Run the bootstrap command. OpenSpace sets up your secure workspace and CodyMaster prepares layered project context for your codebase.",
67
67
  s2Name: "Delegate & Orchestrate",
68
68
  s2Desc: "Use cm-planning to map out complex initiatives. The system automatically coordinates multiple agent skills to execute the plan securely.",
69
69
  s3Name: "Verify & Ship",
@@ -73,8 +73,8 @@ const translations = {
73
73
  label: "SEMANTIC BACKBONE",
74
74
  title: "An AI that remembers.<br/><span class=\"gradient-text\">Across every project.</span>",
75
75
  subtitle: "The Smart Spine architecture integrates memory, tools, and state. Every line of code, every decision, every bugfix makes the framework sharper.",
76
- mem1Name: "OpenViking Backend",
77
- mem1Desc: "Semantic vector search ensures precise context retrieval replacing unreliable keyword grep.",
76
+ mem1Name: "Smart Spine Memory",
77
+ mem1Desc: "Layered local retrieval keeps context precise without depending on an extra semantic service.",
78
78
  mem2Name: "Context Bus",
79
79
  mem2Desc: "A resilient shared state for agent pipelines to handoff parameters without losing token budget.",
80
80
  mem3Name: "Token Economy",
@@ -93,7 +93,7 @@ const translations = {
93
93
  freeBtn: "Clone Repository",
94
94
  proName: "Founders Edition",
95
95
  proPeriod: "per seat / month",
96
- pro1: "Full OpenViking Semantic Engine",
96
+ pro1: "Advanced Smart Spine Memory",
97
97
  pro2: "Unlimited OpenSpace Containers",
98
98
  pro3: "Multi-Agent Parallel Swarms",
99
99
  pro4: "Zero-Regression Deployment Gates",
@@ -107,8 +107,8 @@ const translations = {
107
107
  title: "Common questions",
108
108
  q1Title: "What AI models does CodyMaster v5 support?",
109
109
  q1Ans: "<p>CodyMaster v5 is an <strong>agentic orchestration layer</strong>. It works with Claude 3.5 Sonnet, GPT-4o, and Gemini 1.5 Pro to power its autonomous skills. You can hook it into Cursor, Windsurf, or run headless via the CLI.</p>",
110
- q2Title: "How is OpenViking different from simple RAG?",
111
- q2Ans: "<p>Standard RAG chunks files blindly. <strong>OpenViking</strong> understands AST graphs, imports, and component hierarchies. It provides an L0/L1/L2 progressive summarization engine to give context an awareness of the system architecture, preventing hallucinated dependencies.</p>",
110
+ q2Title: "How is Smart Spine different from simple RAG?",
111
+ q2Ans: "<p>Standard RAG chunks files blindly. <strong>Smart Spine</strong> combines L0/L1/L2 progressive loading, indexes, and local project memory so the agent sees architecture without dragging the whole codebase into the prompt.</p>",
112
112
  q3Title: "Can it work on my massive legacy monolithic codebase?",
113
113
  q3Ans: "<p>Yes. That is what it was built for. Out of the box, the <strong>Smart Spine</strong> utilizes diagnostic instrumentation and frontend integrity checks to confidently refactor monoliths without causing sweeping regressions.</p>",
114
114
  q4Title: "What is OpenSpace?",
@@ -122,7 +122,7 @@ const translations = {
122
122
  ctaTitle: "Stop writing boilerplate.<br/><span class=\"gradient-text\">Start building empires.</span>",
123
123
  ctaSub: "One command. Infinite autonomy.",
124
124
  ctaBtn: "Deploy the Framework",
125
- copy: "Built by <strong>Tody AI</strong> — OpenViking and OpenSpace inside."
125
+ copy: "Built by <strong>Tody AI</strong> — Smart Spine and OpenSpace inside."
126
126
  }
127
127
  },
128
128
  vi: {
@@ -137,7 +137,7 @@ const translations = {
137
137
  badge: "CodyMaster v5 — Môi trường làm việc AI-Native",
138
138
  title: "Phát hành sản phẩm trong vài phút.<br/><span class=\"gradient-text\">Không phải vài tuần.</span>",
139
139
  subtitle1: "Chấm dứt việc vật lộn với giới hạn ngữ cảnh AI và các mã kịch bản chắp vá.<br/><strong>CodyMaster v5</strong> trang bị cho AI của bạn bộ nhớ ngữ nghĩa và không gian làm việc tự chủ để thực sự xây dựng sản phẩm.",
140
- subtitle2: "Sức mạnh từ OpenViking cho truy xuất ngữ nghĩa và OpenSpace để điều phối an toàn.",
140
+ subtitle2: "Sức mạnh từ Smart Spine và OpenSpace để điều phối an toàn.",
141
141
  btnStart: "Triển khai Smart Spine — 60s",
142
142
  btnSee: "Xem cấu trúc ↓",
143
143
  statTemplates: "Kỹ năng Agent",
@@ -156,7 +156,7 @@ const translations = {
156
156
  without4: "Mất nhiều tuần debug các lỗi phát sinh do mất bối cảnh",
157
157
  without5: "Khả năng dậm chân tại chỗ — AI không học từ các lỗi trước",
158
158
  withTitle: "VỚI CODYMASTER V5",
159
- with1: "Bộ nhớ vĩnh cửuOpenViking học <strong>hệ thống của bạn</strong> sâu sắc",
159
+ with1: "Bộ nhớ bền bỉSmart Spine luôn giữ <strong>hệ thống của bạn</strong> trong tầm tay",
160
160
  with2: "Thực thi tự chủ — OpenSpace quản lý <strong>toàn bộ vòng đời</strong>",
161
161
  with3: "Truy xuất ngữ nghĩa — <strong>Vector embeddings</strong> tìm bối cảnh chính xác",
162
162
  with4: "Ra mắt trong <strong>vài phút</strong> với các cổng kiểm thử an toàn",
@@ -168,7 +168,7 @@ const translations = {
168
168
  title: "Một Xương sống. Tự chủ Hoàn toàn.",
169
169
  subtitle: "Từ lúc lên ý tưởng đến khi ra mắt — CodyMaster v5 cung cấp hạ tầng để AI thực thi một cách tự chủ.",
170
170
  m1Name: "Bộ nhớ Ngữ nghĩa",
171
- m1Desc: "Tích hợp OpenViking để lấy bối cảnh chính xác từ các codebase khổng lồ bằng AI vector.",
171
+ m1Desc: "Smart Spine kết hợp chỉ mục và bộ nhớ cục bộ để lấy bối cảnh chính xác từ các codebase khổng lồ.",
172
172
  m2Name: "Không gian Tự chủ",
173
173
  m2Desc: "OpenSpace cung cấp môi trường biệt lập để các agent tự do chạy và test code an toàn.",
174
174
  m3Name: "Điều phối Kỹ năng",
@@ -189,7 +189,7 @@ const translations = {
189
189
  title: "3 bước đến Production.",
190
190
  subtitle: "Không còn phải viết prompt thủ công. Không phải nhồi nhét bối cảnh. Rất chuẩn kỹ thuật.",
191
191
  s1Name: "Khởi tạo Spine",
192
- s1Desc: "Chạy lệnh bootstrap. OpenSpace thiết lập không gian làm việc an toàn và OpenViking ngay lập tức lập chỉ mục cấu trúc ngữ nghĩa của mã nguồn.",
192
+ s1Desc: "Chạy lệnh bootstrap. OpenSpace thiết lập không gian làm việc an toàn và CodyMaster chuẩn bị bối cảnh nhiều tầng cho nguồn của bạn.",
193
193
  s2Name: "Giao việc & Điều phối",
194
194
  s2Desc: "Sử dụng cm-planning để vạch ra các sáng kiến lớn. Hệ thống tự động điều phối hàng chục kỹ năng AI để thực thi kế hoạch an toàn.",
195
195
  s3Name: "Kiểm tra & Triển khai",
@@ -199,8 +199,8 @@ const translations = {
199
199
  label: "CẤU TRÚC NGỮ NGHĨA",
200
200
  title: "AI có trí nhớ.<br/><span class=\"gradient-text\">Xuyên suốt mọi dự án.</span>",
201
201
  subtitle: "Kiến trúc Smart Spine kết hợp bộ nhớ, công cụ và quy trình. Mỗi dòng code, mỗi quyết định, mỗi bản sửa lỗi đều làm hệ thống sắc bén hơn.",
202
- mem1Name: "OpenViking Backend",
203
- mem1Desc: "Tìm kiếm vector ngữ nghĩa giúp lấy đúng đoạn mã bối cảnh, khắc phục nhược điểm của keyword search.",
202
+ mem1Name: "Bộ nhớ Smart Spine",
203
+ mem1Desc: "Truy xuất nhiều tầng giúp lấy đúng đoạn mã bối cảnh không cần phụ thuộc thêm dịch vụ ngữ nghĩa riêng.",
204
204
  mem2Name: "Context Bus",
205
205
  mem2Desc: "Trạng thái chia sẻ liên tục giúp các luồng agent truyền dữ liệu chuẩn xác mà không tốn token LLM.",
206
206
  mem3Name: "Nền kinh tế Token",
@@ -219,7 +219,7 @@ const translations = {
219
219
  freeBtn: "Clone Repository",
220
220
  proName: "Bản Founders Edition",
221
221
  proPeriod: "trên tài khoản / tháng",
222
- pro1: "Hệ thống ngữ nghĩa OpenViking đầy đủ",
222
+ pro1: "Bộ nhớ Smart Spine nâng cao",
223
223
  pro2: "Không giới hạn số lượng hộp OpenSpace",
224
224
  pro3: "Điều phối song song Đa Agent",
225
225
  pro4: "Các cổng triển khai chống lỗi 100%",
@@ -233,8 +233,8 @@ const translations = {
233
233
  title: "Các câu hỏi phổ biến",
234
234
  q1Title: "CodyMaster v5 hỗ trợ những dòng mô hình AI nào?",
235
235
  q1Ans: "<p>CodyMaster v5 là một <strong>tầng điều phối agent</strong>. Nó kích hoạt tự động với Claude 3.5 Sonnet, GPT-4o, và Gemini 1.5 Pro. Bạn có thể dùng qua Cursor, Windsurf, hay CLI trên terminal.</p>",
236
- q2Title: "OpenViking khác biệt gì so với cơ chế RAG thông thường?",
237
- q2Ans: "<p>RAG thường chặt file một cách mù quáng. <strong>OpenViking</strong> hiểu cây dữ liệu (AST), chuỗi import, và phân cấp biến. tạo những phác thảo L0/L1/L2 để mô hình được bức tranh kiến trúc hệ thống, chống việc AI tưởng tượng ra code sai.</p>",
236
+ q2Title: "Smart Spine khác gì so với RAG thông thường?",
237
+ q2Ans: "<p>RAG thường chặt file một cách mù quáng. <strong>Smart Spine</strong> dùng tải ngữ cảnh L0/L1/L2, chỉ mục cấu trúc, và bộ nhớ cục bộ để mô hình nắm được kiến trúc hệ thống không bị ngập token.</p>",
238
238
  q3Title: "Hệ thống có chạy được với các dự án siêu to khổng lồ cũ không?",
239
239
  q3Ans: "<p>Có. Đó chính là mục đích sinh ra nó. Ngay từ phút đầu, <strong>Smart Spine</strong> đã gắn các công cụ chẩn đoán lỗi chuyên biệt và cổng vẹn toàn UI để mạnh dạn refactor những cục Monolith mà không gây lỗi dây chuyền.</p>",
240
240
  q4Title: "OpenSpace là gì?",
@@ -248,7 +248,7 @@ const translations = {
248
248
  ctaTitle: "Ngừng copy/paste thủ công.<br/><span class=\"gradient-text\">Hãy bắt đầu xây dựng đế chế phần mềm.</span>",
249
249
  ctaSub: "Sức mạnh điều khiển tự chủ từ một câu lệnh.",
250
250
  ctaBtn: "Cài đặt ngay",
251
- copy: "Sáng lập bởi <strong>Tody AI</strong> — Tích hợp OpenViking và OpenSpace."
251
+ copy: "Sáng lập bởi <strong>Tody AI</strong> — Tích hợp Smart Spine và OpenSpace."
252
252
  }
253
253
  },
254
254
  zh: {
@@ -263,7 +263,7 @@ const translations = {
263
263
  badge: "CodyMaster v5 — 高级 AI 原生工程工作区",
264
264
  title: "数分钟内完成整套产品开发。<br/><span class=\"gradient-text\">而不是几周。</span>",
265
265
  subtitle1: "不要再受限于上下文断层和零散脚本的苦恼了。<br/><strong>CodyMaster v5</strong> 赋予您的智能助手语义记忆网络和自主操控空间来进行货真价实的产品构建。",
266
- subtitle2: "核心采用 OpenViking 的语义拉取与 OpenSpace 保证执行编排的彻底安全。",
266
+ subtitle2: "核心采用 Smart Spine 记忆层与 OpenSpace,保证执行编排安全可靠。",
267
267
  btnStart: "运行 Smart Spine — 60秒",
268
268
  btnSee: "探索核心架构 ↓",
269
269
  statTemplates: "集成技能数",
@@ -282,7 +282,7 @@ const translations = {
282
282
  without4: "几星期的排坑调试以补救丢失上下文带来的毁灭污染",
283
283
  without5: "固步自封的 AI — 没有任何历史报错纠正记忆",
284
284
  withTitle: "使用 CODYMASTER v5",
285
- with1: "永久向量记忆OpenViking 深谙<strong>你的系统架构</strong>",
285
+ with1: "持久记忆层Smart Spine 深入理解<strong>你的系统架构</strong>",
286
286
  with2: "自动执行态 — OpenSpace 托管<strong>整套生命周期</strong>",
287
287
  with3: "精准语义反馈 — <strong>高维向量检索</strong>还原百分之百的语境",
288
288
  with4: "依靠自动验收门进行<strong>数分钟内</strong>的产品快速交付推流",
@@ -294,7 +294,7 @@ const translations = {
294
294
  title: "共用中枢神经。全方位的自理能力。",
295
295
  subtitle: "从雏形构想出线到全流程落地生产 — CodyMaster v5 从最底下建构出让 AI 完全自我驱动的主心骨基建。",
296
296
  m1Name: "深层语义数据库",
297
- m1Desc: "挂载 OpenViking 让浩瀚繁多文件的搜素更直接依靠高纬向量查找对准目标。",
297
+ m1Desc: "Smart Spine 结合索引与本地记忆,让大型代码库的上下文检索更准确。",
298
298
  m2Name: "安全独立执行间",
299
299
  m2Desc: "OpenSpace 以独立且极度安全的沙盒提供各种 agent 自行运算并且开展终端验证排错处理。",
300
300
  m3Name: "能力联动编排",
@@ -315,7 +315,7 @@ const translations = {
315
315
  title: "三步交付出厂线。",
316
316
  subtitle: "免除手工微调 prompt 的苦差以及拼装代码上下文断接苦恼。遵循标准技术手段进阶。",
317
317
  s1Name: "加载核心脑桥 (Spine)",
318
- s1Desc: "只需要初始点火一句指令。OpenSpace 负责开辟隔绝沙盒;而 OpenViking 进入立刻进行整个系统级结构语义打底摸底映射建立操作。",
318
+ s1Desc: "只需要一句初始化命令。OpenSpace 负责隔离执行环境;CodyMaster 则为你的代码库准备分层上下文。",
319
319
  s2Name: "委托分包&调度",
320
320
  s2Desc: "调借 cm-planning 执行大型规划逻辑拓扑。接管权后全系统智能按次序或平行调控多种 AI 子技能有序铺垫落实推展并进行安全边界查杀。",
321
321
  s3Name: "自校验与分发上云",
@@ -325,7 +325,7 @@ const translations = {
325
325
  label: "语义主线灵魂",
326
326
  title: "拥有完整回溯记忆体系的 AI 主脑。<br/><span class=\"gradient-text\">全周期贯穿所有项目。</span>",
327
327
  subtitle: "Smart Spine 主心骨框架结构全面嵌合事件追踪、工具模块及其运行态数据留存。甚至一次对极微细 Bug 的订正记录都夯实着系统框架长袖善舞的可能性及锋锐程度。",
328
- mem1Name: "OpenViking 支持核心",
328
+ mem1Name: "Smart Spine 记忆层",
329
329
  mem1Desc: "真正做到了以精准高准度空间搜索模式摒弃和终结早先毫无章法随缘赌运的全局 keyword grep 模糊抓取匹配搜索之痛。",
330
330
  mem2Name: "情景上下文流转通道",
331
331
  m2Desc: "赋予执行管道与 Agent间互相转移交付处理关键凭证资源具有异常抗性并不需要每次损耗珍稀的 LLM 对话量代币来完成转移对接。",
@@ -345,7 +345,7 @@ const translations = {
345
345
  freeBtn: "Clone 仓库免费部署",
346
346
  proName: "资深创始缔造者典藏授权",
347
347
  proPeriod: "按月订阅收费方式",
348
- pro1: "完整的满带宽无限制 OpenViking 核心语义驱动探路全天候服务支援",
348
+ pro1: "增强版 Smart Spine 记忆能力",
349
349
  pro2: "不受任何数目约束拓展的自主 OpenSpace 安全试验间分配",
350
350
  pro3: "并行分布式复合型的群峰作业流机制驱动并网调校特质",
351
351
  pro4: "坚如磐石零错发的高压检测品控闸线系统保障护航网络",
@@ -359,8 +359,8 @@ const translations = {
359
359
  title: "针对大家的普遍关切疑惑",
360
360
  q1Title: "CodyMaster v5 目前主流适配什么世代等级的顶尖 AI 模型?",
361
361
  q1Ans: "<p>CodyMaster v5 可以说是一个处于<strong>最上游对齐管理任务与多位 Agent 经纪的底层驱动网线架构层协议</strong>。本身完全兼容配合顶流的如 Claude 3.5 Sonnet, GPT-4o 还有 Google Gemini 1.5 Pro 这些怪物驱动它的模块运行。无论是选择嵌入 Cursor 或是 Windsurf IDE 内或者是作为后台纯代码 CLI 操作都十分平滑随心。</p>",
362
- q2Title: "为何会强调说 OpenViking 与普通粗暴的 RAG 解析切割套路有如云泥之隔?",
363
- q2Ans: "<p>泛用的传统 RAG 仅仅只是简单且完全切断代码逻辑血脉强制进行的碎块斩断机制匹配罢了。但 <strong>OpenViking</strong> 可以通晓系统代码特性的抽象语法树枝图连带其互相引入的根枝依赖及复杂结构层分布特征概括,进而用极简的按比例渐进折页萃取如(L0/L1/L2)多梯度分段摘要来协助全局知悉。从此彻底与胡言乱语生成出虚无缥缈没用模块类的所谓 AI 幻觉困境挥手作别。</p>",
362
+ q2Title: "为什么 Smart Spine 比普通 RAG 更可靠?",
363
+ q2Ans: "<p>传统 RAG 往往只是盲目切块。<strong>Smart Spine</strong> 使用 L0/L1/L2 分层加载、结构索引与本地项目记忆,让模型理解架构而不是把整个仓库塞进提示词。</p>",
364
364
  q3Title: "它能够驾驭得住那类规模巨大错综复杂的堆积山级别旧应用结构吗?",
365
365
  q3Ans: "<p>毋庸置疑,这正是它为何诞生的源起和宿命。即使是在默认环境情况下跑, <strong>凭借着“心智中控核心”所携带严密纠错分析手段以及对于前端全维度品控严格检验的无缝把关手段</strong>完全能使出全方位的微重构与迁移梳理作业且丝毫不起任何牵连牵动破坏原有其他安全基座功能的恐慌隐患连锁崩盘事故效应出现。</p>",
366
366
  q4Title: "那么什么又是所谓的 OpenSpace 特性机制的来由含义解释?",
@@ -374,7 +374,7 @@ const translations = {
374
374
  ctaTitle: "立刻断绝低级机械性手动无效复制重复代码粘贴缝合过程流的操作行为时代吧。<br/><span class=\"gradient-text\">去着手开拓与建立起更为波澜壮阔属于你的宏大项目应用开发王国版图生态帝国体系。</span>",
375
375
  ctaSub: "只需一键敲下发布初始口令。从此感受这全栈无限操控并具有高度主见协同自主化代工开发的革命快车运行魅力体现赋能感!",
376
376
  ctaBtn: "立刻下发启程部署并配置使用",
377
- copy: "倾情设计且研发制作者归属于: <strong>Tody AI</strong> 所属主导核心完全驱动与运转借助于 OpenViking 与 OpenSpace 底层灵魂所赋能激活全态全景实力展现而生成展示结果。"
377
+ copy: " <strong>Tody AI</strong> 打造核心由 Smart Spine 与 OpenSpace 驱动。"
378
378
  }
379
379
  },
380
380
  ru: {
@@ -389,7 +389,7 @@ const translations = {
389
389
  badge: "CodyMaster v5 — Рабочее пространство для AI-Native инженеров",
390
390
  title: "Запускайте готовые продукты за минуты.<br/><span class=\"gradient-text\">А не за недели.</span>",
391
391
  subtitle1: "Хватит бороться с контекстными окнами и склеенными скриптами.<br/><strong>CodyMaster v5</strong> дает ИИ-агентам семантическую память и автономное рабочее пространство.",
392
- subtitle2: "Под управлением OpenViking для идеального семантического поиска и OpenSpace для оркестрации.",
392
+ subtitle2: "Под управлением Smart Spine и OpenSpace для безопасной оркестрации.",
393
393
  btnStart: "Развернуть Smart Spine — 60с",
394
394
  btnSee: "Посмотреть архитектуру ↓",
395
395
  statTemplates: "Навыков Агента",
@@ -408,7 +408,7 @@ const translations = {
408
408
  without4: "Недели дебага для устранения регрессий из-за потери контекста",
409
409
  without5: "Никакого прогресса — ИИ не учится на ваших ошибках в прошлом",
410
410
  withTitle: "С CODYMASTER v5",
411
- with1: "Постоянная память — OpenViking <strong>глубоко изучает систему</strong>",
411
+ with1: "Постоянная память — Smart Spine <strong>удерживает систему в фокусе</strong>",
412
412
  with2: "Автономное выполнение — OpenSpace управляет <strong>полным циклом</strong>",
413
413
  with3: "Семантический поиск — <strong>Векторные вложения</strong> находят точный контекст",
414
414
  with4: "Запускайте за <strong>минуты</strong> с автопроверками и тестами",
@@ -420,7 +420,7 @@ const translations = {
420
420
  title: "Одна основа. Полная автономия.",
421
421
  subtitle: "От идеи до продакшена — CodyMaster v5 предоставляет инфраструктуру для автономной работы ИИ.",
422
422
  m1Name: "Семантическая Память",
423
- m1Desc: "OpenViking извлекает точный контекст из больших баз кода с помощью векторных вложений.",
423
+ m1Desc: "Smart Spine извлекает точный контекст из больших кодовых баз через индексы и локальную память.",
424
424
  m2Name: "Автономное Пространство",
425
425
  m2Desc: "OpenSpace позволяет агентам безопасно тестировать и выполнять код в изоляции.",
426
426
  m3Name: "Оркестрация Навыков",
@@ -441,7 +441,7 @@ const translations = {
441
441
  title: "3 шага до продакшена.",
442
442
  subtitle: "Никакого ручного промптинга. Строгий инженерный подход.",
443
443
  s1Name: "Инициализация (Spine)",
444
- s1Desc: "Запустите команду. OpenSpace подготовит безопасное рабочее место, а OpenViking мгновенно проиндексирует код.",
444
+ s1Desc: "Запустите команду. OpenSpace подготовит безопасное рабочее место, а CodyMaster соберет многослойный контекст проекта.",
445
445
  s2Name: "Делегируйте и Управляйте",
446
446
  s2Desc: "Используйте cm-planning для сложных задач. Система сама свяжет нужные навыки ИИ для безопасного выполнения.",
447
447
  s3Name: "Тесты и Релиз",
@@ -451,7 +451,7 @@ const translations = {
451
451
  label: "СЕМАНТИЧЕСКИЙ КАРКАС",
452
452
  title: "ИИ, который ничего не забывает.<br/><span class=\"gradient-text\">В каждом проекте.</span>",
453
453
  subtitle: "Архитектура Smart Spine объединяет память, инструменты и состояние. Каждая строчка кода делает фреймворк лучше.",
454
- mem1Name: "Движок OpenViking",
454
+ mem1Name: "Память Smart Spine",
455
455
  mem1Desc: "Семантический векторный поиск заменяет ненадежный grep по ключевым словам.",
456
456
  mem2Name: "Context Bus (Шина)",
457
457
  mem2Desc: "Позволяет ИИ делиться информацией не расходуя дорогой токен-бюджет LLM.",
@@ -471,7 +471,7 @@ const translations = {
471
471
  freeBtn: "Склонировать репозиторий",
472
472
  proName: "Founders Edition",
473
473
  proPeriod: "пользователь / месяц",
474
- pro1: "Полный семантический поиск OpenViking",
474
+ pro1: "Расширенная память Smart Spine",
475
475
  pro2: "Безлимитные контейнеры OpenSpace",
476
476
  pro3: "Параллельные мультиагентные стаи",
477
477
  pro4: "Гейты развертывания без регрессий",
@@ -485,8 +485,8 @@ const translations = {
485
485
  title: "Частые вопросы",
486
486
  q1Title: "Какие ИИ-модели поддерживаются в CodyMaster v5?",
487
487
  q1Ans: "<p>CodyMaster v5 — это <strong>слой оркестрации</strong>. Он прекрасно работает с Claude 3.5 Sonnet, GPT-4o и Gemini 1.5 Pro. Его можно встроить в Cursor, Windsurf, или запустить напрямую как CLI.</p>",
488
- q2Title: "В чем отличие OpenViking от простого RAG?",
489
- q2Ans: "<p>Обычный RAG слепо нарезает файлы на куски. <strong>OpenViking</strong> понимает семантику деревьев AST. Он выдает L0/L1/L2 сводки, давая агентам понимание реальной архитектуры, предотвращая 'галлюцинации'.</p>",
488
+ q2Title: "Чем Smart Spine отличается от обычного RAG?",
489
+ q2Ans: "<p>Обычный RAG слепо режет файлы на куски. <strong>Smart Spine</strong> использует L0/L1/L2 загрузку, структурные индексы и локальную память проекта, чтобы агент видел архитектуру без перегрузки контекста.</p>",
490
490
  q3Title: "Будет ли это работать с плохим 'легаси' монолитом?",
491
491
  q3Ans: "<p>Да, именно для этого система и создана. <strong>Smart Spine</strong> использует встроенные механизмы тестирования и проверки целостности UI, чтобы безопасно рефакторить монолиты не ломая их.</p>",
492
492
  q4Title: "Что такое OpenSpace?",
@@ -52,21 +52,9 @@ cm continuity migrate
52
52
  # Export SQLite back to JSON (backup)
53
53
  cm continuity export
54
54
 
55
- # ── OpenViking backend (optional) ────────────────────────
56
- # 1. Install OpenViking server (Python 3.10+)
57
- pip install openviking --upgrade
58
-
59
- # 2. Configure ~/.openviking/ov.conf with embedding provider, then start:
60
- openviking start # Runs on localhost:1933 by default
61
-
62
- # 3. Switch CodyMaster to use OpenViking in .cm/config.yaml:
63
- # storage:
64
- # backend: viking
65
- # viking:
66
- # host: localhost
67
- # port: 1933
68
- # workspace: codymaster
69
- # timeout: 60000
55
+ # ── Legacy config note ────────────────────────────────────
56
+ # CodyMaster's supported default path is SQLite + FTS5.
57
+ # Older configs may still say `storage.backend: viking`; CodyMaster now warns and falls back to SQLite.
70
58
  ```
71
59
 
72
60
  ## The Protocol
@@ -187,12 +175,12 @@ Tier 3: LONG-TERM MEMORY (30+ days, only if reinforced)
187
175
  · decisions table + decisions_fts
188
176
  · skill_outputs per session/chain
189
177
  · indexes table (cached L0/L1 content + staleness hash)
190
- Optional: OpenViking backend (storage.backend: viking in .cm/config.yaml)
178
+ Legacy config note: `storage.backend: viking` now falls back to SQLite
191
179
  · True vector semantic search — finds "async timeout" even when you query "network delay"
192
180
  · L0/L1/L2 auto-generated by engine — no manual cm continuity index needed
193
181
  · Session compression + long-term memory extraction built-in
194
182
  · Graph relations between memories (link/unlink)
195
- · Setup: pip install openviking && openviking start
183
+ · No separate OpenViking setup remains in the supported runtime
196
184
  → Fallback: .cm/memory/learnings.json + decisions.json (kept for compat)
197
185
  → L0 indexes: .cm/learnings-index.md (~100 tok), .cm/skeleton-index.md (~500 tok)
198
186
  · Auto-regenerated on addLearning() + on demand via cm continuity index
@@ -215,27 +203,38 @@ Tier 5: STRUCTURAL CODE MEMORY (optional — code-heavy projects)
215
203
  **context bus = "what did upstream skills produce in this chain?"**
216
204
  **L0 indexes = "cheapest possible memory load (~600 tokens)"**
217
205
  **context.db = "keyword search across all learnings + decisions"**
218
- **OpenViking (opt.) = "semantic vector search + auto L0/L1 + session compression"**
206
+ **Legacy `viking` config = "compatibility fallback to SQLite, not a separate backend"**
219
207
  **qmd (optional) = "find what was written across hundreds of docs"**
220
208
 
221
- ### MCP Context Server (Claude Desktop integration)
222
-
223
- Seven tools exposed over stdio to Claude Desktop and MCP-compatible clients:
209
+ ### MCP Context Server (Claude Desktop, Goose, and any MCP client)
224
210
 
225
- | Tool | Purpose |
226
- |---|---|
227
- | `cm_query` | FTS5 keyword search — learnings, decisions, or both |
228
- | `cm_resolve` | Load any `cm://` URI at L0/L1/L2 depth |
229
- | `cm_bus_read` | Read live context bus state |
230
- | `cm_bus_write` | Publish skill output to the bus |
231
- | `cm_budget_check` | Pre-flight token check by category |
232
- | `cm_memory_decay` | Archive expired learnings (supports dry_run) |
233
- | `cm_index_refresh` | Regenerate L0 indexes on demand |
211
+ Fifteen tools exposed over stdio — start with `cm mcp-serve`:
234
212
 
235
213
  ```bash
236
- # Get install snippet for Claude Desktop config
237
- cm continuity mcp
238
- ```
214
+ # Start MCP server (stdio)
215
+ cm mcp-serve --project /path/to/project
216
+
217
+ # Print config snippet for Claude Desktop or Goose
218
+ cm mcp-serve --print-config
219
+ ```
220
+
221
+ | Tool | Purpose | Since |
222
+ |---|---|---|
223
+ | `cm_query` | FTS5 keyword search — learnings, decisions, or both | v4.5 |
224
+ | `cm_resolve` | Load any `cm://` URI at L0/L1/L2 depth | v4.5 |
225
+ | `cm_bus_read` | Read live context bus state | v4.5 |
226
+ | `cm_bus_write` | Publish skill output to the bus | v4.5 |
227
+ | `cm_budget_check` | Pre-flight token check by category | v4.5 |
228
+ | `cm_memory_decay` | Archive expired learnings (supports dry_run) | v4.5 |
229
+ | `cm_index_refresh` | Regenerate L0 indexes on demand | v4.5 |
230
+ | `cm_plan` | Sprint + pipeline snapshot bridge | v4.8 |
231
+ | `cm_review` | Review artifact hints | v4.8 |
232
+ | `cm_qa` | QA workflow hints | v4.8 |
233
+ | `cm_deploy` | Deploy workflow hints | v4.8 |
234
+ | `cm_search` | Search learnings/decisions (alias) | v4.8 |
235
+ | `cm_memory_query` | Memory search (alias) | v4.8 |
236
+ | `cm_memory_write` | Persist a learning with auto-detected category, scope, TTL | v5.1 |
237
+ | `cm_natural` | NLI router: "remember that…" / "forget…" / "what did we learn…" | v5.1 |
239
238
 
240
239
  ### cm:// URI Scheme
241
240
 
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-design-studio
3
+ description: "Use when you need to create 2-3 UI/UX design variants and document a repeatable handoff before coding."
4
+ ---
1
5
  # cm-design-studio
2
6
 
3
7
  > Local design-variant workspace: checklist, named variants, and a handoff stub—no external MCP required.
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-ecosystem-roadmap
3
+ description: "Use when exploring the CodyMaster skill ecosystem roadmap, marketplace, or distro validation."
4
+ ---
1
5
  # cm-ecosystem-roadmap — marketplace & distros
2
6
 
3
7
  **In CLI today:** `cm distro validate <dir>` checks skill folder layout; see **ADR 003** (`docs/adr/003-skill-distro-and-meta.md`) for `meta.json` + tmpl rules.
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-engineering-meta
3
+ description: "Use when looking up quick wins, access patterns, or voice map for the engineering meta layer."
4
+ ---
1
5
  # cm-engineering-meta — quick wins + access + voice map
2
6
 
3
7
  ## Search before building
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-guardian-runtime
3
+ description: "Use when you need to check if a destructive command is blocked or run guardian freeze checks."
4
+ ---
1
5
  # cm-guardian-runtime — destructive command & freeze checks
2
6
 
3
7
  ## Commands
@@ -19,4 +23,4 @@ When using **cm-debugging** or root-cause work, treat **freeze roots** as mandat
19
23
 
20
24
  ## Config
21
25
 
22
- See `.cm/config.example.yaml` → `guardian:`.
26
+ See `.cm/config.example.yaml` → `guardian:`. Hook patterns (Cursor / Codex): [docs/workflows/guardian-hooks.md](../../docs/workflows/guardian-hooks.md) (repo root).
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-mcp-engineering
3
+ description: "Use when you need to interact with the MCP engineering bridge tools (cm_plan, cm_review, cm_qa, cm_deploy, cm_search)."
4
+ ---
1
5
  # cm-mcp-engineering — MCP tools on context server
2
6
 
3
7
  The same binary as memory MCP (`dist/mcp-context-server.js`) now exposes **engineering bridge** tools:
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-post-deploy-canary
3
+ description: "Use after deployment to run smoke tests and post-deploy canary checks via the browse daemon."
4
+ ---
1
5
  # cm-post-deploy-canary — smoke + browse tail
2
6
 
3
7
  ## CLI
@@ -1318,6 +1318,16 @@ Add this line to the AGENTS.md "Important Rules" section:
1318
1318
 
1319
1319
  ```markdown
1320
1320
  - Read `.cm/CONTINUITY.md` at the start of every session for context
1321
+ - Rely on `.cm/project-skills.md` for skill discovery rather than external indexes
1322
+ ```
1323
+
1324
+ ### Step 5: Build Local Project Skills Index
1325
+
1326
+ Run the CodyMaster CLI indexer to detect the tech stack deterministically and pre-compile the needed community skills without wasting LLM tokens.
1327
+
1328
+ ```bash
1329
+ # This scans package.json/go.mod/etc and outputs to .cm/project-skills.md
1330
+ npx cm index skills
1321
1331
  ```
1322
1332
 
1323
1333
  ### Why This Saves Tokens
@@ -1373,4 +1383,5 @@ After bootstrap, the project MUST have:
1373
1383
  ✅ production branch — Production deploys
1374
1384
  ✅ First commit — "chore: bootstrap with cm-project-bootstrap v2.0"
1375
1385
  ✅ .cm/CONTINUITY.md — Working memory for AI context persistence
1386
+ ✅ .cm/project-skills.md — Localized token-efficient skill discovery index
1376
1387
  ```
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-qa-visual-cli
3
+ description: "Use when you need to take screenshots or run visual QA via the browse daemon CLI."
4
+ ---
1
5
  # cm-qa-visual-cli — screenshot via browse daemon
2
6
 
3
7
  ## Prerequisites
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-retro-cli
3
+ description: "Use at end of sprint to append operational learnings as structured JSONL to the project retro log."
4
+ ---
1
5
  # cm-retro-cli — operational learnings JSONL
2
6
 
3
7
  ## Append
@@ -1,3 +1,7 @@
1
+ ---
2
+ name: cm-second-opinion-cli
3
+ description: "Use when you need a cross-model review or second opinion on a diff or code change."
4
+ ---
1
5
  # cm-second-opinion-cli — cross-model review stub
2
6
 
3
7
  ## CLI
@@ -1,4 +1,5 @@
1
1
  ---
2
+ name: cm-security-gate
2
3
  description: Pre-production security audit and vulnerability scanning. Run Snyk + Aikido dependency scans, OWASP analysis, and set up automated GitHub security checks with Jules. Use when asked to 'run security check', 'security audit', 'kiểm tra bảo mật', 'vulnerability scan', 'Snyk', 'OWASP', or before open-sourcing / commercializing a project.
3
4
  ---
4
5
  # cm-security-gate — Mandatory Security Audit & Vulnerability Gate
@@ -37,8 +37,9 @@ Full skill names: `cm-brainstorm-idea`, `cm-planning`, `cm-tdd`, `cm-execution`,
37
37
 
38
38
  ## Built-in Chains
39
39
 
40
- ### 🚀 feature-development (6 steps)
41
- `brainstorm-idea → planning → tdd → execution → quality-gate → safe-deploy`
40
+ ### 🚀 feature-development (up to 3 active steps)
41
+ `brainstorm-idea* → planning → tdd → execution → quality-gate → safe-deploy*`
42
+ *optional steps — only activated when task context scores them relevant
42
43
 
43
44
  ### 🐛 bug-fix (3 steps)
44
45
  `debugging → tdd → quality-gate`
@@ -46,12 +47,32 @@ Full skill names: `cm-brainstorm-idea`, `cm-planning`, `cm-tdd`, `cm-execution`,
46
47
  ### 📝 content-launch (3 steps)
47
48
  `content-factory → ads-tracker → cm-cro-methodology`
48
49
 
49
- ### 🏗️ new-project (6 steps)
50
- `project-bootstrap → planning → tdd → execution → quality-gate → safe-deploy`
50
+ ### 🏗️ new-project (up to 3 active steps)
51
+ `project-bootstrap → planning → tdd → execution → quality-gate → safe-deploy*`
52
+ *optional steps selected by task relevance
51
53
 
52
54
  ### 🔍 cm-code-review (3 steps)
53
55
  `cm-code-review → quality-gate → safe-deploy`
54
56
 
57
+ ## Intelligent Skill Selection (v5.1)
58
+
59
+ Chains no longer execute every step blindly. `selectTopSkills()` dynamically selects the **top 3 most relevant steps** for each task:
60
+
61
+ ```
62
+ Task: "fix login timeout bug"
63
+ → Scores each step by keyword overlap with task description
64
+ → Mandatory steps (condition='always', optional=false) always included first
65
+ → Optional steps ranked by relevance score, capped at 3 total
66
+ → Result: debugging (score 105) → tdd (score 101) → quality-gate (score 100)
67
+ ```
68
+
69
+ **Why it matters (SkillsBench research):**
70
+ - 2-3 focused skills → **+18.6pp** task performance
71
+ - 4+ skills → **+5.9pp**
72
+ - Monolithic loading → **-2.9pp**
73
+
74
+ If a chain has more than 3 mandatory steps, all mandatory steps run and a performance advisory is logged.
75
+
55
76
  ## Workflow
56
77
 
57
78
  1. **Start**: Use `chain auto` for auto-detection or `chain start` for specific chains