@howlil/ez-agents 3.4.2 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/README.md +735 -462
  2. package/agents/ez-architect-agent.md +267 -0
  3. package/agents/ez-backend-agent.md +303 -0
  4. package/agents/ez-chief-strategist.md +271 -0
  5. package/agents/ez-codebase-mapper.md +770 -770
  6. package/agents/ez-context-manager.md +319 -0
  7. package/agents/ez-debugger.md +1255 -1255
  8. package/agents/ez-design-expert.md +347 -0
  9. package/agents/ez-devops-agent.md +331 -0
  10. package/agents/ez-executor.md +487 -487
  11. package/agents/ez-frontend-agent.md +322 -0
  12. package/agents/ez-phase-researcher.md +553 -553
  13. package/agents/ez-planner.md +1307 -1307
  14. package/agents/ez-product-engineer.md +435 -0
  15. package/agents/ez-project-researcher.md +629 -629
  16. package/agents/ez-qa-agent.md +320 -0
  17. package/agents/ez-release-agent.md +333 -0
  18. package/agents/ez-requirements-agent.md +377 -0
  19. package/agents/ez-roadmapper.md +650 -650
  20. package/agents/ez-technical-writer.md +551 -0
  21. package/agents/ez-ux-expert.md +393 -0
  22. package/agents/ez-verifier.md +579 -579
  23. package/bin/guards/autonomy-guard.cjs +346 -0
  24. package/bin/guards/context-budget-guard.cjs +278 -0
  25. package/bin/guards/hallucination-guard.cjs +380 -0
  26. package/bin/guards/hidden-state-guard.cjs +182 -0
  27. package/bin/guards/team-overhead-guard.cjs +266 -0
  28. package/bin/guards/tool-sprawl-guard.cjs +271 -0
  29. package/bin/install.js +3221 -3272
  30. package/bin/lib/analytics/analytics-collector.cjs +86 -0
  31. package/bin/lib/analytics/analytics-reporter.cjs +130 -0
  32. package/bin/lib/analytics/cohort-analyzer.cjs +138 -0
  33. package/bin/lib/analytics/funnel-analyzer.cjs +147 -0
  34. package/bin/lib/analytics/nps-tracker.cjs +147 -0
  35. package/bin/lib/archetype-detector.cjs +289 -0
  36. package/bin/lib/assistant-adapter.cjs +361 -0
  37. package/bin/lib/audit-exec.cjs +175 -0
  38. package/bin/lib/auth.cjs +176 -0
  39. package/bin/lib/backup-service.cjs +422 -0
  40. package/bin/lib/bdd-validator.cjs +622 -0
  41. package/bin/lib/business-flow-mapper.cjs +429 -0
  42. package/bin/lib/circuit-breaker.cjs +276 -0
  43. package/bin/lib/code-complexity-analyzer.cjs +360 -0
  44. package/bin/lib/codebase-analyzer.cjs +241 -0
  45. package/bin/lib/commands.cjs +691 -0
  46. package/bin/lib/config.cjs +236 -0
  47. package/bin/lib/constraint-extractor.cjs +526 -0
  48. package/bin/lib/content-scanner.cjs +238 -0
  49. package/bin/lib/context-cache.cjs +154 -0
  50. package/bin/lib/context-compressor.cjs +102 -0
  51. package/bin/lib/context-deduplicator.cjs +105 -0
  52. package/bin/lib/context-errors.cjs +78 -0
  53. package/bin/lib/context-manager.cjs +338 -0
  54. package/bin/lib/context-metadata-tracker.cjs +140 -0
  55. package/bin/lib/context-relevance-scorer.cjs +99 -0
  56. package/bin/lib/core.cjs +507 -0
  57. package/bin/lib/cost-alerts.cjs +174 -0
  58. package/bin/lib/cost-tracker.cjs +275 -0
  59. package/bin/lib/crash-recovery.cjs +220 -0
  60. package/bin/lib/dependency-graph.cjs +319 -0
  61. package/bin/lib/deploy/deploy-audit-log.cjs +76 -0
  62. package/bin/lib/deploy/deploy-detector.cjs +69 -0
  63. package/bin/lib/deploy/deploy-env-manager.cjs +109 -0
  64. package/bin/lib/deploy/deploy-health-check.cjs +88 -0
  65. package/bin/lib/deploy/deploy-pre-flight.cjs +57 -0
  66. package/bin/lib/deploy/deploy-rollback.cjs +72 -0
  67. package/bin/lib/deploy/deploy-runner.cjs +97 -0
  68. package/bin/lib/deploy/deploy-status.cjs +74 -0
  69. package/bin/lib/discussion-synthesizer.cjs +439 -0
  70. package/bin/lib/error-cache.cjs +114 -0
  71. package/bin/lib/error-registry.cjs +177 -0
  72. package/bin/lib/file-access.cjs +207 -0
  73. package/bin/lib/file-lock.cjs +236 -0
  74. package/bin/lib/finops/budget-enforcer.cjs +126 -0
  75. package/bin/lib/finops/cost-reporter.cjs +132 -0
  76. package/bin/lib/finops/finops-analyzer.cjs +112 -0
  77. package/bin/lib/finops/spot-manager.cjs +118 -0
  78. package/bin/lib/framework-detector.cjs +396 -0
  79. package/bin/lib/frontmatter.cjs +313 -0
  80. package/bin/lib/fs-utils.cjs +153 -0
  81. package/bin/lib/gate-executor.cjs +272 -0
  82. package/bin/lib/gates/README.md +374 -0
  83. package/bin/lib/gates/gate-01-requirement.cjs +303 -0
  84. package/bin/lib/gates/gate-02-architecture.cjs +555 -0
  85. package/bin/lib/gates/gate-03-code.cjs +635 -0
  86. package/bin/lib/gates/gate-04-security.cjs +829 -0
  87. package/bin/lib/git-errors.cjs +83 -0
  88. package/bin/lib/git-utils.cjs +321 -0
  89. package/bin/lib/git-workflow-engine.cjs +1157 -0
  90. package/bin/lib/health-check.cjs +227 -0
  91. package/bin/lib/index.cjs +279 -0
  92. package/bin/lib/init.cjs +725 -0
  93. package/bin/lib/lock-logger.cjs +194 -0
  94. package/bin/lib/lock-state.cjs +263 -0
  95. package/bin/lib/lockfile-validator.cjs +227 -0
  96. package/bin/lib/log-rotation.cjs +71 -0
  97. package/bin/lib/logger.cjs +125 -0
  98. package/bin/lib/memory-compression.cjs +256 -0
  99. package/bin/lib/milestone.cjs +247 -0
  100. package/bin/lib/model-provider.cjs +241 -0
  101. package/bin/lib/package-manager-detector.cjs +203 -0
  102. package/bin/lib/package-manager-executor.cjs +385 -0
  103. package/bin/lib/package-manager-service.cjs +216 -0
  104. package/bin/lib/perf/api-monitor.cjs +88 -0
  105. package/bin/lib/perf/db-optimizer.cjs +78 -0
  106. package/bin/lib/perf/frontend-performance.cjs +56 -0
  107. package/bin/lib/perf/perf-analyzer.cjs +77 -0
  108. package/bin/lib/perf/perf-baseline.cjs +102 -0
  109. package/bin/lib/perf/perf-reporter.cjs +117 -0
  110. package/bin/lib/perf/regression-detector.cjs +92 -0
  111. package/bin/lib/phase.cjs +963 -0
  112. package/bin/lib/planning-write.cjs +123 -0
  113. package/bin/lib/project-reporter.cjs +565 -0
  114. package/bin/lib/quality-gate.cjs +332 -0
  115. package/bin/lib/quality-metrics.cjs +324 -0
  116. package/bin/lib/recovery-manager.cjs +98 -0
  117. package/bin/lib/release-validator.cjs +617 -0
  118. package/bin/lib/retry.cjs +119 -0
  119. package/bin/lib/roadmap.cjs +309 -0
  120. package/bin/lib/safe-exec.cjs +173 -0
  121. package/bin/lib/safe-path.cjs +130 -0
  122. package/bin/lib/security-errors.cjs +62 -0
  123. package/bin/lib/session-chain.cjs +304 -0
  124. package/bin/lib/session-errors.cjs +81 -0
  125. package/bin/lib/session-export.cjs +251 -0
  126. package/bin/lib/session-import.cjs +262 -0
  127. package/bin/lib/session-manager.cjs +280 -0
  128. package/bin/lib/skill-context.cjs +148 -0
  129. package/bin/lib/skill-matcher.cjs +236 -0
  130. package/bin/lib/skill-registry.cjs +360 -0
  131. package/bin/lib/skill-resolver.cjs +449 -0
  132. package/bin/lib/skill-triggers.cjs +90 -0
  133. package/bin/lib/skill-validator.cjs +270 -0
  134. package/bin/lib/skill-versioning.cjs +355 -0
  135. package/bin/lib/stack-detector.cjs +399 -0
  136. package/bin/lib/state.cjs +736 -0
  137. package/bin/lib/tech-debt-analyzer.cjs +309 -0
  138. package/bin/lib/temp-file.cjs +239 -0
  139. package/bin/lib/template.cjs +223 -0
  140. package/bin/lib/test-file-lock.cjs +112 -0
  141. package/bin/lib/test-graceful.cjs +93 -0
  142. package/bin/lib/test-logger.cjs +60 -0
  143. package/bin/lib/test-safe-exec.cjs +38 -0
  144. package/bin/lib/test-safe-path.cjs +33 -0
  145. package/bin/lib/test-temp-file.cjs +125 -0
  146. package/bin/lib/tier-manager.cjs +428 -0
  147. package/bin/lib/timeout-exec.cjs +63 -0
  148. package/bin/lib/tradeoff-analyzer.cjs +284 -0
  149. package/bin/lib/url-fetch.cjs +170 -0
  150. package/bin/lib/verify.cjs +863 -0
  151. package/bin/update.js +217 -214
  152. package/commands/deploy.cjs +53 -0
  153. package/commands/ez/add-tests.md +41 -41
  154. package/commands/ez/audit-milestone.md +36 -36
  155. package/commands/ez/complete-milestone.md +136 -136
  156. package/commands/ez/discuss-phase.md +90 -90
  157. package/commands/ez/execute-phase.md +52 -41
  158. package/commands/ez/help.md +22 -22
  159. package/commands/ez/map-codebase.md +71 -71
  160. package/commands/ez/new-milestone.md +44 -44
  161. package/commands/ez/new-project.md +51 -42
  162. package/commands/ez/plan-phase.md +53 -45
  163. package/commands/ez/progress.md +36 -24
  164. package/commands/ez/quick.md +45 -45
  165. package/commands/ez/resume-work.md +40 -40
  166. package/commands/ez/run-phase.md +580 -0
  167. package/commands/ez/settings.md +36 -36
  168. package/commands/ez/update.md +37 -37
  169. package/commands/ez/verify-work.md +402 -38
  170. package/commands/health-check.cjs +44 -0
  171. package/commands/rollback.cjs +47 -0
  172. package/ez-agents/bin/ez-tools.cjs +1692 -716
  173. package/ez-agents/bin/guards/autonomy-guard.cjs +346 -0
  174. package/ez-agents/bin/guards/context-budget-guard.cjs +247 -0
  175. package/ez-agents/bin/guards/hallucination-guard.cjs +271 -0
  176. package/ez-agents/bin/guards/hidden-state-guard.cjs +182 -0
  177. package/ez-agents/bin/guards/team-overhead-guard.cjs +266 -0
  178. package/ez-agents/bin/guards/tool-sprawl-guard.cjs +271 -0
  179. package/ez-agents/bin/lib/analytics/analytics-collector.cjs +86 -0
  180. package/ez-agents/bin/lib/analytics/analytics-reporter.cjs +130 -0
  181. package/ez-agents/bin/lib/analytics/cohort-analyzer.cjs +138 -0
  182. package/ez-agents/bin/lib/analytics/funnel-analyzer.cjs +147 -0
  183. package/ez-agents/bin/lib/analytics/nps-tracker.cjs +147 -0
  184. package/ez-agents/bin/lib/archetype-detector.cjs +289 -0
  185. package/ez-agents/bin/lib/audit-exec.cjs +166 -167
  186. package/ez-agents/bin/lib/auth.cjs +176 -176
  187. package/ez-agents/bin/lib/backup-service.cjs +422 -0
  188. package/ez-agents/bin/lib/bdd-validator.cjs +622 -0
  189. package/ez-agents/bin/lib/business-flow-mapper.cjs +429 -0
  190. package/ez-agents/bin/lib/code-complexity-analyzer.cjs +360 -0
  191. package/ez-agents/bin/lib/codebase-analyzer.cjs +241 -0
  192. package/ez-agents/bin/lib/commands.cjs +685 -685
  193. package/ez-agents/bin/lib/config.cjs +41 -1
  194. package/ez-agents/bin/lib/constraint-extractor.cjs +526 -0
  195. package/ez-agents/bin/lib/content-scanner.cjs +238 -0
  196. package/ez-agents/bin/lib/context-cache.cjs +154 -0
  197. package/ez-agents/bin/lib/context-errors.cjs +71 -0
  198. package/ez-agents/bin/lib/context-manager.cjs +220 -0
  199. package/ez-agents/bin/lib/core.cjs +507 -512
  200. package/ez-agents/bin/lib/cost-tracker.cjs +243 -0
  201. package/ez-agents/bin/lib/crash-recovery.cjs +172 -0
  202. package/ez-agents/bin/lib/dependency-graph.cjs +319 -0
  203. package/ez-agents/bin/lib/deploy/deploy-audit-log.cjs +76 -0
  204. package/ez-agents/bin/lib/deploy/deploy-detector.cjs +69 -0
  205. package/ez-agents/bin/lib/deploy/deploy-env-manager.cjs +109 -0
  206. package/ez-agents/bin/lib/deploy/deploy-health-check.cjs +88 -0
  207. package/ez-agents/bin/lib/deploy/deploy-pre-flight.cjs +57 -0
  208. package/ez-agents/bin/lib/deploy/deploy-rollback.cjs +72 -0
  209. package/ez-agents/bin/lib/deploy/deploy-runner.cjs +97 -0
  210. package/ez-agents/bin/lib/deploy/deploy-status.cjs +74 -0
  211. package/ez-agents/bin/lib/discussion-synthesizer.cjs +458 -0
  212. package/ez-agents/bin/lib/file-access.cjs +207 -0
  213. package/ez-agents/bin/lib/finops/budget-enforcer.cjs +126 -0
  214. package/ez-agents/bin/lib/finops/cost-reporter.cjs +132 -0
  215. package/ez-agents/bin/lib/finops/finops-analyzer.cjs +112 -0
  216. package/ez-agents/bin/lib/finops/spot-manager.cjs +118 -0
  217. package/ez-agents/bin/lib/framework-detector.cjs +396 -0
  218. package/ez-agents/bin/lib/frontmatter.cjs +3 -1
  219. package/ez-agents/bin/lib/gates/README.md +374 -0
  220. package/ez-agents/bin/lib/gates/gate-01-requirement.cjs +303 -0
  221. package/ez-agents/bin/lib/gates/gate-02-architecture.cjs +555 -0
  222. package/ez-agents/bin/lib/gates/gate-03-code.cjs +635 -0
  223. package/ez-agents/bin/lib/gates/gate-04-security.cjs +829 -0
  224. package/ez-agents/bin/lib/git-errors.cjs +83 -0
  225. package/ez-agents/bin/lib/git-utils.cjs +118 -0
  226. package/ez-agents/bin/lib/git-workflow-engine.cjs +1157 -0
  227. package/ez-agents/bin/lib/health-check.cjs +162 -162
  228. package/ez-agents/bin/lib/index.cjs +40 -2
  229. package/ez-agents/bin/lib/init.cjs +0 -2
  230. package/ez-agents/bin/lib/lockfile-validator.cjs +227 -0
  231. package/ez-agents/bin/lib/log-rotation.cjs +71 -0
  232. package/ez-agents/bin/lib/logger.cjs +99 -154
  233. package/ez-agents/bin/lib/memory-compression.cjs +256 -0
  234. package/ez-agents/bin/lib/package-manager-detector.cjs +203 -0
  235. package/ez-agents/bin/lib/package-manager-executor.cjs +385 -0
  236. package/ez-agents/bin/lib/package-manager-service.cjs +216 -0
  237. package/ez-agents/bin/lib/perf/api-monitor.cjs +88 -0
  238. package/ez-agents/bin/lib/perf/db-optimizer.cjs +78 -0
  239. package/ez-agents/bin/lib/perf/frontend-performance.cjs +56 -0
  240. package/ez-agents/bin/lib/perf/perf-analyzer.cjs +77 -0
  241. package/ez-agents/bin/lib/perf/perf-baseline.cjs +102 -0
  242. package/ez-agents/bin/lib/perf/perf-reporter.cjs +117 -0
  243. package/ez-agents/bin/lib/perf/regression-detector.cjs +92 -0
  244. package/ez-agents/bin/lib/project-reporter.cjs +502 -0
  245. package/ez-agents/bin/lib/quality-gate.cjs +332 -0
  246. package/ez-agents/bin/lib/recovery-manager.cjs +98 -0
  247. package/ez-agents/bin/lib/release-validator.cjs +617 -0
  248. package/ez-agents/bin/lib/safe-exec.cjs +128 -214
  249. package/ez-agents/bin/lib/security-errors.cjs +62 -0
  250. package/ez-agents/bin/lib/session-chain.cjs +304 -0
  251. package/ez-agents/bin/lib/session-errors.cjs +81 -0
  252. package/ez-agents/bin/lib/session-export.cjs +251 -0
  253. package/ez-agents/bin/lib/session-import.cjs +262 -0
  254. package/ez-agents/bin/lib/session-manager.cjs +280 -0
  255. package/ez-agents/bin/lib/skill-context.cjs +148 -0
  256. package/ez-agents/bin/lib/skill-matcher.cjs +236 -0
  257. package/ez-agents/bin/lib/skill-registry.cjs +341 -0
  258. package/ez-agents/bin/lib/skill-resolver.cjs +449 -0
  259. package/ez-agents/bin/lib/skill-triggers.cjs +90 -0
  260. package/ez-agents/bin/lib/skill-validator.cjs +270 -0
  261. package/ez-agents/bin/lib/skill-versioning.cjs +355 -0
  262. package/ez-agents/bin/lib/stack-detector.cjs +399 -0
  263. package/ez-agents/bin/lib/tech-debt-analyzer.cjs +309 -0
  264. package/ez-agents/bin/lib/tier-manager.cjs +428 -0
  265. package/ez-agents/bin/lib/tradeoff-analyzer.cjs +284 -0
  266. package/ez-agents/bin/lib/url-fetch.cjs +170 -0
  267. package/ez-agents/bin/lib/verify.cjs +863 -863
  268. package/ez-agents/references/decimal-phase-calculation.md +65 -65
  269. package/ez-agents/references/git-integration.md +248 -248
  270. package/ez-agents/references/git-planning-commit.md +38 -38
  271. package/ez-agents/references/metrics-schema.md +118 -0
  272. package/ez-agents/references/model-profile-resolution.md +34 -34
  273. package/ez-agents/references/model-profiles.md +93 -93
  274. package/ez-agents/references/phase-argument-parsing.md +61 -61
  275. package/ez-agents/references/planning-config.md +340 -200
  276. package/ez-agents/references/tier-strategy.md +103 -0
  277. package/ez-agents/references/ui-brand.md +160 -160
  278. package/ez-agents/references/verification-patterns.md +612 -612
  279. package/ez-agents/templates/DEBUG.md +164 -164
  280. package/ez-agents/templates/UAT.md +247 -247
  281. package/ez-agents/templates/agent-output-format.md +404 -0
  282. package/ez-agents/templates/bdd-feature.md +173 -0
  283. package/ez-agents/templates/codebase/architecture.md +255 -255
  284. package/ez-agents/templates/codebase/structure.md +285 -285
  285. package/ez-agents/templates/copilot-instructions.md +7 -7
  286. package/ez-agents/templates/debug-subagent-prompt.md +91 -91
  287. package/ez-agents/templates/discovery.md +146 -146
  288. package/ez-agents/templates/discussion.md +68 -0
  289. package/ez-agents/templates/handoff-protocol.md +294 -0
  290. package/ez-agents/templates/incident-runbook.md +205 -0
  291. package/ez-agents/templates/mode-workflow-templates.md +301 -0
  292. package/ez-agents/templates/phase-prompt.md +610 -610
  293. package/ez-agents/templates/planner-subagent-prompt.md +117 -117
  294. package/ez-agents/templates/project.md +184 -184
  295. package/ez-agents/templates/release-checklist.md +136 -0
  296. package/ez-agents/templates/research.md +552 -552
  297. package/ez-agents/templates/rollback-plan.md +201 -0
  298. package/ez-agents/templates/security-user-setup.md +244 -0
  299. package/ez-agents/templates/skill-validation-rules.md +476 -0
  300. package/ez-agents/templates/state.md +180 -176
  301. package/ez-agents/templates/summary-complex.md +59 -59
  302. package/ez-agents/tests/gates/gate-01-02.test.cjs +812 -0
  303. package/ez-agents/tests/gates/gate-03-04.test.cjs +762 -0
  304. package/ez-agents/tests/gates/gate-05-validator.test.cjs +145 -0
  305. package/ez-agents/tests/gates/gate-06-docs-validator.test.cjs +244 -0
  306. package/ez-agents/tests/gates/gate-07-release-validator.test.cjs +219 -0
  307. package/ez-agents/tests/guards/context-budget-guard.test.cjs +145 -0
  308. package/ez-agents/tests/guards/edge-case-guards.test.cjs +238 -0
  309. package/ez-agents/tests/guards/hallucination-guard.test.cjs +124 -0
  310. package/ez-agents/workflows/audit-milestone.md +1 -1
  311. package/ez-agents/workflows/autonomous.md +131 -30
  312. package/ez-agents/workflows/complete-milestone.md +1 -1
  313. package/ez-agents/workflows/discuss-phase.md +1 -1
  314. package/ez-agents/workflows/execute-phase.md +169 -3
  315. package/ez-agents/workflows/help.md +86 -133
  316. package/ez-agents/workflows/hotfix.md +291 -0
  317. package/ez-agents/workflows/new-milestone.md +340 -11
  318. package/ez-agents/workflows/new-project.md +294 -318
  319. package/ez-agents/workflows/plan-phase.md +22 -40
  320. package/ez-agents/workflows/progress.md +15 -25
  321. package/ez-agents/workflows/release.md +253 -0
  322. package/ez-agents/workflows/resume-session.md +215 -0
  323. package/ez-agents/workflows/run-phase.md +531 -0
  324. package/ez-agents/workflows/settings.md +2 -35
  325. package/hooks/dist/ez-check-update.js +81 -81
  326. package/hooks/dist/ez-context-monitor.js +148 -141
  327. package/hooks/dist/ez-statusline.js +115 -115
  328. package/package.json +78 -64
  329. package/scripts/fix-qwen-installation.js +144 -144
  330. package/agents/ez-integration-checker.md +0 -443
  331. package/agents/ez-nyquist-auditor.md +0 -176
  332. package/agents/ez-plan-checker.md +0 -706
  333. package/agents/ez-research-synthesizer.md +0 -247
  334. package/agents/ez-ui-auditor.md +0 -439
  335. package/agents/ez-ui-checker.md +0 -300
  336. package/agents/ez-ui-researcher.md +0 -353
  337. package/commands/ez/add-phase.md +0 -43
  338. package/commands/ez/add-todo.md +0 -47
  339. package/commands/ez/auth.md +0 -87
  340. package/commands/ez/autonomous.md +0 -41
  341. package/commands/ez/check-todos.md +0 -45
  342. package/commands/ez/cleanup.md +0 -18
  343. package/commands/ez/debug.md +0 -168
  344. package/commands/ez/health.md +0 -22
  345. package/commands/ez/insert-phase.md +0 -32
  346. package/commands/ez/join-discord.md +0 -18
  347. package/commands/ez/list-phase-assumptions.md +0 -46
  348. package/commands/ez/pause-work.md +0 -38
  349. package/commands/ez/plan-milestone-gaps.md +0 -34
  350. package/commands/ez/reapply-patches.md +0 -124
  351. package/commands/ez/remove-phase.md +0 -31
  352. package/commands/ez/research-phase.md +0 -190
  353. package/commands/ez/set-profile.md +0 -34
  354. package/commands/ez/stats.md +0 -18
  355. package/commands/ez/ui-phase.md +0 -34
  356. package/commands/ez/ui-review.md +0 -32
  357. package/commands/ez/validate-phase.md +0 -35
  358. package/ez-agents/templates/UI-SPEC.md +0 -100
  359. package/ez-agents/templates/VALIDATION.md +0 -76
  360. package/ez-agents/templates/context.md +0 -352
  361. package/ez-agents/templates/verification-report.md +0 -322
  362. package/ez-agents/workflows/research-phase.md +0 -74
  363. package/ez-agents/workflows/ui-phase.md +0 -290
  364. package/ez-agents/workflows/ui-review.md +0 -157
  365. package/ez-agents/workflows/validate-phase.md +0 -167
