I was just an apprentice when I had accidentally put a 14 AWG white wire on a 20A garage breaker and ended up causing a bad fire, no one was hurt, but it could of been totally avoided so that why I built TradeSight because 600+ trades apprentices are injured yearly from preventable code violations, and masters can't watch everyone. Stack Overflow doesn't work when you're in a crawlspace with no signal.

TradeSight is an offline-first NEC 2023 + OSHA 1910.147 safety copilot. You say "14 AWG white wire on 20A breaker in garage" and Gemini 2.0 Flash instantly calls local tools: check_nec_2023() flags NEC 240.4(D) - 14 AWG max 15A - fire hazard and GFCI required per 210.8(A). check_osha_loto() verifies lockout before you touch wire.

Built with the new google-genai SDK and Gemini function calling, not just prompting. The RAG vector DB of NEC codes lives locally, so even when the API is down or you're offline — like in my demo screenshot — the rule engine still blocks the fire. That's not a bug, that's the feature job sites need.

Demo: https://youtu.be/LU4eXH7PQoU python app.py — works in terminal today, PWA with vision tomorrow.

Built With

  • gemini-api
  • google-ai-studio
  • python
Share this project:

Updates