mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-11 18:35:18 +00:00
1 KiB
1 KiB
PR-Agent UI (single-page)
This is a minimal single-page UI for the PR-Agent repository. It lists the repository (current workspace) and shows details when you click the repo.
Quick start (macOS / zsh):
cd /path/to/pr-agent
python3 -m venv .venv-ui
source .venv-ui/bin/activate
pip install -r ui/requirements-ui.txt
python ui/app.py
Then open http://127.0.0.1:8080/ in your browser.
Notes:
- This is intentionally minimal: it reads Git information by running
gitin the repository root. - The app locates the repo root by walking up from the current working directory until it finds a
.gitfolder. - It is safe to run locally and intended as a starting point — you can extend it to call the CLI for review/describe actions and show results inline.
Next steps you may want:
- Add endpoints that call the internal CLI (e.g., trigger
python cli.py --pr_url=... review) and stream results back to the browser. - Add authentication for multi-user environments.
- Use GitPython instead of shelling out to
gitfor richer information.