package/README.md CHANGED
@@ -1,462 +1,735 @@
1
- <div align="center">
2
-
3
- # EZ Agents
4
-
5
- **Turn AI coding assistants into reliable development teammates.**
6
-
7
- [![npm](https://img.shields.io/npm/v/@howlil/ez-agents?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@howlil/ez-agents)
8
- [![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)
9
- [![GitHub stars](https://img.shields.io/github/stars/howlil/ez-agents?style=for-the-badge&logo=github)](https://github.com/howlil/ez-agents/stargazers)
10
-
11
- ```bash
12
- npm i -g @howlil/ez-agents@latest
13
- ```
14
-
15
- **Works with:** Claude Code · OpenCode · Gemini CLI · Codex · Copilot · Qwen · Kimi
16
-
17
- [Quick Start](#quick-start) · [How It Works](#how-it-works) · [Commands](#commands) · [Setup](#setup) · [Docs](docs/)
18
-
19
- </div>
20
-
21
- ---
22
-
23
- > **What is this?** EZ Agents adds structure to AI coding. Instead of asking Claude to "build a login system" and hoping for the best, you get a repeatable workflow: plan it out, build it in pieces, verify it works. Every change is committed with context, so you (or your team) can pick up where the AI left off.
24
-
25
- ---
26
-
27
- ## Why EZ Agents Exists
28
-
29
- AI coding tools are great at writing code. But real development work needs more than that:
30
-
31
- - **Context gets lost** between sessions
32
- - **No one reviews** whether the code actually fits the plan
33
- - **Important decisions** about architecture happen implicitly
34
- - **Testing is an afterthought**
35
-
36
- EZ Agents fixes this by adding a lightweight orchestration layer. Think of it as a project manager for your AI assistants.
37
-
38
- ---
39
-
40
- ## Quick Start
41
-
42
- ### 1. Install
43
-
44
- ```bash
45
- npm i -g @howlil/ez-agents@latest
46
- ```
47
-
48
- ### 2. Setup for Your AI Tool
49
-
50
- ```bash
51
- # For Claude Code
52
- ez-agents --claude --global
53
-
54
- # For OpenCode
55
- ez-agents --opencode --global
56
-
57
- # For Gemini CLI
58
- ez-agents --gemini --global
59
-
60
- # See all options
61
- ez-agents --help
62
- ```
63
-
64
- ### 3. Start a Project
65
-
66
- ```bash
67
- # In your project directory
68
- /ez:new-project
69
- ```
70
-
71
- You'll answer a few questions about what you're building, then EZ Agents generates a roadmap. From there, you work through phases:
72
-
73
- ```bash
74
- /ez:discuss-phase 1 # Lock in how you want it built
75
- /ez:plan-phase 1 # Break it into specific tasks
76
- /ez:execute-phase 1 # Build it (one task per commit)
77
- /ez:verify-work 1 # Check it actually works
78
- ```
79
-
80
- ---
81
-
82
- ## How It Works
83
-
84
- ### The Workflow
85
-
86
- ```
87
- ┌─────────────────┐
88
- │ Start Project │
89
- │ /ez:new-project│
90
- └────────┬────────┘
91
-
92
-
93
- ┌─────────────────────────────────────────────────┐
94
- │ For Each Phase: │
95
- │ │
96
- │ 1. /ez:discuss-phase → Decide HOW to build │
97
- │ 2. /ez:plan-phase → Break into tasks │
98
- │ 3. /ez:execute-phase → Build (one commit/task)│
99
- │ 4. /ez:verify-work → Test it works │
100
- └─────────────────────────────────────────────────┘
101
-
102
-
103
- ┌─────────────────────────┐
104
- │ /ez:audit-milestone │
105
- │ /ez:complete-milestone │
106
- └─────────────────────────┘
107
- ```
108
-
109
- ### Parallel Execution with Git Commits
110
-
111
- Setiap task dijalankan secara paralel (jika tidak ada dependensi), dengan fresh context dan atomic commit:
112
-
113
- ```
114
- Phase 1: Foundation
115
-
116
- ├─ Wave 1 (Parallel) ───────────────────────────┐
117
- │ ┌─────────────────┐ ┌─────────────────┐ │
118
- │ Task 1.1: │ │ Task 1.2: │ │
119
- │ │ Database Schema │ │ Next.js Setup │ │
120
- │ │ │
121
- │ │ Fresh 200K ctx │ │ Fresh 200K ctx │ │
122
- │ │ ↓ │ │ ↓ │ │
123
- │ │ git commit │ │ git commit │ │
124
- │ │ "feat: schema" │ │ "feat: setup"
125
- └─────────────────┘ └─────────────────┘
126
- └────────────────────────────────────────────────┘
127
-
128
-
129
- ├─ Wave 2 (Depends on Wave 1) ──────────────────┐
130
- │ ┌─────────────────┐ │
131
- │ │ Task 1.3: │ │
132
- │ │ Auth Endpoints │ ← Needs schema + setup │
133
- │ │ │ │
134
- │ │ Fresh 200K ctx │ │
135
- │ │ ↓ │ │
136
- │ │ git commit │ │
137
- "feat: auth"
138
- └─────────────────┘
139
- └────────────────────────────────────────────────┘
140
- ```
141
-
142
- **Keuntungan:**
143
- - **Fresh context per task** — AI tidak kehilangan context karena window penuh
144
- - **Atomic commits** — Setiap commit = satu task, mudah di-revert jika ada masalah
145
- - **Parallel execution** Task independen jalan barengan, lebih cepat
146
- - **Clean git history** — Commit message deskriptif, jelas apa yang berubah
147
-
148
- ### What Makes It Different
149
-
150
- | Problem | Without EZ Agents | With EZ Agents |
151
- |---------|------------------|----------------|
152
- | **Lost context** | "What was I working on again?" | STATE.md tracks decisions, blockers, next steps |
153
- | **Vague plans** | "Build the API" | Specific tasks: "Create POST /users endpoint with validation" |
154
- | **No verification** | Code written, but does it work? | Each phase has explicit verification criteria |
155
- | **Messy git history** | "WIP", "fix", "asdf" | One commit per task, meaningful messages |
156
- | **Scope creep** | Features added ad-hoc | ROADMAP.md tracks what's in/out of scope |
157
-
158
- ---
159
-
160
- ## Features
161
-
162
- ### Core
163
-
164
- - **Multi-Model Support** — Use Qwen, Kimi, OpenAI, or Anthropic. Mix providers per task.
165
- - **Wave Execution** Independent tasks run in parallel; dependent tasks wait their turn
166
- - **Context Engineering** — PROJECT.md, STATE.md, SUMMARY.md preserve decisions across sessions
167
- - **Atomic Commits** — Each task gets its own commit with context about what changed and why
168
- - **Milestone Tracking** — Version releases with requirements audit and git tagging
169
-
170
- ### Built for Production
171
-
172
- - **Security** — Command injection prevention, path validation, audit logging
173
- - **Cross-Platform** — Pure JavaScript. Works on Windows, macOS, Linux (no Unix dependencies)
174
- - **Error Handling** — Retry logic with backoff, circuit breaker for failing operations
175
- - **Git Safety** Atomic commits, branch automation, merge strategies
176
-
177
- ### For Existing Codebases
178
-
179
- ```bash
180
- # Analyze what you have
181
- /ez:map-codebase
182
-
183
- # Then plan what to add
184
- /ez:new-project
185
- ```
186
-
187
- Parallel agents analyze your stack, architecture, conventions, and pain points. The output: structured docs that inform the roadmap.
188
-
189
- ---
190
-
191
- ## Commands
192
-
193
- ### Starting Out
194
-
195
- | Command | What It Does |
196
- |---------|-------------|
197
- | `/ez:new-project` | Initialize: answer questions, get research, requirements, and roadmap |
198
- | `/ez:map-codebase` | Analyze existing codebase (before `/ez:new-project`) |
199
- | `/ez:quick` | Small task without full phase workflow (bug fixes, config changes) |
200
-
201
- ### Phase Workflow
202
-
203
- | Command | What It Does |
204
- |---------|-------------|
205
- | `/ez:discuss-phase [N]` | Clarify implementation approach before planning |
206
- | `/ez:plan-phase [N]` | Research domain, create task breakdown, define verification |
207
- | `/ez:execute-phase [N]` | Build the plan (parallel waves, one commit per task) |
208
- | `/ez:verify-work [N]` | Manual testing with auto-diagnosis of failures |
209
-
210
- ### Managing Scope
211
-
212
- | Command | What It Does |
213
- |---------|-------------|
214
- | `/ez:add-phase` | Append new phase to roadmap |
215
- | `/ez:insert-phase [N]` | Insert urgent work between existing phases |
216
- | `/ez:remove-phase [N]` | Remove a phase and renumber |
217
- | `/ez:progress` | See where you are and what's next |
218
-
219
- ### Wrapping Up
220
-
221
- | Command | What It Does |
222
- |---------|-------------|
223
- | `/ez:audit-milestone` | Verify all requirements are met |
224
- | `/ez:complete-milestone` | Archive milestone, create git tag |
225
- | `/ez:new-milestone` | Start next version cycle |
226
-
227
- ### Utilities
228
-
229
- | Command | What It Does |
230
- |---------|-------------|
231
- | `/ez:resume-work` | Restore context from last session |
232
- | `/ez:settings` | Configure workflow, model profile, git strategy |
233
- | `/ez:update` | Update EZ Agents (with changelog preview) |
234
- | `/ez:help` | Show all commands |
235
-
236
- ---
237
-
238
- ## Setup
239
-
240
- ### Prerequisites
241
-
242
- - Node.js >= 16.7.0
243
- - One of: Claude Code, OpenCode, Gemini CLI, Codex, Copilot, Qwen Code, Kimi Code
244
-
245
- ### Installation
246
-
247
- ```bash
248
- npm i -g @howlil/ez-agents@latest
249
- ez-agents --claude --global
250
- ```
251
-
252
- ### Updating
253
-
254
- ```bash
255
- npm update -g @howlil/ez-agents
256
- ```
257
-
258
- **Development Install** (for contributing)
259
-
260
- ```bash
261
- git clone https://github.com/howlil/ez-agents.git
262
- cd ez-agents
263
- npm install -g .
264
- ez-agents --claude --local
265
- ```
266
-
267
- ---
268
-
269
- ## Configuration
270
-
271
- EZ Agents stores settings in `.planning/config.json`. You configure this during `/ez:new-project` or adjust later with `/ez:settings`.
272
-
273
- ### Key Settings
274
-
275
- | Setting | Options | Default | What It Does |
276
- |---------|---------|---------|-------------|
277
- | `mode` | `interactive`, `yolo` | `interactive` | `yolo` skips confirmation prompts |
278
- | `model_profile` | `quality`, `balanced`, `budget` | `balanced` | Controls which model tier each agent uses |
279
- | `granularity` | `coarse`, `standard`, `fine` | `standard` | How many phases (3-5, 5-8, or 8-12) |
280
-
281
- ### Model Profiles
282
-
283
- | Agent | `quality` | `balanced` | `budget` |
284
- |-------|-----------|------------|----------|
285
- | Planner | Opus | Opus | Sonnet |
286
- | Executor | Opus | Sonnet | Sonnet |
287
- | Researcher | Opus | Sonnet | Haiku |
288
- | Verifier | Sonnet | Sonnet | Haiku |
289
-
290
- **When to use each:**
291
- - **quality** — Critical work, complex decisions, you have quota
292
- - **balanced** Day-to-day development (the default for a reason)
293
- - **budget** — High-volume work, familiar domains, prototyping
294
-
295
- ### Multi-Provider Setup
296
-
297
- Different providers for different tasks:
298
-
299
- ```json
300
- {
301
- "provider": {
302
- "default": "alibaba",
303
- "anthropic": {
304
- "api_key": "env:ANTHROPIC_API_KEY"
305
- },
306
- "alibaba": {
307
- "api_key": "env:DASHSCOPE_API_KEY"
308
- }
309
- },
310
- "agent_overrides": {
311
- "ez-planner": { "provider": "alibaba", "model": "qwen-max" },
312
- "ez-executor": { "provider": "anthropic", "model": "sonnet" }
313
- }
314
- }
315
- ```
316
-
317
- ---
318
-
319
- ## Project Structure
320
-
321
- After running `/ez:new-project`, you'll have:
322
-
323
- ```
324
- .planning/
325
- PROJECT.md # What you're building and why
326
- REQUIREMENTS.md # Scoped requirements with IDs
327
- ROADMAP.md # Phase breakdown with status
328
- STATE.md # Current decisions, blockers, next steps
329
- config.json # Your configuration
330
- phases/
331
- 01-phase-name/
332
- 01-01-PLAN.md # Tasks to execute
333
- 01-01-SUMMARY.md # What was built and why
334
- CONTEXT.md # Your implementation preferences
335
- RESEARCH.md # Domain research
336
- VERIFICATION.md # Test results
337
- ```
338
-
339
- **Note:** You can add `.planning/` to `.gitignore` if you don't want planning docs in your repo. Set `commit_docs: false` in `/ez:settings`.
340
-
341
- ---
342
-
343
- ## Example: Building a Task App
344
-
345
- Let's say you want to build "a task management app with team collaboration."
346
-
347
- ### 1. Initialize
348
-
349
- ```bash
350
- /ez:new-project
351
- ```
352
-
353
- You answer questions:
354
- - Tech stack? "Next.js + PostgreSQL"
355
- - Auth method? → "Email + OAuth (Google, GitHub)"
356
- - First milestone? → "MVP: user accounts, create/edit tasks, share with team"
357
-
358
- EZ Agents generates research, requirements, and a roadmap with ~6 phases.
359
-
360
- ### 2. Phase 1: Foundation
361
-
362
- ```bash
363
- /ez:discuss-phase 1
364
- ```
365
-
366
- You clarify: "Use Next.js App Router, Prisma for DB, next-auth for OAuth."
367
-
368
- ```bash
369
- /ez:plan-phase 1
370
- ```
371
-
372
- Research runs (auth patterns, Prisma schema design). Plan is created:
373
- - Task 1: Database schema (users, tasks, teams)
374
- - Task 2: Next.js setup with next-auth
375
- - Task 3: User model and auth endpoints
376
-
377
- ```bash
378
- /ez:execute-phase 1
379
- ```
380
-
381
- Three tasks, three commits. Each task gets fresh context.
382
-
383
- ```bash
384
- /ez:verify-work 1
385
- ```
386
-
387
- You test: Can register? Can login? Can connect to DB? All pass.
388
-
389
- ### 3. Repeat for Each Phase
390
-
391
- ```bash
392
- /ez:discuss-phase 2
393
- /ez:plan-phase 2
394
- /ez:execute-phase 2
395
- /ez:verify-work 2
396
- ```
397
-
398
- ### 4. Complete Milestone
399
-
400
- ```bash
401
- /ez:audit-milestone # Checks all requirements are met
402
- /ez:complete-milestone # Archives, tags v1.0
403
- ```
404
-
405
- ---
406
-
407
- ## Documentation
408
-
409
- | Doc | What's Inside |
410
- |-----|---------------|
411
- | [User Guide](docs/USER-GUIDE.md) | Full command reference, workflows, troubleshooting |
412
- | [Workflows](docs/WORKFLOWS.md) | Complete workflow diagrams for all use cases |
413
- | [Provider Behaviors](docs/PROVIDER-BEHAVIORS.md) | Differences between Claude, OpenCode, Gemini, etc. |
414
- | [Qwen Code Install](docs/QWEN-CODE-INSTALL.md) | Fix for Qwen Code CLI installation issues |
415
-
416
- ---
417
-
418
- ## Contributing
419
-
420
- Contributions welcome! A few guidelines:
421
-
422
- 1. **Test your changes** — Run `npm test` before submitting
423
- 2. **Keep it cross-platform** No Unix-specific commands (use `fs-utils.cjs`)
424
- 3. **Document behavior** — Update USER-GUIDE.md for new commands
425
- 4. **Respect the workflow** EZ Agents is about structure; don't break existing patterns
426
-
427
- ### Development Setup
428
-
429
- ```bash
430
- git clone https://github.com/howlil/ez-agents.git
431
- cd ez-agents
432
- npm install
433
- npm run build:hooks
434
- npm link
435
- ```
436
-
437
- ### Running Tests
438
-
439
- ```bash
440
- npm test # Run all tests
441
- npm run test:coverage # With coverage report
442
- ```
443
-
444
- ---
445
-
446
- ## Acknowledgments
447
-
448
- EZ Agents is a fork of the original project by [TÂCHES](https://github.com/glittercowboy). This fork adds multi-model support (Qwen, Kimi, OpenAI), enterprise-grade security, and cross-platform reliability. Not affiliated with the upstream repository.
449
-
450
- ---
451
-
452
- ## License
453
-
454
- MIT see [LICENSE](LICENSE)
455
-
456
- ---
457
-
458
- ## Getting Help
459
-
460
- - **Issues:** [GitHub Issues](https://github.com/howlil/ez-agents/issues)
461
- - **Discussions:** [GitHub Discussions](https://github.com/howlil/ez-agents/discussions)
462
- - **npm:** [@howlil/ez-agents](https://www.npmjs.com/package/@howlil/ez-agents)
1
+ <div align="center">
2
+
3
+ # EZ Agents
4
+
5
+ **Build any app from MVP to enterprise — with coordinated AI agents.**
6
+
7
+ [![CI Pipeline](https://github.com/howlil/ez-agents/actions/workflows/ci.yml/badge.svg)](https://github.com/howlil/ez-agents/actions/workflows/ci.yml)
8
+ [![Tests](https://github.com/howlil/ez-agents/actions/workflows/test.yml/badge.svg)](https://github.com/howlil/ez-agents/actions/workflows/test.yml)
9
+ [![CodeQL](https://github.com/howlil/ez-agents/actions/workflows/codeql.yml/badge.svg)](https://github.com/howlil/ez-agents/actions/workflows/codeql.yml)
10
+ [![npm](https://img.shields.io/npm/v/@howlil/ez-agents?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@howlil/ez-agents)
11
+ [![npm](https://img.shields.io/npm/dm/@howlil/ez-agents.svg)](https://npmjs.com/package/@howlil/ez-agents)
12
+ [![License](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)
13
+ [![GitHub stars](https://img.shields.io/github/stars/howlil/ez-agents?style=for-the-badge&logo=github)](https://github.com/howlil/ez-agents/stargazers)
14
+
15
+ ```bash
16
+ npm i -g @howlil/ez-agents@latest
17
+ ```
18
+
19
+ **Works with:** Claude Code · OpenCode · Gemini CLI · Codex · Copilot · Qwen · Kimi
20
+
21
+ [Quick Start](#quick-start) · [Lean Workflow](#lean-agile-workflow-v360) · [Commands](#commands) · [Setup](#setup) · [Docs](docs/) · [Lean Guide](docs/LEAN-GUIDE.md)
22
+
23
+ </div>
24
+
25
+ ---
26
+
27
+ > **What is this?** EZ Agents is an AI App Builder. An Orchestrator (Chief Strategist) takes your project brief, decomposes it into a dependency-aware task graph, delegates work to Specialist Agents in parallel, enforces quality gates, and delivers implementation-ready output — code, tests, docs, and release artifacts. Works for new projects, existing codebases, rapid MVPs, and enterprise-scale products.
28
+
29
+ ---
30
+
31
+ ## Why EZ Agents Exists
32
+
33
+ AI agents are capable but capability without coordination produces chaos. Real software delivery requires:
34
+
35
+ - **Coordination** — agents need to share state and hand off work cleanly
36
+ - **Context discipline** decisions, contracts, and requirements must persist across sessions
37
+ - **Quality gates** — code that passes tests is not the same as code that ships safely
38
+ - **Structure without ceremony** — the right amount of process for the project size
39
+
40
+ EZ Agents provides a Chief Strategist Orchestrator that coordinates a pool of Specialist Agents through a 10-phase SDLC workflow — from intake to post-release loop. Stack-agnostic and requirement-driven.
41
+
42
+ ---
43
+
44
+ ## Quick Start
45
+
46
+ ### 1. Install
47
+
48
+ ```bash
49
+ npm i -g @howlil/ez-agents@latest
50
+ ```
51
+
52
+ ### 2. Setup for Your AI Tool
53
+
54
+ ```bash
55
+ # For Claude Code
56
+ ez-agents --claude --global
57
+
58
+ # For OpenCode
59
+ ez-agents --opencode --global
60
+
61
+ # For Gemini CLI
62
+ ez-agents --gemini --global
63
+
64
+ # See all options
65
+ ez-agents --help
66
+ ```
67
+
68
+ ### 3. Start a Project
69
+
70
+ ```bash
71
+ # In your project directory
72
+ /ez:new-project
73
+ ```
74
+
75
+ You'll answer a few questions about what you're building, then EZ Agents generates a roadmap. From there, use the **lean agile flow**:
76
+
77
+ ```bash
78
+ # ⚡ FAST PATH: Single command for all phases (recommended)
79
+ /ez:run-phase 1 # 35-55 min per phase
80
+ /ez:run-phase 1 --yolo # Fully autonomous, no pauses
81
+
82
+ # 🎯 MANUAL CONTROL: Per phase
83
+ /ez:discuss-phase 1 # Optional — clarify approach (15 min)
84
+ /ez:plan-phase 1 # Create task breakdown (20 min)
85
+ /ez:execute-phase 1 # Build (one task per commit) (30 min)
86
+ /ez:verify-work 1 # Test it works (10 min)
87
+ ```
88
+
89
+ ### 4. Complete Milestone
90
+
91
+ ```bash
92
+ /ez:audit-milestone # Verify all requirements met (10 min)
93
+ /ez:complete-milestone 1.0.0 # Archive and tag release (5 min)
94
+ ```
95
+
96
+ **Total time from idea to MVP: 2-3 days** 🚀
97
+
98
+ ---
99
+
100
+ ## How It Works
101
+
102
+ ### System Architecture
103
+
104
+ ```
105
+ ┌─────────────────────────────────────────────────────────────────────────────┐
106
+ │ EZ AGENTS ORCHESTRATION SYSTEM │
107
+ │ │
108
+ │ A multi-agent coordination system for building software with AI agents │
109
+ └─────────────────────────────────────────────────────────────────────────────┘
110
+
111
+ USER
112
+
113
+
114
+ ┌───────────────────────┐
115
+ ez-chief-strategist │ ◄── Orchestrator
116
+ │ (Chief Strategist) │ (Work classification,
117
+ └───────────┬───────────┘ routing, state machine)
118
+
119
+ ┌───────────────────────┼───────────────────────┐
120
+
121
+ ▼ ▼ ▼
122
+ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
123
+ Specialist Specialist Specialist
124
+ Agents Agents │ │ Agents
125
+ │ │ │ │
126
+ │ • ez-planner │ │ • ez-executor │ │ • ez-verifier │
127
+ • ez-researcher │ │ • ez-debugger │ │ • ez-auditor │
128
+ │ • ez-mapper │ │ • ez-qa-agent │ │ • ez-roadmapper │
129
+ ez-architect │ │ ez-devops │ │ │
130
+ └─────────────────┘ └─────────────────┘ └─────────────────┘
131
+ ```
132
+
133
+ ### The Phase Workflow
134
+
135
+ ```
136
+ ┌─────────────────┐
137
+ Start Project
138
+ /ez:new-project
139
+ └────────┬────────┘
140
+
141
+
142
+ ┌─────────────────────────────────────────────────┐
143
+ │ For Each Phase: │
144
+ │ │
145
+ │ 1. /ez:discuss-phase → Decide HOW to build │
146
+ │ 2. /ez:plan-phase → Break into tasks │
147
+ │ 3. /ez:execute-phase → Build (one commit/task)│
148
+ │ 4. /ez:verify-work → Test it works │
149
+ └─────────────────────────────────────────────────┘
150
+
151
+
152
+ ┌─────────────────────────┐
153
+ │ /ez:audit-milestone │
154
+ │ /ez:complete-milestone
155
+ └─────────────────────────┘
156
+ ```
157
+
158
+ ### Chief Strategist State Machine
159
+
160
+ ```
161
+ TASK RECEIVED
162
+
163
+
164
+ ┌─────────────┐
165
+ 1. TRIAGE │ ──► Classify: feature/bug/refactor/incident
166
+ └──────┬──────┘
167
+
168
+
169
+ ┌───────────────────┐
170
+ 2. RETRIVE_CTX │ ──► Load project context
171
+ └──────┬────────────┘
172
+
173
+
174
+ ┌───────────────────┐
175
+ 3. PROPOSE_ACTION ──► Select agent + skills
176
+ └──────┬────────────┘
177
+
178
+
179
+ ┌───────────────────┐
180
+ 4. POLICY_CHECK │ ──► Validate constraints
181
+ └──────┬────────────┘
182
+
183
+
184
+ ┌───────────────────┐
185
+ │ 5. EXECUTE │ ──► Route to specialist agent
186
+ └──────┬────────────┘
187
+
188
+
189
+ ┌───────────────────┐
190
+ │ 6. VERIFY │ ──► Validate results
191
+ └──────┬────────────┘
192
+
193
+
194
+ ┌───────────────────┐
195
+ 7. COMPLETE │ ──► Log audit trail
196
+ └───────────────────┘
197
+ ```
198
+
199
+ ### Smart Orchestration
200
+
201
+ Core commands automatically invoke helper commands based on context — so you don't have to remember to run them. All auto-invocations are visible with an `[auto]` prefix.
202
+
203
+ | Command | Auto Pre | Auto Post | Conditional |
204
+ |---------|----------|-----------|-------------|
205
+ | `/ez:execute-phase` | health check | verify-work | discuss-phase (medium/enterprise, no CONTEXT.md) · add-todo (scope creep) |
206
+ | `/ez:plan-phase` | | | discuss-phase (phase touches auth/DB/payment/security area) |
207
+ | `/ez:release medium` | | | verify-work |
208
+ | `/ez:release enterprise` | | | verify-work audit-milestone → arch-review |
209
+ | `/ez:progress` | health check (silent) | — | — |
210
+
211
+ **Override flags:**
212
+
213
+ | Flag | Effect |
214
+ |------|--------|
215
+ | `--no-auto` | Disable all auto-invocations for that run |
216
+ | `--verbose` | Show detail for every auto-invocation step |
217
+ | `--skip-discussion` | Skip only the auto discuss-phase trigger |
218
+
219
+ Disable globally: set `"smart_orchestration": { "enabled": false }` in `.planning/config.json`.
220
+
221
+ ### Wave-Based Parallel Execution
222
+
223
+ Tasks are grouped into waves based on dependencies. Independent tasks run in parallel; dependent tasks wait for prerequisites.
224
+
225
+ ```
226
+ Phase 1: Foundation
227
+
228
+ ├─ Wave 1 (Parallel) ───────────────────────────┐
229
+ │ ┌─────────────────┐ ┌─────────────────┐ │
230
+ │ │ Task 1.1: │ │ Task 1.2: │ │
231
+ │ │ Database Schema │ │ Next.js Setup │ │
232
+ │ │ │ │ │ │
233
+ │ │ Fresh 200K ctx │ │ Fresh 200K ctx │ │
234
+ │ │ ↓ │ │ ↓ │ │
235
+ │ │ git commit │ │ git commit │ │
236
+ │ │ "feat: schema" │ │ "feat: setup" │ │
237
+ │ └─────────────────┘ └─────────────────┘ │
238
+ └────────────────────────────────────────────────┘
239
+
240
+
241
+ ├─ Wave 2 (Depends on Wave 1) ──────────────────┐
242
+ │ ┌─────────────────┐ │
243
+ │ │ Task 1.3: │ │
244
+ │ │ Auth Endpoints │ ← Needs schema + setup │
245
+ │ │ │ │
246
+ │ │ Fresh 200K ctx │ │
247
+ │ │ ↓ │ │
248
+ │ │ git commit │ │
249
+ │ │ "feat: auth" │ │
250
+ │ └─────────────────┘ │
251
+ └────────────────────────────────────────────────┘
252
+ ```
253
+
254
+ **Benefits:**
255
+ - **Fresh context per task** — AI doesn't lose context due to window limits
256
+ - **Atomic commits** — Each task = one commit, easy to revert if issues arise
257
+ - **Parallel execution** — Independent tasks run together, faster delivery
258
+ - **Clean git history** Descriptive commit messages, clear what changed
259
+
260
+ ### What Makes It Different
261
+
262
+ | Problem | Without EZ Agents | With EZ Agents |
263
+ |---------|------------------|----------------|
264
+ | **Lost context** | "What was I working on again?" | STATE.md tracks decisions, blockers, next steps |
265
+ | **Vague plans** | "Build the API" | Specific tasks: "Create POST /users endpoint with validation" |
266
+ | **No verification** | Code written, but does it work? | Each phase has explicit verification criteria |
267
+ | **Messy git history** | "WIP", "fix", "asdf" | One commit per task, meaningful messages |
268
+ | **Scope creep** | Features added ad-hoc | ROADMAP.md tracks what's in/out of scope |
269
+
270
+ ---
271
+
272
+ ## Features
273
+
274
+ ### Core
275
+
276
+ - **Multi-Model Support** — Use Qwen, Kimi, OpenAI, or Anthropic. Mix providers per task.
277
+ - **Wave Execution** Independent tasks run in parallel; dependent tasks wait their turn
278
+ - **Context Engineering** PROJECT.md, STATE.md, SUMMARY.md preserve decisions across sessions
279
+ - **Atomic Commits** Each task gets its own commit with context about what changed and why
280
+ - **Milestone Tracking** — Version releases with requirements audit and git tagging
281
+ - **Smart Orchestration** — Core commands auto-invoke helpers (health, verify-work, discuss-phase) based on context. All visible with `[auto]` prefix. Override with `--no-auto`.
282
+
283
+ ### Built for Production
284
+
285
+ - **Security** Command injection prevention, path validation, audit logging
286
+ - **Cross-Platform** Pure JavaScript. Works on Windows, macOS, Linux (no Unix dependencies)
287
+ - **Error Handling** Retry logic with backoff, circuit breaker for failing operations
288
+ - **Git Safety** Atomic commits, branch automation, merge strategies
289
+
290
+ ### CI/CD Pipeline
291
+
292
+ EZ Agents includes comprehensive CI/CD automation for enterprise-grade quality:
293
+
294
+ **Pipeline Stages:**
295
+ ```
296
+ Push → Lint → Test → Security Scan → Build → Deploy Staging → Deploy Production
297
+ ```
298
+
299
+ **Security Scanning:**
300
+ - **CodeQL** - Semantic code analysis for vulnerabilities (SAST)
301
+ - **Semgrep** - Fast pattern-based security scanning
302
+ - **npm audit** - Dependency vulnerability detection
303
+ - **Dependabot** - Automated dependency updates
304
+
305
+ **Environment Promotion:**
306
+ - **Develop branch** → Auto-deploy to staging
307
+ - **Main branch** → Deploy to production (requires manual approval)
308
+ - **Health checks** - Post-deployment validation
309
+ - **Auto-rollback** - Automatic rollback on health check failure
310
+
311
+ **Coverage Enforcement:**
312
+ - Minimum 70% code coverage threshold
313
+ - Coverage reports uploaded as artifacts
314
+ - Optional Codecov integration
315
+
316
+ **View Pipeline Status:**
317
+ - [CI Pipeline](https://github.com/howlil/ez-agents/actions/workflows/ci.yml)
318
+ - [Tests](https://github.com/howlil/ez-agents/actions/workflows/test.yml)
319
+ - [CodeQL](https://github.com/howlil/ez-agents/actions/workflows/codeql.yml)
320
+ - [Security Scan](https://github.com/howlil/ez-agents/actions/workflows/security-scan.yml)
321
+
322
+ ### For Existing Codebases
323
+
324
+ ```bash
325
+ # Analyze what you have
326
+ /ez:map-codebase
327
+
328
+ # Then plan what to add
329
+ /ez:new-project
330
+ ```
331
+
332
+ Parallel agents analyze your stack, architecture, conventions, and pain points. The output: structured docs that inform the roadmap.
333
+
334
+ ---
335
+
336
+ ## Lean Agile Workflow (v3.6.0)
337
+
338
+ ### 🚀 Fast Path (Recommended)
339
+
340
+ Single command to run all phases iteratively:
341
+
342
+ ```bash
343
+ /ez:run-phase 1 # Start from first incomplete phase
344
+ /ez:run-phase 2 # Start from specific phase
345
+ /ez:run-phase 1 --yolo # Fully autonomous (no pauses)
346
+ /ez:run-phase 1 --no-discuss # Skip discussion (if CONTEXT.md exists)
347
+ ```
348
+
349
+ **What it does:**
350
+ 1. Discovers phases from ROADMAP.md
351
+ 2. For each phase: discuss → plan → execute → verify
352
+ 3. Pause points for approval (unless --yolo)
353
+ 4. Auto-advances to next phase
354
+ 5. Updates STATE.md and ROADMAP.md automatically
355
+
356
+ **Time:** 35-55 minutes per phase
357
+
358
+ ### 🎯 Manual Control
359
+
360
+ Step-by-step control for each phase:
361
+
362
+ ```bash
363
+ # Step 1: Discuss (Optional)
364
+ /ez:discuss-phase 1
365
+ # Creates: CONTEXT.md (vision, decisions, boundaries)
366
+
367
+ # Step 2: Plan
368
+ /ez:plan-phase 1
369
+ # Creates: 01-01-PLAN.md (tasks with verification criteria)
370
+
371
+ # Step 3: Execute
372
+ /ez:execute-phase 1
373
+ # Creates: 01-01-SUMMARY.md + git commits
374
+
375
+ # Step 4: Verify
376
+ /ez:verify-work 1
377
+ # Creates: UAT results, diagnoses failures
378
+ ```
379
+
380
+ **Time:** 75-105 minutes per phase
381
+
382
+ ### 📁 Documentation Strategy
383
+
384
+ **Essential Files (4 only):**
385
+
386
+ | File | Purpose | Max Lines |
387
+ |------|---------|-----------|
388
+ | `STATE.md` | Single source of truth | 200 |
389
+ | `ROADMAP.md` | Phase structure & progress | 300 |
390
+ | `REQUIREMENTS.md` | What to build (MoSCoW) | 500 |
391
+ | `SUMMARY.md` | What was built | 50 |
392
+
393
+ **Deprecated (No longer required):**
394
+ - ❌ CONTEXT.md → Merge decisions into STATE.md
395
+ - ❌ RESEARCH.md → Inline research in PLAN.md
396
+ - ❌ VERIFICATION.md → Inline in SUMMARY.md
397
+ - ❌ UAT.md → Merge into SUMMARY.md
398
+ - ❌ DISCUSSION.md Removed entirely
399
+
400
+ ### 🔄 Git Strategy
401
+
402
+ **One commit per plan** (not per task):
403
+
404
+ ```bash
405
+ # Good
406
+ git commit -m "Phase 1 Plan 1: User authentication"
407
+ git commit -m "Phase 1 complete: Foundation"
408
+
409
+ # Avoid (too granular)
410
+ git commit -m "feat: add login endpoint"
411
+ git commit -m "feat: add jwt middleware"
412
+ git commit -m "feat: add auth tests"
413
+ ```
414
+
415
+ **Result:** 2-3 commits per phase (not 10-20)
416
+
417
+ ---
418
+
419
+ ## Commands
420
+
421
+ ### Core Workflow (Lean Agile)
422
+
423
+ | Command | What It Does |
424
+ |---------|-------------|
425
+ | `/ez:new-project` | Initialize: answer questions, get requirements and roadmap |
426
+ | `/ez:run-phase [N]` | **NEW!** Run all phases iteratively with pause points. Use `--yolo` for fully autonomous. |
427
+ | `/ez:quick` | Small task without full phase workflow (bug fixes, config changes) |
428
+
429
+ ### Phase Workflow (Manual Control)
430
+
431
+ | Command | What It Does |
432
+ |---------|-------------|
433
+ | `/ez:discuss-phase [N]` | Optional — Clarify implementation approach before planning |
434
+ | `/ez:plan-phase [N]` | Create task breakdown with verification criteria |
435
+ | `/ez:execute-phase [N]` | Build the plan (parallel waves, one commit per task) |
436
+ | `/ez:verify-work [N]` | Manual testing with auto-diagnosis of failures |
437
+
438
+ ### Milestone Management
439
+
440
+ | Command | What It Does |
441
+ |---------|-------------|
442
+ | `/ez:audit-milestone` | Verify all requirements are met |
443
+ | `/ez:complete-milestone` | Archive milestone, create git tag |
444
+ | `/ez:new-milestone` | Start next version cycle |
445
+
446
+ ### Utilities
447
+
448
+ | Command | What It Does |
449
+ |---------|-------------|
450
+ | `/ez:map-codebase` | Analyze existing codebase (before `/ez:new-project`) |
451
+ | `/ez:progress` | See where you are and what's next |
452
+ | `/ez:resume-work` | Restore context from last session |
453
+ | `/ez:settings` | Configure workflow, model profile, git strategy |
454
+ | `/ez:update` | Update EZ Agents (with changelog preview) |
455
+ | `/ez:help` | Show all commands |
456
+
457
+ ---
458
+
459
+ ## Context Access Commands
460
+
461
+ EZ Agents provides commands for gathering context from local files and remote URLs during planning phases.
462
+
463
+ ### `ez-tools context read <pattern>`
464
+
465
+ Read local files using glob patterns.
466
+
467
+ **Examples:**
468
+ ```bash
469
+ node ez-tools.cjs context read "README.md"
470
+ node ez-tools.cjs context read "src/**/*.ts"
471
+ node ez-tools.cjs context read "*.json" "!package-lock.json"
472
+ ```
473
+
474
+ **Supported patterns:**
475
+ - Single files: `README.md`
476
+ - Glob patterns: `src/**/*.ts`
477
+ - Brace expansion: `*.{ts,js}`
478
+ - Negation: `!*.test.ts`
479
+
480
+ ### `ez-tools context fetch <url>`
481
+
482
+ Fetch content from URL (HTTPS only, requires user confirmation).
483
+
484
+ **Examples:**
485
+ ```bash
486
+ node ez-tools.cjs context fetch https://example.com/spec.md
487
+ node ez-tools.cjs context fetch https://raw.githubusercontent.com/user/repo/main/README.md
488
+ ```
489
+
490
+ **Security:**
491
+ - Only HTTPS URLs allowed
492
+ - User confirmation required before fetching
493
+ - Content scanned for XSS/malware before use
494
+
495
+ ### `ez-tools context request`
496
+
497
+ Interactive mode for requesting multiple context sources. Enter file patterns or URLs one per line, then press Enter on an empty line to finish.
498
+
499
+ **Example:**
500
+ ```bash
501
+ node ez-tools.cjs context request
502
+ > README.md
503
+ > src/**/*.ts
504
+ > https://example.com/api-docs.md
505
+ >
506
+ ```
507
+
508
+ ---
509
+
510
+ ## Setup
511
+
512
+ ### Prerequisites
513
+
514
+ - Node.js >= 16.7.0
515
+ - One of: Claude Code, OpenCode, Gemini CLI, Codex, Copilot, Qwen Code, Kimi Code
516
+
517
+ ### Installation
518
+
519
+ ```bash
520
+ npm i -g @howlil/ez-agents@latest
521
+ ez-agents --claude --global
522
+ ```
523
+
524
+ ### Updating
525
+
526
+ ```bash
527
+ npm update -g @howlil/ez-agents
528
+ ```
529
+
530
+ **Development Install** (for contributing)
531
+
532
+ ```bash
533
+ git clone https://github.com/howlil/ez-agents.git
534
+ cd ez-agents
535
+ npm install -g .
536
+ ez-agents --claude --local
537
+ ```
538
+
539
+ ---
540
+
541
+ ## Configuration
542
+
543
+ EZ Agents stores settings in `.planning/config.json`. You configure this during `/ez:new-project` or adjust later with `/ez:settings`.
544
+
545
+ ### Key Settings
546
+
547
+ | Setting | Options | Default | What It Does |
548
+ |---------|---------|---------|-------------|
549
+ | `mode` | `interactive`, `yolo` | `interactive` | `yolo` skips confirmation prompts |
550
+ | `model_profile` | `quality`, `balanced`, `budget` | `balanced` | Controls which model tier each agent uses |
551
+ | `granularity` | `coarse`, `standard`, `fine` | `standard` | How many phases (3-5, 5-8, or 8-12) |
552
+ | `smart_orchestration.enabled` | `true`, `false` | `true` | Enable/disable auto-invocation of helper commands |
553
+
554
+ ### Model Profiles
555
+
556
+ | Agent | `quality` | `balanced` | `budget` |
557
+ |-------|-----------|------------|----------|
558
+ | Planner | Opus | Opus | Sonnet |
559
+ | Executor | Opus | Sonnet | Sonnet |
560
+ | Researcher | Opus | Sonnet | Haiku |
561
+ | Verifier | Sonnet | Sonnet | Haiku |
562
+
563
+ **When to use each:**
564
+ - **quality** — Critical work, complex decisions, you have quota
565
+ - **balanced** — Day-to-day development (the default for a reason)
566
+ - **budget** — High-volume work, familiar domains, prototyping
567
+
568
+ ### Multi-Provider Setup
569
+
570
+ Different providers for different tasks:
571
+
572
+ ```json
573
+ {
574
+ "provider": {
575
+ "default": "alibaba",
576
+ "anthropic": {
577
+ "api_key": "env:ANTHROPIC_API_KEY"
578
+ },
579
+ "alibaba": {
580
+ "api_key": "env:DASHSCOPE_API_KEY"
581
+ }
582
+ },
583
+ "agent_overrides": {
584
+ "ez-planner": { "provider": "alibaba", "model": "qwen-max" },
585
+ "ez-executor": { "provider": "anthropic", "model": "sonnet" }
586
+ }
587
+ }
588
+ ```
589
+
590
+ ---
591
+
592
+ ## Project Structure
593
+
594
+ After running `/ez:new-project`, you'll have:
595
+
596
+ ```
597
+ .planning/
598
+ PROJECT.md # What you're building and why
599
+ REQUIREMENTS.md # Scoped requirements with IDs
600
+ ROADMAP.md # Phase breakdown with status
601
+ STATE.md # Current decisions, blockers, next steps
602
+ config.json # Your configuration
603
+ phases/
604
+ 01-phase-name/
605
+ 01-01-PLAN.md # Tasks to execute
606
+ 01-01-SUMMARY.md # What was built and why
607
+ CONTEXT.md # Your implementation preferences
608
+ RESEARCH.md # Domain research
609
+ VERIFICATION.md # Test results
610
+ ```
611
+
612
+ **Note:** You can add `.planning/` to `.gitignore` if you don't want planning docs in your repo. Set `commit_docs: false` in `/ez:settings`.
613
+
614
+ ---
615
+
616
+ ## Example: Building a Task App
617
+
618
+ Let's say you want to build "a task management app with team collaboration."
619
+
620
+ ### 1. Initialize
621
+
622
+ ```bash
623
+ /ez:new-project
624
+ ```
625
+
626
+ You answer questions:
627
+ - Tech stack? → "Next.js + PostgreSQL"
628
+ - Auth method? → "Email + OAuth (Google, GitHub)"
629
+ - First milestone? → "MVP: user accounts, create/edit tasks, share with team"
630
+
631
+ EZ Agents generates research, requirements, and a roadmap with ~6 phases.
632
+
633
+ ### 2. Phase 1: Foundation
634
+
635
+ ```bash
636
+ /ez:discuss-phase 1
637
+ ```
638
+
639
+ You clarify: "Use Next.js App Router, Prisma for DB, next-auth for OAuth."
640
+
641
+ ```bash
642
+ /ez:plan-phase 1
643
+ ```
644
+
645
+ Research runs (auth patterns, Prisma schema design). Plan is created:
646
+ - Task 1: Database schema (users, tasks, teams)
647
+ - Task 2: Next.js setup with next-auth
648
+ - Task 3: User model and auth endpoints
649
+
650
+ ```bash
651
+ /ez:execute-phase 1
652
+ ```
653
+
654
+ Three tasks, three commits. Each task gets fresh context.
655
+
656
+ ```bash
657
+ /ez:verify-work 1
658
+ ```
659
+
660
+ You test: Can register? Can login? Can connect to DB? All pass.
661
+
662
+ ### 3. Repeat for Each Phase
663
+
664
+ ```bash
665
+ /ez:discuss-phase 2
666
+ /ez:plan-phase 2
667
+ /ez:execute-phase 2
668
+ /ez:verify-work 2
669
+ ```
670
+
671
+ ### 4. Complete Milestone
672
+
673
+ ```bash
674
+ /ez:audit-milestone # Checks all requirements are met
675
+ /ez:complete-milestone # Archives, tags v1.0
676
+ ```
677
+
678
+ ---
679
+
680
+ ## Documentation
681
+
682
+ | Doc | What's Inside |
683
+ |-----|---------------|
684
+ | [User Guide](docs/USER-GUIDE.md) | Full command reference, workflows, troubleshooting |
685
+ | [Workflows](docs/WORKFLOWS.md) | Complete workflow diagrams for all use cases |
686
+ | [Provider Behaviors](docs/PROVIDER-BEHAVIORS.md) | Differences between Claude, OpenCode, Gemini, etc. |
687
+ | [Qwen Code Install](docs/QWEN-CODE-INSTALL.md) | Fix for Qwen Code CLI installation issues |
688
+
689
+ ---
690
+
691
+ ## Contributing
692
+
693
+ Contributions welcome! A few guidelines:
694
+
695
+ 1. **Test your changes** — Run `npm test` before submitting
696
+ 2. **Keep it cross-platform** — No Unix-specific commands (use `fs-utils.cjs`)
697
+ 3. **Document behavior** — Update USER-GUIDE.md for new commands
698
+ 4. **Respect the workflow** — EZ Agents is about structure; don't break existing patterns
699
+
700
+ ### Development Setup
701
+
702
+ ```bash
703
+ git clone https://github.com/howlil/ez-agents.git
704
+ cd ez-agents
705
+ npm install
706
+ npm run build:hooks
707
+ npm link
708
+ ```
709
+
710
+ ### Running Tests
711
+
712
+ ```bash
713
+ npm test # Run all tests
714
+ npm run test:coverage # With coverage report
715
+ ```
716
+
717
+ ---
718
+
719
+ ## Acknowledgments
720
+
721
+ EZ Agents is a fork of the original project by [TÂCHES](https://github.com/glittercowboy). This fork adds multi-model support (Qwen, Kimi, OpenAI), enterprise-grade security, and cross-platform reliability. Not affiliated with the upstream repository.
722
+
723
+ ---
724
+
725
+ ## License
726
+
727
+ MIT — see [LICENSE](LICENSE)
728
+
729
+ ---
730
+
731
+ ## Getting Help
732
+
733
+ - **Issues:** [GitHub Issues](https://github.com/howlil/ez-agents/issues)
734
+ - **Discussions:** [GitHub Discussions](https://github.com/howlil/ez-agents/discussions)
735
+ - **npm:** [@howlil/ez-agents](https://www.npmjs.com/package/@howlil/ez-agents)