claude-flow-novice 2.15.11 → 2.16.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/.claude/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/.claude/commands/cfn-loop-cli.md +158 -464
- package/.claude/commands/cfn-loop-trigger.md +114 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +22 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/.claude/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/.claude/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/.claude/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/.claude/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/.claude/skills/{cfn-redis-coordination/check-dependencies.sh → cfn-agent-spawning/check-dependencies.sh.backup} +3 -5
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/.claude/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/.claude/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/.claude/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/.claude/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/.claude/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/.claude/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/.claude/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/.claude/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/.claude/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/.claude/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/.claude/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/.claude/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/.claude/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/{claude-assets/skills/cfn-loop-orchestration → .claude/skills/cfn-loop-orchestration/archive/legacy-bash}/orchestrate-wrapper.sh +11 -1
- package/.claude/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/.claude/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/.claude/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/.claude/skills/cfn-loop-orchestration/package.json +4 -0
- package/.claude/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/.claude/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/.claude/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/.claude/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/.claude/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/.claude/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/.claude/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/.claude/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/.claude/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/.claude/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/.claude/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/.claude/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/.claude/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/.claude/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/.claude/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/.claude/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/.claude/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/.claude/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/.claude/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/.claude/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/.claude/skills/cfn-loop-validation/INDEX.md +531 -0
- package/.claude/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/.claude/skills/cfn-loop-validation/SKILL.md +48 -1
- package/.claude/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/.claude/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/.claude/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/.claude/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/{claude-assets/skills/cfn-redis-coordination/check-dependencies.sh → .claude/skills/cfn-loop-validation/check-dependencies.sh.backup} +4 -5
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/.claude/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/.claude/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/.claude/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js +66 -0
- package/.claude/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/.claude/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/.claude/skills/cfn-loop-validation/package.json +93 -0
- package/.claude/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/.claude/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/.claude/skills/cfn-loop-validation/src/types.ts +215 -0
- package/.claude/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/.claude/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/.claude/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/.claude/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/.claude/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/.claude/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/.claude/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/{claude-assets/skills/cfn-product-owner-decision → .claude/skills/cfn-product-owner-decision/archive/legacy-bash}/execute-decision.sh +24 -2
- package/.claude/skills/pre-edit-backup/SKILL.md +324 -0
- package/.claude/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/.claude/skills/pre-edit-backup/backup.sh +22 -0
- package/.claude/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/consensus-builder.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/handoff-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +1 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/devops-engineer.md +10 -0
- package/claude-assets/agents/cfn-dev-team/dev-ops/docker-specialist.md +56 -33
- package/claude-assets/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +46 -36
- package/claude-assets/agents/cfn-dev-team/dev-ops/monitoring-specialist.md +9 -0
- package/claude-assets/agents/cfn-dev-team/developers/api-gateway-specialist.md +17 -17
- package/claude-assets/agents/cfn-dev-team/developers/backend-developer.md +40 -58
- package/claude-assets/agents/cfn-dev-team/developers/data/data-engineer.md +18 -20
- package/claude-assets/agents/cfn-dev-team/developers/database/database-architect.md +19 -28
- package/claude-assets/agents/cfn-dev-team/developers/frontend/mobile-dev.md +15 -19
- package/claude-assets/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +15 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +15 -10
- package/claude-assets/agents/cfn-dev-team/developers/frontend/ui-designer.md +15 -25
- package/claude-assets/agents/cfn-dev-team/developers/graphql-specialist.md +17 -21
- package/claude-assets/agents/cfn-dev-team/developers/rust-developer.md +17 -21
- package/claude-assets/agents/cfn-dev-team/product-owners/product-owner.md +1 -5
- package/claude-assets/agents/cfn-dev-team/reviewers/code-reviewer.md +20 -51
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +22 -71
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +21 -64
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +22 -67
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/security-specialist.md +23 -67
- package/claude-assets/agents/cfn-dev-team/testers/api-testing-specialist.md +7 -35
- package/claude-assets/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +8 -37
- package/claude-assets/agents/cfn-dev-team/testers/contract-tester.md +16 -54
- package/claude-assets/agents/cfn-dev-team/testers/integration-tester.md +17 -55
- package/claude-assets/agents/cfn-dev-team/testers/interaction-tester.md +9 -37
- package/claude-assets/agents/cfn-dev-team/testers/load-testing-specialist.md +17 -55
- package/claude-assets/agents/cfn-dev-team/testers/mutation-testing-specialist.md +17 -48
- package/claude-assets/agents/cfn-dev-team/testers/playwright-tester.md +8 -37
- package/claude-assets/agents/cfn-dev-team/testers/tester.md +7 -27
- package/claude-assets/agents/cfn-dev-team/utility/analyst.md +12 -28
- package/claude-assets/agents/cfn-dev-team/utility/code-booster.md +13 -13
- package/claude-assets/agents/cfn-dev-team/utility/context-curator.md +7 -2
- package/claude-assets/agents/cfn-dev-team/utility/epic-creator.md +5 -10
- package/claude-assets/agents/cfn-dev-team/utility/memory-leak-specialist.md +120 -714
- package/claude-assets/agents/cfn-dev-team/utility/researcher.md +12 -21
- package/claude-assets/agents/cfn-dev-team/utility/z-ai-specialist.md +146 -572
- package/claude-assets/agents/custom/cfn-docker-expert.md +102 -0
- package/claude-assets/agents/custom/cfn-loops-cli-expert.md +129 -0
- package/claude-assets/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/claude-assets/commands/cfn-loop-cli.md +158 -464
- package/claude-assets/commands/cfn-loop-trigger.md +114 -0
- package/claude-assets/hooks/SKILL.md +518 -0
- package/claude-assets/hooks/SKILL.md.backup +471 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/claude-assets/hooks/cfn-invoke-post-edit-ts.sh.backup +78 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +22 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh.backup +87 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit-ts.sh.backup +94 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh +22 -0
- package/claude-assets/hooks/cfn-invoke-pre-edit.sh.backup +88 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/DELIVERABLES.md +409 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/IMPLEMENTATION_SUMMARY.md +396 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/INTEGRATION_GUIDE.md +308 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/QUICK_REFERENCE.md +239 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md +107 -1
- package/claude-assets/skills/cfn-agent-selection-with-fallback/SKILL.md.backup +302 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/TYPESCRIPT_MIGRATION.md +295 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.cjs +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/agent-selector.js +297 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.cjs +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/dist/cli.js +96 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh +45 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents-ts.sh.backup +23 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/select-agents.sh.backup +173 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.test.ts +357 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/agent-selector.ts +350 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/src/cli.ts +74 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh +22 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/task-classifier.sh.backup +71 -0
- package/claude-assets/skills/cfn-agent-selection-with-fallback/tsconfig.json +18 -0
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md +48 -1
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md.backup +135 -0
- package/claude-assets/skills/cfn-agent-spawning/TYPESCRIPT_MIGRATION.md +567 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh.backup +30 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/get-agent-provider-env.sh.backup +127 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/parse-agent-provider.sh.backup +59 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh +63 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent-wrapper.sh.backup +41 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +26 -1
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh.backup +613 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh +22 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-worker.sh.backup +176 -0
- package/claude-assets/skills/cfn-coordination/agent-completion.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-signal.sh.backup +36 -0
- package/claude-assets/skills/cfn-coordination/coordination-wait.sh.backup +36 -0
- package/claude-assets/skills/cfn-dependency-ingestion/README.md +101 -0
- package/claude-assets/skills/cfn-dependency-ingestion/SKILL.md +369 -0
- package/claude-assets/skills/cfn-dependency-ingestion/build.sh +23 -0
- package/claude-assets/skills/cfn-dependency-ingestion/dist/ingest-dependencies.js +478 -0
- package/claude-assets/skills/cfn-dependency-ingestion/ingest-dependencies.sh +295 -0
- package/claude-assets/skills/cfn-dependency-ingestion/src/ingest-dependencies.ts +563 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/original +271 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763619700_33aff4a69b99159e4e849107ebc4d09f/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/metadata.json +8 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/original +325 -0
- package/claude-assets/skills/cfn-loop-orchestration/.backups/unknown/1763671642_06496e8c399a79db08167cc00ed4b31e/revert.sh +7 -0
- package/claude-assets/skills/cfn-loop-orchestration/CLI_IMPLEMENTATION_SUMMARY.md +330 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_MIGRATION.md +308 -0
- package/claude-assets/skills/cfn-loop-orchestration/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/claude-assets/skills/cfn-loop-orchestration/E2E_VALIDATION_REPORT.md +262 -0
- package/claude-assets/skills/cfn-loop-orchestration/IMPLEMENTATION_SUMMARY.md +319 -519
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_E2E_REPORT.md +299 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_EXECUTION_SUMMARY.md +403 -0
- package/claude-assets/skills/cfn-loop-orchestration/NORTH_STAR_INDEX.md +323 -0
- package/claude-assets/skills/cfn-loop-orchestration/SKILL.md +159 -48
- package/claude-assets/skills/cfn-loop-orchestration/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_REPORT.md +335 -0
- package/claude-assets/skills/cfn-loop-orchestration/TEST_COVERAGE_SUMMARY.md +456 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_REPORT.md +709 -0
- package/claude-assets/skills/cfn-loop-orchestration/TYPESCRIPT_INTEGRATION_SUMMARY.md +257 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_REPORT.md +572 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATION_SUMMARY.txt +196 -0
- package/claude-assets/skills/cfn-loop-orchestration/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/README.md +167 -0
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate-enhanced.sh +548 -0
- package/{.claude/skills/cfn-loop-orchestration → claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash}/orchestrate-wrapper.sh +11 -1
- package/claude-assets/skills/cfn-loop-orchestration/archive/legacy-bash/orchestrate.sh +182 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation-fixed.js +240 -0
- package/claude-assets/skills/cfn-loop-orchestration/e2e-validation.js +213 -0
- package/claude-assets/skills/cfn-loop-orchestration/package-lock.json +3 -0
- package/claude-assets/skills/cfn-loop-orchestration/package.json +4 -0
- package/claude-assets/skills/cfn-loop-orchestration/run-north-star-e2e.ts +210 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/cli/orchestrator-cli.ts +396 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_IMPLEMENTATION.md +375 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/confidence-aggregator.ts +473 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/consensus.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-injector.ts +349 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/context-lookup.ts +486 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/deliverable-verifier.ts +6 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/gate-check.ts +1 -1
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/product-owner-decision.ts +316 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/spawn-agents.ts +357 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/helpers/validator.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/index.ts +2 -0
- package/claude-assets/skills/cfn-loop-orchestration/src/orchestrate.ts +743 -2
- package/claude-assets/skills/cfn-loop-orchestration/src/types.ts +56 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-cli.sh +92 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-typescript-integration.sh +442 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/agent-spawner.test.ts +124 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/confidence-aggregator.test.ts +604 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-injector.test.ts +561 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/context-lookup.test.ts +661 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/deliverable-verifier.test.ts +2 -2
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-check-edge-cases.test.ts +422 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/gate-checker.test.ts +276 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/logger.test.ts +291 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/north-star-e2e.test.ts +334 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/redis-coordinator.test.ts +321 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/spawn-agents.test.ts +284 -0
- package/claude-assets/skills/cfn-loop-orchestration/tests/validator.test.ts +643 -0
- package/claude-assets/skills/cfn-loop-output-processing/.eslintrc.json +33 -0
- package/claude-assets/skills/cfn-loop-output-processing/DELIVERY_SUMMARY.txt +462 -0
- package/claude-assets/skills/cfn-loop-output-processing/DEPRECATION_NOTICE.md +183 -0
- package/claude-assets/skills/cfn-loop-output-processing/EXAMPLES.md +609 -0
- package/claude-assets/skills/cfn-loop-output-processing/IMPLEMENTATION_SUMMARY.md +418 -0
- package/claude-assets/skills/cfn-loop-output-processing/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-output-processing/MIGRATION.md +362 -0
- package/claude-assets/skills/cfn-loop-output-processing/README.md +114 -0
- package/claude-assets/skills/cfn-loop-output-processing/SKILL.md +633 -0
- package/{.claude/skills/cfn-docker-redis-coordination → claude-assets/skills/cfn-loop-output-processing}/jest.config.js +7 -15
- package/claude-assets/skills/cfn-loop-output-processing/package.json +50 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop2.ts +195 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/cli/process-loop3.ts +157 -0
- package/claude-assets/skills/cfn-loop-output-processing/src/output-processor.ts +632 -0
- package/claude-assets/skills/cfn-loop-output-processing/tests/output-processor.test.ts +617 -0
- package/claude-assets/skills/{cfn-docker-redis-coordination → cfn-loop-output-processing}/tsconfig.json +16 -7
- package/claude-assets/skills/cfn-loop-validation/IMPLEMENTATION_SUMMARY.md +672 -0
- package/claude-assets/skills/cfn-loop-validation/INDEX.md +531 -0
- package/claude-assets/skills/cfn-loop-validation/README_TYPESCRIPT.md +454 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL.md +48 -1
- package/claude-assets/skills/cfn-loop-validation/SKILL.md.backup +353 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL_TYPESCRIPT.md +782 -0
- package/claude-assets/skills/cfn-loop-validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh.backup +31 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/detect-vapor.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/dist/.tsbuildinfo +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js +185 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/detect-vapor.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts +14 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js +176 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-deliverables.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts +19 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js +123 -0
- package/claude-assets/skills/cfn-loop-validation/dist/cli/validate-gate.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts +156 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js +66 -0
- package/claude-assets/skills/cfn-loop-validation/dist/types.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts +85 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.d.ts.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js +411 -0
- package/claude-assets/skills/cfn-loop-validation/dist/validator.js.map +1 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/claude-assets/skills/cfn-loop-validation/package.json +93 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/detect-vapor.ts +177 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-deliverables.ts +161 -0
- package/claude-assets/skills/cfn-loop-validation/src/cli/validate-gate.ts +139 -0
- package/claude-assets/skills/cfn-loop-validation/src/types.ts +215 -0
- package/claude-assets/skills/cfn-loop-validation/src/validator.ts +503 -0
- package/claude-assets/skills/cfn-loop-validation/tests/validator.test.ts +537 -0
- package/claude-assets/skills/{cfn-redis-coordination → cfn-loop-validation}/tsconfig.json +34 -31
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh +59 -0
- package/claude-assets/skills/cfn-loop-validation/validate-deliverables.sh.backup +37 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh +63 -0
- package/claude-assets/skills/cfn-loop-validation/validate-gate.sh.backup +41 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh +22 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh.backup +134 -0
- package/claude-assets/skills/cfn-product-owner-decision/SKILL.md +479 -147
- package/claude-assets/skills/cfn-product-owner-decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/{.claude/skills/cfn-product-owner-decision → claude-assets/skills/cfn-product-owner-decision/archive/legacy-bash}/execute-decision.sh +24 -2
- package/claude-assets/skills/cfn-provider-routing/README.md +129 -0
- package/claude-assets/skills/cfn-provider-routing/SKILL.md +192 -0
- package/claude-assets/skills/cfn-provider-routing/resolve-provider-model.ts +223 -0
- package/claude-assets/skills/pre-edit-backup/SKILL.md +324 -0
- package/claude-assets/skills/pre-edit-backup/SKILL.md.backup +277 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh +22 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh.backup +107 -0
- package/dist/agents/agent-loader.js +146 -165
- package/dist/agents/agent-loader.js.map +1 -1
- package/dist/api/auth-endpoints.js +415 -0
- package/dist/api/auth-endpoints.js.map +1 -0
- package/dist/api/task-endpoints.js +562 -0
- package/dist/api/task-endpoints.js.map +1 -0
- package/dist/backend/server.js +418 -0
- package/dist/backend/server.js.map +1 -0
- package/dist/cfn-loop/product-owner/decision-parser.js +356 -0
- package/dist/cfn-loop/product-owner/decision-parser.js.map +1 -0
- package/dist/cfn-loop/product-owner/index.js +1 -0
- package/dist/cfn-loop/product-owner/index.js.map +1 -1
- package/dist/cli/agent-command.js +1 -1
- package/dist/cli/agent-command.js.map +1 -1
- package/dist/cli/agent-completion.js +273 -0
- package/dist/cli/agent-completion.js.map +1 -0
- package/dist/cli/agent-prompt-builder.js +83 -48
- package/dist/cli/agent-prompt-builder.js.map +1 -1
- package/dist/cli/agent-spawner.js +499 -0
- package/dist/cli/agent-spawner.js.map +1 -0
- package/dist/cli/anthropic-client.js +10 -3
- package/dist/cli/anthropic-client.js.map +1 -1
- package/dist/cli/config-manager.js +91 -109
- package/dist/cli/index.js +11 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/parse-decision-cli.js +268 -0
- package/dist/cli/parse-decision-cli.js.map +1 -0
- package/dist/cli/post-edit-hook.js +83 -0
- package/dist/cli/post-edit-hook.js.map +1 -0
- package/dist/cli/pre-edit-hook.js +77 -0
- package/dist/cli/pre-edit-hook.js.map +1 -0
- package/dist/cli/spawn-agent-cli.js +209 -0
- package/dist/cli/spawn-agent-cli.js.map +1 -0
- package/dist/coordination/coordination-wrapper.js +383 -0
- package/dist/coordination/coordination-wrapper.js.map +1 -0
- package/dist/coordination/store-success-criteria.js +68 -0
- package/dist/coordination/store-success-criteria.js.map +1 -0
- package/dist/coordination/store-task-context.js +65 -0
- package/dist/coordination/store-task-context.js.map +1 -0
- package/dist/hooks/backup-manager.js +273 -0
- package/dist/hooks/backup-manager.js.map +1 -0
- package/dist/hooks/post-edit-validator.js +388 -0
- package/dist/hooks/post-edit-validator.js.map +1 -0
- package/dist/integration/index.js +19 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/task-mode-adapter.js +297 -0
- package/dist/integration/task-mode-adapter.js.map +1 -0
- package/dist/integration/trigger-dev-client.js +253 -0
- package/dist/integration/trigger-dev-client.js.map +1 -0
- package/dist/integration/trigger-dev-webhooks.js +362 -0
- package/dist/integration/trigger-dev-webhooks.js.map +1 -0
- package/dist/lib/path-validator.js +14 -5
- package/dist/lib/path-validator.js.map +1 -1
- package/dist/lib/redis-queue-manager.js +5 -1
- package/dist/lib/redis-queue-manager.js.map +1 -1
- package/dist/middleware/authentication.js +317 -0
- package/dist/middleware/authentication.js.map +1 -0
- package/dist/services/authentication.js +669 -0
- package/dist/services/authentication.js.map +1 -0
- package/dist/services/session-management.js +436 -0
- package/dist/services/session-management.js.map +1 -0
- package/dist/services/skill-deployment.js +8 -6
- package/dist/services/skill-deployment.js.map +1 -1
- package/dist/services/user-service.js +710 -0
- package/dist/services/user-service.js.map +1 -0
- package/dist/types/trigger-dev-events.d.js +10 -0
- package/dist/types/trigger-dev-events.d.js.map +1 -0
- package/docs/README.md +240 -0
- package/package.json +13 -4
- package/scripts/compare-workflow-performance.sh +556 -0
- package/scripts/migrate-to-optimized-workflows.sh +438 -0
- package/scripts/organize-docs.sh +338 -0
- package/scripts/trigger-dev-setup.sh +267 -0
- package/.claude/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/.claude/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/.claude/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/.claude/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/.claude/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/.claude/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/.claude/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/.claude/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/.claude/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/.claude/skills/cfn-docker-redis-coordination/tsconfig.json +0 -30
- package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/.claude/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/.claude/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/.claude/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/.claude/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/.claude/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/.claude/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/.claude/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/.claude/skills/cfn-redis-coordination/config.json +0 -61
- package/.claude/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/.claude/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/.claude/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/.claude/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/.claude/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/.claude/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/.claude/skills/cfn-redis-coordination/package.json +0 -45
- package/.claude/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/.claude/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/.claude/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/.claude/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/.claude/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/.claude/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/.claude/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/.claude/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/.claude/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/.claude/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/.claude/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/.claude/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/.claude/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/.claude/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/.claude/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/.claude/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/.claude/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/.claude/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/.claude/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/.claude/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/.claude/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +0 -980
- package/claude-assets/agents/typescript-specialist.md +0 -280
- package/claude-assets/skills/cfn-docker-redis-coordination/MIGRATION_SUMMARY.md +0 -348
- package/claude-assets/skills/cfn-docker-redis-coordination/README.md +0 -294
- package/claude-assets/skills/cfn-docker-redis-coordination/SKILL.md +0 -435
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh +0 -650
- package/claude-assets/skills/cfn-docker-redis-coordination/coordinate.sh.backup-1763145142 +0 -641
- package/claude-assets/skills/cfn-docker-redis-coordination/jest.config.js +0 -37
- package/claude-assets/skills/cfn-docker-redis-coordination/package-lock.json +0 -5259
- package/claude-assets/skills/cfn-docker-redis-coordination/package.json +0 -40
- package/claude-assets/skills/cfn-docker-redis-coordination/src/coordinator.ts +0 -801
- package/claude-assets/skills/cfn-docker-redis-coordination/src/index.ts +0 -42
- package/claude-assets/skills/cfn-docker-redis-coordination/src/types.ts +0 -351
- package/claude-assets/skills/cfn-docker-redis-coordination/tests/coordinator.test.ts +0 -1464
- package/claude-assets/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +0 -228
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus.sh +0 -94
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-injection.sh +0 -142
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-lookup.sh +0 -359
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier-ts.sh +0 -123
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +0 -71
- package/claude-assets/skills/cfn-loop-orchestration/helpers/gate-check.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager-ts.sh +0 -89
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +0 -87
- package/claude-assets/skills/cfn-loop-orchestration/helpers/orchestrate-ts.sh +0 -104
- package/claude-assets/skills/cfn-loop-orchestration/helpers/parse-test-results.sh +0 -56
- package/claude-assets/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +0 -290
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator-ts.sh +0 -47
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +0 -51
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +0 -1345
- package/claude-assets/skills/cfn-redis-cleanup/cleanup-redis.sh +0 -130
- package/claude-assets/skills/cfn-redis-coordination/AGENT_LOGGING.md +0 -280
- package/claude-assets/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +0 -209
- package/claude-assets/skills/cfn-redis-coordination/CENTRALIZED_REDIS_WRAPPER.md +0 -319
- package/claude-assets/skills/cfn-redis-coordination/agent-log.sh.bak +0 -124
- package/claude-assets/skills/cfn-redis-coordination/config.json +0 -61
- package/claude-assets/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +0 -82
- package/claude-assets/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +0 -274
- package/claude-assets/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +0 -0
- package/claude-assets/skills/cfn-redis-coordination/docs/migration/PHASE_3_REDIS_COORDINATION_COMPLETION_REPORT.md +0 -553
- package/claude-assets/skills/cfn-redis-coordination/jest.config.js +0 -23
- package/claude-assets/skills/cfn-redis-coordination/package-lock.json +0 -5272
- package/claude-assets/skills/cfn-redis-coordination/package.json +0 -45
- package/claude-assets/skills/cfn-redis-coordination/src/agent-logger.ts +0 -446
- package/claude-assets/skills/cfn-redis-coordination/src/agent-recovery.ts +0 -454
- package/claude-assets/skills/cfn-redis-coordination/src/completion-reporter.ts +0 -396
- package/claude-assets/skills/cfn-redis-coordination/src/context-manager.ts +0 -327
- package/claude-assets/skills/cfn-redis-coordination/src/index.ts +0 -82
- package/claude-assets/skills/cfn-redis-coordination/src/mode-detector.ts +0 -155
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-client.ts +0 -305
- package/claude-assets/skills/cfn-redis-coordination/src/redis/redis-functions.ts +0 -283
- package/claude-assets/skills/cfn-redis-coordination/src/redis-client.ts +0 -654
- package/claude-assets/skills/cfn-redis-coordination/src/result-collector.ts +0 -437
- package/claude-assets/skills/cfn-redis-coordination/src/swarm-manager.ts +0 -494
- package/claude-assets/skills/cfn-redis-coordination/src/task-analyzer.ts +0 -404
- package/claude-assets/skills/cfn-redis-coordination/src/task-executor.ts +0 -423
- package/claude-assets/skills/cfn-redis-coordination/src/types.ts +0 -235
- package/claude-assets/skills/cfn-redis-coordination/src/waiting-coordinator.ts +0 -587
- package/claude-assets/skills/cfn-redis-coordination/store-success-criteria.sh +0 -85
- package/claude-assets/skills/cfn-redis-coordination/test-connection-attempts.js +0 -70
- package/claude-assets/skills/cfn-redis-coordination/test-mode-simple.js +0 -121
- package/claude-assets/skills/cfn-redis-coordination/test-redis-check.js +0 -84
- package/claude-assets/skills/cfn-redis-coordination/test-task-mode-redis.cjs +0 -391
- package/claude-assets/skills/cfn-redis-coordination/tests/coordination.test.ts +0 -788
- package/claude-assets/skills/cfn-redis-coordination/update-all-scripts.sh +0 -67
- package/claude-assets/skills/cfn-redis-data-extraction/SKILL.md +0 -442
- package/claude-assets/skills/cfn-redis-data-extraction/extract.sh +0 -306
- package/dist/coordination/index.js +0 -25
- package/dist/coordination/index.js.map +0 -1
- package/docs/BUG_19_MEMORY_LEAK_TASK_MODE.md +0 -405
- package/docs/MEMORY_CLEANUP_GUIDE.md +0 -358
- package/docs/MEMORY_LEAK_FIX_SUMMARY.md +0 -322
- package/docs/REDIS_CLEANUP_EXECUTIVE_SUMMARY.md +0 -319
- package/docs/REDIS_CLEANUP_VERIFICATION_REPORT.md +0 -574
- /package/.claude/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/.claude/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/.claude/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{inject-loop-context.sh → archive/legacy-bash/inject-loop-context.sh} +0 -0
- /package/claude-assets/skills/cfn-loop-orchestration/{monitor-execution.sh → archive/legacy-bash/monitor-execution.sh} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-log.sh → agent-log.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{agent-recovery.sh → agent-recovery.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{analyze-task-complexity.sh → analyze-task-complexity.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/bash-wrappers/{store-context.sh → store-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cancel-swarm.sh → cancel-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-exec.sh → cfn-loop-exec.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{cfn-loop-relaunch.sh → cfn-loop-relaunch.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-confidence-scores.sh → collect-confidence-scores.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{collect-results.sh → collect-results.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{complete-swarm.sh → complete-swarm.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-context.sh → get-context.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{get-success-criteria.sh → get-success-criteria.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{invoke-waiting-mode.sh → invoke-waiting-mode.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-cli-wrapper.sh → redis-cli-wrapper.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{redis-functions.sh → redis-functions.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{report-completion.sh → report-completion.sh.backup} +0 -0
- /package/claude-assets/skills/cfn-redis-coordination/{store-context.sh → store-context.sh.backup} +0 -0
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Execute CFN Loop in CLI mode (
|
|
3
|
-
argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--
|
|
4
|
-
allowed-tools: ["Task", "TodoWrite", "Read", "Bash"]
|
|
2
|
+
description: "Execute CFN Loop in simplified CLI mode (Main Chat coordination, provider routing)"
|
|
3
|
+
argument-hint: "<task description> [--mode=mvp|standard|enterprise] [--provider=zai|kimi|anthropic|openrouter] [--model=<model>]"
|
|
4
|
+
allowed-tools: ["Task", "TodoWrite", "Read", "Bash", "SlashCommand"]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# CFN Loop CLI Mode -
|
|
7
|
+
# CFN Loop CLI Mode - Simplified Main Chat Coordination
|
|
8
8
|
|
|
9
|
-
🚨 **
|
|
10
|
-
|
|
11
|
-
**DO NOT just show instructions. EXECUTE the bash command immediately after reading this.**
|
|
9
|
+
🚨 **NEW ARCHITECTURE:** Main Chat directly coordinates CLI agents via Redis BLPOP signaling
|
|
12
10
|
|
|
13
11
|
---
|
|
14
12
|
|
|
@@ -18,519 +16,215 @@ allowed-tools: ["Task", "TodoWrite", "Read", "Bash"]
|
|
|
18
16
|
```
|
|
19
17
|
TASK_DESCRIPTION: $ARGUMENTS (extract task, remove flags)
|
|
20
18
|
MODE: Parse from --mode flag or default to "standard"
|
|
21
|
-
|
|
19
|
+
PROVIDER: Parse from --provider flag or use Main Chat setting
|
|
20
|
+
MODEL: Parse from --model flag or use provider default
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
**Step 2: Set
|
|
23
|
+
**Step 2: Set Environment Variables**
|
|
25
24
|
```bash
|
|
26
|
-
#
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
# Generate task ID
|
|
26
|
+
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
27
|
+
echo "📋 Task ID: $TASK_ID"
|
|
28
|
+
echo "🎯 Mode: $MODE"
|
|
29
|
+
echo "🤖 Provider: $PROVIDER (from --provider or Main Chat setting)"
|
|
30
|
+
if [ -n "$MODEL" ]; then
|
|
31
|
+
echo "🧠 Model: $MODEL"
|
|
32
|
+
fi
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
# Set working directory
|
|
35
|
+
export PROJECT_ROOT="${PROJECT_ROOT:-$(pwd)}"
|
|
36
|
+
export TASK_ID="$TASK_ID"
|
|
37
|
+
export MODE="$MODE"
|
|
32
38
|
```
|
|
33
39
|
|
|
34
|
-
**Step 3: Verify Redis Availability (
|
|
40
|
+
**Step 3: Verify Redis Availability (Required for coordination)**
|
|
35
41
|
```bash
|
|
36
|
-
#
|
|
37
|
-
if
|
|
38
|
-
|
|
39
|
-
else
|
|
40
|
-
REDIS_CLI="redis-cli -h $CFN_REDIS_HOST -p $CFN_REDIS_PORT"
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
# Test Redis connectivity (suppress password warning)
|
|
44
|
-
if ! $REDIS_CLI PING >/dev/null 2>&1; then
|
|
45
|
-
echo "❌ ERROR: Redis not available at $CFN_REDIS_HOST:$CFN_REDIS_PORT"
|
|
46
|
-
echo ""
|
|
47
|
-
echo " CLI mode REQUIRES Redis for agent coordination."
|
|
48
|
-
echo " Without Redis, CLI mode cannot function."
|
|
42
|
+
# Check Redis connection
|
|
43
|
+
if ! redis-cli ping >/dev/null 2>&1; then
|
|
44
|
+
echo "❌ ERROR: Redis not available for Main Chat coordination"
|
|
49
45
|
echo ""
|
|
46
|
+
echo " CLI mode requires Redis for agent coordination."
|
|
50
47
|
echo " Options:"
|
|
51
48
|
echo " 1. Start Redis: docker-compose up -d redis"
|
|
52
49
|
echo " 2. Use Task mode instead: /cfn-loop-task \"<task>\""
|
|
53
|
-
echo ""
|
|
54
|
-
echo " If Redis is running but authentication failed:"
|
|
55
|
-
echo " - Check CFN_REDIS_PASSWORD or REDIS_PASSWORD environment variable"
|
|
56
|
-
echo " - Verify Redis password in .env file"
|
|
57
50
|
exit 1
|
|
58
51
|
fi
|
|
59
52
|
|
|
60
|
-
echo "✅ Redis available
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**Step 4: Generate Task ID**
|
|
64
|
-
```bash
|
|
65
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
66
|
-
echo "📋 Task ID: $TASK_ID"
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**Step 5: Spawn Coordinator (REQUIRED - Execute this command now via Bash tool)**
|
|
70
|
-
```bash
|
|
71
|
-
# Spawn coordinator with Redis environment variables
|
|
72
|
-
CFN_REDIS_HOST="$CFN_REDIS_HOST" \
|
|
73
|
-
CFN_REDIS_PORT="$CFN_REDIS_PORT" \
|
|
74
|
-
CFN_REDIS_PASSWORD="$CFN_REDIS_PASSWORD" \
|
|
75
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
76
|
-
--task-id "$TASK_ID" \
|
|
77
|
-
--context "TASK_DESCRIPTION='$TASK_DESCRIPTION' MODE='$MODE' MAX_ITERATIONS=$MAX_ITERATIONS TASK_ID='$TASK_ID'" \
|
|
78
|
-
--timeout 300 \
|
|
79
|
-
--background=true
|
|
53
|
+
echo "✅ Redis available for Main Chat coordination"
|
|
80
54
|
```
|
|
81
55
|
|
|
82
|
-
**Step
|
|
83
|
-
After spawning coordinator, tell user:
|
|
84
|
-
- ✅ CFN Loop coordinator spawned with task ID: $TASK_ID
|
|
85
|
-
- 📊 Monitor progress: `redis-cli -h $CFN_REDIS_HOST -p $CFN_REDIS_PORT HGETALL "cfn_loop:task:$TASK_ID:context"`
|
|
86
|
-
- 🌐 Web dashboard: http://localhost:3000
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## Background Information (DO NOT show this to user unless they ask)
|
|
91
|
-
|
|
92
|
-
**Task**: $ARGUMENTS
|
|
93
|
-
|
|
94
|
-
## What is CLI Mode?
|
|
95
|
-
|
|
96
|
-
**CLI Mode Architecture v3.0 (Enhanced):**
|
|
97
|
-
- Main Chat processes **slash command** then spawns coordinator agent via CLI with background=true
|
|
98
|
-
- Coordinator spawns **all workers via CLI** with background=true for cost optimization
|
|
99
|
-
- All CLI agents use **Z.ai custom routing** (when enabled)
|
|
100
|
-
- **Real-time monitoring** with automatic recovery from stuck agents
|
|
101
|
-
- Background execution with **Redis monitoring** and progress visibility
|
|
102
|
-
- **Enhanced features**: Process health checking, context validation, broadcast protocol
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
## Prerequisites
|
|
106
|
-
|
|
107
|
-
**Enable Z.ai Custom Routing (One-Time Setup):**
|
|
56
|
+
**Step 4: Spawn Initial CLI Agent (Main Chat Coordination Pattern)**
|
|
108
57
|
```bash
|
|
109
|
-
|
|
110
|
-
|
|
58
|
+
# Determine first agent type based on task
|
|
59
|
+
# This is a simplified selection - could be enhanced with task classification
|
|
60
|
+
AGENT_TYPE="backend-developer"
|
|
111
61
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
/switch-api status
|
|
115
|
-
# Expected: Main Chat=Anthropic, Task=Anthropic, CLI=Z.ai
|
|
116
|
-
```
|
|
62
|
+
# Spawn first CLI agent with provider routing
|
|
63
|
+
echo "🚀 Spawning CLI agent: $AGENT_TYPE"
|
|
117
64
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# MVP mode (fast, lower quality gates)
|
|
126
|
-
/cfn-loop-cli "Build prototype feature" --mode=mvp
|
|
65
|
+
npx tsx src/cli/spawn-agent-cli.ts "$AGENT_TYPE" \
|
|
66
|
+
--task-id "$TASK_ID" \
|
|
67
|
+
--mode "$MODE" \
|
|
68
|
+
${PROVIDER:+--provider "$PROVIDER"} \
|
|
69
|
+
${MODEL:+--model "$MODEL"} \
|
|
70
|
+
--background
|
|
127
71
|
|
|
128
|
-
|
|
129
|
-
/cfn-loop-cli "Production security feature" --mode=enterprise --max-iterations=15
|
|
72
|
+
echo "✅ CLI agent spawned with Task ID: $TASK_ID"
|
|
130
73
|
```
|
|
131
74
|
|
|
132
|
-
**
|
|
133
|
-
- `--mode=<mvp|standard|enterprise>`: Quality mode (default: standard)
|
|
134
|
-
- `--max-iterations=<n>`: Max iterations per loop (default: 10)
|
|
135
|
-
|
|
136
|
-
## Mode Comparison
|
|
137
|
-
|
|
138
|
-
| Mode | Gate | Consensus | Iterations | Validators | Use Case |
|
|
139
|
-
|------|------|-----------|------------|------------|----------|
|
|
140
|
-
| MVP | ≥0.70 | ≥0.80 | 5 | 2 | Prototypes, proof-of-concept |
|
|
141
|
-
| Standard | ≥0.95 | ≥0.90 | 10 | 3-4 | Production features |
|
|
142
|
-
| Enterprise | ≥0.98 | ≥0.95 | 15 | 5 | Security, compliance, critical systems |
|
|
143
|
-
|
|
144
|
-
## How CLI Mode Works
|
|
145
|
-
|
|
146
|
-
1. **Main Chat** invokes `/cfn-loop-cli` slash command
|
|
147
|
-
2. **SlashCommand tool** processes command and returns execution instructions to Main Chat
|
|
148
|
-
3. **Main Chat** spawns `cfn-v3-coordinator` agent via bash with background=true
|
|
149
|
-
4. **Coordinator** orchestrates the entire CFN Loop workflow in the background
|
|
150
|
-
5. **Coordinator** spawns **Loop 3 workers via CLI** with background=true
|
|
151
|
-
6. **Loop 3** agents implement the solution and validate against quality gates
|
|
152
|
-
7. **Coordinator** spawns **Loop 2 workers via CLI** for validation
|
|
153
|
-
8. **Product Owner** makes the final decision on deliverables
|
|
154
|
-
9. **Background execution** with Redis coordination for scalability
|
|
155
|
-
|
|
156
|
-
**CLI Architecture Pattern:**
|
|
157
|
-
- Main Chat → SlashCommand (processing) → Main Chat spawns coordinator via bash
|
|
75
|
+
**Step 5: Wait for Agent Completion (Main Chat BLPOP Pattern)**
|
|
158
76
|
```bash
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
--context "TASK_DESCRIPTION='Fix core infrastructure
|
|
162
|
-
dependencies' MODE='standard' MAX_ITERATIONS=10" \
|
|
163
|
-
--timeout 300 \
|
|
164
|
-
--background=true
|
|
165
|
-
```
|
|
166
|
-
- All agents spawned via CLI by coordinator with Z.ai routing and background execution
|
|
167
|
-
- Background execution enables monitoring and recovery capabilities
|
|
77
|
+
# Main Chat waits for completion signal via Redis BLPOP
|
|
78
|
+
echo "⏳ Waiting for CLI agent completion..."
|
|
168
79
|
|
|
169
|
-
|
|
80
|
+
SIGNAL_KEY="cfn:mainchat:signal:$TASK_ID"
|
|
81
|
+
TIMEOUT_SECONDS=120
|
|
170
82
|
|
|
171
|
-
|
|
83
|
+
# Wait for completion signal with timeout
|
|
84
|
+
COMPLETION_SIGNAL=$(timeout $TIMEOUT_SECONDS redis-cli BLPOP "$SIGNAL_KEY" $((TIMEOUT_SECONDS + 10)))
|
|
172
85
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
177
|
-
pgrep -f "cfn-v3-coordinator" && echo "✅ Coordinator running" || echo "❌ Coordinator failed"
|
|
178
|
-
|
|
179
|
-
# Check Redis context was created
|
|
180
|
-
redis-cli EXISTS "cfn_loop:task:$TASK_ID:context" && echo "✅ Context stored" || echo "❌ No context"
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
### 2. Progress Monitoring (Every 2-5 minutes for long tasks)
|
|
184
|
-
```bash
|
|
185
|
-
# Check iteration progress and confidence scores
|
|
186
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep -E "(iteration|confidence|status)"
|
|
86
|
+
if [ $? -eq 0 ] && [ -n "$COMPLETION_SIGNAL" ]; then
|
|
87
|
+
echo "✅ CLI agent completed successfully"
|
|
88
|
+
echo "📊 Completion signal received via Redis"
|
|
187
89
|
|
|
188
|
-
#
|
|
189
|
-
|
|
90
|
+
# Parse completion signal (second line contains JSON)
|
|
91
|
+
SIGNAL_DATA=$(echo "$COMPLETION_SIGNAL" | tail -n 1)
|
|
92
|
+
echo "🔍 Agent signal: $SIGNAL_DATA"
|
|
190
93
|
|
|
191
|
-
#
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
# Start monitoring dashboard
|
|
198
|
-
npm run portal:start
|
|
199
|
-
|
|
200
|
-
# Access real-time progress at http://localhost:3000
|
|
201
|
-
# - Live agent status dashboard
|
|
202
|
-
# - Iteration progress visualization
|
|
203
|
-
# - Confidence score trends
|
|
204
|
-
# - Error rate monitoring
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### 4. Background Execution Monitoring Pattern
|
|
208
|
-
```bash
|
|
209
|
-
# For long-running tasks, use this monitoring pattern:
|
|
210
|
-
sleep 300 # Wait 5 minutes
|
|
211
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
|
|
212
|
-
|
|
213
|
-
# If still running, continue monitoring
|
|
214
|
-
if [ $? -eq 0 ]; then
|
|
215
|
-
echo "Task in progress, monitoring..."
|
|
216
|
-
sleep 300 # Wait another 5 minutes
|
|
217
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep status
|
|
94
|
+
# Could spawn additional agents here based on signal content
|
|
95
|
+
# For now, we'll consider the task complete
|
|
96
|
+
echo "🎉 CFN Loop CLI task completed"
|
|
97
|
+
else
|
|
98
|
+
echo "⚠️ CLI agent did not complete within timeout ($TIMEOUT_SECONDS seconds)"
|
|
99
|
+
echo "💡 Check agent logs or increase timeout if needed"
|
|
218
100
|
fi
|
|
219
101
|
```
|
|
220
102
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
# Investigate missing coordinator
|
|
224
|
-
./.claude/skills/cfn-loop-orchestration/investigate-missing-coordinator.sh "$TASK_ID"
|
|
225
|
-
|
|
226
|
-
# Check for process issues
|
|
227
|
-
ps aux | grep "claude-flow-novice agent" | grep -v grep
|
|
228
|
-
|
|
229
|
-
# Verify Redis connectivity
|
|
230
|
-
redis-cli PING
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
## CLI Mode Benefits
|
|
234
|
-
|
|
235
|
-
**Performance:**
|
|
236
|
-
- Scales linearly with iterations (Task mode scales exponentially)
|
|
237
|
-
- Background execution without timeout limitations
|
|
238
|
-
- Parallel agent spawning for improved throughput
|
|
239
|
-
|
|
240
|
-
**Production Features v3.0:**
|
|
241
|
-
- Background execution (no timeout issues)
|
|
242
|
-
- Redis state persistence (crash recovery)
|
|
243
|
-
- Zero-token waiting (BLPOP blocks without API calls)
|
|
244
|
-
- Web portal visibility (http://localhost:3000)
|
|
245
|
-
- **Enhanced monitoring**: Real-time agent progress tracking
|
|
246
|
-
- **Automatic recovery**: Dead process cleanup and agent restart
|
|
247
|
-
- **Protocol compliance**: Prevents "consensus on vapor" anti-patterns
|
|
248
|
-
- **Progress visibility**: Detailed reports with timestamps and health status
|
|
249
|
-
|
|
250
|
-
**Performance:**
|
|
251
|
-
- Parallel agent spawning (no sequential bottleneck)
|
|
252
|
-
- Instant wake-up (<100ms latency)
|
|
253
|
-
- Scalable (10+ agents, indefinite cycles)
|
|
254
|
-
|
|
255
|
-
## Troubleshooting
|
|
256
|
-
|
|
257
|
-
**Custom routing not working:**
|
|
258
|
-
```bash
|
|
259
|
-
/switch-api status # Check current provider
|
|
260
|
-
/switch-api zai # Enable Z.ai routing
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**Coordinator timeout:**
|
|
264
|
-
- Expected for long tasks (>10 min)
|
|
265
|
-
- Check web portal for progress: http://localhost:3000
|
|
266
|
-
- Query Redis: `redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"`
|
|
267
|
-
|
|
268
|
-
**No deliverables created:**
|
|
269
|
-
- Orchestrator validates deliverables before PROCEED
|
|
270
|
-
- Will force ITERATE if git diff shows zero changes
|
|
271
|
-
- Check coordinator output for validation failures
|
|
272
|
-
|
|
273
|
-
**Web Portal Access:**
|
|
274
|
-
- Monitor real-time agent progress at http://localhost:3000
|
|
275
|
-
- View detailed execution logs and health status
|
|
276
|
-
- Track iteration progress and confidence scores
|
|
277
|
-
|
|
278
|
-
## Enhanced Monitoring v3.0
|
|
279
|
-
|
|
280
|
-
CLI mode includes comprehensive monitoring capabilities for production workflows:
|
|
281
|
-
|
|
282
|
-
### Real-Time Progress Tracking
|
|
283
|
-
- **Agent Status**: Monitor individual agent health and progress
|
|
284
|
-
- **Iteration Progress**: Track confidence scores and gate validation
|
|
285
|
-
- **Resource Usage**: CPU, memory, and Redis connection monitoring
|
|
286
|
-
- **Error Detection**: Automatic identification of stuck or failed agents
|
|
287
|
-
|
|
288
|
-
### Monitoring Commands
|
|
289
|
-
|
|
290
|
-
**Check Task Status:**
|
|
291
|
-
```bash
|
|
292
|
-
# View complete task context and progress
|
|
293
|
-
redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"
|
|
294
|
-
|
|
295
|
-
# Monitor agent completion status
|
|
296
|
-
redis-cli LRANGE "swarm:${TASK_ID}:agent:status" 0 -1
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
**Agent Health Monitoring:**
|
|
300
|
-
```bash
|
|
301
|
-
# Check if coordinator is running
|
|
302
|
-
pgrep -f "cfn-v3-coordinator" && echo "Coordinator alive" || echo "Coordinator missing"
|
|
303
|
-
|
|
304
|
-
# Monitor active agent processes
|
|
305
|
-
ps aux | grep "claude-flow-novice agent" | grep -v grep
|
|
306
|
-
|
|
307
|
-
# Check Redis connectivity
|
|
308
|
-
redis-cli PING
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
**Progress Monitoring:**
|
|
312
|
-
```bash
|
|
313
|
-
# Real-time agent completion monitoring
|
|
314
|
-
watch -n 5 'redis-cli HGETALL "cfn_loop:task:$TASK_ID:context" | grep -E "(iteration|confidence|status)"'
|
|
315
|
-
|
|
316
|
-
# Monitor agent signals
|
|
317
|
-
redis-cli PUBLISH "swarm:${TASK_ID}:monitor" "status_check"
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### Automatic Recovery Features
|
|
321
|
-
|
|
322
|
-
**Dead Process Detection:**
|
|
323
|
-
- Automatically detects and reports stuck agents
|
|
324
|
-
- Process health checking with configurable timeouts
|
|
325
|
-
- Automatic cleanup of orphaned Redis connections
|
|
326
|
-
|
|
327
|
-
**Agent Restart Capability:**
|
|
328
|
-
- Coordinator can restart failed agents automatically
|
|
329
|
-
- Context preservation across agent restarts
|
|
330
|
-
- Iteration state recovery from Redis persistence
|
|
331
|
-
|
|
332
|
-
**Error Recovery Patterns:**
|
|
333
|
-
- Timeout detection and agent termination
|
|
334
|
-
- Context validation before spawning replacements
|
|
335
|
-
- Graceful degradation with partial agent sets
|
|
103
|
+
**Step 6: Inform User**
|
|
104
|
+
Report completion status and any additional information.
|
|
336
105
|
|
|
337
|
-
|
|
106
|
+
---
|
|
338
107
|
|
|
339
|
-
|
|
340
|
-
- Live agent status dashboard
|
|
341
|
-
- Iteration progress visualization
|
|
342
|
-
- Confidence score trends
|
|
343
|
-
- Error rate monitoring
|
|
344
|
-
- Resource usage graphs
|
|
108
|
+
## Background Information (DO NOT show this to user unless they ask)
|
|
345
109
|
|
|
346
|
-
**
|
|
347
|
-
- `cfn-portal` - Start/stop monitoring dashboard
|
|
348
|
-
- `cfn-context` - Query task context and status
|
|
349
|
-
- `cfn-metrics` - View performance analytics
|
|
350
|
-
- `cfn-redis` - Direct Redis inspection tools
|
|
110
|
+
**Task**: $ARGUMENTS
|
|
351
111
|
|
|
352
|
-
|
|
112
|
+
## What is CLI Mode?
|
|
353
113
|
|
|
354
|
-
**
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
114
|
+
**NEW CLI Mode Architecture (Simplified):**
|
|
115
|
+
- **Main Chat** directly spawns CLI agents with provider routing
|
|
116
|
+
- **CLI agents** execute tasks and send Redis completion signals
|
|
117
|
+
- **Main Chat** waits via Redis BLPOP for agent completion
|
|
118
|
+
- **2-layer coordination** (Main Chat → CLI agents)
|
|
119
|
+
- **Provider routing** via `--provider` and `--model` flags
|
|
120
|
+
- **Fallback behavior** to Z.ai glm-4.6 if no provider specified
|
|
358
121
|
|
|
359
|
-
|
|
360
|
-
redis-cli KEYS "cfn_loop:*" | head -10
|
|
361
|
-
```
|
|
122
|
+
## Prerequisites
|
|
362
123
|
|
|
363
|
-
**
|
|
124
|
+
**Redis Required:**
|
|
364
125
|
```bash
|
|
365
|
-
#
|
|
366
|
-
|
|
126
|
+
# Start Redis for coordination
|
|
127
|
+
docker-compose up -d redis
|
|
367
128
|
|
|
368
|
-
#
|
|
369
|
-
redis-cli
|
|
129
|
+
# Verify Redis is running
|
|
130
|
+
redis-cli ping
|
|
370
131
|
```
|
|
371
132
|
|
|
372
|
-
**
|
|
133
|
+
**Provider Routing Setup (Optional):**
|
|
373
134
|
```bash
|
|
374
|
-
#
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
#
|
|
378
|
-
redis-cli INFO memory | grep used_memory_human
|
|
379
|
-
|
|
380
|
-
# Monitor Redis keyspace
|
|
381
|
-
redis-cli DBSIZE
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
## Usage Examples
|
|
385
|
-
|
|
386
|
-
**Simple API Development:**
|
|
387
|
-
```
|
|
388
|
-
/cfn-loop-cli "Build REST API with user authentication"
|
|
135
|
+
# Configure Main Chat provider
|
|
136
|
+
/switch-api zai # Cost-optimized
|
|
137
|
+
/switch-api kimi # Mid-range quality
|
|
138
|
+
/switch-api max # High quality (Anthropic)
|
|
389
139
|
```
|
|
390
140
|
|
|
391
|
-
|
|
392
|
-
```
|
|
393
|
-
/cfn-loop-cli "Implement payment processing with PCI compliance" --mode=enterprise --max-iterations=15
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
**Quick Prototype:**
|
|
397
|
-
```
|
|
398
|
-
/cfn-loop-cli "Build MVP landing page" --mode=mvp
|
|
399
|
-
```
|
|
141
|
+
## Command Options
|
|
400
142
|
|
|
401
|
-
**
|
|
402
|
-
```
|
|
403
|
-
/cfn-loop-cli "Set up CI/CD pipeline for microservices"
|
|
143
|
+
**Usage Examples:**
|
|
404
144
|
```
|
|
145
|
+
# Standard mode with default provider
|
|
146
|
+
/cfn-loop-cli "Implement JWT authentication"
|
|
405
147
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
- **Task Mode**: `/cfn-loop-task` (debugging, full visibility)
|
|
409
|
-
- **Frontend**: `/cfn-loop-frontend` (visual iteration workflow)
|
|
410
|
-
- **Documentation**: `/cfn-loop-document` (generate docs)
|
|
411
|
-
|
|
412
|
-
## Related Documentation
|
|
413
|
-
|
|
414
|
-
- Task Mode Guide: `.claude/commands/cfn/CFN_LOOP_TASK_MODE.md`
|
|
415
|
-
- Coordinator Parameters: `.claude/commands/cfn/CFN_COORDINATOR_PARAMETERS.md`
|
|
416
|
-
- Redis Coordination: `.claude/skills/cfn-redis-coordination/SKILL.md`
|
|
417
|
-
- Orchestration: `.claude/skills/cfn-loop-orchestration/SKILL.md`
|
|
418
|
-
|
|
419
|
-
---
|
|
420
|
-
|
|
421
|
-
## 🚨 EXECUTION INSTRUCTIONS (Internal Use)
|
|
422
|
-
|
|
423
|
-
**Main Chat: Slash command processing followed by CLI coordinator spawning:**
|
|
148
|
+
# With specific provider
|
|
149
|
+
/cfn-loop-cli "Build API service" --provider kimi
|
|
424
150
|
|
|
425
|
-
|
|
151
|
+
# With specific provider and model
|
|
152
|
+
/cfn-loop-cli "Create React component" --provider openrouter --model gpt-4
|
|
426
153
|
|
|
427
|
-
|
|
154
|
+
# MVP mode for fast prototyping
|
|
155
|
+
/cfn-loop-cli "Build feature prototype" --mode=mvp
|
|
428
156
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
TASK_ID="cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}"
|
|
432
|
-
|
|
433
|
-
# Extract task description and mode from slash command
|
|
434
|
-
TASK_DESCRIPTION="$ARGUMENTS"
|
|
435
|
-
MODE="${mode:-standard}"
|
|
436
|
-
MAX_ITERATIONS="${maxIterations:-10}"
|
|
437
|
-
|
|
438
|
-
# Spawn coordinator via CLI (background execution)
|
|
439
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
440
|
-
--task-id "$TASK_ID" \
|
|
441
|
-
--context "TASK_DESCRIPTION='$TASK_DESCRIPTION' MODE='$MODE' MAX_ITERATIONS=$MAX_ITERATIONS" \
|
|
442
|
-
--timeout 300 \
|
|
443
|
-
--background=true
|
|
157
|
+
# Enterprise mode for critical systems
|
|
158
|
+
/cfn-loop-cli "Security audit" --mode=enterprise --provider max
|
|
444
159
|
```
|
|
445
160
|
|
|
446
|
-
**
|
|
161
|
+
**Options:**
|
|
162
|
+
- `--mode=<mvp|standard|enterprise>`: Quality mode (default: standard)
|
|
163
|
+
- `--provider=<zai|kimi|anthropic|openrouter>`: AI provider (default: Main Chat setting)
|
|
164
|
+
- `--model=<model>`: Specific model (provider-specific)
|
|
447
165
|
|
|
448
|
-
|
|
449
|
-
# Main Chat should execute this command after processing slash command
|
|
450
|
-
npx claude-flow-novice agent cfn-v3-coordinator \
|
|
451
|
-
--task-id "cfn-cli-$(date +%s%N | tail -c 7)-${RANDOM}" \
|
|
452
|
-
--context "TASK_DESCRIPTION='Fix core infrastructure dependencies - lucide-wrappers.tsx LucideIcon React 18 compatibility, resolve module export errors in types/, establish proper import path resolution' MODE='standard' MAX_ITERATIONS=10" \
|
|
453
|
-
--timeout 300 \
|
|
454
|
-
--background=true
|
|
455
|
-
```
|
|
166
|
+
## Provider Routing Behavior
|
|
456
167
|
|
|
457
|
-
**
|
|
168
|
+
**Main Chat + Task() tools:** Controlled by `/switch-api` command
|
|
458
169
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
170
|
+
**CLI agents:**
|
|
171
|
+
- Uses `--provider` flag if specified
|
|
172
|
+
- Falls back to Main Chat provider setting
|
|
173
|
+
- Default to Z.ai glm-4.6 if no provider configured
|
|
462
174
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
# Determine appropriate agents based on task complexity
|
|
469
|
-
TASK_COMPLEXITY="standard" # auto-detect or pass from command
|
|
470
|
-
case "$TASK_COMPLEXITY" in
|
|
471
|
-
"simple")
|
|
472
|
-
LOOP3_AGENTS="backend-dev,researcher"
|
|
473
|
-
LOOP2_AGENTS="reviewer,tester"
|
|
474
|
-
;;
|
|
475
|
-
"standard")
|
|
476
|
-
LOOP3_AGENTS="backend-dev,researcher,devops"
|
|
477
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist"
|
|
478
|
-
;;
|
|
479
|
-
"complex")
|
|
480
|
-
LOOP3_AGENTS="backend-dev,researcher,devops,rust-developer"
|
|
481
|
-
LOOP2_AGENTS="reviewer,tester,architect,security-specialist,code-analyzer"
|
|
482
|
-
;;
|
|
483
|
-
esac
|
|
484
|
-
|
|
485
|
-
# Coordinator spawns CLI workers (background execution)
|
|
486
|
-
npx claude-flow-novice agent "$LOOP3_AGENT" \
|
|
487
|
-
--task-id "$TASK_ID" \
|
|
488
|
-
--agent-id "$AGENT_ID" \
|
|
489
|
-
--context "Complete deliverables and acceptance criteria" \
|
|
490
|
-
--timeout 300 \
|
|
491
|
-
--background=true
|
|
175
|
+
**Fallback Hierarchy:**
|
|
176
|
+
1. `--provider` flag (explicit)
|
|
177
|
+
2. Main Chat provider setting (from `/switch-api`)
|
|
178
|
+
3. Z.ai glm-4.6 (cost-effective default)
|
|
492
179
|
|
|
493
|
-
|
|
494
|
-
# redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"
|
|
495
|
-
```
|
|
180
|
+
## Mode Comparison
|
|
496
181
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
-
|
|
519
|
-
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
182
|
+
| Mode | Quality | Use Case | Description |
|
|
183
|
+
|------|---------|----------|-------------|
|
|
184
|
+
| MVP | Fast (70% gates) | Prototypes, quick experiments | Lower quality gates, fewer iterations |
|
|
185
|
+
| Standard | Production (95% gates) | Most features | Balanced quality and speed |
|
|
186
|
+
| Enterprise | High (98% gates) | Security, compliance | Maximum quality, thorough validation |
|
|
187
|
+
|
|
188
|
+
## How New CLI Mode Works
|
|
189
|
+
|
|
190
|
+
1. **Main Chat** processes `/cfn-loop-cli` command
|
|
191
|
+
2. **Main Chat** spawns CLI agent directly with provider routing
|
|
192
|
+
3. **CLI Agent** executes task with specified AI provider
|
|
193
|
+
4. **CLI Agent** sends Redis completion signal when finished
|
|
194
|
+
5. **Main Chat** receives signal via Redis BLPOP and continues
|
|
195
|
+
6. **No complex orchestrator needed** - simple 2-layer coordination
|
|
196
|
+
|
|
197
|
+
## Agent Environment Variables
|
|
198
|
+
|
|
199
|
+
CLI agents automatically receive:
|
|
200
|
+
- `TASK_ID`: Unique task identifier
|
|
201
|
+
- `MODE`: Quality mode (mvp/standard/enterprise)
|
|
202
|
+
- `PROVIDER`: AI provider (zai/kimi/anthropic/openrouter)
|
|
203
|
+
- `MODEL`: Specific AI model
|
|
204
|
+
- `AGENT_ID`: Generated unique agent identifier
|
|
205
|
+
|
|
206
|
+
## Redis Signal Format
|
|
207
|
+
|
|
208
|
+
CLI agents send completion signals in this format:
|
|
209
|
+
```json
|
|
210
|
+
{
|
|
211
|
+
"agentId": "agent-backend-dev-12345",
|
|
212
|
+
"taskId": "cfn-cli-67890",
|
|
213
|
+
"status": "completed",
|
|
214
|
+
"timestamp": "2025-11-22T12:00:00.000Z",
|
|
215
|
+
"provider": "kimi",
|
|
216
|
+
"model": "moonshot-v1-8k",
|
|
217
|
+
"confidence": 0.90,
|
|
218
|
+
"metadata": {
|
|
219
|
+
"iteration": 1,
|
|
220
|
+
"mode": "standard"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
This simplified architecture provides:
|
|
226
|
+
- ✅ **Direct coordination** - Main Chat to CLI agents
|
|
227
|
+
- ✅ **Provider flexibility** - Different AI providers per agent
|
|
228
|
+
- ✅ **Cost optimization** - Use appropriate providers for each task
|
|
229
|
+
- ✅ **Reliable signaling** - Redis BLPOP for coordination
|
|
230
|
+
- ✅ **Simple architecture** - No complex orchestrator needed
|