Inspiration

While parsing through an unfamiliar codebase, we found a gap between reading individual files and understanding how the entire project fits together. We could follow a function, but answering “What uses this?” or “What else should I inspect before changing it?” meant jumping between files and keeping those relationships in our heads.

That experience shaped Legacy Code Solver. We wanted to help new coders get onboarded to any codebase and give developers a clearer way to investigate older projects that may contain redundant or unused components.

Practicality and usability guided our decisions. Our goal was to help someone open a project, choose a component, and understand its connections through evidence they could inspect.

What it does

Legacy Code Solver helps developers explore a codebase through an interactive dependency graph. Users can upload a supported project archive or explore a pre-indexed sample, select components, and investigate their direct and indirect dependencies.

The graph shows how a local change could reach other parts of a project. Where source evidence is available, users can open the statement behind a connection and understand why a component appears in the results.

Our project-aware pet agent provides a conversational interface for asking about the codebase and requesting modernization suggestions. The proposal workflow lets users inspect suggested edits, approve or reject them, and refresh the graph after an applied change.

Components with few or no visible connections also provide a starting point for investigating potentially unused code. Developers can use those findings to guide further review.

How we built it

We built the frontend with React, TypeScript, Vite, and Tailwind CSS. The interface connects search, interactive 2D and 3D graph views, source inspection, and the agent panel. We used Three.js and react-force-graph-3d for the 3D visualization.

Our Python and FastAPI backend handles project uploads, graph data, and agent requests. The analysis engine uses Tree-sitter to parse supported source files and NetworkX to represent dependencies and calculate graph metrics.

An edge from component A to component B means that A depends on B. To investigate a change to B, we traverse incoming edges to discover its callers and their callers. A visited set prevents dependency cycles from repeatedly counting the same components.

For uploaded projects, applying a proposal checks the expected original file contents, writes the reviewed changes, and re-analyzes the project to update its graph and calculated health.

We divided responsibilities so teammates could develop different parts of the application simultaneously. We used ChatGPT for prompt engineering, Claude for planning, Antigravity for frontend development, and Codex for debugging. We reviewed the generated changes, resolved integration issues, and verified the application by running the build and testing its user flows.

We deployed the application on Vercel, working through the configuration needed to serve the frontend and backend together.

Challenges we ran into

Our biggest challenge was bringing separately built features together. We divided responsibilities so everyone could work simultaneously, and that part went well. We expected the features to fit together smoothly when we merged our branches, but some stopped working once combined.

Resolving that took more than accepting changes in GitHub. We reviewed the conflicts, compared the different versions, and manually combined the code. Afterward, we ran the build and clicked through the app to check whether the features we wanted were still present and working. Getting a successful merge was only one step; we also had to check the integrated experience ourselves.

The frontend needed several iterations too. Our earlier designs exposed too many controls at once, making it difficult for a new user to understand where to begin. Since we were building for people getting onboarded to unfamiliar codebases, we had to keep questioning whether the interface actually made their first investigation easier.

This was also our first time deploying a project like this on Vercel. We ran into service-entry-point errors, Python dependency problems, and a homepage that returned 404 even after the backend was responding. Working through those failures meant checking build logs and testing the frontend and API separately.

Some tools also took experimentation. We tried Groq but couldn’t get it working for our project. That experience added another decision to make under the hackathon deadline: how much time to spend troubleshooting an integration while the rest of the application still needed attention.

Accomplishments that we're proud of

We brought together source-code parsing, graph analysis, interactive visualization, and a project-aware agent interface in one application.

We’re especially proud of connecting a visual relationship to the source code that explains it. That interaction helps someone learning a project follow the reasoning themselves.

We also connected uploaded projects to their own analysis and built a review process for proposed changes. Users can inspect an edit before deciding whether to apply it.

As a team, we worked simultaneously on different parts of the project, then worked through the merge conflicts and integration problems needed to bring those contributions together.

Throughout the build, we kept returning to the experience of a new developer. That helped us prioritize clear actions and inspectable results.

What we learned

We learned how to divide a project into responsibilities that let everyone make progress at the same time. Our team worked well together, and clear delegation helped us build several parts simultaneously. Combining those parts taught us to leave time for integration, even when each person’s feature appears to work independently.

We also developed a more deliberate way of using AI tools. Turning an idea into a useful prompt required us to explain the intended behavior, the existing code, and what a successful result should look like. We still had to inspect the output and test it in the application.

Our first Vercel deployment taught us to distinguish between different kinds of success. A frontend build could pass while a backend service failed to start. An API could return data while the homepage still failed to load. We learned to verify each part and then check the complete user flow.

Finally, building for new coders made us reconsider how much explanation belongs on a screen. Adding more labels and panels did not automatically make the codebase easier to understand. We had to give users a clear starting point and let them explore one relationship at a time.

What's next for Legacy Code Solver

We want to expand language support and improve dependency resolution so developers can explore a wider range of codebases and larger projects.

We also want to strengthen the investigation of potentially unused code by adding evidence from entry points, tests, and runtime behavior. That would help developers assess whether a disconnected component is a cleanup opportunity.

For modernization, our next step is to connect patch application to build checks and automated tests, giving users more evidence about the effect of an edit. We also want to improve the reliability of the agent integration.

We plan to add persistent project storage, Git repository integration, and guidance tailored to onboarding. We also want to test the product with new coders navigating unfamiliar projects and measure whether it helps them find relevant dependencies and explain how the code fits together.

Share this project:

Updates

Submission history