# mittal-parth/hackathon-curation-agent architecture

> Architecture diagram of the GitHub repository mittal-parth/hackathon-curation-agent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mittal-parth/hackathon-curation-agent
- Repository: https://github.com/mittal-parth/hackathon-curation-agent

## Overview

This is an automated hackathon-curation agent. Its principal workflow is coordinated by `src/main.py`: read labeled Gmail messages, identify candidate hackathon links, analyze and curate them against configured criteria, filter duplicates and store approved events in Google Sheets, then post selected new events to Twitter and report the run by email. The graph preserves these domain stages and the AI-analysis, persistence, and delivery integrations. Source excerpts show the orchestrator’s component setup and portions of the workflow; README statements support documented capabilities whose exact calls are not visible in those excerpts.

Main entry points: [`src/main.py`](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/main.py) (Curation Agent), [`src/email_processor.py`](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/email_processor.py) (Email Processor), [`src/hackathon_analyzer.py`](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/hackathon_analyzer.py) (Hackathon Analyzer), [`src/storage_manager.py`](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/storage_manager.py) (Sheets Storage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow"]
  node_agent["Curation Agent<br/>[main.py]"]
end

subgraph group_ingestion["Email Ingestion"]
  node_email["Email Processor<br/>[email_processor.py]"]
  node_gmail["Gmail"]
end

subgraph group_curation["AI Curation"]
  node_criteria["Curation Criteria<br/>[criteria.yaml]"]
  node_analyzer["Hackathon Analyzer"]
  node_gemini["Gemini Search"]
end

subgraph group_delivery["Storage &amp; Delivery"]
  node_storage["Sheets Storage<br/>[storage_manager.py]"]
  node_sheets[("Google Sheets")]
  node_poster["Twitter Poster<br/>[twitter_poster.py]"]
  node_twitter["Twitter"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_agent
node_agent -->|"coordinates"| node_email
node_email -->|"reads messages"| node_gmail
node_agent -->|"submits candidates"| node_analyzer
node_analyzer -->|"evaluates against"| node_criteria
node_analyzer -->|"analyzes with search"| node_gemini
node_agent -->|"filters and stores"| node_storage
node_storage -->|"reads and writes"| node_sheets
node_agent -->|"requests posts"| node_poster
node_poster -->|"publishes tweets"| node_twitter
node_agent -.->|"requests summary"| node_email
node_email -->|"sends report"| node_gmail

click node_agent "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/main.py"
click node_email "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/email_processor.py"
click node_criteria "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/config/criteria.yaml"
click node_analyzer "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/hackathon_analyzer.py"
click node_storage "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/storage_manager.py"
click node_poster "https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/twitter_poster.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_agent toneBlue
class node_email,node_gmail toneAmber
class node_criteria,node_analyzer,node_gemini toneMint
class node_storage,node_sheets,node_poster,node_twitter toneRose
class node_operator toneIndigo
```

## Components

### Workflow

- [Curation Agent](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/main.py): `src/main.py`

### Email Ingestion

- [Email Processor](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/email_processor.py): `src/email_processor.py`
- **Gmail**

### AI Curation

- [Curation Criteria](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/config/criteria.yaml): `config/criteria.yaml`
- [Hackathon Analyzer](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/hackathon_analyzer.py): `src/hackathon_analyzer.py`
- **Gemini Search**

### Storage & Delivery

- [Sheets Storage](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/storage_manager.py): `src/storage_manager.py`
- **Google Sheets**
- [Twitter Poster](https://github.com/mittal-parth/hackathon-curation-agent/blob/main/src/twitter_poster.py): `src/twitter_poster.py`
- **Twitter**

### Other components

- **Operator**

## Connections

- Operator → Curation Agent: runs (evidence: `README.md`)
- Curation Agent → Email Processor: coordinates (evidence: `src/main.py`)
- Email Processor → Gmail: reads messages (evidence: `src/email_processor.py`)
- Curation Agent → Hackathon Analyzer: submits candidates (evidence: `src/main.py`)
- Hackathon Analyzer → Curation Criteria: evaluates against (evidence: `README.md`)
- Hackathon Analyzer → Gemini Search: analyzes with search (evidence: `src/hackathon_analyzer.py`)
- Curation Agent → Sheets Storage: filters and stores (evidence: `src/main.py`)
- Sheets Storage → Google Sheets: reads and writes (evidence: `src/storage_manager.py`)
- Curation Agent → Twitter Poster: requests posts (evidence: `src/main.py`)
- Twitter Poster → Twitter: publishes tweets (evidence: `src/twitter_poster.py`)
- Curation Agent → Email Processor: requests summary (evidence: `README.md`)
- Email Processor → Gmail: sends report (evidence: `src/email_processor.py`)
