💡 Inspiration
We were frustrated with the current state of AI developer tools. Most tools on the market today are just glorified autocomplete engines or chat windows where you still have to manually copy, paste, and run the code. AI shouldn't replace developers; it should multiply them. We wanted to build a system that acts as an autonomous engineering team—one that can understand your architecture, write code, run it in a sandbox, read the terminal errors, and iterate until the feature actually works. Inspired by the intelligence architecture of OpenClaw, we built Vibecode.
⚙️ What it does
Vibecode gives every developer command over their own specialized AI engineering team. It is built on three core pillars:
- Deep Agent Orchestration: Instead of a generic LLM, Vibecode uses specialized agents (e.g., a React render expert, a Drizzle SQL master) to extract senior-level execution.
- Persistent Memory Layer: Context is everything. Vibecode remembers your architectural decisions, past migrations, and project-specific conventions using a vector database. It learns your codebase and evolves alongside it.
- Real-Time Execution: Code is useless if it doesn't run. Vibecode streams its thought processes, writes code, executes it in a live sandbox, and fixes its own errors autonomously before merging.
🛠️ How we built it
We architected Vibecode as a high-performance monorepo using Bun and TypeScript.
- The Brains: We utilized Google Gemini alongside LangChain/LangGraph for robust task planning and agent orchestration.
- The Memory: We integrated Upstash Vector to generate and store codebase embeddings. This allows the AI to perform semantic searches across the repository to recall how specific features were implemented in the past. We used Drizzle ORM with SQLite/Postgres to track execution states and chat threads.
- The Execution: We built a sandboxed execution engine that runs terminal commands (
bash,git,npm test) and uses a custom Validation Gate to ensure no failing code is ever merged into the main working tree. - The API: We wrapped the entire system in a fast, lightweight REST API using Hono. We also heavily leveraged the GitHub API (Octokit) to autonomously scan repositories and build intelligent project profiles.
🚧 Challenges we ran into
One of the biggest challenges was preventing the AI from getting stuck in an infinite "error-fix" loop when executing bad code. We solved this by implementing strict Validation Gates and Task Continuations. If a complex multistep plan fails, the system safely pauses the workflow, saves the state, and waits for human intervention or re-plans the task.
Another massive hurdle was managing context windows. Dumping an entire codebase into an LLM is too expensive and inefficient. We solved this by implementing our Persistent Memory Layer—using Upstash and embeddings to chunk and retrieve only the top K most relevant files when the AI needs them.
🏆 Accomplishments that we're proud of
We successfully built an AI that doesn't just write code, but validates it. Getting the Deep Agent Orchestration to successfully plan a complex feature, divide it among sub-agents, execute it in a virtual workspace, and merge a validated Git commit without human intervention was a massive breakthrough for us.
📚 What we learned
We learned that generalist AI models write junior-level boilerplate. The secret to senior-level AI output is tight, highly specialized context windows and iterative execution loops. We also learned the ins and outs of advanced LangGraph state management to keep our autonomous agents on track.
🚀 What's next for Vibecode
We are currently scaffolding Google Cloud Run integration to move our local sandboxing into scalable, isolated remote containers. We also plan to build out a richer Web UI dashboard to let users visualize the AI's execution graph in real-time, and expand our roster of highly specialized developer agents.
Built With
- bun
- drizzle-orm
- gemini
- github-api
- google-cloud
- hono
- langchain
- langgraph
- node.js
- react
- sqlite
- typescript
- upstash
- vector-database
Log in or sign up for Devpost to join the conversation.