AI-powered coding interview simulator in your terminal
MockingBird is a CLI-based coding interview simulator that connects you with an AI interviewer powered by Google's Gemini API. Practice technical interviews with real-time feedback, code editing in the terminal, and comprehensive performance evaluation.
- 🤖 AI Interviewer: Chat with a conversational AI interviewer
- ⌨️ Terminal Code Editor: Write and submit code directly in your terminal
- ⏱️ Timed Sessions: 45-minute interviews with automatic completion
- 📊 AI Feedback: Comprehensive evaluation across four key areas:
- Communication skills
- Problem-solving approach
- Technical competency
- Code testing practices
- 🎯 Navigation: Easy switching between chat and code areas (Ctrl+W)
- 📝 Question Bank: Random coding questions of varying difficulty
git clone https://github.com/danxguerrero/mockingbird-cli.git
cd mockingbird-cli
npm install
npm run build# Run the CLI (connects to deployed API: https://mockingbird-cli.vercel.app)
node dist/cli.jsTo run both the CLI and API locally with your own Gemini API key:
- CLI: Node.js ≥16
- API: Node.js ≥18
- Google Gemini API key
# Install CLI dependencies
npm install
# Install API dependencies
cd api
npm install
cd ..Create a .env.local file in the root directory:
# Your Google Gemini API key
GEMINI_API_KEY=your_gemini_api_key_herecd api
npm run dev
# API will run on http://localhost:3000In a new terminal:
# Build the CLI
npm run build
# Run locally (connects to localhost:3000)
node dist/cli.jsnode dist/cli.js- s - Start interview
- q - Quit application
- Ctrl+W - Enter navigation mode to switch focus
- Arrow keys (in navigation mode) - Switch between chat/code/scroll areas with UP and DOWN
- Press s to begin
- The AI interviewer will greet you and present a coding question
- Use the chat interface to discuss your approach
- Code your solution in the terminal code editor
- Submit code when ready
- After 45 minutes, the interview automatically ends
- Receive AI-generated feedback on your performance
Set the MOCKINGBIRD_API_URL environment variable:
# Use local API
export MOCKINGBIRD_API_URL=http://localhost:3000
# Use custom deployment
export MOCKINGBIRD_API_URL=https://mockingbird-cli.vercel.appThe API provides these endpoints:
GET /api/health- Health checkPOST /api/chat- Chat with AI interviewerPOST /api/feedback- Generate interview feedback
npm run buildnpm run dev- Node.js ≥16
- For API: Node.js ≥18
- Google Gemini API key (for local development)
MIT