@pcircle/claude-code-buddy-mcp 2.5.2 → 2.6.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 (404) hide show
  1. package/README.md +297 -432
  2. package/README.zh-TW.md +229 -407
  3. package/dist/a2a/client/A2AClient.d.ts +17 -0
  4. package/dist/a2a/client/A2AClient.d.ts.map +1 -0
  5. package/dist/a2a/client/A2AClient.js +124 -0
  6. package/dist/a2a/client/A2AClient.js.map +1 -0
  7. package/dist/a2a/client/index.d.ts +2 -0
  8. package/dist/a2a/client/index.d.ts.map +1 -0
  9. package/dist/a2a/client/index.js +2 -0
  10. package/dist/a2a/client/index.js.map +1 -0
  11. package/dist/a2a/executor/TaskExecutor.d.ts +9 -0
  12. package/dist/a2a/executor/TaskExecutor.d.ts.map +1 -0
  13. package/dist/a2a/executor/TaskExecutor.js +54 -0
  14. package/dist/a2a/executor/TaskExecutor.js.map +1 -0
  15. package/dist/a2a/executor/index.d.ts +2 -0
  16. package/dist/a2a/executor/index.d.ts.map +1 -0
  17. package/dist/a2a/executor/index.js +2 -0
  18. package/dist/a2a/executor/index.js.map +1 -0
  19. package/dist/a2a/server/A2AServer.d.ts +32 -0
  20. package/dist/a2a/server/A2AServer.d.ts.map +1 -0
  21. package/dist/a2a/server/A2AServer.js +120 -0
  22. package/dist/a2a/server/A2AServer.js.map +1 -0
  23. package/dist/a2a/server/index.d.ts +4 -0
  24. package/dist/a2a/server/index.d.ts.map +1 -0
  25. package/dist/a2a/server/index.js +4 -0
  26. package/dist/a2a/server/index.js.map +1 -0
  27. package/dist/a2a/server/middleware.d.ts +6 -0
  28. package/dist/a2a/server/middleware.d.ts.map +1 -0
  29. package/dist/a2a/server/middleware.js +69 -0
  30. package/dist/a2a/server/middleware.js.map +1 -0
  31. package/dist/a2a/server/routes.d.ts +15 -0
  32. package/dist/a2a/server/routes.d.ts.map +1 -0
  33. package/dist/a2a/server/routes.js +159 -0
  34. package/dist/a2a/server/routes.js.map +1 -0
  35. package/dist/a2a/storage/AgentRegistry.d.ts +19 -0
  36. package/dist/a2a/storage/AgentRegistry.d.ts.map +1 -0
  37. package/dist/a2a/storage/AgentRegistry.js +140 -0
  38. package/dist/a2a/storage/AgentRegistry.js.map +1 -0
  39. package/dist/a2a/storage/TaskQueue.d.ts +24 -0
  40. package/dist/a2a/storage/TaskQueue.d.ts.map +1 -0
  41. package/dist/a2a/storage/TaskQueue.js +277 -0
  42. package/dist/a2a/storage/TaskQueue.js.map +1 -0
  43. package/dist/a2a/storage/index.d.ts +3 -0
  44. package/dist/a2a/storage/index.d.ts.map +1 -0
  45. package/dist/a2a/storage/index.js +3 -0
  46. package/dist/a2a/storage/index.js.map +1 -0
  47. package/dist/a2a/storage/registry-schemas.sql +20 -0
  48. package/dist/a2a/storage/schemas.sql +54 -0
  49. package/dist/a2a/types/agent-card.d.ts +59 -0
  50. package/dist/a2a/types/agent-card.d.ts.map +1 -0
  51. package/dist/a2a/types/agent-card.js +2 -0
  52. package/dist/a2a/types/agent-card.js.map +1 -0
  53. package/dist/a2a/types/index.d.ts +5 -0
  54. package/dist/a2a/types/index.d.ts.map +1 -0
  55. package/dist/a2a/types/index.js +2 -0
  56. package/dist/a2a/types/index.js.map +1 -0
  57. package/dist/a2a/types/message.d.ts +16 -0
  58. package/dist/a2a/types/message.d.ts.map +1 -0
  59. package/dist/a2a/types/message.js +2 -0
  60. package/dist/a2a/types/message.js.map +1 -0
  61. package/dist/a2a/types/protocol.d.ts +60 -0
  62. package/dist/a2a/types/protocol.d.ts.map +1 -0
  63. package/dist/a2a/types/protocol.js +2 -0
  64. package/dist/a2a/types/protocol.js.map +1 -0
  65. package/dist/a2a/types/task.d.ts +73 -0
  66. package/dist/a2a/types/task.d.ts.map +1 -0
  67. package/dist/a2a/types/task.js +2 -0
  68. package/dist/a2a/types/task.js.map +1 -0
  69. package/dist/agents/DevelopmentButler.d.ts +11 -2
  70. package/dist/agents/DevelopmentButler.d.ts.map +1 -1
  71. package/dist/agents/DevelopmentButler.js +264 -143
  72. package/dist/agents/DevelopmentButler.js.map +1 -1
  73. package/dist/agents/E2EHealingAgent.d.ts +0 -1
  74. package/dist/agents/E2EHealingAgent.d.ts.map +1 -1
  75. package/dist/agents/E2EHealingAgent.js +0 -14
  76. package/dist/agents/E2EHealingAgent.js.map +1 -1
  77. package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.d.ts +1 -1
  78. package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.d.ts.map +1 -1
  79. package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.js +1 -1
  80. package/dist/agents/e2e-healing/policy/GraduatedAutonomyPolicy.js.map +1 -1
  81. package/dist/agents/e2e-healing/safety/RollbackManager.d.ts.map +1 -1
  82. package/dist/agents/e2e-healing/safety/RollbackManager.js.map +1 -1
  83. package/dist/agents/e2e-healing/safety/ScopeLimiter.d.ts +1 -1
  84. package/dist/agents/e2e-healing/safety/ScopeLimiter.d.ts.map +1 -1
  85. package/dist/agents/e2e-healing/safety/ScopeLimiter.js +1 -1
  86. package/dist/agents/e2e-healing/safety/ScopeLimiter.js.map +1 -1
  87. package/dist/agents/knowledge/storage/KnowledgeGraphStore.d.ts.map +1 -1
  88. package/dist/agents/knowledge/storage/KnowledgeGraphStore.js.map +1 -1
  89. package/dist/core/BackgroundExecutor.js +1 -1
  90. package/dist/core/BackgroundExecutor.js.map +1 -1
  91. package/dist/core/ClaudeMdRuleExtractor.d.ts +16 -0
  92. package/dist/core/ClaudeMdRuleExtractor.d.ts.map +1 -0
  93. package/dist/core/ClaudeMdRuleExtractor.js +236 -0
  94. package/dist/core/ClaudeMdRuleExtractor.js.map +1 -0
  95. package/dist/core/HealthCheck.d.ts +1 -1
  96. package/dist/core/HealthCheck.d.ts.map +1 -1
  97. package/dist/core/HealthCheck.js +1 -1
  98. package/dist/core/HealthCheck.js.map +1 -1
  99. package/dist/core/HookIntegration.d.ts +5 -1
  100. package/dist/core/HookIntegration.d.ts.map +1 -1
  101. package/dist/core/HookIntegration.js +35 -2
  102. package/dist/core/HookIntegration.js.map +1 -1
  103. package/dist/core/MistakePatternManager.d.ts +31 -0
  104. package/dist/core/MistakePatternManager.d.ts.map +1 -0
  105. package/dist/core/MistakePatternManager.js +111 -0
  106. package/dist/core/MistakePatternManager.js.map +1 -0
  107. package/dist/core/PromptEnhancer.d.ts.map +1 -1
  108. package/dist/core/PromptEnhancer.js.map +1 -1
  109. package/dist/core/SessionContextMonitor.d.ts.map +1 -1
  110. package/dist/core/SessionContextMonitor.js.map +1 -1
  111. package/dist/core/SkillsKnowledgeIntegrator.d.ts +28 -0
  112. package/dist/core/SkillsKnowledgeIntegrator.d.ts.map +1 -0
  113. package/dist/core/SkillsKnowledgeIntegrator.js +149 -0
  114. package/dist/core/SkillsKnowledgeIntegrator.js.map +1 -0
  115. package/dist/core/WorkflowEnforcementEngine.d.ts +46 -0
  116. package/dist/core/WorkflowEnforcementEngine.d.ts.map +1 -0
  117. package/dist/core/WorkflowEnforcementEngine.js +277 -0
  118. package/dist/core/WorkflowEnforcementEngine.js.map +1 -0
  119. package/dist/core/WorkflowGuidanceEngine.d.ts +9 -2
  120. package/dist/core/WorkflowGuidanceEngine.d.ts.map +1 -1
  121. package/dist/core/WorkflowGuidanceEngine.js +39 -2
  122. package/dist/core/WorkflowGuidanceEngine.js.map +1 -1
  123. package/dist/evolution/ABTestManager.js +1 -1
  124. package/dist/evolution/ABTestManager.js.map +1 -1
  125. package/dist/evolution/AgentEvolutionConfig.d.ts.map +1 -1
  126. package/dist/evolution/AgentEvolutionConfig.js +0 -18
  127. package/dist/evolution/AgentEvolutionConfig.js.map +1 -1
  128. package/dist/evolution/CloudEvolutionClient.d.ts +5 -5
  129. package/dist/evolution/CloudEvolutionClient.d.ts.map +1 -1
  130. package/dist/evolution/CloudEvolutionClient.js +6 -6
  131. package/dist/evolution/CloudEvolutionClient.js.map +1 -1
  132. package/dist/evolution/EvolutionBootstrap.js +1 -1
  133. package/dist/evolution/EvolutionBootstrap.js.map +1 -1
  134. package/dist/evolution/EvolutionMonitor.d.ts +3 -104
  135. package/dist/evolution/EvolutionMonitor.d.ts.map +1 -1
  136. package/dist/evolution/EvolutionMonitor.js +6 -529
  137. package/dist/evolution/EvolutionMonitor.js.map +1 -1
  138. package/dist/evolution/FeedbackCollector.d.ts +2 -39
  139. package/dist/evolution/FeedbackCollector.d.ts.map +1 -1
  140. package/dist/evolution/FeedbackCollector.js +1 -205
  141. package/dist/evolution/FeedbackCollector.js.map +1 -1
  142. package/dist/evolution/KnowledgeTransferManager.d.ts.map +1 -1
  143. package/dist/evolution/KnowledgeTransferManager.js +21 -5
  144. package/dist/evolution/KnowledgeTransferManager.js.map +1 -1
  145. package/dist/evolution/LearningManager.d.ts +3 -64
  146. package/dist/evolution/LearningManager.d.ts.map +1 -1
  147. package/dist/evolution/LearningManager.js +36 -547
  148. package/dist/evolution/LearningManager.js.map +1 -1
  149. package/dist/evolution/PerformanceTracker.d.ts +1 -15
  150. package/dist/evolution/PerformanceTracker.d.ts.map +1 -1
  151. package/dist/evolution/PerformanceTracker.js +1 -173
  152. package/dist/evolution/PerformanceTracker.js.map +1 -1
  153. package/dist/evolution/index.d.ts +4 -12
  154. package/dist/evolution/index.d.ts.map +1 -1
  155. package/dist/evolution/index.js +2 -9
  156. package/dist/evolution/index.js.map +1 -1
  157. package/dist/evolution/instrumentation/withEvolutionTracking.d.ts.map +1 -1
  158. package/dist/evolution/instrumentation/withEvolutionTracking.js +1 -2
  159. package/dist/evolution/instrumentation/withEvolutionTracking.js.map +1 -1
  160. package/dist/evolution/links/LinkManager.d.ts.map +1 -1
  161. package/dist/evolution/links/LinkManager.js.map +1 -1
  162. package/dist/evolution/storage/SQLiteStore.d.ts +1 -1
  163. package/dist/evolution/storage/SQLiteStore.d.ts.map +1 -1
  164. package/dist/evolution/storage/SQLiteStore.js +5 -2
  165. package/dist/evolution/storage/SQLiteStore.js.map +1 -1
  166. package/dist/evolution/storage/deprecated/SQLiteStore.basic.d.ts +3 -3
  167. package/dist/evolution/storage/deprecated/SQLiteStore.basic.d.ts.map +1 -1
  168. package/dist/evolution/storage/deprecated/SQLiteStore.basic.js +3 -3
  169. package/dist/evolution/storage/deprecated/SQLiteStore.basic.js.map +1 -1
  170. package/dist/evolution/storage/migrations/MigrationManager.js +1 -1
  171. package/dist/evolution/storage/migrations/MigrationManager.js.map +1 -1
  172. package/dist/evolution/storage/repositories/PerformanceMetricsRepository.d.ts.map +1 -1
  173. package/dist/evolution/storage/repositories/PerformanceMetricsRepository.js.map +1 -1
  174. package/dist/evolution/storage/repositories/SpanRepository.d.ts.map +1 -1
  175. package/dist/i18n/index.d.ts +9 -0
  176. package/dist/i18n/index.d.ts.map +1 -0
  177. package/dist/i18n/index.js +78 -0
  178. package/dist/i18n/index.js.map +1 -0
  179. package/dist/i18n/locales/en.d.ts +3 -0
  180. package/dist/i18n/locales/en.d.ts.map +1 -0
  181. package/dist/i18n/locales/en.js +39 -0
  182. package/dist/i18n/locales/en.js.map +1 -0
  183. package/dist/i18n/locales/index.d.ts +5 -0
  184. package/dist/i18n/locales/index.d.ts.map +1 -0
  185. package/dist/i18n/locales/index.js +5 -0
  186. package/dist/i18n/locales/index.js.map +1 -0
  187. package/dist/i18n/locales/ja.d.ts +3 -0
  188. package/dist/i18n/locales/ja.d.ts.map +1 -0
  189. package/dist/i18n/locales/ja.js +37 -0
  190. package/dist/i18n/locales/ja.js.map +1 -0
  191. package/dist/i18n/locales/zh-CN.d.ts +3 -0
  192. package/dist/i18n/locales/zh-CN.d.ts.map +1 -0
  193. package/dist/i18n/locales/zh-CN.js +37 -0
  194. package/dist/i18n/locales/zh-CN.js.map +1 -0
  195. package/dist/i18n/locales/zh-TW.d.ts +3 -0
  196. package/dist/i18n/locales/zh-TW.d.ts.map +1 -0
  197. package/dist/i18n/locales/zh-TW.js +37 -0
  198. package/dist/i18n/locales/zh-TW.js.map +1 -0
  199. package/dist/i18n/types.d.ts +11 -0
  200. package/dist/i18n/types.d.ts.map +1 -0
  201. package/dist/i18n/types.js +3 -0
  202. package/dist/i18n/types.js.map +1 -0
  203. package/dist/index.d.ts +1 -1
  204. package/dist/index.d.ts.map +1 -1
  205. package/dist/index.js +77 -1
  206. package/dist/index.js.map +1 -1
  207. package/dist/knowledge-graph/index.d.ts +0 -1
  208. package/dist/knowledge-graph/index.d.ts.map +1 -1
  209. package/dist/knowledge-graph/index.js +2 -5
  210. package/dist/knowledge-graph/index.js.map +1 -1
  211. package/dist/knowledge-graph/types.d.ts +1 -1
  212. package/dist/knowledge-graph/types.d.ts.map +1 -1
  213. package/dist/mcp/ProgressReporter.d.ts +14 -0
  214. package/dist/mcp/ProgressReporter.d.ts.map +1 -0
  215. package/dist/mcp/ProgressReporter.js +22 -0
  216. package/dist/mcp/ProgressReporter.js.map +1 -0
  217. package/dist/mcp/SamplingClient.d.ts +32 -0
  218. package/dist/mcp/SamplingClient.d.ts.map +1 -0
  219. package/dist/mcp/SamplingClient.js +63 -0
  220. package/dist/mcp/SamplingClient.js.map +1 -0
  221. package/dist/mcp/ServerInitializer.d.ts +6 -3
  222. package/dist/mcp/ServerInitializer.d.ts.map +1 -1
  223. package/dist/mcp/ServerInitializer.js +18 -11
  224. package/dist/mcp/ServerInitializer.js.map +1 -1
  225. package/dist/mcp/ToolDefinitions.d.ts +1 -0
  226. package/dist/mcp/ToolDefinitions.d.ts.map +1 -1
  227. package/dist/mcp/ToolDefinitions.js +355 -47
  228. package/dist/mcp/ToolDefinitions.js.map +1 -1
  229. package/dist/mcp/ToolRouter.d.ts +6 -1
  230. package/dist/mcp/ToolRouter.d.ts.map +1 -1
  231. package/dist/mcp/ToolRouter.js +60 -3
  232. package/dist/mcp/ToolRouter.js.map +1 -1
  233. package/dist/mcp/handlers/A2AToolHandlers.d.ts +17 -0
  234. package/dist/mcp/handlers/A2AToolHandlers.d.ts.map +1 -0
  235. package/dist/mcp/handlers/A2AToolHandlers.js +201 -0
  236. package/dist/mcp/handlers/A2AToolHandlers.js.map +1 -0
  237. package/dist/mcp/handlers/BuddyHandlers.d.ts +3 -1
  238. package/dist/mcp/handlers/BuddyHandlers.d.ts.map +1 -1
  239. package/dist/mcp/handlers/BuddyHandlers.js +4 -2
  240. package/dist/mcp/handlers/BuddyHandlers.js.map +1 -1
  241. package/dist/mcp/handlers/BuddyRecordMistake.d.ts +4 -2
  242. package/dist/mcp/handlers/BuddyRecordMistake.d.ts.map +1 -1
  243. package/dist/mcp/handlers/BuddyRecordMistake.js +111 -29
  244. package/dist/mcp/handlers/BuddyRecordMistake.js.map +1 -1
  245. package/dist/mcp/handlers/ResourceHandlers.d.ts.map +1 -1
  246. package/dist/mcp/handlers/ResourceHandlers.js +51 -4
  247. package/dist/mcp/handlers/ResourceHandlers.js.map +1 -1
  248. package/dist/mcp/handlers/SecretHandlers.d.ts +23 -0
  249. package/dist/mcp/handlers/SecretHandlers.d.ts.map +1 -0
  250. package/dist/mcp/handlers/SecretHandlers.js +277 -0
  251. package/dist/mcp/handlers/SecretHandlers.js.map +1 -0
  252. package/dist/mcp/handlers/ToolHandlers.d.ts +8 -4
  253. package/dist/mcp/handlers/ToolHandlers.d.ts.map +1 -1
  254. package/dist/mcp/handlers/ToolHandlers.js +68 -101
  255. package/dist/mcp/handlers/ToolHandlers.js.map +1 -1
  256. package/dist/mcp/handlers/index.d.ts +2 -0
  257. package/dist/mcp/handlers/index.d.ts.map +1 -1
  258. package/dist/mcp/handlers/index.js +2 -0
  259. package/dist/mcp/handlers/index.js.map +1 -1
  260. package/dist/mcp/resources/ResourceRegistry.d.ts +23 -0
  261. package/dist/mcp/resources/ResourceRegistry.d.ts.map +1 -0
  262. package/dist/mcp/resources/ResourceRegistry.js +26 -0
  263. package/dist/mcp/resources/ResourceRegistry.js.map +1 -0
  264. package/dist/mcp/resources/URITemplateHandler.d.ts +8 -0
  265. package/dist/mcp/resources/URITemplateHandler.d.ts.map +1 -0
  266. package/dist/mcp/resources/URITemplateHandler.js +29 -0
  267. package/dist/mcp/resources/URITemplateHandler.js.map +1 -0
  268. package/dist/mcp/resources/buddy-do-skill.md +85 -0
  269. package/dist/mcp/resources/ccb-complete-guide.md +382 -0
  270. package/dist/mcp/resources/handlers/AgentStatusHandler.d.ts +7 -0
  271. package/dist/mcp/resources/handlers/AgentStatusHandler.d.ts.map +1 -0
  272. package/dist/mcp/resources/handlers/AgentStatusHandler.js +41 -0
  273. package/dist/mcp/resources/handlers/AgentStatusHandler.js.map +1 -0
  274. package/dist/mcp/resources/handlers/TaskLogsHandler.d.ts +7 -0
  275. package/dist/mcp/resources/handlers/TaskLogsHandler.d.ts.map +1 -0
  276. package/dist/mcp/resources/handlers/TaskLogsHandler.js +36 -0
  277. package/dist/mcp/resources/handlers/TaskLogsHandler.js.map +1 -0
  278. package/dist/mcp/schemas/OutputSchemas.d.ts +331 -3
  279. package/dist/mcp/schemas/OutputSchemas.d.ts.map +1 -1
  280. package/dist/mcp/schemas/OutputSchemas.js +166 -3
  281. package/dist/mcp/schemas/OutputSchemas.js.map +1 -1
  282. package/dist/mcp/server-bootstrap.d.ts +3 -0
  283. package/dist/mcp/server-bootstrap.d.ts.map +1 -1
  284. package/dist/mcp/server-bootstrap.js +65 -2
  285. package/dist/mcp/server-bootstrap.js.map +1 -1
  286. package/dist/mcp/server.d.ts.map +1 -1
  287. package/dist/mcp/server.js +6 -5
  288. package/dist/mcp/server.js.map +1 -1
  289. package/dist/mcp/tools/buddy-do.d.ts +2 -1
  290. package/dist/mcp/tools/buddy-do.d.ts.map +1 -1
  291. package/dist/mcp/tools/buddy-do.js +26 -1
  292. package/dist/mcp/tools/buddy-do.js.map +1 -1
  293. package/dist/mcp/tools/create-entities.d.ts +8 -0
  294. package/dist/mcp/tools/create-entities.d.ts.map +1 -1
  295. package/dist/mcp/tools/create-entities.js +11 -0
  296. package/dist/mcp/tools/create-entities.js.map +1 -1
  297. package/dist/mcp/tools/generate-tests.d.ts +11 -0
  298. package/dist/mcp/tools/generate-tests.d.ts.map +1 -0
  299. package/dist/mcp/tools/generate-tests.js +19 -0
  300. package/dist/mcp/tools/generate-tests.js.map +1 -0
  301. package/dist/mcp/validation.d.ts +45 -0
  302. package/dist/mcp/validation.d.ts.map +1 -1
  303. package/dist/mcp/validation.js +34 -0
  304. package/dist/mcp/validation.js.map +1 -1
  305. package/dist/memory/BuiltInRules.d.ts +54 -0
  306. package/dist/memory/BuiltInRules.d.ts.map +1 -0
  307. package/dist/memory/BuiltInRules.js +161 -0
  308. package/dist/memory/BuiltInRules.js.map +1 -0
  309. package/dist/memory/EnhancedRetrieval.d.ts +22 -0
  310. package/dist/memory/EnhancedRetrieval.d.ts.map +1 -0
  311. package/dist/memory/EnhancedRetrieval.js +63 -0
  312. package/dist/memory/EnhancedRetrieval.js.map +1 -0
  313. package/dist/memory/EntityTypes.d.ts +14 -0
  314. package/dist/memory/EntityTypes.d.ts.map +1 -0
  315. package/dist/memory/EntityTypes.js +19 -0
  316. package/dist/memory/EntityTypes.js.map +1 -0
  317. package/dist/memory/MistakePatternEngine.d.ts +15 -0
  318. package/dist/memory/MistakePatternEngine.d.ts.map +1 -0
  319. package/dist/memory/MistakePatternEngine.js +99 -0
  320. package/dist/memory/MistakePatternEngine.js.map +1 -0
  321. package/dist/memory/PreventionHook.d.ts +28 -0
  322. package/dist/memory/PreventionHook.d.ts.map +1 -0
  323. package/dist/memory/PreventionHook.js +21 -0
  324. package/dist/memory/PreventionHook.js.map +1 -0
  325. package/dist/memory/ProjectAutoTracker.d.ts +31 -0
  326. package/dist/memory/ProjectAutoTracker.d.ts.map +1 -1
  327. package/dist/memory/ProjectAutoTracker.js +107 -5
  328. package/dist/memory/ProjectAutoTracker.js.map +1 -1
  329. package/dist/memory/ProjectMemoryManager.d.ts.map +1 -1
  330. package/dist/memory/ProjectMemoryManager.js.map +1 -1
  331. package/dist/memory/SecretManager.d.ts +41 -0
  332. package/dist/memory/SecretManager.d.ts.map +1 -0
  333. package/dist/memory/SecretManager.js +313 -0
  334. package/dist/memory/SecretManager.js.map +1 -0
  335. package/dist/memory/UnifiedMemoryStore.d.ts +25 -0
  336. package/dist/memory/UnifiedMemoryStore.d.ts.map +1 -0
  337. package/dist/memory/UnifiedMemoryStore.js +414 -0
  338. package/dist/memory/UnifiedMemoryStore.js.map +1 -0
  339. package/dist/memory/UserPreferenceEngine.d.ts +18 -0
  340. package/dist/memory/UserPreferenceEngine.d.ts.map +1 -0
  341. package/dist/memory/UserPreferenceEngine.js +116 -0
  342. package/dist/memory/UserPreferenceEngine.js.map +1 -0
  343. package/dist/memory/config/semantic-groups.d.ts +9 -0
  344. package/dist/memory/config/semantic-groups.d.ts.map +1 -0
  345. package/dist/memory/config/semantic-groups.js +22 -0
  346. package/dist/memory/config/semantic-groups.js.map +1 -0
  347. package/dist/memory/index.d.ts +16 -0
  348. package/dist/memory/index.d.ts.map +1 -0
  349. package/dist/memory/index.js +12 -0
  350. package/dist/memory/index.js.map +1 -0
  351. package/dist/memory/types/index.d.ts +9 -0
  352. package/dist/memory/types/index.d.ts.map +1 -0
  353. package/dist/memory/types/index.js +5 -0
  354. package/dist/memory/types/index.js.map +1 -0
  355. package/dist/memory/types/memory-scope.d.ts +27 -0
  356. package/dist/memory/types/memory-scope.d.ts.map +1 -0
  357. package/dist/memory/types/memory-scope.js +67 -0
  358. package/dist/memory/types/memory-scope.js.map +1 -0
  359. package/dist/memory/types/pattern-types.d.ts +66 -0
  360. package/dist/memory/types/pattern-types.d.ts.map +1 -0
  361. package/dist/memory/types/pattern-types.js +2 -0
  362. package/dist/memory/types/pattern-types.js.map +1 -0
  363. package/dist/memory/types/preference-types.d.ts +28 -0
  364. package/dist/memory/types/preference-types.d.ts.map +1 -0
  365. package/dist/memory/types/preference-types.js +2 -0
  366. package/dist/memory/types/preference-types.js.map +1 -0
  367. package/dist/memory/types/secret-types.d.ts +43 -0
  368. package/dist/memory/types/secret-types.d.ts.map +1 -0
  369. package/dist/memory/types/secret-types.js +51 -0
  370. package/dist/memory/types/secret-types.js.map +1 -0
  371. package/dist/memory/types/unified-memory.d.ts +27 -0
  372. package/dist/memory/types/unified-memory.d.ts.map +1 -0
  373. package/dist/memory/types/unified-memory.js +19 -0
  374. package/dist/memory/types/unified-memory.js.map +1 -0
  375. package/dist/orchestrator/index.d.ts.map +1 -1
  376. package/dist/orchestrator/index.js +7 -1
  377. package/dist/orchestrator/index.js.map +1 -1
  378. package/dist/orchestrator/router.d.ts +0 -5
  379. package/dist/orchestrator/router.d.ts.map +1 -1
  380. package/dist/orchestrator/router.js +1 -32
  381. package/dist/orchestrator/router.js.map +1 -1
  382. package/dist/telemetry/index.d.ts +5 -5
  383. package/dist/telemetry/index.d.ts.map +1 -1
  384. package/dist/telemetry/index.js +5 -5
  385. package/dist/telemetry/index.js.map +1 -1
  386. package/dist/tools/TestGenerator.d.ts +8 -0
  387. package/dist/tools/TestGenerator.d.ts.map +1 -0
  388. package/dist/tools/TestGenerator.js +54 -0
  389. package/dist/tools/TestGenerator.js.map +1 -0
  390. package/dist/ui/MetricsStore.js +1 -1
  391. package/dist/ui/MetricsStore.js.map +1 -1
  392. package/package.json +8 -6
  393. package/dist/evolution/AdaptationEngine.d.ts +0 -60
  394. package/dist/evolution/AdaptationEngine.d.ts.map +0 -1
  395. package/dist/evolution/AdaptationEngine.js +0 -313
  396. package/dist/evolution/AdaptationEngine.js.map +0 -1
  397. package/dist/evolution/storage/SQLiteStore.enhanced.d.ts +0 -35
  398. package/dist/evolution/storage/SQLiteStore.enhanced.d.ts.map +0 -1
  399. package/dist/evolution/storage/SQLiteStore.enhanced.js +0 -514
  400. package/dist/evolution/storage/SQLiteStore.enhanced.js.map +0 -1
  401. package/dist/planning/PlanningEngine.d.ts +0 -52
  402. package/dist/planning/PlanningEngine.d.ts.map +0 -1
  403. package/dist/planning/PlanningEngine.js +0 -271
  404. package/dist/planning/PlanningEngine.js.map +0 -1
