barnent1/quetrex
If you are the rightful owner of quetrex and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Model Context Protocol (MCP) server is a crucial component of the Sentra platform, designed to facilitate autonomous AI development by managing model contexts and interactions with minimal human intervention.
Quetrex
Stop context switching. Start building.
A voice-first AI control center that lets you talk to your codebase and watch AI agents implement features while you review in-app.
Created by Glen Barnhardt with the help of Claude Code
The Problem
You're building a feature. Here's what your workflow looks like:
- Open ChatGPT/Claude → describe what you want
- Copy code → paste into VS Code
- Realize it doesn't quite fit your architecture
- Back to AI chat → explain your codebase structure
- Copy more code → paste again
- Switch to terminal →
npm test - Tests fail → back to AI chat with error logs
- Finally works → manually create GitHub issue
- Write detailed spec (again, you just told the AI)
- Assign to yourself
- Open new terminal →
git checkout -b feature/... - Make changes → commit → push
- Open GitHub in browser → create PR
- Wait for CI/CD
- Review in GitHub UI (small viewport, no IDE context)
- Repeat for next feature...
30 minutes of context switching for what should be a 2-minute conversation.
Sound familiar?
The Solution
With Quetrex, you just talk:
"Add user authentication with email and password, magic link fallback, and session management"
Quetrex does the rest:
┌─────────────────────────────────────────────────────────────┐
│ 🎤 Architect AI (listening...) │
│ │
│ "I'll create a spec for email/magic link authentication │
│ with session management using NextAuth.js..." │
│ │
│ ✓ Database schema (User, Session, VerificationToken) │
│ ✓ API routes (/api/auth/[...nextauth]) │
│ ✓ Email provider integration │
│ ✓ Session middleware │
│ ✓ Protected route HOC │
│ ✓ Unit tests (90%+ coverage) │
│ │
│ [Approve Spec] [Revise] [Cancel] │
└─────────────────────────────────────────────────────────────┘
↓ You click "Approve"
┌─────────────────────────────────────────────────────────────┐
│ 🤖 Agent: auth-feature-20251113 (running...) │
│ │
│ ✓ Created GitHub issue #42 │
│ ✓ Created branch: feature/email-magic-link-auth │
│ ✓ Installed dependencies: next-auth, nodemailer │
│ ✓ Created database schema (3 models) │
│ ✓ Generated API routes (5 endpoints) │
│ ✓ Added session middleware │
│ ⟳ Running tests... (14/18 passing) │
└─────────────────────────────────────────────────────────────┘
↓ 8 minutes later
┌─────────────────────────────────────────────────────────────┐
│ ✅ Pull Request #43 Ready for Review │
│ │
│ 📝 feat: add email/magic link authentication │
│ 🔍 18 files changed (+847, -12) │
│ ✓ All tests passing (94% coverage) │
│ ✓ TypeScript checks passed │
│ ✓ Linting passed │
│ ✓ Build successful │
│ │
│ [Review Changes] [Approve & Merge] [Request Changes] │
└─────────────────────────────────────────────────────────────┘
Result: 30 seconds of talking. 8 minutes of implementation. Zero context switching.
You stay in Quetrex. No browser tabs. No terminal windows. No copying code.
What Makes Quetrex Different
1. Voice-First, Always
Most AI coding tools make you type. Quetrex makes you talk.
- Natural conversation with AI architect about what you want to build
- 2 implementations: HTTP API (works everywhere) + Realtime API (1-2s latency)
- Smart context: Quetrex knows your codebase, your patterns, your standards
- Versioned specs: See exactly what will be built before approving
2. Mission Control for Multiple Projects
Stop juggling terminal windows and GitHub tabs. See everything at once.
┌────────────────────────────────────────────────────────────────────────┐
│ 📊 Quetrex Dashboard 🔔 3 ⚙️ │
├────────────────────────────────────────────────────────────────────────┤
│ │
│ 🟢 quetrex-frontend 🟡 auth-service │
│ ├─ feat: PR review UI ├─ fix: token refresh │
│ ├─ ▓▓▓▓▓▓▓▓▓░░░░░ 67% ├─ ▓▓░░░░░░░░░░░ 18% │
│ └─ Agent: Building... $1.23 └─ Waiting for approval $0 │
│ │
│ ⚪ analytics-dashboard 🟢 api-gateway │
│ ├─ Idle ├─ feat: rate limiting │
│ ├─ ░░░░░░░░░░░░░ 0% ├─ ▓▓▓▓▓▓▓▓▓▓▓▓ 100% │
│ └─ Ready $0 └─ PR ready for review $2.45 │
│ │
│ [+ New Project] │
│ │
├────────────────────────────────────────────────────────────────────────┤
│ Recent Activity │
│ • auth-service: Tests passing (94% coverage) 2 mins ago │
│ • api-gateway: Pull request #67 created 8 mins ago │
│ • quetrex-frontend: Agent started implementation 12 mins ago │
└────────────────────────────────────────────────────────────────────────┘
Note: Dashboard redesign in progress - current version shows mock data
3. In-App PR Review (No GitHub Tab Needed)
Review, approve, and merge pull requests without leaving Quetrex.
- Inline diff viewer with syntax highlighting
- File tree navigation to jump between changes
- Full Git visibility - see every commit, every change
- One-click approval when everything looks good
- Cost tracking - know exactly what each feature cost to build
4. Automation That Actually Works
Most CI/CD breaks when you need it most. Quetrex's automation is bulletproof.
6-Layer Defense System:
- PreToolUse Hook - Blocks dangerous commands before execution (
git commit --no-verify→ BLOCKED) - PostToolUse Hook - Validates every file change (TypeScript errors, hardcoded secrets,
anytypes) - Stop Hook - Unbypassable quality gate (tests, coverage, linting, build, security audit)
- TypeScript Strict Mode - No escape hatches, no
any, no@ts-ignore - Test Coverage - 75%+ required (90%+ for business logic)
- CI/CD - GitHub Actions enforces everything again
Result: The 9-month bug that hides in a commit you forgot to test? Impossible.
5. Enterprise-Grade Security
Running AI agents that execute code is risky. We take security seriously.
3-Phase Security Model:
Phase 1: Docker Isolation (Implemented)
- AI agents run in isolated containers on GitHub Actions
- Read-only filesystem + ephemeral storage
- Non-root execution with dropped capabilities
- Resource limits: 2GB RAM, 2 CPU cores, 45-minute timeout
- Risk reduction: 60-70%
Phase 2: Credential Proxy (Weeks 2-4)
- Credentials never exposed to agent environment
- Unix socket-based validation
- Full audit trail of all API calls
- Prevents prompt injection credential theft
- Risk reduction: Additional 30% (CRITICAL)
Phase 3: gVisor Runtime (Q1 2026)
- User-space kernel isolation
- Industry-leading security (Claude Code for Web level)
- Custom infrastructure with Google's gVisor
- Risk reduction: Final 15%
See for complete design.
Current Status: Early But Working
Let's be honest about what's done and what's coming.
✅ What's Working Today
Voice Conversations
- Two implementations (HTTP + Realtime API)
- Natural language spec generation
- Project context awareness
- Conversation history
Spec Management
- Automatic versioning (v1, v2, v3...)
- Approval workflow
- Markdown formatting with syntax highlighting
- Rollback support
GitHub Actions Automation
- Triggered by
ai-featurelabel on issues - Docker container isolation (Phase 1 security)
- Automatic PR creation
- Progress updates via issue comments
- 45-minute timeout protection
Quality Enforcement
- All 6 defense layers operational
- PreToolUse hook blocks dangerous operations
- PostToolUse hook validates every change
- Stop hook prevents finishing with failures
- Git bypass is impossible
Web Application
- Next.js 15 + React 19
- TypeScript strict mode
- Fast, responsive, works everywhere
- Progressive Web App (PWA) support
🚧 What's In Progress
Dashboard Redesign (Weeks 1-2)
- Multi-project card grid (currently single project focus)
- True dark theme with violet accents
- Real data instead of mocks
- Drill-down detail panels
Agent Worker SDK (This Week)
- Replacing non-existent CLI with Anthropic Python SDK
- Multi-turn conversation implementation
- Proper token tracking
- Better error recovery
📋 What's Planned
Phase 2: Enhanced Features (Months 3-4)
- Database layer (PostgreSQL + Prisma)
- Multi-user teams
- Real-time collaboration
- Credential proxy service (Security Phase 2)
- Mobile-responsive design
Phase 3: Enterprise Features (Months 5-6)
- TOTP 2FA authentication
- OAuth (GitHub, Google)
- SSO integration
- Advanced analytics
- Team management dashboards
Phase 4: Enterprise (Months 7-12)
- gVisor security (Phase 3)
- Custom agent runners
- Advanced analytics
- Cost optimization
- Team management
See for detailed plans.
Quick Start
Live Demo: https://quetrex.vercel.app
Local Development (5 Minutes)
# 1. Clone repository
git clone https://github.com/barnent1/quetrex.git
cd quetrex
# 2. Install dependencies
npm install
# 3. Set up environment
cp .env.example .env.local
# Edit .env.local and add:
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# 4. Start the dev server
npm run dev
# 5. Open http://localhost:3000 in your browser
Web Deployment
Deploy to Vercel (Recommended):
npm install -g vercel
vercel
See for Netlify, Railway, or custom server deployments.
First Conversation
- Click "Chat with Architect" in the dashboard
- Click the microphone button
- Describe what you want to build:
"Add a contact form with name, email, message fields. Validate email format. Store submissions in a database table. Send notification email to admin."
- Architect AI will ask clarifying questions
- Review the generated specification
- Click "Approve" to create GitHub issue and start automation
That's it. The agent takes over from there.
Technology Stack
Frontend (Web Application)
- Next.js 15.5 - React 19, App Router, Server Components
- TypeScript 5.6 - Strict mode (no
any, no@ts-ignore) - TailwindCSS - Utility-first styling
- shadcn/ui - Beautiful components
- React Query - Data fetching and caching
AI Services
- OpenAI Whisper - Speech-to-text
- OpenAI GPT-4o - Language model
- OpenAI TTS - Text-to-speech
- OpenAI Realtime API - Low-latency voice
- Claude Sonnet 4.5 - Agent implementation
Automation
- GitHub Actions - Agent execution
- Docker - Container isolation
- Anthropic SDK - Python agent worker
Testing
- Vitest - Unit tests (75%+ coverage)
- Playwright - E2E tests
- TypeScript - Type safety
Project Structure
quetrex/
├── src/ # Next.js application
│ ├── app/ # App Router pages
│ ├── components/ # React components
│ ├── lib/ # OpenAI integration, utilities
│ ├── hooks/ # Custom React hooks
│ ├── services/ # Business logic
│ └── api/ # API routes
│
├── .github/workflows/ # GitHub Actions
│ └── ai-agent.yml # Agent automation workflow
│
├── .claude/ # Claude Code configuration
│ ├── hooks/ # Quality enforcement (3 hooks)
│ │ ├── validate-bash.py # PreToolUse (block dangerous commands)
│ │ ├── verify-changes.py # PostToolUse (validate edits)
│ │ └── quality-gate.sh # Stop (unbypassable checks)
│ ├── scripts/
│ │ └── ai-agent-worker.py # Agent implementation worker
│ └── settings.json # Agent configuration
│
├── .quetrex/ # Project data
│ ├── specs/ # Versioned specifications
│ ├── memory/ # Project context
│ └── config.yml # Automation settings
│
└── docs/ # Documentation
├── architecture/ # System design, security
├── features/ # Feature documentation
├── deployment/ # Deployment guides
└── roadmap/ # Future plans
Why Web Application?
Decision: November 2025 - Converted from Tauri desktop to web application
Reason: WKWebView on macOS cannot play WebRTC audio (Apple platform bug). Browser echo cancellation works perfectly in Chrome/Safari/Firefox. Voice is the core product.
Advantages:
- Universal access - Works on any device with a browser
- No installation - Instant access via URL
- Perfect voice - Browser echo cancellation works flawlessly
- Easy updates - Deploy once, everyone gets the update
- Cross-platform - macOS, Windows, Linux, tablets, phones
Result: Echo cancellation now works reliably on all platforms. No more WKWebView limitations. Voice-first AI works perfectly.
Development
Commands
# Development
npm run dev # Start Next.js dev server
npm run dev:safe # Start dev server with crash recovery
npm run build # Production build
npm run start # Start production server
# Testing
npm test # Run tests in watch mode
npm test:run # Run tests once
npm test:coverage # Run with coverage report
npm test:e2e # Run E2E tests (Playwright)
# Quality Checks
npm run type-check # TypeScript compilation (strict mode)
npm run lint # ESLint (0 errors, 0 warnings required)
npm run format # Prettier formatting
Development Standards
TypeScript Strict Mode (Mandatory)
// ✅ DO: Explicit types
function calculateTotal(items: CartItem[]): number {
return items.reduce((sum, item) => sum + item.price, 0)
}
// ❌ DON'T: Using 'any'
function processData(data: any) { }
// ❌ DON'T: Using @ts-ignore
// @ts-ignore
const value = getData()
Test-Driven Development (TDD)
- Write tests FIRST
- Verify tests FAIL
- Write implementation
- Verify tests PASS
- Refactor as needed
Coverage Requirements
- Overall: 75%+
- Business Logic (services): 90%+
- Utilities: 90%+
- UI Components: 60%+
Code Quality
- ESLint: 0 errors, 0 warnings
- Prettier: Enforced by pre-commit hooks
- No console.log in production code
- Input validation mandatory
- No secrets in code (environment variables only)
See for complete guidelines.
Documentation
Quick Links
📚 - Everything in one place
🚀 - Get running in 10 minutes
🧪 - TDD workflow, coverage, E2E tests
🚢 - Production setup and configuration
🤝 - Development standards and best practices
Documentation Structure
Getting Started
- - Prerequisites, setup, first run
- - Setup and development workflow
Development
- - TDD, coverage requirements, E2E tests
- - Standards, Git workflow, quality hooks
- Project Structure - File organization
Deployment
- - Production setup, environment variables
- - 3-phase security model
Architecture & Design
- - Complete architecture overview
- - Docker, credential proxy, gVisor
- - Next.js App Router patterns
- - Specification management
- - Claude Code CLI approach
Features
- - HTTP and Realtime API implementations
- - Versioning and approval workflow
- - Mission control interface
- - Creating new projects
- - GitHub Actions integration
Roadmap
- - What's not done yet (honest status)
- - Mission control vision
- - Monitoring, logs, costs
Browse All Docs:
Real-World Example
Scenario: You need to add a real-time notification system to your app.
Traditional Workflow:
- Research WebSocket vs Server-Sent Events (30 minutes)
- Open ChatGPT, describe requirements (10 minutes)
- Copy/paste code, realize you need Redis (20 minutes)
- Install Redis, configure Docker Compose (30 minutes)
- Write tests (45 minutes)
- Debug failing tests (60 minutes)
- Create PR manually (15 minutes)
- Wait for review...
Total: 3+ hours of active work
Quetrex Workflow:
You: "Add real-time notifications using WebSockets. Store in
Redis for multi-server support. Show toast notifications
in UI. Support notification preferences per user."
Architect: "I'll design a WebSocket notification system with
Redis pub/sub. Here's the spec..."
[8 minutes later]
Agent: "✓ Pull request #87 created
- Added WebSocket server (Socket.io)
- Redis pub/sub integration
- Notification preferences model
- Toast component with animations
- 23 tests added (96% coverage)
- All checks passing"
You: [Reviews in-app] "Looks good!"
[Clicks Approve & Merge]
Done.
Total: 30 seconds of talking + 8 minutes of implementation + 2 minutes of review = 10 minutes
This is the future of development.
Contributing
We welcome contributions! This is an early-stage project with lots of opportunities to make an impact.
How to Contribute:
- Read
- Check Issues for
good first issuelabel - Fork the repo and create a feature branch
- Write tests FIRST (TDD approach)
- Ensure all quality checks pass
- Submit PR with clear description
Key Points:
- TypeScript strict mode (no
any, no@ts-ignore) - 75%+ test coverage required (enforced by CI/CD)
- Quality hooks prevent bypassing checks
- Write tests before implementation
- Run
npm run type-check && npm test && npm run lintbefore committing
Areas Needing Help:
- Dashboard redesign (React components)
- Linux/Windows testing
- E2E test coverage
- Documentation improvements
- Agent worker SDK implementation
Vision
We're building the operating system for AI-powered development.
Today, Quetrex is a web application that helps you build features faster with voice and automation.
Future planned features:
- Multi-user (teams, real-time collaboration)
- Fully voice-controlled (never touch keyboard)
- Hyper-personalized (learns your patterns, your style)
- Cost-optimized (AI model selection, caching, smart retries)
- Enterprise-ready (SSO, audit logs, compliance)
- Mobile-optimized (iOS, Android PWA support)
The goal: Make building software as easy as having a conversation.
FAQ
Q: Does this replace developers? A: No. Quetrex makes developers more productive. You still make all the decisions - what to build, how to architect it, whether the implementation is correct. Quetrex just handles the tedious parts (writing boilerplate, running tests, creating PRs).
Q: What if the AI makes mistakes? A: That's why we have the 6-layer defense system and in-app PR review. Every change goes through TypeScript checks, linting, tests, and human review. Nothing gets merged without your approval.
Q: How much does it cost to run? A: Depends on usage. Typical costs:
- Voice conversations: ~$0.01-0.05 per conversation (OpenAI)
- Agent implementation: ~$0.50-3.00 per feature (Anthropic)
- GitHub Actions: Free tier covers ~2000 minutes/month
- Estimate: ~$10-30/month for active solo developer
Q: Is my code secure? A: Yes. See . Phase 1 (Docker isolation) is implemented. Phase 2 (credential proxy) is in progress. Phase 3 (gVisor) planned for Q1 2026.
Q: Can I use this in production? A: Quetrex itself is early-stage (use at your own risk). But the code Quetrex generates? Absolutely - just review it carefully like you would any PR.
Q: Does it work on mobile? A: The web interface is responsive and works on tablets. Full mobile optimization is planned for Phase 3.
License
MIT License - See file for details.
Credits
Created by: Glen Barnhardt with the help of Claude Code
Powered by:
- Next.js - React framework
- OpenAI - Voice and language models
- Anthropic - Claude AI for agent execution
- shadcn/ui - Beautiful UI components
- Vercel - Deployment platform
Special Thanks:
- Anthropic for Claude and the vision of helpful, honest, and harmless AI
- OpenAI for pushing the boundaries of what's possible with voice
- Vercel for making deployment effortless
- The open-source community for inspiration and building blocks
Get Started
git clone https://github.com/barnent1/quetrex.git
cd quetrex
npm install
npm run dev
Questions? Open a GitHub Issue
Want to contribute? Read
Deploying? See
Follow progress: Star this repo and watch for updates
Stop context switching. Start building.
Talk to your codebase. Watch AI implement features. Review in-app. Merge with one click.
Try Live Demo | |