How ijaeg/job-hunt-agent works
This is a Streamlit job-search assistant for software developers in Germany. A user describes a role; the agent searches the Federal Employment Agency board, refines results, retrieves promising listing details, assesses fit against the profile, and presents an explained shortlist. Tracker saves and preference memories require user approval. The graph combines the documented product workflow with source-index relationships and shown imports; some internal tool and page wiring is unsampled, so those connections are omitted where evidence is insufficient.
Main entry points: agent.py Agent graph · app.py Chat app · ba_client.py BA and demo source · ui_shared.py Shared UI
Components 25
User experience
- Chat app
app.py - Shared UI
ui_shared.py - Shortlist views
src/job_hunt_agent/ui_view.py - Tracker page
pages/1_Tracker.py - Memory page
pages/2_Memory.py - Profile page
pages/3_Profile.py - Developer settings
pages/4_Developer_settings.py
Agent runtime
- Agent graph
src/job_hunt_agent/agent.py - Guards and context
src/job_hunt_agent/middleware - Thread state
src/job_hunt_agent/state.py - Run context
src/job_hunt_agent/context.py
Job discovery and fit
- Search tool
src/job_hunt_agent/tools/search.py - Listing details
src/job_hunt_agent/tools/details.py - Fit assessment
src/job_hunt_agent/tools/assess.py - Fit rubric
src/job_hunt_agent/rubric.py - BA and demo source
src/job_hunt_agent/ba_client.py
Profile and persistence
- Tracker and memory tools
src/job_hunt_agent/tools - SQLite stores
src/job_hunt_agent/storage.py - Profile models
src/job_hunt_agent/models.py
Model and observability
- Model client
src/job_hunt_agent/llm.py - Usage accounting
src/job_hunt_agent/usage.py - Tracing
src/job_hunt_agent/tracing.py
Other components
- Job seeker
- OpenRouter
- BA job board API
Connections 30
- Job seeker → Chat app: describes search
README.md - Chat app → Agent graph: runs turns
app.py - Chat app → Shared UI: uses shared UI
app.py - Chat app → Shortlist views: renders shortlist
README.md - Agent graph → Guards and context: assembles guards
src/job_hunt_agent/agent.py - Agent graph → Search tool: registers tool
src/job_hunt_agent/agent.py - Agent graph → Listing details: registers tool
src/job_hunt_agent/agent.py - Agent graph → Fit assessment: registers tool
src/job_hunt_agent/agent.py - Agent graph → Tracker and memory tools: registers tools
src/job_hunt_agent/agent.py - Agent graph → Thread state: configures state
src/job_hunt_agent/agent.py - Agent graph → Run context: uses run context
src/job_hunt_agent/agent.py - Search tool → BA and demo source: searches listings
src/job_hunt_agent/tools/search.py - Fit assessment → Fit rubric: scores fit
src/job_hunt_agent/tools/assess.py - Fit assessment → BA and demo source: loads details
src/job_hunt_agent/tools/assess.py - Run context → BA and demo source: supplies source
src/job_hunt_agent/context.py - BA and demo source → BA job board API: queries board
README.md - Tracker and memory tools → SQLite stores: persists approved changes
README.md - Agent graph → SQLite stores: configures persistence
src/job_hunt_agent/agent.py - Shared UI → SQLite stores: shares connection
ui_shared.py - Shared UI → Profile models: loads selected profile
ui_shared.py - Run context → Profile models: carries profile
src/job_hunt_agent/context.py - Job seeker → Tracker page: reviews entries
README.md - Job seeker → Memory page: reviews memories
README.md - Job seeker → Profile page: edits profile
README.md - Job seeker → Developer settings: changes settings
README.md - Model client → OpenRouter: calls model API
src/job_hunt_agent/llm.py - Agent graph → Model client: uses chat model
README.md - Chat app → Usage accounting: records turn usage
app.py - Chat app → Tracing: configures callbacks
app.py - Developer settings → Tracing: configures tracing
pages/4_Developer_settings.py