# siddarthakaleru/career-co-pilot architecture

> Architecture diagram of the GitHub repository siddarthakaleru/career-co-pilot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/siddarthakaleru/career-co-pilot
- Repository: https://github.com/siddarthakaleru/career-co-pilot

## Overview

Career Co-Polit is a Streamlit hub for two user-facing AI tools: PDF-based ATS resume analysis and a conversational chatbot. The ATS page gathers a resume and job description, builds a sequential CrewAI workflow, and presents its compiled report; the chatbot sends session history to Groq and displays the reply. The README documents the analysis stages and Groq integration; source excerpts show the page wiring and PDF reads. The chatbot’s API configuration differs from the README’s stated environment variable, so the graph shows the provider call without assuming configuration correctness.

Main entry points: [`pages/1_ATS.py`](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/1_ATS.py) (ATS page), [`tasks.py`](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py) (ATS scoring), [`pages/2_ChatBot.py`](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/2_ChatBot.py) (Chat page), [`app.py`](https://github.com/siddarthakaleru/career-co-pilot/blob/main/app.py) (Tool hub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Streamlit app"]
  node_hub["Tool hub<br/>[app.py]"]
  node_ats_page["ATS page<br/>[1_ATS.py]"]
  node_chat_page["Chat page<br/>[2_ChatBot.py]"]
end

subgraph group_ats["Resume analysis"]
  node_crew["Crew orchestration<br/>[1_ATS.py]"]
  node_agent_defs["Agent definitions<br/>[agents.py]"]
  node_pdf_reader["PDF text reader<br/>[file_read_tool.py]"]
  node_parse["Resume parsing<br/>[tasks.py]"]
  node_match["ATS scoring<br/>[tasks.py]"]
  node_fit["Fit summary<br/>[tasks.py]"]
  node_report["Report compilation<br/>[tasks.py]"]
end

subgraph group_chat["Chatbot"]
  node_chat_history["Session history<br/>[2_ChatBot.py]"]
end

subgraph group_services["AI services"]
  node_groq{{"Groq API"}}
end

node_user(("User"))

node_user -->|"opens"| node_hub
node_hub -->|"launches"| node_ats_page
node_hub -->|"launches"| node_chat_page
node_user -->|"submits inputs"| node_ats_page
node_ats_page -->|"creates agents"| node_agent_defs
node_ats_page -->|"creates task"| node_parse
node_ats_page -->|"creates task"| node_match
node_ats_page -->|"creates task"| node_fit
node_ats_page -->|"creates task"| node_report
node_ats_page -->|"assembles and starts"| node_crew
node_crew -->|"dispatches"| node_parse
node_crew -->|"dispatches"| node_match
node_crew -->|"dispatches"| node_fit
node_crew -->|"dispatches"| node_report
node_parse -->|"reads PDF"| node_pdf_reader
node_match -->|"reads PDF"| node_pdf_reader
node_fit -->|"reads PDF"| node_pdf_reader
node_parse -->|"provides context"| node_match
node_match -->|"provides context"| node_fit
node_parse -->|"provides context"| node_report
node_match -->|"provides context"| node_report
node_fit -->|"provides context"| node_report
node_crew -->|"returns report"| node_ats_page
node_agent_defs -->|"configures LLM"| node_groq
node_user -->|"sends message"| node_chat_page
node_chat_page -->|"stores and reads"| node_chat_history
node_chat_page -->|"requests completion"| node_groq
node_groq -->|"returns reply"| node_chat_page

click node_hub "https://github.com/siddarthakaleru/career-co-pilot/blob/main/app.py"
click node_ats_page "https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/1_ATS.py"
click node_chat_page "https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/2_ChatBot.py"
click node_crew "https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/1_ATS.py"
click node_agent_defs "https://github.com/siddarthakaleru/career-co-pilot/blob/main/agents.py"
click node_pdf_reader "https://github.com/siddarthakaleru/career-co-pilot/blob/main/tools/file_read_tool.py"
click node_parse "https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py"
click node_match "https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py"
click node_fit "https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py"
click node_report "https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py"
click node_chat_history "https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/2_ChatBot.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_hub,node_ats_page,node_chat_page,node_user toneBlue
class node_crew,node_agent_defs,node_pdf_reader,node_parse,node_match,node_fit,node_report toneAmber
class node_chat_history toneMint
class node_groq toneRose
```

## Components

### Streamlit app

- [Tool hub](https://github.com/siddarthakaleru/career-co-pilot/blob/main/app.py): `app.py`
- [ATS page](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/1_ATS.py): `pages/1_ATS.py`
- [Chat page](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/2_ChatBot.py): `pages/2_ChatBot.py`

### Resume analysis

- [Crew orchestration](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/1_ATS.py): `pages/1_ATS.py`
- [Agent definitions](https://github.com/siddarthakaleru/career-co-pilot/blob/main/agents.py): `agents.py`
- [PDF text reader](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tools/file_read_tool.py): `tools/file_read_tool.py`
- [Resume parsing](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py): `tasks.py`
- [ATS scoring](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py): `tasks.py`
- [Fit summary](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py): `tasks.py`
- [Report compilation](https://github.com/siddarthakaleru/career-co-pilot/blob/main/tasks.py): `tasks.py`

### Chatbot

- [Session history](https://github.com/siddarthakaleru/career-co-pilot/blob/main/pages/2_ChatBot.py): `pages/2_ChatBot.py`

### AI services

- **Groq API**

### Other components

- **User**

## Connections

- User → Tool hub: opens (evidence: `app.py`)
- Tool hub → ATS page: launches (evidence: `app.py`)
- Tool hub → Chat page: launches (evidence: `app.py`)
- User → ATS page: submits inputs (evidence: `pages/1_ATS.py`)
- ATS page → Agent definitions: creates agents (evidence: `pages/1_ATS.py`)
- ATS page → Resume parsing: creates task (evidence: `pages/1_ATS.py`)
- ATS page → ATS scoring: creates task (evidence: `pages/1_ATS.py`)
- ATS page → Fit summary: creates task (evidence: `pages/1_ATS.py`)
- ATS page → Report compilation: creates task (evidence: `pages/1_ATS.py`)
- ATS page → Crew orchestration: assembles and starts (evidence: `pages/1_ATS.py`)
- Crew orchestration → Resume parsing: dispatches (evidence: `pages/1_ATS.py`)
- Crew orchestration → ATS scoring: dispatches (evidence: `pages/1_ATS.py`)
- Crew orchestration → Fit summary: dispatches (evidence: `pages/1_ATS.py`)
- Crew orchestration → Report compilation: dispatches (evidence: `pages/1_ATS.py`)
- Resume parsing → PDF text reader: reads PDF (evidence: `tasks.py`)
- ATS scoring → PDF text reader: reads PDF (evidence: `tasks.py`)
- Fit summary → PDF text reader: reads PDF (evidence: `tasks.py`)
- Resume parsing → ATS scoring: provides context (evidence: `pages/1_ATS.py`)
- ATS scoring → Fit summary: provides context (evidence: `pages/1_ATS.py`)
- Resume parsing → Report compilation: provides context (evidence: `pages/1_ATS.py`)
- ATS scoring → Report compilation: provides context (evidence: `pages/1_ATS.py`)
- Fit summary → Report compilation: provides context (evidence: `pages/1_ATS.py`)
- Crew orchestration → ATS page: returns report (evidence: `pages/1_ATS.py`)
- Agent definitions → Groq API: configures LLM (evidence: `agents.py`)
- User → Chat page: sends message (evidence: `pages/2_ChatBot.py`)
- Chat page → Session history: stores and reads (evidence: `pages/2_ChatBot.py`)
- Chat page → Groq API: requests completion (evidence: `pages/2_ChatBot.py`)
- Groq API → Chat page: returns reply (evidence: `pages/2_ChatBot.py`)
