# rcryan-hniht/agent-team architecture

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

- Interactive diagram: https://gitdiagram.com/rcryan-hniht/agent-team
- Repository: https://github.com/rcryan-hniht/agent-team

## Overview

`agt` is a Python CLI for configuring and managing a coordinated eight-role AI-agent team across Antigravity, Codex, and Claude Code. The main workflow is to start the CLI, configure or initialize a target project, and generate harness-native agent files; users can then inspect status, monitor activity, adjust model fallback chains, or clean generated configuration. The runtime is concentrated in `agent_team.py`, so several capabilities share that implementation path. The README documents these capabilities, but the sampled source is partial; internal call relationships not shown there are omitted.

Main entry points: [`agent_team.py`](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py) (agt CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI experience"]
  node_agt["agt CLI<br/>[agent_team.py]"]
  node_wizard["Interactive wizard<br/>[agent_team.py]"]
  node_monitor["Live monitor<br/>[agent_team.py]"]
  node_mascot_theme["Theme and mascots<br/>[agent_team.py]"]
end

subgraph group_setup["Team setup"]
  node_team_setup["Team initializer<br/>[agent_team.py]"]
  node_role_specs["Eight role specs<br/>[agent_team.py]"]
  node_model_fallback["Model fallback<br/>[agent_team.py]"]
  node_skill_selection["Skill selection<br/>[agent_team.py]"]
end

subgraph group_management["Project management"]
  node_status["Roster status<br/>[agent_team.py]"]
  node_telemetry["Token telemetry<br/>[agent_team.py]"]
  node_cleanup["Config cleanup<br/>[agent_team.py]"]
end

subgraph group_outputs["Generated configuration"]
  node_harness_config["Harness generators<br/>[agent_team.py]"]
  node_project_files["Generated project files"]
end

node_user(("Project user"))
node_target_project(("Target project"))

node_user -->|"runs commands"| node_agt
node_agt -->|"opens wizard"| node_wizard
node_agt -->|"initializes team"| node_team_setup
node_team_setup -->|"configures roles"| node_role_specs
node_team_setup -->|"selects skills"| node_skill_selection
node_team_setup -->|"generates configs"| node_harness_config
node_harness_config -->|"writes files"| node_project_files
node_project_files -->|"configures project"| node_target_project
node_agt -->|"shows roster"| node_status
node_agt -->|"starts monitor"| node_monitor
node_monitor -->|"shows token metrics"| node_telemetry
node_monitor -->|"renders theme"| node_mascot_theme
node_agt -->|"manages fallback"| node_model_fallback
node_agt -->|"removes configs"| node_cleanup
node_cleanup -->|"cleans project"| node_target_project

click node_agt "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_wizard "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_monitor "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_mascot_theme "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_team_setup "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_role_specs "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_model_fallback "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_skill_selection "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_harness_config "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_status "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_telemetry "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py"
click node_cleanup "https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.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_agt,node_wizard,node_monitor,node_mascot_theme,node_user toneBlue
class node_team_setup,node_role_specs,node_model_fallback,node_skill_selection toneAmber
class node_status,node_telemetry,node_cleanup toneMint
class node_harness_config,node_project_files toneRose
class node_target_project toneIndigo
```

## Components

### CLI experience

- [agt CLI](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Interactive wizard](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Live monitor](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Theme and mascots](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`

### Team setup

- [Team initializer](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Eight role specs](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Model fallback](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Skill selection](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`

### Project management

- [Roster status](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Token telemetry](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- [Config cleanup](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`

### Generated configuration

- [Harness generators](https://github.com/rcryan-hniht/agent-team/blob/main/agent_team.py): `agent_team.py`
- **Generated project files**

### Other components

- **Project user**
- **Target project**

## Connections

- Project user → agt CLI: runs commands (evidence: `README.md`)
- agt CLI → Interactive wizard: opens wizard (evidence: `README.md`)
- agt CLI → Team initializer: initializes team (evidence: `README.md`)
- Team initializer → Eight role specs: configures roles (evidence: `README.md`)
- Team initializer → Skill selection: selects skills (evidence: `README.md`)
- Team initializer → Harness generators: generates configs (evidence: `README.md`)
- Harness generators → Generated project files: writes files (evidence: `README.md`)
- Generated project files → Target project: configures project (evidence: `README.md`)
- agt CLI → Roster status: shows roster (evidence: `README.md`)
- agt CLI → Live monitor: starts monitor (evidence: `README.md`)
- Live monitor → Token telemetry: shows token metrics (evidence: `README.md`)
- Live monitor → Theme and mascots: renders theme (evidence: `README.md`)
- agt CLI → Model fallback: manages fallback (evidence: `README.md`)
- agt CLI → Config cleanup: removes configs (evidence: `README.md`)
- Config cleanup → Target project: cleans project (evidence: `README.md`)
