takt 0.3.8 → 0.4.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.
- package/README.md +391 -319
- package/bin/takt +1 -1
- package/dist/agents/index.d.ts +2 -1
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +1 -1
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/runner.d.ts +28 -26
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +154 -136
- package/dist/agents/runner.js.map +1 -1
- package/dist/agents/types.d.ts +29 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +5 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/app/cli/commands.d.ts +7 -0
- package/dist/app/cli/commands.d.ts.map +1 -0
- package/dist/app/cli/commands.js +74 -0
- package/dist/app/cli/commands.js.map +1 -0
- package/dist/app/cli/helpers.d.ts +27 -0
- package/dist/app/cli/helpers.d.ts.map +1 -0
- package/dist/app/cli/helpers.js +54 -0
- package/dist/app/cli/helpers.js.map +1 -0
- package/dist/app/cli/index.d.ts +9 -0
- package/dist/app/cli/index.d.ts.map +1 -0
- package/dist/app/cli/index.js +14 -0
- package/dist/app/cli/index.js.map +1 -0
- package/dist/app/cli/program.d.ts +15 -0
- package/dist/app/cli/program.d.ts.map +1 -0
- package/dist/app/cli/program.js +66 -0
- package/dist/app/cli/program.js.map +1 -0
- package/dist/app/cli/routing.d.ts +8 -0
- package/dist/app/cli/routing.d.ts.map +1 -0
- package/dist/app/cli/routing.js +99 -0
- package/dist/app/cli/routing.js.map +1 -0
- package/dist/core/models/agent.d.ts +22 -0
- package/dist/core/models/agent.d.ts.map +1 -0
- package/dist/core/models/agent.js +3 -0
- package/dist/core/models/agent.js.map +1 -0
- package/dist/core/models/config.d.ts +6 -0
- package/dist/core/models/config.d.ts.map +1 -0
- package/dist/core/models/config.js +13 -0
- package/dist/core/models/config.js.map +1 -0
- package/dist/core/models/global-config.d.ts +65 -0
- package/dist/core/models/global-config.d.ts.map +1 -0
- package/dist/core/models/global-config.js +5 -0
- package/dist/core/models/global-config.js.map +1 -0
- package/dist/core/models/index.d.ts +6 -0
- package/dist/core/models/index.d.ts.map +1 -0
- package/dist/core/models/index.js +9 -0
- package/dist/core/models/index.js.map +1 -0
- package/dist/core/models/response.d.ts +19 -0
- package/dist/core/models/response.d.ts.map +1 -0
- package/dist/core/models/response.js +5 -0
- package/dist/core/models/response.js.map +1 -0
- package/dist/core/models/schemas.d.ts +403 -0
- package/dist/core/models/schemas.d.ts.map +1 -0
- package/dist/core/models/schemas.js +218 -0
- package/dist/core/models/schemas.js.map +1 -0
- package/dist/core/models/session.d.ts +51 -0
- package/dist/core/models/session.d.ts.map +1 -0
- package/dist/core/models/session.js.map +1 -0
- package/dist/core/models/status.d.ts +12 -0
- package/dist/core/models/status.d.ts.map +1 -0
- package/dist/core/models/status.js +5 -0
- package/dist/core/models/status.js.map +1 -0
- package/dist/core/models/types.d.ts +12 -0
- package/dist/core/models/types.d.ts.map +1 -0
- package/dist/core/models/types.js +8 -0
- package/dist/core/models/types.js.map +1 -0
- package/dist/core/models/workflow-types.d.ts +115 -0
- package/dist/core/models/workflow-types.d.ts.map +1 -0
- package/dist/core/models/workflow-types.js +5 -0
- package/dist/core/models/workflow-types.js.map +1 -0
- package/dist/core/workflow/constants.d.ts +20 -0
- package/dist/core/workflow/constants.d.ts.map +1 -0
- package/dist/core/workflow/constants.js +20 -0
- package/dist/core/workflow/constants.js.map +1 -0
- package/dist/core/workflow/engine/MovementExecutor.d.ts +59 -0
- package/dist/core/workflow/engine/MovementExecutor.d.ts.map +1 -0
- package/dist/core/workflow/engine/MovementExecutor.js +125 -0
- package/dist/core/workflow/engine/MovementExecutor.js.map +1 -0
- package/dist/core/workflow/engine/OptionsBuilder.d.ts +28 -0
- package/dist/core/workflow/engine/OptionsBuilder.d.ts.map +1 -0
- package/dist/core/workflow/engine/OptionsBuilder.js +80 -0
- package/dist/core/workflow/engine/OptionsBuilder.js.map +1 -0
- package/dist/core/workflow/engine/ParallelRunner.d.ts +40 -0
- package/dist/core/workflow/engine/ParallelRunner.d.ts.map +1 -0
- package/dist/core/workflow/engine/ParallelRunner.js +111 -0
- package/dist/core/workflow/engine/ParallelRunner.js.map +1 -0
- package/dist/core/workflow/engine/WorkflowEngine.d.ts +72 -0
- package/dist/core/workflow/engine/WorkflowEngine.d.ts.map +1 -0
- package/dist/core/workflow/engine/WorkflowEngine.js +388 -0
- package/dist/core/workflow/engine/WorkflowEngine.js.map +1 -0
- package/dist/core/workflow/engine/blocked-handler.d.ts +27 -0
- package/dist/core/workflow/engine/blocked-handler.d.ts.map +1 -0
- package/dist/core/workflow/engine/blocked-handler.js +40 -0
- package/dist/core/workflow/engine/blocked-handler.js.map +1 -0
- package/dist/core/workflow/engine/index.d.ts +11 -0
- package/dist/core/workflow/engine/index.d.ts.map +1 -0
- package/dist/core/workflow/engine/index.js +10 -0
- package/dist/core/workflow/engine/index.js.map +1 -0
- package/dist/core/workflow/engine/loop-detector.d.ts +31 -0
- package/dist/core/workflow/engine/loop-detector.d.ts.map +1 -0
- package/dist/core/workflow/engine/loop-detector.js +61 -0
- package/dist/core/workflow/engine/loop-detector.js.map +1 -0
- package/dist/core/workflow/engine/parallel-logger.d.ts +76 -0
- package/dist/core/workflow/engine/parallel-logger.d.ts.map +1 -0
- package/dist/core/workflow/engine/parallel-logger.js +174 -0
- package/dist/core/workflow/engine/parallel-logger.js.map +1 -0
- package/dist/core/workflow/engine/state-manager.d.ts +46 -0
- package/dist/core/workflow/engine/state-manager.d.ts.map +1 -0
- package/dist/core/workflow/engine/state-manager.js +97 -0
- package/dist/core/workflow/engine/state-manager.js.map +1 -0
- package/dist/core/workflow/engine/transitions.d.ts +17 -0
- package/dist/core/workflow/engine/transitions.d.ts.map +1 -0
- package/dist/core/workflow/engine/transitions.js +38 -0
- package/dist/core/workflow/engine/transitions.js.map +1 -0
- package/dist/core/workflow/evaluation/AggregateEvaluator.d.ts +32 -0
- package/dist/core/workflow/evaluation/AggregateEvaluator.d.ts.map +1 -0
- package/dist/core/workflow/evaluation/AggregateEvaluator.js +122 -0
- package/dist/core/workflow/evaluation/AggregateEvaluator.js.map +1 -0
- package/dist/core/workflow/evaluation/RuleEvaluator.d.ts +55 -0
- package/dist/core/workflow/evaluation/RuleEvaluator.d.ts.map +1 -0
- package/dist/core/workflow/evaluation/RuleEvaluator.js +149 -0
- package/dist/core/workflow/evaluation/RuleEvaluator.js.map +1 -0
- package/dist/core/workflow/evaluation/index.d.ts +18 -0
- package/dist/core/workflow/evaluation/index.d.ts.map +1 -0
- package/dist/core/workflow/evaluation/index.js +22 -0
- package/dist/core/workflow/evaluation/index.js.map +1 -0
- package/dist/core/workflow/evaluation/rule-utils.d.ts +13 -0
- package/dist/core/workflow/evaluation/rule-utils.d.ts.map +1 -0
- package/dist/core/workflow/evaluation/rule-utils.js +17 -0
- package/dist/core/workflow/evaluation/rule-utils.js.map +1 -0
- package/dist/core/workflow/index.d.ts +23 -0
- package/dist/core/workflow/index.d.ts.map +1 -0
- package/dist/core/workflow/index.js +32 -0
- package/dist/core/workflow/index.js.map +1 -0
- package/dist/core/workflow/instruction/InstructionBuilder.d.ts +46 -0
- package/dist/core/workflow/instruction/InstructionBuilder.d.ts.map +1 -0
- package/dist/core/workflow/instruction/InstructionBuilder.js +165 -0
- package/dist/core/workflow/instruction/InstructionBuilder.js.map +1 -0
- package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts +34 -0
- package/dist/core/workflow/instruction/ReportInstructionBuilder.d.ts.map +1 -0
- package/dist/core/workflow/instruction/ReportInstructionBuilder.js +77 -0
- package/dist/core/workflow/instruction/ReportInstructionBuilder.js.map +1 -0
- package/dist/core/workflow/instruction/StatusJudgmentBuilder.d.ts +31 -0
- package/dist/core/workflow/instruction/StatusJudgmentBuilder.d.ts.map +1 -0
- package/dist/core/workflow/instruction/StatusJudgmentBuilder.js +38 -0
- package/dist/core/workflow/instruction/StatusJudgmentBuilder.js.map +1 -0
- package/dist/core/workflow/instruction/escape.d.ts +19 -0
- package/dist/core/workflow/instruction/escape.d.ts.map +1 -0
- package/dist/core/workflow/instruction/escape.js +50 -0
- package/dist/core/workflow/instruction/escape.js.map +1 -0
- package/dist/core/workflow/instruction/index.d.ts +8 -0
- package/dist/core/workflow/instruction/index.d.ts.map +1 -0
- package/dist/core/workflow/instruction/index.js +8 -0
- package/dist/core/workflow/instruction/index.js.map +1 -0
- package/dist/core/workflow/instruction/instruction-context.d.ts +48 -0
- package/dist/core/workflow/instruction/instruction-context.d.ts.map +1 -0
- package/dist/core/workflow/instruction/instruction-context.js +27 -0
- package/dist/core/workflow/instruction/instruction-context.js.map +1 -0
- package/dist/core/workflow/instruction/status-rules.d.ts +28 -0
- package/dist/core/workflow/instruction/status-rules.d.ts.map +1 -0
- package/dist/core/workflow/instruction/status-rules.js +66 -0
- package/dist/core/workflow/instruction/status-rules.js.map +1 -0
- package/dist/core/workflow/parallel-logger.d.ts +5 -0
- package/dist/core/workflow/parallel-logger.d.ts.map +1 -0
- package/dist/core/workflow/parallel-logger.js +5 -0
- package/dist/core/workflow/parallel-logger.js.map +1 -0
- package/dist/core/workflow/phase-runner.d.ts +48 -0
- package/dist/core/workflow/phase-runner.d.ts.map +1 -0
- package/dist/core/workflow/phase-runner.js +152 -0
- package/dist/core/workflow/phase-runner.js.map +1 -0
- package/dist/core/workflow/types.d.ts +178 -0
- package/dist/core/workflow/types.d.ts.map +1 -0
- package/dist/core/workflow/types.js.map +1 -0
- package/dist/features/config/ejectBuiltin.d.ts +13 -0
- package/dist/features/config/ejectBuiltin.d.ts.map +1 -0
- package/dist/features/config/ejectBuiltin.js +104 -0
- package/dist/features/config/ejectBuiltin.js.map +1 -0
- package/dist/features/config/index.d.ts +7 -0
- package/dist/features/config/index.d.ts.map +1 -0
- package/dist/features/config/index.js +7 -0
- package/dist/features/config/index.js.map +1 -0
- package/dist/features/config/switchConfig.d.ts +33 -0
- package/dist/features/config/switchConfig.d.ts.map +1 -0
- package/dist/features/config/switchConfig.js +103 -0
- package/dist/features/config/switchConfig.js.map +1 -0
- package/dist/features/config/switchWorkflow.d.ts +9 -0
- package/dist/features/config/switchWorkflow.d.ts.map +1 -0
- package/dist/features/config/switchWorkflow.js +51 -0
- package/dist/features/config/switchWorkflow.js.map +1 -0
- package/dist/features/interactive/index.d.ts +5 -0
- package/dist/features/interactive/index.d.ts.map +1 -0
- package/dist/features/interactive/index.js +5 -0
- package/dist/features/interactive/index.js.map +1 -0
- package/dist/features/interactive/interactive.d.ts +34 -0
- package/dist/features/interactive/interactive.d.ts.map +1 -0
- package/dist/features/interactive/interactive.js +260 -0
- package/dist/features/interactive/interactive.js.map +1 -0
- package/dist/features/pipeline/execute.d.ts +19 -0
- package/dist/features/pipeline/execute.d.ts.map +1 -0
- package/dist/features/pipeline/execute.js +192 -0
- package/dist/features/pipeline/execute.js.map +1 -0
- package/dist/features/pipeline/index.d.ts +5 -0
- package/dist/features/pipeline/index.d.ts.map +1 -0
- package/dist/features/pipeline/index.js +5 -0
- package/dist/features/pipeline/index.js.map +1 -0
- package/dist/features/prompt/index.d.ts +5 -0
- package/dist/features/prompt/index.d.ts.map +1 -0
- package/dist/features/prompt/index.js +5 -0
- package/dist/features/prompt/index.js.map +1 -0
- package/dist/features/prompt/preview.d.ts +14 -0
- package/dist/features/prompt/preview.d.ts.map +1 -0
- package/dist/features/prompt/preview.js +74 -0
- package/dist/features/prompt/preview.js.map +1 -0
- package/dist/features/tasks/add/index.d.ts +19 -0
- package/dist/features/tasks/add/index.d.ts.map +1 -0
- package/dist/features/tasks/add/index.js +129 -0
- package/dist/features/tasks/add/index.js.map +1 -0
- package/dist/features/tasks/execute/selectAndExecute.d.ts +24 -0
- package/dist/features/tasks/execute/selectAndExecute.d.ts.map +1 -0
- package/dist/features/tasks/execute/selectAndExecute.js +143 -0
- package/dist/features/tasks/execute/selectAndExecute.js.map +1 -0
- package/dist/features/tasks/execute/session.d.ts +10 -0
- package/dist/features/tasks/execute/session.d.ts.map +1 -0
- package/dist/features/tasks/execute/session.js +19 -0
- package/dist/features/tasks/execute/session.js.map +1 -0
- package/dist/features/tasks/execute/taskExecution.d.ts +38 -0
- package/dist/features/tasks/execute/taskExecution.d.ts.map +1 -0
- package/dist/features/tasks/execute/taskExecution.js +181 -0
- package/dist/features/tasks/execute/taskExecution.js.map +1 -0
- package/dist/features/tasks/execute/types.d.ts +88 -0
- package/dist/features/tasks/execute/types.d.ts.map +1 -0
- package/dist/features/tasks/execute/types.js +5 -0
- package/dist/features/tasks/execute/types.js.map +1 -0
- package/dist/features/tasks/execute/workflowExecution.d.ts +11 -0
- package/dist/features/tasks/execute/workflowExecution.d.ts.map +1 -0
- package/dist/features/tasks/execute/workflowExecution.js +323 -0
- package/dist/features/tasks/execute/workflowExecution.js.map +1 -0
- package/dist/features/tasks/index.d.ts +13 -0
- package/dist/features/tasks/index.d.ts.map +1 -0
- package/dist/features/tasks/index.js +12 -0
- package/dist/features/tasks/index.js.map +1 -0
- package/dist/features/tasks/list/index.d.ts +13 -0
- package/dist/features/tasks/list/index.d.ts.map +1 -0
- package/dist/features/tasks/list/index.js +80 -0
- package/dist/features/tasks/list/index.js.map +1 -0
- package/dist/features/tasks/list/taskActions.d.ts +42 -0
- package/dist/features/tasks/list/taskActions.d.ts.map +1 -0
- package/dist/features/tasks/list/taskActions.js +289 -0
- package/dist/features/tasks/list/taskActions.js.map +1 -0
- package/dist/features/tasks/watch/index.d.ts +13 -0
- package/dist/features/tasks/watch/index.d.ts.map +1 -0
- package/dist/features/tasks/watch/index.js +67 -0
- package/dist/features/tasks/watch/index.js.map +1 -0
- package/dist/features/workflowSelection/index.d.ts +55 -0
- package/dist/features/workflowSelection/index.d.ts.map +1 -0
- package/dist/features/workflowSelection/index.js +492 -0
- package/dist/features/workflowSelection/index.js.map +1 -0
- package/dist/index.d.ts +17 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -8
- package/dist/index.js.map +1 -1
- package/dist/infra/claude/client.d.ts +75 -0
- package/dist/infra/claude/client.d.ts.map +1 -0
- package/dist/infra/claude/client.js +217 -0
- package/dist/infra/claude/client.js.map +1 -0
- package/dist/infra/claude/executor.d.ts +26 -0
- package/dist/infra/claude/executor.d.ts.map +1 -0
- package/dist/infra/claude/executor.js +135 -0
- package/dist/infra/claude/executor.js.map +1 -0
- package/dist/infra/claude/index.d.ts +19 -0
- package/dist/infra/claude/index.d.ts.map +1 -0
- package/dist/infra/claude/index.js +24 -0
- package/dist/infra/claude/index.js.map +1 -0
- package/dist/infra/claude/options-builder.d.ts +37 -0
- package/dist/infra/claude/options-builder.d.ts.map +1 -0
- package/dist/infra/claude/options-builder.js +145 -0
- package/dist/infra/claude/options-builder.js.map +1 -0
- package/dist/infra/claude/process.d.ts +35 -0
- package/dist/infra/claude/process.d.ts.map +1 -0
- package/dist/infra/claude/process.js +57 -0
- package/dist/infra/claude/process.js.map +1 -0
- package/dist/infra/claude/query-manager.d.ts +57 -0
- package/dist/infra/claude/query-manager.d.ts.map +1 -0
- package/dist/infra/claude/query-manager.js +112 -0
- package/dist/infra/claude/query-manager.js.map +1 -0
- package/dist/infra/claude/stream-converter.d.ts +19 -0
- package/dist/infra/claude/stream-converter.d.ts.map +1 -0
- package/dist/infra/claude/stream-converter.js +170 -0
- package/dist/infra/claude/stream-converter.js.map +1 -0
- package/dist/infra/claude/types.d.ts +157 -0
- package/dist/infra/claude/types.d.ts.map +1 -0
- package/dist/infra/claude/types.js.map +1 -0
- package/dist/infra/codex/CodexStreamHandler.d.ts +40 -0
- package/dist/infra/codex/CodexStreamHandler.d.ts.map +1 -0
- package/dist/infra/codex/CodexStreamHandler.js +262 -0
- package/dist/infra/codex/CodexStreamHandler.js.map +1 -0
- package/dist/infra/codex/client.d.ts +23 -0
- package/dist/infra/codex/client.d.ts.map +1 -0
- package/dist/infra/codex/client.js +170 -0
- package/dist/infra/codex/client.js.map +1 -0
- package/dist/infra/codex/index.d.ts +7 -0
- package/dist/infra/codex/index.d.ts.map +1 -0
- package/dist/infra/codex/index.js +6 -0
- package/dist/infra/codex/index.js.map +1 -0
- package/dist/infra/codex/types.d.ts +23 -0
- package/dist/infra/codex/types.d.ts.map +1 -0
- package/dist/infra/codex/types.js +13 -0
- package/dist/infra/codex/types.js.map +1 -0
- package/dist/infra/config/global/bookmarks.d.ts +22 -0
- package/dist/infra/config/global/bookmarks.d.ts.map +1 -0
- package/dist/infra/config/global/bookmarks.js +89 -0
- package/dist/infra/config/global/bookmarks.js.map +1 -0
- package/dist/infra/config/global/globalConfig.d.ts +50 -0
- package/dist/infra/config/global/globalConfig.d.ts.map +1 -0
- package/dist/infra/config/global/globalConfig.js +274 -0
- package/dist/infra/config/global/globalConfig.js.map +1 -0
- package/dist/infra/config/global/index.d.ts +8 -0
- package/dist/infra/config/global/index.d.ts.map +1 -0
- package/dist/infra/config/global/index.js +8 -0
- package/dist/infra/config/global/index.js.map +1 -0
- package/dist/infra/config/global/initialization.d.ts +45 -0
- package/dist/infra/config/global/initialization.d.ts.map +1 -0
- package/dist/infra/config/global/initialization.js +96 -0
- package/dist/infra/config/global/initialization.js.map +1 -0
- package/dist/infra/config/global/workflowCategories.d.ts +19 -0
- package/dist/infra/config/global/workflowCategories.d.ts.map +1 -0
- package/dist/infra/config/global/workflowCategories.js +85 -0
- package/dist/infra/config/global/workflowCategories.js.map +1 -0
- package/dist/infra/config/index.d.ts +8 -0
- package/dist/infra/config/index.d.ts.map +1 -0
- package/dist/infra/config/index.js +8 -0
- package/dist/infra/config/index.js.map +1 -0
- package/dist/infra/config/loaders/agentLoader.d.ts +27 -0
- package/dist/infra/config/loaders/agentLoader.d.ts.map +1 -0
- package/dist/infra/config/loaders/agentLoader.js +90 -0
- package/dist/infra/config/loaders/agentLoader.js.map +1 -0
- package/dist/infra/config/loaders/index.d.ts +7 -0
- package/dist/infra/config/loaders/index.d.ts.map +1 -0
- package/dist/infra/config/loaders/index.js +7 -0
- package/dist/infra/config/loaders/index.js.map +1 -0
- package/dist/infra/config/loaders/loader.d.ts +9 -0
- package/dist/infra/config/loaders/loader.d.ts.map +1 -0
- package/dist/infra/config/loaders/loader.js +12 -0
- package/dist/infra/config/loaders/loader.js.map +1 -0
- package/dist/infra/config/loaders/workflowCategories.d.ts +43 -0
- package/dist/infra/config/loaders/workflowCategories.d.ts.map +1 -0
- package/dist/infra/config/loaders/workflowCategories.js +236 -0
- package/dist/infra/config/loaders/workflowCategories.js.map +1 -0
- package/dist/infra/config/loaders/workflowLoader.d.ts +10 -0
- package/dist/infra/config/loaders/workflowLoader.d.ts.map +1 -0
- package/dist/infra/config/loaders/workflowLoader.js +12 -0
- package/dist/infra/config/loaders/workflowLoader.js.map +1 -0
- package/dist/infra/config/loaders/workflowParser.d.ts +18 -0
- package/dist/infra/config/loaders/workflowParser.d.ts.map +1 -0
- package/dist/infra/config/loaders/workflowParser.js +211 -0
- package/dist/infra/config/loaders/workflowParser.js.map +1 -0
- package/dist/infra/config/loaders/workflowResolver.d.ts +86 -0
- package/dist/infra/config/loaders/workflowResolver.d.ts.map +1 -0
- package/dist/infra/config/loaders/workflowResolver.js +248 -0
- package/dist/infra/config/loaders/workflowResolver.js.map +1 -0
- package/dist/infra/config/paths.d.ts +38 -0
- package/dist/infra/config/paths.d.ts.map +1 -0
- package/dist/infra/config/paths.js +77 -0
- package/dist/infra/config/paths.js.map +1 -0
- package/dist/infra/config/project/index.d.ts +6 -0
- package/dist/infra/config/project/index.d.ts.map +1 -0
- package/dist/infra/config/project/index.js +6 -0
- package/dist/infra/config/project/index.js.map +1 -0
- package/dist/infra/config/project/projectConfig.d.ts +32 -0
- package/dist/infra/config/project/projectConfig.d.ts.map +1 -0
- package/dist/infra/config/project/projectConfig.js +89 -0
- package/dist/infra/config/project/projectConfig.js.map +1 -0
- package/dist/infra/config/project/sessionStore.d.ts +56 -0
- package/dist/infra/config/project/sessionStore.d.ts.map +1 -0
- package/dist/infra/config/project/sessionStore.js +273 -0
- package/dist/infra/config/project/sessionStore.js.map +1 -0
- package/dist/infra/config/types.d.ts +38 -0
- package/dist/infra/config/types.d.ts.map +1 -0
- package/dist/infra/config/types.js +5 -0
- package/dist/infra/config/types.js.map +1 -0
- package/dist/infra/fs/index.d.ts +6 -0
- package/dist/infra/fs/index.d.ts.map +1 -0
- package/dist/infra/fs/index.js +5 -0
- package/dist/infra/fs/index.js.map +1 -0
- package/dist/infra/fs/session.d.ts +46 -0
- package/dist/infra/fs/session.d.ts.map +1 -0
- package/dist/infra/fs/session.js +201 -0
- package/dist/infra/fs/session.js.map +1 -0
- package/dist/infra/github/index.d.ts +7 -0
- package/dist/infra/github/index.d.ts.map +1 -0
- package/dist/infra/github/index.js +6 -0
- package/dist/infra/github/index.js.map +1 -0
- package/dist/infra/github/issue.d.ts +60 -0
- package/dist/infra/github/issue.d.ts.map +1 -0
- package/dist/infra/github/issue.js +143 -0
- package/dist/infra/github/issue.js.map +1 -0
- package/dist/infra/github/pr.d.ts +21 -0
- package/dist/infra/github/pr.d.ts.map +1 -0
- package/dist/infra/github/pr.js +78 -0
- package/dist/infra/github/pr.js.map +1 -0
- package/dist/infra/github/types.d.ts +37 -0
- package/dist/infra/github/types.d.ts.map +1 -0
- package/dist/infra/github/types.js +5 -0
- package/dist/infra/github/types.js.map +1 -0
- package/dist/infra/mock/client.d.ts +18 -0
- package/dist/infra/mock/client.d.ts.map +1 -0
- package/dist/infra/mock/client.js.map +1 -0
- package/dist/infra/mock/index.d.ts +7 -0
- package/dist/infra/mock/index.d.ts.map +1 -0
- package/dist/infra/mock/index.js +6 -0
- package/dist/infra/mock/index.js.map +1 -0
- package/dist/infra/mock/scenario.d.ts +50 -0
- package/dist/infra/mock/scenario.d.ts.map +1 -0
- package/dist/infra/mock/scenario.js.map +1 -0
- package/dist/infra/mock/types.d.ts +24 -0
- package/dist/infra/mock/types.d.ts.map +1 -0
- package/dist/infra/mock/types.js +5 -0
- package/dist/infra/mock/types.js.map +1 -0
- package/dist/infra/providers/claude.d.ts +11 -0
- package/dist/infra/providers/claude.d.ts.map +1 -0
- package/dist/infra/providers/claude.js +42 -0
- package/dist/infra/providers/claude.js.map +1 -0
- package/dist/infra/providers/codex.d.ts +11 -0
- package/dist/infra/providers/codex.d.ts.map +1 -0
- package/dist/infra/providers/codex.js +32 -0
- package/dist/infra/providers/codex.js.map +1 -0
- package/dist/infra/providers/index.d.ts +24 -0
- package/dist/infra/providers/index.d.ts.map +1 -0
- package/dist/infra/providers/index.js +46 -0
- package/dist/infra/providers/index.js.map +1 -0
- package/dist/infra/providers/mock.d.ts +11 -0
- package/dist/infra/providers/mock.d.ts.map +1 -0
- package/dist/infra/providers/mock.js +24 -0
- package/dist/infra/providers/mock.js.map +1 -0
- package/dist/infra/providers/types.d.ts +35 -0
- package/dist/infra/providers/types.d.ts.map +1 -0
- package/dist/infra/providers/types.js +5 -0
- package/dist/infra/providers/types.js.map +1 -0
- package/dist/infra/resources/index.d.ts +34 -0
- package/dist/infra/resources/index.d.ts.map +1 -0
- package/dist/infra/resources/index.js +85 -0
- package/dist/infra/resources/index.js.map +1 -0
- package/dist/infra/task/autoCommit.d.ts +33 -0
- package/dist/infra/task/autoCommit.d.ts.map +1 -0
- package/dist/infra/task/autoCommit.js +62 -0
- package/dist/infra/task/autoCommit.js.map +1 -0
- package/dist/infra/task/branchList.d.ts +41 -0
- package/dist/infra/task/branchList.d.ts.map +1 -0
- package/dist/infra/task/branchList.js +220 -0
- package/dist/infra/task/branchList.js.map +1 -0
- package/dist/infra/task/clone.d.ts +58 -0
- package/dist/infra/task/clone.d.ts.map +1 -0
- package/dist/infra/task/clone.js +238 -0
- package/dist/infra/task/clone.js.map +1 -0
- package/dist/infra/task/display.d.ts.map +1 -0
- package/dist/infra/task/display.js +59 -0
- package/dist/infra/task/display.js.map +1 -0
- package/dist/infra/task/git.d.ts.map +1 -0
- package/dist/infra/task/git.js.map +1 -0
- package/dist/infra/task/index.d.ts +19 -0
- package/dist/infra/task/index.d.ts.map +1 -0
- package/dist/infra/task/index.js +19 -0
- package/dist/infra/task/index.js.map +1 -0
- package/dist/infra/task/parser.d.ts +33 -0
- package/dist/infra/task/parser.d.ts.map +1 -0
- package/dist/infra/task/parser.js +86 -0
- package/dist/infra/task/parser.js.map +1 -0
- package/dist/infra/task/runner.d.ts +71 -0
- package/dist/infra/task/runner.d.ts.map +1 -0
- package/dist/infra/task/runner.js.map +1 -0
- package/dist/infra/task/schema.d.ts +33 -0
- package/dist/infra/task/schema.d.ts.map +1 -0
- package/dist/infra/task/schema.js +32 -0
- package/dist/infra/task/schema.js.map +1 -0
- package/dist/infra/task/summarize.d.ts +22 -0
- package/dist/infra/task/summarize.d.ts.map +1 -0
- package/dist/infra/task/summarize.js +72 -0
- package/dist/infra/task/summarize.js.map +1 -0
- package/dist/infra/task/types.d.ts +61 -0
- package/dist/infra/task/types.d.ts.map +1 -0
- package/dist/infra/task/types.js +5 -0
- package/dist/infra/task/types.js.map +1 -0
- package/dist/infra/task/watcher.d.ts +33 -0
- package/dist/infra/task/watcher.d.ts.map +1 -0
- package/dist/infra/task/watcher.js +69 -0
- package/dist/infra/task/watcher.js.map +1 -0
- package/dist/shared/constants.d.ts +11 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/context.d.ts +24 -0
- package/dist/shared/context.d.ts.map +1 -0
- package/dist/shared/context.js +39 -0
- package/dist/shared/context.js.map +1 -0
- package/dist/shared/exitCodes.d.ts.map +1 -0
- package/dist/shared/exitCodes.js.map +1 -0
- package/dist/shared/i18n/index.d.ts +31 -0
- package/dist/shared/i18n/index.d.ts.map +1 -0
- package/dist/shared/i18n/index.js +97 -0
- package/dist/shared/i18n/index.js.map +1 -0
- package/dist/shared/i18n/labels_en.yaml +37 -0
- package/dist/shared/i18n/labels_ja.yaml +37 -0
- package/dist/shared/prompt/confirm.d.ts +23 -0
- package/dist/shared/prompt/confirm.d.ts.map +1 -0
- package/dist/shared/prompt/confirm.js +85 -0
- package/dist/shared/prompt/confirm.js.map +1 -0
- package/dist/shared/prompt/index.d.ts +10 -0
- package/dist/shared/prompt/index.d.ts.map +1 -0
- package/dist/shared/prompt/index.js +10 -0
- package/dist/shared/prompt/index.js.map +1 -0
- package/dist/shared/prompt/select.d.ts +73 -0
- package/dist/shared/prompt/select.d.ts.map +1 -0
- package/dist/shared/prompt/select.js +238 -0
- package/dist/shared/prompt/select.js.map +1 -0
- package/dist/shared/prompts/en/perform_agent_system_prompt.md +7 -0
- package/dist/shared/prompts/en/perform_builtin_agent_system_prompt.md +7 -0
- package/dist/shared/prompts/en/perform_judge_message.md +24 -0
- package/dist/shared/prompts/en/perform_phase1_message.md +45 -0
- package/dist/shared/prompts/en/perform_phase2_message.md +31 -0
- package/dist/shared/prompts/en/perform_phase3_message.md +19 -0
- package/dist/shared/prompts/en/score_interactive_system_prompt.md +53 -0
- package/dist/shared/prompts/en/score_slug_system_prompt.md +19 -0
- package/dist/shared/prompts/en/score_summary_system_prompt.md +25 -0
- package/dist/shared/prompts/index.d.ts +27 -0
- package/dist/shared/prompts/index.d.ts.map +1 -0
- package/dist/shared/prompts/index.js +111 -0
- package/dist/shared/prompts/index.js.map +1 -0
- package/dist/shared/prompts/ja/perform_agent_system_prompt.md +7 -0
- package/dist/shared/prompts/ja/perform_builtin_agent_system_prompt.md +7 -0
- package/dist/shared/prompts/ja/perform_judge_message.md +24 -0
- package/dist/shared/prompts/ja/perform_phase1_message.md +44 -0
- package/dist/shared/prompts/ja/perform_phase2_message.md +30 -0
- package/dist/shared/prompts/ja/perform_phase3_message.md +19 -0
- package/dist/shared/prompts/ja/score_interactive_system_prompt.md +59 -0
- package/dist/shared/prompts/ja/score_slug_system_prompt.md +19 -0
- package/dist/shared/prompts/ja/score_summary_system_prompt.md +32 -0
- package/dist/shared/ui/LogManager.d.ts +49 -0
- package/dist/shared/ui/LogManager.d.ts.map +1 -0
- package/dist/shared/ui/LogManager.js +124 -0
- package/dist/shared/ui/LogManager.js.map +1 -0
- package/dist/shared/ui/Spinner.d.ts +17 -0
- package/dist/shared/ui/Spinner.d.ts.map +1 -0
- package/dist/shared/ui/Spinner.js +36 -0
- package/dist/shared/ui/Spinner.js.map +1 -0
- package/dist/shared/ui/StreamDisplay.d.ts +42 -0
- package/dist/shared/ui/StreamDisplay.d.ts.map +1 -0
- package/dist/shared/ui/StreamDisplay.js +263 -0
- package/dist/shared/ui/StreamDisplay.js.map +1 -0
- package/dist/shared/ui/index.d.ts +12 -0
- package/dist/shared/ui/index.d.ts.map +1 -0
- package/dist/shared/ui/index.js +12 -0
- package/dist/shared/ui/index.js.map +1 -0
- package/dist/shared/utils/debug.d.ts +73 -0
- package/dist/shared/utils/debug.d.ts.map +1 -0
- package/dist/shared/utils/debug.js +173 -0
- package/dist/shared/utils/debug.js.map +1 -0
- package/dist/shared/utils/error.d.ts.map +1 -0
- package/dist/shared/utils/error.js.map +1 -0
- package/dist/shared/utils/index.d.ts +12 -0
- package/dist/shared/utils/index.d.ts.map +1 -0
- package/dist/shared/utils/index.js +12 -0
- package/dist/shared/utils/index.js.map +1 -0
- package/dist/shared/utils/notification.d.ts.map +1 -0
- package/dist/shared/utils/notification.js.map +1 -0
- package/dist/shared/utils/reportDir.d.ts +5 -0
- package/dist/shared/utils/reportDir.d.ts.map +1 -0
- package/dist/shared/utils/reportDir.js +18 -0
- package/dist/shared/utils/reportDir.js.map +1 -0
- package/dist/shared/utils/slug.d.ts.map +1 -0
- package/dist/shared/utils/slug.js.map +1 -0
- package/dist/shared/utils/text.d.ts.map +1 -0
- package/dist/shared/utils/text.js.map +1 -0
- package/dist/shared/utils/types.d.ts +107 -0
- package/dist/shared/utils/types.d.ts.map +1 -0
- package/dist/shared/utils/types.js +8 -0
- package/dist/shared/utils/types.js.map +1 -0
- package/dist/shared/utils/updateNotifier.d.ts.map +1 -0
- package/dist/shared/utils/updateNotifier.js +17 -0
- package/dist/shared/utils/updateNotifier.js.map +1 -0
- package/package.json +3 -3
- package/resources/global/en/agents/default/ai-antipattern-reviewer.md +6 -0
- package/resources/global/en/agents/default/coder.md +1 -0
- package/resources/global/en/agents/default/planner.md +1 -0
- package/resources/global/en/agents/expert/frontend-reviewer.md +395 -33
- package/resources/global/en/agents/templates/planner.md +1 -0
- package/resources/global/en/config.yaml +3 -0
- package/resources/global/en/default-categories.yaml +30 -0
- package/resources/global/en/pieces/default.yaml +579 -0
- package/resources/global/en/pieces/expert-cqrs.yaml +655 -0
- package/resources/global/en/pieces/expert.yaml +668 -0
- package/resources/global/en/pieces/magi.yaml +150 -0
- package/resources/global/en/pieces/minimal.yaml +427 -0
- package/resources/global/en/pieces/research.yaml +134 -0
- package/resources/global/en/pieces/review-fix-minimal.yaml +427 -0
- package/resources/global/en/pieces/review-only.yaml +330 -0
- package/resources/global/en/prompts/interactive-summary.md +14 -0
- package/resources/global/en/prompts/interactive-system.md +43 -0
- package/resources/global/ja/agents/default/ai-antipattern-reviewer.md +6 -0
- package/resources/global/ja/agents/default/architecture-reviewer.md +3 -3
- package/resources/global/ja/agents/default/coder.md +1 -0
- package/resources/global/ja/agents/default/planner.md +1 -0
- package/resources/global/ja/agents/default/supervisor.md +1 -1
- package/resources/global/ja/agents/expert/frontend-reviewer.md +94 -1
- package/resources/global/ja/agents/templates/planner.md +2 -1
- package/resources/global/ja/config.yaml +3 -0
- package/resources/global/ja/default-categories.yaml +29 -0
- package/resources/global/ja/pieces/default.yaml +576 -0
- package/resources/global/ja/pieces/expert-cqrs.yaml +663 -0
- package/resources/global/ja/pieces/expert.yaml +654 -0
- package/resources/global/ja/pieces/magi.yaml +150 -0
- package/resources/global/ja/pieces/minimal.yaml +427 -0
- package/resources/global/ja/pieces/research.yaml +134 -0
- package/resources/global/ja/pieces/review-fix-minimal.yaml +427 -0
- package/resources/global/ja/pieces/review-only.yaml +331 -0
- package/resources/global/ja/prompts/interactive-summary.md +14 -0
- package/resources/global/ja/prompts/interactive-system.md +43 -0
- package/resources/project/dotgitignore +1 -0
- package/dist/claude/client.d.ts +0 -72
- package/dist/claude/client.d.ts.map +0 -1
- package/dist/claude/client.js +0 -216
- package/dist/claude/client.js.map +0 -1
- package/dist/claude/executor.d.ts +0 -31
- package/dist/claude/executor.d.ts.map +0 -1
- package/dist/claude/executor.js +0 -186
- package/dist/claude/executor.js.map +0 -1
- package/dist/claude/index.d.ts +0 -14
- package/dist/claude/index.d.ts.map +0 -1
- package/dist/claude/index.js +0 -18
- package/dist/claude/index.js.map +0 -1
- package/dist/claude/options-builder.d.ts +0 -40
- package/dist/claude/options-builder.d.ts.map +0 -1
- package/dist/claude/options-builder.js +0 -90
- package/dist/claude/options-builder.js.map +0 -1
- package/dist/claude/process.d.ts +0 -59
- package/dist/claude/process.d.ts.map +0 -1
- package/dist/claude/process.js +0 -57
- package/dist/claude/process.js.map +0 -1
- package/dist/claude/query-manager.d.ts +0 -35
- package/dist/claude/query-manager.d.ts.map +0 -1
- package/dist/claude/query-manager.js +0 -74
- package/dist/claude/query-manager.js.map +0 -1
- package/dist/claude/stream-converter.d.ts +0 -19
- package/dist/claude/stream-converter.d.ts.map +0 -1
- package/dist/claude/stream-converter.js +0 -170
- package/dist/claude/stream-converter.js.map +0 -1
- package/dist/claude/types.d.ts +0 -109
- package/dist/claude/types.d.ts.map +0 -1
- package/dist/claude/types.js.map +0 -1
- package/dist/cli.d.ts +0 -36
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -380
- package/dist/cli.js.map +0 -1
- package/dist/codex/client.d.ts +0 -27
- package/dist/codex/client.d.ts.map +0 -1
- package/dist/codex/client.js +0 -417
- package/dist/codex/client.js.map +0 -1
- package/dist/codex/index.d.ts +0 -5
- package/dist/codex/index.d.ts.map +0 -1
- package/dist/codex/index.js +0 -5
- package/dist/codex/index.js.map +0 -1
- package/dist/commands/addTask.d.ts +0 -22
- package/dist/commands/addTask.d.ts.map +0 -1
- package/dist/commands/addTask.js +0 -156
- package/dist/commands/addTask.js.map +0 -1
- package/dist/commands/config.d.ts +0 -33
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/config.js +0 -103
- package/dist/commands/config.js.map +0 -1
- package/dist/commands/eject.d.ts +0 -13
- package/dist/commands/eject.d.ts.map +0 -1
- package/dist/commands/eject.js +0 -105
- package/dist/commands/eject.js.map +0 -1
- package/dist/commands/index.d.ts +0 -15
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -15
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/interactive.d.ts +0 -28
- package/dist/commands/interactive.d.ts.map +0 -1
- package/dist/commands/interactive.js +0 -201
- package/dist/commands/interactive.js.map +0 -1
- package/dist/commands/listTasks.d.ts +0 -46
- package/dist/commands/listTasks.d.ts.map +0 -1
- package/dist/commands/listTasks.js +0 -359
- package/dist/commands/listTasks.js.map +0 -1
- package/dist/commands/pipelineExecution.d.ts +0 -38
- package/dist/commands/pipelineExecution.d.ts.map +0 -1
- package/dist/commands/pipelineExecution.js +0 -194
- package/dist/commands/pipelineExecution.js.map +0 -1
- package/dist/commands/session.d.ts +0 -10
- package/dist/commands/session.d.ts.map +0 -1
- package/dist/commands/session.js +0 -20
- package/dist/commands/session.js.map +0 -1
- package/dist/commands/taskExecution.d.ts +0 -53
- package/dist/commands/taskExecution.d.ts.map +0 -1
- package/dist/commands/taskExecution.js +0 -182
- package/dist/commands/taskExecution.js.map +0 -1
- package/dist/commands/watchTasks.d.ts +0 -13
- package/dist/commands/watchTasks.d.ts.map +0 -1
- package/dist/commands/watchTasks.js +0 -68
- package/dist/commands/watchTasks.js.map +0 -1
- package/dist/commands/workflow.d.ts +0 -9
- package/dist/commands/workflow.d.ts.map +0 -1
- package/dist/commands/workflow.js +0 -51
- package/dist/commands/workflow.js.map +0 -1
- package/dist/commands/workflowExecution.d.ts +0 -26
- package/dist/commands/workflowExecution.d.ts.map +0 -1
- package/dist/commands/workflowExecution.js +0 -262
- package/dist/commands/workflowExecution.js.map +0 -1
- package/dist/config/agentLoader.d.ts +0 -27
- package/dist/config/agentLoader.d.ts.map +0 -1
- package/dist/config/agentLoader.js +0 -89
- package/dist/config/agentLoader.js.map +0 -1
- package/dist/config/globalConfig.d.ts +0 -39
- package/dist/config/globalConfig.d.ts.map +0 -1
- package/dist/config/globalConfig.js +0 -231
- package/dist/config/globalConfig.js.map +0 -1
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -7
- package/dist/config/index.js.map +0 -1
- package/dist/config/initialization.d.ts +0 -45
- package/dist/config/initialization.d.ts.map +0 -1
- package/dist/config/initialization.js +0 -96
- package/dist/config/initialization.js.map +0 -1
- package/dist/config/loader.d.ts +0 -9
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js +0 -12
- package/dist/config/loader.js.map +0 -1
- package/dist/config/paths.d.ts +0 -38
- package/dist/config/paths.d.ts.map +0 -1
- package/dist/config/paths.js +0 -77
- package/dist/config/paths.js.map +0 -1
- package/dist/config/projectConfig.d.ts +0 -52
- package/dist/config/projectConfig.d.ts.map +0 -1
- package/dist/config/projectConfig.js +0 -89
- package/dist/config/projectConfig.js.map +0 -1
- package/dist/config/sessionStore.d.ts +0 -61
- package/dist/config/sessionStore.d.ts.map +0 -1
- package/dist/config/sessionStore.js +0 -273
- package/dist/config/sessionStore.js.map +0 -1
- package/dist/config/workflowLoader.d.ts +0 -61
- package/dist/config/workflowLoader.d.ts.map +0 -1
- package/dist/config/workflowLoader.js +0 -390
- package/dist/config/workflowLoader.js.map +0 -1
- package/dist/constants.d.ts +0 -9
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/exitCodes.d.ts.map +0 -1
- package/dist/exitCodes.js.map +0 -1
- package/dist/github/issue.d.ts +0 -72
- package/dist/github/issue.d.ts.map +0 -1
- package/dist/github/issue.js +0 -143
- package/dist/github/issue.js.map +0 -1
- package/dist/github/pr.d.ts +0 -39
- package/dist/github/pr.d.ts.map +0 -1
- package/dist/github/pr.js +0 -79
- package/dist/github/pr.js.map +0 -1
- package/dist/mock/client.d.ts +0 -27
- package/dist/mock/client.d.ts.map +0 -1
- package/dist/mock/client.js.map +0 -1
- package/dist/mock/scenario.d.ts +0 -57
- package/dist/mock/scenario.d.ts.map +0 -1
- package/dist/mock/scenario.js.map +0 -1
- package/dist/models/agent.d.ts +0 -37
- package/dist/models/agent.d.ts.map +0 -1
- package/dist/models/agent.js +0 -11
- package/dist/models/agent.js.map +0 -1
- package/dist/models/config.d.ts +0 -19
- package/dist/models/config.d.ts.map +0 -1
- package/dist/models/config.js +0 -25
- package/dist/models/config.js.map +0 -1
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -11
- package/dist/models/index.js.map +0 -1
- package/dist/models/schemas.d.ts +0 -331
- package/dist/models/schemas.d.ts.map +0 -1
- package/dist/models/schemas.js +0 -176
- package/dist/models/schemas.js.map +0 -1
- package/dist/models/session.d.ts +0 -50
- package/dist/models/session.d.ts.map +0 -1
- package/dist/models/session.js.map +0 -1
- package/dist/models/types.d.ts +0 -187
- package/dist/models/types.d.ts.map +0 -1
- package/dist/models/types.js +0 -5
- package/dist/models/types.js.map +0 -1
- package/dist/models/workflow.d.ts +0 -58
- package/dist/models/workflow.d.ts.map +0 -1
- package/dist/models/workflow.js +0 -19
- package/dist/models/workflow.js.map +0 -1
- package/dist/prompt/index.d.ts +0 -77
- package/dist/prompt/index.d.ts.map +0 -1
- package/dist/prompt/index.js +0 -305
- package/dist/prompt/index.js.map +0 -1
- package/dist/providers/claude.d.ts +0 -11
- package/dist/providers/claude.d.ts.map +0 -1
- package/dist/providers/claude.js +0 -42
- package/dist/providers/claude.js.map +0 -1
- package/dist/providers/codex.d.ts +0 -11
- package/dist/providers/codex.d.ts.map +0 -1
- package/dist/providers/codex.js +0 -30
- package/dist/providers/codex.js.map +0 -1
- package/dist/providers/index.d.ts +0 -46
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js +0 -32
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/mock.d.ts +0 -11
- package/dist/providers/mock.d.ts.map +0 -1
- package/dist/providers/mock.js +0 -24
- package/dist/providers/mock.js.map +0 -1
- package/dist/resources/index.d.ts +0 -33
- package/dist/resources/index.d.ts.map +0 -1
- package/dist/resources/index.js +0 -84
- package/dist/resources/index.js.map +0 -1
- package/dist/task/autoCommit.d.ts +0 -31
- package/dist/task/autoCommit.d.ts.map +0 -1
- package/dist/task/autoCommit.js +0 -58
- package/dist/task/autoCommit.js.map +0 -1
- package/dist/task/branchList.d.ts +0 -55
- package/dist/task/branchList.d.ts.map +0 -1
- package/dist/task/branchList.js +0 -131
- package/dist/task/branchList.js.map +0 -1
- package/dist/task/clone.d.ts +0 -53
- package/dist/task/clone.d.ts.map +0 -1
- package/dist/task/clone.js +0 -199
- package/dist/task/clone.js.map +0 -1
- package/dist/task/display.d.ts.map +0 -1
- package/dist/task/display.js +0 -59
- package/dist/task/display.js.map +0 -1
- package/dist/task/git.d.ts.map +0 -1
- package/dist/task/git.js.map +0 -1
- package/dist/task/index.d.ts +0 -12
- package/dist/task/index.d.ts.map +0 -1
- package/dist/task/index.js +0 -12
- package/dist/task/index.js.map +0 -1
- package/dist/task/parser.d.ts +0 -33
- package/dist/task/parser.d.ts.map +0 -1
- package/dist/task/parser.js +0 -86
- package/dist/task/parser.js.map +0 -1
- package/dist/task/runner.d.ts +0 -88
- package/dist/task/runner.d.ts.map +0 -1
- package/dist/task/runner.js.map +0 -1
- package/dist/task/schema.d.ts +0 -32
- package/dist/task/schema.d.ts.map +0 -1
- package/dist/task/schema.js +0 -31
- package/dist/task/schema.js.map +0 -1
- package/dist/task/summarize.d.ts +0 -22
- package/dist/task/summarize.d.ts.map +0 -1
- package/dist/task/summarize.js +0 -83
- package/dist/task/summarize.js.map +0 -1
- package/dist/task/watcher.d.ts +0 -33
- package/dist/task/watcher.d.ts.map +0 -1
- package/dist/task/watcher.js +0 -69
- package/dist/task/watcher.js.map +0 -1
- package/dist/utils/debug.d.ts +0 -37
- package/dist/utils/debug.d.ts.map +0 -1
- package/dist/utils/debug.js +0 -142
- package/dist/utils/debug.js.map +0 -1
- package/dist/utils/error.d.ts.map +0 -1
- package/dist/utils/error.js.map +0 -1
- package/dist/utils/index.d.ts +0 -8
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -8
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/notification.d.ts.map +0 -1
- package/dist/utils/notification.js.map +0 -1
- package/dist/utils/session.d.ts +0 -121
- package/dist/utils/session.d.ts.map +0 -1
- package/dist/utils/session.js +0 -196
- package/dist/utils/session.js.map +0 -1
- package/dist/utils/slug.d.ts.map +0 -1
- package/dist/utils/slug.js.map +0 -1
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/text.js.map +0 -1
- package/dist/utils/ui.d.ts +0 -101
- package/dist/utils/ui.d.ts.map +0 -1
- package/dist/utils/ui.js +0 -412
- package/dist/utils/ui.js.map +0 -1
- package/dist/utils/updateNotifier.d.ts.map +0 -1
- package/dist/utils/updateNotifier.js +0 -17
- package/dist/utils/updateNotifier.js.map +0 -1
- package/dist/workflow/blocked-handler.d.ts +0 -27
- package/dist/workflow/blocked-handler.d.ts.map +0 -1
- package/dist/workflow/blocked-handler.js +0 -40
- package/dist/workflow/blocked-handler.js.map +0 -1
- package/dist/workflow/constants.d.ts +0 -20
- package/dist/workflow/constants.d.ts.map +0 -1
- package/dist/workflow/constants.js +0 -20
- package/dist/workflow/constants.js.map +0 -1
- package/dist/workflow/engine.d.ts +0 -89
- package/dist/workflow/engine.d.ts.map +0 -1
- package/dist/workflow/engine.js +0 -496
- package/dist/workflow/engine.js.map +0 -1
- package/dist/workflow/index.d.ts +0 -15
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/index.js +0 -21
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/instruction-builder.d.ts +0 -85
- package/dist/workflow/instruction-builder.d.ts.map +0 -1
- package/dist/workflow/instruction-builder.js +0 -356
- package/dist/workflow/instruction-builder.js.map +0 -1
- package/dist/workflow/instruction-context.d.ts +0 -79
- package/dist/workflow/instruction-context.d.ts.map +0 -1
- package/dist/workflow/instruction-context.js +0 -72
- package/dist/workflow/instruction-context.js.map +0 -1
- package/dist/workflow/loop-detector.d.ts +0 -31
- package/dist/workflow/loop-detector.d.ts.map +0 -1
- package/dist/workflow/loop-detector.js +0 -61
- package/dist/workflow/loop-detector.js.map +0 -1
- package/dist/workflow/parallel-logger.d.ts +0 -76
- package/dist/workflow/parallel-logger.d.ts.map +0 -1
- package/dist/workflow/parallel-logger.js +0 -173
- package/dist/workflow/parallel-logger.js.map +0 -1
- package/dist/workflow/phase-runner.d.ts +0 -40
- package/dist/workflow/phase-runner.d.ts.map +0 -1
- package/dist/workflow/phase-runner.js +0 -69
- package/dist/workflow/phase-runner.js.map +0 -1
- package/dist/workflow/rule-evaluator.d.ts +0 -64
- package/dist/workflow/rule-evaluator.d.ts.map +0 -1
- package/dist/workflow/rule-evaluator.js +0 -178
- package/dist/workflow/rule-evaluator.js.map +0 -1
- package/dist/workflow/rule-utils.d.ts +0 -13
- package/dist/workflow/rule-utils.d.ts.map +0 -1
- package/dist/workflow/rule-utils.js +0 -17
- package/dist/workflow/rule-utils.js.map +0 -1
- package/dist/workflow/state-manager.d.ts +0 -29
- package/dist/workflow/state-manager.d.ts.map +0 -1
- package/dist/workflow/state-manager.js +0 -69
- package/dist/workflow/state-manager.js.map +0 -1
- package/dist/workflow/status-rules.d.ts +0 -21
- package/dist/workflow/status-rules.d.ts.map +0 -1
- package/dist/workflow/status-rules.js +0 -81
- package/dist/workflow/status-rules.js.map +0 -1
- package/dist/workflow/transitions.d.ts +0 -17
- package/dist/workflow/transitions.d.ts.map +0 -1
- package/dist/workflow/transitions.js +0 -38
- package/dist/workflow/transitions.js.map +0 -1
- package/dist/workflow/types.d.ts +0 -82
- package/dist/workflow/types.d.ts.map +0 -1
- package/dist/workflow/types.js.map +0 -1
- package/resources/global/en/workflows/default.yaml +0 -451
- package/resources/global/en/workflows/expert-cqrs.yaml +0 -600
- package/resources/global/en/workflows/expert.yaml +0 -613
- package/resources/global/en/workflows/magi.yaml +0 -150
- package/resources/global/en/workflows/research.yaml +0 -134
- package/resources/global/en/workflows/review-only.yaml +0 -331
- package/resources/global/en/workflows/simple.yaml +0 -321
- package/resources/global/ja/workflows/default.yaml +0 -457
- package/resources/global/ja/workflows/expert-cqrs.yaml +0 -609
- package/resources/global/ja/workflows/expert.yaml +0 -600
- package/resources/global/ja/workflows/magi.yaml +0 -150
- package/resources/global/ja/workflows/research.yaml +0 -134
- package/resources/global/ja/workflows/review-only.yaml +0 -332
- package/resources/global/ja/workflows/simple.yaml +0 -320
- /package/dist/{models → core/models}/session.js +0 -0
- /package/dist/{workflow → core/workflow}/types.js +0 -0
- /package/dist/{claude → infra/claude}/types.js +0 -0
- /package/dist/{mock → infra/mock}/client.js +0 -0
- /package/dist/{mock → infra/mock}/scenario.js +0 -0
- /package/dist/{task → infra/task}/display.d.ts +0 -0
- /package/dist/{task → infra/task}/git.d.ts +0 -0
- /package/dist/{task → infra/task}/git.js +0 -0
- /package/dist/{task → infra/task}/runner.js +0 -0
- /package/dist/{constants.js → shared/constants.js} +0 -0
- /package/dist/{exitCodes.d.ts → shared/exitCodes.d.ts} +0 -0
- /package/dist/{exitCodes.js → shared/exitCodes.js} +0 -0
- /package/dist/{utils → shared/utils}/error.d.ts +0 -0
- /package/dist/{utils → shared/utils}/error.js +0 -0
- /package/dist/{utils → shared/utils}/notification.d.ts +0 -0
- /package/dist/{utils → shared/utils}/notification.js +0 -0
- /package/dist/{utils → shared/utils}/slug.d.ts +0 -0
- /package/dist/{utils → shared/utils}/slug.js +0 -0
- /package/dist/{utils → shared/utils}/text.d.ts +0 -0
- /package/dist/{utils → shared/utils}/text.js +0 -0
- /package/dist/{utils → shared/utils}/updateNotifier.d.ts +0 -0
package/README.md
CHANGED
|
@@ -2,16 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
🇯🇵 [日本語ドキュメント](./docs/README.ja.md)
|
|
4
4
|
|
|
5
|
-
**T**ask **A**gent **K**oordination **T**ool -
|
|
5
|
+
**T**ask **A**gent **K**oordination **T**ool - A governance-first orchestrator for running coding agents safely and responsibly
|
|
6
6
|
|
|
7
|
-
TAKT is
|
|
7
|
+
TAKT coordinates AI agents like Claude Code and Codex according to your organization's rules and workflows. It clarifies who is responsible, what is permitted, and how to recover from failures, while automating complex development tasks.
|
|
8
|
+
|
|
9
|
+
TAKT is built with TAKT itself (dogfooding).
|
|
10
|
+
|
|
11
|
+
## TAKT is For Teams That Need
|
|
12
|
+
|
|
13
|
+
- **Want to integrate AI into CI/CD but fear runaway execution** — Clarify control scope with workflow definitions
|
|
14
|
+
- **Want automated PR generation but need audit logs** — Record and track all execution history
|
|
15
|
+
- **Want to use multiple AI models but manage them uniformly** — Control Claude/Codex/Mock with the same workflow
|
|
16
|
+
- **Want to reproduce and debug agent failures** — Maintain complete history with session logs and reports
|
|
17
|
+
|
|
18
|
+
## What TAKT is NOT
|
|
19
|
+
|
|
20
|
+
- **Not an autonomous engineer** — TAKT doesn't complete implementations itself; it governs and coordinates multiple agents
|
|
21
|
+
- **Not competing with Claude Code Swarm** — While leveraging Swarm's execution power, TAKT provides "operational guardrails" such as workflow definitions, permission controls, and audit logs
|
|
22
|
+
- **Not just a workflow engine** — TAKT is designed to address AI-specific challenges (non-determinism, accountability, audit requirements, and reproducibility)
|
|
8
23
|
|
|
9
24
|
## Requirements
|
|
10
25
|
|
|
11
|
-
|
|
12
|
-
|
|
26
|
+
Choose one:
|
|
27
|
+
|
|
28
|
+
- **Use provider CLIs**: [Claude Code](https://docs.anthropic.com/en/docs/claude-code) or [Codex](https://github.com/openai/codex) installed
|
|
29
|
+
- **Use direct API**: **Anthropic API Key** or **OpenAI API Key** (no CLI required)
|
|
13
30
|
|
|
14
|
-
|
|
31
|
+
Additionally required:
|
|
32
|
+
|
|
33
|
+
- [GitHub CLI](https://cli.github.com/) (`gh`) — Only needed for `takt #N` (GitHub Issue execution)
|
|
34
|
+
|
|
35
|
+
**Pricing Note**: When using API Keys, TAKT directly calls the Claude API (Anthropic) or OpenAI API. The pricing structure is the same as using Claude Code or Codex. Be mindful of costs, especially when running automated tasks in CI/CD environments, as API usage can accumulate.
|
|
15
36
|
|
|
16
37
|
## Installation
|
|
17
38
|
|
|
@@ -22,165 +43,240 @@ npm install -g takt
|
|
|
22
43
|
## Quick Start
|
|
23
44
|
|
|
24
45
|
```bash
|
|
25
|
-
# Interactive
|
|
46
|
+
# Interactive mode - refine task requirements with AI, then execute
|
|
26
47
|
takt
|
|
27
48
|
|
|
28
|
-
#
|
|
29
|
-
takt hello
|
|
30
|
-
|
|
31
|
-
# Run a GitHub issue as a task (both are equivalent)
|
|
49
|
+
# Execute GitHub Issue as task (both work the same)
|
|
32
50
|
takt #6
|
|
33
51
|
takt --issue 6
|
|
34
52
|
|
|
35
|
-
# Pipeline
|
|
36
|
-
takt --pipeline --task "
|
|
53
|
+
# Pipeline execution (non-interactive, for scripts/CI)
|
|
54
|
+
takt --pipeline --task "Fix the bug" --auto-pr
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Usage
|
|
58
|
+
|
|
59
|
+
### Interactive Mode
|
|
60
|
+
|
|
61
|
+
A mode where you refine task content through conversation with AI before execution. Useful when task requirements are ambiguous or when you want to clarify content while consulting with AI.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
# Start interactive mode (no arguments)
|
|
65
|
+
takt
|
|
66
|
+
|
|
67
|
+
# Specify initial message (short word only)
|
|
68
|
+
takt hello
|
|
37
69
|
```
|
|
38
70
|
|
|
39
|
-
|
|
71
|
+
**Note:** If you specify a string with spaces, Issue reference (`#6`), or `--task` / `--issue` options, interactive mode will be skipped and the task will be executed directly.
|
|
40
72
|
|
|
41
|
-
|
|
73
|
+
**Flow:**
|
|
74
|
+
1. Select workflow
|
|
75
|
+
2. Refine task content through conversation with AI
|
|
76
|
+
3. Finalize task instructions with `/go` (you can also add additional instructions like `/go additional instructions`)
|
|
77
|
+
4. Execute (create worktree, run workflow, create PR)
|
|
42
78
|
|
|
43
|
-
|
|
79
|
+
#### Execution Example
|
|
44
80
|
|
|
45
81
|
```
|
|
82
|
+
$ takt
|
|
83
|
+
|
|
46
84
|
Select workflow:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
expert
|
|
51
|
-
expert-cqrs
|
|
52
|
-
magi
|
|
53
|
-
research
|
|
54
|
-
simple
|
|
85
|
+
❯ 🎼 default (current)
|
|
86
|
+
📁 Development/
|
|
87
|
+
📁 Research/
|
|
55
88
|
Cancel
|
|
56
|
-
```
|
|
57
89
|
|
|
58
|
-
|
|
90
|
+
Interactive mode - Enter task content. Commands: /go (execute), /cancel (exit)
|
|
59
91
|
|
|
60
|
-
|
|
61
|
-
? Create worktree? (Y/n)
|
|
62
|
-
```
|
|
92
|
+
> I want to add user authentication feature
|
|
63
93
|
|
|
64
|
-
|
|
94
|
+
[AI confirms and organizes requirements]
|
|
65
95
|
|
|
66
|
-
|
|
96
|
+
> /go
|
|
67
97
|
|
|
68
|
-
|
|
98
|
+
Proposed task instructions:
|
|
99
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
100
|
+
Implement user authentication feature.
|
|
69
101
|
|
|
70
|
-
|
|
71
|
-
|
|
102
|
+
Requirements:
|
|
103
|
+
- Login with email address and password
|
|
104
|
+
- JWT token-based authentication
|
|
105
|
+
- Password hashing (bcrypt)
|
|
106
|
+
- Login/logout API endpoints
|
|
107
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
108
|
+
|
|
109
|
+
Proceed with these task instructions? (Y/n) y
|
|
110
|
+
|
|
111
|
+
? Create worktree? (Y/n) y
|
|
112
|
+
|
|
113
|
+
[Workflow execution starts...]
|
|
72
114
|
```
|
|
73
115
|
|
|
74
|
-
|
|
116
|
+
### Direct Task Execution
|
|
75
117
|
|
|
76
|
-
|
|
118
|
+
When task content is clear, you can skip interactive mode and execute directly.
|
|
77
119
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
| `simple` | Lightweight tasks like README updates or small fixes. Reviews without fix loops. |
|
|
82
|
-
| `expert` / `expert-cqrs` | Web development projects. Sequential multi-expert review with fix loops (`expert`: Architecture, Frontend, Security, QA; `expert-cqrs`: CQRS+ES, Frontend, Security, QA). |
|
|
83
|
-
| `research` | Research and investigation. Autonomous research without asking questions. |
|
|
84
|
-
| `magi` | Fun deliberation. Three AI personas analyze and vote (Evangelion-inspired). |
|
|
120
|
+
```bash
|
|
121
|
+
# Specify task content directly (string with spaces)
|
|
122
|
+
takt "Add login feature"
|
|
85
123
|
|
|
86
|
-
|
|
124
|
+
# Specify task content with --task option
|
|
125
|
+
takt --task "Fix bug"
|
|
87
126
|
|
|
88
|
-
|
|
127
|
+
# Specify workflow
|
|
128
|
+
takt "Add authentication" --workflow expert
|
|
89
129
|
|
|
90
|
-
|
|
130
|
+
# Auto-create PR
|
|
131
|
+
takt "Fix bug" --auto-pr
|
|
132
|
+
```
|
|
91
133
|
|
|
92
|
-
|
|
93
|
-
# Interactive planning — start AI conversation to refine task requirements
|
|
94
|
-
takt
|
|
134
|
+
### GitHub Issue Tasks
|
|
95
135
|
|
|
96
|
-
|
|
97
|
-
takt hello
|
|
136
|
+
You can execute GitHub Issues directly as tasks. Issue title, body, labels, and comments are automatically incorporated as task content.
|
|
98
137
|
|
|
99
|
-
|
|
138
|
+
```bash
|
|
139
|
+
# Execute by specifying issue number
|
|
100
140
|
takt #6
|
|
101
141
|
takt --issue 6
|
|
102
142
|
|
|
103
|
-
#
|
|
143
|
+
# Issue + workflow specification
|
|
144
|
+
takt #6 --workflow expert
|
|
145
|
+
|
|
146
|
+
# Issue + auto-create PR
|
|
104
147
|
takt #6 --auto-pr
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**Requirements:** [GitHub CLI](https://cli.github.com/) (`gh`) must be installed and authenticated.
|
|
151
|
+
|
|
152
|
+
### Task Management (add / run / watch / list)
|
|
153
|
+
|
|
154
|
+
Batch processing using task files (`.takt/tasks/`). Useful for accumulating multiple tasks and executing them together later.
|
|
155
|
+
|
|
156
|
+
#### Add Task (`takt add`)
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# Refine task requirements through AI conversation, then add task
|
|
160
|
+
takt add
|
|
161
|
+
|
|
162
|
+
# Add task from GitHub Issue (issue number reflected in branch name)
|
|
163
|
+
takt add #28
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
#### Execute Tasks (`takt run`)
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Execute all pending tasks in .takt/tasks/
|
|
170
|
+
takt run
|
|
171
|
+
```
|
|
105
172
|
|
|
106
|
-
|
|
107
|
-
|
|
173
|
+
#### Watch Tasks (`takt watch`)
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Monitor .takt/tasks/ and auto-execute tasks (resident process)
|
|
177
|
+
takt watch
|
|
108
178
|
```
|
|
109
179
|
|
|
110
|
-
|
|
180
|
+
#### List Task Branches (`takt list`)
|
|
111
181
|
|
|
112
|
-
|
|
182
|
+
```bash
|
|
183
|
+
# List task branches (merge/delete)
|
|
184
|
+
takt list
|
|
185
|
+
```
|
|
113
186
|
|
|
114
|
-
|
|
187
|
+
### Pipeline Mode (for CI/Automation)
|
|
188
|
+
|
|
189
|
+
Specifying `--pipeline` enables non-interactive pipeline mode. Automatically creates branch → runs workflow → commits & pushes. Suitable for CI/CD automation.
|
|
115
190
|
|
|
116
191
|
```bash
|
|
117
|
-
#
|
|
118
|
-
takt --pipeline --task "
|
|
192
|
+
# Execute task in pipeline mode
|
|
193
|
+
takt --pipeline --task "Fix bug"
|
|
119
194
|
|
|
120
|
-
# Pipeline
|
|
121
|
-
takt --pipeline --task "
|
|
195
|
+
# Pipeline execution + auto-create PR
|
|
196
|
+
takt --pipeline --task "Fix bug" --auto-pr
|
|
122
197
|
|
|
123
|
-
#
|
|
198
|
+
# Link issue information
|
|
124
199
|
takt --pipeline --issue 99 --auto-pr
|
|
125
200
|
|
|
126
201
|
# Specify workflow and branch
|
|
127
|
-
takt --pipeline --task "
|
|
202
|
+
takt --pipeline --task "Fix bug" -w magi -b feat/fix-bug
|
|
128
203
|
|
|
129
204
|
# Specify repository (for PR creation)
|
|
130
|
-
takt --pipeline --task "
|
|
205
|
+
takt --pipeline --task "Fix bug" --auto-pr --repo owner/repo
|
|
206
|
+
|
|
207
|
+
# Workflow execution only (skip branch creation, commit, push)
|
|
208
|
+
takt --pipeline --task "Fix bug" --skip-git
|
|
131
209
|
|
|
132
|
-
#
|
|
133
|
-
takt --pipeline --task "
|
|
210
|
+
# Minimal output mode (for CI)
|
|
211
|
+
takt --pipeline --task "Fix bug" --quiet
|
|
134
212
|
```
|
|
135
213
|
|
|
136
|
-
In pipeline mode, PRs are
|
|
214
|
+
In pipeline mode, PRs are not created unless `--auto-pr` is specified.
|
|
215
|
+
|
|
216
|
+
**GitHub Integration:** When using TAKT in GitHub Actions, see [takt-action](https://github.com/nrslib/takt-action). You can automate PR reviews and task execution. Refer to the [CI/CD Integration](#cicd-integration) section for details.
|
|
137
217
|
|
|
138
|
-
###
|
|
218
|
+
### Other Commands
|
|
139
219
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
220
|
+
```bash
|
|
221
|
+
# Interactively switch workflows
|
|
222
|
+
takt switch
|
|
223
|
+
|
|
224
|
+
# Copy builtin workflows/agents to ~/.takt/ for customization
|
|
225
|
+
takt eject
|
|
226
|
+
|
|
227
|
+
# Clear agent conversation sessions
|
|
228
|
+
takt clear
|
|
229
|
+
|
|
230
|
+
# Configure permission mode
|
|
231
|
+
takt config
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Recommended Workflows
|
|
151
235
|
|
|
152
|
-
|
|
236
|
+
| Workflow | Recommended Use |
|
|
237
|
+
|----------|-----------------|
|
|
238
|
+
| `default` | Serious development tasks. Used for TAKT's own development. Multi-stage review with parallel reviews (architect + security). |
|
|
239
|
+
| `minimal` | Simple fixes and straightforward tasks. Minimal workflow with basic review. |
|
|
240
|
+
| `review-fix-minimal` | Review & fix workflow. Specialized for iterative improvement based on review feedback. |
|
|
241
|
+
| `research` | Investigation and research. Autonomously executes research without asking questions. |
|
|
242
|
+
|
|
243
|
+
### Main Options
|
|
153
244
|
|
|
154
245
|
| Option | Description |
|
|
155
246
|
|--------|-------------|
|
|
156
|
-
| `--pipeline` | **Enable pipeline (non-interactive) mode** —
|
|
157
|
-
| `-t, --task <text>` | Task content (
|
|
158
|
-
| `-i, --issue <N>` | GitHub issue number (
|
|
159
|
-
| `-w, --workflow <name>` | Workflow to
|
|
160
|
-
| `-b, --branch <name>` |
|
|
161
|
-
| `--auto-pr` | Create PR
|
|
247
|
+
| `--pipeline` | **Enable pipeline (non-interactive) mode** — Required for CI/automation |
|
|
248
|
+
| `-t, --task <text>` | Task content (alternative to GitHub Issue) |
|
|
249
|
+
| `-i, --issue <N>` | GitHub issue number (same as `#N` in interactive mode) |
|
|
250
|
+
| `-w, --workflow <name or path>` | Workflow name or path to workflow YAML file |
|
|
251
|
+
| `-b, --branch <name>` | Specify branch name (auto-generated if omitted) |
|
|
252
|
+
| `--auto-pr` | Create PR (interactive: skip confirmation, pipeline: enable PR) |
|
|
162
253
|
| `--skip-git` | Skip branch creation, commit, and push (pipeline mode, workflow-only) |
|
|
163
|
-
| `--repo <owner/repo>` |
|
|
254
|
+
| `--repo <owner/repo>` | Specify repository (for PR creation) |
|
|
164
255
|
| `--create-worktree <yes\|no>` | Skip worktree confirmation prompt |
|
|
256
|
+
| `-q, --quiet` | Minimal output mode: suppress AI output (for CI) |
|
|
257
|
+
| `--provider <name>` | Override agent provider (claude\|codex\|mock) |
|
|
258
|
+
| `--model <name>` | Override agent model |
|
|
165
259
|
|
|
166
260
|
## Workflows
|
|
167
261
|
|
|
168
|
-
TAKT uses YAML-based workflow definitions
|
|
262
|
+
TAKT uses YAML-based workflow definitions and rule-based routing. Builtin workflows are embedded in the package, with user workflows in `~/.takt/workflows/` taking priority. Use `takt eject` to copy builtins to `~/.takt/` for customization.
|
|
263
|
+
|
|
264
|
+
> **Note (v0.4.0)**: Internal terminology has changed from "step" to "movement" for workflow components. User-facing workflow files remain compatible, but if you customize workflows, you may see `movements:` instead of `steps:` in YAML files. The functionality remains the same.
|
|
169
265
|
|
|
170
|
-
### Example
|
|
266
|
+
### Workflow Example
|
|
171
267
|
|
|
172
268
|
```yaml
|
|
173
269
|
name: default
|
|
174
270
|
max_iterations: 10
|
|
175
|
-
|
|
271
|
+
initial_movement: plan
|
|
176
272
|
|
|
177
|
-
|
|
273
|
+
movements:
|
|
178
274
|
- name: plan
|
|
179
275
|
agent: ../agents/default/planner.md
|
|
180
276
|
model: opus
|
|
181
277
|
edit: false
|
|
182
278
|
rules:
|
|
183
|
-
- condition:
|
|
279
|
+
- condition: Planning complete
|
|
184
280
|
next: implement
|
|
185
281
|
instruction_template: |
|
|
186
282
|
Analyze the request and create an implementation plan.
|
|
@@ -188,11 +284,11 @@ steps:
|
|
|
188
284
|
- name: implement
|
|
189
285
|
agent: ../agents/default/coder.md
|
|
190
286
|
edit: true
|
|
191
|
-
permission_mode:
|
|
287
|
+
permission_mode: edit
|
|
192
288
|
rules:
|
|
193
289
|
- condition: Implementation complete
|
|
194
290
|
next: review
|
|
195
|
-
- condition:
|
|
291
|
+
- condition: Blocked
|
|
196
292
|
next: ABORT
|
|
197
293
|
instruction_template: |
|
|
198
294
|
Implement based on the plan.
|
|
@@ -206,12 +302,37 @@ steps:
|
|
|
206
302
|
- condition: Needs fix
|
|
207
303
|
next: implement
|
|
208
304
|
instruction_template: |
|
|
209
|
-
Review the implementation
|
|
305
|
+
Review the implementation from architecture and code quality perspectives.
|
|
210
306
|
```
|
|
211
307
|
|
|
212
|
-
###
|
|
308
|
+
### Agentless Movements
|
|
213
309
|
|
|
214
|
-
|
|
310
|
+
The `agent` field is optional. When omitted, the movement executes using only the `instruction_template` without a system prompt. This is useful for simple tasks that don't require agent behavior customization.
|
|
311
|
+
|
|
312
|
+
```yaml
|
|
313
|
+
- name: summarize
|
|
314
|
+
# No agent specified — uses instruction_template only
|
|
315
|
+
edit: false
|
|
316
|
+
rules:
|
|
317
|
+
- condition: Summary complete
|
|
318
|
+
next: COMPLETE
|
|
319
|
+
instruction_template: |
|
|
320
|
+
Read the report and provide a concise summary.
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
You can also write an inline system prompt as the `agent` value (if the specified file doesn't exist):
|
|
324
|
+
|
|
325
|
+
```yaml
|
|
326
|
+
- name: review
|
|
327
|
+
agent: "You are a code reviewer. Focus on readability and maintainability."
|
|
328
|
+
edit: false
|
|
329
|
+
instruction_template: |
|
|
330
|
+
Review code quality.
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parallel Movements
|
|
334
|
+
|
|
335
|
+
Execute sub-movements in parallel within a movement and evaluate with aggregate conditions:
|
|
215
336
|
|
|
216
337
|
```yaml
|
|
217
338
|
- name: reviewers
|
|
@@ -237,65 +358,56 @@ Steps can execute sub-steps concurrently with aggregate evaluation:
|
|
|
237
358
|
next: fix
|
|
238
359
|
```
|
|
239
360
|
|
|
240
|
-
- `all("X")`: true if ALL sub-
|
|
241
|
-
- `any("X")`: true if ANY sub-
|
|
242
|
-
- Sub-
|
|
361
|
+
- `all("X")`: true if ALL sub-movements matched condition X
|
|
362
|
+
- `any("X")`: true if ANY sub-movement matched condition X
|
|
363
|
+
- Sub-movement `rules` define possible outcomes, but `next` is optional (parent controls transition)
|
|
243
364
|
|
|
244
365
|
### Rule Condition Types
|
|
245
366
|
|
|
246
367
|
| Type | Syntax | Description |
|
|
247
368
|
|------|--------|-------------|
|
|
248
|
-
| Tag-based | `"condition text"` | Agent outputs `[
|
|
249
|
-
| AI judge | `ai("condition text")` | AI evaluates
|
|
250
|
-
| Aggregate | `all("X")` / `any("X")` | Aggregates parallel sub-
|
|
369
|
+
| Tag-based | `"condition text"` | Agent outputs `[MOVEMENTNAME:N]` tag, matched by index |
|
|
370
|
+
| AI judge | `ai("condition text")` | AI evaluates condition against agent output |
|
|
371
|
+
| Aggregate | `all("X")` / `any("X")` | Aggregates parallel sub-movement matched conditions |
|
|
251
372
|
|
|
252
|
-
##
|
|
373
|
+
## Builtin Workflows
|
|
253
374
|
|
|
254
|
-
TAKT
|
|
375
|
+
TAKT includes multiple builtin workflows:
|
|
255
376
|
|
|
256
377
|
| Workflow | Description |
|
|
257
378
|
|----------|-------------|
|
|
258
|
-
| `default` | Full development workflow: plan → implement → AI review → parallel
|
|
259
|
-
| `
|
|
260
|
-
| `
|
|
261
|
-
| `
|
|
262
|
-
| `expert
|
|
379
|
+
| `default` | Full development workflow: plan → architecture design → implement → AI review → parallel review (architect + security) → supervisor approval. Includes fix loops at each review stage. |
|
|
380
|
+
| `minimal` | Quick workflow: plan → implement → review → supervisor. Minimal steps for fast iteration. |
|
|
381
|
+
| `review-fix-minimal` | Review-focused workflow: review → fix → supervisor. For iterative improvement based on review feedback. |
|
|
382
|
+
| `research` | Research workflow: planner → digger → supervisor. Autonomously executes research without asking questions. |
|
|
383
|
+
| `expert` | Full-stack development workflow: architecture, frontend, security, QA reviews with fix loops. |
|
|
384
|
+
| `expert-cqrs` | Full-stack development workflow (CQRS+ES specialized): CQRS+ES, frontend, security, QA reviews with fix loops. |
|
|
263
385
|
| `magi` | Deliberation system inspired by Evangelion. Three AI personas (MELCHIOR, BALTHASAR, CASPER) analyze and vote. |
|
|
386
|
+
| `review-only` | Read-only code review workflow that makes no changes. |
|
|
264
387
|
|
|
265
|
-
|
|
388
|
+
Use `takt switch` to switch workflows.
|
|
266
389
|
|
|
267
|
-
##
|
|
390
|
+
## Builtin Agents
|
|
268
391
|
|
|
269
392
|
| Agent | Description |
|
|
270
393
|
|-------|-------------|
|
|
271
|
-
| **planner** | Task analysis, spec investigation,
|
|
272
|
-
| **coder** |
|
|
273
|
-
| **ai-antipattern-reviewer** |
|
|
274
|
-
| **architecture-reviewer** |
|
|
394
|
+
| **planner** | Task analysis, spec investigation, implementation planning |
|
|
395
|
+
| **coder** | Feature implementation, bug fixing |
|
|
396
|
+
| **ai-antipattern-reviewer** | AI-specific antipattern review (non-existent APIs, incorrect assumptions, scope creep) |
|
|
397
|
+
| **architecture-reviewer** | Architecture and code quality review, spec compliance verification |
|
|
275
398
|
| **security-reviewer** | Security vulnerability assessment |
|
|
276
|
-
| **supervisor** | Final
|
|
399
|
+
| **supervisor** | Final validation, approval |
|
|
277
400
|
|
|
278
401
|
## Custom Agents
|
|
279
402
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
```yaml
|
|
283
|
-
agents:
|
|
284
|
-
- name: my-reviewer
|
|
285
|
-
prompt_file: .takt/prompts/reviewer.md
|
|
286
|
-
allowed_tools: [Read, Glob, Grep]
|
|
287
|
-
provider: claude # Optional: claude or codex
|
|
288
|
-
model: opus # Claude: opus/sonnet/haiku or full name (claude-opus-4-5-20251101)
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
Or create agent prompt files as Markdown:
|
|
403
|
+
Create agent prompts in Markdown files:
|
|
292
404
|
|
|
293
405
|
```markdown
|
|
294
406
|
# ~/.takt/agents/my-agents/reviewer.md
|
|
295
407
|
|
|
296
|
-
You are a code reviewer
|
|
408
|
+
You are a code reviewer specialized in security.
|
|
297
409
|
|
|
298
|
-
##
|
|
410
|
+
## Role
|
|
299
411
|
- Check for security vulnerabilities
|
|
300
412
|
- Verify input validation
|
|
301
413
|
- Review authentication logic
|
|
@@ -303,33 +415,36 @@ You are a code reviewer focused on security.
|
|
|
303
415
|
|
|
304
416
|
## Model Selection
|
|
305
417
|
|
|
306
|
-
The `model` field in workflow
|
|
418
|
+
The `model` field (in workflow movements, agent config, or global config) is passed directly to the provider (Claude Code CLI / Codex SDK). TAKT does not resolve model aliases.
|
|
307
419
|
|
|
308
420
|
### Claude Code
|
|
309
421
|
|
|
310
|
-
Claude Code supports aliases (`opus`, `sonnet`, `haiku`, `opusplan`, `default`) and full model names (e.g., `claude-sonnet-4-5-20250929`).
|
|
422
|
+
Claude Code supports aliases (`opus`, `sonnet`, `haiku`, `opusplan`, `default`) and full model names (e.g., `claude-sonnet-4-5-20250929`). Refer to the [Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code) for available models.
|
|
311
423
|
|
|
312
424
|
### Codex
|
|
313
425
|
|
|
314
|
-
The model string is passed to the Codex SDK.
|
|
426
|
+
The model string is passed to the Codex SDK. If unspecified, defaults to `codex`. Refer to Codex documentation for available models.
|
|
315
427
|
|
|
316
428
|
## Project Structure
|
|
317
429
|
|
|
318
430
|
```
|
|
319
|
-
~/.takt/
|
|
320
|
-
├── config.yaml
|
|
321
|
-
├── workflows/
|
|
322
|
-
└──
|
|
431
|
+
~/.takt/ # Global configuration directory
|
|
432
|
+
├── config.yaml # Global config (provider, model, workflow, etc.)
|
|
433
|
+
├── workflows/ # User workflow definitions (override builtins)
|
|
434
|
+
│ └── custom.yaml
|
|
435
|
+
└── agents/ # User agent prompt files (.md)
|
|
436
|
+
└── my-agent.md
|
|
323
437
|
|
|
324
|
-
.takt/
|
|
325
|
-
├──
|
|
326
|
-
├── tasks/
|
|
327
|
-
├── completed/
|
|
328
|
-
├── reports/
|
|
329
|
-
└──
|
|
330
|
-
|
|
331
|
-
├──
|
|
332
|
-
|
|
438
|
+
.takt/ # Project-level configuration
|
|
439
|
+
├── config.yaml # Project config (current workflow, etc.)
|
|
440
|
+
├── tasks/ # Pending task files (.yaml, .md)
|
|
441
|
+
├── completed/ # Completed tasks and reports
|
|
442
|
+
├── reports/ # Execution reports (auto-generated)
|
|
443
|
+
│ └── {timestamp}-{slug}/
|
|
444
|
+
└── logs/ # NDJSON format session logs
|
|
445
|
+
├── latest.json # Pointer to current/latest session
|
|
446
|
+
├── previous.json # Pointer to previous session
|
|
447
|
+
└── {sessionId}.jsonl # NDJSON session log per workflow execution
|
|
333
448
|
```
|
|
334
449
|
|
|
335
450
|
Builtin resources are embedded in the npm package (`dist/resources/`). User files in `~/.takt/` take priority.
|
|
@@ -345,11 +460,17 @@ default_workflow: default
|
|
|
345
460
|
log_level: info
|
|
346
461
|
provider: claude # Default provider: claude or codex
|
|
347
462
|
model: sonnet # Default model (optional)
|
|
463
|
+
|
|
464
|
+
# API Key configuration (optional)
|
|
465
|
+
# Can be overridden by environment variables TAKT_ANTHROPIC_API_KEY / TAKT_OPENAI_API_KEY
|
|
466
|
+
anthropic_api_key: sk-ant-... # For Claude (Anthropic)
|
|
467
|
+
# openai_api_key: sk-... # For Codex (OpenAI)
|
|
468
|
+
|
|
348
469
|
trusted_directories:
|
|
349
470
|
- /path/to/trusted/dir
|
|
350
471
|
|
|
351
|
-
# Pipeline execution
|
|
352
|
-
# Customize branch
|
|
472
|
+
# Pipeline execution configuration (optional)
|
|
473
|
+
# Customize branch names, commit messages, and PR body.
|
|
353
474
|
# pipeline:
|
|
354
475
|
# default_branch_prefix: "takt/"
|
|
355
476
|
# commit_message_template: "feat: {title} (#{issue})"
|
|
@@ -359,51 +480,110 @@ trusted_directories:
|
|
|
359
480
|
# Closes #{issue}
|
|
360
481
|
```
|
|
361
482
|
|
|
362
|
-
**
|
|
483
|
+
**API Key Configuration Methods:**
|
|
484
|
+
|
|
485
|
+
1. **Set via environment variables**:
|
|
486
|
+
```bash
|
|
487
|
+
export TAKT_ANTHROPIC_API_KEY=sk-ant-... # For Claude
|
|
488
|
+
# or
|
|
489
|
+
export TAKT_OPENAI_API_KEY=sk-... # For Codex
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
2. **Set in config file**:
|
|
493
|
+
Write `anthropic_api_key` or `openai_api_key` in `~/.takt/config.yaml` as shown above
|
|
494
|
+
|
|
495
|
+
Priority: Environment variables > `config.yaml` settings
|
|
496
|
+
|
|
497
|
+
**Notes:**
|
|
498
|
+
- If you set an API Key, installing Claude Code or Codex is not necessary. TAKT directly calls the Anthropic API or OpenAI API.
|
|
499
|
+
- **Security**: If you write API Keys in `config.yaml`, be careful not to commit this file to Git. Consider using environment variables or adding `~/.takt/config.yaml` to `.gitignore`.
|
|
500
|
+
|
|
501
|
+
**Pipeline Template Variables:**
|
|
363
502
|
|
|
364
|
-
| Variable | Available
|
|
503
|
+
| Variable | Available In | Description |
|
|
365
504
|
|----------|-------------|-------------|
|
|
366
|
-
| `{title}` |
|
|
367
|
-
| `{issue}` |
|
|
368
|
-
| `{issue_body}` | PR body | Issue body
|
|
505
|
+
| `{title}` | Commit message | Issue title |
|
|
506
|
+
| `{issue}` | Commit message, PR body | Issue number |
|
|
507
|
+
| `{issue_body}` | PR body | Issue body |
|
|
369
508
|
| `{report}` | PR body | Workflow execution report |
|
|
370
509
|
|
|
371
510
|
**Model Resolution Priority:**
|
|
372
|
-
1. Workflow
|
|
511
|
+
1. Workflow movement `model` (highest priority)
|
|
373
512
|
2. Custom agent `model`
|
|
374
513
|
3. Global config `model`
|
|
375
|
-
4. Provider default (Claude: sonnet, Codex:
|
|
514
|
+
4. Provider default (Claude: sonnet, Codex: codex)
|
|
376
515
|
|
|
516
|
+
## Detailed Guides
|
|
377
517
|
|
|
378
|
-
|
|
518
|
+
### Task File Formats
|
|
379
519
|
|
|
380
|
-
|
|
520
|
+
TAKT supports batch processing with task files in `.takt/tasks/`. Both `.yaml`/`.yml` and `.md` file formats are supported.
|
|
381
521
|
|
|
382
|
-
|
|
522
|
+
**YAML format** (recommended, supports worktree/branch/workflow options):
|
|
523
|
+
|
|
524
|
+
```yaml
|
|
525
|
+
# .takt/tasks/add-auth.yaml
|
|
526
|
+
task: "Add authentication feature"
|
|
527
|
+
worktree: true # Execute in isolated shared clone
|
|
528
|
+
branch: "feat/add-auth" # Branch name (auto-generated if omitted)
|
|
529
|
+
workflow: "default" # Workflow specification (uses current if omitted)
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
**Markdown format** (simple, backward compatible):
|
|
533
|
+
|
|
534
|
+
```markdown
|
|
535
|
+
# .takt/tasks/add-login-feature.md
|
|
383
536
|
|
|
384
|
-
|
|
385
|
-
2. **Create an isolated clone** (optional) - Run the task in a `git clone --shared` for isolation
|
|
386
|
-
3. **Create a pull request** (after worktree execution) - Create a PR from the task branch
|
|
537
|
+
Add login feature to the application.
|
|
387
538
|
|
|
388
|
-
|
|
539
|
+
Requirements:
|
|
540
|
+
- Username and password fields
|
|
541
|
+
- Form validation
|
|
542
|
+
- Error handling on failure
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
#### Isolated Execution with Shared Clone
|
|
546
|
+
|
|
547
|
+
Specifying `worktree` in YAML task files executes each task in an isolated clone created with `git clone --shared`, keeping your main working directory clean:
|
|
548
|
+
|
|
549
|
+
- `worktree: true` - Auto-create shared clone in adjacent directory (or location specified by `worktree_dir` config)
|
|
550
|
+
- `worktree: "/path/to/dir"` - Create at specified path
|
|
551
|
+
- `branch: "feat/xxx"` - Use specified branch (auto-generated as `takt/{timestamp}-{slug}` if omitted)
|
|
552
|
+
- Omit `worktree` - Execute in current directory (default)
|
|
553
|
+
|
|
554
|
+
> **Note**: The YAML field name remains `worktree` for backward compatibility. Internally, it uses `git clone --shared` instead of `git worktree`. Git worktrees have a `.git` file containing `gitdir:` pointing to the main repository, which Claude Code follows to recognize the main repository as the project root. Shared clones have an independent `.git` directory, preventing this issue.
|
|
555
|
+
|
|
556
|
+
Clones are ephemeral. After task completion, they auto-commit + push, then delete the clone. Branches are the only persistent artifacts. Use `takt list` to list, merge, or delete branches.
|
|
557
|
+
|
|
558
|
+
### Session Logs
|
|
559
|
+
|
|
560
|
+
TAKT writes session logs in NDJSON (`.jsonl`) format to `.takt/logs/`. Each record is atomically appended, so partial logs are preserved even if the process crashes, and you can track in real-time with `tail -f`.
|
|
561
|
+
|
|
562
|
+
- `.takt/logs/latest.json` - Pointer to current (or latest) session
|
|
563
|
+
- `.takt/logs/previous.json` - Pointer to previous session
|
|
564
|
+
- `.takt/logs/{sessionId}.jsonl` - NDJSON session log per workflow execution
|
|
565
|
+
|
|
566
|
+
Record types: `workflow_start`, `step_start`, `step_complete`, `workflow_complete`, `workflow_abort`
|
|
567
|
+
|
|
568
|
+
Agents can read `previous.json` to inherit context from the previous execution. Session continuation is automatic — just run `takt "task"` to continue from the previous session.
|
|
389
569
|
|
|
390
570
|
### Adding Custom Workflows
|
|
391
571
|
|
|
392
|
-
|
|
572
|
+
Add YAML files to `~/.takt/workflows/` or customize builtins with `takt eject`:
|
|
393
573
|
|
|
394
574
|
```bash
|
|
395
|
-
# Copy
|
|
575
|
+
# Copy default workflow to ~/.takt/workflows/ and edit
|
|
396
576
|
takt eject default
|
|
397
577
|
```
|
|
398
578
|
|
|
399
579
|
```yaml
|
|
400
580
|
# ~/.takt/workflows/my-workflow.yaml
|
|
401
581
|
name: my-workflow
|
|
402
|
-
description:
|
|
582
|
+
description: Custom workflow
|
|
403
583
|
max_iterations: 5
|
|
404
|
-
|
|
584
|
+
initial_movement: analyze
|
|
405
585
|
|
|
406
|
-
|
|
586
|
+
movements:
|
|
407
587
|
- name: analyze
|
|
408
588
|
agent: ~/.takt/agents/my-agents/analyzer.md
|
|
409
589
|
edit: false
|
|
@@ -411,184 +591,88 @@ steps:
|
|
|
411
591
|
- condition: Analysis complete
|
|
412
592
|
next: implement
|
|
413
593
|
instruction_template: |
|
|
414
|
-
|
|
594
|
+
Thoroughly analyze this request.
|
|
415
595
|
|
|
416
596
|
- name: implement
|
|
417
597
|
agent: ~/.takt/agents/default/coder.md
|
|
418
598
|
edit: true
|
|
419
|
-
permission_mode:
|
|
599
|
+
permission_mode: edit
|
|
420
600
|
pass_previous_response: true
|
|
421
601
|
rules:
|
|
422
|
-
- condition:
|
|
602
|
+
- condition: Complete
|
|
423
603
|
next: COMPLETE
|
|
424
604
|
instruction_template: |
|
|
425
605
|
Implement based on the analysis.
|
|
426
606
|
```
|
|
427
607
|
|
|
428
|
-
> **Note**: `{task}`, `{previous_response}`,
|
|
608
|
+
> **Note**: `{task}`, `{previous_response}`, `{user_inputs}` are automatically injected into instructions. Explicit placeholders are only needed if you want to control their position in the template.
|
|
429
609
|
|
|
430
610
|
### Specifying Agents by Path
|
|
431
611
|
|
|
432
|
-
|
|
612
|
+
In workflow definitions, specify agents using file paths:
|
|
433
613
|
|
|
434
614
|
```yaml
|
|
435
|
-
# Relative
|
|
615
|
+
# Relative path from workflow file
|
|
436
616
|
agent: ../agents/default/coder.md
|
|
437
617
|
|
|
438
618
|
# Home directory
|
|
439
619
|
agent: ~/.takt/agents/default/coder.md
|
|
440
620
|
|
|
441
|
-
# Absolute
|
|
621
|
+
# Absolute path
|
|
442
622
|
agent: /path/to/custom/agent.md
|
|
443
623
|
```
|
|
444
624
|
|
|
445
|
-
### Task Management
|
|
446
|
-
|
|
447
|
-
TAKT supports batch task processing through task files in `.takt/tasks/`. Both `.yaml`/`.yml` and `.md` file formats are supported.
|
|
448
|
-
|
|
449
|
-
#### Adding Tasks with `takt add`
|
|
450
|
-
|
|
451
|
-
```bash
|
|
452
|
-
# Start AI conversation to define and add a task
|
|
453
|
-
takt add
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
The `takt add` command starts an AI conversation where you discuss and refine your task requirements. After confirming with `/go`, the AI summarizes the conversation and creates a YAML task file with optional worktree/branch/workflow settings.
|
|
457
|
-
|
|
458
|
-
#### Task File Formats
|
|
459
|
-
|
|
460
|
-
**YAML format** (recommended, supports worktree/branch/workflow options):
|
|
461
|
-
|
|
462
|
-
```yaml
|
|
463
|
-
# .takt/tasks/add-auth.yaml
|
|
464
|
-
task: "Add authentication feature"
|
|
465
|
-
worktree: true # Run in isolated shared clone
|
|
466
|
-
branch: "feat/add-auth" # Branch name (auto-generated if omitted)
|
|
467
|
-
workflow: "default" # Workflow override (uses current if omitted)
|
|
468
|
-
```
|
|
469
|
-
|
|
470
|
-
**Markdown format** (simple, backward compatible):
|
|
471
|
-
|
|
472
|
-
```markdown
|
|
473
|
-
# .takt/tasks/add-login-feature.md
|
|
474
|
-
|
|
475
|
-
Add a login feature to the application.
|
|
476
|
-
|
|
477
|
-
Requirements:
|
|
478
|
-
- Username and password fields
|
|
479
|
-
- Form validation
|
|
480
|
-
- Error handling for failed attempts
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
#### Isolated Execution (Shared Clone)
|
|
484
|
-
|
|
485
|
-
YAML task files can specify `worktree` to run each task in an isolated `git clone --shared`, keeping the main working directory clean:
|
|
486
|
-
|
|
487
|
-
- `worktree: true` - Auto-create a shared clone in a sibling directory (or `worktree_dir` from config)
|
|
488
|
-
- `worktree: "/path/to/dir"` - Create at specified path
|
|
489
|
-
- `branch: "feat/xxx"` - Use specified branch (auto-generated as `takt/{timestamp}-{slug}` if omitted)
|
|
490
|
-
- Omit `worktree` - Run in current working directory (default)
|
|
491
|
-
|
|
492
|
-
> **Note**: The YAML field is named `worktree` for backward compatibility. Internally, `git clone --shared` is used instead of `git worktree` because git worktrees have a `.git` file with `gitdir:` that points back to the main repository, causing Claude Code to recognize the main repo as the project root. Shared clones have an independent `.git` directory that avoids this issue.
|
|
493
|
-
|
|
494
|
-
Clones are ephemeral. When a task completes successfully, TAKT automatically commits all changes and pushes the branch to the main repository, then deletes the clone. Use `takt list` to list, try-merge, or delete task branches.
|
|
495
|
-
|
|
496
|
-
#### Running Tasks with `/run-tasks`
|
|
497
|
-
|
|
498
|
-
```bash
|
|
499
|
-
takt run
|
|
500
|
-
```
|
|
501
|
-
|
|
502
|
-
- Tasks are executed in alphabetical order (use prefixes like `001-`, `002-` for ordering)
|
|
503
|
-
- Completed tasks are moved to `.takt/completed/` with execution reports
|
|
504
|
-
- New tasks added during execution will be picked up dynamically
|
|
505
|
-
|
|
506
|
-
#### Watching Tasks with `/watch`
|
|
507
|
-
|
|
508
|
-
```bash
|
|
509
|
-
takt watch
|
|
510
|
-
```
|
|
511
|
-
|
|
512
|
-
Watch mode polls `.takt/tasks/` for new task files and auto-executes them as they appear. The process stays resident until `Ctrl+C`. This is useful for:
|
|
513
|
-
- CI/CD pipelines that generate task files
|
|
514
|
-
- Automated workflows where tasks are added by external processes
|
|
515
|
-
- Long-running development sessions where tasks are queued over time
|
|
516
|
-
|
|
517
|
-
#### Listing Task Branches with `/list-tasks`
|
|
518
|
-
|
|
519
|
-
```bash
|
|
520
|
-
takt list
|
|
521
|
-
```
|
|
522
|
-
|
|
523
|
-
Lists all `takt/`-prefixed branches with file change counts. For each branch you can:
|
|
524
|
-
- **Try merge** - Squash merge into main (stage changes without committing)
|
|
525
|
-
- **Instruct** - Give additional instructions via a temporary clone
|
|
526
|
-
- **Merge & cleanup** - Merge and delete the branch
|
|
527
|
-
- **Delete** - Delete the branch without merging
|
|
528
|
-
|
|
529
|
-
### Session Logs
|
|
530
|
-
|
|
531
|
-
TAKT writes session logs in NDJSON (`.jsonl`) format to `.takt/logs/`. Each record is appended atomically, so even if the process crashes mid-execution, partial logs are preserved and logs can be tailed in real-time with `tail -f`.
|
|
532
|
-
|
|
533
|
-
- `.takt/logs/latest.json` - Pointer to the current (or most recent) session
|
|
534
|
-
- `.takt/logs/previous.json` - Pointer to the previous session
|
|
535
|
-
- `.takt/logs/{sessionId}.jsonl` - NDJSON session log with step history
|
|
536
|
-
|
|
537
|
-
Record types: `workflow_start`, `step_start`, `step_complete`, `workflow_complete`, `workflow_abort`.
|
|
538
|
-
|
|
539
|
-
Agents can read `previous.json` to pick up context from a prior run. Session continuity is automatic — simply run `takt "task"` to continue where the previous session left off.
|
|
540
|
-
|
|
541
625
|
### Workflow Variables
|
|
542
626
|
|
|
543
|
-
|
|
627
|
+
Variables available in `instruction_template`:
|
|
544
628
|
|
|
545
629
|
| Variable | Description |
|
|
546
630
|
|----------|-------------|
|
|
547
631
|
| `{task}` | Original user request (auto-injected if not in template) |
|
|
548
632
|
| `{iteration}` | Workflow-wide turn count (total steps executed) |
|
|
549
|
-
| `{max_iterations}` | Maximum
|
|
550
|
-
| `{
|
|
551
|
-
| `{previous_response}` |
|
|
633
|
+
| `{max_iterations}` | Maximum iteration count |
|
|
634
|
+
| `{movement_iteration}` | Per-movement iteration count (times this movement has been executed) |
|
|
635
|
+
| `{previous_response}` | Output from previous movement (auto-injected if not in template) |
|
|
552
636
|
| `{user_inputs}` | Additional user inputs during workflow (auto-injected if not in template) |
|
|
553
637
|
| `{report_dir}` | Report directory path (e.g., `.takt/reports/20250126-143052-task-summary`) |
|
|
554
|
-
| `{report:filename}` |
|
|
638
|
+
| `{report:filename}` | Expands to `{report_dir}/filename` (e.g., `{report:00-plan.md}`) |
|
|
555
639
|
|
|
556
|
-
###
|
|
640
|
+
### Workflow Design
|
|
557
641
|
|
|
558
|
-
|
|
642
|
+
Elements needed for each workflow movement:
|
|
559
643
|
|
|
560
|
-
**1. Agent** -
|
|
644
|
+
**1. Agent** - Markdown file containing system prompt:
|
|
561
645
|
|
|
562
646
|
```yaml
|
|
563
647
|
agent: ../agents/default/coder.md # Path to agent prompt file
|
|
564
648
|
agent_name: coder # Display name (optional)
|
|
565
649
|
```
|
|
566
650
|
|
|
567
|
-
**2. Rules** - Define
|
|
651
|
+
**2. Rules** - Define routing from movement to next movement. The instruction builder auto-injects status output rules, so agents know which tags to output:
|
|
568
652
|
|
|
569
653
|
```yaml
|
|
570
654
|
rules:
|
|
571
655
|
- condition: "Implementation complete"
|
|
572
656
|
next: review
|
|
573
|
-
- condition: "
|
|
657
|
+
- condition: "Blocked"
|
|
574
658
|
next: ABORT
|
|
575
659
|
```
|
|
576
660
|
|
|
577
|
-
Special `next` values: `COMPLETE` (success), `ABORT` (failure)
|
|
661
|
+
Special `next` values: `COMPLETE` (success), `ABORT` (failure)
|
|
578
662
|
|
|
579
|
-
**3.
|
|
663
|
+
**3. Movement Options:**
|
|
580
664
|
|
|
581
665
|
| Option | Default | Description |
|
|
582
666
|
|--------|---------|-------------|
|
|
583
|
-
| `edit` | - | Whether
|
|
584
|
-
| `pass_previous_response` | `true` | Pass previous
|
|
585
|
-
| `allowed_tools` | - | List of tools
|
|
586
|
-
| `provider` | - | Override provider for this
|
|
587
|
-
| `model` | - | Override model for this
|
|
588
|
-
| `permission_mode` |
|
|
589
|
-
| `report` | - |
|
|
667
|
+
| `edit` | - | Whether movement can edit project files (`true`/`false`) |
|
|
668
|
+
| `pass_previous_response` | `true` | Pass previous movement output to `{previous_response}` |
|
|
669
|
+
| `allowed_tools` | - | List of tools agent can use (Read, Glob, Grep, Edit, Write, Bash, etc.) |
|
|
670
|
+
| `provider` | - | Override provider for this movement (`claude` or `codex`) |
|
|
671
|
+
| `model` | - | Override model for this movement |
|
|
672
|
+
| `permission_mode` | - | Permission mode: `readonly`, `edit`, `full` (provider-independent) |
|
|
673
|
+
| `report` | - | Auto-generated report file settings (name, format) |
|
|
590
674
|
|
|
591
|
-
## API Usage
|
|
675
|
+
## API Usage Example
|
|
592
676
|
|
|
593
677
|
```typescript
|
|
594
678
|
import { WorkflowEngine, loadWorkflow } from 'takt'; // npm install takt
|
|
@@ -608,15 +692,15 @@ await engine.run();
|
|
|
608
692
|
|
|
609
693
|
## Contributing
|
|
610
694
|
|
|
611
|
-
See [CONTRIBUTING.md](
|
|
695
|
+
See [CONTRIBUTING.md](../CONTRIBUTING.md) for details.
|
|
612
696
|
|
|
613
697
|
## CI/CD Integration
|
|
614
698
|
|
|
615
699
|
### GitHub Actions
|
|
616
700
|
|
|
617
|
-
TAKT provides a GitHub Action for
|
|
701
|
+
TAKT provides a GitHub Action for automating PR reviews and task execution. See [takt-action](https://github.com/nrslib/takt-action) for details.
|
|
618
702
|
|
|
619
|
-
**
|
|
703
|
+
**Workflow example** (see [.github/workflows/takt-action.yml](../.github/workflows/takt-action.yml) in this repository):
|
|
620
704
|
|
|
621
705
|
```yaml
|
|
622
706
|
name: TAKT
|
|
@@ -645,50 +729,38 @@ jobs:
|
|
|
645
729
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
646
730
|
```
|
|
647
731
|
|
|
648
|
-
**Cost Warning**: TAKT uses AI APIs (Claude or OpenAI) which can incur significant costs, especially in CI/CD environments
|
|
732
|
+
**Cost Warning**: TAKT uses AI APIs (Claude or OpenAI), which can incur significant costs, especially when tasks are auto-executed in CI/CD environments. Monitor API usage and set up billing alerts.
|
|
649
733
|
|
|
650
734
|
### Other CI Systems
|
|
651
735
|
|
|
652
|
-
For
|
|
736
|
+
For CI systems other than GitHub, use pipeline mode:
|
|
653
737
|
|
|
654
738
|
```bash
|
|
655
739
|
# Install takt
|
|
656
740
|
npm install -g takt
|
|
657
741
|
|
|
658
742
|
# Run in pipeline mode
|
|
659
|
-
takt --pipeline --task "
|
|
743
|
+
takt --pipeline --task "Fix bug" --auto-pr --repo owner/repo
|
|
660
744
|
```
|
|
661
745
|
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
## Docker Support
|
|
665
|
-
|
|
666
|
-
Docker environment is provided for testing in other environments:
|
|
746
|
+
For authentication, set `TAKT_ANTHROPIC_API_KEY` or `TAKT_OPENAI_API_KEY` environment variables (TAKT-specific prefix).
|
|
667
747
|
|
|
668
748
|
```bash
|
|
669
|
-
#
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
# Run tests in container
|
|
673
|
-
docker compose run --rm test
|
|
749
|
+
# For Claude (Anthropic)
|
|
750
|
+
export TAKT_ANTHROPIC_API_KEY=sk-ant-...
|
|
674
751
|
|
|
675
|
-
#
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
# Build only (skip tests)
|
|
679
|
-
docker compose run --rm build
|
|
752
|
+
# For Codex (OpenAI)
|
|
753
|
+
export TAKT_OPENAI_API_KEY=sk-...
|
|
680
754
|
```
|
|
681
755
|
|
|
682
|
-
This ensures the project works correctly in a clean Node.js 20 environment.
|
|
683
|
-
|
|
684
756
|
## Documentation
|
|
685
757
|
|
|
686
|
-
- [Workflow Guide](./docs/workflows.md) -
|
|
687
|
-
- [Agent Guide](./docs/agents.md) -
|
|
688
|
-
- [Changelog](
|
|
689
|
-
- [Security Policy](
|
|
758
|
+
- [Workflow Guide](./docs/workflows.md) - Creating and customizing workflows
|
|
759
|
+
- [Agent Guide](./docs/agents.md) - Configuring custom agents
|
|
760
|
+
- [Changelog](../CHANGELOG.md) - Version history
|
|
761
|
+
- [Security Policy](../SECURITY.md) - Vulnerability reporting
|
|
690
762
|
- [Blog: TAKT - AI Agent Orchestration](https://zenn.dev/nrs/articles/c6842288a526d7) - Design philosophy and practical usage guide (Japanese)
|
|
691
763
|
|
|
692
764
|
## License
|
|
693
765
|
|
|
694
|
-
MIT - See [LICENSE](
|
|
766
|
+
MIT - See [LICENSE](../LICENSE) for details.
|