@josstei/maestro 1.6.4-rc.1
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/.agents/plugins/marketplace.json +20 -0
- package/CHANGELOG.md +485 -0
- package/EXAMPLES.md +255 -0
- package/GEMINI.md +231 -0
- package/LICENSE +201 -0
- package/QWEN.md +241 -0
- package/README.md +220 -0
- package/agents/accessibility_specialist.md +20 -0
- package/agents/analytics_engineer.md +22 -0
- package/agents/api_designer.md +19 -0
- package/agents/architect.md +19 -0
- package/agents/cloud_architect.md +19 -0
- package/agents/cobol_engineer.md +22 -0
- package/agents/code_reviewer.md +17 -0
- package/agents/coder.md +22 -0
- package/agents/compliance_reviewer.md +19 -0
- package/agents/content_strategist.md +19 -0
- package/agents/copywriter.md +19 -0
- package/agents/data_engineer.md +22 -0
- package/agents/database_administrator.md +21 -0
- package/agents/db2_dba.md +21 -0
- package/agents/debugger.md +19 -0
- package/agents/design_system_engineer.md +22 -0
- package/agents/devops_engineer.md +23 -0
- package/agents/hlasm_assembler_specialist.md +22 -0
- package/agents/i18n_specialist.md +21 -0
- package/agents/ibm_i_specialist.md +22 -0
- package/agents/integration_engineer.md +23 -0
- package/agents/ml_engineer.md +23 -0
- package/agents/mlops_engineer.md +23 -0
- package/agents/mobile_engineer.md +23 -0
- package/agents/observability_engineer.md +23 -0
- package/agents/performance_engineer.md +21 -0
- package/agents/platform_engineer.md +24 -0
- package/agents/product_manager.md +20 -0
- package/agents/prompt_engineer.md +22 -0
- package/agents/refactor.md +22 -0
- package/agents/release_manager.md +22 -0
- package/agents/security_engineer.md +21 -0
- package/agents/seo_specialist.md +21 -0
- package/agents/site_reliability_engineer.md +21 -0
- package/agents/solutions_architect.md +19 -0
- package/agents/technical_writer.md +21 -0
- package/agents/tester.md +23 -0
- package/agents/ux_designer.md +20 -0
- package/agents/zos_sysprog.md +21 -0
- package/bin/maestro-mcp-server.js +10 -0
- package/claude/.claude-plugin/plugin.json +21 -0
- package/claude/.mcp.json +11 -0
- package/claude/README.md +191 -0
- package/claude/agents/accessibility-specialist.md +36 -0
- package/claude/agents/analytics-engineer.md +38 -0
- package/claude/agents/api-designer.md +33 -0
- package/claude/agents/architect.md +33 -0
- package/claude/agents/cloud-architect.md +33 -0
- package/claude/agents/cobol-engineer.md +38 -0
- package/claude/agents/code-reviewer.md +31 -0
- package/claude/agents/coder.md +38 -0
- package/claude/agents/compliance-reviewer.md +33 -0
- package/claude/agents/content-strategist.md +33 -0
- package/claude/agents/copywriter.md +33 -0
- package/claude/agents/data-engineer.md +37 -0
- package/claude/agents/database-administrator.md +37 -0
- package/claude/agents/db2-dba.md +37 -0
- package/claude/agents/debugger.md +32 -0
- package/claude/agents/design-system-engineer.md +38 -0
- package/claude/agents/devops-engineer.md +39 -0
- package/claude/agents/hlasm-assembler-specialist.md +38 -0
- package/claude/agents/i18n-specialist.md +37 -0
- package/claude/agents/ibm-i-specialist.md +38 -0
- package/claude/agents/integration-engineer.md +39 -0
- package/claude/agents/ml-engineer.md +39 -0
- package/claude/agents/mlops-engineer.md +39 -0
- package/claude/agents/mobile-engineer.md +39 -0
- package/claude/agents/observability-engineer.md +39 -0
- package/claude/agents/performance-engineer.md +34 -0
- package/claude/agents/platform-engineer.md +40 -0
- package/claude/agents/product-manager.md +34 -0
- package/claude/agents/prompt-engineer.md +38 -0
- package/claude/agents/refactor.md +38 -0
- package/claude/agents/release-manager.md +38 -0
- package/claude/agents/security-engineer.md +37 -0
- package/claude/agents/seo-specialist.md +37 -0
- package/claude/agents/site-reliability-engineer.md +37 -0
- package/claude/agents/solutions-architect.md +33 -0
- package/claude/agents/technical-writer.md +37 -0
- package/claude/agents/tester.md +39 -0
- package/claude/agents/ux-designer.md +34 -0
- package/claude/agents/zos-sysprog.md +37 -0
- package/claude/hooks/claude-hooks.json +48 -0
- package/claude/mcp/maestro-server.js +9 -0
- package/claude/mcp-config.example.json +9 -0
- package/claude/scripts/adapters/claude-adapter.js +7 -0
- package/claude/scripts/hook-runner.js +8 -0
- package/claude/scripts/policy-enforcer.js +294 -0
- package/claude/skills/a11y-audit/SKILL.md +26 -0
- package/claude/skills/archive/SKILL.md +24 -0
- package/claude/skills/code-review/SKILL.md +7 -0
- package/claude/skills/compliance-check/SKILL.md +26 -0
- package/claude/skills/debug-workflow/SKILL.md +27 -0
- package/claude/skills/delegation/SKILL.md +7 -0
- package/claude/skills/design-dialogue/SKILL.md +7 -0
- package/claude/skills/execute/SKILL.md +38 -0
- package/claude/skills/execution/SKILL.md +7 -0
- package/claude/skills/implementation-planning/SKILL.md +7 -0
- package/claude/skills/orchestrate/SKILL.md +38 -0
- package/claude/skills/perf-check/SKILL.md +26 -0
- package/claude/skills/resume-session/SKILL.md +38 -0
- package/claude/skills/review-code/SKILL.md +27 -0
- package/claude/skills/security-audit/SKILL.md +28 -0
- package/claude/skills/seo-audit/SKILL.md +26 -0
- package/claude/skills/session-management/SKILL.md +7 -0
- package/claude/skills/status/SKILL.md +22 -0
- package/claude/skills/validation/SKILL.md +7 -0
- package/claude/src/agents/accessibility-specialist.md +163 -0
- package/claude/src/agents/analytics-engineer.md +182 -0
- package/claude/src/agents/api-designer.md +124 -0
- package/claude/src/agents/architect.md +120 -0
- package/claude/src/agents/cloud-architect.md +134 -0
- package/claude/src/agents/cobol-engineer.md +127 -0
- package/claude/src/agents/code-reviewer.md +123 -0
- package/claude/src/agents/coder.md +132 -0
- package/claude/src/agents/compliance-reviewer.md +219 -0
- package/claude/src/agents/content-strategist.md +111 -0
- package/claude/src/agents/copywriter.md +113 -0
- package/claude/src/agents/data-engineer.md +130 -0
- package/claude/src/agents/database-administrator.md +126 -0
- package/claude/src/agents/db2-dba.md +124 -0
- package/claude/src/agents/debugger.md +133 -0
- package/claude/src/agents/design-system-engineer.md +258 -0
- package/claude/src/agents/devops-engineer.md +138 -0
- package/claude/src/agents/hlasm-assembler-specialist.md +134 -0
- package/claude/src/agents/i18n-specialist.md +241 -0
- package/claude/src/agents/ibm-i-specialist.md +132 -0
- package/claude/src/agents/integration-engineer.md +133 -0
- package/claude/src/agents/ml-engineer.md +115 -0
- package/claude/src/agents/mlops-engineer.md +116 -0
- package/claude/src/agents/mobile-engineer.md +115 -0
- package/claude/src/agents/observability-engineer.md +133 -0
- package/claude/src/agents/performance-engineer.md +139 -0
- package/claude/src/agents/platform-engineer.md +129 -0
- package/claude/src/agents/product-manager.md +170 -0
- package/claude/src/agents/prompt-engineer.md +129 -0
- package/claude/src/agents/refactor.md +138 -0
- package/claude/src/agents/release-manager.md +132 -0
- package/claude/src/agents/security-engineer.md +143 -0
- package/claude/src/agents/seo-specialist.md +129 -0
- package/claude/src/agents/site-reliability-engineer.md +131 -0
- package/claude/src/agents/solutions-architect.md +137 -0
- package/claude/src/agents/technical-writer.md +129 -0
- package/claude/src/agents/tester.md +135 -0
- package/claude/src/agents/ux-designer.md +168 -0
- package/claude/src/agents/zos-sysprog.md +134 -0
- package/claude/src/config/setting-resolver.js +32 -0
- package/claude/src/core/agent-registry.js +67 -0
- package/claude/src/core/canonical-source.js +39 -0
- package/claude/src/core/env-file-parser.js +82 -0
- package/claude/src/core/feature-blocks.js +34 -0
- package/claude/src/core/logger.js +12 -0
- package/claude/src/core/markdown-state.js +36 -0
- package/claude/src/core/policy-rules.js +32 -0
- package/claude/src/core/project-root-resolver.js +184 -0
- package/claude/src/core/stdin-reader.js +77 -0
- package/claude/src/core/version.js +50 -0
- package/claude/src/entry-points/core-command-registry.js +37 -0
- package/claude/src/entry-points/preamble-builders.js +54 -0
- package/claude/src/entry-points/registry.js +199 -0
- package/claude/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/claude/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/claude/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/claude/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/claude/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/claude/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/claude/src/generated/agent-registry.json +630 -0
- package/claude/src/generated/hook-registry.json +18 -0
- package/claude/src/generated/resource-registry.json +16 -0
- package/claude/src/hooks/logic/after-agent-logic.js +54 -0
- package/claude/src/hooks/logic/before-agent-logic.js +57 -0
- package/claude/src/hooks/logic/hook-state.js +127 -0
- package/claude/src/hooks/logic/session-end-logic.js +17 -0
- package/claude/src/hooks/logic/session-start-logic.js +25 -0
- package/claude/src/lib/discovery/index.js +172 -0
- package/claude/src/lib/errors/index.js +104 -0
- package/claude/src/lib/framework-detection.js +50 -0
- package/claude/src/lib/frontmatter/index.js +262 -0
- package/claude/src/lib/io/index.js +96 -0
- package/claude/src/lib/naming/index.js +94 -0
- package/claude/src/lib/validation/index.js +124 -0
- package/claude/src/lib/yaml-emit.js +38 -0
- package/claude/src/mcp/content/provider.js +68 -0
- package/claude/src/mcp/content/runtime-content.js +188 -0
- package/claude/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/claude/src/mcp/contracts/downstream-context.js +106 -0
- package/claude/src/mcp/contracts/plan-schema.js +148 -0
- package/claude/src/mcp/contracts/workspace-marker.js +61 -0
- package/claude/src/mcp/core/create-server.js +76 -0
- package/claude/src/mcp/core/line-reader.js +35 -0
- package/claude/src/mcp/core/project-root-cache.js +120 -0
- package/claude/src/mcp/core/protocol-dispatcher.js +274 -0
- package/claude/src/mcp/core/recovery-hints.js +43 -0
- package/claude/src/mcp/core/tool-outcome.js +77 -0
- package/claude/src/mcp/core/tool-registry.js +82 -0
- package/claude/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/claude/src/mcp/handlers/blocker-parser.js +34 -0
- package/claude/src/mcp/handlers/design-gate.js +393 -0
- package/claude/src/mcp/handlers/get-agent.js +54 -0
- package/claude/src/mcp/handlers/get-runtime-context.js +49 -0
- package/claude/src/mcp/handlers/get-skill-content.js +51 -0
- package/claude/src/mcp/handlers/initialize-workspace.js +45 -0
- package/claude/src/mcp/handlers/reconciliation.js +224 -0
- package/claude/src/mcp/handlers/resolve-settings.js +39 -0
- package/claude/src/mcp/handlers/session-state-core.js +108 -0
- package/claude/src/mcp/handlers/session-state-tools.js +562 -0
- package/claude/src/mcp/handlers/validate-plan.js +76 -0
- package/claude/src/mcp/maestro-server.js +122 -0
- package/claude/src/mcp/runtime/runtime-config-map.js +70 -0
- package/claude/src/mcp/tool-packs/content/index.js +80 -0
- package/claude/src/mcp/tool-packs/contracts.js +30 -0
- package/claude/src/mcp/tool-packs/index.js +15 -0
- package/claude/src/mcp/tool-packs/session/index.js +243 -0
- package/claude/src/mcp/tool-packs/workspace/index.js +98 -0
- package/claude/src/mcp/utils/extension-root.js +31 -0
- package/claude/src/mcp/validation/agent-checker.js +81 -0
- package/claude/src/mcp/validation/dag-checker.js +214 -0
- package/claude/src/mcp/validation/file-overlap-checker.js +63 -0
- package/claude/src/mcp/validation/schema-checker.js +108 -0
- package/claude/src/platforms/claude/runtime-config.js +60 -0
- package/claude/src/platforms/shared/adapters/claude-adapter.js +36 -0
- package/claude/src/platforms/shared/adapters/conventions.js +29 -0
- package/claude/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/claude/src/platforms/shared/adapters/factory.js +40 -0
- package/claude/src/platforms/shared/agent-names.js +10 -0
- package/claude/src/platforms/shared/hook-runner.js +52 -0
- package/claude/src/references/architecture.md +139 -0
- package/claude/src/references/orchestration-steps.md +193 -0
- package/claude/src/skills/shared/code-review/SKILL.md +145 -0
- package/claude/src/skills/shared/delegation/SKILL.md +370 -0
- package/claude/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/claude/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/claude/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/claude/src/skills/shared/execution/SKILL.md +258 -0
- package/claude/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/claude/src/skills/shared/session-management/SKILL.md +314 -0
- package/claude/src/skills/shared/validation/SKILL.md +204 -0
- package/claude/src/state/session-state.js +113 -0
- package/claude/src/templates/design-document.md +95 -0
- package/claude/src/templates/implementation-plan.md +86 -0
- package/claude/src/templates/session-state.md +68 -0
- package/claude/src/version.json +3 -0
- package/commands/maestro/a11y-audit.toml +22 -0
- package/commands/maestro/archive.toml +23 -0
- package/commands/maestro/compliance-check.toml +22 -0
- package/commands/maestro/debug.toml +23 -0
- package/commands/maestro/execute.toml +30 -0
- package/commands/maestro/orchestrate.toml +30 -0
- package/commands/maestro/perf-check.toml +22 -0
- package/commands/maestro/resume.toml +38 -0
- package/commands/maestro/review.toml +23 -0
- package/commands/maestro/security-audit.toml +24 -0
- package/commands/maestro/seo-audit.toml +22 -0
- package/commands/maestro/status.toml +21 -0
- package/docs/architecture.md +310 -0
- package/docs/cicd.md +647 -0
- package/docs/flow.md +255 -0
- package/docs/maestro-cheatsheet.md +199 -0
- package/docs/overview.md +141 -0
- package/docs/runtime-claude.md +190 -0
- package/docs/runtime-codex.md +197 -0
- package/docs/runtime-gemini.md +170 -0
- package/docs/runtime-qwen.md +147 -0
- package/docs/usage.md +312 -0
- package/gemini-extension.json +55 -0
- package/hooks/adapters/gemini-adapter.js +2 -0
- package/hooks/adapters/qwen-adapter.js +2 -0
- package/hooks/hook-runner.js +3 -0
- package/hooks/hooks.json +56 -0
- package/mcp/maestro-server.js +4 -0
- package/package.json +93 -0
- package/plugins/maestro/.app.json +3 -0
- package/plugins/maestro/.codex-plugin/plugin.json +41 -0
- package/plugins/maestro/.mcp.json +16 -0
- package/plugins/maestro/README.md +57 -0
- package/plugins/maestro/references/runtime-guide.md +125 -0
- package/plugins/maestro/skills/a11y-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/archive/SKILL.md +16 -0
- package/plugins/maestro/skills/code-review/SKILL.md +6 -0
- package/plugins/maestro/skills/compliance-check/SKILL.md +16 -0
- package/plugins/maestro/skills/debug-workflow/SKILL.md +16 -0
- package/plugins/maestro/skills/delegation/SKILL.md +6 -0
- package/plugins/maestro/skills/design-dialogue/SKILL.md +6 -0
- package/plugins/maestro/skills/execute/SKILL.md +16 -0
- package/plugins/maestro/skills/execution/SKILL.md +6 -0
- package/plugins/maestro/skills/implementation-planning/SKILL.md +6 -0
- package/plugins/maestro/skills/orchestrate/SKILL.md +16 -0
- package/plugins/maestro/skills/perf-check/SKILL.md +16 -0
- package/plugins/maestro/skills/resume-session/SKILL.md +16 -0
- package/plugins/maestro/skills/review-code/SKILL.md +16 -0
- package/plugins/maestro/skills/security-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/seo-audit/SKILL.md +16 -0
- package/plugins/maestro/skills/session-management/SKILL.md +6 -0
- package/plugins/maestro/skills/status/SKILL.md +14 -0
- package/plugins/maestro/skills/validation/SKILL.md +6 -0
- package/plugins/maestro/src/agents/accessibility-specialist.md +163 -0
- package/plugins/maestro/src/agents/analytics-engineer.md +182 -0
- package/plugins/maestro/src/agents/api-designer.md +124 -0
- package/plugins/maestro/src/agents/architect.md +120 -0
- package/plugins/maestro/src/agents/cloud-architect.md +134 -0
- package/plugins/maestro/src/agents/cobol-engineer.md +127 -0
- package/plugins/maestro/src/agents/code-reviewer.md +123 -0
- package/plugins/maestro/src/agents/coder.md +132 -0
- package/plugins/maestro/src/agents/compliance-reviewer.md +219 -0
- package/plugins/maestro/src/agents/content-strategist.md +111 -0
- package/plugins/maestro/src/agents/copywriter.md +113 -0
- package/plugins/maestro/src/agents/data-engineer.md +130 -0
- package/plugins/maestro/src/agents/database-administrator.md +126 -0
- package/plugins/maestro/src/agents/db2-dba.md +124 -0
- package/plugins/maestro/src/agents/debugger.md +133 -0
- package/plugins/maestro/src/agents/design-system-engineer.md +258 -0
- package/plugins/maestro/src/agents/devops-engineer.md +138 -0
- package/plugins/maestro/src/agents/hlasm-assembler-specialist.md +134 -0
- package/plugins/maestro/src/agents/i18n-specialist.md +241 -0
- package/plugins/maestro/src/agents/ibm-i-specialist.md +132 -0
- package/plugins/maestro/src/agents/integration-engineer.md +133 -0
- package/plugins/maestro/src/agents/ml-engineer.md +115 -0
- package/plugins/maestro/src/agents/mlops-engineer.md +116 -0
- package/plugins/maestro/src/agents/mobile-engineer.md +115 -0
- package/plugins/maestro/src/agents/observability-engineer.md +133 -0
- package/plugins/maestro/src/agents/performance-engineer.md +139 -0
- package/plugins/maestro/src/agents/platform-engineer.md +129 -0
- package/plugins/maestro/src/agents/product-manager.md +170 -0
- package/plugins/maestro/src/agents/prompt-engineer.md +129 -0
- package/plugins/maestro/src/agents/refactor.md +138 -0
- package/plugins/maestro/src/agents/release-manager.md +132 -0
- package/plugins/maestro/src/agents/security-engineer.md +143 -0
- package/plugins/maestro/src/agents/seo-specialist.md +129 -0
- package/plugins/maestro/src/agents/site-reliability-engineer.md +131 -0
- package/plugins/maestro/src/agents/solutions-architect.md +137 -0
- package/plugins/maestro/src/agents/technical-writer.md +129 -0
- package/plugins/maestro/src/agents/tester.md +135 -0
- package/plugins/maestro/src/agents/ux-designer.md +168 -0
- package/plugins/maestro/src/agents/zos-sysprog.md +134 -0
- package/plugins/maestro/src/config/setting-resolver.js +32 -0
- package/plugins/maestro/src/core/agent-registry.js +67 -0
- package/plugins/maestro/src/core/canonical-source.js +39 -0
- package/plugins/maestro/src/core/env-file-parser.js +82 -0
- package/plugins/maestro/src/core/feature-blocks.js +34 -0
- package/plugins/maestro/src/core/logger.js +12 -0
- package/plugins/maestro/src/core/markdown-state.js +36 -0
- package/plugins/maestro/src/core/policy-rules.js +32 -0
- package/plugins/maestro/src/core/project-root-resolver.js +184 -0
- package/plugins/maestro/src/core/stdin-reader.js +77 -0
- package/plugins/maestro/src/core/version.js +50 -0
- package/plugins/maestro/src/entry-points/core-command-registry.js +37 -0
- package/plugins/maestro/src/entry-points/preamble-builders.js +54 -0
- package/plugins/maestro/src/entry-points/registry.js +199 -0
- package/plugins/maestro/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/plugins/maestro/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/plugins/maestro/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/plugins/maestro/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/plugins/maestro/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/plugins/maestro/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/plugins/maestro/src/generated/agent-registry.json +630 -0
- package/plugins/maestro/src/generated/hook-registry.json +18 -0
- package/plugins/maestro/src/generated/resource-registry.json +16 -0
- package/plugins/maestro/src/hooks/logic/after-agent-logic.js +54 -0
- package/plugins/maestro/src/hooks/logic/before-agent-logic.js +57 -0
- package/plugins/maestro/src/hooks/logic/hook-state.js +127 -0
- package/plugins/maestro/src/hooks/logic/session-end-logic.js +17 -0
- package/plugins/maestro/src/hooks/logic/session-start-logic.js +25 -0
- package/plugins/maestro/src/lib/discovery/index.js +172 -0
- package/plugins/maestro/src/lib/errors/index.js +104 -0
- package/plugins/maestro/src/lib/framework-detection.js +50 -0
- package/plugins/maestro/src/lib/frontmatter/index.js +262 -0
- package/plugins/maestro/src/lib/io/index.js +96 -0
- package/plugins/maestro/src/lib/naming/index.js +94 -0
- package/plugins/maestro/src/lib/validation/index.js +124 -0
- package/plugins/maestro/src/lib/yaml-emit.js +38 -0
- package/plugins/maestro/src/mcp/content/provider.js +68 -0
- package/plugins/maestro/src/mcp/content/runtime-content.js +188 -0
- package/plugins/maestro/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/plugins/maestro/src/mcp/contracts/downstream-context.js +106 -0
- package/plugins/maestro/src/mcp/contracts/plan-schema.js +148 -0
- package/plugins/maestro/src/mcp/contracts/workspace-marker.js +61 -0
- package/plugins/maestro/src/mcp/core/create-server.js +76 -0
- package/plugins/maestro/src/mcp/core/line-reader.js +35 -0
- package/plugins/maestro/src/mcp/core/project-root-cache.js +120 -0
- package/plugins/maestro/src/mcp/core/protocol-dispatcher.js +274 -0
- package/plugins/maestro/src/mcp/core/recovery-hints.js +43 -0
- package/plugins/maestro/src/mcp/core/tool-outcome.js +77 -0
- package/plugins/maestro/src/mcp/core/tool-registry.js +82 -0
- package/plugins/maestro/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/plugins/maestro/src/mcp/handlers/blocker-parser.js +34 -0
- package/plugins/maestro/src/mcp/handlers/design-gate.js +393 -0
- package/plugins/maestro/src/mcp/handlers/get-agent.js +54 -0
- package/plugins/maestro/src/mcp/handlers/get-runtime-context.js +49 -0
- package/plugins/maestro/src/mcp/handlers/get-skill-content.js +51 -0
- package/plugins/maestro/src/mcp/handlers/initialize-workspace.js +45 -0
- package/plugins/maestro/src/mcp/handlers/reconciliation.js +224 -0
- package/plugins/maestro/src/mcp/handlers/resolve-settings.js +39 -0
- package/plugins/maestro/src/mcp/handlers/session-state-core.js +108 -0
- package/plugins/maestro/src/mcp/handlers/session-state-tools.js +562 -0
- package/plugins/maestro/src/mcp/handlers/validate-plan.js +76 -0
- package/plugins/maestro/src/mcp/maestro-server.js +122 -0
- package/plugins/maestro/src/mcp/runtime/runtime-config-map.js +70 -0
- package/plugins/maestro/src/mcp/tool-packs/content/index.js +80 -0
- package/plugins/maestro/src/mcp/tool-packs/contracts.js +30 -0
- package/plugins/maestro/src/mcp/tool-packs/index.js +15 -0
- package/plugins/maestro/src/mcp/tool-packs/session/index.js +243 -0
- package/plugins/maestro/src/mcp/tool-packs/workspace/index.js +98 -0
- package/plugins/maestro/src/mcp/utils/extension-root.js +31 -0
- package/plugins/maestro/src/mcp/validation/agent-checker.js +81 -0
- package/plugins/maestro/src/mcp/validation/dag-checker.js +214 -0
- package/plugins/maestro/src/mcp/validation/file-overlap-checker.js +63 -0
- package/plugins/maestro/src/mcp/validation/schema-checker.js +108 -0
- package/plugins/maestro/src/platforms/codex/runtime-config.js +58 -0
- package/plugins/maestro/src/platforms/shared/adapters/conventions.js +29 -0
- package/plugins/maestro/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/plugins/maestro/src/platforms/shared/adapters/factory.js +40 -0
- package/plugins/maestro/src/platforms/shared/agent-names.js +10 -0
- package/plugins/maestro/src/platforms/shared/hook-runner.js +52 -0
- package/plugins/maestro/src/references/architecture.md +139 -0
- package/plugins/maestro/src/references/orchestration-steps.md +193 -0
- package/plugins/maestro/src/skills/shared/code-review/SKILL.md +145 -0
- package/plugins/maestro/src/skills/shared/delegation/SKILL.md +370 -0
- package/plugins/maestro/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/plugins/maestro/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/plugins/maestro/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/plugins/maestro/src/skills/shared/execution/SKILL.md +258 -0
- package/plugins/maestro/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/plugins/maestro/src/skills/shared/session-management/SKILL.md +314 -0
- package/plugins/maestro/src/skills/shared/validation/SKILL.md +204 -0
- package/plugins/maestro/src/state/session-state.js +113 -0
- package/plugins/maestro/src/templates/design-document.md +95 -0
- package/plugins/maestro/src/templates/implementation-plan.md +86 -0
- package/plugins/maestro/src/templates/session-state.md +68 -0
- package/plugins/maestro/src/version.json +3 -0
- package/policies/maestro.toml +44 -0
- package/qwen/agents/accessibility_specialist.md +18 -0
- package/qwen/agents/analytics_engineer.md +20 -0
- package/qwen/agents/api_designer.md +17 -0
- package/qwen/agents/architect.md +17 -0
- package/qwen/agents/cloud_architect.md +17 -0
- package/qwen/agents/cobol_engineer.md +20 -0
- package/qwen/agents/code_reviewer.md +15 -0
- package/qwen/agents/coder.md +20 -0
- package/qwen/agents/compliance_reviewer.md +17 -0
- package/qwen/agents/content_strategist.md +17 -0
- package/qwen/agents/copywriter.md +17 -0
- package/qwen/agents/data_engineer.md +20 -0
- package/qwen/agents/database_administrator.md +19 -0
- package/qwen/agents/db2_dba.md +19 -0
- package/qwen/agents/debugger.md +17 -0
- package/qwen/agents/design_system_engineer.md +20 -0
- package/qwen/agents/devops_engineer.md +21 -0
- package/qwen/agents/hlasm_assembler_specialist.md +20 -0
- package/qwen/agents/i18n_specialist.md +19 -0
- package/qwen/agents/ibm_i_specialist.md +20 -0
- package/qwen/agents/integration_engineer.md +21 -0
- package/qwen/agents/ml_engineer.md +21 -0
- package/qwen/agents/mlops_engineer.md +21 -0
- package/qwen/agents/mobile_engineer.md +21 -0
- package/qwen/agents/observability_engineer.md +21 -0
- package/qwen/agents/performance_engineer.md +19 -0
- package/qwen/agents/platform_engineer.md +22 -0
- package/qwen/agents/product_manager.md +18 -0
- package/qwen/agents/prompt_engineer.md +20 -0
- package/qwen/agents/refactor.md +20 -0
- package/qwen/agents/release_manager.md +20 -0
- package/qwen/agents/security_engineer.md +19 -0
- package/qwen/agents/seo_specialist.md +19 -0
- package/qwen/agents/site_reliability_engineer.md +19 -0
- package/qwen/agents/solutions_architect.md +17 -0
- package/qwen/agents/technical_writer.md +19 -0
- package/qwen/agents/tester.md +21 -0
- package/qwen/agents/ux_designer.md +18 -0
- package/qwen/agents/zos_sysprog.md +19 -0
- package/qwen/hooks.json +56 -0
- package/qwen-extension.json +55 -0
- package/scripts/check-layer-boundaries.js +74 -0
- package/scripts/generate.js +155 -0
- package/scripts/install-codex-plugin.js +167 -0
- package/scripts/install-git-hooks.js +43 -0
- package/scripts/npm-publish-idempotent.js +150 -0
- package/scripts/package-release-artifacts.js +156 -0
- package/scripts/release-artifact-manifest.js +378 -0
- package/scripts/release-version-metadata.js +129 -0
- package/scripts/update-versions.js +33 -0
- package/scripts/verify-npm-pack.js +85 -0
- package/scripts/verify-release-artifacts.js +95 -0
- package/src/agents/accessibility-specialist.md +163 -0
- package/src/agents/analytics-engineer.md +182 -0
- package/src/agents/api-designer.md +124 -0
- package/src/agents/architect.md +120 -0
- package/src/agents/cloud-architect.md +134 -0
- package/src/agents/cobol-engineer.md +127 -0
- package/src/agents/code-reviewer.md +123 -0
- package/src/agents/coder.md +132 -0
- package/src/agents/compliance-reviewer.md +219 -0
- package/src/agents/content-strategist.md +111 -0
- package/src/agents/copywriter.md +113 -0
- package/src/agents/data-engineer.md +130 -0
- package/src/agents/database-administrator.md +126 -0
- package/src/agents/db2-dba.md +124 -0
- package/src/agents/debugger.md +133 -0
- package/src/agents/design-system-engineer.md +258 -0
- package/src/agents/devops-engineer.md +138 -0
- package/src/agents/hlasm-assembler-specialist.md +134 -0
- package/src/agents/i18n-specialist.md +241 -0
- package/src/agents/ibm-i-specialist.md +132 -0
- package/src/agents/integration-engineer.md +133 -0
- package/src/agents/ml-engineer.md +115 -0
- package/src/agents/mlops-engineer.md +116 -0
- package/src/agents/mobile-engineer.md +115 -0
- package/src/agents/observability-engineer.md +133 -0
- package/src/agents/performance-engineer.md +139 -0
- package/src/agents/platform-engineer.md +129 -0
- package/src/agents/product-manager.md +170 -0
- package/src/agents/prompt-engineer.md +129 -0
- package/src/agents/refactor.md +138 -0
- package/src/agents/release-manager.md +132 -0
- package/src/agents/security-engineer.md +143 -0
- package/src/agents/seo-specialist.md +129 -0
- package/src/agents/site-reliability-engineer.md +131 -0
- package/src/agents/solutions-architect.md +137 -0
- package/src/agents/technical-writer.md +129 -0
- package/src/agents/tester.md +135 -0
- package/src/agents/ux-designer.md +168 -0
- package/src/agents/zos-sysprog.md +134 -0
- package/src/config/setting-resolver.js +32 -0
- package/src/core/agent-registry.js +67 -0
- package/src/core/canonical-source.js +39 -0
- package/src/core/env-file-parser.js +82 -0
- package/src/core/feature-blocks.js +34 -0
- package/src/core/logger.js +12 -0
- package/src/core/markdown-state.js +36 -0
- package/src/core/policy-rules.js +32 -0
- package/src/core/project-root-resolver.js +184 -0
- package/src/core/stdin-reader.js +77 -0
- package/src/core/version.js +50 -0
- package/src/entry-points/core-command-registry.js +37 -0
- package/src/entry-points/preamble-builders.js +54 -0
- package/src/entry-points/registry.js +199 -0
- package/src/entry-points/templates/claude-core-command.md.tmpl +38 -0
- package/src/entry-points/templates/claude-skill.md.tmpl +18 -0
- package/src/entry-points/templates/codex-core-command.md.tmpl +16 -0
- package/src/entry-points/templates/codex-skill.md.tmpl +11 -0
- package/src/entry-points/templates/gemini-command.toml.tmpl +17 -0
- package/src/entry-points/templates/gemini-core-command.toml.tmpl +30 -0
- package/src/generated/agent-registry.json +630 -0
- package/src/generated/hook-registry.json +18 -0
- package/src/generated/resource-registry.json +16 -0
- package/src/generator/entry-point-expander.js +182 -0
- package/src/generator/file-writer.js +167 -0
- package/src/generator/generation-session.js +62 -0
- package/src/generator/manifest-curator.js +31 -0
- package/src/generator/manifest-expander.js +256 -0
- package/src/generator/payload-builder.js +217 -0
- package/src/generator/registry-scanner.js +130 -0
- package/src/generator/stale-pruner.js +101 -0
- package/src/hooks/logic/after-agent-logic.js +54 -0
- package/src/hooks/logic/before-agent-logic.js +57 -0
- package/src/hooks/logic/hook-state.js +127 -0
- package/src/hooks/logic/session-end-logic.js +17 -0
- package/src/hooks/logic/session-start-logic.js +25 -0
- package/src/lib/discovery/index.js +172 -0
- package/src/lib/errors/index.js +104 -0
- package/src/lib/framework-detection.js +50 -0
- package/src/lib/frontmatter/index.js +262 -0
- package/src/lib/io/index.js +96 -0
- package/src/lib/naming/index.js +94 -0
- package/src/lib/validation/index.js +124 -0
- package/src/lib/yaml-emit.js +38 -0
- package/src/manifest.js +11 -0
- package/src/mcp/content/provider.js +68 -0
- package/src/mcp/content/runtime-content.js +188 -0
- package/src/mcp/contracts/cache-path-rejector.js +39 -0
- package/src/mcp/contracts/downstream-context.js +106 -0
- package/src/mcp/contracts/plan-schema.js +148 -0
- package/src/mcp/contracts/workspace-marker.js +61 -0
- package/src/mcp/core/create-server.js +76 -0
- package/src/mcp/core/line-reader.js +35 -0
- package/src/mcp/core/project-root-cache.js +120 -0
- package/src/mcp/core/protocol-dispatcher.js +274 -0
- package/src/mcp/core/recovery-hints.js +43 -0
- package/src/mcp/core/tool-outcome.js +77 -0
- package/src/mcp/core/tool-registry.js +82 -0
- package/src/mcp/handlers/assess-task-complexity.js +108 -0
- package/src/mcp/handlers/blocker-parser.js +34 -0
- package/src/mcp/handlers/design-gate.js +393 -0
- package/src/mcp/handlers/get-agent.js +54 -0
- package/src/mcp/handlers/get-runtime-context.js +49 -0
- package/src/mcp/handlers/get-skill-content.js +51 -0
- package/src/mcp/handlers/initialize-workspace.js +45 -0
- package/src/mcp/handlers/reconciliation.js +224 -0
- package/src/mcp/handlers/resolve-settings.js +39 -0
- package/src/mcp/handlers/session-state-core.js +108 -0
- package/src/mcp/handlers/session-state-tools.js +562 -0
- package/src/mcp/handlers/validate-plan.js +76 -0
- package/src/mcp/maestro-server.js +122 -0
- package/src/mcp/runtime/runtime-config-map.js +70 -0
- package/src/mcp/tool-packs/content/index.js +80 -0
- package/src/mcp/tool-packs/contracts.js +30 -0
- package/src/mcp/tool-packs/index.js +15 -0
- package/src/mcp/tool-packs/session/index.js +243 -0
- package/src/mcp/tool-packs/workspace/index.js +98 -0
- package/src/mcp/utils/extension-root.js +31 -0
- package/src/mcp/validation/agent-checker.js +81 -0
- package/src/mcp/validation/dag-checker.js +214 -0
- package/src/mcp/validation/file-overlap-checker.js +63 -0
- package/src/mcp/validation/schema-checker.js +108 -0
- package/src/platforms/claude/metadata.js +96 -0
- package/src/platforms/claude/runtime-config.js +60 -0
- package/src/platforms/codex/metadata.js +107 -0
- package/src/platforms/codex/runtime-config.js +58 -0
- package/src/platforms/gemini/metadata.js +27 -0
- package/src/platforms/gemini/runtime-config.js +62 -0
- package/src/platforms/metadata-shared.js +131 -0
- package/src/platforms/metadata.js +29 -0
- package/src/platforms/qwen/metadata.js +27 -0
- package/src/platforms/qwen/runtime-config.js +62 -0
- package/src/platforms/shared/adapters/claude-adapter.js +36 -0
- package/src/platforms/shared/adapters/conventions.js +29 -0
- package/src/platforms/shared/adapters/exit-codes.js +6 -0
- package/src/platforms/shared/adapters/factory.js +40 -0
- package/src/platforms/shared/adapters/gemini-adapter.js +34 -0
- package/src/platforms/shared/adapters/qwen-adapter.js +93 -0
- package/src/platforms/shared/agent-names.js +10 -0
- package/src/platforms/shared/hook-runner.js +52 -0
- package/src/references/architecture.md +139 -0
- package/src/references/orchestration-steps.md +193 -0
- package/src/scripts/ensure-workspace.js +14 -0
- package/src/scripts/read-active-session.js +26 -0
- package/src/scripts/read-setting.js +18 -0
- package/src/scripts/read-state.js +17 -0
- package/src/scripts/write-state.js +22 -0
- package/src/skills/shared/code-review/SKILL.md +145 -0
- package/src/skills/shared/delegation/SKILL.md +370 -0
- package/src/skills/shared/delegation/protocols/agent-base-protocol.md +145 -0
- package/src/skills/shared/delegation/protocols/filesystem-safety-protocol.md +31 -0
- package/src/skills/shared/design-dialogue/SKILL.md +284 -0
- package/src/skills/shared/execution/SKILL.md +258 -0
- package/src/skills/shared/implementation-planning/SKILL.md +303 -0
- package/src/skills/shared/session-management/SKILL.md +314 -0
- package/src/skills/shared/validation/SKILL.md +204 -0
- package/src/state/session-state.js +113 -0
- package/src/templates/design-document.md +95 -0
- package/src/templates/implementation-plan.md +86 -0
- package/src/templates/session-state.md +68 -0
- package/src/transforms/agent-stub.js +29 -0
- package/src/transforms/extract-examples.js +63 -0
- package/src/transforms/index.js +35 -0
- package/src/transforms/parse-frontmatter.js +23 -0
- package/src/transforms/rebuild-frontmatter.js +147 -0
- package/src/transforms/skill-discovery-stub.js +27 -0
- package/src/transforms/skill-metadata.js +14 -0
package/docs/flow.md
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Maestro Orchestration Flow
|
|
2
|
+
|
|
3
|
+
The orchestration workflow is defined by 41 steps (numbered 0 through 40) in `src/references/orchestration-steps.md`. Two modes exist: **Standard** (medium/complex tasks) and **Express** (simple tasks).
|
|
4
|
+
|
|
5
|
+
## Standard Workflow
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌─────────────────────────────────────────────────┐
|
|
9
|
+
│ STARTUP │
|
|
10
|
+
│ Turn 1: get_runtime_context → resolve_settings │
|
|
11
|
+
│ → initialize_workspace → check session │
|
|
12
|
+
│ → assess_task_complexity │
|
|
13
|
+
│ → parse MAESTRO_DISABLED_AGENTS │
|
|
14
|
+
│ → STOP (no output in Turn 1) │
|
|
15
|
+
└───────────────────────┬─────────────────────────┘
|
|
16
|
+
▼
|
|
17
|
+
┌─────────────────────────────────────────────────┐
|
|
18
|
+
│ CLASSIFICATION │
|
|
19
|
+
│ Turn 2: Load architecture reference │
|
|
20
|
+
│ Classify: simple / medium / complex │
|
|
21
|
+
│ Route: simple → Express, else → Design │
|
|
22
|
+
└───────────────────────┬─────────────────────────┘
|
|
23
|
+
▼
|
|
24
|
+
┌─────────────────────────────────────────────────┐
|
|
25
|
+
│ PHASE 1: DESIGN │
|
|
26
|
+
│ Load design-dialogue skill │
|
|
27
|
+
│ Structured conversation (depth: quick/std/deep)│
|
|
28
|
+
│ Present sections one-at-a-time for approval │
|
|
29
|
+
│ Write design document to state_dir/plans/ │
|
|
30
|
+
└───────────────────────┬─────────────────────────┘
|
|
31
|
+
▼
|
|
32
|
+
┌─────────────────────────────────────────────────┐
|
|
33
|
+
│ PHASE 2: PLANNING │
|
|
34
|
+
│ Load implementation-planning skill │
|
|
35
|
+
│ Generate phased plan with dependencies │
|
|
36
|
+
│ HARD-GATE: validate_plan before presenting │
|
|
37
|
+
│ User approval: Approve / Revise / Abort │
|
|
38
|
+
│ Write plan to state_dir/plans/ │
|
|
39
|
+
└───────────────────────┬─────────────────────────┘
|
|
40
|
+
▼
|
|
41
|
+
┌─────────────────────────────────────────────────┐
|
|
42
|
+
│ PHASE 3: EXECUTION │
|
|
43
|
+
│ Load execution + delegation skills │
|
|
44
|
+
│ Execution Mode Gate: parallel / sequential │
|
|
45
|
+
│ Create session via MCP │
|
|
46
|
+
│ For each phase: │
|
|
47
|
+
│ → get_agent for methodology │
|
|
48
|
+
│ → Delegate with protocols + context chain │
|
|
49
|
+
│ → Parse Task Report + Downstream Context │
|
|
50
|
+
│ → transition_phase (HARD-GATE per phase) │
|
|
51
|
+
└───────────────────────┬─────────────────────────┘
|
|
52
|
+
▼
|
|
53
|
+
┌─────────────────────────────────────────────────┐
|
|
54
|
+
│ PHASE 4: COMPLETION │
|
|
55
|
+
│ Load code-review skill │
|
|
56
|
+
│ Delegate to code-reviewer (if non-doc changes) │
|
|
57
|
+
│ HARD-GATE: Block on Critical/Major findings │
|
|
58
|
+
│ Archive session (if MAESTRO_AUTO_ARCHIVE) │
|
|
59
|
+
│ Present final summary │
|
|
60
|
+
└─────────────────────────────────────────────────┘
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Express Workflow
|
|
64
|
+
|
|
65
|
+
For simple tasks (1 phase, 1 agent):
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
CLASSIFICATION → simple
|
|
69
|
+
│
|
|
70
|
+
▼
|
|
71
|
+
Ask 1-2 clarifying questions
|
|
72
|
+
│
|
|
73
|
+
▼
|
|
74
|
+
Present structured brief → User approval (HARD-GATE)
|
|
75
|
+
│
|
|
76
|
+
▼
|
|
77
|
+
Create session (workflow_mode="express", 1 phase)
|
|
78
|
+
│
|
|
79
|
+
▼
|
|
80
|
+
Delegate to single agent
|
|
81
|
+
│
|
|
82
|
+
▼
|
|
83
|
+
Parse Task Report → transition_phase (HARD-GATE)
|
|
84
|
+
│
|
|
85
|
+
▼
|
|
86
|
+
Code review → HARD-GATE on Critical/Major
|
|
87
|
+
│
|
|
88
|
+
▼
|
|
89
|
+
Archive session → Present summary
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Execution Modes
|
|
93
|
+
|
|
94
|
+
### Sequential
|
|
95
|
+
|
|
96
|
+
Phases execute one at a time in dependency order:
|
|
97
|
+
|
|
98
|
+
1. Verify blocked_by dependencies completed
|
|
99
|
+
2. Mark phase in_progress
|
|
100
|
+
3. Delegate to assigned agent
|
|
101
|
+
4. Parse handoff → update state
|
|
102
|
+
5. Mark completed → advance to next
|
|
103
|
+
|
|
104
|
+
### Parallel (Native)
|
|
105
|
+
|
|
106
|
+
Phases at the same dependency depth execute concurrently:
|
|
107
|
+
|
|
108
|
+
1. Compute dependency DAG → identify parallel batches
|
|
109
|
+
2. For each batch:
|
|
110
|
+
- Verify all blocking phases complete
|
|
111
|
+
- Slice by `MAESTRO_MAX_CONCURRENT` (0 = all)
|
|
112
|
+
- Emit contiguous agent calls in single turn
|
|
113
|
+
- Runtime parallelizes the calls
|
|
114
|
+
3. All batch members must complete before next batch
|
|
115
|
+
|
|
116
|
+
### Execution Mode Gate
|
|
117
|
+
|
|
118
|
+
Determines parallel vs. sequential:
|
|
119
|
+
|
|
120
|
+
1. If `MAESTRO_EXECUTION_MODE=parallel/sequential` → use directly
|
|
121
|
+
2. If `MAESTRO_EXECUTION_MODE=ask` (default):
|
|
122
|
+
- If ≤1 parallel-eligible phase → auto-select sequential
|
|
123
|
+
- If >50% parallel → recommend parallel
|
|
124
|
+
- Otherwise → recommend sequential
|
|
125
|
+
- Prompt user with recommendation
|
|
126
|
+
|
|
127
|
+
## Delegation Flow
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
Orchestrator Agent
|
|
131
|
+
│ │
|
|
132
|
+
├── get_agent("coder") ──────────► │
|
|
133
|
+
│◄── methodology + tools ──────────┤
|
|
134
|
+
│ │
|
|
135
|
+
├── Construct prompt: │
|
|
136
|
+
│ - agent-base-protocol │
|
|
137
|
+
│ - filesystem-safety-protocol │
|
|
138
|
+
│ - Task description │
|
|
139
|
+
│ - Progress context │
|
|
140
|
+
│ - File lists (create/modify) │
|
|
141
|
+
│ - Downstream consumer info │
|
|
142
|
+
│ - Tool restrictions │
|
|
143
|
+
│ - Validation commands │
|
|
144
|
+
│ │
|
|
145
|
+
├── Delegate ──────────────────────►│
|
|
146
|
+
│ │
|
|
147
|
+
│ ├── Step 1: Anchor to project
|
|
148
|
+
│ ├── Step 2: Scope verification
|
|
149
|
+
│ ├── Step 3: Convention extraction
|
|
150
|
+
│ ├── ... (task work) ...
|
|
151
|
+
│ ├── Run validation
|
|
152
|
+
│ │
|
|
153
|
+
│◄── ## Task Report ───────────────┤
|
|
154
|
+
│◄── ## Downstream Context ────────┤
|
|
155
|
+
│ │
|
|
156
|
+
├── Parse handoff │
|
|
157
|
+
├── transition_phase() │
|
|
158
|
+
└── Feed context to next phase │
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Context Chain
|
|
162
|
+
|
|
163
|
+
Information flows between phases via the Downstream Context:
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
Phase 1 (architect)
|
|
167
|
+
└── Downstream Context:
|
|
168
|
+
- Key Interfaces: UserService interface at src/services/user.ts
|
|
169
|
+
- Patterns: Repository pattern for data access
|
|
170
|
+
- Integration Points: /api/users endpoint
|
|
171
|
+
│
|
|
172
|
+
▼
|
|
173
|
+
Phase 2 (coder) receives:
|
|
174
|
+
- Phase 1's downstream context in prompt
|
|
175
|
+
- Files created by Phase 1
|
|
176
|
+
- Accumulated patterns
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Each agent's handoff report contains:
|
|
180
|
+
|
|
181
|
+
**Task Report**: status, files created/modified/deleted, decisions, validation result, errors, scope deviations
|
|
182
|
+
|
|
183
|
+
**Downstream Context**: key interfaces introduced, patterns established, integration points, assumptions, warnings
|
|
184
|
+
|
|
185
|
+
## Session Lifecycle
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
┌──────────┐
|
|
189
|
+
│ (none) │
|
|
190
|
+
└────┬─────┘
|
|
191
|
+
│ create_session
|
|
192
|
+
▼
|
|
193
|
+
┌──────────┐
|
|
194
|
+
┌──────│ active │──────┐
|
|
195
|
+
│ └────┬─────┘ │
|
|
196
|
+
│ │ │
|
|
197
|
+
resume│ transition_phase │ archive
|
|
198
|
+
│ │ │
|
|
199
|
+
│ ┌────▼─────┐ │
|
|
200
|
+
└──────│ active │──────┤
|
|
201
|
+
└──────────┘ │
|
|
202
|
+
▼
|
|
203
|
+
┌──────────┐
|
|
204
|
+
│ archived │
|
|
205
|
+
└──────────┘
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Hard Gates
|
|
209
|
+
|
|
210
|
+
Non-negotiable checkpoints that block progression:
|
|
211
|
+
|
|
212
|
+
| Gate | Location | Condition |
|
|
213
|
+
|------|----------|-----------|
|
|
214
|
+
| Tech recommendations | Step 11 | Must recommend vanilla HTML/CSS/JS for static delivery unless framework explicitly required |
|
|
215
|
+
| Design sections | Step 12 | Each section presented individually and approved |
|
|
216
|
+
| validate_plan | Step 16 | Plan must pass validation before user sees it |
|
|
217
|
+
| Execution mode | Step 19 | Must present only Parallel and Sequential options |
|
|
218
|
+
| Agent dispatch | Step 23 | Must dispatch by agent's registered tool directly |
|
|
219
|
+
| transition_phase | Step 25 | Must be called individually for EVERY completed phase |
|
|
220
|
+
| Code review | Step 28 | Critical/Major findings block completion |
|
|
221
|
+
| Express 1-phase | Step 31 | Express sessions must have exactly one phase |
|
|
222
|
+
| Express questions | Step 32 | Each question must use user prompt tool |
|
|
223
|
+
| Express brief | Step 33 | Must present as plain text + separate approval prompt |
|
|
224
|
+
| Express agent | Step 36 | Must delegate by specific agent tool, not generalist |
|
|
225
|
+
| Express transition_phase | Step 37 | Must call transition_phase after implementing agent returns |
|
|
226
|
+
| Express review | Step 38 | Re-delegate on Critical/Major findings (1 retry) |
|
|
227
|
+
|
|
228
|
+
## Error Handling
|
|
229
|
+
|
|
230
|
+
- Max retries per phase: `MAESTRO_MAX_RETRIES` (default: 2)
|
|
231
|
+
- First failure: analyze, adjust context, retry automatically
|
|
232
|
+
- Limit exceeded: mark failed, escalate to user
|
|
233
|
+
- File conflicts: stop immediately, ask user
|
|
234
|
+
- Timeout/termination: record partial output, retry or escalate
|
|
235
|
+
|
|
236
|
+
## Recovery
|
|
237
|
+
|
|
238
|
+
When flow breaks:
|
|
239
|
+
- Moved too fast → return to most recent unanswered gate
|
|
240
|
+
- User asks for implementation before approval → remind them Maestro requires approval first
|
|
241
|
+
- User asks to skip execution-mode → remind them it's required
|
|
242
|
+
- Answer invalidates prior choice → restate assumption, re-run gate
|
|
243
|
+
- Delegation collapses → return to execution setup or re-scope
|
|
244
|
+
|
|
245
|
+
## Resume
|
|
246
|
+
|
|
247
|
+
When resuming an interrupted session:
|
|
248
|
+
1. Read active session state
|
|
249
|
+
2. Identify: last completed phase, current phase, failed phases
|
|
250
|
+
3. Check for unresolved errors
|
|
251
|
+
4. Present summary to user
|
|
252
|
+
5. Handle errors: retry/skip/abort/adjust
|
|
253
|
+
6. Continue from pending/failed phase
|
|
254
|
+
|
|
255
|
+
Express resume follows the same pattern but maps to Express steps based on phase status.
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Maestro Cheatsheet
|
|
2
|
+
|
|
3
|
+
This document summarizes the minimum commands and concepts for using Maestro across the supported runtimes.
|
|
4
|
+
|
|
5
|
+
## 1. Runtime Matrix
|
|
6
|
+
|
|
7
|
+
| Runtime | Install | Entry Point |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| Gemini CLI | `gemini extensions install https://github.com/josstei/maestro-orchestrate` | `/maestro:*` |
|
|
10
|
+
| Claude Code | `claude plugin marketplace add josstei/maestro-orchestrate` + `claude plugin install maestro@maestro-orchestrator --scope user` | `/orchestrate`, `/review-code`, `/status`, ... |
|
|
11
|
+
| Codex CLI | `codex plugin marketplace add josstei/maestro-orchestrate`, then install Maestro inside Codex via `/plugins` | `$maestro:*` |
|
|
12
|
+
| Qwen Code | `qwen extensions install https://github.com/josstei/maestro-orchestrate` | `/maestro:*` |
|
|
13
|
+
|
|
14
|
+
## 2. Most Common Commands
|
|
15
|
+
|
|
16
|
+
| Capability | Gemini CLI | Claude Code | Codex CLI | Qwen Code |
|
|
17
|
+
|---|---|---|---|---|
|
|
18
|
+
| Start the full workflow | `/maestro:orchestrate <task>` | `/orchestrate <task>` | `$maestro:orchestrate <task>` | `/maestro:orchestrate <task>` |
|
|
19
|
+
| Run an existing plan | `/maestro:execute` | `/execute` | `$maestro:execute` | `/maestro:execute` |
|
|
20
|
+
| Check status | `/maestro:status` | `/status` | `$maestro:status` | `/maestro:status` |
|
|
21
|
+
| Resume a session | `/maestro:resume` | `/resume-session` | `$maestro:resume-session` | `/maestro:resume` |
|
|
22
|
+
| Archive | `/maestro:archive` | `/archive` | `$maestro:archive` | `/maestro:archive` |
|
|
23
|
+
| Code review | `/maestro:review` | `/review-code` | `$maestro:review-code` | `/maestro:review` |
|
|
24
|
+
| Debug | `/maestro:debug` | `/debug-workflow` | `$maestro:debug-workflow` | `/maestro:debug` |
|
|
25
|
+
| Security audit | `/maestro:security-audit` | `/security-audit` | `$maestro:security-audit` | `/maestro:security-audit` |
|
|
26
|
+
| Perf check | `/maestro:perf-check` | `/perf-check` | `$maestro:perf-check` | `/maestro:perf-check` |
|
|
27
|
+
| SEO audit | `/maestro:seo-audit` | `/seo-audit` | `$maestro:seo-audit` | `/maestro:seo-audit` |
|
|
28
|
+
| A11y audit | `/maestro:a11y-audit` | `/a11y-audit` | `$maestro:a11y-audit` | `/maestro:a11y-audit` |
|
|
29
|
+
| Compliance check | `/maestro:compliance-check` | `/compliance-check` | `$maestro:compliance-check` | `/maestro:compliance-check` |
|
|
30
|
+
|
|
31
|
+
## 3. Minimal Usage Examples
|
|
32
|
+
|
|
33
|
+
### Start a new task
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
/maestro:orchestrate Build a REST API with authentication
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Claude Code:
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
/orchestrate Build a REST API with authentication
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Codex CLI:
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
$maestro:orchestrate Build a REST API with authentication
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Check the current session
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
/maestro:status
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Claude Code:
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
/status
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Codex CLI:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
$maestro:status
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## 4. Workflow Mental Model
|
|
70
|
+
|
|
71
|
+
Maestro first classifies task complexity, then follows one of two modes:
|
|
72
|
+
|
|
73
|
+
### Express
|
|
74
|
+
|
|
75
|
+
Best for simple tasks:
|
|
76
|
+
|
|
77
|
+
1. Ask 1–2 clarifying questions
|
|
78
|
+
2. Produce a brief
|
|
79
|
+
3. Run a single specialist
|
|
80
|
+
4. Code review
|
|
81
|
+
5. Archive the session
|
|
82
|
+
|
|
83
|
+
### Standard
|
|
84
|
+
|
|
85
|
+
Best for medium to complex tasks:
|
|
86
|
+
|
|
87
|
+
1. **Design**
|
|
88
|
+
2. **Plan**
|
|
89
|
+
3. **Execute**
|
|
90
|
+
4. **Complete**
|
|
91
|
+
|
|
92
|
+
Key gates:
|
|
93
|
+
|
|
94
|
+
- design approval
|
|
95
|
+
- `validate_plan`
|
|
96
|
+
- execution mode gate
|
|
97
|
+
- `transition_phase`
|
|
98
|
+
- code review blocks unresolved Critical / Major findings
|
|
99
|
+
|
|
100
|
+
## 5. Session State Location
|
|
101
|
+
|
|
102
|
+
Maestro stores session state inside the workspace:
|
|
103
|
+
|
|
104
|
+
```text
|
|
105
|
+
docs/maestro/
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Common paths:
|
|
109
|
+
|
|
110
|
+
- `docs/maestro/state/active-session.md`
|
|
111
|
+
- `docs/maestro/plans/`
|
|
112
|
+
- `docs/maestro/state/archive/`
|
|
113
|
+
- `docs/maestro/plans/archive/`
|
|
114
|
+
|
|
115
|
+
## 6. Runtime Differences at a Glance
|
|
116
|
+
|
|
117
|
+
### Gemini CLI
|
|
118
|
+
|
|
119
|
+
- Command entry point: `/maestro:*`
|
|
120
|
+
- Supports hooks
|
|
121
|
+
- Uses TOML policy files
|
|
122
|
+
- Agent naming: `snake_case`
|
|
123
|
+
|
|
124
|
+
### Claude Code
|
|
125
|
+
|
|
126
|
+
- Command entry point: `/orchestrate`, `/review-code`, `/status`, ...
|
|
127
|
+
- Supports hooks
|
|
128
|
+
- Uses `PreToolUse` matchers and policy enforcement
|
|
129
|
+
- Agent naming: `kebab-case`
|
|
130
|
+
|
|
131
|
+
### Codex CLI
|
|
132
|
+
|
|
133
|
+
- Command entry point: `$maestro:*`
|
|
134
|
+
- **No runtime hooks**
|
|
135
|
+
- Uses plugin skills + `spawn_agent`
|
|
136
|
+
- Built-in `/review`, `/debug`, and `/resume` conflict with the host, so Maestro uses:
|
|
137
|
+
- `$maestro:review-code`
|
|
138
|
+
- `$maestro:debug-workflow`
|
|
139
|
+
- `$maestro:resume-session`
|
|
140
|
+
|
|
141
|
+
### Qwen Code
|
|
142
|
+
|
|
143
|
+
- Command entry point: `/maestro:*`
|
|
144
|
+
- Same command surface as Gemini CLI
|
|
145
|
+
|
|
146
|
+
## 7. Hook Reference
|
|
147
|
+
|
|
148
|
+
### Gemini CLI
|
|
149
|
+
|
|
150
|
+
- `SessionStart`
|
|
151
|
+
- `BeforeAgent`
|
|
152
|
+
- `AfterAgent`
|
|
153
|
+
- `SessionEnd`
|
|
154
|
+
|
|
155
|
+
### Claude Code
|
|
156
|
+
|
|
157
|
+
- `SessionStart`
|
|
158
|
+
- `PreToolUse` + `Agent`
|
|
159
|
+
- `PreToolUse` + `Bash`
|
|
160
|
+
- `SessionEnd`
|
|
161
|
+
|
|
162
|
+
### Codex CLI
|
|
163
|
+
|
|
164
|
+
- No runtime hooks
|
|
165
|
+
|
|
166
|
+
## 8. Common Notes
|
|
167
|
+
|
|
168
|
+
### Codex CLI
|
|
169
|
+
|
|
170
|
+
- Use `$maestro:...`, not `/maestro:...`
|
|
171
|
+
- Because `review/debug/resume` names conflict with built-in host commands, use:
|
|
172
|
+
- `$maestro:review-code`
|
|
173
|
+
- `$maestro:debug-workflow`
|
|
174
|
+
- `$maestro:resume-session`
|
|
175
|
+
|
|
176
|
+
### Gemini / Qwen
|
|
177
|
+
|
|
178
|
+
- Experimental subagents must be enabled
|
|
179
|
+
- The config should include:
|
|
180
|
+
|
|
181
|
+
```json
|
|
182
|
+
{
|
|
183
|
+
"experimental": {
|
|
184
|
+
"enableAgents": true
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## 9. Suggested Reading Order
|
|
190
|
+
|
|
191
|
+
If you want to go deeper:
|
|
192
|
+
|
|
193
|
+
1. `README.md`
|
|
194
|
+
2. `EXAMPLES.md`
|
|
195
|
+
3. `docs/flow.md`
|
|
196
|
+
4. `docs/architecture.md`
|
|
197
|
+
5. `docs/runtime-gemini.md`
|
|
198
|
+
6. `docs/runtime-claude.md`
|
|
199
|
+
7. `docs/runtime-codex.md`
|
package/docs/overview.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Maestro Overview
|
|
2
|
+
|
|
3
|
+
Maestro is a multi-agent development orchestration platform that coordinates 39 specialized AI agents through structured workflows. It runs as four runtime targets from a single canonical source tree:
|
|
4
|
+
|
|
5
|
+
- **Gemini CLI extension** (root directory — `GEMINI.md`, `gemini-extension.json`, shared `agents/`, `commands/maestro/`)
|
|
6
|
+
- **Claude Code plugin** (`claude/` subdirectory)
|
|
7
|
+
- **Codex plugin** (`plugins/maestro/` subdirectory)
|
|
8
|
+
- **Qwen Code extension** (`qwen/` subdirectory — `qwen-extension.json` manifest + `QWEN.md` context file live at repo root; generated `qwen/agents/` and `qwen/hooks.json` live in the subdirectory)
|
|
9
|
+
|
|
10
|
+
The orchestrator adopts a TechLead persona that designs, plans, delegates to agents, validates, and reports.
|
|
11
|
+
|
|
12
|
+
## What Maestro Does
|
|
13
|
+
|
|
14
|
+
Maestro takes a development task and orchestrates it through a structured workflow:
|
|
15
|
+
|
|
16
|
+
1. **Classifies** the task as simple, medium, or complex
|
|
17
|
+
2. **Designs** the solution through structured dialogue (standard mode)
|
|
18
|
+
3. **Plans** the implementation with phased execution and dependency analysis
|
|
19
|
+
4. **Delegates** work to specialized agents (coder, architect, tester, etc.)
|
|
20
|
+
5. **Validates** each phase output with build/lint/test checks
|
|
21
|
+
6. **Reviews** the final result with a code review agent
|
|
22
|
+
7. **Archives** the session state for future reference
|
|
23
|
+
|
|
24
|
+
Simple tasks use an **Express workflow** (1 agent, 1 phase), while medium/complex tasks use the full **Standard workflow** with multi-phase execution.
|
|
25
|
+
|
|
26
|
+
## Key Numbers
|
|
27
|
+
|
|
28
|
+
| Metric | Count |
|
|
29
|
+
|--------|-------|
|
|
30
|
+
| Specialized agents | 39 |
|
|
31
|
+
| MCP tools | 17 |
|
|
32
|
+
| Shared skills | 7 |
|
|
33
|
+
| Entry-point commands | 9 (+ 3 core) |
|
|
34
|
+
| Runtime targets | 4 |
|
|
35
|
+
| Source transforms | 6 |
|
|
36
|
+
| Test cases | see `just test` output (70+ files across unit, transforms, integration) |
|
|
37
|
+
|
|
38
|
+
## Project Structure
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
maestro-orchestrate/
|
|
42
|
+
├── src/ # Canonical source (edit here)
|
|
43
|
+
│ ├── agents/ # 39 agent definitions
|
|
44
|
+
│ ├── skills/shared/ # 7 shared methodology modules + protocols
|
|
45
|
+
│ ├── templates/ # Session state, design doc, impl plan
|
|
46
|
+
│ ├── references/ # Architecture ref, orchestration steps
|
|
47
|
+
│ ├── transforms/ # Generator transform library
|
|
48
|
+
│ ├── entry-points/ # 9 entry-point + 3 core-command registries, preamble builders, 6 templates
|
|
49
|
+
│ ├── config/ # Canonical config helpers
|
|
50
|
+
│ ├── core/ # Shared runtime helpers and resolvers
|
|
51
|
+
│ ├── state/ # Session-state helpers
|
|
52
|
+
│ ├── hooks/ # Shared hook logic modules
|
|
53
|
+
│ │ └── logic/ # Hook implementations (session-start, before-agent, after-agent, session-end, hook-state)
|
|
54
|
+
│ ├── mcp/ # Canonical MCP server modules
|
|
55
|
+
│ ├── platforms/ # Runtime adapters, manifests, and public shells
|
|
56
|
+
│ ├── scripts/ # Runtime helper scripts (workspace, session, settings)
|
|
57
|
+
│ └── manifest.js # Declarative file mapping rules
|
|
58
|
+
├── scripts/
|
|
59
|
+
│ └── generate.js # Generator (manifest → output)
|
|
60
|
+
├── tests/ # 71 test files, 980 tests (see `just test` output)
|
|
61
|
+
│
|
|
62
|
+
├── agents/ # [generated] Gemini agent stubs
|
|
63
|
+
├── commands/maestro/ # [generated] Gemini TOML commands
|
|
64
|
+
├── hooks/ # [generated] Gemini hook adapters
|
|
65
|
+
├── mcp/ # [generated] Gemini MCP adapter
|
|
66
|
+
├── policies/ # [generated] Gemini shell policies
|
|
67
|
+
│
|
|
68
|
+
├── claude/ # [generated] Claude Code plugin
|
|
69
|
+
│ ├── agents/ # Claude agent stubs
|
|
70
|
+
│ ├── skills/ # Claude skills (19)
|
|
71
|
+
│ ├── hooks/ # Hook config (claude-hooks.json)
|
|
72
|
+
│ ├── scripts/ # Claude hook scripts
|
|
73
|
+
│ ├── mcp/ # Claude MCP adapter
|
|
74
|
+
│ ├── .claude-plugin/ # Plugin manifest
|
|
75
|
+
│ └── .mcp.json # MCP server config
|
|
76
|
+
│
|
|
77
|
+
├── plugins/maestro/ # [generated] Codex plugin
|
|
78
|
+
│ ├── skills/ # Codex skills (19)
|
|
79
|
+
│ ├── src/ # generated detached runtime payload
|
|
80
|
+
│ ├── references/ # Runtime guide
|
|
81
|
+
│ ├── .codex-plugin/ # Plugin manifest
|
|
82
|
+
│ ├── .mcp.json # MCP server config (spawns bin via npx)
|
|
83
|
+
│ ├── .app.json # App config
|
|
84
|
+
│ └── README.md
|
|
85
|
+
│
|
|
86
|
+
└── qwen/ # [generated] Qwen Code extension
|
|
87
|
+
├── agents/ # Qwen agent stubs (39, snake_case, Qwen tool names)
|
|
88
|
+
└── hooks.json # Qwen hook registration
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Core Concepts
|
|
92
|
+
|
|
93
|
+
### Agents
|
|
94
|
+
|
|
95
|
+
39 specialized agents, each with a defined methodology, tool restrictions, and capability tier:
|
|
96
|
+
|
|
97
|
+
| Tier | Capability | Agents |
|
|
98
|
+
|------|-----------|--------|
|
|
99
|
+
| `read_only` | Read, search, analyze | architect, api-designer, code-reviewer, content-strategist, compliance-reviewer, cloud-architect, solutions-architect |
|
|
100
|
+
| `read_shell` | Read + shell execution | debugger, performance-engineer, security-engineer, seo-specialist, accessibility-specialist, database-administrator, site-reliability-engineer, db2-dba, zos-sysprog |
|
|
101
|
+
| `read_write` | Read + create/modify files | technical-writer, product-manager, ux-designer, copywriter, release-manager, prompt-engineer |
|
|
102
|
+
| `full` | All tools | coder, data-engineer, devops-engineer, tester, refactor, design-system-engineer, i18n-specialist, analytics-engineer, ml-engineer, mlops-engineer, mobile-engineer, cobol-engineer, observability-engineer, platform-engineer, integration-engineer, hlasm-assembler-specialist, ibm-i-specialist |
|
|
103
|
+
|
|
104
|
+
### MCP Server
|
|
105
|
+
|
|
106
|
+
A bundled Model Context Protocol server providing 17 tools across 3 packs:
|
|
107
|
+
|
|
108
|
+
- **Workspace** (4): initialize_workspace, assess_task_complexity, validate_plan, resolve_settings
|
|
109
|
+
- **Session** (10): create_session, get_session_status, update_session, transition_phase, archive_session, enter_design_gate, record_design_approval, get_design_gate_status, scan_phase_changes, reconcile_phase
|
|
110
|
+
- **Content** (3): get_skill_content, get_agent, get_runtime_context
|
|
111
|
+
|
|
112
|
+
### Skills
|
|
113
|
+
|
|
114
|
+
7 shared methodology modules loaded on-demand via MCP:
|
|
115
|
+
|
|
116
|
+
- **delegation** — Agent dispatch rules, prompt templates, tool restrictions
|
|
117
|
+
- **execution** — Phase execution with parallel/sequential modes
|
|
118
|
+
- **validation** — Build/lint/test pipeline per project type
|
|
119
|
+
- **session-management** — Session creation, tracking, archival, resume
|
|
120
|
+
- **implementation-planning** — Phase decomposition from designs
|
|
121
|
+
- **code-review** — Severity-classified review with deduplication
|
|
122
|
+
- **design-dialogue** — Structured requirements gathering with depth levels
|
|
123
|
+
|
|
124
|
+
### Generator
|
|
125
|
+
|
|
126
|
+
A manifest-driven code generator (`scripts/generate.js`) transforms canonical source into runtime-specific adapter output. It applies frontmatter, stub, and metadata transforms, emits only the public files each runtime needs, and maintains a zero-drift guarantee enforced by CI.
|
|
127
|
+
|
|
128
|
+
### State Management
|
|
129
|
+
|
|
130
|
+
Session state lives in `docs/maestro/` (configurable via `MAESTRO_STATE_DIR`):
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
docs/maestro/
|
|
134
|
+
├── state/
|
|
135
|
+
│ ├── active-session.md # Current session (YAML frontmatter + log)
|
|
136
|
+
│ └── archive/ # Completed sessions
|
|
137
|
+
└── plans/
|
|
138
|
+
├── *-design.md # Design documents
|
|
139
|
+
├── *-impl-plan.md # Implementation plans
|
|
140
|
+
└── archive/ # Archived plans
|
|
141
|
+
```
|