# tofuadmiral/agentcon-presentation-2026-nyc architecture

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

- Interactive diagram: https://gitdiagram.com/tofuadmiral/agentcon-presentation-2026-nyc
- Repository: https://github.com/tofuadmiral/agentcon-presentation-2026-nyc

## Overview

This repository is a conference presentation about an AI-agent security improvement loop, not an implementation of a red-teaming service. The principal audience workflow is to open the browser-based slides and follow the loop they describe: run adversarial tests against an agent, capture and evaluate traces, turn failures into data, optimize prompts, and validate improvements. The graph represents that documented concept; source excerpts show presentation content, not the internals of the external products. The live presentation implementation was not sampled.

Main entry points: [`generate_pptx.py`](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py) (Target agent), [`index.html`](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/index.html) (Browser slides)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_audience(("Presentation audience"))
node_slides["Browser slides<br/>[index.html]"]
node_redteam["Red-team scan<br/>[generate_pptx.py]"]
node_agent["Target agent<br/>[generate_pptx.py]"]
node_traces["Trace evaluation<br/>[generate_pptx.py]"]
node_dataset[("Failure dataset<br/>[generate_pptx.py]")]
node_optimization["Prompt optimization<br/>[generate_pptx.py]"]
node_validation["Safety validation<br/>[generate_pptx.py]"]

node_audience -->|"views slides"| node_slides
node_redteam -->|"tests target"| node_agent
node_agent -->|"yields responses"| node_traces
node_traces -->|"builds failures"| node_dataset
node_dataset -->|"guides prompts"| node_optimization
node_optimization -->|"measures safety"| node_validation

click node_slides "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/index.html"
click node_redteam "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py"
click node_agent "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py"
click node_traces "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py"
click node_dataset "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py"
click node_optimization "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py"
click node_validation "https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.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_audience toneIndigo
class node_slides toneBlue
class node_redteam,node_agent,node_traces,node_optimization,node_validation toneTeal
class node_dataset toneAmber
```

## Components

### Other components

- **Presentation audience**
- [Browser slides](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/index.html): `index.html`
- [Red-team scan](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`
- [Target agent](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`
- [Trace evaluation](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`
- [Failure dataset](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`
- [Prompt optimization](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`
- [Safety validation](https://github.com/tofuadmiral/agentcon-presentation-2026-nyc/blob/main/generate_pptx.py): `generate_pptx.py`

## Connections

- Presentation audience → Browser slides: views slides (evidence: `README.md`)
- Red-team scan → Target agent: tests target (evidence: `generate_pptx.py`)
- Target agent → Trace evaluation: yields responses (evidence: `generate_pptx.py`)
- Trace evaluation → Failure dataset: builds failures (evidence: `generate_pptx.py`)
- Failure dataset → Prompt optimization: guides prompts (evidence: `generate_pptx.py`)
- Prompt optimization → Safety validation: measures safety (evidence: `generate_pptx.py`)
