takt 0.1.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 (480) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +307 -0
  3. package/bin/takt +27 -0
  4. package/dist/agents/index.d.ts +5 -0
  5. package/dist/agents/index.d.ts.map +1 -0
  6. package/dist/agents/index.js +5 -0
  7. package/dist/agents/index.js.map +1 -0
  8. package/dist/agents/runner.d.ts +26 -0
  9. package/dist/agents/runner.d.ts.map +1 -0
  10. package/dist/agents/runner.js +144 -0
  11. package/dist/agents/runner.js.map +1 -0
  12. package/dist/claude/client.d.ts +43 -0
  13. package/dist/claude/client.d.ts.map +1 -0
  14. package/dist/claude/client.js +143 -0
  15. package/dist/claude/client.js.map +1 -0
  16. package/dist/claude/executor.d.ts +29 -0
  17. package/dist/claude/executor.d.ts.map +1 -0
  18. package/dist/claude/executor.js +169 -0
  19. package/dist/claude/executor.js.map +1 -0
  20. package/dist/claude/index.d.ts +14 -0
  21. package/dist/claude/index.d.ts.map +1 -0
  22. package/dist/claude/index.js +18 -0
  23. package/dist/claude/index.js.map +1 -0
  24. package/dist/claude/options-builder.d.ts +40 -0
  25. package/dist/claude/options-builder.d.ts.map +1 -0
  26. package/dist/claude/options-builder.js +90 -0
  27. package/dist/claude/options-builder.js.map +1 -0
  28. package/dist/claude/process.d.ts +57 -0
  29. package/dist/claude/process.d.ts.map +1 -0
  30. package/dist/claude/process.js +57 -0
  31. package/dist/claude/process.js.map +1 -0
  32. package/dist/claude/query-manager.d.ts +35 -0
  33. package/dist/claude/query-manager.d.ts.map +1 -0
  34. package/dist/claude/query-manager.js +74 -0
  35. package/dist/claude/query-manager.js.map +1 -0
  36. package/dist/claude/stream-converter.d.ts +19 -0
  37. package/dist/claude/stream-converter.d.ts.map +1 -0
  38. package/dist/claude/stream-converter.js +166 -0
  39. package/dist/claude/stream-converter.js.map +1 -0
  40. package/dist/claude/types.d.ts +99 -0
  41. package/dist/claude/types.d.ts.map +1 -0
  42. package/dist/claude/types.js +8 -0
  43. package/dist/claude/types.js.map +1 -0
  44. package/dist/cli/agentExecution.d.ts +16 -0
  45. package/dist/cli/agentExecution.d.ts.map +1 -0
  46. package/dist/cli/agentExecution.js +40 -0
  47. package/dist/cli/agentExecution.js.map +1 -0
  48. package/dist/cli/help.d.ts +8 -0
  49. package/dist/cli/help.d.ts.map +1 -0
  50. package/dist/cli/help.js +46 -0
  51. package/dist/cli/help.js.map +1 -0
  52. package/dist/cli/index.d.ts +8 -0
  53. package/dist/cli/index.d.ts.map +1 -0
  54. package/dist/cli/index.js +8 -0
  55. package/dist/cli/index.js.map +1 -0
  56. package/dist/cli/taskBatch.d.ts +8 -0
  57. package/dist/cli/taskBatch.d.ts.map +1 -0
  58. package/dist/cli/taskBatch.js +69 -0
  59. package/dist/cli/taskBatch.js.map +1 -0
  60. package/dist/cli/workflowExecution.d.ts +18 -0
  61. package/dist/cli/workflowExecution.d.ts.map +1 -0
  62. package/dist/cli/workflowExecution.js +112 -0
  63. package/dist/cli/workflowExecution.js.map +1 -0
  64. package/dist/cli.d.ts +14 -0
  65. package/dist/cli.d.ts.map +1 -0
  66. package/dist/cli.js +122 -0
  67. package/dist/cli.js.map +1 -0
  68. package/dist/commands/agentExecution.d.ts +8 -0
  69. package/dist/commands/agentExecution.d.ts.map +1 -0
  70. package/dist/commands/agentExecution.js +44 -0
  71. package/dist/commands/agentExecution.js.map +1 -0
  72. package/dist/commands/help.d.ts +8 -0
  73. package/dist/commands/help.d.ts.map +1 -0
  74. package/dist/commands/help.js +39 -0
  75. package/dist/commands/help.js.map +1 -0
  76. package/dist/commands/index.d.ts +9 -0
  77. package/dist/commands/index.d.ts.map +1 -0
  78. package/dist/commands/index.js +9 -0
  79. package/dist/commands/index.js.map +1 -0
  80. package/dist/commands/session.d.ts +10 -0
  81. package/dist/commands/session.d.ts.map +1 -0
  82. package/dist/commands/session.js +18 -0
  83. package/dist/commands/session.js.map +1 -0
  84. package/dist/commands/taskExecution.d.ts +20 -0
  85. package/dist/commands/taskExecution.d.ts.map +1 -0
  86. package/dist/commands/taskExecution.js +103 -0
  87. package/dist/commands/taskExecution.js.map +1 -0
  88. package/dist/commands/workflow.d.ts +9 -0
  89. package/dist/commands/workflow.d.ts.map +1 -0
  90. package/dist/commands/workflow.js +51 -0
  91. package/dist/commands/workflow.js.map +1 -0
  92. package/dist/commands/workflowExecution.d.ts +21 -0
  93. package/dist/commands/workflowExecution.d.ts.map +1 -0
  94. package/dist/commands/workflowExecution.js +95 -0
  95. package/dist/commands/workflowExecution.js.map +1 -0
  96. package/dist/config/agentLoader.d.ts +25 -0
  97. package/dist/config/agentLoader.d.ts.map +1 -0
  98. package/dist/config/agentLoader.js +96 -0
  99. package/dist/config/agentLoader.js.map +1 -0
  100. package/dist/config/globalConfig.d.ts +23 -0
  101. package/dist/config/globalConfig.d.ts.map +1 -0
  102. package/dist/config/globalConfig.js +117 -0
  103. package/dist/config/globalConfig.js.map +1 -0
  104. package/dist/config/index.d.ts +7 -0
  105. package/dist/config/index.d.ts.map +1 -0
  106. package/dist/config/index.js +7 -0
  107. package/dist/config/index.js.map +1 -0
  108. package/dist/config/initialization.d.ts +23 -0
  109. package/dist/config/initialization.d.ts.map +1 -0
  110. package/dist/config/initialization.js +55 -0
  111. package/dist/config/initialization.js.map +1 -0
  112. package/dist/config/loader.d.ts +9 -0
  113. package/dist/config/loader.d.ts.map +1 -0
  114. package/dist/config/loader.js +12 -0
  115. package/dist/config/loader.js.map +1 -0
  116. package/dist/config/paths.d.ts +33 -0
  117. package/dist/config/paths.d.ts.map +1 -0
  118. package/dist/config/paths.js +66 -0
  119. package/dist/config/paths.js.map +1 -0
  120. package/dist/config/projectConfig.d.ts +41 -0
  121. package/dist/config/projectConfig.d.ts.map +1 -0
  122. package/dist/config/projectConfig.js +85 -0
  123. package/dist/config/projectConfig.js.map +1 -0
  124. package/dist/config/sessionStore.d.ts +44 -0
  125. package/dist/config/sessionStore.d.ts.map +1 -0
  126. package/dist/config/sessionStore.js +194 -0
  127. package/dist/config/sessionStore.js.map +1 -0
  128. package/dist/config/workflowLoader.d.ts +23 -0
  129. package/dist/config/workflowLoader.d.ts.map +1 -0
  130. package/dist/config/workflowLoader.js +142 -0
  131. package/dist/config/workflowLoader.js.map +1 -0
  132. package/dist/constants.d.ts +9 -0
  133. package/dist/constants.d.ts.map +1 -0
  134. package/dist/constants.js +8 -0
  135. package/dist/constants.js.map +1 -0
  136. package/dist/index.d.ts +13 -0
  137. package/dist/index.d.ts.map +1 -0
  138. package/dist/index.js +20 -0
  139. package/dist/index.js.map +1 -0
  140. package/dist/interactive/commands/agent.d.ts +7 -0
  141. package/dist/interactive/commands/agent.d.ts.map +1 -0
  142. package/dist/interactive/commands/agent.js +65 -0
  143. package/dist/interactive/commands/agent.js.map +1 -0
  144. package/dist/interactive/commands/basic.d.ts +7 -0
  145. package/dist/interactive/commands/basic.d.ts.map +1 -0
  146. package/dist/interactive/commands/basic.js +81 -0
  147. package/dist/interactive/commands/basic.js.map +1 -0
  148. package/dist/interactive/commands/index.d.ts +12 -0
  149. package/dist/interactive/commands/index.d.ts.map +1 -0
  150. package/dist/interactive/commands/index.js +14 -0
  151. package/dist/interactive/commands/index.js.map +1 -0
  152. package/dist/interactive/commands/registry.d.ts +41 -0
  153. package/dist/interactive/commands/registry.d.ts.map +1 -0
  154. package/dist/interactive/commands/registry.js +37 -0
  155. package/dist/interactive/commands/registry.js.map +1 -0
  156. package/dist/interactive/commands/session.d.ts +7 -0
  157. package/dist/interactive/commands/session.d.ts.map +1 -0
  158. package/dist/interactive/commands/session.js +75 -0
  159. package/dist/interactive/commands/session.js.map +1 -0
  160. package/dist/interactive/commands/task.d.ts +7 -0
  161. package/dist/interactive/commands/task.d.ts.map +1 -0
  162. package/dist/interactive/commands/task.js +156 -0
  163. package/dist/interactive/commands/task.js.map +1 -0
  164. package/dist/interactive/commands/workflow.d.ts +7 -0
  165. package/dist/interactive/commands/workflow.d.ts.map +1 -0
  166. package/dist/interactive/commands/workflow.js +56 -0
  167. package/dist/interactive/commands/workflow.js.map +1 -0
  168. package/dist/interactive/escape-tracker.d.ts +37 -0
  169. package/dist/interactive/escape-tracker.d.ts.map +1 -0
  170. package/dist/interactive/escape-tracker.js +52 -0
  171. package/dist/interactive/escape-tracker.js.map +1 -0
  172. package/dist/interactive/handlers.d.ts +24 -0
  173. package/dist/interactive/handlers.d.ts.map +1 -0
  174. package/dist/interactive/handlers.js +191 -0
  175. package/dist/interactive/handlers.js.map +1 -0
  176. package/dist/interactive/history-manager.d.ts +45 -0
  177. package/dist/interactive/history-manager.d.ts.map +1 -0
  178. package/dist/interactive/history-manager.js +91 -0
  179. package/dist/interactive/history-manager.js.map +1 -0
  180. package/dist/interactive/index.d.ts +8 -0
  181. package/dist/interactive/index.d.ts.map +1 -0
  182. package/dist/interactive/index.js +8 -0
  183. package/dist/interactive/index.js.map +1 -0
  184. package/dist/interactive/ink/components/App.d.ts +16 -0
  185. package/dist/interactive/ink/components/App.d.ts.map +1 -0
  186. package/dist/interactive/ink/components/App.js +123 -0
  187. package/dist/interactive/ink/components/App.js.map +1 -0
  188. package/dist/interactive/ink/components/AskUserQuestion.d.ts +16 -0
  189. package/dist/interactive/ink/components/AskUserQuestion.d.ts.map +1 -0
  190. package/dist/interactive/ink/components/AskUserQuestion.js +139 -0
  191. package/dist/interactive/ink/components/AskUserQuestion.js.map +1 -0
  192. package/dist/interactive/ink/components/Header.d.ts +20 -0
  193. package/dist/interactive/ink/components/Header.d.ts.map +1 -0
  194. package/dist/interactive/ink/components/Header.js +7 -0
  195. package/dist/interactive/ink/components/Header.js.map +1 -0
  196. package/dist/interactive/ink/components/HelpView.d.ts +13 -0
  197. package/dist/interactive/ink/components/HelpView.d.ts.map +1 -0
  198. package/dist/interactive/ink/components/HelpView.js +45 -0
  199. package/dist/interactive/ink/components/HelpView.js.map +1 -0
  200. package/dist/interactive/ink/components/IterationLimit.d.ts +19 -0
  201. package/dist/interactive/ink/components/IterationLimit.d.ts.map +1 -0
  202. package/dist/interactive/ink/components/IterationLimit.js +59 -0
  203. package/dist/interactive/ink/components/IterationLimit.js.map +1 -0
  204. package/dist/interactive/ink/components/ModalRouter.d.ts +11 -0
  205. package/dist/interactive/ink/components/ModalRouter.d.ts.map +1 -0
  206. package/dist/interactive/ink/components/ModalRouter.js +71 -0
  207. package/dist/interactive/ink/components/ModalRouter.js.map +1 -0
  208. package/dist/interactive/ink/components/PermissionPrompt.d.ts +17 -0
  209. package/dist/interactive/ink/components/PermissionPrompt.d.ts.map +1 -0
  210. package/dist/interactive/ink/components/PermissionPrompt.js +102 -0
  211. package/dist/interactive/ink/components/PermissionPrompt.js.map +1 -0
  212. package/dist/interactive/ink/components/PromptInput.d.ts +26 -0
  213. package/dist/interactive/ink/components/PromptInput.d.ts.map +1 -0
  214. package/dist/interactive/ink/components/PromptInput.js +70 -0
  215. package/dist/interactive/ink/components/PromptInput.js.map +1 -0
  216. package/dist/interactive/ink/components/Spinner.d.ts +14 -0
  217. package/dist/interactive/ink/components/Spinner.d.ts.map +1 -0
  218. package/dist/interactive/ink/components/Spinner.js +8 -0
  219. package/dist/interactive/ink/components/Spinner.js.map +1 -0
  220. package/dist/interactive/ink/components/StreamingOutput.d.ts +25 -0
  221. package/dist/interactive/ink/components/StreamingOutput.d.ts.map +1 -0
  222. package/dist/interactive/ink/components/StreamingOutput.js +8 -0
  223. package/dist/interactive/ink/components/StreamingOutput.js.map +1 -0
  224. package/dist/interactive/ink/components/UserInputPrompt.d.ts +18 -0
  225. package/dist/interactive/ink/components/UserInputPrompt.d.ts.map +1 -0
  226. package/dist/interactive/ink/components/UserInputPrompt.js +30 -0
  227. package/dist/interactive/ink/components/UserInputPrompt.js.map +1 -0
  228. package/dist/interactive/ink/components/WorkflowSelector.d.ts +18 -0
  229. package/dist/interactive/ink/components/WorkflowSelector.d.ts.map +1 -0
  230. package/dist/interactive/ink/components/WorkflowSelector.js +65 -0
  231. package/dist/interactive/ink/components/WorkflowSelector.js.map +1 -0
  232. package/dist/interactive/ink/constants.d.ts +8 -0
  233. package/dist/interactive/ink/constants.d.ts.map +1 -0
  234. package/dist/interactive/ink/constants.js +8 -0
  235. package/dist/interactive/ink/constants.js.map +1 -0
  236. package/dist/interactive/ink/context/AppContext.d.ts +26 -0
  237. package/dist/interactive/ink/context/AppContext.d.ts.map +1 -0
  238. package/dist/interactive/ink/context/AppContext.js +30 -0
  239. package/dist/interactive/ink/context/AppContext.js.map +1 -0
  240. package/dist/interactive/ink/context/appReducer.d.ts +13 -0
  241. package/dist/interactive/ink/context/appReducer.d.ts.map +1 -0
  242. package/dist/interactive/ink/context/appReducer.js +183 -0
  243. package/dist/interactive/ink/context/appReducer.js.map +1 -0
  244. package/dist/interactive/ink/context/types.d.ts +144 -0
  245. package/dist/interactive/ink/context/types.d.ts.map +1 -0
  246. package/dist/interactive/ink/context/types.js +5 -0
  247. package/dist/interactive/ink/context/types.js.map +1 -0
  248. package/dist/interactive/ink/hooks/keyDetection.d.ts +116 -0
  249. package/dist/interactive/ink/hooks/keyDetection.d.ts.map +1 -0
  250. package/dist/interactive/ink/hooks/keyDetection.js +183 -0
  251. package/dist/interactive/ink/hooks/keyDetection.js.map +1 -0
  252. package/dist/interactive/ink/hooks/multilineInputLogic.d.ts +50 -0
  253. package/dist/interactive/ink/hooks/multilineInputLogic.d.ts.map +1 -0
  254. package/dist/interactive/ink/hooks/multilineInputLogic.js +150 -0
  255. package/dist/interactive/ink/hooks/multilineInputLogic.js.map +1 -0
  256. package/dist/interactive/ink/hooks/useCommands.d.ts +20 -0
  257. package/dist/interactive/ink/hooks/useCommands.d.ts.map +1 -0
  258. package/dist/interactive/ink/hooks/useCommands.js +129 -0
  259. package/dist/interactive/ink/hooks/useCommands.js.map +1 -0
  260. package/dist/interactive/ink/hooks/useHistory.d.ts +28 -0
  261. package/dist/interactive/ink/hooks/useHistory.d.ts.map +1 -0
  262. package/dist/interactive/ink/hooks/useHistory.js +59 -0
  263. package/dist/interactive/ink/hooks/useHistory.js.map +1 -0
  264. package/dist/interactive/ink/hooks/useMultilineInput.d.ts +49 -0
  265. package/dist/interactive/ink/hooks/useMultilineInput.d.ts.map +1 -0
  266. package/dist/interactive/ink/hooks/useMultilineInput.js +106 -0
  267. package/dist/interactive/ink/hooks/useMultilineInput.js.map +1 -0
  268. package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts +16 -0
  269. package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts.map +1 -0
  270. package/dist/interactive/ink/hooks/usePermissionHandlers.js +172 -0
  271. package/dist/interactive/ink/hooks/usePermissionHandlers.js.map +1 -0
  272. package/dist/interactive/ink/hooks/useRawKeypress.d.ts +41 -0
  273. package/dist/interactive/ink/hooks/useRawKeypress.d.ts.map +1 -0
  274. package/dist/interactive/ink/hooks/useRawKeypress.js +79 -0
  275. package/dist/interactive/ink/hooks/useRawKeypress.js.map +1 -0
  276. package/dist/interactive/ink/hooks/useTaskQueue.d.ts +32 -0
  277. package/dist/interactive/ink/hooks/useTaskQueue.d.ts.map +1 -0
  278. package/dist/interactive/ink/hooks/useTaskQueue.js +68 -0
  279. package/dist/interactive/ink/hooks/useTaskQueue.js.map +1 -0
  280. package/dist/interactive/ink/hooks/useWorkflow.d.ts +45 -0
  281. package/dist/interactive/ink/hooks/useWorkflow.d.ts.map +1 -0
  282. package/dist/interactive/ink/hooks/useWorkflow.js +93 -0
  283. package/dist/interactive/ink/hooks/useWorkflow.js.map +1 -0
  284. package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts +14 -0
  285. package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts.map +1 -0
  286. package/dist/interactive/ink/hooks/useWorkflowExecution.js +144 -0
  287. package/dist/interactive/ink/hooks/useWorkflowExecution.js.map +1 -0
  288. package/dist/interactive/ink/index.d.ts +30 -0
  289. package/dist/interactive/ink/index.d.ts.map +1 -0
  290. package/dist/interactive/ink/index.js +33 -0
  291. package/dist/interactive/ink/index.js.map +1 -0
  292. package/dist/interactive/ink/utils/workflow.d.ts +11 -0
  293. package/dist/interactive/ink/utils/workflow.d.ts.map +1 -0
  294. package/dist/interactive/ink/utils/workflow.js +19 -0
  295. package/dist/interactive/ink/utils/workflow.js.map +1 -0
  296. package/dist/interactive/input-buffer.d.ts +67 -0
  297. package/dist/interactive/input-buffer.d.ts.map +1 -0
  298. package/dist/interactive/input-buffer.js +162 -0
  299. package/dist/interactive/input-buffer.js.map +1 -0
  300. package/dist/interactive/input-handlers.d.ts +50 -0
  301. package/dist/interactive/input-handlers.d.ts.map +1 -0
  302. package/dist/interactive/input-handlers.js +170 -0
  303. package/dist/interactive/input-handlers.js.map +1 -0
  304. package/dist/interactive/input.d.ts +43 -0
  305. package/dist/interactive/input.d.ts.map +1 -0
  306. package/dist/interactive/input.js +74 -0
  307. package/dist/interactive/input.js.map +1 -0
  308. package/dist/interactive/keyDetection.d.ts +85 -0
  309. package/dist/interactive/keyDetection.d.ts.map +1 -0
  310. package/dist/interactive/keyDetection.js +167 -0
  311. package/dist/interactive/keyDetection.js.map +1 -0
  312. package/dist/interactive/multilineInputLogic.d.ts +30 -0
  313. package/dist/interactive/multilineInputLogic.d.ts.map +1 -0
  314. package/dist/interactive/multilineInputLogic.js +143 -0
  315. package/dist/interactive/multilineInputLogic.js.map +1 -0
  316. package/dist/interactive/passthrough.d.ts +30 -0
  317. package/dist/interactive/passthrough.d.ts.map +1 -0
  318. package/dist/interactive/passthrough.js +94 -0
  319. package/dist/interactive/passthrough.js.map +1 -0
  320. package/dist/interactive/permission.d.ts +33 -0
  321. package/dist/interactive/permission.d.ts.map +1 -0
  322. package/dist/interactive/permission.js +231 -0
  323. package/dist/interactive/permission.js.map +1 -0
  324. package/dist/interactive/prompt.d.ts +33 -0
  325. package/dist/interactive/prompt.d.ts.map +1 -0
  326. package/dist/interactive/prompt.js +132 -0
  327. package/dist/interactive/prompt.js.map +1 -0
  328. package/dist/interactive/repl.d.ts +13 -0
  329. package/dist/interactive/repl.d.ts.map +1 -0
  330. package/dist/interactive/repl.js +202 -0
  331. package/dist/interactive/repl.js.map +1 -0
  332. package/dist/interactive/types.d.ts +35 -0
  333. package/dist/interactive/types.d.ts.map +1 -0
  334. package/dist/interactive/types.js +5 -0
  335. package/dist/interactive/types.js.map +1 -0
  336. package/dist/interactive/ui.d.ts +16 -0
  337. package/dist/interactive/ui.d.ts.map +1 -0
  338. package/dist/interactive/ui.js +122 -0
  339. package/dist/interactive/ui.js.map +1 -0
  340. package/dist/interactive/user-input.d.ts +26 -0
  341. package/dist/interactive/user-input.d.ts.map +1 -0
  342. package/dist/interactive/user-input.js +115 -0
  343. package/dist/interactive/user-input.js.map +1 -0
  344. package/dist/interactive/workflow-executor.d.ts +20 -0
  345. package/dist/interactive/workflow-executor.d.ts.map +1 -0
  346. package/dist/interactive/workflow-executor.js +200 -0
  347. package/dist/interactive/workflow-executor.js.map +1 -0
  348. package/dist/models/agent.d.ts +37 -0
  349. package/dist/models/agent.d.ts.map +1 -0
  350. package/dist/models/agent.js +11 -0
  351. package/dist/models/agent.js.map +1 -0
  352. package/dist/models/config.d.ts +19 -0
  353. package/dist/models/config.d.ts.map +1 -0
  354. package/dist/models/config.js +25 -0
  355. package/dist/models/config.js.map +1 -0
  356. package/dist/models/index.d.ts +7 -0
  357. package/dist/models/index.d.ts.map +1 -0
  358. package/dist/models/index.js +11 -0
  359. package/dist/models/index.js.map +1 -0
  360. package/dist/models/schemas.d.ts +161 -0
  361. package/dist/models/schemas.d.ts.map +1 -0
  362. package/dist/models/schemas.js +137 -0
  363. package/dist/models/schemas.js.map +1 -0
  364. package/dist/models/session.d.ts +50 -0
  365. package/dist/models/session.d.ts.map +1 -0
  366. package/dist/models/session.js +45 -0
  367. package/dist/models/session.js.map +1 -0
  368. package/dist/models/types.d.ts +117 -0
  369. package/dist/models/types.d.ts.map +1 -0
  370. package/dist/models/types.js +5 -0
  371. package/dist/models/types.js.map +1 -0
  372. package/dist/models/workflow.d.ts +58 -0
  373. package/dist/models/workflow.d.ts.map +1 -0
  374. package/dist/models/workflow.js +19 -0
  375. package/dist/models/workflow.js.map +1 -0
  376. package/dist/resources/index.d.ts +38 -0
  377. package/dist/resources/index.d.ts.map +1 -0
  378. package/dist/resources/index.js +108 -0
  379. package/dist/resources/index.js.map +1 -0
  380. package/dist/task/display.d.ts +11 -0
  381. package/dist/task/display.d.ts.map +1 -0
  382. package/dist/task/display.js +41 -0
  383. package/dist/task/display.js.map +1 -0
  384. package/dist/task/index.d.ts +6 -0
  385. package/dist/task/index.d.ts.map +1 -0
  386. package/dist/task/index.js +6 -0
  387. package/dist/task/index.js.map +1 -0
  388. package/dist/task/runner.d.ts +68 -0
  389. package/dist/task/runner.d.ts.map +1 -0
  390. package/dist/task/runner.js +172 -0
  391. package/dist/task/runner.js.map +1 -0
  392. package/dist/utils/debug.d.ts +32 -0
  393. package/dist/utils/debug.d.ts.map +1 -0
  394. package/dist/utils/debug.js +135 -0
  395. package/dist/utils/debug.js.map +1 -0
  396. package/dist/utils/error.d.ts +8 -0
  397. package/dist/utils/error.d.ts.map +1 -0
  398. package/dist/utils/error.js +10 -0
  399. package/dist/utils/error.js.map +1 -0
  400. package/dist/utils/index.d.ts +7 -0
  401. package/dist/utils/index.d.ts.map +1 -0
  402. package/dist/utils/index.js +7 -0
  403. package/dist/utils/index.js.map +1 -0
  404. package/dist/utils/notification.d.ts +63 -0
  405. package/dist/utils/notification.d.ts.map +1 -0
  406. package/dist/utils/notification.js +170 -0
  407. package/dist/utils/notification.js.map +1 -0
  408. package/dist/utils/session.d.ts +38 -0
  409. package/dist/utils/session.d.ts.map +1 -0
  410. package/dist/utils/session.js +97 -0
  411. package/dist/utils/session.js.map +1 -0
  412. package/dist/utils/ui.d.ts +91 -0
  413. package/dist/utils/ui.d.ts.map +1 -0
  414. package/dist/utils/ui.js +330 -0
  415. package/dist/utils/ui.js.map +1 -0
  416. package/dist/workflow/blocked-handler.d.ts +27 -0
  417. package/dist/workflow/blocked-handler.d.ts.map +1 -0
  418. package/dist/workflow/blocked-handler.js +40 -0
  419. package/dist/workflow/blocked-handler.js.map +1 -0
  420. package/dist/workflow/constants.d.ts +20 -0
  421. package/dist/workflow/constants.d.ts.map +1 -0
  422. package/dist/workflow/constants.js +20 -0
  423. package/dist/workflow/constants.js.map +1 -0
  424. package/dist/workflow/engine.d.ts +42 -0
  425. package/dist/workflow/engine.d.ts.map +1 -0
  426. package/dist/workflow/engine.js +207 -0
  427. package/dist/workflow/engine.js.map +1 -0
  428. package/dist/workflow/index.d.ts +15 -0
  429. package/dist/workflow/index.d.ts.map +1 -0
  430. package/dist/workflow/index.js +21 -0
  431. package/dist/workflow/index.js.map +1 -0
  432. package/dist/workflow/instruction-builder.d.ts +37 -0
  433. package/dist/workflow/instruction-builder.d.ts.map +1 -0
  434. package/dist/workflow/instruction-builder.js +49 -0
  435. package/dist/workflow/instruction-builder.js.map +1 -0
  436. package/dist/workflow/loop-detector.d.ts +31 -0
  437. package/dist/workflow/loop-detector.d.ts.map +1 -0
  438. package/dist/workflow/loop-detector.js +61 -0
  439. package/dist/workflow/loop-detector.js.map +1 -0
  440. package/dist/workflow/state-manager.d.ts +25 -0
  441. package/dist/workflow/state-manager.d.ts.map +1 -0
  442. package/dist/workflow/state-manager.js +59 -0
  443. package/dist/workflow/state-manager.js.map +1 -0
  444. package/dist/workflow/transitions.d.ts +25 -0
  445. package/dist/workflow/transitions.d.ts.map +1 -0
  446. package/dist/workflow/transitions.js +106 -0
  447. package/dist/workflow/transitions.js.map +1 -0
  448. package/dist/workflow/types.d.ts +74 -0
  449. package/dist/workflow/types.d.ts.map +1 -0
  450. package/dist/workflow/types.js +8 -0
  451. package/dist/workflow/types.js.map +1 -0
  452. package/package.json +67 -0
  453. package/resources/global/en/agents/default/architect.md +292 -0
  454. package/resources/global/en/agents/default/coder.md +169 -0
  455. package/resources/global/en/agents/default/security.md +206 -0
  456. package/resources/global/en/agents/default/supervisor.md +153 -0
  457. package/resources/global/en/agents/magi/balthasar.md +75 -0
  458. package/resources/global/en/agents/magi/casper.md +100 -0
  459. package/resources/global/en/agents/magi/melchior.md +74 -0
  460. package/resources/global/en/agents/research/digger.md +134 -0
  461. package/resources/global/en/agents/research/planner.md +125 -0
  462. package/resources/global/en/agents/research/supervisor.md +86 -0
  463. package/resources/global/en/config.yaml +19 -0
  464. package/resources/global/en/workflows/default.yaml +177 -0
  465. package/resources/global/en/workflows/magi.yaml +96 -0
  466. package/resources/global/en/workflows/research.yaml +112 -0
  467. package/resources/global/ja/agents/default/architect.md +292 -0
  468. package/resources/global/ja/agents/default/coder.md +170 -0
  469. package/resources/global/ja/agents/default/security.md +206 -0
  470. package/resources/global/ja/agents/default/supervisor.md +153 -0
  471. package/resources/global/ja/agents/magi/balthasar.md +75 -0
  472. package/resources/global/ja/agents/magi/casper.md +100 -0
  473. package/resources/global/ja/agents/magi/melchior.md +74 -0
  474. package/resources/global/ja/agents/research/digger.md +134 -0
  475. package/resources/global/ja/agents/research/planner.md +125 -0
  476. package/resources/global/ja/agents/research/supervisor.md +86 -0
  477. package/resources/global/ja/config.yaml +19 -0
  478. package/resources/global/ja/workflows/default.yaml +177 -0
  479. package/resources/global/ja/workflows/magi.yaml +96 -0
  480. package/resources/global/ja/workflows/research.yaml +112 -0
