workflow.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "description": "全自动开发闭环工作流 Agent - 基于状态机+Hook驱动五步Agent(规格/计划/实施/验证/总控)",
  3. "allowedTools": ["fs_read"],
  4. "toolsSettings": {
  5. "fs_read": {
  6. "allowedPaths": ["./**"]
  7. },
  8. "fs_write": {
  9. "allowedPaths": [
  10. "./workflow_engine/**",
  11. "./artifacts/**"
  12. ]
  13. },
  14. "execute_bash": {
  15. "allowedCommands": [
  16. "python3 workflow_engine/runner.py.*",
  17. "cat workflow_engine/state/.*"
  18. ],
  19. "autoAllowReadonly": true
  20. }
  21. },
  22. "hooks": [
  23. {
  24. "event": "agentSpawn",
  25. "command": "cat workflow_engine/state/current_step.json 2>/dev/null || echo '{\"status\":\"idle\"}'",
  26. "timeout_ms": 3000
  27. },
  28. {
  29. "event": "stop",
  30. "command": "python3 workflow_engine/runner.py status 2>/dev/null || true",
  31. "timeout_ms": 5000
  32. }
  33. ],
  34. "resources": [
  35. "file://README.md",
  36. "file://workflow_engine/README.md",
  37. "file://step1_需求输入.jsonl",
  38. "file://step2_执行计划.jsonl",
  39. "file://step3_实施变更.jsonl",
  40. "file://step4_验证发布.jsonl",
  41. "file://step5_总控与循环.jsonl"
  42. ]
  43. }