# kamranazeem/simple-ai-workflow architecture

> Architecture diagram of the GitHub repository kamranazeem/simple-ai-workflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kamranazeem/simple-ai-workflow
- Repository: https://github.com/kamranazeem/simple-ai-workflow

## Overview

Simple AI Workflow is a file-based starter kit that lets a developer guide an AI assistant through bootstrap, context loading, work, and checkpoints. Its main result is portable project state and knowledge that another assistant can reload. The README also documents customization, policy guidance, recovery, and review capabilities. No source excerpts were provided, so edges below rely only on relationships explicitly stated in the README; unsampled implementation details are not inferred.

Main entry points: [`AGENTS.md`](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md) (Checkpoint), [`docs/ai-customization-guide.md`](https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/ai-customization-guide.md) (Customization guide), [`ai/state`](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/state) (Project state), [`ai/daily-checkpoints`](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/daily-checkpoints) (Daily diary)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Session workflow"]
  node_agents["Workflow protocol<br/>[AGENTS.md]"]
  node_bootstrap["Project bootstrap<br/>[AGENTS.md]"]
  node_context["Context loading<br/>[AGENTS.md]"]
  node_checkpoint["Checkpoint<br/>[AGENTS.md]"]
  node_recovery["Compaction recovery<br/>[AGENTS.md]"]
  node_backup["AI directory backup<br/>[AGENTS.md]"]
end

subgraph group_memory["Project memory"]
  node_project_state["Project state"]
  node_diary["Daily diary"]
  node_project_knowledge["Project knowledge"]
  node_global_knowledge["Global knowledge"]
  node_project_workspace["Project workspace"]
end

subgraph group_guidance["Setup and guidance"]
  node_customization["Project customization"]
  node_policies["Policy library"]
  node_customization_guide["Customization guide"]
  node_review_guide["Codebase examination"]
  node_collaboration["Assistant collaboration"]
end

node_developer(("Developer"))
node_assistant(("AI assistant"))

node_developer -->|"requests bootstrap"| node_assistant
node_developer -->|"requests context"| node_assistant
node_developer -->|"requests checkpoint"| node_assistant
node_developer -->|"requests recovery"| node_assistant
node_developer -->|"requests backup"| node_assistant
node_assistant -->|"follows protocol"| node_agents
node_assistant -->|"runs"| node_bootstrap
node_bootstrap -->|"sets up"| node_project_workspace
node_assistant -->|"loads"| node_context
node_context -->|"reads"| node_project_state
node_assistant -->|"runs"| node_checkpoint
node_checkpoint -->|"updates"| node_project_state
node_checkpoint -->|"refreshes"| node_diary
node_checkpoint -->|"refreshes"| node_project_knowledge
node_checkpoint -->|"refreshes"| node_global_knowledge
node_recovery -->|"reloads rules"| node_agents
node_assistant -->|"backs up"| node_backup
node_backup -->|"backs up ai directory"| node_project_workspace
node_developer -->|"uses setup guidance"| node_customization_guide
node_customization_guide -->|"configures"| node_customization
node_developer -->|"requests examination"| node_review_guide
node_developer -->|"uses collaboration guidance"| node_collaboration
node_assistant -.->|"uses policy files"| node_policies

click node_agents "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"
click node_bootstrap "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"
click node_context "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"
click node_checkpoint "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"
click node_recovery "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"
click node_project_state "https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/state"
click node_diary "https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/daily-checkpoints"
click node_project_knowledge "https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/shared/project-knowledge"
click node_global_knowledge "https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/global-user-settings.md"
click node_customization "https://github.com/kamranazeem/simple-ai-workflow/blob/master/ai-customization.md"
click node_policies "https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/policies"
click node_customization_guide "https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/ai-customization-guide.md"
click node_review_guide "https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/codebase-examination-guide.md"
click node_collaboration "https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/ai-agent-collaboration.md"
click node_backup "https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md"

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_agents,node_bootstrap,node_context,node_checkpoint,node_recovery,node_backup toneBlue
class node_project_state,node_diary,node_project_knowledge,node_global_knowledge,node_project_workspace toneAmber
class node_customization,node_policies,node_customization_guide,node_review_guide,node_collaboration toneMint
class node_developer,node_assistant toneIndigo
```

## Components

### Session workflow

- [Workflow protocol](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`
- [Project bootstrap](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`
- [Context loading](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`
- [Checkpoint](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`
- [Compaction recovery](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`
- [AI directory backup](https://github.com/kamranazeem/simple-ai-workflow/blob/master/AGENTS.md): `AGENTS.md`

### Project memory

- [Project state](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/state): `ai/state`
- [Daily diary](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/daily-checkpoints): `ai/daily-checkpoints`
- [Project knowledge](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/shared/project-knowledge): `ai/shared/project-knowledge`
- [Global knowledge](https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/global-user-settings.md): `docs/global-user-settings.md`
- **Project workspace**

### Setup and guidance

- [Project customization](https://github.com/kamranazeem/simple-ai-workflow/blob/master/ai-customization.md): `ai-customization.md`
- [Policy library](https://github.com/kamranazeem/simple-ai-workflow/tree/master/ai/policies): `ai/policies`
- [Customization guide](https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/ai-customization-guide.md): `docs/ai-customization-guide.md`
- [Codebase examination](https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/codebase-examination-guide.md): `docs/codebase-examination-guide.md`
- [Assistant collaboration](https://github.com/kamranazeem/simple-ai-workflow/blob/master/docs/ai-agent-collaboration.md): `docs/ai-agent-collaboration.md`

### Other components

- **Developer**
- **AI assistant**

## Connections

- Developer → AI assistant: requests bootstrap (evidence: `README.md`)
- Developer → AI assistant: requests context (evidence: `README.md`)
- Developer → AI assistant: requests checkpoint (evidence: `README.md`)
- Developer → AI assistant: requests recovery (evidence: `README.md`)
- Developer → AI assistant: requests backup (evidence: `README.md`)
- AI assistant → Workflow protocol: follows protocol (evidence: `README.md`)
- AI assistant → Project bootstrap: runs (evidence: `README.md`)
- Project bootstrap → Project workspace: sets up (evidence: `README.md`)
- AI assistant → Context loading: loads (evidence: `README.md`)
- Context loading → Project state: reads (evidence: `README.md`)
- AI assistant → Checkpoint: runs (evidence: `README.md`)
- Checkpoint → Project state: updates (evidence: `README.md`)
- Checkpoint → Daily diary: refreshes (evidence: `README.md`)
- Checkpoint → Project knowledge: refreshes (evidence: `README.md`)
- Checkpoint → Global knowledge: refreshes (evidence: `README.md`)
- Compaction recovery → Workflow protocol: reloads rules (evidence: `README.md`)
- AI assistant → AI directory backup: backs up (evidence: `README.md`)
- AI directory backup → Project workspace: backs up ai directory (evidence: `README.md`)
- Developer → Customization guide: uses setup guidance (evidence: `README.md`)
- Customization guide → Project customization: configures (evidence: `README.md`)
- Developer → Codebase examination: requests examination (evidence: `README.md`)
- Developer → Assistant collaboration: uses collaboration guidance (evidence: `README.md`)
- AI assistant → Policy library: uses policy files
