# emorineaux/ia-agent-system-generator architecture

> Architecture diagram of the GitHub repository emorineaux/ia-agent-system-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/emorineaux/ia-agent-system-generator
- Repository: https://github.com/emorineaux/ia-agent-system-generator

## Overview

Agent Workflow Generator is a local Python CLI that scans a target project, gathers or infers initialization context, then previews and applies Markdown workflow changes. Its documented capabilities include editing existing context, generating portable reviewer and TDD roles, and adding native agent-tool profiles. The implementation is concentrated in one source file; nodes therefore share its path. Relationships among the finer-grained stages are documented in the README, while the excerpts show only selected internal functions, so unsampled details are not inferred.

Main entry points: [`workflow.py`](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py) (Workflow proposals)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_init["Project initialization"]
  node_cli["Init CLI<br/>[workflow.py]"]
  node_scan["Project scan<br/>[workflow.py]"]
  node_questionnaire["Questionnaire<br/>[workflow.py]"]
  node_context_summary["Context summary<br/>[workflow.py]"]
end

subgraph group_authoring["Context authoring"]
  node_edit_existing["Existing-file editor<br/>[workflow.py]"]
  node_proposals["Workflow proposals<br/>[workflow.py]"]
  node_diff["Diff preview<br/>[workflow.py]"]
end

subgraph group_harness["Agent harness"]
  node_portable_roles["Portable roles<br/>[workflow.py]"]
  node_tdd_workflow["TDD workflow<br/>[workflow.py]"]
  node_tool_profiles["Native tool profiles<br/>[workflow.py]"]
end

node_user(("Project maintainer"))
node_project_files["Target project files"]

node_user -->|"runs init"| node_cli
node_cli -->|"scans target"| node_scan
node_cli -->|"asks questions"| node_questionnaire
node_scan -->|"provides detected facts"| node_context_summary
node_questionnaire -->|"supplies answers"| node_proposals
node_context_summary -->|"prefills context"| node_proposals
node_user -->|"selects edits"| node_edit_existing
node_edit_existing -->|"adds changes"| node_proposals
node_proposals -->|"shows changes"| node_diff
node_diff -->|"requests approval"| node_user
node_diff -->|"writes approved changes"| node_project_files
node_proposals -->|"generates roles"| node_portable_roles
node_proposals -->|"generates workflow"| node_tdd_workflow
node_proposals -->|"adds integrations"| node_tool_profiles
node_portable_roles -->|"writes Markdown"| node_project_files
node_tdd_workflow -->|"writes instructions"| node_project_files
node_tool_profiles -->|"writes profiles"| node_project_files

click node_cli "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_scan "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_questionnaire "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_context_summary "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_edit_existing "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_proposals "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_diff "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_portable_roles "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_tdd_workflow "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"
click node_tool_profiles "https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_scan,node_questionnaire,node_context_summary toneBlue
class node_edit_existing,node_proposals,node_diff toneAmber
class node_portable_roles,node_tdd_workflow,node_tool_profiles toneMint
class node_user,node_project_files toneIndigo
```

## Components

### Project initialization

- [Init CLI](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Project scan](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Questionnaire](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Context summary](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`

### Context authoring

- [Existing-file editor](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Workflow proposals](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Diff preview](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`

### Agent harness

- [Portable roles](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [TDD workflow](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`
- [Native tool profiles](https://github.com/emorineaux/ia-agent-system-generator/blob/main/workflow.py): `workflow.py`

### Other components

- **Project maintainer**
- **Target project files**

## Connections

- Project maintainer → Init CLI: runs init (evidence: `README.md`)
- Init CLI → Project scan: scans target (evidence: `README.md`)
- Init CLI → Questionnaire: asks questions (evidence: `README.md`)
- Project scan → Context summary: provides detected facts (evidence: `README.md`)
- Questionnaire → Workflow proposals: supplies answers (evidence: `README.md`)
- Context summary → Workflow proposals: prefills context (evidence: `README.md`)
- Project maintainer → Existing-file editor: selects edits (evidence: `README.md`)
- Existing-file editor → Workflow proposals: adds changes (evidence: `README.md`)
- Workflow proposals → Diff preview: shows changes (evidence: `README.md`)
- Diff preview → Project maintainer: requests approval (evidence: `README.md`)
- Diff preview → Target project files: writes approved changes (evidence: `README.md`)
- Workflow proposals → Portable roles: generates roles (evidence: `README.md`)
- Workflow proposals → TDD workflow: generates workflow (evidence: `README.md`)
- Workflow proposals → Native tool profiles: adds integrations (evidence: `README.md`)
- Portable roles → Target project files: writes Markdown (evidence: `README.md`)
- TDD workflow → Target project files: writes instructions (evidence: `README.md`)
- Native tool profiles → Target project files: writes profiles (evidence: `README.md`)
