How tanbui/job-search-agent works
Purpose and Entry Point
A Python CLI system that turns a job role/location query into a multi-part job-search report. main.py is the execution entry point: it validates configuration, builds the agent/task graph, runs it sequentially, and writes timestamped text reports under outputs/.
Paths: main.py, outputs/.gitkeep, examples/example_output.txt
Runtime and Dependencies
Runs on Python 3.10+ and is intended to be launched with uv (uv run main.py). The application uses CrewAI for multi-agent orchestration, LangChain integration, Anthropic Claude for agent reasoning, and HTTP access to Adzuna for live listings.
Paths: pyproject.toml, requirements.txt, .env.example
Configuration Boundary
Configuration centralizes default search inputs (role, location, result count), Claude model selection, and environment-backed credentials. Startup validation is the boundary preventing execution without Anthropic and Adzuna keys; secrets belong in a local .env, not source control.
Paths: src/config.py, .env.example, main.py
Agent Layer
Four specialized CrewAI agents define the system’s reasoning roles: job searcher, skills advisor, interview coach, and career advisor. The job-search agent is the only role expected to directly retrieve external listing data; downstream agents transform the job-listing context into advisory content through Claude.
Paths: src/agents.py, src/tools.py, src/config.py
Task Pipeline and Control Flow
Tasks encode a sequential dependency chain managed by a CrewAI Crew:
1. Job search retrieves and formats listings.
2. Skills analysis consumes listings and creates a learning roadmap.
3. Interview preparation uses listings for role-specific questions and STAR guidance.
4. Career advice uses the accumulated prior context for resume, LinkedIn, and networking recommendations.
The sequential ordering is the primary control boundary: later stages depend on earlier task outputs rather than independently fetching data.
Paths: src/tasks.py, src/agents.py, main.py
External Data Integration
The Adzuna integration is isolated in the tool layer, where API credentials, request behavior, and response/error handling should remain contained. This keeps external job-board coupling out of agent definitions and task orchestration. Anthropic is the separate LLM service boundary used by all agents.
Paths: src/tools.py, src/config.py, src/agents.py
Output and Verification
Execution produces an aggregate report plus stage-specific artifacts in outputs/, making generated content a filesystem delivery boundary rather than a web/API response. Tool-level behavior has focused automated coverage, especially appropriate for the external API boundary.
Paths: main.py, outputs/.gitkeep, tests/test_tools.py
Main entry points: agents.py Specialist agents · main.py Crew execution · tools.py Adzuna tool · .gitkeep Generated reports
Components 16
Runtime
- CLI entry point · Validates startup, runs the crew, and writes reports.
main.py - Configuration · Default query inputs, model choice, and credential loading.
src/config.py - Local environment · Provides Anthropic and Adzuna credentials outside source control.
.env.example
CrewAI workflow
- Specialist agents · Defines search, skills, interview, and career roles.
src/agents.py - Sequential tasks · Encodes the dependent four-stage report pipeline.
src/tasks.py - Crew execution · Runs task outputs in sequence as shared downstream context.
main.py - Job search · Retrieves and formats live job listings.
src/tasks.py - Skills analysis · Turns listings into a learning roadmap.
src/tasks.py - Interview preparation · Produces role-specific questions and STAR guidance.
src/tasks.py - Career advice · Produces resume, LinkedIn, and networking advice.
src/tasks.py
External boundaries
- Adzuna tool · Contains listing requests, credentials, and error handling.
src/tools.py - Adzuna API
- Anthropic Claude · Reasoning service used by all agent roles.
- Tool tests · Focused coverage for the external API boundary.
tests/test_tools.py
Report delivery
- Generated reports · Aggregate and stage-specific timestamped text artifacts.
outputs/.gitkeep - Example report
examples/example_output.txt
Connections 17
- Local environment → Configuration: supplies credentials
- Configuration → CLI entry point: startup validation
- CLI entry point → Specialist agents: builds
- CLI entry point → Sequential tasks: builds
- Specialist agents → Crew execution: assigned to
- Sequential tasks → Crew execution: orchestrated by
- Crew execution → Job search: stage 1
- Job search → Skills analysis: listings context
- Skills analysis → Interview preparation: prior context
- Interview preparation → Career advice: accumulated context
- Specialist agents → Adzuna tool: search role uses
- Adzuna tool → Adzuna API: HTTP requests
- Specialist agents → Anthropic Claude: agent reasoning
- Career advice → Generated reports: final advisory content
- Crew execution → Generated reports: writes aggregate and stages
- Tool tests → Adzuna tool: verifies
- Example report → Generated reports: illustrates format