How pluto-atom-4/ats-showcase works
Purpose and entry points
ATS Playground is a Python job-assessment pipeline: crawl company career sites, locally reduce job text, obtain user approval, assess CV fit through Claude, and persist/search/export results. The operational entry point is src/cli.py; it exposes individual phases plus the all orchestrator. Interactive terminal mode is implemented separately in src/tui/dashboard.py.
Configuration and domain boundary
Company URLs, selectors, and selective processing configuration enter through config/companies.json and are validated/modelled in src/config/models.py. Core job and assessment records are represented by src/models/job.py and src/models/assessment.py. This boundary normalizes external site data and CV/LLM outputs before storage or presentation.
Crawl stage
src/browser/crawler.py drives asynchronous Playwright/Chromium crawling, JavaScript rendering, extraction, retries, and rate control. Site-specific CSS extraction logic resides in src/browser/selectors.py. The crawler turns configured company sources into raw job postings; it is the network/browser boundary and should not leak browser-specific HTML concerns downstream.
Local preprocessing and cost gate
src/parsers/html_cleaner.py converts raw HTML to usable text using MarkItDown with HTML-parser fallback. src/tokenization/preprocessor.py coordinates spaCy-backed semantic cleanup/chunking, while src/tokenization/counter.py counts tiktoken tokens. This stage materially reduces prompt payloads and produces token/cost inputs before any paid API work.
Review and LLM assessment
src/verification/reviewer.py provides the approval/edit/reject gate between preprocessing and assessment. Approved jobs and CV content are passed to src/llm/client.py, which uses model/provider abstractions in src/llm/provider.py and prompts in src/llm/prompts.py. Anthropic Claude (Haiku/Sonnet/Opus), authenticated through environment configuration, is the external assessment boundary; returned scores, recommendations, usage, and cost become structured assessments.
Persistence, query, export, and lifecycle
SQLite is initialized and accessed through src/storage/db.py; persistence/query logic is centered in src/storage/assessment_store.py and src/storage/queries.py, including FTS5-backed search. Markdown/report output is handled by src/storage/export.py. Data-health and retention operations are isolated under src/integrity/inspector.py, src/integrity/purger.py, and src/integrity/exporter.py, preserving safe inspection, repair-oriented reporting, and confirmed purge behavior.
Interaction and runtime topology
The CLI supports noninteractive automation and conditionally routes interactive terminals into the TUI. src/tui/models/state.py is the workflow-facing UI state boundary; phase panels such as src/tui/panels/crawl_panel.py and src/tui/panels/assess_panel.py display progress and cost without owning pipeline logic. Runtime dependencies are Python 3.12+ (per project setup), Playwright Chromium, spaCy en_core_web_md, tiktoken, SQLite, and the Anthropic API. Persistent output is a local SQLite database plus optional Markdown exports.
Main entry points: crawler.py Playwright crawler · client.py Assessment client · assessment_store.py Assessment store · dashboard.py Interactive dashboard
Components 23
Ingest & preparation
- Company configuration
config/companies.json - Configuration models
src/config/models.py - Playwright crawler · Renders sites, extracts postings, and applies retries and rate control.
src/browser/crawler.py - Site selectors
src/browser/selectors.py - Job records · Normalizes external posting data for downstream stages.
src/models/job.py - HTML cleaner · Uses MarkItDown with an HTML-parser fallback.
src/parsers/html_cleaner.py - Semantic preprocessor
src/tokenization/preprocessor.py - Token counter
src/tokenization/counter.py
Review & assessment
- Approval gate · Approves, edits, or rejects reduced jobs before paid assessment.
src/verification/reviewer.py - Assessment client · Sends approved jobs and CV content for structured fit assessment.
src/llm/client.py - Model providers
src/llm/provider.py - Assessment prompts
src/llm/prompts.py - Anthropic Claude · Haiku, Sonnet, or Opus assessment boundary.
- Assessment records · Structured scores, recommendations, usage, and cost.
src/models/assessment.py
Data lifecycle
- Assessment store
src/storage/assessment_store.py - SQLite database · Stores assessment data and FTS5 search indexes.
src/storage/db.py - Search queries
src/storage/queries.py - Markdown export
src/storage/export.py - Data integrity lifecycle · Provides health reporting and confirmed retention operations.
src/integrity/inspector.py
Interfaces
- CLI orchestrator · Runs individual phases or the end-to-end pipeline.
src/cli.py - Interactive dashboard
src/tui/dashboard.py - Workflow UI state
src/tui/models/state.py - Phase progress panels · Show crawl and assessment progress without pipeline ownership.
src/tui/panels/crawl_panel.py
Connections 25
- CLI orchestrator → Company configuration: loads
- Company configuration → Configuration models: validated by
- Configuration models → Playwright crawler: company sources
- Playwright crawler → Site selectors: uses
- Playwright crawler → Job records: raw postings
- Job records → HTML cleaner: raw HTML
- HTML cleaner → Semantic preprocessor: clean text
- Semantic preprocessor → Token counter: chunks
- Token counter → Approval gate: token and cost inputs
- Approval gate → Assessment client: approved jobs and CV
- Assessment client → Model providers: selects
- Assessment client → Assessment prompts: uses
- Model providers → Anthropic Claude: API request
- Anthropic Claude → Assessment records: structured result
- Assessment records → Assessment store: persists
- Assessment store → SQLite database: reads and writes
- Search queries → SQLite database: FTS5 search
- Assessment store → Markdown export: report data
- Data integrity lifecycle → SQLite database: inspect and retain
- CLI orchestrator → Interactive dashboard: interactive terminals
- Interactive dashboard → Workflow UI state: manages
- Interactive dashboard → Phase progress panels: renders
- Workflow UI state → Approval gate: review workflow
- Phase progress panels → Playwright crawler: crawl progress
- Phase progress panels → Assessment client: assessment cost