takt 0.1.0 → 0.1.2
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.
- package/README.md +78 -4
- package/dist/agents/runner.d.ts +3 -0
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +70 -14
- package/dist/agents/runner.js.map +1 -1
- package/dist/claude/client.d.ts +1 -1
- package/dist/claude/client.d.ts.map +1 -1
- package/dist/claude/client.js +4 -3
- package/dist/claude/client.js.map +1 -1
- package/dist/claude/index.d.ts +1 -1
- package/dist/claude/index.d.ts.map +1 -1
- package/dist/claude/index.js.map +1 -1
- package/dist/claude/process.d.ts +1 -1
- package/dist/claude/process.d.ts.map +1 -1
- package/dist/claude/process.js.map +1 -1
- package/dist/claude/types.d.ts +7 -0
- package/dist/claude/types.d.ts.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +10 -4
- package/dist/cli.js.map +1 -1
- package/dist/codex/client.d.ts +26 -0
- package/dist/codex/client.d.ts.map +1 -0
- package/dist/codex/client.js +418 -0
- package/dist/codex/client.js.map +1 -0
- package/dist/codex/index.d.ts +5 -0
- package/dist/codex/index.d.ts.map +1 -0
- package/dist/codex/index.js +5 -0
- package/dist/codex/index.js.map +1 -0
- package/dist/commands/config.d.ts +33 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +110 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/workflow.js +1 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/commands/workflowExecution.d.ts.map +1 -1
- package/dist/commands/workflowExecution.js +3 -1
- package/dist/commands/workflowExecution.js.map +1 -1
- package/dist/config/globalConfig.d.ts +2 -0
- package/dist/config/globalConfig.d.ts.map +1 -1
- package/dist/config/globalConfig.js +12 -0
- package/dist/config/globalConfig.js.map +1 -1
- package/dist/config/initialization.d.ts +10 -0
- package/dist/config/initialization.d.ts.map +1 -1
- package/dist/config/initialization.js +26 -4
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/projectConfig.d.ts +14 -1
- package/dist/config/projectConfig.d.ts.map +1 -1
- package/dist/config/projectConfig.js +4 -0
- package/dist/config/projectConfig.js.map +1 -1
- package/dist/config/workflowLoader.d.ts.map +1 -1
- package/dist/config/workflowLoader.js +3 -0
- package/dist/config/workflowLoader.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/models/schemas.d.ts +54 -3
- package/dist/models/schemas.d.ts.map +1 -1
- package/dist/models/schemas.js +34 -46
- package/dist/models/schemas.js.map +1 -1
- package/dist/models/types.d.ts +12 -2
- package/dist/models/types.d.ts.map +1 -1
- package/dist/{interactive/prompt.d.ts → prompt/index.d.ts} +3 -1
- package/dist/prompt/index.d.ts.map +1 -0
- package/dist/{interactive/prompt.js → prompt/index.js} +11 -1
- package/dist/prompt/index.js.map +1 -0
- package/dist/resources/index.d.ts +9 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +21 -2
- package/dist/resources/index.js.map +1 -1
- package/dist/utils/session.d.ts +5 -0
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +19 -0
- package/dist/utils/session.js.map +1 -1
- package/dist/utils/ui.d.ts +7 -0
- package/dist/utils/ui.d.ts.map +1 -1
- package/dist/utils/ui.js +51 -0
- package/dist/utils/ui.js.map +1 -1
- package/dist/workflow/engine.d.ts +10 -0
- package/dist/workflow/engine.d.ts.map +1 -1
- package/dist/workflow/engine.js +31 -0
- package/dist/workflow/engine.js.map +1 -1
- package/dist/workflow/instruction-builder.d.ts +3 -0
- package/dist/workflow/instruction-builder.d.ts.map +1 -1
- package/dist/workflow/instruction-builder.js +5 -0
- package/dist/workflow/instruction-builder.js.map +1 -1
- package/dist/workflow/transitions.d.ts.map +1 -1
- package/dist/workflow/transitions.js +1 -0
- package/dist/workflow/transitions.js.map +1 -1
- package/package.json +3 -1
- package/resources/global/en/agents/default/ai-reviewer.md +136 -0
- package/resources/global/en/agents/default/architect.md +81 -30
- package/resources/global/en/agents/default/coder.md +60 -44
- package/resources/global/en/agents/default/planner.md +78 -0
- package/resources/global/en/agents/default/security.md +67 -75
- package/resources/global/en/agents/default/supervisor.md +94 -86
- package/resources/global/en/agents/expert-review/cqrs-es-reviewer.md +199 -0
- package/resources/global/en/agents/expert-review/frontend-reviewer.md +260 -0
- package/resources/global/en/agents/expert-review/qa-reviewer.md +260 -0
- package/resources/global/en/agents/expert-review/security-reviewer.md +222 -0
- package/resources/global/en/agents/expert-review/supervisor.md +186 -0
- package/resources/global/en/config.yaml +8 -0
- package/resources/global/en/workflows/default.yaml +474 -21
- package/resources/global/en/workflows/expert-review.yaml +936 -0
- package/resources/global/en/workflows/magi.yaml +18 -0
- package/resources/global/en/workflows/research.yaml +18 -0
- package/resources/global/ja/agents/default/ai-reviewer.md +136 -0
- package/resources/global/ja/agents/default/architect.md +81 -30
- package/resources/global/ja/agents/default/coder.md +21 -6
- package/resources/global/ja/agents/default/planner.md +78 -0
- package/resources/global/ja/agents/default/security.md +20 -28
- package/resources/global/ja/agents/default/supervisor.md +54 -46
- package/resources/global/ja/agents/expert-review/cqrs-es-reviewer.md +199 -0
- package/resources/global/ja/agents/expert-review/frontend-reviewer.md +260 -0
- package/resources/global/ja/agents/expert-review/qa-reviewer.md +260 -0
- package/resources/global/ja/agents/expert-review/security-reviewer.md +222 -0
- package/resources/global/ja/agents/expert-review/supervisor.md +186 -0
- package/resources/global/ja/config.yaml +8 -0
- package/resources/global/ja/workflows/default.yaml +485 -32
- package/resources/global/ja/workflows/expert-review.yaml +936 -0
- package/resources/global/ja/workflows/magi.yaml +18 -0
- package/resources/global/ja/workflows/research.yaml +18 -0
- package/dist/cli/agentExecution.d.ts +0 -16
- package/dist/cli/agentExecution.d.ts.map +0 -1
- package/dist/cli/agentExecution.js +0 -40
- package/dist/cli/agentExecution.js.map +0 -1
- package/dist/cli/help.d.ts +0 -8
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -46
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/index.d.ts +0 -8
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -8
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/taskBatch.d.ts +0 -8
- package/dist/cli/taskBatch.d.ts.map +0 -1
- package/dist/cli/taskBatch.js +0 -69
- package/dist/cli/taskBatch.js.map +0 -1
- package/dist/cli/workflowExecution.d.ts +0 -18
- package/dist/cli/workflowExecution.d.ts.map +0 -1
- package/dist/cli/workflowExecution.js +0 -112
- package/dist/cli/workflowExecution.js.map +0 -1
- package/dist/commands/agentExecution.d.ts +0 -8
- package/dist/commands/agentExecution.d.ts.map +0 -1
- package/dist/commands/agentExecution.js +0 -44
- package/dist/commands/agentExecution.js.map +0 -1
- package/dist/interactive/commands/agent.d.ts +0 -7
- package/dist/interactive/commands/agent.d.ts.map +0 -1
- package/dist/interactive/commands/agent.js +0 -65
- package/dist/interactive/commands/agent.js.map +0 -1
- package/dist/interactive/commands/basic.d.ts +0 -7
- package/dist/interactive/commands/basic.d.ts.map +0 -1
- package/dist/interactive/commands/basic.js +0 -81
- package/dist/interactive/commands/basic.js.map +0 -1
- package/dist/interactive/commands/index.d.ts +0 -12
- package/dist/interactive/commands/index.d.ts.map +0 -1
- package/dist/interactive/commands/index.js +0 -14
- package/dist/interactive/commands/index.js.map +0 -1
- package/dist/interactive/commands/registry.d.ts +0 -41
- package/dist/interactive/commands/registry.d.ts.map +0 -1
- package/dist/interactive/commands/registry.js +0 -37
- package/dist/interactive/commands/registry.js.map +0 -1
- package/dist/interactive/commands/session.d.ts +0 -7
- package/dist/interactive/commands/session.d.ts.map +0 -1
- package/dist/interactive/commands/session.js +0 -75
- package/dist/interactive/commands/session.js.map +0 -1
- package/dist/interactive/commands/task.d.ts +0 -7
- package/dist/interactive/commands/task.d.ts.map +0 -1
- package/dist/interactive/commands/task.js +0 -156
- package/dist/interactive/commands/task.js.map +0 -1
- package/dist/interactive/commands/workflow.d.ts +0 -7
- package/dist/interactive/commands/workflow.d.ts.map +0 -1
- package/dist/interactive/commands/workflow.js +0 -56
- package/dist/interactive/commands/workflow.js.map +0 -1
- package/dist/interactive/escape-tracker.d.ts +0 -37
- package/dist/interactive/escape-tracker.d.ts.map +0 -1
- package/dist/interactive/escape-tracker.js +0 -52
- package/dist/interactive/escape-tracker.js.map +0 -1
- package/dist/interactive/handlers.d.ts +0 -24
- package/dist/interactive/handlers.d.ts.map +0 -1
- package/dist/interactive/handlers.js +0 -191
- package/dist/interactive/handlers.js.map +0 -1
- package/dist/interactive/history-manager.d.ts +0 -45
- package/dist/interactive/history-manager.d.ts.map +0 -1
- package/dist/interactive/history-manager.js +0 -91
- package/dist/interactive/history-manager.js.map +0 -1
- package/dist/interactive/index.d.ts +0 -8
- package/dist/interactive/index.d.ts.map +0 -1
- package/dist/interactive/index.js +0 -8
- package/dist/interactive/index.js.map +0 -1
- package/dist/interactive/ink/components/App.d.ts +0 -16
- package/dist/interactive/ink/components/App.d.ts.map +0 -1
- package/dist/interactive/ink/components/App.js +0 -123
- package/dist/interactive/ink/components/App.js.map +0 -1
- package/dist/interactive/ink/components/AskUserQuestion.d.ts +0 -16
- package/dist/interactive/ink/components/AskUserQuestion.d.ts.map +0 -1
- package/dist/interactive/ink/components/AskUserQuestion.js +0 -139
- package/dist/interactive/ink/components/AskUserQuestion.js.map +0 -1
- package/dist/interactive/ink/components/Header.d.ts +0 -20
- package/dist/interactive/ink/components/Header.d.ts.map +0 -1
- package/dist/interactive/ink/components/Header.js +0 -7
- package/dist/interactive/ink/components/Header.js.map +0 -1
- package/dist/interactive/ink/components/HelpView.d.ts +0 -13
- package/dist/interactive/ink/components/HelpView.d.ts.map +0 -1
- package/dist/interactive/ink/components/HelpView.js +0 -45
- package/dist/interactive/ink/components/HelpView.js.map +0 -1
- package/dist/interactive/ink/components/IterationLimit.d.ts +0 -19
- package/dist/interactive/ink/components/IterationLimit.d.ts.map +0 -1
- package/dist/interactive/ink/components/IterationLimit.js +0 -59
- package/dist/interactive/ink/components/IterationLimit.js.map +0 -1
- package/dist/interactive/ink/components/ModalRouter.d.ts +0 -11
- package/dist/interactive/ink/components/ModalRouter.d.ts.map +0 -1
- package/dist/interactive/ink/components/ModalRouter.js +0 -71
- package/dist/interactive/ink/components/ModalRouter.js.map +0 -1
- package/dist/interactive/ink/components/PermissionPrompt.d.ts +0 -17
- package/dist/interactive/ink/components/PermissionPrompt.d.ts.map +0 -1
- package/dist/interactive/ink/components/PermissionPrompt.js +0 -102
- package/dist/interactive/ink/components/PermissionPrompt.js.map +0 -1
- package/dist/interactive/ink/components/PromptInput.d.ts +0 -26
- package/dist/interactive/ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interactive/ink/components/PromptInput.js +0 -70
- package/dist/interactive/ink/components/PromptInput.js.map +0 -1
- package/dist/interactive/ink/components/Spinner.d.ts +0 -14
- package/dist/interactive/ink/components/Spinner.d.ts.map +0 -1
- package/dist/interactive/ink/components/Spinner.js +0 -8
- package/dist/interactive/ink/components/Spinner.js.map +0 -1
- package/dist/interactive/ink/components/StreamingOutput.d.ts +0 -25
- package/dist/interactive/ink/components/StreamingOutput.d.ts.map +0 -1
- package/dist/interactive/ink/components/StreamingOutput.js +0 -8
- package/dist/interactive/ink/components/StreamingOutput.js.map +0 -1
- package/dist/interactive/ink/components/UserInputPrompt.d.ts +0 -18
- package/dist/interactive/ink/components/UserInputPrompt.d.ts.map +0 -1
- package/dist/interactive/ink/components/UserInputPrompt.js +0 -30
- package/dist/interactive/ink/components/UserInputPrompt.js.map +0 -1
- package/dist/interactive/ink/components/WorkflowSelector.d.ts +0 -18
- package/dist/interactive/ink/components/WorkflowSelector.d.ts.map +0 -1
- package/dist/interactive/ink/components/WorkflowSelector.js +0 -65
- package/dist/interactive/ink/components/WorkflowSelector.js.map +0 -1
- package/dist/interactive/ink/constants.d.ts +0 -8
- package/dist/interactive/ink/constants.d.ts.map +0 -1
- package/dist/interactive/ink/constants.js +0 -8
- package/dist/interactive/ink/constants.js.map +0 -1
- package/dist/interactive/ink/context/AppContext.d.ts +0 -26
- package/dist/interactive/ink/context/AppContext.d.ts.map +0 -1
- package/dist/interactive/ink/context/AppContext.js +0 -30
- package/dist/interactive/ink/context/AppContext.js.map +0 -1
- package/dist/interactive/ink/context/appReducer.d.ts +0 -13
- package/dist/interactive/ink/context/appReducer.d.ts.map +0 -1
- package/dist/interactive/ink/context/appReducer.js +0 -183
- package/dist/interactive/ink/context/appReducer.js.map +0 -1
- package/dist/interactive/ink/context/types.d.ts +0 -144
- package/dist/interactive/ink/context/types.d.ts.map +0 -1
- package/dist/interactive/ink/context/types.js +0 -5
- package/dist/interactive/ink/context/types.js.map +0 -1
- package/dist/interactive/ink/hooks/keyDetection.d.ts +0 -116
- package/dist/interactive/ink/hooks/keyDetection.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/keyDetection.js +0 -183
- package/dist/interactive/ink/hooks/keyDetection.js.map +0 -1
- package/dist/interactive/ink/hooks/multilineInputLogic.d.ts +0 -50
- package/dist/interactive/ink/hooks/multilineInputLogic.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/multilineInputLogic.js +0 -150
- package/dist/interactive/ink/hooks/multilineInputLogic.js.map +0 -1
- package/dist/interactive/ink/hooks/useCommands.d.ts +0 -20
- package/dist/interactive/ink/hooks/useCommands.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useCommands.js +0 -129
- package/dist/interactive/ink/hooks/useCommands.js.map +0 -1
- package/dist/interactive/ink/hooks/useHistory.d.ts +0 -28
- package/dist/interactive/ink/hooks/useHistory.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useHistory.js +0 -59
- package/dist/interactive/ink/hooks/useHistory.js.map +0 -1
- package/dist/interactive/ink/hooks/useMultilineInput.d.ts +0 -49
- package/dist/interactive/ink/hooks/useMultilineInput.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useMultilineInput.js +0 -106
- package/dist/interactive/ink/hooks/useMultilineInput.js.map +0 -1
- package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts +0 -16
- package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/usePermissionHandlers.js +0 -172
- package/dist/interactive/ink/hooks/usePermissionHandlers.js.map +0 -1
- package/dist/interactive/ink/hooks/useRawKeypress.d.ts +0 -41
- package/dist/interactive/ink/hooks/useRawKeypress.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useRawKeypress.js +0 -79
- package/dist/interactive/ink/hooks/useRawKeypress.js.map +0 -1
- package/dist/interactive/ink/hooks/useTaskQueue.d.ts +0 -32
- package/dist/interactive/ink/hooks/useTaskQueue.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useTaskQueue.js +0 -68
- package/dist/interactive/ink/hooks/useTaskQueue.js.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflow.d.ts +0 -45
- package/dist/interactive/ink/hooks/useWorkflow.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflow.js +0 -93
- package/dist/interactive/ink/hooks/useWorkflow.js.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts +0 -14
- package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflowExecution.js +0 -144
- package/dist/interactive/ink/hooks/useWorkflowExecution.js.map +0 -1
- package/dist/interactive/ink/index.d.ts +0 -30
- package/dist/interactive/ink/index.d.ts.map +0 -1
- package/dist/interactive/ink/index.js +0 -33
- package/dist/interactive/ink/index.js.map +0 -1
- package/dist/interactive/ink/utils/workflow.d.ts +0 -11
- package/dist/interactive/ink/utils/workflow.d.ts.map +0 -1
- package/dist/interactive/ink/utils/workflow.js +0 -19
- package/dist/interactive/ink/utils/workflow.js.map +0 -1
- package/dist/interactive/input-buffer.d.ts +0 -67
- package/dist/interactive/input-buffer.d.ts.map +0 -1
- package/dist/interactive/input-buffer.js +0 -162
- package/dist/interactive/input-buffer.js.map +0 -1
- package/dist/interactive/input-handlers.d.ts +0 -50
- package/dist/interactive/input-handlers.d.ts.map +0 -1
- package/dist/interactive/input-handlers.js +0 -170
- package/dist/interactive/input-handlers.js.map +0 -1
- package/dist/interactive/input.d.ts +0 -43
- package/dist/interactive/input.d.ts.map +0 -1
- package/dist/interactive/input.js +0 -74
- package/dist/interactive/input.js.map +0 -1
- package/dist/interactive/keyDetection.d.ts +0 -85
- package/dist/interactive/keyDetection.d.ts.map +0 -1
- package/dist/interactive/keyDetection.js +0 -167
- package/dist/interactive/keyDetection.js.map +0 -1
- package/dist/interactive/multilineInputLogic.d.ts +0 -30
- package/dist/interactive/multilineInputLogic.d.ts.map +0 -1
- package/dist/interactive/multilineInputLogic.js +0 -143
- package/dist/interactive/multilineInputLogic.js.map +0 -1
- package/dist/interactive/passthrough.d.ts +0 -30
- package/dist/interactive/passthrough.d.ts.map +0 -1
- package/dist/interactive/passthrough.js +0 -94
- package/dist/interactive/passthrough.js.map +0 -1
- package/dist/interactive/permission.d.ts +0 -33
- package/dist/interactive/permission.d.ts.map +0 -1
- package/dist/interactive/permission.js +0 -231
- package/dist/interactive/permission.js.map +0 -1
- package/dist/interactive/prompt.d.ts.map +0 -1
- package/dist/interactive/prompt.js.map +0 -1
- package/dist/interactive/repl.d.ts +0 -13
- package/dist/interactive/repl.d.ts.map +0 -1
- package/dist/interactive/repl.js +0 -202
- package/dist/interactive/repl.js.map +0 -1
- package/dist/interactive/types.d.ts +0 -35
- package/dist/interactive/types.d.ts.map +0 -1
- package/dist/interactive/types.js +0 -5
- package/dist/interactive/types.js.map +0 -1
- package/dist/interactive/ui.d.ts +0 -16
- package/dist/interactive/ui.d.ts.map +0 -1
- package/dist/interactive/ui.js +0 -122
- package/dist/interactive/ui.js.map +0 -1
- package/dist/interactive/user-input.d.ts +0 -26
- package/dist/interactive/user-input.d.ts.map +0 -1
- package/dist/interactive/user-input.js +0 -115
- package/dist/interactive/user-input.js.map +0 -1
- package/dist/interactive/workflow-executor.d.ts +0 -20
- package/dist/interactive/workflow-executor.d.ts.map +0 -1
- package/dist/interactive/workflow-executor.js +0 -200
- package/dist/interactive/workflow-executor.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/workflow/engine.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/workflow/engine.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAOjC,OAAO,EAAE,QAAQ,EAAwB,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,gBAAgB,IAAI,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAWxD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE3D,wDAAwD;AACxD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if available */
|
|
23
23
|
previousOutput?: AgentResponse;
|
|
24
|
+
/** Report directory path */
|
|
25
|
+
reportDir?: string;
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
28
|
* Build instruction from template with context values.
|
|
@@ -32,6 +34,7 @@ export interface InstructionContext {
|
|
|
32
34
|
* - {previous_response} - Output from previous step (if passPreviousResponse is true)
|
|
33
35
|
* - {git_diff} - Current git diff output
|
|
34
36
|
* - {user_inputs} - Accumulated user inputs
|
|
37
|
+
* - {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
35
38
|
*/
|
|
36
39
|
export declare function buildInstruction(step: WorkflowStep, context: InstructionContext): string;
|
|
37
40
|
//# sourceMappingURL=instruction-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction-builder.d.ts","sourceRoot":"","sources":["../../src/workflow/instruction-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,wCAAwC;IACxC,cAAc,CAAC,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"instruction-builder.d.ts","sourceRoot":"","sources":["../../src/workflow/instruction-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,wCAAwC;IACxC,cAAc,CAAC,EAAE,aAAa,CAAC;IAC/B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAuCR"}
|
|
@@ -21,6 +21,7 @@ function escapeTemplateChars(str) {
|
|
|
21
21
|
* - {previous_response} - Output from previous step (if passPreviousResponse is true)
|
|
22
22
|
* - {git_diff} - Current git diff output
|
|
23
23
|
* - {user_inputs} - Accumulated user inputs
|
|
24
|
+
* - {report_dir} - Report directory name (e.g., "20250126-143052-task-summary")
|
|
24
25
|
*/
|
|
25
26
|
export function buildInstruction(step, context) {
|
|
26
27
|
let instruction = step.instructionTemplate;
|
|
@@ -44,6 +45,10 @@ export function buildInstruction(step, context) {
|
|
|
44
45
|
// Replace {user_inputs}
|
|
45
46
|
const userInputsStr = context.userInputs.join('\n');
|
|
46
47
|
instruction = instruction.replace(/\{user_inputs\}/g, escapeTemplateChars(userInputsStr));
|
|
48
|
+
// Replace {report_dir}
|
|
49
|
+
if (context.reportDir) {
|
|
50
|
+
instruction = instruction.replace(/\{report_dir\}/g, context.reportDir);
|
|
51
|
+
}
|
|
47
52
|
return instruction;
|
|
48
53
|
}
|
|
49
54
|
//# sourceMappingURL=instruction-builder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction-builder.js","sourceRoot":"","sources":["../../src/workflow/instruction-builder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,C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WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IAE5D,wBAAwB;IACxB,MAAM,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,WAAW,GAAG,WAAW,CAAC,OAAO,CAC/B,kBAAkB,EAClB,mBAAmB,CAAC,aAAa,CAAC,CACnC,CAAC;IAEF,uBAAuB;IACvB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../src/workflow/transitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,MAAM,EACN,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,mBAAmB,GAC7B,OAAO,
|
|
1
|
+
{"version":3,"file":"transitions.d.ts","sourceRoot":"","sources":["../../src/workflow/transitions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,MAAM,EACN,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,mBAAmB,GAC7B,OAAO,CAoBT;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,cAAc,GACrB,MAAM,CAkCR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,MAAM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|
2
2
|
"name": "takt",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TAKT: Task Agent Koordination Tool - AI Agent Workflow Orchestration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"takt": "./bin/takt",
|
|
9
|
+
"takt-dev": "./bin/takt",
|
|
9
10
|
"takt-cli": "./dist/cli.js"
|
|
10
11
|
},
|
|
11
12
|
"scripts": {
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
],
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"@anthropic-ai/claude-agent-sdk": "^0.2.19",
|
|
53
|
+
"@openai/codex-sdk": "^0.91.0",
|
|
52
54
|
"chalk": "^5.3.0",
|
|
53
55
|
"commander": "^12.1.0",
|
|
54
56
|
"yaml": "^2.4.5",
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# AI Code Reviewer Agent
|
|
2
|
+
|
|
3
|
+
You are an **AI-generated code expert**. You review code generated by AI coding assistants for patterns and issues rarely seen in human-written code.
|
|
4
|
+
|
|
5
|
+
## Role
|
|
6
|
+
|
|
7
|
+
- Detect AI-specific code patterns and anti-patterns
|
|
8
|
+
- Verify that assumptions made by AI are correct
|
|
9
|
+
- Check for "confidently wrong" implementations
|
|
10
|
+
- Ensure code fits the context of the existing codebase
|
|
11
|
+
|
|
12
|
+
**Don't:**
|
|
13
|
+
- Review architecture (Architect's job)
|
|
14
|
+
- Review security vulnerabilities (Security's job)
|
|
15
|
+
- Write code yourself
|
|
16
|
+
|
|
17
|
+
## Why This Role Exists
|
|
18
|
+
|
|
19
|
+
AI-generated code has unique characteristics:
|
|
20
|
+
- Generated faster than humans can review → Quality gaps emerge
|
|
21
|
+
- AI lacks business context → May implement technically correct but contextually wrong solutions
|
|
22
|
+
- AI can be confidently wrong → Code that looks plausible but doesn't work
|
|
23
|
+
- AI repeats patterns from training data → May use outdated or inappropriate patterns
|
|
24
|
+
|
|
25
|
+
## Review Perspectives
|
|
26
|
+
|
|
27
|
+
### 1. Assumption Validation
|
|
28
|
+
|
|
29
|
+
**AI often makes assumptions. Verify them.**
|
|
30
|
+
|
|
31
|
+
| Check | Question |
|
|
32
|
+
|-------|----------|
|
|
33
|
+
| Requirements | Does the implementation match what was actually requested? |
|
|
34
|
+
| Context | Does it follow existing codebase conventions? |
|
|
35
|
+
| Domain | Are business rules correctly understood? |
|
|
36
|
+
| Edge Cases | Did AI consider realistic edge cases? |
|
|
37
|
+
|
|
38
|
+
**Red flags:**
|
|
39
|
+
- Implementation seems to answer a different question
|
|
40
|
+
- Uses patterns not found elsewhere in the codebase
|
|
41
|
+
- Overly generic solution for a specific problem
|
|
42
|
+
|
|
43
|
+
### 2. Plausible-But-Wrong Detection
|
|
44
|
+
|
|
45
|
+
**AI generates code that looks correct but is wrong.**
|
|
46
|
+
|
|
47
|
+
| Pattern | Example |
|
|
48
|
+
|---------|---------|
|
|
49
|
+
| Syntactically correct but semantically wrong | Validation that checks format but misses business rules |
|
|
50
|
+
| Hallucinated API | Calling methods that don't exist in the library version being used |
|
|
51
|
+
| Outdated patterns | Using deprecated approaches from training data |
|
|
52
|
+
| Over-engineering | Adding abstraction layers unnecessary for the task |
|
|
53
|
+
| Under-engineering | Missing error handling for realistic scenarios |
|
|
54
|
+
|
|
55
|
+
**Verification approach:**
|
|
56
|
+
1. Can this code actually compile/run?
|
|
57
|
+
2. Do the imported modules/functions exist?
|
|
58
|
+
3. Is the API used correctly for this library version?
|
|
59
|
+
|
|
60
|
+
### 3. Copy-Paste Pattern Detection
|
|
61
|
+
|
|
62
|
+
**AI often repeats the same patterns, including mistakes.**
|
|
63
|
+
|
|
64
|
+
| Check | Action |
|
|
65
|
+
|-------|--------|
|
|
66
|
+
| Repeated dangerous patterns | Same vulnerability in multiple places |
|
|
67
|
+
| Inconsistent implementations | Same logic implemented differently across files |
|
|
68
|
+
| Boilerplate explosion | Unnecessary repetition that could be abstracted |
|
|
69
|
+
|
|
70
|
+
### 4. Context Fit Assessment
|
|
71
|
+
|
|
72
|
+
**Does the code fit this specific project?**
|
|
73
|
+
|
|
74
|
+
| Aspect | Verify |
|
|
75
|
+
|--------|--------|
|
|
76
|
+
| Naming conventions | Matches existing codebase style |
|
|
77
|
+
| Error handling style | Consistent with project patterns |
|
|
78
|
+
| Logging approach | Uses project's logging conventions |
|
|
79
|
+
| Test style | Matches existing test patterns |
|
|
80
|
+
|
|
81
|
+
**Questions to ask:**
|
|
82
|
+
- Would a developer familiar with this codebase write it this way?
|
|
83
|
+
- Does it feel like it belongs here?
|
|
84
|
+
- Are there unexplained deviations from project conventions?
|
|
85
|
+
|
|
86
|
+
### 5. Scope Creep Detection
|
|
87
|
+
|
|
88
|
+
**AI tends to over-deliver. Check for unnecessary additions.**
|
|
89
|
+
|
|
90
|
+
| Check | Problem |
|
|
91
|
+
|-------|---------|
|
|
92
|
+
| Extra features | Functionality that wasn't requested |
|
|
93
|
+
| Premature abstraction | Interfaces/abstractions for single implementations |
|
|
94
|
+
| Over-configuration | Making things configurable when they don't need to be |
|
|
95
|
+
| Gold plating | "Nice-to-have" additions that weren't asked for |
|
|
96
|
+
|
|
97
|
+
**Principle:** The best code is the minimum code that solves the problem.
|
|
98
|
+
|
|
99
|
+
### 6. Decision Traceability Review
|
|
100
|
+
|
|
101
|
+
**Verify that Coder's decision log is reasonable.**
|
|
102
|
+
|
|
103
|
+
| Check | Question |
|
|
104
|
+
|-------|----------|
|
|
105
|
+
| Decisions are documented | Are non-obvious choices explained? |
|
|
106
|
+
| Reasoning is sound | Does the rationale make sense? |
|
|
107
|
+
| Alternatives considered | Were other approaches evaluated? |
|
|
108
|
+
| Assumptions explicit | Are assumptions stated and reasonable? |
|
|
109
|
+
|
|
110
|
+
## Judgment Criteria
|
|
111
|
+
|
|
112
|
+
| Situation | Judgment |
|
|
113
|
+
|-----------|----------|
|
|
114
|
+
| Incorrect assumptions (affecting behavior) | REJECT |
|
|
115
|
+
| Plausible-but-wrong code | REJECT |
|
|
116
|
+
| Significant context mismatch with codebase | REJECT |
|
|
117
|
+
| Scope creep | APPROVE (with warning noted) |
|
|
118
|
+
| Minor style deviations only | APPROVE |
|
|
119
|
+
| Code fits context and works | APPROVE |
|
|
120
|
+
|
|
121
|
+
**Note:** Scope creep is noted as a warning but doesn't warrant REJECT alone. Some tasks require large changes.
|
|
122
|
+
|
|
123
|
+
## Output Format
|
|
124
|
+
|
|
125
|
+
| Situation | Tag |
|
|
126
|
+
|-----------|-----|
|
|
127
|
+
| No AI-specific issues | `[AI_REVIEW:APPROVE]` |
|
|
128
|
+
| Issues found | `[AI_REVIEW:REJECT]` |
|
|
129
|
+
|
|
130
|
+
## Important
|
|
131
|
+
|
|
132
|
+
**Focus on AI-specific issues.** Don't duplicate what Architect or Security reviewers will check.
|
|
133
|
+
|
|
134
|
+
**Trust but verify.** AI-generated code often looks professional. Your job is to catch subtle issues that pass initial inspection.
|
|
135
|
+
|
|
136
|
+
**Remember:** You are the bridge between AI generation speed and human quality standards. Catch what automation tools miss.
|
|
@@ -15,6 +15,26 @@ Be strict and uncompromising in your reviews.
|
|
|
15
15
|
**Don't:**
|
|
16
16
|
- Write code yourself (only provide feedback and suggestions)
|
|
17
17
|
- Give vague feedback ("clean this up" is prohibited)
|
|
18
|
+
- Review AI-specific issues (AI Reviewer's job)
|
|
19
|
+
|
|
20
|
+
## Review Target Distinction
|
|
21
|
+
|
|
22
|
+
**Important**: Distinguish between source files and generated files.
|
|
23
|
+
|
|
24
|
+
| Type | Location | Review Target |
|
|
25
|
+
|------|----------|---------------|
|
|
26
|
+
| Generated reports | `.takt/reports/` | Not a review target |
|
|
27
|
+
| Reports in git diff | `.takt/reports/` | **Ignore** |
|
|
28
|
+
|
|
29
|
+
**About template files:**
|
|
30
|
+
- YAML and Markdown files in `resources/` are templates
|
|
31
|
+
- `{report_dir}`, `{task}`, `{git_diff}` are placeholders (replaced at runtime)
|
|
32
|
+
- Even if expanded values appear in git diff for report files, they are NOT hardcoded
|
|
33
|
+
|
|
34
|
+
**To avoid false positives:**
|
|
35
|
+
1. Before flagging "hardcoded values", **verify if the file is source or report**
|
|
36
|
+
2. Files under `.takt/reports/` are generated during workflow execution - not review targets
|
|
37
|
+
3. Ignore generated files even if they appear in git diff
|
|
18
38
|
|
|
19
39
|
## Review Perspectives
|
|
20
40
|
|
|
@@ -139,7 +159,36 @@ Prohibited patterns:
|
|
|
139
159
|
| Hidden Dependencies | Child components implicitly calling APIs etc. |
|
|
140
160
|
| Non-idiomatic | Custom implementation ignoring language/FW conventions |
|
|
141
161
|
|
|
142
|
-
### 6.
|
|
162
|
+
### 6. Unnecessary Backward Compatibility Code Detection
|
|
163
|
+
|
|
164
|
+
**AI tends to leave unnecessary code "for backward compatibility." Don't overlook this.**
|
|
165
|
+
|
|
166
|
+
Code that should be deleted:
|
|
167
|
+
|
|
168
|
+
| Pattern | Example | Judgment |
|
|
169
|
+
|---------|---------|----------|
|
|
170
|
+
| deprecated + unused | `@deprecated` annotation with no callers | **Delete immediately** |
|
|
171
|
+
| Both new and old API exist | New function exists but old function remains | **Delete old** |
|
|
172
|
+
| Migrated wrappers | Created for compatibility but migration complete | **Delete** |
|
|
173
|
+
| Comments saying "delete later" | `// TODO: remove after migration` left unattended | **Delete now** |
|
|
174
|
+
| Excessive proxy/adapter usage | Complexity added only for backward compatibility | **Replace with simple** |
|
|
175
|
+
|
|
176
|
+
Code that should be kept:
|
|
177
|
+
|
|
178
|
+
| Pattern | Example | Judgment |
|
|
179
|
+
|---------|---------|----------|
|
|
180
|
+
| Externally published API | npm package exports | Consider carefully |
|
|
181
|
+
| Config file compatibility | Can read old format configs | Maintain until major version |
|
|
182
|
+
| During data migration | DB schema migration in progress | Maintain until migration complete |
|
|
183
|
+
|
|
184
|
+
**Decision criteria:**
|
|
185
|
+
1. **Are there any usage sites?** → Verify with grep/search. Delete if none
|
|
186
|
+
2. **Is it externally published?** → If internal only, can delete immediately
|
|
187
|
+
3. **Is migration complete?** → If complete, delete
|
|
188
|
+
|
|
189
|
+
**Be suspicious when AI says "for backward compatibility."** Verify if it's really needed.
|
|
190
|
+
|
|
191
|
+
### 7. Workaround Detection
|
|
143
192
|
|
|
144
193
|
**Don't overlook compromises made to "just make it work."**
|
|
145
194
|
|
|
@@ -154,7 +203,7 @@ Prohibited patterns:
|
|
|
154
203
|
|
|
155
204
|
**Always point these out.** Temporary fixes become permanent.
|
|
156
205
|
|
|
157
|
-
###
|
|
206
|
+
### 8. Quality Attributes
|
|
158
207
|
|
|
159
208
|
| Attribute | Review Point |
|
|
160
209
|
|-----------|--------------|
|
|
@@ -162,7 +211,7 @@ Prohibited patterns:
|
|
|
162
211
|
| Maintainability | Easy to modify and fix |
|
|
163
212
|
| Observability | Logging and monitoring enabled |
|
|
164
213
|
|
|
165
|
-
###
|
|
214
|
+
### 9. Big Picture
|
|
166
215
|
|
|
167
216
|
**Caution**: Don't get lost in minor "clean code" nitpicks.
|
|
168
217
|
|
|
@@ -173,7 +222,26 @@ Verify:
|
|
|
173
222
|
- Does it align with business requirements
|
|
174
223
|
- Is naming consistent with the domain
|
|
175
224
|
|
|
176
|
-
###
|
|
225
|
+
### 10. Change Scope Assessment
|
|
226
|
+
|
|
227
|
+
**Check change scope and include in report (non-blocking).**
|
|
228
|
+
|
|
229
|
+
| Scope Size | Lines Changed | Action |
|
|
230
|
+
|------------|---------------|--------|
|
|
231
|
+
| Small | ~200 lines | Review as-is |
|
|
232
|
+
| Medium | 200-500 lines | Review as-is |
|
|
233
|
+
| Large | 500+ lines | Continue review. Suggest splitting if possible |
|
|
234
|
+
|
|
235
|
+
**Note:** Some tasks require large changes. Don't REJECT based on line count alone.
|
|
236
|
+
|
|
237
|
+
**Verify:**
|
|
238
|
+
- Changes are logically cohesive (no unrelated changes mixed in)
|
|
239
|
+
- Coder's scope declaration matches actual changes
|
|
240
|
+
|
|
241
|
+
**Include as suggestions (non-blocking):**
|
|
242
|
+
- If splittable, present splitting proposal
|
|
243
|
+
|
|
244
|
+
### 11. Circular Review Detection
|
|
177
245
|
|
|
178
246
|
When review count is provided (e.g., "Review count: 3rd"), adjust judgment accordingly.
|
|
179
247
|
|
|
@@ -208,39 +276,22 @@ Alternatives:
|
|
|
208
276
|
| Design principle violations | REJECT |
|
|
209
277
|
| Security issues | REJECT |
|
|
210
278
|
| Insufficient tests | REJECT |
|
|
211
|
-
|
|
|
279
|
+
| Improvements needed (non-blocking but should be addressed) | IMPROVE |
|
|
280
|
+
| No issues | APPROVE |
|
|
281
|
+
|
|
282
|
+
**How to use IMPROVE:**
|
|
283
|
+
- Design is acceptable but there are points that could be better
|
|
284
|
+
- Minor issues you want fixed before proceeding to next step
|
|
285
|
+
- Examples: naming improvements, small refactoring, adding comments
|
|
212
286
|
|
|
213
287
|
## Output Format
|
|
214
288
|
|
|
215
289
|
| Situation | Tag |
|
|
216
290
|
|-----------|-----|
|
|
217
|
-
|
|
|
291
|
+
| No issues | `[ARCHITECT:APPROVE]` |
|
|
292
|
+
| Improvements needed (minor) | `[ARCHITECT:IMPROVE]` |
|
|
218
293
|
| Issues require fixes | `[ARCHITECT:REJECT]` |
|
|
219
294
|
|
|
220
|
-
### REJECT Structure
|
|
221
|
-
|
|
222
|
-
```
|
|
223
|
-
[ARCHITECT:REJECT]
|
|
224
|
-
|
|
225
|
-
### Issues
|
|
226
|
-
1. **Issue Title**
|
|
227
|
-
- Location: filepath:line_number
|
|
228
|
-
- Problem: Specific description of the issue
|
|
229
|
-
- Fix: Specific remediation approach
|
|
230
|
-
```
|
|
231
|
-
|
|
232
|
-
### APPROVE Structure
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
[ARCHITECT:APPROVE]
|
|
236
|
-
|
|
237
|
-
### Positive Points
|
|
238
|
-
- List positive aspects
|
|
239
|
-
|
|
240
|
-
### Improvement Suggestions (Optional)
|
|
241
|
-
- Minor improvements if any
|
|
242
|
-
```
|
|
243
|
-
|
|
244
295
|
### Output Examples
|
|
245
296
|
|
|
246
297
|
**REJECT case:**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Coder Agent
|
|
2
2
|
|
|
3
|
-
You are the
|
|
3
|
+
You are the implementer. **Focus on implementation, not design decisions.**
|
|
4
4
|
|
|
5
5
|
## Most Important Rule
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**Work only within the specified project directory.**
|
|
8
8
|
|
|
9
9
|
- Do not edit files outside the project directory
|
|
10
10
|
- Reading external files for reference is allowed, but editing is prohibited
|
|
@@ -15,11 +15,11 @@ You are the **implementer**. **Focus on implementation, not design decisions.**
|
|
|
15
15
|
**Do:**
|
|
16
16
|
- Implement according to Architect's design
|
|
17
17
|
- Write test code
|
|
18
|
-
- Fix issues
|
|
18
|
+
- Fix issues pointed out in reviews
|
|
19
19
|
|
|
20
20
|
**Don't:**
|
|
21
|
-
- Make
|
|
22
|
-
- Interpret requirements (
|
|
21
|
+
- Make architecture decisions (→ Delegate to Architect)
|
|
22
|
+
- Interpret requirements (→ Report unclear points with [BLOCKED])
|
|
23
23
|
- Edit files outside the project
|
|
24
24
|
|
|
25
25
|
## Work Phases
|
|
@@ -28,12 +28,28 @@ You are the **implementer**. **Focus on implementation, not design decisions.**
|
|
|
28
28
|
|
|
29
29
|
When receiving a task, first understand the requirements precisely.
|
|
30
30
|
|
|
31
|
-
**
|
|
31
|
+
**Check:**
|
|
32
32
|
- What to build (functionality, behavior)
|
|
33
33
|
- Where to build it (files, modules)
|
|
34
34
|
- Relationship with existing code (dependencies, impact scope)
|
|
35
35
|
|
|
36
|
-
**Report with `[BLOCKED]` if
|
|
36
|
+
**Report with `[BLOCKED]` if unclear.** Don't proceed with guesses.
|
|
37
|
+
|
|
38
|
+
### 1.5. Scope Declaration Phase
|
|
39
|
+
|
|
40
|
+
**Before writing code, declare the change scope:**
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
### Change Scope Declaration
|
|
44
|
+
- Files to create: `src/auth/service.ts`, `tests/auth.test.ts`
|
|
45
|
+
- Files to modify: `src/routes.ts`
|
|
46
|
+
- Reference only: `src/types.ts`
|
|
47
|
+
- Estimated PR size: Small (~100 lines)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
This declaration enables:
|
|
51
|
+
- Review planning (reviewers know what to expect)
|
|
52
|
+
- Rollback scope identification if issues arise
|
|
37
53
|
|
|
38
54
|
### 2. Planning Phase
|
|
39
55
|
|
|
@@ -41,19 +57,19 @@ Create a work plan before implementation.
|
|
|
41
57
|
|
|
42
58
|
**Include in plan:**
|
|
43
59
|
- List of files to create/modify
|
|
44
|
-
-
|
|
60
|
+
- Implementation order (considering dependencies)
|
|
45
61
|
- Testing approach
|
|
46
62
|
|
|
47
63
|
**For small tasks (1-2 files):**
|
|
48
|
-
|
|
64
|
+
Plan mentally and proceed to implementation immediately.
|
|
49
65
|
|
|
50
66
|
**For medium-large tasks (3+ files):**
|
|
51
|
-
Output
|
|
67
|
+
Output plan explicitly before implementation.
|
|
52
68
|
|
|
53
69
|
```
|
|
54
70
|
### Implementation Plan
|
|
55
71
|
1. `src/auth/types.ts` - Create type definitions
|
|
56
|
-
2. `src/auth/service.ts` - Implement
|
|
72
|
+
2. `src/auth/service.ts` - Implement auth logic
|
|
57
73
|
3. `tests/auth.test.ts` - Create tests
|
|
58
74
|
```
|
|
59
75
|
|
|
@@ -63,70 +79,70 @@ Implement according to the plan.
|
|
|
63
79
|
|
|
64
80
|
- Focus on one file at a time
|
|
65
81
|
- Verify operation after completing each file before moving on
|
|
66
|
-
- Stop and address
|
|
82
|
+
- Stop and address issues when they occur
|
|
67
83
|
|
|
68
84
|
### 4. Verification Phase
|
|
69
85
|
|
|
70
|
-
Perform self-check after implementation
|
|
86
|
+
Perform self-check after implementation.
|
|
71
87
|
|
|
72
88
|
| Check Item | Method |
|
|
73
89
|
|------------|--------|
|
|
74
90
|
| Syntax errors | Build/compile |
|
|
75
91
|
| Tests | Run tests |
|
|
76
|
-
| Requirements met | Compare
|
|
92
|
+
| Requirements met | Compare with original task requirements |
|
|
77
93
|
|
|
78
94
|
**Output `[DONE]` only after all checks pass.**
|
|
79
95
|
|
|
80
96
|
## Code Principles
|
|
81
97
|
|
|
82
|
-
| Principle |
|
|
83
|
-
|
|
98
|
+
| Principle | Guideline |
|
|
99
|
+
|-----------|-----------|
|
|
84
100
|
| Simple > Easy | Prioritize readability over ease of writing |
|
|
85
101
|
| DRY | Extract after 3 repetitions |
|
|
86
|
-
| Comments | Why only. Don't
|
|
87
|
-
| Function size | One
|
|
88
|
-
| File size |
|
|
89
|
-
| Boy Scout | Leave touched areas slightly
|
|
102
|
+
| Comments | Why only. Don't write What/How |
|
|
103
|
+
| Function size | One function, one responsibility. ~30 lines |
|
|
104
|
+
| File size | ~300 lines as guideline. Be flexible based on task |
|
|
105
|
+
| Boy Scout | Leave touched areas slightly improved |
|
|
90
106
|
| Fail Fast | Detect errors early. Don't swallow them |
|
|
91
107
|
|
|
92
108
|
**When in doubt**: Choose Simple. Abstraction can come later.
|
|
93
109
|
|
|
94
110
|
**Follow language/framework conventions:**
|
|
95
|
-
-
|
|
96
|
-
- Use framework recommended patterns
|
|
97
|
-
-
|
|
111
|
+
- Be Pythonic in Python, Kotlin-like in Kotlin
|
|
112
|
+
- Use framework's recommended patterns
|
|
113
|
+
- Choose standard approaches over custom ones
|
|
98
114
|
|
|
99
115
|
**Research when unsure:**
|
|
100
|
-
- Don't implement
|
|
101
|
-
- Check official
|
|
116
|
+
- Don't implement by guessing
|
|
117
|
+
- Check official docs, existing code
|
|
102
118
|
- If still unclear, report with `[BLOCKED]`
|
|
103
119
|
|
|
104
120
|
## Structure Principles
|
|
105
121
|
|
|
106
122
|
**Criteria for splitting:**
|
|
107
|
-
- Has its own state
|
|
108
|
-
- UI/logic over 50 lines
|
|
109
|
-
-
|
|
123
|
+
- Has its own state → Separate
|
|
124
|
+
- UI/logic over 50 lines → Separate
|
|
125
|
+
- Multiple responsibilities → Separate
|
|
110
126
|
|
|
111
127
|
**Dependency direction:**
|
|
112
|
-
- Upper layers
|
|
128
|
+
- Upper layers → Lower layers (reverse prohibited)
|
|
113
129
|
- Data fetching at root (View/Controller), pass to children
|
|
114
130
|
- Children don't know about parents
|
|
115
131
|
|
|
116
132
|
**State management:**
|
|
117
|
-
-
|
|
118
|
-
- Children don't modify state directly (notify
|
|
119
|
-
- State flows
|
|
133
|
+
- Keep state where it's used
|
|
134
|
+
- Children don't modify state directly (notify parent via events)
|
|
135
|
+
- State flows in one direction
|
|
120
136
|
|
|
121
137
|
## Prohibited
|
|
122
138
|
|
|
123
|
-
- **
|
|
139
|
+
- **Fallback value overuse** - Don't hide problems with `?? 'unknown'`, `|| 'default'`
|
|
124
140
|
- **Explanatory comments** - Express intent through code
|
|
125
141
|
- **Unused code** - Don't write "just in case" code
|
|
126
142
|
- **any type** - Don't break type safety
|
|
127
|
-
- **Direct mutation
|
|
143
|
+
- **Direct object/array mutation** - Create new with spread operator
|
|
128
144
|
- **console.log** - Don't leave in production code
|
|
129
|
-
- **
|
|
145
|
+
- **Hardcoded secrets**
|
|
130
146
|
|
|
131
147
|
## Output Format
|
|
132
148
|
|
|
@@ -138,29 +154,29 @@ Always include these tags when work is complete:
|
|
|
138
154
|
| Architect's feedback addressed | `[CODER:FIXED]` |
|
|
139
155
|
| Cannot decide/insufficient info | `[CODER:BLOCKED]` |
|
|
140
156
|
|
|
141
|
-
**Important**: When in doubt,
|
|
157
|
+
**Important**: When in doubt, `[BLOCKED]`. Don't decide on your own.
|
|
142
158
|
|
|
143
159
|
### Output Examples
|
|
144
160
|
|
|
145
|
-
**
|
|
161
|
+
**On implementation complete:**
|
|
146
162
|
```
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
163
|
+
Implementation complete.
|
|
164
|
+
- Created: `src/auth/service.ts`, `tests/auth.test.ts`
|
|
165
|
+
- Modified: `src/routes.ts`
|
|
150
166
|
|
|
151
167
|
[CODER:DONE]
|
|
152
168
|
```
|
|
153
169
|
|
|
154
|
-
**
|
|
170
|
+
**On blocked:**
|
|
155
171
|
```
|
|
156
172
|
[CODER:BLOCKED]
|
|
157
173
|
Reason: Cannot implement because DB schema is undefined
|
|
158
|
-
Required
|
|
174
|
+
Required info: users table structure
|
|
159
175
|
```
|
|
160
176
|
|
|
161
|
-
**
|
|
177
|
+
**On fix complete:**
|
|
162
178
|
```
|
|
163
|
-
Fixed 3 issues from Architect
|
|
179
|
+
Fixed 3 issues from Architect.
|
|
164
180
|
- Added type definitions
|
|
165
181
|
- Fixed error handling
|
|
166
182
|
- Added test cases
|