Python FastAPI backend for TaskHunt.ai - a platform for exploring Terminal Bench tasks.
# Install dependencies
uv sync
# Run development server
uv run uvicorn app.main:app --reload
# Or with plain pip
pip install -e .
uvicorn app.main:app --reloadGITHUB_TOKEN- GitHub personal access token (optional, increases rate limits)CORS_ORIGINS- Comma-separated list of allowed origins (default: localhost)
GET /api/tasks- List all tasks with filteringGET /api/tasks/pr- List tasks from open PRsGET /api/tasks/{benchmark}/{task_id}- Get specific taskGET /api/tasks/search?q=- Search tasks
GET /api/stats- Overall statisticsGET /api/stats/benchmarks- Per-benchmark statistics
# Run linter
uv run ruff check .
# Fix linting issues
uv run ruff check . --fix
# Run tests
uv run pytest