# LLM Translator — Agent Guide ## Project Overview A 4-phase translation pipeline web app. Users input source text, then sequentially execute: 1. **Phase 1 (Rough Translation)** — LLM translates + extracts proper nouns, summary, style 2. **Phase 2 (Proper Noun Review)** — User reviews/edits extracted proper nouns and style 3. **Phase 3 (Re-translation)** — LLM re-translates with proper noun/style constraints applied 4. **Phase 4 (Polish)** — LLM polishes for readability while preserving proper nouns Architecture: FastAPI backend + Vue 3 SPA (Vite build, served as static files by FastAPI). Single-server deployment: `uvicorn backend.main:app` serves both API and frontend. ## Tech Stack | Layer | Technology | |-------|-----------| | Backend | Python 3.14+, FastAPI, Uvicorn | | Auth | JWT (PyJWT), bcrypt (direct via `bcrypt` module) | | LLM Client | OpenAI SDK (`openai`) — OpenAI-compatible API format | | Frontend | Vue 3 + Composition API `