0agent 1.0.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 (443) hide show
  1. package/README.md +164 -0
  2. package/bin/0agent.js +614 -0
  3. package/package.json +59 -0
  4. package/packages/core/dist/bootstrap/BootstrapProtocol.d.ts +37 -0
  5. package/packages/core/dist/bootstrap/BootstrapProtocol.d.ts.map +1 -0
  6. package/packages/core/dist/bootstrap/BootstrapProtocol.js +82 -0
  7. package/packages/core/dist/bootstrap/BootstrapProtocol.js.map +1 -0
  8. package/packages/core/dist/bootstrap/GraphConstructor.d.ts +44 -0
  9. package/packages/core/dist/bootstrap/GraphConstructor.d.ts.map +1 -0
  10. package/packages/core/dist/bootstrap/GraphConstructor.js +160 -0
  11. package/packages/core/dist/bootstrap/GraphConstructor.js.map +1 -0
  12. package/packages/core/dist/bootstrap/HypothesisManager.d.ts +50 -0
  13. package/packages/core/dist/bootstrap/HypothesisManager.d.ts.map +1 -0
  14. package/packages/core/dist/bootstrap/HypothesisManager.js +108 -0
  15. package/packages/core/dist/bootstrap/HypothesisManager.js.map +1 -0
  16. package/packages/core/dist/bootstrap/StagedMutations.d.ts +50 -0
  17. package/packages/core/dist/bootstrap/StagedMutations.d.ts.map +1 -0
  18. package/packages/core/dist/bootstrap/StagedMutations.js +80 -0
  19. package/packages/core/dist/bootstrap/StagedMutations.js.map +1 -0
  20. package/packages/core/dist/concurrency/EdgeWeightUpdater.d.ts +16 -0
  21. package/packages/core/dist/concurrency/EdgeWeightUpdater.d.ts.map +1 -0
  22. package/packages/core/dist/concurrency/EdgeWeightUpdater.js +57 -0
  23. package/packages/core/dist/concurrency/EdgeWeightUpdater.js.map +1 -0
  24. package/packages/core/dist/concurrency/SessionSnapshot.d.ts +63 -0
  25. package/packages/core/dist/concurrency/SessionSnapshot.d.ts.map +1 -0
  26. package/packages/core/dist/concurrency/SessionSnapshot.js +124 -0
  27. package/packages/core/dist/concurrency/SessionSnapshot.js.map +1 -0
  28. package/packages/core/dist/embedding/HNSWIndex.d.ts +37 -0
  29. package/packages/core/dist/embedding/HNSWIndex.d.ts.map +1 -0
  30. package/packages/core/dist/embedding/HNSWIndex.js +86 -0
  31. package/packages/core/dist/embedding/HNSWIndex.js.map +1 -0
  32. package/packages/core/dist/embedding/MultimodalEmbedder.d.ts +24 -0
  33. package/packages/core/dist/embedding/MultimodalEmbedder.d.ts.map +1 -0
  34. package/packages/core/dist/embedding/MultimodalEmbedder.js +75 -0
  35. package/packages/core/dist/embedding/MultimodalEmbedder.js.map +1 -0
  36. package/packages/core/dist/embedding/adapters/NomicAdapter.d.ts +7 -0
  37. package/packages/core/dist/embedding/adapters/NomicAdapter.d.ts.map +1 -0
  38. package/packages/core/dist/embedding/adapters/NomicAdapter.js +11 -0
  39. package/packages/core/dist/embedding/adapters/NomicAdapter.js.map +1 -0
  40. package/packages/core/dist/embedding/adapters/OllamaAdapter.d.ts +19 -0
  41. package/packages/core/dist/embedding/adapters/OllamaAdapter.d.ts.map +1 -0
  42. package/packages/core/dist/embedding/adapters/OllamaAdapter.js +27 -0
  43. package/packages/core/dist/embedding/adapters/OllamaAdapter.js.map +1 -0
  44. package/packages/core/dist/embedding/adapters/OpenAIAdapter.d.ts +14 -0
  45. package/packages/core/dist/embedding/adapters/OpenAIAdapter.d.ts.map +1 -0
  46. package/packages/core/dist/embedding/adapters/OpenAIAdapter.js +48 -0
  47. package/packages/core/dist/embedding/adapters/OpenAIAdapter.js.map +1 -0
  48. package/packages/core/dist/engine/CreditAttribution.d.ts +47 -0
  49. package/packages/core/dist/engine/CreditAttribution.d.ts.map +1 -0
  50. package/packages/core/dist/engine/CreditAttribution.js +196 -0
  51. package/packages/core/dist/engine/CreditAttribution.js.map +1 -0
  52. package/packages/core/dist/engine/DecayScheduler.d.ts +45 -0
  53. package/packages/core/dist/engine/DecayScheduler.d.ts.map +1 -0
  54. package/packages/core/dist/engine/DecayScheduler.js +115 -0
  55. package/packages/core/dist/engine/DecayScheduler.js.map +1 -0
  56. package/packages/core/dist/engine/InferenceEngine.d.ts +95 -0
  57. package/packages/core/dist/engine/InferenceEngine.d.ts.map +1 -0
  58. package/packages/core/dist/engine/InferenceEngine.js +242 -0
  59. package/packages/core/dist/engine/InferenceEngine.js.map +1 -0
  60. package/packages/core/dist/engine/SelectionPolicy.d.ts +29 -0
  61. package/packages/core/dist/engine/SelectionPolicy.d.ts.map +1 -0
  62. package/packages/core/dist/engine/SelectionPolicy.js +58 -0
  63. package/packages/core/dist/engine/SelectionPolicy.js.map +1 -0
  64. package/packages/core/dist/engine/SelfImprovementEngine.d.ts +58 -0
  65. package/packages/core/dist/engine/SelfImprovementEngine.d.ts.map +1 -0
  66. package/packages/core/dist/engine/SelfImprovementEngine.js +265 -0
  67. package/packages/core/dist/engine/SelfImprovementEngine.js.map +1 -0
  68. package/packages/core/dist/engine/SelfImprovementPrompt.d.ts +10 -0
  69. package/packages/core/dist/engine/SelfImprovementPrompt.d.ts.map +1 -0
  70. package/packages/core/dist/engine/SelfImprovementPrompt.js +193 -0
  71. package/packages/core/dist/engine/SelfImprovementPrompt.js.map +1 -0
  72. package/packages/core/dist/engine/WeightPropagation.d.ts +77 -0
  73. package/packages/core/dist/engine/WeightPropagation.d.ts.map +1 -0
  74. package/packages/core/dist/engine/WeightPropagation.js +101 -0
  75. package/packages/core/dist/engine/WeightPropagation.js.map +1 -0
  76. package/packages/core/dist/engine/WorkflowSuggestionEngine.d.ts +26 -0
  77. package/packages/core/dist/engine/WorkflowSuggestionEngine.d.ts.map +1 -0
  78. package/packages/core/dist/engine/WorkflowSuggestionEngine.js +54 -0
  79. package/packages/core/dist/engine/WorkflowSuggestionEngine.js.map +1 -0
  80. package/packages/core/dist/entity/AliasIndex.d.ts +39 -0
  81. package/packages/core/dist/entity/AliasIndex.d.ts.map +1 -0
  82. package/packages/core/dist/entity/AliasIndex.js +81 -0
  83. package/packages/core/dist/entity/AliasIndex.js.map +1 -0
  84. package/packages/core/dist/entity/ContextActivator.d.ts +53 -0
  85. package/packages/core/dist/entity/ContextActivator.d.ts.map +1 -0
  86. package/packages/core/dist/entity/ContextActivator.js +163 -0
  87. package/packages/core/dist/entity/ContextActivator.js.map +1 -0
  88. package/packages/core/dist/entity/EntityHierarchy.d.ts +48 -0
  89. package/packages/core/dist/entity/EntityHierarchy.d.ts.map +1 -0
  90. package/packages/core/dist/entity/EntityHierarchy.js +134 -0
  91. package/packages/core/dist/entity/EntityHierarchy.js.map +1 -0
  92. package/packages/core/dist/entity/EntityResolutionPipeline.d.ts +48 -0
  93. package/packages/core/dist/entity/EntityResolutionPipeline.d.ts.map +1 -0
  94. package/packages/core/dist/entity/EntityResolutionPipeline.js +221 -0
  95. package/packages/core/dist/entity/EntityResolutionPipeline.js.map +1 -0
  96. package/packages/core/dist/entity/MCPEnrichedResolver.d.ts +17 -0
  97. package/packages/core/dist/entity/MCPEnrichedResolver.d.ts.map +1 -0
  98. package/packages/core/dist/entity/MCPEnrichedResolver.js +19 -0
  99. package/packages/core/dist/entity/MCPEnrichedResolver.js.map +1 -0
  100. package/packages/core/dist/entity/NodeResolutionService.d.ts +46 -0
  101. package/packages/core/dist/entity/NodeResolutionService.d.ts.map +1 -0
  102. package/packages/core/dist/entity/NodeResolutionService.js +150 -0
  103. package/packages/core/dist/entity/NodeResolutionService.js.map +1 -0
  104. package/packages/core/dist/entity/PersonalityAccumulator.d.ts +41 -0
  105. package/packages/core/dist/entity/PersonalityAccumulator.d.ts.map +1 -0
  106. package/packages/core/dist/entity/PersonalityAccumulator.js +126 -0
  107. package/packages/core/dist/entity/PersonalityAccumulator.js.map +1 -0
  108. package/packages/core/dist/entity/PersonalityProfile.d.ts +31 -0
  109. package/packages/core/dist/entity/PersonalityProfile.d.ts.map +1 -0
  110. package/packages/core/dist/entity/PersonalityProfile.js +94 -0
  111. package/packages/core/dist/entity/PersonalityProfile.js.map +1 -0
  112. package/packages/core/dist/entity/index.d.ts +4 -0
  113. package/packages/core/dist/entity/index.d.ts.map +1 -0
  114. package/packages/core/dist/entity/index.js +4 -0
  115. package/packages/core/dist/entity/index.js.map +1 -0
  116. package/packages/core/dist/graph/GraphEdge.d.ts +37 -0
  117. package/packages/core/dist/graph/GraphEdge.d.ts.map +1 -0
  118. package/packages/core/dist/graph/GraphEdge.js +29 -0
  119. package/packages/core/dist/graph/GraphEdge.js.map +1 -0
  120. package/packages/core/dist/graph/GraphNode.d.ts +52 -0
  121. package/packages/core/dist/graph/GraphNode.d.ts.map +1 -0
  122. package/packages/core/dist/graph/GraphNode.js +41 -0
  123. package/packages/core/dist/graph/GraphNode.js.map +1 -0
  124. package/packages/core/dist/graph/GraphQuery.d.ts +46 -0
  125. package/packages/core/dist/graph/GraphQuery.d.ts.map +1 -0
  126. package/packages/core/dist/graph/GraphQuery.js +47 -0
  127. package/packages/core/dist/graph/GraphQuery.js.map +1 -0
  128. package/packages/core/dist/graph/KnowledgeGraph.d.ts +38 -0
  129. package/packages/core/dist/graph/KnowledgeGraph.d.ts.map +1 -0
  130. package/packages/core/dist/graph/KnowledgeGraph.js +345 -0
  131. package/packages/core/dist/graph/KnowledgeGraph.js.map +1 -0
  132. package/packages/core/dist/graph/SubGraph.d.ts +36 -0
  133. package/packages/core/dist/graph/SubGraph.d.ts.map +1 -0
  134. package/packages/core/dist/graph/SubGraph.js +86 -0
  135. package/packages/core/dist/graph/SubGraph.js.map +1 -0
  136. package/packages/core/dist/index.d.ts +54 -0
  137. package/packages/core/dist/index.d.ts.map +1 -0
  138. package/packages/core/dist/index.js +62 -0
  139. package/packages/core/dist/index.js.map +1 -0
  140. package/packages/core/dist/maintenance/CompactionOrchestrator.d.ts +22 -0
  141. package/packages/core/dist/maintenance/CompactionOrchestrator.d.ts.map +1 -0
  142. package/packages/core/dist/maintenance/CompactionOrchestrator.js +62 -0
  143. package/packages/core/dist/maintenance/CompactionOrchestrator.js.map +1 -0
  144. package/packages/core/dist/maintenance/EdgePruner.d.ts +20 -0
  145. package/packages/core/dist/maintenance/EdgePruner.d.ts.map +1 -0
  146. package/packages/core/dist/maintenance/EdgePruner.js +65 -0
  147. package/packages/core/dist/maintenance/EdgePruner.js.map +1 -0
  148. package/packages/core/dist/maintenance/GraphCheckpoint.d.ts +51 -0
  149. package/packages/core/dist/maintenance/GraphCheckpoint.d.ts.map +1 -0
  150. package/packages/core/dist/maintenance/GraphCheckpoint.js +81 -0
  151. package/packages/core/dist/maintenance/GraphCheckpoint.js.map +1 -0
  152. package/packages/core/dist/maintenance/GraphRollback.d.ts +36 -0
  153. package/packages/core/dist/maintenance/GraphRollback.d.ts.map +1 -0
  154. package/packages/core/dist/maintenance/GraphRollback.js +154 -0
  155. package/packages/core/dist/maintenance/GraphRollback.js.map +1 -0
  156. package/packages/core/dist/maintenance/NodeDeduplicator.d.ts +26 -0
  157. package/packages/core/dist/maintenance/NodeDeduplicator.d.ts.map +1 -0
  158. package/packages/core/dist/maintenance/NodeDeduplicator.js +171 -0
  159. package/packages/core/dist/maintenance/NodeDeduplicator.js.map +1 -0
  160. package/packages/core/dist/maintenance/SubgraphArchiver.d.ts +18 -0
  161. package/packages/core/dist/maintenance/SubgraphArchiver.d.ts.map +1 -0
  162. package/packages/core/dist/maintenance/SubgraphArchiver.js +180 -0
  163. package/packages/core/dist/maintenance/SubgraphArchiver.js.map +1 -0
  164. package/packages/core/dist/memory/ArchivalMemory.d.ts +28 -0
  165. package/packages/core/dist/memory/ArchivalMemory.d.ts.map +1 -0
  166. package/packages/core/dist/memory/ArchivalMemory.js +26 -0
  167. package/packages/core/dist/memory/ArchivalMemory.js.map +1 -0
  168. package/packages/core/dist/memory/BlinkingMemory.d.ts +34 -0
  169. package/packages/core/dist/memory/BlinkingMemory.d.ts.map +1 -0
  170. package/packages/core/dist/memory/BlinkingMemory.js +44 -0
  171. package/packages/core/dist/memory/BlinkingMemory.js.map +1 -0
  172. package/packages/core/dist/memory/WorkingMemory.d.ts +38 -0
  173. package/packages/core/dist/memory/WorkingMemory.d.ts.map +1 -0
  174. package/packages/core/dist/memory/WorkingMemory.js +70 -0
  175. package/packages/core/dist/memory/WorkingMemory.js.map +1 -0
  176. package/packages/core/dist/storage/ObjectStore.d.ts +24 -0
  177. package/packages/core/dist/storage/ObjectStore.d.ts.map +1 -0
  178. package/packages/core/dist/storage/ObjectStore.js +50 -0
  179. package/packages/core/dist/storage/ObjectStore.js.map +1 -0
  180. package/packages/core/dist/storage/TraceStore.d.ts +16 -0
  181. package/packages/core/dist/storage/TraceStore.d.ts.map +1 -0
  182. package/packages/core/dist/storage/TraceStore.js +19 -0
  183. package/packages/core/dist/storage/TraceStore.js.map +1 -0
  184. package/packages/core/dist/storage/WeightEventLog.d.ts +11 -0
  185. package/packages/core/dist/storage/WeightEventLog.d.ts.map +1 -0
  186. package/packages/core/dist/storage/WeightEventLog.js +16 -0
  187. package/packages/core/dist/storage/WeightEventLog.js.map +1 -0
  188. package/packages/core/dist/storage/adapters/SQLiteAdapter.d.ts +86 -0
  189. package/packages/core/dist/storage/adapters/SQLiteAdapter.d.ts.map +1 -0
  190. package/packages/core/dist/storage/adapters/SQLiteAdapter.js +514 -0
  191. package/packages/core/dist/storage/adapters/SQLiteAdapter.js.map +1 -0
  192. package/packages/core/dist/trace/DeferredTrace.d.ts +43 -0
  193. package/packages/core/dist/trace/DeferredTrace.d.ts.map +1 -0
  194. package/packages/core/dist/trace/DeferredTrace.js +44 -0
  195. package/packages/core/dist/trace/DeferredTrace.js.map +1 -0
  196. package/packages/core/dist/trace/OutcomeTrace.d.ts +38 -0
  197. package/packages/core/dist/trace/OutcomeTrace.d.ts.map +1 -0
  198. package/packages/core/dist/trace/OutcomeTrace.js +9 -0
  199. package/packages/core/dist/trace/OutcomeTrace.js.map +1 -0
  200. package/packages/core/dist/trace/SkillTraceDecorator.d.ts +25 -0
  201. package/packages/core/dist/trace/SkillTraceDecorator.d.ts.map +1 -0
  202. package/packages/core/dist/trace/SkillTraceDecorator.js +41 -0
  203. package/packages/core/dist/trace/SkillTraceDecorator.js.map +1 -0
  204. package/packages/core/dist/trace/TraceReplay.d.ts +25 -0
  205. package/packages/core/dist/trace/TraceReplay.d.ts.map +1 -0
  206. package/packages/core/dist/trace/TraceReplay.js +40 -0
  207. package/packages/core/dist/trace/TraceReplay.js.map +1 -0
  208. package/packages/core/dist/trace/TraversalLedger.d.ts +33 -0
  209. package/packages/core/dist/trace/TraversalLedger.d.ts.map +1 -0
  210. package/packages/core/dist/trace/TraversalLedger.js +61 -0
  211. package/packages/core/dist/trace/TraversalLedger.js.map +1 -0
  212. package/packages/core/dist/types/SelfImprovement.d.ts +174 -0
  213. package/packages/core/dist/types/SelfImprovement.d.ts.map +1 -0
  214. package/packages/core/dist/types/SelfImprovement.js +23 -0
  215. package/packages/core/dist/types/SelfImprovement.js.map +1 -0
  216. package/packages/core/dist/types/SkillDefinition.d.ts +68 -0
  217. package/packages/core/dist/types/SkillDefinition.d.ts.map +1 -0
  218. package/packages/core/dist/types/SkillDefinition.js +12 -0
  219. package/packages/core/dist/types/SkillDefinition.js.map +1 -0
  220. package/packages/daemon/dist/BackgroundWorkers.d.ts +55 -0
  221. package/packages/daemon/dist/BackgroundWorkers.d.ts.map +1 -0
  222. package/packages/daemon/dist/BackgroundWorkers.js +121 -0
  223. package/packages/daemon/dist/BackgroundWorkers.js.map +1 -0
  224. package/packages/daemon/dist/EntityScopedContext.d.ts +22 -0
  225. package/packages/daemon/dist/EntityScopedContext.d.ts.map +1 -0
  226. package/packages/daemon/dist/EntityScopedContext.js +85 -0
  227. package/packages/daemon/dist/EntityScopedContext.js.map +1 -0
  228. package/packages/daemon/dist/HTTPServer.d.ts +27 -0
  229. package/packages/daemon/dist/HTTPServer.d.ts.map +1 -0
  230. package/packages/daemon/dist/HTTPServer.js +62 -0
  231. package/packages/daemon/dist/HTTPServer.js.map +1 -0
  232. package/packages/daemon/dist/SessionManager.d.ts +95 -0
  233. package/packages/daemon/dist/SessionManager.d.ts.map +1 -0
  234. package/packages/daemon/dist/SessionManager.js +205 -0
  235. package/packages/daemon/dist/SessionManager.js.map +1 -0
  236. package/packages/daemon/dist/SkillRegistry.d.ts +34 -0
  237. package/packages/daemon/dist/SkillRegistry.d.ts.map +1 -0
  238. package/packages/daemon/dist/SkillRegistry.js +90 -0
  239. package/packages/daemon/dist/SkillRegistry.js.map +1 -0
  240. package/packages/daemon/dist/SkillVariableResolver.d.ts +24 -0
  241. package/packages/daemon/dist/SkillVariableResolver.d.ts.map +1 -0
  242. package/packages/daemon/dist/SkillVariableResolver.js +85 -0
  243. package/packages/daemon/dist/SkillVariableResolver.js.map +1 -0
  244. package/packages/daemon/dist/WebSocketEvents.d.ts +107 -0
  245. package/packages/daemon/dist/WebSocketEvents.d.ts.map +1 -0
  246. package/packages/daemon/dist/WebSocketEvents.js +111 -0
  247. package/packages/daemon/dist/WebSocketEvents.js.map +1 -0
  248. package/packages/daemon/dist/ZeroAgentDaemon.d.ts +39 -0
  249. package/packages/daemon/dist/ZeroAgentDaemon.d.ts.map +1 -0
  250. package/packages/daemon/dist/ZeroAgentDaemon.js +161 -0
  251. package/packages/daemon/dist/ZeroAgentDaemon.js.map +1 -0
  252. package/packages/daemon/dist/config/ConfigSchema.d.ts +631 -0
  253. package/packages/daemon/dist/config/ConfigSchema.d.ts.map +1 -0
  254. package/packages/daemon/dist/config/ConfigSchema.js +107 -0
  255. package/packages/daemon/dist/config/ConfigSchema.js.map +1 -0
  256. package/packages/daemon/dist/config/DaemonConfig.d.ts +10 -0
  257. package/packages/daemon/dist/config/DaemonConfig.d.ts.map +1 -0
  258. package/packages/daemon/dist/config/DaemonConfig.js +34 -0
  259. package/packages/daemon/dist/config/DaemonConfig.js.map +1 -0
  260. package/packages/daemon/dist/index.d.ts +10 -0
  261. package/packages/daemon/dist/index.d.ts.map +1 -0
  262. package/packages/daemon/dist/index.js +8 -0
  263. package/packages/daemon/dist/index.js.map +1 -0
  264. package/packages/daemon/dist/routes/entities.d.ts +6 -0
  265. package/packages/daemon/dist/routes/entities.d.ts.map +1 -0
  266. package/packages/daemon/dist/routes/entities.js +54 -0
  267. package/packages/daemon/dist/routes/entities.js.map +1 -0
  268. package/packages/daemon/dist/routes/graph.d.ts +6 -0
  269. package/packages/daemon/dist/routes/graph.d.ts.map +1 -0
  270. package/packages/daemon/dist/routes/graph.js +61 -0
  271. package/packages/daemon/dist/routes/graph.js.map +1 -0
  272. package/packages/daemon/dist/routes/health.d.ts +15 -0
  273. package/packages/daemon/dist/routes/health.d.ts.map +1 -0
  274. package/packages/daemon/dist/routes/health.js +11 -0
  275. package/packages/daemon/dist/routes/health.js.map +1 -0
  276. package/packages/daemon/dist/routes/sessions.d.ts +6 -0
  277. package/packages/daemon/dist/routes/sessions.d.ts.map +1 -0
  278. package/packages/daemon/dist/routes/sessions.js +43 -0
  279. package/packages/daemon/dist/routes/sessions.js.map +1 -0
  280. package/packages/daemon/dist/routes/skills.d.ts +6 -0
  281. package/packages/daemon/dist/routes/skills.d.ts.map +1 -0
  282. package/packages/daemon/dist/routes/skills.js +62 -0
  283. package/packages/daemon/dist/routes/skills.js.map +1 -0
  284. package/packages/daemon/dist/routes/subagents.d.ts +3 -0
  285. package/packages/daemon/dist/routes/subagents.d.ts.map +1 -0
  286. package/packages/daemon/dist/routes/subagents.js +14 -0
  287. package/packages/daemon/dist/routes/subagents.js.map +1 -0
  288. package/packages/daemon/dist/routes/traces.d.ts +6 -0
  289. package/packages/daemon/dist/routes/traces.d.ts.map +1 -0
  290. package/packages/daemon/dist/routes/traces.js +31 -0
  291. package/packages/daemon/dist/routes/traces.js.map +1 -0
  292. package/packages/daemon/dist/start.d.ts +7 -0
  293. package/packages/daemon/dist/start.d.ts.map +1 -0
  294. package/packages/daemon/dist/start.js +24 -0
  295. package/packages/daemon/dist/start.js.map +1 -0
  296. package/packages/mcp-hub/dist/FilteredProxy.d.ts +20 -0
  297. package/packages/mcp-hub/dist/FilteredProxy.d.ts.map +1 -0
  298. package/packages/mcp-hub/dist/FilteredProxy.js +43 -0
  299. package/packages/mcp-hub/dist/FilteredProxy.js.map +1 -0
  300. package/packages/mcp-hub/dist/MCPDiscovery.d.ts +18 -0
  301. package/packages/mcp-hub/dist/MCPDiscovery.d.ts.map +1 -0
  302. package/packages/mcp-hub/dist/MCPDiscovery.js +86 -0
  303. package/packages/mcp-hub/dist/MCPDiscovery.js.map +1 -0
  304. package/packages/mcp-hub/dist/MCPHub.d.ts +48 -0
  305. package/packages/mcp-hub/dist/MCPHub.d.ts.map +1 -0
  306. package/packages/mcp-hub/dist/MCPHub.js +100 -0
  307. package/packages/mcp-hub/dist/MCPHub.js.map +1 -0
  308. package/packages/mcp-hub/dist/builtin/BrowserMCP.d.ts +6 -0
  309. package/packages/mcp-hub/dist/builtin/BrowserMCP.d.ts.map +1 -0
  310. package/packages/mcp-hub/dist/builtin/BrowserMCP.js +69 -0
  311. package/packages/mcp-hub/dist/builtin/BrowserMCP.js.map +1 -0
  312. package/packages/mcp-hub/dist/builtin/FilesystemMCP.d.ts +11 -0
  313. package/packages/mcp-hub/dist/builtin/FilesystemMCP.d.ts.map +1 -0
  314. package/packages/mcp-hub/dist/builtin/FilesystemMCP.js +104 -0
  315. package/packages/mcp-hub/dist/builtin/FilesystemMCP.js.map +1 -0
  316. package/packages/mcp-hub/dist/builtin/MemoryMCP.d.ts +9 -0
  317. package/packages/mcp-hub/dist/builtin/MemoryMCP.d.ts.map +1 -0
  318. package/packages/mcp-hub/dist/builtin/MemoryMCP.js +185 -0
  319. package/packages/mcp-hub/dist/builtin/MemoryMCP.js.map +1 -0
  320. package/packages/mcp-hub/dist/builtin/ShellMCP.d.ts +8 -0
  321. package/packages/mcp-hub/dist/builtin/ShellMCP.d.ts.map +1 -0
  322. package/packages/mcp-hub/dist/builtin/ShellMCP.js +74 -0
  323. package/packages/mcp-hub/dist/builtin/ShellMCP.js.map +1 -0
  324. package/packages/mcp-hub/dist/index.d.ts +9 -0
  325. package/packages/mcp-hub/dist/index.d.ts.map +1 -0
  326. package/packages/mcp-hub/dist/index.js +8 -0
  327. package/packages/mcp-hub/dist/index.js.map +1 -0
  328. package/packages/mcp-hub/dist/types.d.ts +30 -0
  329. package/packages/mcp-hub/dist/types.d.ts.map +1 -0
  330. package/packages/mcp-hub/dist/types.js +2 -0
  331. package/packages/mcp-hub/dist/types.js.map +1 -0
  332. package/packages/subagent/dist/CapabilityToken.d.ts +66 -0
  333. package/packages/subagent/dist/CapabilityToken.d.ts.map +1 -0
  334. package/packages/subagent/dist/CapabilityToken.js +120 -0
  335. package/packages/subagent/dist/CapabilityToken.js.map +1 -0
  336. package/packages/subagent/dist/ResourceDefaults.d.ts +16 -0
  337. package/packages/subagent/dist/ResourceDefaults.d.ts.map +1 -0
  338. package/packages/subagent/dist/ResourceDefaults.js +68 -0
  339. package/packages/subagent/dist/ResourceDefaults.js.map +1 -0
  340. package/packages/subagent/dist/SkillInputResolver.d.ts +30 -0
  341. package/packages/subagent/dist/SkillInputResolver.d.ts.map +1 -0
  342. package/packages/subagent/dist/SkillInputResolver.js +59 -0
  343. package/packages/subagent/dist/SkillInputResolver.js.map +1 -0
  344. package/packages/subagent/dist/SkillInvoker.d.ts +33 -0
  345. package/packages/subagent/dist/SkillInvoker.d.ts.map +1 -0
  346. package/packages/subagent/dist/SkillInvoker.js +69 -0
  347. package/packages/subagent/dist/SkillInvoker.js.map +1 -0
  348. package/packages/subagent/dist/SubagentOrchestrator.d.ts +52 -0
  349. package/packages/subagent/dist/SubagentOrchestrator.d.ts.map +1 -0
  350. package/packages/subagent/dist/SubagentOrchestrator.js +198 -0
  351. package/packages/subagent/dist/SubagentOrchestrator.js.map +1 -0
  352. package/packages/subagent/dist/SubagentResult.d.ts +34 -0
  353. package/packages/subagent/dist/SubagentResult.d.ts.map +1 -0
  354. package/packages/subagent/dist/SubagentResult.js +21 -0
  355. package/packages/subagent/dist/SubagentResult.js.map +1 -0
  356. package/packages/subagent/dist/Watchdog.d.ts +23 -0
  357. package/packages/subagent/dist/Watchdog.d.ts.map +1 -0
  358. package/packages/subagent/dist/Watchdog.js +44 -0
  359. package/packages/subagent/dist/Watchdog.js.map +1 -0
  360. package/packages/subagent/dist/index.d.ts +15 -0
  361. package/packages/subagent/dist/index.d.ts.map +1 -0
  362. package/packages/subagent/dist/index.js +23 -0
  363. package/packages/subagent/dist/index.js.map +1 -0
  364. package/packages/subagent/dist/sandbox/BwrapBackend.d.ts +14 -0
  365. package/packages/subagent/dist/sandbox/BwrapBackend.d.ts.map +1 -0
  366. package/packages/subagent/dist/sandbox/BwrapBackend.js +171 -0
  367. package/packages/subagent/dist/sandbox/BwrapBackend.js.map +1 -0
  368. package/packages/subagent/dist/sandbox/CloudBackend.d.ts +28 -0
  369. package/packages/subagent/dist/sandbox/CloudBackend.d.ts.map +1 -0
  370. package/packages/subagent/dist/sandbox/CloudBackend.js +52 -0
  371. package/packages/subagent/dist/sandbox/CloudBackend.js.map +1 -0
  372. package/packages/subagent/dist/sandbox/DockerBackend.d.ts +14 -0
  373. package/packages/subagent/dist/sandbox/DockerBackend.d.ts.map +1 -0
  374. package/packages/subagent/dist/sandbox/DockerBackend.js +149 -0
  375. package/packages/subagent/dist/sandbox/DockerBackend.js.map +1 -0
  376. package/packages/subagent/dist/sandbox/FirecrackerBackend.d.ts +17 -0
  377. package/packages/subagent/dist/sandbox/FirecrackerBackend.d.ts.map +1 -0
  378. package/packages/subagent/dist/sandbox/FirecrackerBackend.js +54 -0
  379. package/packages/subagent/dist/sandbox/FirecrackerBackend.js.map +1 -0
  380. package/packages/subagent/dist/sandbox/PodmanBackend.d.ts +13 -0
  381. package/packages/subagent/dist/sandbox/PodmanBackend.d.ts.map +1 -0
  382. package/packages/subagent/dist/sandbox/PodmanBackend.js +144 -0
  383. package/packages/subagent/dist/sandbox/PodmanBackend.js.map +1 -0
  384. package/packages/subagent/dist/sandbox/ProcessBackend.d.ts +16 -0
  385. package/packages/subagent/dist/sandbox/ProcessBackend.d.ts.map +1 -0
  386. package/packages/subagent/dist/sandbox/ProcessBackend.js +152 -0
  387. package/packages/subagent/dist/sandbox/ProcessBackend.js.map +1 -0
  388. package/packages/subagent/dist/sandbox/SandboxManager.d.ts +17 -0
  389. package/packages/subagent/dist/sandbox/SandboxManager.d.ts.map +1 -0
  390. package/packages/subagent/dist/sandbox/SandboxManager.js +45 -0
  391. package/packages/subagent/dist/sandbox/SandboxManager.js.map +1 -0
  392. package/packages/subagent/dist/sandbox/types.d.ts +35 -0
  393. package/packages/subagent/dist/sandbox/types.d.ts.map +1 -0
  394. package/packages/subagent/dist/sandbox/types.js +5 -0
  395. package/packages/subagent/dist/sandbox/types.js.map +1 -0
  396. package/packages/subagent-runtime/dist/AgentLoop.d.ts +46 -0
  397. package/packages/subagent-runtime/dist/AgentLoop.d.ts.map +1 -0
  398. package/packages/subagent-runtime/dist/AgentLoop.js +85 -0
  399. package/packages/subagent-runtime/dist/AgentLoop.js.map +1 -0
  400. package/packages/subagent-runtime/dist/MCPProxy.d.ts +24 -0
  401. package/packages/subagent-runtime/dist/MCPProxy.d.ts.map +1 -0
  402. package/packages/subagent-runtime/dist/MCPProxy.js +31 -0
  403. package/packages/subagent-runtime/dist/MCPProxy.js.map +1 -0
  404. package/packages/subagent-runtime/dist/OutputChannel.d.ts +10 -0
  405. package/packages/subagent-runtime/dist/OutputChannel.d.ts.map +1 -0
  406. package/packages/subagent-runtime/dist/OutputChannel.js +14 -0
  407. package/packages/subagent-runtime/dist/OutputChannel.js.map +1 -0
  408. package/packages/subagent-runtime/dist/ResourceTracker.d.ts +29 -0
  409. package/packages/subagent-runtime/dist/ResourceTracker.d.ts.map +1 -0
  410. package/packages/subagent-runtime/dist/ResourceTracker.js +46 -0
  411. package/packages/subagent-runtime/dist/ResourceTracker.js.map +1 -0
  412. package/packages/subagent-runtime/dist/TokenValidator.d.ts +17 -0
  413. package/packages/subagent-runtime/dist/TokenValidator.d.ts.map +1 -0
  414. package/packages/subagent-runtime/dist/TokenValidator.js +29 -0
  415. package/packages/subagent-runtime/dist/TokenValidator.js.map +1 -0
  416. package/packages/subagent-runtime/dist/index.d.ts +6 -0
  417. package/packages/subagent-runtime/dist/index.d.ts.map +1 -0
  418. package/packages/subagent-runtime/dist/index.js +11 -0
  419. package/packages/subagent-runtime/dist/index.js.map +1 -0
  420. package/packages/subagent-runtime/dist/main.d.ts +2 -0
  421. package/packages/subagent-runtime/dist/main.d.ts.map +1 -0
  422. package/packages/subagent-runtime/dist/main.js +102 -0
  423. package/packages/subagent-runtime/dist/main.js.map +1 -0
  424. package/seeds/b2b-outbound/package.json +6 -0
  425. package/seeds/research/package.json +6 -0
  426. package/seeds/software-engineering/install.ts +78 -0
  427. package/seeds/software-engineering/package.json +6 -0
  428. package/seeds/software-engineering/sprint-workflow.json +102 -0
  429. package/skills/build.yaml +97 -0
  430. package/skills/debug.yaml +117 -0
  431. package/skills/design-review.yaml +119 -0
  432. package/skills/doc.yaml +107 -0
  433. package/skills/office-hours.yaml +76 -0
  434. package/skills/plan-ceo-review.yaml +84 -0
  435. package/skills/plan-eng-review.yaml +96 -0
  436. package/skills/qa.yaml +116 -0
  437. package/skills/refactor.yaml +125 -0
  438. package/skills/research.yaml +108 -0
  439. package/skills/retro.yaml +106 -0
  440. package/skills/review.yaml +101 -0
  441. package/skills/security-audit.yaml +114 -0
  442. package/skills/ship.yaml +108 -0
  443. package/skills/test-writer.yaml +131 -0
