Inspiration
DevSync was inspired by a simple problem I kept running into while building projects and preparing for internships. Most issues are discovered too late, either when CI fails or after code is merged. Security risks like hardcoded secrets and reliability issues often slip through early reviews, especially in fast moving teams. I wanted a tool that could act like an extra teammate and review code changes as soon as they are written, not after something breaks.
What it does
DevSync analyzes Git diffs before code is merged and provides an AI powered code review. Developers paste a diff into the interface and receive structured feedback within seconds.
DevSync:
Reviews code changes instead of full files to stay focused and fast
Detects potential security risks like hardcoded secrets
Flags reliability issues that may cause runtime errors
Generates clear improvement suggestions
Calculates a risk score to help prioritize fixes
Displays results in a side by side diff view with highlighted changes
Masks sensitive values in the UI to prevent accidental exposure
The goal is to help developers catch problems early and ship safer code with more confidence.
How we built it
The user pastes a Git diff into the DevSync interface. The frontend sends the diff to the backend API. The FastAPI service forwards the diff to Gemini using a structured prompt. Gemini analyzes the code changes for risks, secrets and improvements. The backend returns a structured review with a calculated risk score. The frontend displays the results in a side by side diff view.
Challenges we ran into
One major challenge was handling inconsistent AI output. Even with careful prompting, models sometimes return malformed JSON. I solved this by adding strict parsing, defensive error handling and a fallback response so the system remains demo safe.
Another challenge was deployment. Managing environment variables, CORS settings and frontend backend communication across environments required careful debugging and testing.
Accomplishments that we're proud of
I am proud of building DevSync as a fully functional AI powered code review tool from scratch within a limited hackathon timeline. The project delivers structured and reliable feedback by analyzing Git diffs instead of full files, which keeps reviews fast and focused. I implemented automatic detection and masking of hardcoded secrets to improve security awareness and built a real time side by side diff viewer that makes code changes easy to understand. DevSync was deployed end to end with proper environment configuration and CORS handling, and includes fallback and mock modes to remain stable during AI failures or quota limits. Most importantly, I created a developer friendly experience that feels like a practical tool teams could use before CI runs.
What we learned
While building DevSync, I learned how to design a full stack AI powered system that prioritizes clarity and safety. I gained hands on experience with FastAPI, React and deployment workflows. I also learned that AI is most useful when it is constrained. By enforcing a strict JSON schema, I was able to make AI feedback predictable, actionable and easy to render in the UI.
I also learned how to handle failures gracefully. AI responses can be inconsistent, so I implemented validation, fallback logic and a mock mode to ensure the system always returns a meaningful review.
What's next for DevSync
Next, I plan to expand DevSync beyond manual diff input by integrating directly with GitHub pull requests. This would allow reviews to run automatically on every PR. I also want to improve the risk scoring system by incorporating historical data and severity weighting tuned to different project types. Future versions of DevSync will include language specific rules, configurable security policies and support for additional AI models. I also plan to add team level dashboards so developers can track recurring issues over time. Ultimately, the goal is to turn DevSync into a lightweight AI teammate that fits naturally into everyday development workflows.
Built With
- css
- fastapi
- google-gemini-api
- javascript
- python
- react
- render
- vite

Log in or sign up for Devpost to join the conversation.