package/README.md CHANGED
@@ -1,292 +1,197 @@
1
- # Claude Code Buddy (CCB)
2
-
3
- 🌐 **Website:** [ccb.pcircle.ai](https://ccb.pcircle.ai) | **Languages:** English | [繁體中文](README.zh-TW.md)
4
-
5
- ---
6
-
7
- > **Make Claude Code remember your project, learn from your feedback, and give you expert-level responses without expert-level prompts.**
8
-
9
- Claude Code Buddy is a Claude Code Plugin that adds intelligence, memory, and task routing to Claude Code - turning it from a powerful assistant into a project-aware AI teammate.
1
+ <div align="center">
10
2
 
11
- ---
3
+ # 🧠 Claude Code Buddy (CCB)
12
4
 
13
- ## The Problem
5
+ ### **The Only MCP Server That Remembers**
14
6
 
15
- You're using Claude Code to build your project, but you keep hitting the same frustrations:
7
+ **Make Claude Code remember everything. Build faster. Vibe harder.**
16
8
 
17
- - **"Didn't we already discuss this?"** - Claude forgets context between sessions
18
- - **"Why am I explaining this again?"** - Every conversation starts from zero
19
- - **"This answer is too generic"** - Same response whether you're debugging, reviewing code, or designing UI
20
- - **"Let me write this 50-line prompt... again"** - Repetitive instructions for common tasks
9
+ [![GitHub Stars](https://img.shields.io/github/stars/PCIRCLE-AI/claude-code-buddy?style=social)](https://github.com/PCIRCLE-AI/claude-code-buddy)
10
+ [![npm version](https://img.shields.io/npm/v/@pcircle/claude-code-buddy-mcp)](https://www.npmjs.com/package/@pcircle/claude-code-buddy-mcp)
11
+ [![License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE)
12
+ [![MCP](https://img.shields.io/badge/MCP-1.25.3-purple.svg)](https://modelcontextprotocol.io)
21
13
 
22
- **You end up being Claude's memory and project manager instead of focusing on building.**
14
+ [🚀 Quick Start](#-2-minute-quick-start) [📖 Docs](docs/) [🌐 Website](https://ccb.pcircle.ai) [💬 Discussions](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
23
15
 
24
16
  ---
25
17
 
26
- ## The Solution
18
+ ### 🎥 **See It In Action** (Interactive Demo)
27
19
 
28
- Claude Code Buddy sits between you and Claude Code, adding three superpowers:
20
+ <table>
21
+ <tr>
22
+ <td width="50%" valign="top">
29
23
 
30
- ### 1. 🧠 **Project Memory**
24
+ #### 🔴 **Without CCB**
31
25
 
32
- CCB remembers your architecture decisions, coding patterns, and past solutions. Ask "Why did we choose PostgreSQL?" and get the actual decision rationale - not a generic comparison.
26
+ ```bash
27
+ # Session 1 (Monday)
28
+ You: "We use JWT for auth because..."
29
+ Claude: "Got it! ✅"
33
30
 
34
- ### 2. 🎯 **Smart Task Routing**
31
+ # Session 2 (Tuesday)
32
+ You: "Remember our auth approach?"
33
+ Claude: "Sorry, I don't have context..."
34
+ You: *explains everything again* 😤
35
35
 
36
- Your request gets analyzed and routed to the right "expert mode" - code review tasks get code review expertise, debugging gets systematic debugging methodology, frontend gets UI/UX best practices.
36
+ # Session 3 (Wednesday)
37
+ You: "Our JWT implementation..."
38
+ Claude: "What JWT implementation?"
39
+ You: *RAGE QUITS* 💢
40
+ ```
37
41
 
38
- ### 3. 🎯 **Capability Guidance**
42
+ </td>
43
+ <td width="50%" valign="top">
39
44
 
40
- CCB tailors prompts to the task type and your project context, so reviews, debugging, and design work all get the right structure and guardrails.
45
+ #### **With CCB**
41
46
 
42
- **Result:** Expert responses without expert prompts. Context that persists. Guidance that stays focused and actionable.
47
+ ```bash
48
+ # Session 1 (Monday)
49
+ You: buddy-do "setup JWT auth"
50
+ CCB: ✅ Implemented + Saved to memory
43
51
 
44
- ### What does "evolves with your project" actually mean?
52
+ # Session 2 (Tuesday)
53
+ You: buddy-remember "auth"
54
+ CCB: 📚 "JWT auth implemented on 2024-01-15
55
+ ↳ Access tokens: 15min
56
+ ↳ Refresh tokens: 7 days
57
+ ↳ Secret rotation: monthly"
45
58
 
46
- CCB does not retrain models or modify Claude itself.
59
+ # Session 3 (Any day, forever)
60
+ You: buddy-do "add OAuth"
61
+ CCB: 🧠 "I see you have JWT. Let's
62
+ integrate OAuth alongside it..."
63
+ ```
47
64
 
48
- Instead, evolution comes from a **persistent system layer** inside the Claude Code plugin:
65
+ </td>
66
+ </tr>
67
+ </table>
49
68
 
50
- **Project memory accumulation**
51
- Architectural decisions, conventions, and resolved discussions are stored as structured context.
69
+ <div align="center">
52
70
 
53
- **Pattern reinforcement**
54
- Repeated approvals, refactors, and preferred solutions gradually shape how future prompts are constructed.
71
+ **💡 Try it yourself:**
55
72
 
56
- • **Task-type differentiation**
57
- Review, debugging, refactoring, and design tasks are handled with different internal prompting strategies.
73
+ ```bash
74
+ # In Claude Code/Cursor
75
+ buddy-help # See all commands
76
+ buddy-do "explain how CCB works" # Watch it intelligently respond
77
+ buddy-remember "project decisions" # Query your project memory
78
+ ```
58
79
 
59
- **Context reuse, not repetition**
60
- Relevant memory is selectively injected, avoiding prompt bloat while preserving continuity.
80
+ **📖 [Read User Guide](docs/USER_GUIDE.md)** **🔧 [API Reference](docs/api/API_REFERENCE.md)**
61
81
 
62
- Over time, Claude Code responses become:
63
- • more aligned with your conventions
64
- • more consistent across sessions
65
- • less dependent on verbose prompts
82
+ </div>
66
83
 
67
- This is *behavioral evolution through system memory and routing*, not model fine-tuning.
84
+ </div>
68
85
 
69
86
  ---
70
87
 
71
- ## See It In Action
88
+ ## 🤔 The Problem
72
89
 
73
- **Without CCB:**
90
+ You know this pain:
74
91
 
75
92
  ```
76
- You: "Optimize this database query"
77
- Claude: [Generic advice about indexes and query structure]
93
+ Session 1: "Let me explain our architecture..."
94
+ Session 2: "As I mentioned before, our architecture..."
95
+ Session 3: "Like I said earlier, our architecture..."
96
+ Session 4: 😤
78
97
  ```
79
98
 
80
- **With CCB:**
81
-
82
- ```
83
- You: "Optimize this database query"
84
-
85
- CCB analyzes: Database optimization task
86
- CCB routes to: database optimization capability
87
- CCB enhances prompt with: DB best practices, indexing strategies, profiling techniques
88
-
89
- Claude: [Specific optimization for YOUR database setup, with actual query examples
90
- and performance benchmarks based on your schema]
91
- ```
92
-
93
- **The difference:** CCB knows your stack, remembers your schema, and delivers targeted expertise.
99
+ **Every. Single. Session.**
94
100
 
95
101
  ---
96
102
 
97
- ## How to Use CCB
98
-
99
- After installation, CCB works **two ways**:
100
-
101
- ### 🔄 Automatic Mode (Just Talk Normally)
103
+ ## The Solution
102
104
 
103
- CCB enhances your requests automatically in the background. No special commands needed:
104
-
105
- ```
106
- You: "Review this code for security issues"
107
-
108
- CCB automatically:
109
- • Detects task type → code review
110
- • Routes to → security review capability
111
- • Enhances prompt with → security checklist, best practices
112
-
113
- Claude responds with specialized security expertise
114
- ```
105
+ <table>
106
+ <tr>
107
+ <td width="50%" valign="top">
115
108
 
116
- **Just use Claude Code as usual** - CCB works invisibly to improve responses.
109
+ ### **Before CCB**
117
110
 
118
- ### 🎮 Buddy Commands (Explicit Control)
111
+ - Re-explain architecture every session
112
+ - Answer same questions repeatedly
113
+ - Forget design decisions overnight
114
+ - Write similar prompts over and over
115
+ - Claude has amnesia 🤕
119
116
 
120
- Use these commands when you want specific CCB features:
117
+ </td>
118
+ <td width="50%" valign="top">
121
119
 
122
- | Command | What It Does | Example |
123
- |---------|--------------|---------|
124
- | `buddy-do` | Execute task with smart routing | `buddy-do "setup user authentication"` |
125
- | `buddy-remember` | Search project memory | `buddy-remember "why did we choose PostgreSQL"` |
126
- | `buddy-help` | Get help on any command | `buddy-help remember` |
120
+ ### **After CCB**
127
121
 
128
- ### 💾 Project Memory
122
+ - **Remembers** project architecture
123
+ - **Recalls** past decisions instantly
124
+ - **Organizes** knowledge automatically
125
+ - **Routes** tasks intelligently
126
+ - Claude becomes your AI teammate 🤝
129
127
 
130
- Project memory is captured automatically as you work. Use `buddy-remember` to recall key decisions and recent progress.
131
-
132
- Project memory is automatic. Use `buddy-remember` to recall decisions, patterns, and recent work.
133
-
134
- ### 📋 Quick Reference Card
135
-
136
- ```
137
- ┌─────────────────────────────────────────────────────────────┐
138
- │ CCB QUICK REFERENCE │
139
- ├─────────────────────────────────────────────────────────────┤
140
- │ 🔄 AUTOMATIC (just talk normally) │
141
- │ • "Review this code" → routes to code review │
142
- │ • "Debug this error" → routes to debugging │
143
- │ • "Design a component" → routes to UI design │
144
- ├─────────────────────────────────────────────────────────────┤
145
- │ 🎮 BUDDY COMMANDS │
146
- │ buddy-do "task" Execute with smart routing │
147
- │ buddy-remember "query" Search project memory │
148
- │ buddy-help [command] Get help │
149
- ├─────────────────────────────────────────────────────────────┤
150
- │ 🧭 WORKFLOW │
151
- │ get-session-health Check context health │
152
- │ get-workflow-guidance Get next-step recommendations │
153
- │ generate-smart-plan Create implementation plans │
154
- └─────────────────────────────────────────────────────────────┘
155
- ```
128
+ </td>
129
+ </tr>
130
+ </table>
156
131
 
157
132
  ---
158
133
 
159
- ## Key Features
160
-
161
- ### ✨ Automatic Expertise Routing
162
-
163
- CCB routes requests to internal specialists based on capability signals. You describe intent, CCB handles routing.
134
+ ## 🎯 Core Features
164
135
 
165
- **Capabilities include:**
166
- - Code review, security audits, and best-practice validation
167
- - Debugging and root-cause analysis
168
- - Refactoring and technical debt reduction
169
- - API design, backend architecture, and database optimization
170
- - Testing strategy and generation
171
- - Performance profiling and optimization
172
- - UI/UX design and technical writing
173
- - Research, product, and planning support
136
+ ### 1. 🧠 **Project Memory That Actually Works**
174
137
 
175
- ### 💾 Memory Systems
176
-
177
- **Knowledge Graph**
178
-
179
- ```
180
- You: "Why did we choose this architecture?"
181
- CCB: [Recalls the decision, the alternatives considered, and the tradeoffs]
182
- ```
183
-
184
- **Project Context**
138
+ ```bash
139
+ # Session 1 (Last week)
140
+ You: "We chose PostgreSQL for JSONB support"
185
141
 
142
+ # Session 42 (Today)
143
+ You: buddy-remember "why PostgreSQL?"
144
+ CCB: "Based on your decision from 2024-01-15: PostgreSQL was
145
+ chosen for JSONB support and advanced query capabilities..."
186
146
  ```
187
- CCB remembers:
188
- - Your coding standards
189
- - Naming conventions
190
- - Project-specific patterns
191
- - What you've already built
192
- ```
193
-
194
- ### 🎯 Capability Guidance & Prompt Focus
195
-
196
- CCB analyzes task complexity and routes to the right internal capability, shaping prompts for reviews, debugging, planning, or UI/UX work.
197
-
198
- **How it works**: TaskAnalyzer examines your request → Estimates complexity (1-10) → Routes to the best capability profile → You get focused guidance without over-tuning prompts.
199
147
 
200
- **Real example**: "Fix this typo" gets a fast, minimal path, while "Design authentication system" gets a structured architecture workflow and risk checklist.
148
+ **Claude remembers. Forever.**
201
149
 
202
- ### 🤝 User-Friendly Commands
150
+ ### 2. 🎯 **Smart Task Routing (Autopilot Mode)**
203
151
 
204
152
  ```bash
205
- # Simple commands that just work
206
- buddy-do "setup authentication"
207
- buddy-do "optimize this database query"
208
- buddy-remember "how we implemented login"
209
- buddy-help
153
+ You: "Review this code"
154
+ CCB: *Detects task type*
155
+ *Activates code review mode*
156
+ *Applies best practices*
157
+ *Delivers structured review*
210
158
  ```
211
159
 
212
- ### 🔄 Intelligent Workflow Guidance
160
+ **No more "how should I do this?" Just do it.**
213
161
 
214
- **CCB knows what's next.** After you write code, it suggests running tests. After tests pass, it suggests code review. No manual thinking required.
162
+ ### 3. 💬 **Dead Simple Commands**
215
163
 
216
- ```
217
- You write code → CCB: "Code looks good! Run tests next?"
218
- Tests pass → CCB: "Tests green! Ready for code review?"
219
- Review done → CCB: "Review complete! Commit and push?"
164
+ ```bash
165
+ buddy-do "setup authentication" # Execute any dev task
166
+ buddy-remember "API design" # Query project memory
167
+ buddy-help # When stuck
220
168
  ```
221
169
 
222
- **Workflow tools:**
170
+ **Three commands. Infinite possibilities.**
223
171
 
224
- - `get-workflow-guidance` - Get next-step recommendations
225
- - `get-session-health` - Check session health status
172
+ ---
226
173
 
227
- **Benefits:** Never wonder "what should I do next?" - CCB guides you through the complete development flow.
174
+ ## 🚀 2-Minute Quick Start
228
175
 
229
- ### 📋 Smart Implementation Planning
176
+ ### Step 1: Install (Choose Your IDE)
230
177
 
231
- **Break down complex features into bite-sized tasks.** CCB generates TDD-structured plans with capability-aware task breakdown.
178
+ <details>
179
+ <summary><strong>🎯 Cursor Users</strong> (Click to expand)</summary>
232
180
 
181
+ Just click this magic link:
233
182
  ```
234
- You: "Plan implementation for user authentication"
235
- CCB: [Generates step-by-step plan with:
236
- - Test-first approach
237
- - 2-5 minute tasks
238
- - Right capability for each task
239
- - Clear success criteria]
240
- ```
241
-
242
- **Planning tool:**
243
-
244
- - `generate-smart-plan` - Create intelligent implementation plans
245
-
246
- ### 🔒 Security & Reliability
247
-
248
- **Built with security and stability as core principles.**
249
-
250
- **Security Hardening:**
251
- - ✅ **API Key Validation**: Comprehensive format validation prevents runtime failures
252
- - ✅ **Input Sanitization**: Blocks NaN, Infinity, and malicious input values (DoS prevention)
253
- - ✅ **SQL Injection Protection**: Pure parameterization with JSON functions (no string concatenation)
254
- - ✅ **Logging Sanitization**: 50+ patterns to redact API keys, tokens, credentials, PII from logs
255
- - ✅ **Path Traversal Prevention**: Validates database paths, resolves symlinks, enforces directory boundaries
256
- - ✅ **Zero Vulnerabilities**: Regular `npm audit` with immediate dependency updates
257
-
258
- **Reliability:**
259
- - ✅ **1226 Tests Passing**: Comprehensive test coverage across all components
260
- - ✅ **Timer Leak Prevention**: Proper cleanup in all async operations
261
- - ✅ **Race Condition Protection**: Systematic concurrency testing and prevention
262
- - ✅ **Graceful Error Handling**: Detailed error messages with recovery suggestions
263
-
264
- **Latest Security Audit (v2.3.5):**
265
- ```bash
266
- npm audit
267
- # Result: 0 vulnerabilities found ✅
183
+ cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL2NsYXVkZS1jb2RlLWJ1ZGR5LW1jcCJdfQ==
268
184
  ```
269
185
 
270
- ---
271
-
272
- ## Quick Start (2 Minutes)
186
+ **Done.** Restart Cursor and you're ready.
273
187
 
274
- ### 🚀 One-Click Installation
188
+ </details>
275
189
 
276
- #### For Cursor Users
190
+ <details>
191
+ <summary><strong>⚡ Claude Code Users</strong> (Click to expand)</summary>
277
192
 
278
- <a href="cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL2NsYXVkZS1jb2RlLWJ1ZGR5LW1jcCJdfQ==">
279
- <img src="https://cursor.com/deeplink/mcp-install-dark.png" alt="Add to Cursor" />
280
- </a>
193
+ Add this to `~/.claude/mcp_settings.json`:
281
194
 
282
- **Click the button above or paste this link in your browser:**
283
- ```
284
- cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL2NsYXVkZS1jb2RlLWJ1ZGR5LW1jcCJdfQ==
285
- ```
286
-
287
- #### For VS Code / Claude Code Users
288
-
289
- **Quick MCP Configuration** (add to `~/.claude/mcp_settings.json`):
290
195
  ```json
291
196
  {
292
197
  "mcpServers": {
@@ -298,329 +203,289 @@ cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-m
298
203
  }
299
204
  ```
300
205
 
301
- Then restart Claude Code and start using CCB!
302
-
303
- **📖 Detailed installation guide**: See [QUICK_INSTALL.md](docs/QUICK_INSTALL.md)
304
-
305
- ### 🔧 Process Management (Optional)
206
+ **Restart Claude Code** and you're golden.
306
207
 
307
- CCB MCP server runs as a background process for each Claude Code CLI session. Normally, this is transparent and requires no action. However, you may want to manage processes when:
208
+ </details>
308
209
 
309
- - Upgrading to a new version
310
- - Debugging connection issues
311
- - Cleaning up orphaned processes
210
+ ### Step 2: Test It
312
211
 
313
- **Quick Commands:**
314
212
  ```bash
315
- # List all CCB MCP processes
316
- npm run processes:list
317
-
318
- # Check for orphaned processes
319
- npm run processes:orphaned
213
+ # In Claude Code/Cursor, type:
214
+ buddy-help
320
215
 
321
- # Clean up all CCB MCP processes
322
- npm run processes:kill
216
+ # You should see CCB's command list
217
+ # Now try:
218
+ buddy-do "explain CCB features"
323
219
 
324
- # Check MCP configuration
325
- npm run processes:config
220
+ # Watch the magic happen ✨
326
221
  ```
327
222
 
328
- **📖 Detailed process management guide**: See [MCP_PROCESS_MANAGEMENT.md](docs/MCP_PROCESS_MANAGEMENT.md)
223
+ **🎉 That's it! You're vibing now.**
329
224
 
330
- ---
225
+ 📖 **Need help?** [Detailed installation guide](docs/QUICK_INSTALL.md) | [Troubleshooting](docs/TROUBLESHOOTING.md)
331
226
 
332
- ### Prerequisites
227
+ ---
333
228
 
334
- - Node.js 20+ ([download](https://nodejs.org/))
335
- - Claude Code installed ([get it here](https://claude.com/claude-code)) or Cursor IDE
229
+ ## 💡 Real-World Usage
336
230
 
337
- ### Manual Installation (Alternative)
231
+ ### Scenario 1: **Building a New Feature**
338
232
 
339
233
  ```bash
340
- # 1. Clone the repository
341
- git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
342
- cd claude-code-buddy
234
+ You: buddy-do "create a real-time chat with WebSocket"
343
235
 
344
- # 2. Run the interactive installer (it handles everything)
345
- ./scripts/install.sh
346
- ```
236
+ CCB analyzes your project...
237
+ 🔍 Detected: React + Node.js + Express
238
+ 🧠 Recalled: Your preference for TypeScript strict mode
239
+ 📝 Applying: Error boundaries pattern from LoginPage.tsx
347
240
 
348
- The installer guides you through **9 interactive steps**:
241
+ Generated:
242
+ ├─ server/chat.ts (WebSocket server)
243
+ ├─ components/ChatWindow.tsx (React component)
244
+ └─ hooks/useWebSocket.ts (Custom hook)
349
245
 
350
- **Core Setup (Steps 1-7)**:
246
+ 💾 Saved to memory: "WebSocket chat architecture - 2024-01-20"
247
+ ```
351
248
 
352
- - Check prerequisites (Node.js 20+, npm; git optional)
353
- - ✓ Install dependencies
354
- - ✓ Build the project
355
- - ✓ Check system resources
356
- - ✓ Configure environment
357
- - ✓ Configure Claude Code MCP integration
358
- - ✓ Test installation
249
+ ### Scenario 2: **"Wait, Why Did We Do That?"**
359
250
 
360
- **Interactive Demos (Steps 8-9)**:
251
+ ```bash
252
+ You: buddy-remember "authentication approach"
361
253
 
362
- - 📚 **Step 8: Basic Usage Demo** - Learn about CCB's smart routing, example prompts, and memory features
363
- - ✅ **Step 9: MCP Verification** - Confirm the MCP server is reachable
254
+ CCB searches knowledge graph...
364
255
 
365
- **No API keys needed in MCP server mode** - uses your existing Claude Code subscription.
256
+ 📚 Found 3 related memories:
366
257
 
367
- **Optional configuration** (only if you want to change defaults):
368
- ```bash
369
- cp .env.example .env
370
- # For standalone orchestrator usage:
371
- # MCP_SERVER_MODE=false
372
- # ANTHROPIC_API_KEY=your_key_here
373
- # Optional guidance modes:
374
- # BEGINNER_MODE=true
375
- # EVIDENCE_MODE=true
258
+ ┌─ 2024-01-15: Initial Auth Decision
259
+ │ 💬 "JWT chosen over sessions for stateless API"
260
+ │ ⚡ Reasoning: Mobile app compatibility
261
+
262
+ ├─ 2024-01-18: Token Expiry Implementation
263
+ │ 💻 Code: auth/middleware.ts:42-67
264
+ │ 🔧 Access: 15min | Refresh: 7 days
265
+
266
+ └─ 2024-01-22: Security Enhancement
267
+ 🛡️ Added: Rate limiting + Token rotation
268
+ 📝 Prevented: Token reuse vulnerability
376
269
  ```
377
270
 
378
- ### Start Using It
379
-
380
- Restart Claude Code, then try:
271
+ ### Scenario 3: **Continuous Development Flow**
381
272
 
382
273
  ```
383
- "Analyze my codebase architecture"
384
- "Generate tests for auth.ts"
385
- "Review this code for security issues"
386
- "Optimize this database query"
274
+ Day 1 │ You: "Implement user login"
275
+ │ CCB: Created + 💾 Remembered
276
+
277
+ Day 5 │ You: "Add password reset"
278
+ │ CCB: 🧠 "I see you use JWT tokens..."
279
+ │ ✅ Integrated seamlessly
280
+
281
+ Day 10│ You: "Add OAuth support"
282
+ │ CCB: 🧠 "Based on your JWT + password reset..."
283
+ │ ✅ Consistent with existing auth
284
+
285
+ Week 8│ You: "Why did we choose JWT again?"
286
+ │ CCB: 📚 *Instant recall from Day 1*
387
287
  ```
388
288
 
389
- CCB automatically routes tasks to the right capability and enhances prompts with relevant context.
289
+ **No context re-explanation. Ever again.**
390
290
 
391
291
  ---
392
292
 
393
- ## How It Works
394
-
395
- ```
396
- Your Request
397
-
398
- CCB analyzes the task
399
-
400
- Routes to best capability type (e.g., code review, debugging)
401
-
402
- Enhances prompt with specialized context
403
-
404
- Claude Code executes with your subscription
405
-
406
- System learns from your choices (when you override recommendations)
407
- ```
408
-
409
- **Under the hood:**
293
+ ## 📊 Why CCB vs. Others?
410
294
 
411
- - **Curated internal specialists** handle routing and prompt construction
412
- - **Smart routing** analyzes task complexity and automatically selects the right Claude model
413
- - **Evolution system** learns from your choices and continuously improves recommendations
414
-
415
- **Technical deep dive:** See [docs/README.md](docs/README.md)
295
+ | Feature | Plain Claude Code | Other MCP Tools | CCB |
296
+ |---------|-------------------|-----------------|-----|
297
+ | **Persistent Memory** | | ⚠️ Basic | **Full Knowledge Graph** |
298
+ | **Smart Routing** | ❌ | ❌ | ✅ **Auto-detects task type** |
299
+ | **Vibe Coding Optimized** | ⚠️ | ❌ | ✅ **Built for it** |
300
+ | **Zero Setup** | ✅ | ⚠️ Complex | ✅ **2 minutes** |
301
+ | **Free & Open Source** | ✅ | ⚠️ Varies | ✅ **AGPL-3.0** |
416
302
 
417
303
  ---
418
304
 
419
- ## What CCB Does Well ✅
305
+ ## 🛠️ Advanced Features
420
306
 
421
- - **Makes Claude Code context-aware** for your specific project
422
- - **Reduces repetitive prompting** through intelligent task routing
423
- - **Remembers between sessions** with persistent memory systems (Knowledge Graph + Project Context)
424
- - **Provides specialized expertise** without you writing expert prompts
425
- - **Keeps responses focused** by routing to the right capability for each task
426
- - **Learns from your choices** when you override recommendations
427
- - **Guides your workflow** with intelligent next-step recommendations
428
- - **Reduces hallucinations** with evidence-first prompting and explicit assumptions
429
- - **Coordinates complex workflows** across multiple steps
430
- - **Cross-platform support** works seamlessly on Windows, macOS, and Linux
431
- - **Production-ready** with comprehensive testing, security hardening, and resource protection
307
+ <details>
308
+ <summary><strong>Auto-Memory System</strong></summary>
432
309
 
433
- ## Honest Limitations ⚠️
310
+ When you use `buddy-do`, CCB automatically records:
311
+ - ✅ Task goals and outcomes
312
+ - ✅ Technical decisions and reasoning
313
+ - ✅ Errors encountered and solutions
314
+ - ✅ Development milestones
434
315
 
435
- - **Not magic** - Still needs clear requirements from you
436
- - **Not a replacement for learning** - You should understand what you're building
437
- - **Enhances Claude Code, doesn't replace it** - Works alongside your existing setup
438
- - **Requires setup** - 2-minute install, not one-click (yet)
439
- - **Early stage (v2.2)** - Expect rough edges, but actively improving
440
- - **Limited by Claude's capabilities** - Can't make Claude do impossible things
316
+ **You don't think about memory. CCB does.**
441
317
 
442
- **Philosophy:** We're honest about what works and what doesn't. If something doesn't work for you, let us know - that feedback makes it better for everyone.
318
+ </details>
443
319
 
444
- ---
320
+ <details>
321
+ <summary><strong>Multi-Project Support</strong></summary>
445
322
 
446
- ## Use Cases
323
+ Each project gets its own isolated memory space.
447
324
 
448
- ### Code Review
325
+ ```bash
326
+ cd ~/project-A
327
+ buddy-remember "auth" # Returns project-A's auth decisions
449
328
 
450
- ```
451
- "Review this PR for security vulnerabilities and code quality"
452
- → Routes to code review capability
453
- → Gets security checklist + quality standards
454
- → Returns detailed review with specific recommendations
329
+ cd ~/project-B
330
+ buddy-remember "auth" # Returns project-B's auth decisions
455
331
  ```
456
332
 
457
- ### Debugging
333
+ **No cross-contamination. Ever.**
458
334
 
459
- ```
460
- "This function crashes with undefined, help debug"
461
- → Routes to debugging capability
462
- → Gets systematic debugging methodology
463
- → Walks through root cause analysis step-by-step
464
- ```
335
+ </details>
465
336
 
466
- ### Frontend Design
337
+ <details>
338
+ <summary><strong>17 MCP Standard Tools</strong></summary>
467
339
 
468
- ```
469
- "Design a responsive dashboard with dark mode"
470
- → Routes to UI design capability
471
- → Gets UI/UX patterns + accessibility guidelines
472
- → Returns complete design with responsive breakpoints
473
- ```
340
+ Full integration with Model Context Protocol.
474
341
 
475
- ### Database Optimization
342
+ See complete list: [ToolDefinitions.ts](src/mcp/ToolDefinitions.ts)
476
343
 
477
- ```
478
- "This Prisma query takes 2 seconds, optimize it"
479
- → Routes to database optimization capability
480
- → Gets query optimization patterns + indexing strategies
481
- → Returns optimized query with performance benchmarks
482
- ```
344
+ </details>
483
345
 
484
346
  ---
485
347
 
486
- ## Advanced Features
348
+ ## 🧪 Technical Details
487
349
 
488
- - **Custom Skills** - Write your own routing behaviors in TypeScript
489
- - **Multi-step Planning** - Break down complex tasks into executable plans
490
- - **Workflow Coordination** - Automatic checkpoint detection and next-step suggestions
491
- - **Dashboard** - Real-time metrics, session health monitoring, performance tracking
350
+ <table>
351
+ <tr>
352
+ <td width="50%">
492
353
 
493
- **Explore:** See [docs/](docs/) for detailed guides on each feature.
354
+ ### Requirements
355
+ - Node.js 20+
356
+ - Claude Code or Cursor IDE
357
+ - 5 minutes of your time
494
358
 
495
- ---
359
+ </td>
360
+ <td width="50%">
496
361
 
497
- ## Technical Specifications
362
+ ### Platform Support
363
+ - ✅ **Claude 4.5** (Haiku/Sonnet/Opus)
364
+ - ✅ **MCP SDK 1.25.3**
365
+ - ✅ Windows, macOS, Linux
498
366
 
499
- ### Claude 4.5 Model Support
367
+ </td>
368
+ </tr>
369
+ </table>
500
370
 
501
- CCB fully supports the latest Claude 4.5 model family:
371
+ ### 🔒 Security First
502
372
 
503
- - **Claude Haiku 4.5** (claude-haiku-4-5-20251015) - Fast responses for simple tasks
504
- - Pricing: $1.00 input / $5.00 output per MTok
505
- - Use case: Quick queries, simple refactors, code formatting
373
+ - **100% Local Processing** - Your data never leaves your machine
374
+ - **No External API Calls** - Uses your Claude Code subscription
375
+ - **npm audit: 0 vulnerabilities**
376
+ - ✅ **Open Source** - Audit the code yourself
506
377
 
507
- - **Claude Sonnet 4.5** (claude-sonnet-4-5-20250929) - Balanced performance for daily development
508
- - Use case: Code generation, testing, moderate complexity tasks
378
+ ---
509
379
 
510
- - **Claude Opus 4.5** (claude-opus-4-5-20251101) - Deep reasoning for complex challenges
511
- - Use case: Architecture design, complex debugging, creative problem-solving
380
+ ## 🤝 Contributing
512
381
 
513
- **Smart Model Selection:** CCB automatically selects the appropriate model based on task complexity, optimizing for both quality and cost.
382
+ We'd love your help making CCB better!
514
383
 
515
- ### MCP Specification Compliance
384
+ - 🐛 **Found a bug?** [Open an issue](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new)
385
+ - 💡 **Have an idea?** [Start a discussion](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
386
+ - 🛠️ **Want to code?** Check [Good First Issues](https://github.com/PCIRCLE-AI/claude-code-buddy/labels/good%20first%20issue)
516
387
 
517
- **Full compliance with MCP Specification 2025-11-25**
388
+ **Contributing Guide**: [CONTRIBUTING.md](docs/CONTRIBUTING.md)
518
389
 
519
- All MCP tools include:
520
- - **Tool Annotations**: `readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`
521
- - **Output Schemas**: Structured JSON schemas for type-safe responses
522
- - **Runtime Validation**: Automatic validation of tool inputs and outputs
390
+ ---
523
391
 
524
- **7 MCP Tools Available:**
525
- 1. `buddy-do` - Smart task execution with capability routing
526
- 2. `buddy-remember` - Project memory recall
527
- 3. `buddy-help` - Command documentation
528
- 4. `get-session-health` - Session monitoring and diagnostics
529
- 5. `get-workflow-guidance` - Intelligent workflow recommendations
530
- 6. `generate-smart-plan` - Implementation plan generation
531
- 7. `hook-tool-use` - Tool usage event tracking
392
+ ## 📚 Documentation
532
393
 
533
- See [src/mcp/ToolDefinitions.ts](src/mcp/ToolDefinitions.ts) for complete tool specifications.
394
+ - 📖 [Full Documentation](docs/)
395
+ - 🚀 [Quick Install Guide](docs/QUICK_INSTALL.md)
396
+ - 📘 [User Guide](docs/USER_GUIDE.md)
397
+ - 🛠️ [API Reference](docs/api/API_REFERENCE.md)
398
+ - ❓ [Troubleshooting](docs/TROUBLESHOOTING.md)
534
399
 
535
400
  ---
536
401
 
537
- ## Community & Support
402
+ ## FAQ
538
403
 
539
- - **Documentation**: [docs/](docs/) folder + this README
540
- - **Issues**: [GitHub Issues](https://github.com/PCIRCLE-AI/claude-code-buddy/issues)
541
- - **Discussions**: [GitHub Discussions](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
542
- - **Contributing**: [CONTRIBUTING.md](docs/CONTRIBUTING.md)
404
+ <details>
405
+ <summary><strong>Q: Does it cost money?</strong></summary>
543
406
 
544
- **Questions?** Open an issue or start a discussion - we're here to help.
407
+ **A:** Nope. 100% free and open source (AGPL-3.0). Uses your existing Claude Code subscription.
545
408
 
546
- ---
409
+ </details>
547
410
 
548
- ## Development
411
+ <details>
412
+ <summary><strong>Q: Is my data safe?</strong></summary>
549
413
 
550
- ```bash
551
- # Run tests (292 test files covering core functionality)
552
- npm test
414
+ **A:** Yes. Everything processed locally. Zero external API calls. Zero data upload.
553
415
 
554
- # Development mode with auto-reload
555
- npm run dev
416
+ </details>
556
417
 
557
- # Build for production
558
- npm run build
418
+ <details>
419
+ <summary><strong>Q: How is this different from plain Claude Code?</strong></summary>
559
420
 
560
- # View performance dashboard
561
- npm run dashboard
562
- ```
421
+ **A:** CCB adds two superpowers:
422
+ 1. **Persistent Memory** - Claude remembers your project across sessions
423
+ 2. **Smart Routing** - Automatically detects and handles different task types
563
424
 
564
- **Contributing:** We welcome contributions! See [CONTRIBUTING.md](docs/CONTRIBUTING.md) for guidelines.
425
+ Think of it as Claude Code + a really good memory + autopilot mode.
565
426
 
566
- **Project Structure:** See [docs/README.md](docs/README.md) for a documentation map.
427
+ </details>
567
428
 
568
- ---
429
+ <details>
430
+ <summary><strong>Q: Can I customize it?</strong></summary>
569
431
 
570
- ## FAQ
432
+ **A:** Absolutely. Prompt templates in `src/core/PromptEnhancer.ts`.
571
433
 
572
- **Q: Do I need to be a developer to use this?**
573
- A: If you can use Claude Code, you can use CCB. It's designed to make Claude easier, not harder.
434
+ Want deeper customization? Fork it, hack it, make it yours. That's the open source way.
574
435
 
575
- **Q: Does this cost extra on top of Claude Code?**
576
- A: No - CCB uses your existing Claude Code subscription. It helps optimize token usage within your session limits, not API costs.
436
+ </details>
577
437
 
578
- **Q: How is this different from just using Claude Code?**
579
- A: Claude Code treats every task the same. CCB adds task-specific expertise, memory, and learning.
438
+ <details>
439
+ <summary><strong>Q: Does it work with Cursor?</strong></summary>
580
440
 
581
- **Q: Is my code private?**
582
- A: Yes. Everything runs locally through your Claude Code subscription. CCB does not require external AI services.
441
+ **A:** Yes! Cursor has native MCP support. One-click install.
442
+
443
+ </details>
444
+
445
+ ---
583
446
 
584
- **Q: What if I don't like it?**
585
- A: Remove it from your MCP config. No lock-in, no vendor dependency.
447
+ ## 🙏 Acknowledgments
586
448
 
587
- **Q: How much does it cost?**
588
- A: CCB is free and open-source (AGPL-3.0). It works with your existing Claude Code subscription.
449
+ Built on the shoulders of giants:
589
450
 
590
- **Q: Can I customize routing behavior?**
591
- A: Absolutely! Prompt templates are in `src/core/PromptEnhancer.ts`. Evolution config in `src/evolution/AgentEvolutionConfig.ts`.
451
+ - [Model Context Protocol (MCP)](https://github.com/anthropics/mcp) - The foundation
452
+ - [Claude Code](https://claude.com/claude-code) - The platform
453
+ - All our amazing [contributors](https://github.com/PCIRCLE-AI/claude-code-buddy/graphs/contributors) and early testers
592
454
 
593
455
  ---
594
456
 
595
- ## License
457
+ ## 📄 License
596
458
 
597
- **AGPL-3.0 License** - see [LICENSE](LICENSE) file for details.
459
+ **AGPL-3.0** - See [LICENSE](LICENSE)
598
460
 
599
- This is free and open-source software. If you modify and deploy this as a network service, you must make the source code available to users.
461
+ *This means: Use it, modify it, share it. But keep it open source.*
600
462
 
601
463
  ---
602
464
 
603
- ## Acknowledgments
465
+ ## 🌟 Star History
604
466
 
605
- - Built with [Model Context Protocol (MCP)](https://github.com/anthropics/mcp)
606
- - Works with [Claude Code](https://claude.com/claude-code)
607
- - Inspired by the Claude Code community
608
- - Thanks to all contributors and early testers
609
-
610
- **Disclaimer:** This is an independent open-source project and is not affiliated with, endorsed by, or officially connected to Anthropic PBC or its products (including Claude and Claude Code). Claude Code Buddy is a third-party tool designed to integrate with Claude Code.
467
+ [![Star History Chart](https://api.star-history.com/svg?repos=PCIRCLE-AI/claude-code-buddy&type=Date)](https://star-history.com/#PCIRCLE-AI/claude-code-buddy&Date)
611
468
 
612
469
  ---
613
470
 
614
471
  <div align="center">
615
472
 
616
- **Built with ❤️ by developers, for developers.**
473
+ ### **Built by developers, for developers**
474
+
475
+ **Stop repeating yourself. Start vibing.**
476
+
477
+ [🚀 Get Started](#-2-minute-quick-start) • [📖 Read the Docs](docs/) • [💬 Join the Discussion](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
617
478
 
618
- **Make Claude Code smarter, not louder.**
479
+ ---
480
+
481
+ ### ⭐ **If CCB saved you time today, give it a star!**
619
482
 
620
- [Get Started](#quick-start-2-minutes) [Documentation](docs/) [Report Issue](https://github.com/PCIRCLE-AI/claude-code-buddy/issues) • [Join Discussion](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
483
+ It helps others discover this tool.
621
484
 
622
485
  ---
623
486
 
624
- **Star this repo if CCB makes your development life easier!**
487
+ **Not affiliated with Anthropic PBC** Independent open-source project
488
+
489
+ **Languages:** [English](README.md) • [繁體中文](README.zh-TW.md)
625
490
 
626
491
  </div>