Inspiration
In the silent corners of every great company, there is a "Ghost in the Machine" a legacy codebase that everyone depends on, but no one dares to touch. It’s the source of engineering burnout, the graveyard of new ideas, and a weight on the human spirit of innovation. We built Kandra because we believe that software should be a living, breathing canvas, not a life sentence of manual rewrites. We were inspired by the idea of a "Neural Restoration" powered by Gemini 3, a way to honor the logic of the past while gracefully evolving it into the standards of the future. With Gemini 3’s 1M token context, we finally had the "Mind" capable of holding an entire architectural history and breathing new life into it.
What it does
Kandra is the Agentic Mind for Legacy Codebase Migration. It is a partner that looks at your oldest, messiest systems and sees exactly what they intended to be. Beyond just suggesting a new path, Kandra acts as a self-governing engineer:
- Architectural Empathy: It leverages the 1M token context window to scan your entire repo and understand the "soul" of your business logic through Global Architectural Reasoning.
- Strategic Modernization: It suggests and plans a multi-step evolution to a modern stack.
- The Healing Loop: It autonomously writes tests and self-heals regressions in real-time.
Gemini 3 Integration (How we built it)
Kandra transforms code migration from a manual process into an autonomous engineering feat by leveraging the Gemini 3 1M token context window as its primary reasoning engine. Unlike traditional tools that analyze files in isolation, Kandra injects the entire repository into a single context window. This enables "Global Architectural Reasoning": the ability to map cross-file dependencies and understand the underlying intent behind legacy patterns that typical RAG systems miss.
We utilized Gemini 3 Pro for deep architectural scanning and Gemini 3 Flash for low-latency, recursive planning of the migration steps. By employing Thought Signatures, Kandra maintains a consistent "Migration Spirit," ensuring every refactored line adheres to the target stack's philosophy. It acts as an autonomous orchestrator that handles complex, long-running tasks without human supervision, using Gemini’s massive context to ensure structural integrity across thousands of modules (the "Marathon Agent" track). In the Action Era, Kandra is the ultimate proof that an agent with high-fidelity reasoning can solve the multi-billion dollar problem of technical debt.
Challenges we ran into
The hardest part of building an autonomous engineer is teaching it "Taste." It’s easy to translate code; it’s incredibly hard to ensure the new code is elegant and idiomatic. We spent weeks refining our "Vibe Engineering" prompts to ensure Kandra "restored" code to the highest standard. Managing the state of a "Self-Healing Loop" where the AI is iteratively fixing itself required a sophisticated agentic history management system to prevent hallucinatory loops.
Accomplishments that we're proud of
We achieved Autonomous Architectural Transformation. We’ve successfully migrated entire repositories where the agent identified hidden bottlenecks (like N+1 query patterns), implemented modern alternatives, and self-corrected when the first attempt failed. Seeing Kandra "fix its own mistakes" in the logs was the moment we knew we were in the Action Era.
What's next
Our next act is Continuous Modernization. We are building Kandra into a persistent guardian that lives in your repo. It won't just migrate you once; it will look for new library updates and security patches every day, meaning your code never has to become "legacy" ever again.
Built With
- custom-multi-agent-orchestration-framework
- docker
- fastapi
- gemini-3
- github-api
- native-google-genai-sdk
- nextjs
- python
- redis
- websockets
Log in or sign up for Devpost to join the conversation.