How yuvraj3905/career-ops works
Purpose and Entry Points
career-ops is a local, CLI-agnostic job-search operating system. An AI coding CLI interprets shared instructions and modes to evaluate job descriptions, discover roles, create application artifacts, and maintain a candidate-owned pipeline. Main agent entry points are AGENTS.md, .agents/skills/career-ops/SKILL.md, and CLI-specific command adapters such as .opencode/commands/career-ops.md. Script-level installation/CLI behavior is exposed through package.json.
Agent Router and Mode Layer
The agent runtime is declarative: the shared skill routes user requests (or pasted URLs/JDs) to workflow modes. Modes encode evaluation criteria, human-review boundaries, language variants, and output expectations rather than implementing an autonomous service.
• modes/auto-pipeline.md
• modes/oferta.md
• modes/scan.md
The primary control flow is: user request → selected mode → local files, browser tools, and scripts → markdown/PDF/tracker outputs. The explicit boundary is human-in-the-loop: drafts and recommendations are produced, but application submission is not automated.
Candidate Data and Pipeline Record
User-owned local files are the system of record: CV/profile inputs, Markdown tracker data, reports, and generated output. Scripts parse, update, normalize, lock, merge, and reconcile this state to protect against concurrent agents and duplicate records.
• config/profile.example.yml
• tracker.mjs
• tracker-parse.mjs
• pipeline-lock.mjs
• reconcile-pipeline.mjs
Runtime state belongs in gitignored data/, reports/, and output/; templates establish expected schemas and canonical statuses in templates/states.yml and DATA_CONTRACT.md.
Discovery and Job Normalization
Scanning uses a registry of job-board/ATS providers and custom portal configuration. scan.mjs coordinates discovery, deduplication, and pipeline insertion; provider modules isolate each external feed/API/parser and shared HTTP, DNS, trust, and registry behavior.
• scan.mjs
• providers/_registry.mjs
• providers/_http.mjs
• providers/greenhouse.mjs
• providers/local-parser.mjs
Discovery may use ATS APIs, public feeds, or web pages. Optional browser verification checks liveness after deduplication before new roles enter the tracker, keeping browser cost bounded. Provider isolation is also the security boundary for untrusted remote content and SSRF-sensitive network access.
Evaluation and Application Artifact Flow
For a URL or pasted JD, the agent classifies fit/archetype and performs the A–G evaluation against candidate context. It produces a structured report, tailored CV content, cover/application drafts, and a tracker entry. Deterministic scripts support specialized analyses and artifact lifecycle steps.
• classify-tier.mjs
• prepare-application.mjs
• application-artifacts.mjs
• generate-cover-letter.mjs
• mark-pdf-ready.mjs
Reports are decision-support artifacts; legitimacy and work-authorization signals remain distinct from the scored fit assessment.
Document Rendering and Browser Automation
CV and cover-letter generation render HTML/LaTex sources, then use Playwright/browser tooling for PDFs and optionally visual validation. Template files separate presentation from agent-authored content.
• generate-pdf.mjs
• build-cv-html.mjs
• templates/cv-template.html
• templates/cover-letter-template.html
Material runtime dependencies are Node.js for .mjs workflows and Playwright/Chromium for rendering, extraction, liveness checks, and form-oriented browser tasks. Fonts and output artifacts remain local.
Batch, Integrations, and Dashboard
Batch orchestration delegates independent evaluations to headless AI CLI workers, then aggregates outputs into the same local pipeline. Optional plugins provide explicit integrations; they are disabled by default and encapsulate credentials/network access.
• batch/batch-runner.sh
• batch/batch-prompt.md
• plugins/_engine.mjs
• plugins/gmail/index.mjs
A separate Go terminal UI reads and updates the shared tracker rather than replacing it. It uses Bubble Tea/Lipgloss and platform-specific file-lock/process handling.
• dashboard/main.go
• dashboard/internal/data/career.go
• dashboard/internal/ui/screens/pipeline.go
External services include the user-selected AI provider/CLI, ATS and job-board APIs, public company sites, optional Gmail/Notion/Apify plugins, and optional Google Gemini/OpenAI/OpenRouter/Ollama evaluation runners.
Main entry points: tracker.mjs Tracker operations · classify-tier.mjs Fit evaluation · auto-pipeline.md Workflow modes · scan.mjs Discovery scanner
Components 20
Agent workflow
Declarative instructions and request routing.
- User request or JD · Requests, URLs, and pasted job descriptions.
- Agent instructions · Shared skill and CLI adapters select workflow behavior.
AGENTS.md - Workflow modes · Encode evaluation, review, language, and output rules.
modes/auto-pipeline.md
Local pipeline
Candidate-owned records, outputs, and concurrency controls.
- Candidate pipeline state · Gitignored data, reports, and output are the system of record.
config/profile.example.yml - State schema · Defines canonical statuses and expected local data shape.
DATA_CONTRACT.md - Tracker operations · Parses, updates, normalizes, merges, and reconciles records.
tracker.mjs - Pipeline lock · Protects shared local state from concurrent agents.
pipeline-lock.mjs - Reports and application outputs · Decision reports, drafts, CVs, and PDFs; never automatic submission.
Role discovery
Provider-isolated collection and normalization.
- Provider registry and HTTP boundary · Isolates remote feeds and SSRF-sensitive access.
providers/_registry.mjs - ATS and public job sources · APIs, feeds, and company pages supply role listings.
- Discovery scanner · Coordinates collection, deduplication, and tracker insertion.
scan.mjs
Evaluation and documents
Decision support and application artifact production.
- Playwright and Chromium · Verifies listings, extracts content, renders PDFs, and supports forms.
- Fit evaluation · Classifies role fit and creates structured decision reports.
classify-tier.mjs - Application preparation · Builds tailored CV, application drafts, and lifecycle state.
prepare-application.mjs - Document templates · Separate presentation from agent-authored content.
templates/cv-template.html - PDF rendering · Builds HTML and produces locally stored PDFs.
generate-pdf.mjs
Batch and optional clients
Independent workers, integrations, and terminal UI.
- Batch workers · Delegates independent evaluations to headless AI CLI workers.
batch/batch-runner.sh - AI providers and CLI runners · User-selected local or remote model runners.
- Optional integration plugins · Disabled-by-default credential and network integrations.
plugins/_engine.mjs - Go terminal dashboard · Reads and updates the shared tracker without replacing it.
dashboard/main.go
Connections 24
- User request or JD → Agent instructions: invokes
- Agent instructions → Workflow modes: routes request
- Workflow modes → Discovery scanner: discovery mode
- Workflow modes → Fit evaluation: evaluation mode
- Workflow modes → Application preparation: application mode
- State schema → Candidate pipeline state: defines schema
- Pipeline lock → Tracker operations: guards updates
- Tracker operations → Candidate pipeline state: reads and updates
- Provider registry and HTTP boundary → ATS and public job sources: fetches from
- Discovery scanner → Provider registry and HTTP boundary: uses
- Discovery scanner → Playwright and Chromium: optionally verifies
- Discovery scanner → Tracker operations: inserts deduplicated roles
- Candidate pipeline state → Fit evaluation: candidate context
- Fit evaluation → Reports and application outputs: writes reports
- Fit evaluation → Application preparation: fit decision
- Application preparation → Document templates: populates
- Application preparation → Tracker operations: creates application entry
- Document templates → PDF rendering: render source
- Playwright and Chromium → PDF rendering: browser PDF
- PDF rendering → Reports and application outputs: stores PDFs
- Batch workers → AI providers and CLI runners: launches workers
- Batch workers → Fit evaluation: aggregates evaluations
- Optional integration plugins → Tracker operations: optional pipeline access
- Go terminal dashboard → Tracker operations: reads and updates