Skip to content

Phase: Architecting

Related source files: src/agentmux/workflow/handlers/architecting.py, src/agentmux/workflow/phase_registry.py, src/agentmux/workflow/prompts.py, src/agentmux/integrations/mcp_server.py Directory: 02_architecting/ | Optional: no Research directory: 03_research/ | Optional: on-demand

The architect produces a technical architecture document describing what will be built and with what tools/libraries. It may also spawn research tasks (code or web) before submitting.

Conditions

Runs at pipeline start (unless product_management is active and not yet done). Also re-entered when the user requests changes at the completion stage (changes_requested event).

Role

architect agent — produces architecture.md. code-researcher and web-researcher agents — spawned on demand by the architect to gather context before submitting.

Artifacts

FileWriterReaderFormat
architect_prompt.mdorchestratorarchitect agentMarkdown prompt
changes_prompt.mdorchestratorarchitect agent (on replanning)Markdown
architecture.mdarchitect agent (via submit_architecture)planner (via prompt injection)Markdown

Research (03_research/)

Research tasks are spawned on-demand by the architect during the architecting phase. Each task gets its own subdirectory.

FileWriterReaderFormat
code-<topic>/request.mdarchitect agentcode-researcher agentMarkdown
code-<topic>/prompt.mdorchestratorcode-researcher agentMarkdown prompt
code-<topic>/summary.mdcode-researcher agentarchitect, planner, coder (via prompt)Markdown
code-<topic>/detail.mdcode-researcher agentarchitect, planner, coder (via prompt)Markdown
code-<topic>/donecode-researcher agentorchestratorempty marker
web-<topic>/request.mdarchitect agentweb-researcher agentMarkdown
web-<topic>/prompt.mdorchestratorweb-researcher agentMarkdown prompt
web-<topic>/summary.mdweb-researcher agentarchitect, planner, coder (via prompt)Markdown
web-<topic>/detail.mdweb-researcher agentarchitect, planner, coder (via prompt)Markdown
web-<topic>/doneweb-researcher agentorchestratorempty marker

Research results are injected into the next architect/planner/coder prompt via the research_handoff placeholder.

Transitions

FromEventTo
product_management or pipeline startarchitecting
completingchanges_requestedarchitecting (re-planning)
architectingarchitecture_written (on architecture.md submitted)planning

Notes

  • architecture.md is free-form Markdown; it has no structured YAML schema. The planner reads it directly.
  • Research tasks run within the architecting phase; the architect waits for them to complete before submitting.
  • See Research Dispatch for details on how code and web research tasks are managed.

Released under the MIT License.