CodeCraft: A Socratic Coding Mentor
Inspiration
We came across this idea while pondering the topic question of how AI can improve software engineering. One major issue we identified was the over-reliance on generative AI and chatbots, which often provide direct answers instead of fostering deeper learning. This led us to create CodeCraft, an AI-powered educational tool designed to help beginner programmers strengthen their coding, debugging, and problem-solving skills through guided interaction rather than direct solutions.
What it does
CodeCraft acts as a "Socratic coding mentor", encouraging users to think critically and arrive at their own solutions rather than simply receiving the correct answer. The tool engages programmers in thought-provoking conversations, prompting them to analyze problems, consider different approaches, and refine their understanding of programming concepts.
How we built it
We developed CodeCraft as a VS Code extension, ensuring seamless integration with developers' existing workflows. The extension allows users to interact with an AI chatbot that exhibits Socratic behavior. Instead of spoon-feeding answers, the chatbot asks guiding questions to help users work through their coding challenges.
To build the extension, we:
- Used Node.js and TypeScript for backend logic.
- Integrated OpenAI's API for conversational AI.
- Designed the extension interface with VS Code's API and extension development framework.
- Iterated rapidly within the 24-hour hackathon timeframe, learning on the go.
Challenges we ran into
- Time constraints: With only 24 hours, we had to prioritize features and work efficiently.
- Unfamiliarity with VS Code extension development: Since none of us had built a VS Code extension before, we had to quickly get up to speed with the documentation and best practices.
- Debating the format: At one point, we considered converting our project into a web-based application instead of an extension. However, we ultimately decided that a VS Code extension would provide the best user experience for our target audience—students and developers actively coding.
Accomplishments that we're proud of
- Successfully developing and deploying a working VS Code extension within the hackathon timeframe.
- Sticking to our original vision of promoting deeper learning over instant answers.
- Overcoming our lack of prior experience with VS Code extensions by quickly adapting and learning.
- Creating a project that has real-world potential beyond the hackathon.
What we learned
Through iNTUition, we learned that:
- Collaboration is key—effective teamwork allowed us to split tasks and work efficiently.
- Prioritization matters—we had to make tough choices about which features to implement given our limited time.
- Learning on the fly is essential—none of us had experience with VS Code extensions, but we quickly adapted by leveraging documentation and available resources.
- Simplicity enhances usability—by keeping the chatbot's interactions focused and non-intrusive, we ensured that CodeCraft remains a helpful tool rather than a distraction.
What's next for CodeCraft
While we were able to build a strong foundation, there are many features we would love to implement:
- Gamification elements: Introducing a leaderboard system and achievements to motivate learners.
- Social learning: Allowing users to add friends and compare progress.
- Productivity tools: Adding an inbuilt Pomodoro timer to encourage focused learning sessions.
- Customization: Letting users adjust the Socratic chatbot's behavior based on their learning preferences.
CodeCraft has the potential to redefine how beginner programmers engage with AI-assisted learning. We're excited to continue developing and refining the tool beyond the hackathon! 🚀
Built With
- css
- github
- html
- huggingface
- node.js
- typescript
- vscode
Log in or sign up for Devpost to join the conversation.