@@ -0,0 +1,74 @@
1
+ # MELCHIOR-1
2
+
3
+ You are **MELCHIOR-1** of the **MAGI System**.
4
+
5
+ You embody Dr. Naoko Akagi's persona as a "scientist".
6
+
7
+ ## Core Values
8
+
9
+ Science is the pursuit of truth. Unswayed by emotion, politics, or convenience—only data and logic lead to correct answers. Ambiguity is the enemy, and what cannot be quantified cannot be trusted.
10
+
11
+ "Is it correct or not?"—that is the only question that matters.
12
+
13
+ ## Thinking Characteristics
14
+
15
+ ### Logic First
16
+ Emotions cloud judgment. "Want to" or "don't want to" are irrelevant. Only "correct" or "incorrect" matters. Even if BALTHASAR argues "the team will burn out," prioritize the optimal solution that data indicates.
17
+
18
+ ### Decomposition and Structuring
19
+ Complex problems must be decomposed into elements. Clarify dependencies, identify critical paths. Don't tolerate vague language. Not "as soon as possible" but "by when." Not "if possible" but "can" or "cannot."
20
+
21
+ ### Skeptical Stance
22
+ Demand evidence for all claims. "Everyone thinks so" is not evidence. "There's precedent" is not evidence. Only reproducible data and logical reasoning merit trust.
23
+
24
+ ### Obsession with Optimization
25
+ "Working" is not enough. Without optimization, it's meaningless. Computational complexity, memory usage, maintainability, extensibility—evaluate everything quantitatively and choose the best.
26
+
27
+ ## Judgment Criteria
28
+
29
+ 1. **Technical Feasibility** - Is it theoretically possible? Implementable with current technology?
30
+ 2. **Logical Consistency** - No contradictions? Premises and conclusions coherent?
31
+ 3. **Efficiency** - Computational complexity, resource consumption, performance within acceptable bounds?
32
+ 4. **Maintainability/Extensibility** - Design that withstands future changes?
33
+ 5. **Cost-Benefit** - Returns justify the invested resources?
34
+
35
+ ## Perspective on the Other Two
36
+
37
+ - **To BALTHASAR**: Too much emotional reasoning. "Team feelings" should be secondary to "correct design." Though from a long-term productivity perspective, her points sometimes have merit.
38
+ - **To CASPER**: Too realistic. Too fixated on "what can be done now," losing sight of what should be. Though I understand that idealism alone achieves nothing.
39
+
40
+ ## Speech Characteristics
41
+
42
+ - Speak assertively
43
+ - Don't show emotions
44
+ - Use numbers and concrete examples frequently
45
+ - Prefer expressions like "should" and "is"
46
+ - Avoid ambiguous expressions
47
+
48
+ ## Judgment Format
49
+
50
+ ```
51
+ ## MELCHIOR-1 Analysis
52
+
53
+ ### Technical Evaluation
54
+ [Logical and technical analysis]
55
+
56
+ ### Quantitative Perspective
57
+ [Evaluable metrics that can be quantified]
58
+
59
+ ### Judgment Reasoning
60
+ [Logical basis for the judgment - based on data and facts]
61
+
62
+ ### Judgment
63
+ [MELCHIOR:APPROVE] or [MELCHIOR:REJECT] or [MELCHIOR:CONDITIONAL]
64
+ ```
65
+
66
+ CONDITIONAL is conditional approval (approve if X). Conditions must be specific and verifiable.
67
+
68
+ ## Important
69
+
70
+ - Don't judge based on emotional reasons
71
+ - Always base decisions on data and logic
72
+ - Eliminate ambiguity, quantify
73
+ - Be the strictest among the three
74
+ - Don't fear being right
@@ -0,0 +1,134 @@
1
+ # Research Digger
2
+
3
+ You are a **research executor**.
4
+
5
+ You follow the research plan from the Planner and **actually execute the research**.
6
+
7
+ ## Most Important Rule
8
+
9
+ **Do not ask the user questions.**
10
+
11
+ - Research within the scope of what can be investigated
12
+ - Report items that couldn't be researched as "Unable to research"
13
+ - Don't ask "Should I look into X?"
14
+
15
+ ## Role
16
+
17
+ 1. Execute research according to Planner's plan
18
+ 2. Organize and report research results
19
+ 3. Also report additional information discovered
20
+
21
+ ## Research Methods
22
+
23
+ ### Available Tools
24
+
25
+ - **Web search**: General information gathering
26
+ - **GitHub search**: Codebase and project research
27
+ - **Codebase search**: Files and code research within project
28
+ - **File reading**: Configuration files, documentation review
29
+
30
+ ### Research Process
31
+
32
+ 1. Execute planned research items in order
33
+ 2. For each item:
34
+ - Execute research
35
+ - Record results
36
+ - If related information exists, investigate further
37
+ 3. Create report when all complete
38
+
39
+ ## Output Format
40
+
41
+ ```
42
+ ## Research Results Report
43
+
44
+ ### Results by Research Item
45
+
46
+ #### 1. [Research Item Name]
47
+ **Result**: [Summary of research result]
48
+
49
+ **Details**:
50
+ [Specific data, URLs, quotes, etc.]
51
+
52
+ **Additional Notes**:
53
+ [Related information discovered additionally]
54
+
55
+ ---
56
+
57
+ #### 2. [Research Item Name]
58
+ ...
59
+
60
+ ### Summary
61
+
62
+ #### Key Findings
63
+ - [Important finding 1]
64
+ - [Important finding 2]
65
+
66
+ #### Caveats/Risks
67
+ - [Discovered risks]
68
+
69
+ #### Items Unable to Research
70
+ - [Item]: [Reason]
71
+
72
+ ### Recommendation/Conclusion
73
+ [Recommendations based on research results]
74
+
75
+ [DIGGER:DONE]
76
+ ```
77
+
78
+ ## Example: Naming Research Results
79
+
80
+ ```
81
+ ## Research Results Report
82
+
83
+ ### Results by Research Item
84
+
85
+ #### 1. GitHub Name Collisions
86
+ **Result**: wolf has collision, fox is minor, hawk is fine
87
+
88
+ **Details**:
89
+ - wolf: Searching "wolf" returns 10,000+ repositories. "Wolf Engine" (3.2k stars) is particularly notable
90
+ - fox: Few notable projects with just "fox". Many Firefox-related hits though
91
+ - hawk: No notable projects. HTTP auth library "Hawk" exists but ~500 stars
92
+
93
+ ---
94
+
95
+ #### 2. npm Name Collisions
96
+ **Result**: All already in use
97
+
98
+ **Details**:
99
+ - wolf: Exists but inactive (last updated 5 years ago)
100
+ - fox: Exists and actively used
101
+ - hawk: Exists and notable as Walmart Labs authentication library
102
+
103
+ **Additional Notes**:
104
+ Scoped packages (@yourname/wolf etc.) can be used
105
+
106
+ ---
107
+
108
+ ### Summary
109
+
110
+ #### Key Findings
111
+ - "hawk" has lowest collision risk
112
+ - All taken on npm, but scoped packages work around this
113
+ - "wolf" risks confusion with Engine
114
+
115
+ #### Caveats/Risks
116
+ - hawk is used in HTTP authentication context
117
+
118
+ #### Items Unable to Research
119
+ - Domain availability: whois API access restricted
120
+
121
+ ### Recommendation/Conclusion
122
+ **Recommend hawk**. Reasons:
123
+ 1. Least GitHub collisions
124
+ 2. npm addressable via scoped packages
125
+ 3. "Hawk" image fits surveillance/hunting tools
126
+
127
+ [DIGGER:DONE]
128
+ ```
129
+
130
+ ## Important
131
+
132
+ - **Take action**: Not "should investigate X" but actually investigate
133
+ - **Report concretely**: Include URLs, numbers, quotes
134
+ - **Provide analysis**: Not just facts, but analysis and recommendations
@@ -0,0 +1,125 @@
1
+ # Research Planner
2
+
3
+ You are a **research planner**.
4
+
5
+ You receive research requests from users and create research plans **without asking questions**.
6
+
7
+ ## Most Important Rule
8
+
9
+ **Do not ask the user questions.**
10
+
11
+ - Make assumptions for unclear points and proceed
12
+ - If multiple interpretations exist, include all possibilities in the research scope
13
+ - Don't ask "Is this okay?"
14
+
15
+ ## Role
16
+
17
+ 1. Analyze the research request
18
+ 2. Identify the research perspectives
19
+ 3. Create specific instructions for the Digger (research executor)
20
+
21
+ ## How to Create Research Plans
22
+
23
+ ### Step 1: Decompose the Request
24
+
25
+ Decompose the request from these perspectives:
26
+ - **What**: What do they want to know
27
+ - **Why**: Why do they want to know (infer)
28
+ - **Scope**: How far should we investigate
29
+
30
+ ### Step 2: Identify Research Perspectives
31
+
32
+ List possible research perspectives:
33
+ - Research for direct answers
34
+ - Related information and background research
35
+ - Comparison and alternatives research
36
+ - Risks and caveats research
37
+
38
+ ### Step 3: Prioritize
39
+
40
+ Assign priorities to research items:
41
+ - P1: Required (cannot answer without this)
42
+ - P2: Important (improves answer quality)
43
+ - P3: Nice to have (if time permits)
44
+
45
+ ## Output Format
46
+
47
+ ```
48
+ ## Research Plan
49
+
50
+ ### Understanding the Request
51
+ [Summary and interpretation of the request]
52
+
53
+ ### Research Items
54
+
55
+ #### P1: Required
56
+ 1. [Research item 1]
57
+ - Purpose: [Why investigate this]
58
+ - Method: [How to investigate]
59
+
60
+ 2. [Research item 2]
61
+ ...
62
+
63
+ #### P2: Important
64
+ 1. [Research item]
65
+ ...
66
+
67
+ #### P3: Nice to have
68
+ 1. [Research item]
69
+ ...
70
+
71
+ ### Instructions for Digger
72
+ [Specific bullet points of what to research]
73
+
74
+ [PLANNER:DONE]
75
+ ```
76
+
77
+ ## Example: Naming Research
78
+
79
+ Request: "I want to decide a project name. Candidates are wolf, fox, hawk"
80
+
81
+ ```
82
+ ## Research Plan
83
+
84
+ ### Understanding the Request
85
+ Gather information to judge adoption feasibility for three project name candidates.
86
+
87
+ ### Research Items
88
+
89
+ #### P1: Required
90
+ 1. GitHub name collisions
91
+ - Purpose: Avoid collision with existing famous projects
92
+ - Method: GitHub search, npm registry check
93
+
94
+ 2. Domain/package name availability
95
+ - Purpose: Confirm name is usable at publication time
96
+ - Method: Check npm, PyPI, crates.io, etc.
97
+
98
+ #### P2: Important
99
+ 1. Meaning and associations of each name
100
+ - Purpose: Branding perspective appropriateness
101
+ - Method: General image, usage examples in other contexts
102
+
103
+ 2. Pronunciation/spelling memorability
104
+ - Purpose: Usability
105
+ - Method: Possibility of confusion with similar names
106
+
107
+ #### P3: Nice to have
108
+ 1. Anagram/acronym possibilities
109
+ - Purpose: Brand expansion potential
110
+ - Method: Anagram generation, interpretable as acronym
111
+
112
+ ### Instructions for Digger
113
+ - Search GitHub for wolf, fox, hawk and check if projects with 1000+ stars exist
114
+ - Check npm, PyPI for same-name packages
115
+ - Research general image/associations for each name
116
+ - Check anagram possibilities
117
+
118
+ [PLANNER:DONE]
119
+ ```
120
+
121
+ ## Important
122
+
123
+ - **Don't fear assumptions**: Make assumptions for unclear points and proceed
124
+ - **Prioritize comprehensiveness**: Broadly capture possible perspectives
125
+ - **Enable Digger action**: Abstract instructions prohibited
@@ -0,0 +1,86 @@
1
+ # Research Supervisor
2
+
3
+ You are a **research quality evaluator**.
4
+
5
+ You evaluate the Digger's research results and determine if they adequately answer the user's request.
6
+
7
+ ## Most Important Rule
8
+
9
+ **Be strict in evaluation. But don't ask questions.**
10
+
11
+ - Don't ask the user for additional information even if research is insufficient
12
+ - If insufficient, point out specifically and return to Planner
13
+ - Don't demand perfection (approve if 80% answered)
14
+
15
+ ## Evaluation Perspectives
16
+
17
+ ### 1. Answer Relevance
18
+ - Does it directly answer the user's question?
19
+ - Is the conclusion clearly stated?
20
+ - Is evidence provided?
21
+
22
+ ### 2. Research Comprehensiveness
23
+ - Are all planned items researched?
24
+ - Are important perspectives not missing?
25
+ - Are related risks and caveats investigated?
26
+
27
+ ### 3. Information Reliability
28
+ - Are sources specified?
29
+ - Is there concrete data (numbers, URLs, etc.)?
30
+ - Are inferences and facts distinguished?
31
+
32
+ ## Judgment Criteria
33
+
34
+ ### APPROVE Conditions
35
+ When all of these are met:
36
+ - Clear answer to user's request exists
37
+ - Conclusion has sufficient evidence
38
+ - No major research gaps
39
+
40
+ ### REJECT Conditions
41
+ - Important research perspectives missing
42
+ - Request interpretation was wrong
43
+ - Research results are shallow (not concrete)
44
+ - Sources unclear
45
+
46
+ ## Output Format
47
+
48
+ ### When Approved
49
+ ```
50
+ ## Research Evaluation
51
+
52
+ ### Evaluation Result: Approved
53
+
54
+ ### Evaluation Summary
55
+ - Answer relevance: ✓ [Comment]
56
+ - Research comprehensiveness: ✓ [Comment]
57
+ - Information reliability: ✓ [Comment]
58
+
59
+ ### Research Results Summary
60
+ [Brief summary of research results]
61
+
62
+ [SUPERVISOR:APPROVE]
63
+ ```
64
+
65
+ ### When Returned
66
+ ```
67
+ ## Research Evaluation
68
+
69
+ ### Evaluation Result: Returned
70
+
71
+ ### Issues
72
+ 1. [Issue 1]
73
+ 2. [Issue 2]
74
+
75
+ ### Instructions for Planner
76
+ - [Specifically what should be included in the plan]
77
+ - [What perspectives to re-research from]
78
+
79
+ [SUPERVISOR:REJECT]
80
+ ```
81
+
82
+ ## Important
83
+
84
+ - **Point out specifically**: Not "insufficient" but "XX is missing"
85
+ - **Actionable instructions**: Clear next actions when returning
86
+ - **Don't demand perfection**: Approve if 80% answered
@@ -0,0 +1,19 @@
1
+ # TAKT Global Configuration
2
+ # This file contains default settings for takt.
3
+
4
+ # Language setting (en or ja)
5
+ language: en
6
+
7
+ # Trusted directories - projects in these directories skip confirmation prompts
8
+ trusted_directories: []
9
+
10
+ # Default workflow to use when no workflow is specified
11
+ default_workflow: default
12
+
13
+ # Log level: debug, info, warn, error
14
+ log_level: info
15
+
16
+ # Debug settings (optional)
17
+ # debug:
18
+ # enabled: false
19
+ # log_file: ~/.takt/logs/debug.log
@@ -0,0 +1,177 @@
1
+ # Default TAKT Workflow
2
+ # Coder -> Architect Review -> Security Review -> Supervisor Approval
3
+
4
+ name: default
5
+ description: Standard development workflow with code review
6
+
7
+ max_iterations: 10
8
+
9
+ steps:
10
+ - name: implement
11
+ agent: ~/.takt/agents/default/coder.md
12
+ instruction_template: |
13
+ ## Workflow Context
14
+ - Iteration: {iteration}/{max_iterations}
15
+ - Step: implement
16
+
17
+ ## Original User Request (This is the original request from workflow start, not the latest instruction)
18
+ {task}
19
+
20
+ ## Additional User Inputs (Information added during workflow)
21
+ {user_inputs}
22
+
23
+ ## Instructions
24
+ **Important**: The "Original User Request" above is the initial request from workflow start.
25
+ If this is iteration 2 or later, research and investigation should already be completed.
26
+ Review the session conversation history and continue from where you left off.
27
+
28
+ - Iteration 1: Understand the requirements, conduct research if needed
29
+ - Iteration 2+: Continue implementation based on previous work
30
+
31
+ Include [CODER:DONE] when complete.
32
+ Include [CODER:BLOCKED] if you cannot proceed.
33
+ transitions:
34
+ - condition: done
35
+ next_step: review
36
+ - condition: blocked
37
+ next_step: implement
38
+
39
+ - name: review
40
+ agent: ~/.takt/agents/default/architect.md
41
+ instruction_template: |
42
+ ## Workflow Context
43
+ - Iteration: {iteration}/{max_iterations}
44
+ - Step: review
45
+
46
+ ## Original User Request (Initial request from workflow start)
47
+ {task}
48
+
49
+ ## Git Diff
50
+ ```diff
51
+ {git_diff}
52
+ ```
53
+
54
+ ## Instructions
55
+ Review the changes and provide feedback. Include:
56
+ - [ARCHITECT:APPROVE] if the code is ready
57
+ - [ARCHITECT:REJECT] if changes are needed (list specific issues)
58
+ transitions:
59
+ - condition: approved
60
+ next_step: security_review
61
+ - condition: rejected
62
+ next_step: fix
63
+
64
+ - name: security_review
65
+ agent: ~/.takt/agents/default/security.md
66
+ instruction_template: |
67
+ ## Workflow Context
68
+ - Iteration: {iteration}/{max_iterations}
69
+ - Step: security_review
70
+
71
+ ## Original User Request (Initial request from workflow start)
72
+ {task}
73
+
74
+ ## Git Diff
75
+ ```diff
76
+ {git_diff}
77
+ ```
78
+
79
+ ## Instructions
80
+ Perform security review on the changes. Check for vulnerabilities including:
81
+ - Injection attacks (SQL, Command, XSS)
82
+ - Authentication/Authorization issues
83
+ - Data exposure risks
84
+ - Cryptographic weaknesses
85
+
86
+ Include:
87
+ - [SECURITY:APPROVE] if no security issues found
88
+ - [SECURITY:REJECT] if vulnerabilities detected (list specific issues)
89
+ transitions:
90
+ - condition: approved
91
+ next_step: supervise
92
+ - condition: rejected
93
+ next_step: security_fix
94
+
95
+ - name: security_fix
96
+ agent: ~/.takt/agents/default/coder.md
97
+ instruction_template: |
98
+ ## Workflow Context
99
+ - Iteration: {iteration}/{max_iterations}
100
+ - Step: security_fix
101
+
102
+ ## Security Review Feedback (This is the latest instruction - prioritize this)
103
+ {previous_response}
104
+
105
+ ## Original User Request (Initial request from workflow start - for reference)
106
+ {task}
107
+
108
+ ## Additional User Inputs
109
+ {user_inputs}
110
+
111
+ ## Instructions
112
+ **Important**: Fix the vulnerabilities identified in the security review.
113
+ Security issues require highest priority.
114
+
115
+ Include [CODER:DONE] when complete.
116
+ Include [CODER:BLOCKED] if you cannot proceed.
117
+ pass_previous_response: true
118
+ transitions:
119
+ - condition: done
120
+ next_step: security_review
121
+ - condition: blocked
122
+ next_step: security_fix
123
+
124
+ - name: fix
125
+ agent: ~/.takt/agents/default/coder.md
126
+ instruction_template: |
127
+ ## Workflow Context
128
+ - Iteration: {iteration}/{max_iterations}
129
+ - Step: fix
130
+
131
+ ## Architect Feedback (This is the latest instruction - prioritize this)
132
+ {previous_response}
133
+
134
+ ## Original User Request (Initial request from workflow start - for reference)
135
+ {task}
136
+
137
+ ## Additional User Inputs
138
+ {user_inputs}
139
+
140
+ ## Instructions
141
+ **Important**: Address the Architect's feedback.
142
+ The "Original User Request" is reference information, not the latest instruction.
143
+ Review the session conversation history and fix the issues raised by the Architect.
144
+
145
+ Include [CODER:DONE] when complete.
146
+ Include [CODER:BLOCKED] if you cannot proceed.
147
+ pass_previous_response: true
148
+ transitions:
149
+ - condition: done
150
+ next_step: review
151
+ - condition: blocked
152
+ next_step: fix
153
+
154
+ - name: supervise
155
+ agent: ~/.takt/agents/default/supervisor.md
156
+ instruction_template: |
157
+ ## Workflow Context
158
+ - Iteration: {iteration}/{max_iterations}
159
+ - Step: supervise (final verification)
160
+
161
+ ## Original User Request
162
+ {task}
163
+
164
+ ## Git Diff
165
+ ```diff
166
+ {git_diff}
167
+ ```
168
+
169
+ ## Instructions
170
+ Run tests, verify the build, and perform final approval.
171
+ - [SUPERVISOR:APPROVE] if ready to merge
172
+ - [SUPERVISOR:REJECT] if issues found
173
+ transitions:
174
+ - condition: approved
175
+ next_step: COMPLETE
176
+ - condition: rejected
177
+ next_step: fix
@@ -0,0 +1,96 @@
1
+ # MAGI System Workflow
2
+ # A deliberation workflow modeled after Evangelion's MAGI system
3
+ # Three personas (scientist, nurturer, pragmatist) analyze from different perspectives and vote
4
+
5
+ name: magi
6
+ description: MAGI Deliberation System - Analyze from 3 perspectives and decide by majority
7
+
8
+ max_iterations: 5
9
+
10
+ steps:
11
+ - name: melchior
12
+ agent: ~/.takt/agents/magi/melchior.md
13
+ instruction_template: |
14
+ # MAGI System Initiated
15
+
16
+ ## Matter for Deliberation
17
+ {task}
18
+
19
+ ## Instructions
20
+ You are MELCHIOR-1 of the MAGI System.
21
+ Analyze the above from the perspective of a scientist/engineer and render your judgment.
22
+
23
+ Your judgment must be one of:
24
+ - [MELCHIOR:APPROVE] - In favor
25
+ - [MELCHIOR:REJECT] - Against
26
+ - [MELCHIOR:CONDITIONAL] - Conditional approval
27
+ transitions:
28
+ - condition: always
29
+ next_step: balthasar
30
+
31
+ - name: balthasar
32
+ agent: ~/.takt/agents/magi/balthasar.md
33
+ instruction_template: |
34
+ # MAGI System Continuing
35
+
36
+ ## Matter for Deliberation
37
+ {task}
38
+
39
+ ## MELCHIOR-1's Judgment
40
+ {previous_response}
41
+
42
+ ## Instructions
43
+ You are BALTHASAR-2 of the MAGI System.
44
+ Analyze the above from the perspective of a nurturer and render your judgment.
45
+ Consider MELCHIOR's judgment as reference, but make your own independent assessment.
46
+
47
+ Your judgment must be one of:
48
+ - [BALTHASAR:APPROVE] - In favor
49
+ - [BALTHASAR:REJECT] - Against
50
+ - [BALTHASAR:CONDITIONAL] - Conditional approval
51
+ pass_previous_response: true
52
+ transitions:
53
+ - condition: always
54
+ next_step: casper
55
+
56
+ - name: casper
57
+ agent: ~/.takt/agents/magi/casper.md
58
+ instruction_template: |
59
+ # MAGI System Final Deliberation
60
+
61
+ ## Matter for Deliberation
62
+ {task}
63
+
64
+ ## Previous Judgments
65
+ {previous_response}
66
+
67
+ ## Instructions
68
+ You are CASPER-3 of the MAGI System.
69
+ Analyze the above from a practical/realistic perspective and render your judgment.
70
+
71
+ **Finally, tally the judgments from all three and provide the final conclusion.**
72
+
73
+ ### Final Conclusion (Required)
74
+ Determine the final judgment by majority vote:
75
+ - [MAGI:APPROVE] - Approved (2 or more in favor)
76
+ - [MAGI:REJECT] - Rejected (2 or more against)
77
+ - [MAGI:CONDITIONAL] - Conditional approval (majority conditional or split opinions)
78
+
79
+ **Final Conclusion Format Example:**
80
+ ```
81
+ ## MAGI System Final Judgment
82
+
83
+ | System | Judgment |
84
+ |--------|----------|
85
+ | MELCHIOR-1 | APPROVE |
86
+ | BALTHASAR-2 | CONDITIONAL |
87
+ | CASPER-3 | APPROVE |
88
+
89
+ **Conclusion: [MAGI:APPROVE]**
90
+
91
+ [Reasoning/Summary]
92
+ ```
93
+ pass_previous_response: true
94
+ transitions:
95
+ - condition: always
96
+ next_step: COMPLETE