Terminal crashed on your laptop?
Scan the screen or paste the traceback into your phone. RecTrace pulls the target source file from your laptop over Wi-Fi, synthesizes an AST-accurate unified git diff with on-device intelligence, applies the patch, verifies your test suite, and commits to an isolated Git branch—in one tap.
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ RECTRACE WORKFLOW │
│ │
│ [📱 Mobile Studio] [⚡ Local Wi-Fi] [💻 Laptop Bridge Daemon] │
│ ────────────────── ──────────────── ───────────────────────── │
│ 1. Traceback Input ──► GET /file-content ──► Read source from disk │
│ 2. AST Unified Diff ◄── (Source Code Sync) ◄── Return exact lines │
│ 3. Tap "Push Fix" ──► POST /apply-patch ──► git apply inbox/fix.patch │
│ 4. Verified Green ◄── BUILD PASSING ◄── python -m pytest │
│ 5. 1-Tap Branch ──► /create-branch ──► git checkout -b && git commit │
└────────────────────────────────────────────────────────────────────────────────────────┘
|
Dual-deck editor comparing Terminal Error Stack Traces against Source Code Context. No hallucinations—patches are generated against actual code lines from your workspace. |
1-tap file browser connects to your laptop daemon ( |
|
Debugging a physical monitor or a teammate's laptop? Toggle the camera viewfinder to instantly extract clean stack traces and error signatures from screen pixels. |
Once the patch passes automated CI verification ( |
|
Runs native test runners ( |
Zero cloud dependencies required. Works completely offline on your local network (LAN / P2P) with high-speed deterministic heuristic AST parsing. |
graph TD
subgraph MobileClient ["📱 Mobile Client (Flutter 3.x)"]
UI["StudioScreen / ScannerScreen"]
Voice["Voice Guidance (STT)"]
DiagService["DiagnosticService (AST / LLM Engine)"]
BridgeClient["BridgeService (HTTP / WebSockets)"]
UI --> Voice
UI --> DiagService
DiagService --> BridgeClient
end
subgraph LaptopBridge ["💻 Laptop Bridge (:8000)"]
Daemon["FastAPI Daemon (daemon.py)"]
Cockpit["Web Cockpit Dashboard (GET /)"]
Watchdog["Watchdog (inbox_patches/)"]
GitEngine["Git Engine (git apply / branch)"]
CIRunner["Pytest CI Runner"]
Daemon --> Cockpit
Daemon --> Watchdog
Daemon --> GitEngine
Daemon --> CIRunner
end
subgraph Workspace ["📂 Target Git Repository"]
SourceFiles["mock_project/ (app.py, test_app.py)"]
GitRepo[".git Repository"]
end
BridgeClient <== "Wi-Fi LAN / P2P (HTTP :8000)" ==> Daemon
GitEngine --> Workspace
CIRunner --> Workspace
- Flutter SDK (
>= 3.0.0) - Python (
>= 3.10) withpip - Git installed on PATH
# Navigate to laptop bridge directory
cd laptop-bridge
# Install dependencies
pip install -r requirements.txt
# Start the bridge daemon (runs on http://0.0.0.0:8000)
python daemon.py🌐 Developer Cockpit: Open
http://localhost:8000in your browser to view the real-time CI status, IP endpoints, and patch history.
# Navigate to mobile client directory
cd mobile-client
# Install Flutter dependencies
flutter pub get
# Run on Chrome Web
flutter run -d chrome --web-port=3000
# OR Run on connected Android / iOS device
flutter run- Open
http://localhost:3000(Mobile Studio) andhttp://localhost:8000(Laptop Cockpit). - In the Mobile Studio, click the magic wand icon (
✨) and select🐍 KeyError: "role". - In Deck 2 (Source Code), click the file dropdown to load
app.pydirectly from your laptop. - Click
⚡ ANALYZE & GENERATE PRECISION FIX. - Click
PUSH VIA BRIDGE➔ Watch your laptop apply the patch and verifyBUILD PASSING! - Click
🌿 CREATE BRANCH & COMMIT➔ An isolated branchrectrace/fix-app-xxxxis created with a new commit SHA.
Both the Laptop Bridge and Mobile Client include automated integration and unit test suites:
# Run Laptop Bridge end-to-end tests
cd laptop-bridge
python test_bridge.py
# Output: ALL VERIFICATION CHECKS PASSED SUCCESSFULLY! [✓]
# Run Mobile Client unit & widget tests
cd mobile-client
flutter test
# Output: All 7 tests passed! [✓]RecTrace/
├── laptop-bridge/ # 💻 Python FastAPI Local Bridge & CI Engine
│ ├── daemon.py # Microservice, Web Cockpit & Git watcher
│ ├── test_bridge.py # End-to-end bridge test suite
│ ├── requirements.txt # Python dependencies (fastapi, watchdog, pytest)
│ └── mock_project/ # Real target testbed repository
│ ├── app.py # Application source code
│ └── test_app.py # Pytest verification suite
│
├── mobile-client/ # 📱 Flutter Cross-Platform Mobile Client
│ ├── lib/
│ │ ├── main.dart # App entry point
│ │ ├── screens/
│ │ │ ├── studio_screen.dart # Primary dual-deck fixing studio
│ │ │ ├── patch_inspector_screen.dart # Diff viewer & CI pipeline modal
│ │ │ └── scanner_screen.dart # Secondary Camera OCR viewfinder
│ │ ├── services/
│ │ │ ├── diagnostic_service.dart # Precision AST/LLM diagnostic engine
│ │ │ ├── bridge_service.dart # Laptop HTTP bridge communicator
│ │ │ ├── ocr_service.dart # Stack trace text parser
│ │ │ └── voice_service.dart # Speech-to-text input
│ │ └── widgets/
│ │ ├── diff_viewer.dart # Syntax-highlighted unified diff box
│ │ └── pulse_mic_button.dart # Glowing ripple mic animation
│ └── test/
│ ├── diagnostic_service_test.dart # Contract & AST integration tests
│ └── widget_test.dart # Widget initialization test
│
├── inbox_patches/ # 📥 Shared file watcher folder for .patch files
├── PRD.md # 📄 Product Requirements Document (iQOO Hackathon)
└── README.md # 📖 Documentation & Setup Guide