How riddh619/issue-x works
PreFlight Sandbox turns a GitHub issue into a reproduction and contribution briefing. A contributor submits an issue in the dashboard; the backend gathers issue discussion and repository-tree context, identifies candidate files, synthesizes analysis and artifacts, and can execute code in a sandbox. The UI presents editable code, a patch diff, dossier, devcontainer configuration, and terminal instructions. The README documents curated demos and fallback synthesis. Backend stages share one source file; finer internal boundaries and some handoffs are inferred from the partial excerpt, so uncertain links are omitted.
Main entry points: main.py PreFlight API · App.jsx Issue dashboard · main.jsx React application root · DiffViewer.jsx Patch diff viewer
Components 18
Contributor dashboard
- Issue dashboard
frontend/src/App.jsx - Patch diff viewer
frontend/src/DiffViewer.jsx - React application root
frontend/src/main.jsx
Issue analysis
- PreFlight API
backend/main.py - Issue and comments fetch
backend/main.py - Repository tree fetch
backend/main.py - Target slice selection
backend/main.py - AI analysis and synthesis
backend/main.py - Fallback synthesis
backend/main.py - Curated issue demos
backend/main.py
Reproduction artifacts
- Reproduction test
backend/main.py - Mission dossier
backend/main.py - Devcontainer config
backend/main.py - TDD terminal commands
backend/main.py
Sandbox execution
- Code execution
backend/main.py
Other components
- Contributor
- GitHub REST API
- Google Gemini API
Connections 19
- Contributor → Issue dashboard: submits issue
README.md - React application root → Issue dashboard: renders
frontend/src/main.jsx - Issue dashboard → PreFlight API: requests analysis
- PreFlight API → Issue and comments fetch: fetches issue context
backend/main.py - PreFlight API → Repository tree fetch: fetches repository tree
backend/main.py - Issue and comments fetch → GitHub REST API: requests issue data
backend/main.py - Repository tree fetch → GitHub REST API: requests file tree
backend/main.py - PreFlight API → Target slice selection: selects candidates
backend/main.py - PreFlight API → AI analysis and synthesis: generates analysis
backend/main.py - AI analysis and synthesis → Google Gemini API: uses AI analysis
backend/main.py - PreFlight API → Fallback synthesis: uses on limits
README.md - Issue dashboard → Curated issue demos: offers demos
- AI analysis and synthesis → Reproduction test: generates
README.md - AI analysis and synthesis → Mission dossier: generates
README.md - AI analysis and synthesis → Devcontainer config: generates
README.md - AI analysis and synthesis → TDD terminal commands: generates
README.md - PreFlight API → Code execution: executes code
README.md - Issue dashboard → Patch diff viewer: displays patch diff
frontend/src/App.jsx - PreFlight API → Issue dashboard: returns artifacts