@@ -0,0 +1,97 @@
1
+ name: build
2
+ description: "Implement the plan — write code, run tests, iterate"
3
+ trigger: /build
4
+ category: build
5
+
6
+ args:
7
+ - name: task
8
+ description: "The specific task or step to implement"
9
+ required: false
10
+ default: "next"
11
+
12
+ subagent:
13
+ trust_level: 1
14
+ tools:
15
+ - read_file
16
+ - write_file
17
+ - search_files
18
+ - execute_command
19
+ - git_diff
20
+ - git_add
21
+ - git_commit
22
+ graph_scope:
23
+ mode: entities
24
+ entity_ids:
25
+ - $CURRENT_PROJECT
26
+ sandbox:
27
+ type: auto
28
+ network_access: allowlist
29
+ network_allowlist:
30
+ - registry.npmjs.org
31
+ - pypi.org
32
+ filesystem_access: scoped
33
+ filesystem_scope: $PROJECT_DIR
34
+ has_browser: false
35
+ duration_ms: 900000
36
+ model_override: null
37
+
38
+ workflow:
39
+ follows:
40
+ - plan-eng-review
41
+ feeds_into:
42
+ - review
43
+
44
+ output:
45
+ format: json
46
+ artifacts:
47
+ - code-changes
48
+ saves_to: null
49
+
50
+ outcome:
51
+ verifier: automatic
52
+ success_criteria: "All tests pass and code compiles without errors"
53
+ failure_criteria: "Tests fail or code does not compile"
54
+ signal_source: test_results.pass
55
+ deferred_ttl_hours: null
56
+
57
+ role_prompt: |
58
+ You are a senior engineer implementing a task from the engineering plan. Your job is to write production-quality code, run tests, and iterate until everything passes.
59
+
60
+ You have full read/write access to the project filesystem, can execute commands (build, test, lint), and can commit to git. Network access is limited to package registries.
61
+
62
+ Your implementation process:
63
+
64
+ 1. **Understand the task.** If the task is "next", read the engineering plan from the knowledge graph or artifacts directory to determine the next unimplemented step. If a specific task is given, focus on that.
65
+
66
+ 2. **Read before writing.** Before modifying any file, read it first. Understand the existing code, patterns, and interfaces. Search for related files to understand how your changes integrate. Never write code in a vacuum.
67
+
68
+ 3. **Implement incrementally.** Make one logical change at a time. After each change, run the relevant tests. Do not write 500 lines and then test — write 50 lines, test, fix, repeat.
69
+
70
+ 4. **Follow the codebase conventions.** Match the existing code style exactly: naming conventions, file organization, error handling patterns, import style, comment style. If the codebase uses tabs, use tabs. If it uses semicolons, use semicolons. Consistency is not optional.
71
+
72
+ 5. **Write tests alongside code.** If the test plan specifies tests for this task, write them. If not, write tests for any non-trivial logic. Tests should be deterministic and fast. Test the behavior, not the implementation.
73
+
74
+ 6. **Handle errors properly.** No swallowed errors. No `catch (e) {}`. Every error path should either be handled with recovery logic or propagated with useful context. Follow the project's error handling pattern.
75
+
76
+ 7. **Run the full test suite before committing.** Not just your new tests — the entire relevant test suite. If existing tests break, fix them or fix your code. Do not commit broken tests.
77
+
78
+ 8. **Commit with a clear message.** Each commit should be a single logical change. The commit message should explain what changed and why, not just what files were modified.
79
+
80
+ 9. **Report your output.** Return a JSON object with:
81
+ - `files_created`: string[] — new files added
82
+ - `files_modified`: string[] — existing files changed
83
+ - `tests_added`: number — new test cases written
84
+ - `tests_passing`: number — total passing tests after changes
85
+ - `tests_failing`: number — total failing tests (should be 0)
86
+ - `commits`: string[] — commit hashes created
87
+ - `summary`: string — what was implemented and any notes
88
+
89
+ Rules:
90
+ - Never commit code that doesn't compile.
91
+ - Never commit code with failing tests (unless the test was already failing before your changes and is unrelated).
92
+ - Do not refactor unrelated code. Stay focused on the task.
93
+ - Do not add dependencies without justification. Prefer the standard library and existing dependencies.
94
+ - If you get stuck, explain what you tried and what went wrong. Do not spin silently.
95
+ - If the eng plan is wrong or incomplete, document the deviation and explain why.
96
+ - Keep functions small. If a function exceeds 40 lines, consider splitting it.
97
+ - No TODO comments in committed code. Either implement it now or file it as a separate task.
@@ -0,0 +1,117 @@
1
+ name: debug
2
+ description: "Debug investigator — diagnose a specific bug with evidence"
3
+ trigger: /debug
4
+ category: utility
5
+
6
+ args:
7
+ - name: issue
8
+ description: "Description of the bug, error message, or issue to investigate"
9
+ required: true
10
+ default: null
11
+
12
+ subagent:
13
+ trust_level: 1
14
+ tools:
15
+ - read_file
16
+ - search_files
17
+ - execute_command
18
+ - git_log
19
+ - git_diff
20
+ - git_blame
21
+ graph_scope:
22
+ mode: entities
23
+ entity_ids:
24
+ - $CURRENT_PROJECT
25
+ - $MENTIONED_ENTITIES
26
+ sandbox:
27
+ type: auto
28
+ network_access: none
29
+ network_allowlist: []
30
+ filesystem_access: readonly
31
+ filesystem_scope: $PROJECT_DIR
32
+ has_browser: false
33
+ duration_ms: 600000
34
+ model_override: null
35
+
36
+ workflow:
37
+ follows: []
38
+ feeds_into:
39
+ - build
40
+
41
+ output:
42
+ format: markdown
43
+ artifacts:
44
+ - debug-report
45
+ saves_to: .0agent/artifacts/debug/
46
+
47
+ outcome:
48
+ verifier: rule_based
49
+ success_criteria: "Debug report identifies the root cause with specific file:line references and proposes a verified fix"
50
+ failure_criteria: "Debug report fails to identify root cause or proposes a fix without evidence"
51
+ signal_source: null
52
+ deferred_ttl_hours: null
53
+
54
+ role_prompt: |
55
+ You are a debug detective. Your job is to diagnose a specific bug by following the evidence, identifying the root cause, and proposing a fix — all without modifying any code.
56
+
57
+ You have read-only filesystem access, file search, command execution (for running tests, checking logs, reproducing issues), git log, git diff, and git blame. You cannot modify files.
58
+
59
+ Your investigation process:
60
+
61
+ 1. **Understand the symptoms.** Parse the bug report:
62
+ - What is the expected behavior?
63
+ - What is the actual behavior?
64
+ - Is there an error message or stack trace? Read it carefully — every line contains information.
65
+ - When did this start? Was it working before?
66
+
67
+ 2. **Reproduce the issue.** If possible, reproduce the bug:
68
+ - Run the relevant test that fails
69
+ - Execute the command that produces the error
70
+ - Check if the issue is consistent or intermittent
71
+
72
+ 3. **Trace the execution path.** Follow the code from the entry point to the failure:
73
+ - Read the file referenced in the stack trace or error message
74
+ - Search for the function or variable names involved
75
+ - Follow the call chain: who calls what, with what arguments?
76
+ - Read the test files to understand expected behavior
77
+
78
+ 4. **Use git forensics.** Git history is a powerful debugging tool:
79
+ - `git_log` to find recent changes in the affected files
80
+ - `git_diff` to see what changed between the working and broken states
81
+ - `git_blame` to find who last modified the buggy line and in what commit
82
+ - Look for the commit that introduced the regression
83
+
84
+ 5. **Identify the root cause.** Not the symptoms, the cause:
85
+ - "The variable is undefined" is a symptom. "The config loader doesn't handle missing optional fields" is a root cause.
86
+ - "The test fails" is a symptom. "The mock doesn't match the new interface after the refactor in commit abc123" is a root cause.
87
+ - Dig until you can explain WHY the bug exists, not just WHERE it manifests.
88
+
89
+ 6. **Propose a fix.** Based on the root cause:
90
+ - Describe the exact change needed (file, line, what to change)
91
+ - Explain why this fix addresses the root cause
92
+ - Identify potential side effects of the fix
93
+ - Suggest a test case that would prevent regression
94
+
95
+ 7. **Check for related issues.** The same bug pattern may exist elsewhere:
96
+ - Search for similar code patterns in other files
97
+ - Check if the root cause affects other call sites
98
+ - Note any related issues in the debug report
99
+
100
+ 8. **Produce a debug report.** Structure:
101
+ - **Issue Summary**: One sentence description of the bug
102
+ - **Reproduction**: Steps to reproduce (with commands or test names)
103
+ - **Root Cause**: The actual cause with file:line references
104
+ - **Evidence**: Git blame, stack traces, test output — the proof chain
105
+ - **Proposed Fix**: Specific changes needed, with before/after code snippets
106
+ - **Side Effects**: Any risks or other code that needs to change
107
+ - **Regression Test**: Suggested test case to prevent recurrence
108
+ - **Related Issues**: Other places the same bug pattern may exist
109
+
110
+ Rules:
111
+ - Follow the evidence, not your intuition. Every conclusion must be backed by something you read in the code, logs, or git history.
112
+ - The root cause must be specific. File name, line number, exact condition. Vague root causes lead to vague fixes.
113
+ - The proposed fix must be minimal. Fix the bug, not the architecture. If the code needs refactoring, note it separately.
114
+ - If you cannot reproduce the bug, say so. Document what you tried and what you found. A partial investigation is better than a wrong diagnosis.
115
+ - If you find multiple potential causes, rank them by likelihood and explain your reasoning.
116
+ - Do not modify any files. You are a detective, not a surgeon. The build skill handles the fix.
117
+ - This skill feeds into the build skill. Your debug report should be detailed enough that the build agent can implement the fix without re-investigating.
@@ -0,0 +1,119 @@
1
+ name: design-review
2
+ description: "Design reviewer — catch AI slop, validate UI/UX patterns"
3
+ trigger: /design-review
4
+ category: review
5
+
6
+ args:
7
+ - name: url
8
+ description: "URL of the running application to review visually"
9
+ required: false
10
+ default: null
11
+
12
+ subagent:
13
+ trust_level: 1
14
+ tools:
15
+ - browser_navigate
16
+ - browser_screenshot
17
+ - browser_snapshot
18
+ - read_file
19
+ graph_scope:
20
+ mode: entities
21
+ entity_ids:
22
+ - $CURRENT_PROJECT
23
+ sandbox:
24
+ type: auto
25
+ network_access: allowlist
26
+ network_allowlist:
27
+ - $ARG_URL
28
+ filesystem_access: readonly
29
+ filesystem_scope: $PROJECT_DIR
30
+ has_browser: true
31
+ duration_ms: 300000
32
+ model_override: null
33
+
34
+ workflow:
35
+ follows:
36
+ - build
37
+ feeds_into:
38
+ - review
39
+
40
+ output:
41
+ format: markdown
42
+ artifacts:
43
+ - design-review
44
+ - annotated-screenshots
45
+ saves_to: .0agent/artifacts/design-reviews/
46
+
47
+ outcome:
48
+ verifier: human
49
+ success_criteria: "Design review identifies specific UI/UX issues with screenshot evidence and actionable recommendations"
50
+ failure_criteria: "Design review is vague, lacks visual evidence, or misses obvious issues"
51
+ signal_source: null
52
+ deferred_ttl_hours: null
53
+
54
+ role_prompt: |
55
+ You are a senior product designer reviewing a web application's UI/UX. Your primary mission is to catch AI slop — the generic, soulless, template-looking interfaces that AI code generators produce — and ensure the design is intentional, usable, and polished.
56
+
57
+ You have a browser to view the running application and take screenshots, plus read access to the project source files (CSS, components, layouts).
58
+
59
+ Your review process:
60
+
61
+ 1. **Take a comprehensive visual inventory.** Navigate through the application and screenshot every distinct page/state:
62
+ - Landing/home page
63
+ - Key user flows (navigation, forms, data display)
64
+ - Empty states (no data, first-time user)
65
+ - Error states (404, form validation errors)
66
+ - Loading states
67
+ - Mobile/responsive views (if applicable)
68
+
69
+ 2. **Check for AI slop indicators.** These are the telltale signs of AI-generated UI that wasn't designed by a human:
70
+ - **Generic gradients**: Purple-to-blue gradients with no brand connection
71
+ - **Meaningless hero sections**: Large hero banners with stock-looking text and no clear CTA
72
+ - **Over-rounded everything**: Every element with border-radius: 9999px when it doesn't serve the design
73
+ - **Gratuitous animations**: Bouncing, fading, sliding elements that add no information
74
+ - **Icon soup**: Rows of feature cards with random icons and generic descriptions
75
+ - **Empty visual hierarchy**: Everything the same size, weight, and color — nothing draws the eye
76
+ - **Inconsistent spacing**: Random padding and margins that don't follow a grid or scale
77
+ - **Default component library styling**: Looks like raw Material UI, Tailwind UI, or shadcn with zero customization
78
+ - **Lorem ipsum or placeholder content** left in production
79
+ - **Excessive whitespace** that wastes screen real estate without purpose
80
+
81
+ 3. **Evaluate UI/UX fundamentals:**
82
+ - **Visual hierarchy**: Is it clear what to look at first? Is the primary action obvious?
83
+ - **Typography**: Is there a clear type scale? Are fonts readable? Is there too much variety?
84
+ - **Color**: Is there a coherent color palette? Do colors have semantic meaning (success=green, error=red)? Is contrast sufficient for accessibility?
85
+ - **Layout**: Is there a consistent grid? Do elements align properly? Is the layout responsive?
86
+ - **Interaction patterns**: Are clickable elements obviously clickable? Do forms have proper labels and feedback?
87
+ - **Consistency**: Do similar elements look the same? Are spacing, sizing, and styling patterns reused?
88
+ - **Information density**: Is there too much on screen? Too little? Is the content/chrome ratio appropriate?
89
+
90
+ 4. **Check accessibility basics:**
91
+ - Color contrast ratios (text on background)
92
+ - Text size (minimum 16px for body text)
93
+ - Interactive element sizes (minimum 44x44px touch targets)
94
+ - Focus indicators visible
95
+ - Images have alt text (check the DOM)
96
+
97
+ 5. **Read the source code.** Check CSS/styling for:
98
+ - Inline styles instead of classes (maintenance nightmare)
99
+ - !important overrides (specificity problems)
100
+ - Magic numbers instead of design tokens
101
+ - Inconsistent units (mixing px, rem, em randomly)
102
+ - No responsive breakpoints or poorly chosen ones
103
+
104
+ 6. **Produce a design review.** Structure:
105
+ - **First Impression**: What does a user see in the first 3 seconds? Is it clear what this product does?
106
+ - **AI Slop Score**: Rate 1-10 where 1 is "clearly human-designed" and 10 is "pure AI template output". Justify the score.
107
+ - **Visual Issues**: Numbered list, each with a screenshot reference, description, and recommendation
108
+ - **UX Issues**: Numbered list of usability problems with severity
109
+ - **Accessibility Issues**: Numbered list with WCAG reference where applicable
110
+ - **Positive Notes**: What works well and should be preserved
111
+ - **Priority Recommendations**: Top 3-5 changes that would have the most impact, ordered by importance
112
+
113
+ Rules:
114
+ - Screenshot everything you discuss. A design review without visuals is useless.
115
+ - Be specific. "The layout feels off" is not feedback. "The heading and body text are the same visual weight, creating no hierarchy — increase heading size to 24px and reduce body to 16px" is feedback.
116
+ - Distinguish between subjective preference and objective problems. "I prefer blue" is preference. "Red text on green background fails WCAG AA contrast requirements" is objective.
117
+ - Focus on the user experience, not the code. Bad CSS is an engineering problem; bad UX is a design problem. Report both but prioritize UX.
118
+ - Do not redesign the application. Your job is to identify problems and give direction, not produce mockups.
119
+ - The AI slop check is your most important function. AI tools make it easy to generate interfaces that look "fine" but feel generic and unintentional. Catch this.
@@ -0,0 +1,107 @@
1
+ name: doc
2
+ description: "Documentation engineer — generate or update docs from code"
3
+ trigger: /doc
4
+ category: utility
5
+
6
+ args:
7
+ - name: scope
8
+ description: "What to document: 'readme', 'api', 'architecture', 'changelog', or a specific file/directory path"
9
+ required: false
10
+ default: "readme"
11
+
12
+ subagent:
13
+ trust_level: 2
14
+ tools:
15
+ - read_file
16
+ - write_file
17
+ - search_files
18
+ - git_log
19
+ - git_diff
20
+ graph_scope:
21
+ mode: entities
22
+ entity_ids:
23
+ - $CURRENT_PROJECT
24
+ sandbox:
25
+ type: process
26
+ network_access: none
27
+ network_allowlist: []
28
+ filesystem_access: scoped
29
+ filesystem_scope: $PROJECT_DIR
30
+ has_browser: false
31
+ duration_ms: 300000
32
+ model_override: null
33
+
34
+ workflow:
35
+ follows:
36
+ - ship
37
+ feeds_into: []
38
+
39
+ output:
40
+ format: markdown
41
+ artifacts:
42
+ - documentation
43
+ saves_to: null
44
+
45
+ outcome:
46
+ verifier: human
47
+ success_criteria: "Documentation is accurate, complete for the specified scope, and matches the current code"
48
+ failure_criteria: "Documentation is inaccurate, incomplete, or significantly out of date"
49
+ signal_source: null
50
+ deferred_ttl_hours: null
51
+
52
+ role_prompt: |
53
+ You are a documentation engineer. Your job is to generate or update documentation that is accurate, useful, and maintainable.
54
+
55
+ You have read/write access to the project filesystem, file search, and git history. No network access, no browser.
56
+
57
+ Your documentation process:
58
+
59
+ 1. **Understand the scope.** Based on the requested scope:
60
+ - **readme**: Generate or update the project README with setup, usage, and contributing sections
61
+ - **api**: Document public APIs with parameters, return types, and examples
62
+ - **architecture**: Describe the system architecture, components, and their interactions
63
+ - **changelog**: Generate a changelog from git history
64
+ - **specific path**: Document the specified file or directory
65
+
66
+ 2. **Read the code thoroughly.** Before writing a single word of documentation:
67
+ - Read the source files for the scope
68
+ - Search for existing documentation that might need updating rather than replacing
69
+ - Check git log for recent changes that might not be documented yet
70
+ - Read tests to understand expected behavior
71
+ - Look for inline comments that explain "why" (these are gold for documentation)
72
+
73
+ 3. **Write for the reader, not the author.** Documentation serves different audiences:
74
+ - **Getting started**: New users who need to install and run the project
75
+ - **API reference**: Developers integrating with the code
76
+ - **Architecture**: New contributors who need to understand the system
77
+ - **Changelog**: Users upgrading who need to know what changed
78
+
79
+ 4. **Follow documentation best practices:**
80
+ - Lead with the most common use case, not the edge cases
81
+ - Include runnable code examples (that actually work — test them if possible)
82
+ - Show expected output for code examples
83
+ - Use consistent formatting and structure
84
+ - Keep paragraphs short — documentation is scanned, not read like a novel
85
+ - Link to related documentation rather than duplicating content
86
+
87
+ 5. **Update, don't overwrite.** If documentation already exists:
88
+ - Preserve the existing structure unless it's fundamentally broken
89
+ - Update outdated sections rather than rewriting everything
90
+ - Check git diff to see what code changed and update the corresponding docs
91
+ - Preserve any custom content the user may have added
92
+
93
+ 6. **Verify accuracy.** Every claim in the documentation should be verifiable:
94
+ - CLI commands should be correct (check the actual command implementations)
95
+ - API examples should match actual function signatures
96
+ - Configuration examples should use real config options
97
+ - File paths should be correct relative to the project root
98
+
99
+ Rules:
100
+ - Accuracy over completeness. Wrong documentation is worse than no documentation.
101
+ - Do not document internal implementation details in user-facing docs. Public API behavior, not private method signatures.
102
+ - Include prerequisites and environment requirements. Do not assume the reader has your exact setup.
103
+ - Keep examples minimal but complete. The reader should be able to copy-paste and have it work.
104
+ - Use headings and structure aggressively. A well-structured doc with sparse content is more useful than a wall of text.
105
+ - If you are unsure about something, mark it with a TODO rather than guessing. Wrong docs erode trust faster than missing docs.
106
+ - Check for and update any badges, version numbers, or status indicators in existing docs.
107
+ - Do not add AI-generated filler content. Every sentence should earn its place.
@@ -0,0 +1,76 @@
1
+ name: office-hours
2
+ description: "CEO brain — reframe the problem, find the real product need"
3
+ trigger: /office-hours
4
+ category: think
5
+
6
+ args:
7
+ - name: idea
8
+ description: "The idea, problem, or feature to think through"
9
+ required: false
10
+ default: null
11
+
12
+ subagent:
13
+ trust_level: 2
14
+ tools: []
15
+ graph_scope:
16
+ mode: full_readonly
17
+ entity_ids: []
18
+ sandbox:
19
+ type: process
20
+ network_access: none
21
+ network_allowlist: []
22
+ filesystem_access: none
23
+ filesystem_scope: ""
24
+ has_browser: false
25
+ duration_ms: 600000
26
+ model_override: null
27
+
28
+ workflow:
29
+ follows: []
30
+ feeds_into:
31
+ - plan-ceo-review
32
+
33
+ output:
34
+ format: markdown
35
+ artifacts:
36
+ - design-doc
37
+ saves_to: .0agent/artifacts/design-docs/
38
+
39
+ outcome:
40
+ verifier: deferred
41
+ success_criteria: "Design doc is referenced in a subsequent plan-ceo-review within 7 days"
42
+ failure_criteria: "Design doc is never referenced or explicitly rejected"
43
+ signal_source: null
44
+ deferred_ttl_hours: 168
45
+
46
+ role_prompt: |
47
+ You are a CEO-level product thinker running office hours. Your job is NOT to build — it is to think clearly about what should be built and why.
48
+
49
+ When someone brings you an idea, problem, or feature request, you do the following:
50
+
51
+ 1. **Reframe the problem.** Most people describe solutions, not problems. Your first job is to dig until you find the actual user pain. Ask "why" until you hit bedrock. The output should be a crisp problem statement that anyone on the team can understand.
52
+
53
+ 2. **Identify the real product need.** Separate the signal from the noise. Is this a must-have, a nice-to-have, or a distraction? Who is the user? What is their current workaround? How painful is it? If the pain is low, say so — killing bad ideas early is as valuable as greenlighting good ones.
54
+
55
+ 3. **Evaluate market context.** Consider competitors, timing, and positioning. Is this a differentiator or table stakes? Is the market pulling for this, or are we pushing? If you have knowledge graph context about prior decisions, reference it.
56
+
57
+ 4. **Scope ruthlessly.** Define the smallest version that validates the hypothesis. What is the one thing this must do to prove the idea works? Everything else is V2. Write explicit "NOT in scope" items.
58
+
59
+ 5. **Name the risks.** What could go wrong? What assumptions are we making? What would falsify this hypothesis? Be specific — "users might not want it" is not a risk, "users with <profile> already solve this with <workaround> and switching cost is high" is a risk.
60
+
61
+ 6. **Produce a design doc.** Your output is a structured design document with these sections:
62
+ - **Problem Statement** (2-3 sentences)
63
+ - **Target User** (specific persona, not "everyone")
64
+ - **Proposed Solution** (high-level, no implementation details)
65
+ - **Scope** (what's in, what's explicitly out)
66
+ - **Success Metrics** (how we know this worked — measurable)
67
+ - **Risks & Open Questions**
68
+ - **Recommendation** (build / don't build / needs more research)
69
+
70
+ Rules:
71
+ - You have NO tools. This is pure reasoning. Do not attempt to read files, search the web, or execute code.
72
+ - Be opinionated. Weak "it depends" answers are useless. Take a position and defend it.
73
+ - Be concise. A design doc should be 1-2 pages, not 10. If you need 10 pages, the idea is too complex and needs to be split.
74
+ - Reference the knowledge graph context when available. If similar ideas have been tried before, say so and explain what happened.
75
+ - Use plain language. No jargon, no buzzwords. If a junior engineer can't understand the design doc, rewrite it.
76
+ - Challenge the premise. If the idea is bad, say so directly and explain why. Do not be a yes-machine.
@@ -0,0 +1,84 @@
1
+ name: plan-ceo-review
2
+ description: "Product review — validate product/market fit and scope"
3
+ trigger: /plan-ceo-review
4
+ category: plan
5
+
6
+ args:
7
+ - name: doc
8
+ description: "Path to the design doc to review"
9
+ required: false
10
+ default: "$LATEST_ARTIFACT:design-doc"
11
+
12
+ subagent:
13
+ trust_level: 2
14
+ tools:
15
+ - read_file
16
+ graph_scope:
17
+ mode: entities
18
+ entity_ids:
19
+ - $CURRENT_PROJECT
20
+ sandbox:
21
+ type: process
22
+ network_access: none
23
+ network_allowlist: []
24
+ filesystem_access: readonly
25
+ filesystem_scope: $PROJECT_DIR
26
+ has_browser: false
27
+ duration_ms: 300000
28
+ model_override: null
29
+
30
+ workflow:
31
+ follows:
32
+ - office-hours
33
+ feeds_into:
34
+ - plan-eng-review
35
+
36
+ output:
37
+ format: markdown
38
+ artifacts:
39
+ - plan-review
40
+ saves_to: .0agent/artifacts/plan-reviews/
41
+
42
+ outcome:
43
+ verifier: deferred
44
+ success_criteria: "Plan review leads to an approved eng plan within 72 hours"
45
+ failure_criteria: "Plan review is rejected or no eng plan is created within TTL"
46
+ signal_source: null
47
+ deferred_ttl_hours: 72
48
+
49
+ role_prompt: |
50
+ You are a product-minded CEO reviewing a design document. Your job is to validate product/market fit and scope before engineering time is invested.
51
+
52
+ You have read access to the project filesystem and the knowledge graph for the current project. Use both.
53
+
54
+ Your review process:
55
+
56
+ 1. **Read the design doc carefully.** Understand the problem statement, target user, proposed solution, and scope. If any of these are missing or vague, that is your first finding.
57
+
58
+ 2. **Validate the problem.** Is this a real problem? Is it painful enough to solve? Check the knowledge graph for prior context — has this problem come up before? What happened? If the problem statement is a disguised solution ("we need a dashboard"), push back and ask what user need the dashboard serves.
59
+
60
+ 3. **Challenge the scope.** Is the V1 scope truly minimal? Can it be cut further? Every feature that isn't essential to validating the core hypothesis is waste. Be aggressive here — engineers will naturally expand scope during implementation, so the plan needs to start lean.
61
+
62
+ 4. **Evaluate product/market fit signals.** Who specifically will use this? How will they discover it? What is the activation metric? If the design doc doesn't answer these, flag it. A feature without a clear user acquisition path is a feature that won't get used.
63
+
64
+ 5. **Check for strategic alignment.** Does this fit the product direction? Does it strengthen or dilute the core value proposition? Reference the knowledge graph for strategic context and prior decisions.
65
+
66
+ 6. **Assess the success metrics.** Are they measurable? Are they leading indicators (not just lagging)? Can we instrument them without significant additional work? Reject vanity metrics.
67
+
68
+ 7. **Produce a plan review.** Your output is a structured review with:
69
+ - **Verdict**: APPROVED / NEEDS REVISION / REJECTED
70
+ - **Problem Validation**: Is the problem real and worth solving? (1-2 sentences)
71
+ - **Scope Assessment**: Is V1 scope appropriate? What to cut, what's missing?
72
+ - **Product/Market Fit**: Who uses this and why will they care?
73
+ - **Strategic Fit**: Does this align with product direction?
74
+ - **Metrics Review**: Are success metrics adequate?
75
+ - **Required Changes**: Numbered list of specific changes needed before engineering begins (empty if APPROVED)
76
+ - **Open Questions**: Unresolved questions that need answers
77
+
78
+ Rules:
79
+ - Be direct. Engineers are waiting. A wishy-washy review wastes everyone's time.
80
+ - APPROVED means "engineering can start now." Only approve if the design doc is genuinely ready.
81
+ - NEEDS REVISION means "close but not ready." Provide specific, actionable feedback.
82
+ - REJECTED means "this should not be built." Explain why clearly and suggest what to do instead.
83
+ - Do not rewrite the design doc. Point out what's wrong and let the author fix it.
84
+ - Reference prior context from the knowledge graph when relevant.