# punit2911/hirepanel architecture

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

- Interactive diagram: https://gitdiagram.com/punit2911/hirepanel
- Repository: https://github.com/punit2911/hirepanel

## Overview

HirePanel screens resumes against job descriptions, producing evidence-grounded scores and a recommendation for recruiter review. The documented workflow runs shielding and blind redaction before parsing and dual scoring, then verifies quotes, resolves disagreements, decides, drafts communications and interview questions, and audits generated text for bias. Recruiters retain the final approval step before candidate email; n8n and Discord support notifications. Internal document and skill analysis underpin screening. The README documents these stages; sampled excerpts show pipeline setup and shared agent plumbing, but not all runtime calls.

Main entry points: [`app/pipeline.py`](https://github.com/punit2911/Hirepanel/blob/main/app/pipeline.py) (Screening pipeline), [`app/main.py`](https://github.com/punit2911/Hirepanel/blob/main/app/main.py) (Web application), [`app/agents/bias.py`](https://github.com/punit2911/Hirepanel/blob/main/app/agents/bias.py) (Bias audit), [`app/doc.py`](https://github.com/punit2911/Hirepanel/blob/main/app/doc.py) (Document index)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_screening["Screening workflow"]
  node_panel["Screening pipeline<br/>[pipeline.py]"]
  node_shield["Injection shield<br/>[shield.py]"]
  node_redaction["Blind redaction<br/>[pii.py]"]
  node_job_analysis["Job analysis<br/>[jd.py]"]
  node_resume_parser["Resume parser<br/>[parser.py]"]
  node_scorers["Dual scorers<br/>[scorers.py]"]
  node_verification["Evidence verifier<br/>[verifier.py]"]
  node_adjudicator["Disagreement adjudicator<br/>[adjudicator.py]"]
  node_decision["Decision policy<br/>[decision.py]"]
  node_communications["Comms drafts<br/>[comms.py]"]
  node_interview_kit["Interview kit<br/>[interview.py]"]
  node_bias_audit["Bias audit<br/>[bias.py]"]
end

subgraph group_analysis["Document analysis"]
  node_doc_index["Document index<br/>[doc.py]"]
  node_skill_taxonomy["Skill taxonomy<br/>[skills.py]"]
end

subgraph group_runtime["Application runtime"]
  node_web_app["Web application<br/>[main.py]"]
  node_agent_plumbing["Agent plumbing<br/>[base.py]"]
  node_llm_router["LLM router<br/>[router.py]"]
  node_database[("Application store<br/>[store.py]")]
end

subgraph group_integrations["External integrations"]
  node_n8n["n8n automation"]
  node_discord["Discord"]
  node_email["Candidate email"]
  node_mcp_server["MCP server<br/>[server.py]"]
  node_mcp_core["MCP tools<br/>[core.py]"]
end

node_recruiter(("Recruiter"))
node_candidate["Candidate resume"]
node_job_description["Job description"]

node_recruiter -->|"uses"| node_web_app
node_candidate -->|"uploads"| node_web_app
node_job_description -->|"screens against"| node_panel
node_web_app -.->|"runs screening"| node_panel
node_panel -->|"shields"| node_shield
node_panel -->|"redacts"| node_redaction
node_panel -->|"analyzes job"| node_job_analysis
node_panel -->|"parses"| node_resume_parser
node_panel -->|"scores"| node_scorers
node_panel -->|"verifies quotes"| node_verification
node_panel -->|"resolves disputes"| node_adjudicator
node_panel -->|"decides"| node_decision
node_panel -->|"drafts messages"| node_communications
node_panel -->|"drafts questions"| node_interview_kit
node_panel -->|"audits drafts"| node_bias_audit
node_panel -.->|"uses document analysis"| node_doc_index
node_doc_index -->|"finds skills"| node_skill_taxonomy
node_agent_plumbing -->|"requests completions"| node_llm_router
node_web_app -.->|"uses store"| node_database
node_bias_audit -->|"triggers decision notice"| node_n8n
node_n8n -->|"posts alert"| node_discord
node_recruiter -->|"approves email"| node_n8n
node_n8n -->|"sends email"| node_email
node_mcp_server -->|"delegates"| node_mcp_core

click node_web_app "https://github.com/punit2911/Hirepanel/blob/main/app/main.py"
click node_panel "https://github.com/punit2911/Hirepanel/blob/main/app/pipeline.py"
click node_shield "https://github.com/punit2911/Hirepanel/blob/main/app/agents/shield.py"
click node_redaction "https://github.com/punit2911/Hirepanel/blob/main/app/pii.py"
click node_job_analysis "https://github.com/punit2911/Hirepanel/blob/main/app/agents/jd.py"
click node_resume_parser "https://github.com/punit2911/Hirepanel/blob/main/app/agents/parser.py"
click node_scorers "https://github.com/punit2911/Hirepanel/blob/main/app/agents/scorers.py"
click node_verification "https://github.com/punit2911/Hirepanel/blob/main/app/agents/verifier.py"
click node_adjudicator "https://github.com/punit2911/Hirepanel/blob/main/app/agents/adjudicator.py"
click node_decision "https://github.com/punit2911/Hirepanel/blob/main/app/agents/decision.py"
click node_communications "https://github.com/punit2911/Hirepanel/blob/main/app/agents/comms.py"
click node_interview_kit "https://github.com/punit2911/Hirepanel/blob/main/app/agents/interview.py"
click node_bias_audit "https://github.com/punit2911/Hirepanel/blob/main/app/agents/bias.py"
click node_doc_index "https://github.com/punit2911/Hirepanel/blob/main/app/doc.py"
click node_skill_taxonomy "https://github.com/punit2911/Hirepanel/blob/main/app/skills.py"
click node_agent_plumbing "https://github.com/punit2911/Hirepanel/blob/main/app/agents/base.py"
click node_llm_router "https://github.com/punit2911/Hirepanel/blob/main/app/llm/router.py"
click node_database "https://github.com/punit2911/Hirepanel/blob/main/app/store.py"
click node_mcp_server "https://github.com/punit2911/Hirepanel/blob/main/mcp_server/server.py"
click node_mcp_core "https://github.com/punit2911/Hirepanel/blob/main/mcp_server/core.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_panel,node_shield,node_redaction,node_job_analysis,node_resume_parser,node_scorers,node_verification,node_adjudicator,node_decision,node_communications,node_interview_kit,node_bias_audit toneBlue
class node_doc_index,node_skill_taxonomy toneAmber
class node_web_app,node_agent_plumbing,node_llm_router,node_database toneMint
class node_n8n,node_discord,node_email,node_mcp_server,node_mcp_core toneRose
class node_recruiter,node_candidate,node_job_description toneIndigo
```

## Components

### Screening workflow

- [Screening pipeline](https://github.com/punit2911/Hirepanel/blob/main/app/pipeline.py): `app/pipeline.py`
- [Injection shield](https://github.com/punit2911/Hirepanel/blob/main/app/agents/shield.py): `app/agents/shield.py`
- [Blind redaction](https://github.com/punit2911/Hirepanel/blob/main/app/pii.py): `app/pii.py`
- [Job analysis](https://github.com/punit2911/Hirepanel/blob/main/app/agents/jd.py): `app/agents/jd.py`
- [Resume parser](https://github.com/punit2911/Hirepanel/blob/main/app/agents/parser.py): `app/agents/parser.py`
- [Dual scorers](https://github.com/punit2911/Hirepanel/blob/main/app/agents/scorers.py): `app/agents/scorers.py`
- [Evidence verifier](https://github.com/punit2911/Hirepanel/blob/main/app/agents/verifier.py): `app/agents/verifier.py`
- [Disagreement adjudicator](https://github.com/punit2911/Hirepanel/blob/main/app/agents/adjudicator.py): `app/agents/adjudicator.py`
- [Decision policy](https://github.com/punit2911/Hirepanel/blob/main/app/agents/decision.py): `app/agents/decision.py`
- [Comms drafts](https://github.com/punit2911/Hirepanel/blob/main/app/agents/comms.py): `app/agents/comms.py`
- [Interview kit](https://github.com/punit2911/Hirepanel/blob/main/app/agents/interview.py): `app/agents/interview.py`
- [Bias audit](https://github.com/punit2911/Hirepanel/blob/main/app/agents/bias.py): `app/agents/bias.py`

### Document analysis

- [Document index](https://github.com/punit2911/Hirepanel/blob/main/app/doc.py): `app/doc.py`
- [Skill taxonomy](https://github.com/punit2911/Hirepanel/blob/main/app/skills.py): `app/skills.py`

### Application runtime

- [Web application](https://github.com/punit2911/Hirepanel/blob/main/app/main.py): `app/main.py`
- [Agent plumbing](https://github.com/punit2911/Hirepanel/blob/main/app/agents/base.py): `app/agents/base.py`
- [LLM router](https://github.com/punit2911/Hirepanel/blob/main/app/llm/router.py): `app/llm/router.py`
- [Application store](https://github.com/punit2911/Hirepanel/blob/main/app/store.py): `app/store.py`

### External integrations

- **n8n automation**
- **Discord**
- **Candidate email**
- [MCP server](https://github.com/punit2911/Hirepanel/blob/main/mcp_server/server.py): `mcp_server/server.py`
- [MCP tools](https://github.com/punit2911/Hirepanel/blob/main/mcp_server/core.py): `mcp_server/core.py`

### Other components

- **Recruiter**
- **Candidate resume**
- **Job description**

## Connections

- Recruiter → Web application: uses
- Candidate resume → Web application: uploads
- Job description → Screening pipeline: screens against
- Web application → Screening pipeline: runs screening (evidence: `app/main.py`)
- Screening pipeline → Injection shield: shields (evidence: `app/pipeline.py`)
- Screening pipeline → Blind redaction: redacts (evidence: `app/pipeline.py`)
- Screening pipeline → Job analysis: analyzes job (evidence: `app/pipeline.py`)
- Screening pipeline → Resume parser: parses (evidence: `app/pipeline.py`)
- Screening pipeline → Dual scorers: scores (evidence: `app/pipeline.py`)
- Screening pipeline → Evidence verifier: verifies quotes (evidence: `app/pipeline.py`)
- Screening pipeline → Disagreement adjudicator: resolves disputes (evidence: `app/pipeline.py`)
- Screening pipeline → Decision policy: decides (evidence: `app/pipeline.py`)
- Screening pipeline → Comms drafts: drafts messages (evidence: `app/pipeline.py`)
- Screening pipeline → Interview kit: drafts questions (evidence: `app/pipeline.py`)
- Screening pipeline → Bias audit: audits drafts (evidence: `app/pipeline.py`)
- Screening pipeline → Document index: uses document analysis (evidence: `app/pipeline.py`)
- Document index → Skill taxonomy: finds skills (evidence: `app/doc.py`)
- Agent plumbing → LLM router: requests completions (evidence: `app/agents/base.py`)
- Web application → Application store: uses store (evidence: `app/main.py`)
- Bias audit → n8n automation: triggers decision notice
- n8n automation → Discord: posts alert
- Recruiter → n8n automation: approves email
- n8n automation → Candidate email: sends email
- MCP server → MCP tools: delegates (evidence: `mcp_server/server.py`)
