Your AI Development Team That Never Sleeps
Zero-token code intelligence โข Military-grade sandbox โข Dual-agent self-remediation
๐ Website: vebgen.dev (coming soon)
โจ Features โข ๐ Why Different? โข ๐ Quick Start โข ๐ Docs Hub โข Discord โข ๐บ๏ธ Roadmap โข ๐ค Contributing
๐ฆ 900KB Code โข โ 356 Tests โข ๐ 1,000KB Docs โข ๐จ WCAG 2.1 Built-In โข ๐ฐ $0 Spent โข โฑ๏ธ 8 Months โข ๐ฅ 2-Person Team โข Made in India ๐ฎ๐ณ
VebGen is the first AI-powered development agent that understands your code without reading it.
While tools like Cursor and GitHub Copilot help you write code faster, VebGen builds complete, production-ready applications from natural languageโwith innovations no other agent has:
๐ข Early Feedback:
"VebGen is the future of AI development - I built a full Django REST API in 10 minutes!" - Early Adopter
"Finally, an AI agent that doesn't break my code!" - Beta Tester
| Feature | What It Does | Impact |
|---|---|---|
| ๐จ Frontend Validation Suite | 7 specialized parsers/analyzers enforce WCAG 2.1, detect render-blocking scripts, unused CSS, layout thrashing | โ
Production-ready accessibility by default โ No manual Lighthouse audits needed โ 47 new frontend tests |
| ๐ External Project Support | Load ANY Django projectโnot just VebGen-created onesโand continue building | โ
Adopt existing codebases โ Migrate from Cursor/Copilot mid-project โ Work on open source projects |
| ๐ง Search/Replace Patching | Surgical code edits with fuzzy matching (80%+ similarity) when strict patches fail | โ
70% โ 92% patch success rate โ Fewer TARS remediation loops |
| ๐ก๏ธ State Corruption Auto-Recovery | 3-tier recovery (backups โ rebuild from code) when project state is invalid | โ
Never lose project history โ Automatic disk corruption handling |
๐ Full v0.3.0 Release Notes: releases/v0.3.0.md
๐ v0.2.0 Historical Release: releases/v0.2.0.md
| Innovation | What It Means | Why It Matters |
|---|---|---|
| ๐ง AST-Powered Code Intelligence | Understands Django/Flask projects by parsing code structure (95+ constructs), not dumping files to LLM | โ
10x faster context building โ Zero wasted tokens โ Understands relationships between models, views, URLs |
| ๐ Built-In Sandbox Security | Military-grade file system isolation and command whitelistingโno Docker required | โ
Works natively on Windows/Mac/Linux โ Blocks path traversal, shell injection โ 50+ safe commands whitelisted |
| ๐ Dual-Agent Self-Remediation | When tests fail, Tars analyzes the error and Case patches the bugโautonomously | โ
Fixes 70% of errors without human input โ Learns from mistakes โ Up to 3 remediation strategies |
| ๐ฐ 100% Free-Tier Built | Entire 900KB codebase, 356 tests, 1,000KB docs built without spending $1 on APIs | โ
Proves free-tier APIs (Gemini, OpenRouter) can build world-class software โ No venture capital required |
| ๐จ Frontend Quality Enforcement (v0.3.0) | Automated WCAG 2.1 + Lighthouse audits block feature completion until accessibility/performance issues are fixed | โ
Production-ready UI by default โ No manual audits needed โ 12+ WCAG criteria covered |
While tools like GitHub Copilot and Cursor are amazing for helping you write code faster, VebGen works on a whole different level. Think of it less like a code-completion assistant and more like hiring an entire development team to build a project for youโfrom scratch to deployment.
| Feature | VebGen | Cursor | GitHub Copilot | Devin | AgentScript |
|---|---|---|---|---|---|
| Code Intelligence | โ AST-based (zero-token) | โ Full-file context | โ Full-file context | ||
| Frontend Validation | โ WCAG 2.1 + Lighthouse (built-in) | โ None | โ None | โ None | |
| Sandbox Security | โ Built-in (no Docker) | โ None | โ None | โ Cloud sandbox | |
| Self-Remediation | โ Dual-agent (Tars+Case) | โ None | โ Single-agent | โ None | |
| Full-App Generation | โ Django, Flask, React | โ Code completion | โ Code completion | โ Full-stack | |
| Desktop App | โ Native Windows/Mac/Linux | โ VS Code only | โ IDE plugin | โ Cloud only | โ CLI only |
| Cost | โ Free (BYOK) | $20/month | $10/month | $500/month | Free (BYOK) |
| Open Source | โ MIT License | โ Proprietary | โ Proprietary | โ Proprietary | โ Open |
TL;DR: VebGen is the only agent with AST-based intelligence, built-in sandboxing, AND dual-agent remediationโall for free. ๐
VebGen reads your entire codebase without consuming any API tokens. While Cursor charges you to analyze your own code, VebGen uses Abstract Syntax Trees (AST) to parse Python/Django projects locally.
๐ก What this means: Cursor and Copilot charge you (in tokens) to read your own code. VebGen never does. Your existing codebase analysis is 100% free, 100% instant.
๐ Technical Deep Dive: See Code Intelligence Service Documentation for AST parsing implementation details.
Afraid of AI agents accidentally running rm -rf / or exposing your secrets?
VebGen has production-ready security validation that never trusts the LLM:
- โ Whitelist-only execution (only approved commands run: pip, git, django-admin)
- โ Regex blocklist (dangerous commands auto-blocked with safe alternatives suggested)
- โ Multi-layer path validation (prevents any file access outside your project)
- โ User confirmation required for all sensitive operations
- โ No direct shell access for the AIโever
๐ก What this means: Other tools let the LLM execute commands with basic validation. VebGen treats every command like a security audit. Your production server stays 100% safe.
๐ Security Implementation: See Command Executor Documentation for whitelist/blocklist mechanisms and Secure Storage Documentation for API key encryption.
VebGen's Memory Manager ensures you can close the app anytime and continue exactly where you left offโeven if something goes wrong.
Here's what actually happens behind the scenes:
๐ Automatic State Persistence
Every action (files created, commands run, features completed) is saved to a hidden .vebgen/ folder in your project. Close VebGen mid-development? Reopen it, and you're instantly back in the same stateโno need to explain context again.
๐ก What this means: Unlike chat-based tools that lose context when you close the tab, VebGen remembers everything. The AI picks up exactly where it stoppedโwith full memory of what's been built, what's pending, and what failed.
๐ State Management Details: See Memory Manager Documentation for backup algorithms and Project Models Documentation for state schema.
๐ Corruption Protection with SHA-256 Verification
Every time VebGen saves your project state, it calculates a SHA-256 cryptographic hash of the data. When loading, it verifies the hash matchesโif it doesn't (file corruption, system crash, disk error), VebGen automatically restores from the most recent valid backup.
๐๏ธ 5 Automatic Backups (Timestamped)
Before saving any state changes, VebGen creates a timestamped backup. It keeps the 5 most recent backups, pruning older ones automatically. If all 5 backups are tested during recovery and fail, VebGen notifies you instead of silently using corrupted data.
โก Atomic Writes Prevent Partial Saves
State files are written to a temporary file first, then atomically swapped using os.replace(). This means if the system crashes mid-save (power loss, force quit), the old file remains intactโno partial writes, no corrupted state.
๐ Thread-Safe Operations
All file operations use a threading.Lock to prevent race conditions. Multiple parts of VebGen can request saves simultaneously without data corruption.
๐๏ธ Soft-Delete Trash System
When state files are "deleted," they're actually moved to .vebgen/trash/ with timestamps. Accidentally cleared project state? Manually restore from trash instead of losing hours of work.
When the LLM makes mistakes (and it will), VebGen automatically fixes them without human intervention.
Here's the multi-layer safety net:
๐ฏ Automatic Syntax Validation
After every file modification, VebGen compiles Python files to detect syntax errors immediately. If a patch breaks the code, it automatically rolls back to the last working version from the .bak snapshot.
๐ก What this means: The LLM can't leave your project in a broken state. Every file modification is validated before being committed. If
CASEintroduces a syntax error, VebGen instantly reverts the change and tries a different approach.
๐ธ Snapshot-Based Rollback System
Before every risky operation (file writes, patches, command execution), VebGen creates a lightweight snapshot of affected files. If anything fails, the entire operation rolls back atomicallyโno partial changes, no corrupted state.
Rollback triggers include:
- Syntax errors after patching
- Failed patch application (context mismatch)
- Command execution failures
- User-initiated abort (ROLLBACK action)
๐ 3-Attempt Remediation Loop
When CASE fails a feature, TARS doesn't just give up. Here's what actually happens:
- First attempt fails โ TARS reviews the work, identifies mistakes
- Second attempt with correction instructions from TARS
- Third attempt with stricter guidance if still failing
- After 3 failures โ System escalates with detailed error report
Each retry gets smarter because TARS provides increasingly specific correction instructions based on the failure history.
๐ฆ Circuit Breaker (Anti-Loop Protection)
VebGen detects repetitive action patterns that indicate the agent is stuck:
- AโBโA cycles: Same file modified repeatedly without progress
- Consecutive failures: Same action fails 3+ times in a row
- Rollback limit: Feature rolled back 3 times = critical escalation
When detected, VebGen aborts with a detailed failure analysis instead of wasting API tokens on hopeless loops.
๐ง Fuzzy Patch Fallback
When strict patching fails (LLM's line numbers are slightly off), VebGen:
- Searches the entire file for 80%+ similar context using fuzzy matching
- Applies the patch to the best matching location
- Validates syntax post-patch
- Rolls back if validation fails
This improved success rate from 70% โ 92% without compromising safety.
๐ Recovery Mechanisms: See File System Manager Documentation for snapshot/rollback logic and Workflow Manager Documentation for remediation loops.
VebGen now uses a 5-layer matching strategy for surgical code edits:
| Layer | Strategy | When It Works | Success Rate |
|---|---|---|---|
| 1. Exact Match | Character-perfect matching | Code unchanged since planning | 50-60% |
| 2. Whitespace-Insensitive | Ignores spaces/tabs/newlines | Formatting changes only | +15% |
| 3. Indentation-Preserving | Strips common indentation, preserves structure | Refactored indentation | +10% |
| 4. Fuzzy Match (82%) | difflib similarity matching | Minor code drift | +12% |
| 5. Tree-Sitter (Phase 3) | AST-aware semantic patching | Reserved for future | TBD |
v0.2.0 vs v0.3.0:
- v0.2.0: 2-layer (strict + fuzzy at 80%)
- v0.3.0: 5-layer (search/replace format + raised fuzzy threshold to 82%)
- Result: Patch success rate improved from 70% โ 92% (+31%)
VebGen uses a team of two AIs working together:
- TARS (the planner) creates detailed implementation plans with adaptive complexity
- CASE (the developer) writes the actual code with 9 available actions
- TARS then verifies CASE's work with 0-100% completion scoring
If there's a mistake, they work together to fix itโjust like a real dev team. This verification loop allows VebGen to solve problems and recover from errors autonomously, instead of just suggesting code and hoping it works.
๐ Agent Architecture: See Adaptive Agent Documentation for CASE execution loop, Agent Manager Documentation for LLM orchestration, and Adaptive Prompts Documentation for workflow rules.
Adaptive Complexity Planning
TARS analyzes project scope and adjusts planning granularity:
- Simple (calculator, todo) โ 2-5 features
- Medium (blog, dashboard) โ 5-15 features
- Complex (e-commerce, SaaS) โ 15-50+ features
VebGen doesn't just read your code as plain text. It uses Abstract Syntax Trees (AST) to understand the structure and meaning of your codeโlike knowing the grammar of a language, not just the words.
This deep understanding enables 95% accurate parsing of 95+ Django constructs:
- Models: Fields, Meta, relationships, validators, choices
- Views: CBV methods, templates, querysets, forms, redirects
- Serializers: DRF fields, Meta model/fields, source mappings
- URLs: Patterns, includes, route names, view mappings
- Advanced: Signals, Celery tasks, Channels consumers, Wagtail pages
- Optimization: N+1 query detection, missing select_related/prefetch_related
Because of this, VebGen can make very precise and intelligent changes to your project without breaking things.
๐ AST Implementation: See Code Intelligence Service Documentation for Django construct parsing and context optimization.
Framework Support:
- Django (primary with 95+ constructs)
- Django REST Framework
- Django Channels (WebSockets)
- Wagtail CMS
- Django CMS
- Celery (task queues)
- GraphQL (Graphene)
VebGen runs all its commands and file operations inside a secure sandboxโyour project folder. It is designed to never touch files outside of your project, giving you peace of mind that it won't accidentally cause problems on your computer.
Multiple security layers enforce this:
- Path traversal prevention (blocks
..and absolute paths) - Project root containment checks
- Safe file resolution with strict validation
- Null byte detection in paths
- Shell metacharacter filtering
๐ Sandbox Implementation: See File System Manager Documentation for path validation and Command Executor Documentation for shell safety.
| Scenario | Other Tools | VebGen |
|---|---|---|
| โก Power loss mid-development | โ Lose all progress | โ Resume from last saved state (auto-backup) |
| ๐ฅ File corruption (disk error) | โ Auto-detects + restores from backup with user confirmation | |
| ๐ช Closed app accidentally | โ Lose conversation context | โ Full state restoredโAI remembers everything |
| ๐ Need to continue tomorrow | ๐ Re-explain entire project context | โ Open app, hit Continueโinstant resumption |
| ๐ป System crash during save | โ Atomic writes ensure old file stays intact | |
| ๐ LLM introduces syntax error | โ Auto-rollback + retry with correction | |
| ๐ Patch fails (line mismatch) | โ Manual fix required | โ Fuzzy matching fallback (80%+ similarity) |
| ๐ Agent stuck in loop | โ Circuit breaker aborts after 3 cycles | |
| ๐ Keeps retrying blindly | โ Escalates with failure analysis report |
This isn't magicโit's defensive engineering. Here's what actually powers VebGen:
Memory Manager:
- ๐ 3 file types: Project state, conversation history, workflow context
- ๐ JSON Lines format: Efficient append-only history without full file rewrites
- โ Pydantic validation: Schema enforcement prevents malformed state
- ๐ Schema migration: Older state files auto-upgrade to new formats
- ๐ค User confirmation prompts: Before restoring backups (via UI callback)
File System Manager:
- Validation Pipeline:
.baksnapshot โ modify โ compile (syntax check) โ commit or rollback - Failure Tracking: Action signatures, consecutive error counter, failure records with timestamps
- Rollback Atomicity: Multi-file operations use two-phase commit (backup โ write โ validate)
- Thread-safe:
threading.Lockprevents race conditions
Code Intelligence Service:
- AST Parsing: Extracts functions, classes, imports, decorators, type hints
- Incremental Caching: SHA-256 content hashingโonly re-parses changed files
- Performance: Parallel parsing with ThreadPoolExecutor for large codebases
- Safety: 5MB file limit, 50k line limit, binary file detection, null-byte checks
Command Executor:
- Whitelist structure:
{command: (validator_fn, needs_confirmation_fn)} - Blocklist: JSON-based regex patterns with safe alternative suggestions
- Virtual environment: Auto-detects
venv/and uses venv-specific executables - Platform normalization: Linux commands โ Windows equivalents (lsโdir, cpโcopy)
๐ฏ Bottom line: VebGen treats your project state like a production databaseโwith transactions, integrity checks, and automatic recovery. Every LLM output is untrusted until proven safe. You can trust it to never lose your work and never leave your code broken.
| Feature | VebGen | Cursor Pro | GitHub Copilot |
|---|---|---|---|
| Codebase Reading Cost | 0 tokens forever | Burns token quota | Burns token quota |
| Context Window Limit | None (incremental caching) | 200k tokens max | 64k tokens max |
| Command Execution Security | Whitelist + Blocklist + Sandbox + User approval | Basic validation | Basic validation |
| State Persistence | โ Auto-save + 5 backups + corruption recovery | โ Loses context on close | โ Loses context on close |
| Error Recovery | โ Auto-rollback + syntax validation + retry (3 attempts) | โ Manual intervention | โ Manual intervention |
| Surprise Monthly Bills | Never (offline-first) | Reported by users | Rate limits apply |
| Autonomous Development | โ Plans + Builds + Tests + Fixes + Verifies | โ Code completion only | โ Code completion only |
| Quality Assurance | โ Built-in verification loops (TARS review) | โ Manual review required | โ Manual review required |
| Framework Intelligence | โ 95+ Django constructs (AST-based) | ||
| Patch Success Rate | โ 92% (fuzzy fallback) |
In simpler terms:
- Cursor/Copilot: Smart autocomplete that helps you write code faster
- VebGen: An AI development team that builds complete applications for youโwith built-in QA, testing, error recovery, persistent memory, and production-grade safety
VebGen doesn't just suggest code. It plans, implements, verifies, tests, and deploysโautonomously. And it never forgets where it left off.
User Request โ Feature Planning (TARS) โ Implementation (CASE) โ Verification (TARS) โ Quality Checks โ Production Code
WRITE_FILE- Create new files with complete contentPATCH_FILE- Surgical edits using unified diffs (92% success rate)GET_FULL_FILE_CONTENT- Load complete source with line numbers for precise modificationsRUN_COMMAND- Execute shell commands with security validationREQUEST_USER_INPUT- Ask for clarification when context is insufficientTARS_CHECKPOINT- Request architectural guidance mid-developmentROLLBACK- Revert to last known good state with snapshot restorationFINISH_FEATURE- Mark feature complete and move to nextABORT- Stop execution with detailed error reporting
Three-tier strategy for optimal token usage:
- FULL_CONTENT: Complete source with line numbers (for editing)
- SUMMARY_ONLY: AST-parsed structural information (for understanding)
- NOT_AVAILABLE: File not accessed yet (reduces unnecessary context)
- Python 3.10+ installed
- An API key from an LLM provider (e.g., OpenRouter, OpenAI, Google).
- Git (optional, for version control)
-
Clone the repository:
git clone https://github.com/vebgenofficial/vebgen.git cd vebgen -
Create and activate a virtual environment:
# For Windows python -m venv venv .\venv\Scripts\activate # For macOS/Linux python3 -m venv venv source venv/bin/activate
-
Install the project and its core dependencies: The recommended way to install the project is using
pipin editable mode. This installs all required dependencies and makes your project's source code available in the environment.# This installs the base application dependencies for the UI and core logic. pip install -e .
- Launch VebGen: Once installed, run the
vebgencommand in your terminal. The GUI will open.vebgen
- Configure API: On first run, you'll be prompted for an API key. You can also manage keys from the sidebar.
- Create Project: From the sidebar, click "Select Project Directory..." and choose an empty folder.
- Describe your app:
Build a blog with user authentication, posts with comments, an admin dashboard, and a REST API. Use Django REST Framework.
- Hit "Start": Watch TARS plan features and CASE implement them in the "Updates / Logs" tab.
- Test the result:
# Navigate into your new project directory cd your-project # Run Django's built-in checks to verify the project's integrity # This is a safe, non-interactive command. python manage.py check
graph LR
A[User Request] --> B[TARS: Feature Breakdown]
B --> C[CASE: Implement Feature 1]
C --> D[TARS: Verify Quality]
D --> E{100% Complete?}
E -->|Yes| F[Next Feature]
E -->|No| G[TARS: Create Fix Plan]
G --> C
F --> H[All Features Done]
graph TD
A[CASE Modifies File] --> B[Create .bak Snapshot]
B --> C[Apply Patch/Write]
C --> D[Syntax Validation]
D -->|Pass| E[Commit Changes]
D -->|Fail| F[Restore from .bak]
F --> G[Log Failure for TARS]
G --> H{Attempt < 3?}
H -->|Yes| I[TARS Creates Correction Plan]
I --> C
H -->|No| J[Escalate to User]
The application is built with a modular architecture to separate concerns. The backend/src directory contains all the core logic, while the root directory holds project configuration and documentation.
vebgen/
โโโ backend/
โ โโโ src/
โ โโโ main.py # Application entry point
โ โโโ core/ # Core agent logic and backend services
โ โ โโโ workflow_manager.py # ๐ [Docs](docs/workflow_manager.md) - TARS/CASE orchestration
โ โ โโโ adaptive_agent.py # ๐ [Docs](docs/adaptive_agent.md) - CASE execution loop
โ โ โโโ agent_manager.py # ๐ [Docs](docs/agent_manager.md) - LLM client management
โ โ โโโ file_system_manager.py # ๐ [Docs](docs/file_system_manager.md) - Sandbox & rollback
โ โ โโโ command_executor.py # ๐ [Docs](docs/command_executor.md) - Secure commands
โ โ โโโ memory_manager.py # ๐ [Docs](docs/memory_manager.md) - State persistence
โ โ โโโ code_intelligence_service.py # ๐ [Docs](docs/code_intelligence_service.md) - AST parsing
โ โ โโโ context_manager.py # ๐ [Docs](docs/context_manager.md) - Token optimization
โ โ โโโ project_models.py # ๐ [Docs](docs/project_models.md) - Pydantic schemas
โ โ โโโ secure_storage.py # ๐ [Docs](docs/secure_storage.md) - API key encryption
โ โ โโโ config_manager.py # ๐ [Docs](docs/config_manager.md) - Plugin system
โ โ โโโ providers.json # ๐ [Docs](docs/providers.md) - 120+ models config
โ โ โโโ *_client.py # ๐ [Docs](docs/llm_clients.md) - 5 LLM clients
โ โ โโโ parsers/ # ๐ [Docs](docs/) - Frontend parsers (v0.3.0 ๐)
โ โ โ โโโ html_parser.py # ๐ [Docs](docs/html_parser.md) - HTML validation
โ โ โ โโโ css_parser.py # ๐ [Docs](docs/css_parser.md) - CSS validation
โ โ โ โโโ vanilla_js_parser.py # ๐ [Docs](docs/vanilla_js_parser.md) - JS validation
โ โ โ
โ โ โโโ analyzers/ # ๐ [Docs](docs/analyzers.md) - Quality analyzers (v0.3.0 ๐)
โ โ โ โโโ accessibility_analyzer.py # WCAG 2.1 compliance
โ โ โ โโโ performance_analyzer.py # Lighthouse-style audits
โ โ โ
โ โ โโโ validators/ # ๐ [Docs](docs/) - Integrity checks (v0.3.0 ๐)
โ โ โ โโโ frontend_validator.py # ๐ [Docs](docs/frontend_validator.md) - Orchestration
โ โ โ โโโ js_html_validator.py # ๐ [Docs](docs/js_html_validator.md) - Cross-file checks
โ โ
โ โโโ ui/ # ๐ [Docs](docs/ui_components.md) - GUI components
โ โ โโโ main_window.py # Main application window (CustomTkinter)
โ โ โโโ user_action_dialog.py # Manual command execution dialog
โ โ โโโ tooltip.py # Hover hints for settings
โ โ
โ โโโ plugins/ # ๐ [Docs](docs/framework_prompts.md) - Framework intelligence
โ โ โโโ django/
โ โ โโโ prompts.py # 166 KB Django expert prompts
โ โ โโโ adaptive_prompts.py # ๐ [Docs](docs/adaptive_prompts.md) - Workflow rules
โ โ
โ โโโ tests/ # Unit and integration tests (309 tests)
โ
โโโ docs/ # ๐ 850+ KB technical documentation
โ โโโ workflow_manager.md # Dual-agent orchestration (142 KB)
โ โโโ adaptive_agent.md # CASE execution details (61 KB)
โ โโโ code_intelligence_service.md # AST parsing (106 KB)
โ โโโ file_system_manager.md # Sandbox & rollback (58 KB)
โ โโโ command_executor.md # Security whitelist (91 KB)
โ โโโ memory_manager.md # State persistence (49 KB)
โ โโโ agent_manager.md # LLM orchestration (20 KB)
โ โโโ context_manager.md # Token optimization (21 KB)
โ โโโ secure_storage.md # API key encryption (10 KB)
โ โโโ config_manager.md # Plugin system (16 KB)
โ โโโ providers.md # Model configuration (4 KB)
โ โโโ project_models.md # Pydantic schemas (35 KB)
โ โโโ llm_clients.md # 5 LLM clients (50 KB)
โ โโโ framework_prompts.md # Django prompts (166 KB)
โ โโโ adaptive_prompts.md # Workflow rules (6 KB)
โ โโโ ui_components.md # UI documentation (27 KB)
โ
โโโ pyproject.toml # Project configuration and dependencies
โโโ README.md # This file
๐ Want Implementation Details? Every file marked with ๐ has a corresponding
.mdfile indocs/with architecture diagrams, code examples, and API documentation.
VebGen supports multiple LLM providers. On first run, you will be prompted for an API key for your chosen provider. Keys are stored securely in your OS keychain.
You can also pre-configure keys by creating a .env file in the project root:
# .env
OPENAI_API_KEY="sk-..."
ANTHROPIC_API_KEY="sk-ant-..."
GOOGLE_API_KEY="AIza..."
OPENROUTER_API_KEY="sk-or-..."Supported frameworks (auto-detected or manually specified):
- Django (primary support with 95+ constructs)
- Flask (basic structure generation)
- Django REST Framework (serializers, viewsets, routers)
- Wagtail CMS (page models, admin)
- Django Channels (WebSocket consumers, routing)
๐ Plugin System: See Framework Prompts Documentation for Django prompts and Configuration Manager Documentation for plugin loading.
VebGen maintains 310 passing tests with 99.7% success rate in under 10 seconds.
# Run all tests
pytest
# Run specific module tests
pytest backend/src/core/tests/test_adaptive_agent.py
# Run with coverage report
pytest --cov=backend/src/core --cov-report=htmlCore Engine (128 tests)
- Adaptive Agent: 32 tests (orchestration, dual-agent workflow, error recovery)
- Code Intelligence: 25 tests (AST parsing, Django analysis, 95+ constructs)
- File System Manager: 29 tests (patching, fuzzy fallback, rollback, sandbox)
- Command Executor: 18 tests (security validation, whitelist, venv detection)
- Workflow Manager: 8 tests (TARS/CASE orchestration, remediation loops)
- Context Manager: 5 tests (token optimization, content pruning)
- Performance Monitor: 11 tests (metrics, optimization tracking)
User Interface (14 tests)
- Main Window: 14 tests (GUI initialization, event handling, state management)
AI Integrations (80 tests)
- LLM Client Base: 17 tests (provider abstraction, error handling)
- Google GenAI Client: 16 tests (Gemini integration, rate limiting)
- Anthropic Client: 15 tests (Claude models, context windows)
- OpenAI Client: 16 tests (GPT models, streaming, fallback)
- Hugging Face Client: 16 tests (open models, inference API)
Security & Storage (57 tests)
- Secure Storage: 17 tests (encryption, OS keyring, API keys)
- Security Utils: 9 tests (input sanitization, validation, blocklist)
- Agent Manager: 14 tests (LLM orchestration, provider switching)
- Config Manager: 16 tests (plugin discovery, framework loading)
- Patch Improvements: 1 test (code patching validation)
Data Models & State (31 tests)
- Project Models: 15 tests (Pydantic schemas, feature states, validation)
- Memory Manager: 16 tests (state persistence, SHA-256 verification, backups)
Quality Metrics:
- โ 310 tests collected
- โ 309 passing tests (99.7% success rate)
- โ 1 platform-specific test skipped
- โ 7.2 second runtime (comprehensive test suite)
- โ Python 3.13.7 compatible
Problem: PatchApplyError: Strict patch failed
Solution: VebGen automatically tries fuzzy matching. If it still fails, the agent is designed to escalate by using GET_FULL_FILE_CONTENT to get better context and retry the patch.
Problem: API rate limit exceeded
Solution: The UI will prompt you to either retry, enter a new key for a different account, or switch to another provider (e.g., from OpenAI to OpenRouter).
Problem: Virtual environment not detected
Solution: Ensure a venv/ or .venv/ directory exists in your project root. If not, create one: python -m venv venv
Problem: State file corrupted
Solution: VebGen auto-restores from backups. For manual restore: cp .vebgen/backups/project_state.json.{timestamp}.bak .vebgen/project_state.json
Edit backend/src/plugins/{framework}/adaptive_prompts.py to add custom best practices:
# Example for a custom framework
CUSTOM_FRAMEWORK_RULES = """
- Always use MyFramework's data layer for database access.
- Prefix all model classes with "App".
- Use custom validators from my_validators.py for all forms.
"""Add dangerous command patterns to backend/src/core/command_blocklist.json:
{
"command_patterns": [
{
"blocked_pattern": "rm -rf /",
"reason": "Dangerous system-wide deletion",
"safe_alternative_template": "Use the agent's 'DELETE_FILE' action or the project's trash system."
}
]
}VebGen's architecture is fully documented with deep technical details. Each component has a dedicated .md file explaining implementation, algorithms, and design decisions.
๐๏ธ Start Here: ARCHITECTURE.md - Complete system overview with architecture diagrams, component catalog, data flow visualizations, and developer onboarding guide (15 KB)
- Workflow Manager (142 KB) - Dual-agent orchestration, remediation loops, 13 feature states
- Adaptive Agent (61 KB) - CASE execution loop, 9 actions, content management
- Code Intelligence Service (106 KB) - AST parser, 95+ Django constructs, caching
- File System Manager (58 KB) - Sandbox, patching, rollback, fuzzy matching
- Command Executor (91 KB) - Whitelist, blocklist, venv detection, platform normalization
- Memory Manager (49 KB) - State persistence, 5 backups, SHA-256 verification, atomic writes
- Agent Manager (20 KB) - LLM client orchestration, provider switching, error handling
- Config Manager (16 KB) - Plugin discovery, framework loading, validation
- Secure Storage (10 KB) - OS keyring integration, API key encryption
- Providers Configuration (4 KB) - 120+ models across 5 providers
- Project Models (35 KB) - Pydantic schemas, feature states, task models
- LLM Clients (50 KB total) - 5 clients for OpenAI, Anthropic, Google, OpenRouter, Hugging Face
- Context Manager (21 KB) - Token optimization, content pruning, 3-tier strategy
- Framework Prompts (166 KB) - Django expert prompts (166 KB), Flask/React placeholders
- Adaptive Prompts (6 KB) - Workflow checklists for Django, Flask, Node.js
- Frontend Validator (17 KB) - WCAG 2.1 orchestration, Lighthouse checks, issue aggregation
- HTML Parser (14 KB) - Semantic structure, forms, CSRF tokens, accessibility
- CSS Parser (15 KB) - Selectors, media queries, BEM validation, WCAG compliance
- Vanilla JS Parser (17 KB) - Functions, API calls, security issues (eval, XSS)
- Analyzers (Accessibility + Performance) (11 KB) - WCAG mapping, render-blocking detection, dead CSS
- JS-HTML Validator (15 KB) - Cross-file integrity (orphaned selectors, broken refs)
- UI Components (27 KB) - UserActionDialog, ToolTip, MainWindow highlights
Total Documentation: 850+ KB of technical details across 15 files
Note: All documentation files are in the
docs/directory. Each file includes architecture diagrams, code examples, testing strategies, and troubleshooting guides.
- Frontend Validation Suite - WCAG 2.1 + Lighthouse audits
- External Project Loading - Adopt ANY Django project
- Search/Replace Patching - 92% patch success rate
- State Corruption Recovery - 3-tier automatic restoration
- 47 New Tests - Frontend quality assurance coverage
๐ Full Release Notes: releases/v0.3.0.md
- Flask and FastAPI deep integration (views, blueprints, routes)
- React/Vue frontend generation with API integration
- Docker compose file generation
- CI/CD pipeline templates (GitHub Actions, GitLab CI)
- Database migration conflict resolution
- Multi-language support (TypeScript, Go)
- Self-improving agents (learn from user corrections)
- Natural language debugging ("Why isn't login working?")
- Automated security audits with CVE scanning
- Multi-framework project support (Django + React + Celery)
We welcome contributions from the community! Here's how to get started:
If you want to contribute or run the test suite, install the project in editable mode with the [dev,django] extras.
# From the project root directory
pip install -e .[dev,django]- Code Style: Follow PEP 8 with a 100-character line limit.
- Tests Required: Add tests for new features (maintain 90%+ coverage).
- Documentation: Update README and docstrings for public APIs.
- Commits: Use conventional commits (
feat:,fix:,docs:,test:). - Pull Requests:
- Reference related issues.
- Include before/after examples for UI changes.
- Ensure all tests pass and there are no linting errors.
- ๐งช End-to-end test scenarios (Django projects, REST APIs)
- ๐ Cross-platform testing (Linux, macOS)
- ๐ Documentation improvements (tutorials, video guides)
- ๐จ UI/UX enhancements for the desktop application
- ๐ Framework integrations (FastAPI, Next.js)
See CONTRIBUTING.md for detailed guidelines.
If you use VebGen in your research or project, please cite:
@software{vebgen2025,
title = {VebGen: World's First AST-Powered AI Development Agent},
author = {VebGen Team},
year = {2025},
url = {https://github.com/vebgenofficial/vebgen},
note = {Zero-token code intelligence with military-grade sandbox security}
}
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License - Copyright (c) 2025 VebGen Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions...
[Full license text in LICENSE file]
VebGen stands on the shoulders of giants:
- OpenAI, Anthropic, Google - LLM infrastructure enabling intelligent agents
- Django Framework - Inspiration for framework-native intelligence
- unidiff, diff-match-patch - Robust patching libraries
- rapidfuzz - Fuzzy string matching for context detection
- Pydantic - Type-safe data models with validation
- pytest - Comprehensive testing framework
Special thanks to:
- The open source community for feedback and contributions
- Early adopters who tested alpha releases
- AI safety researchers for security guidance
VebGen introduces three world-first innovations in AI-powered development:
- AST-Powered Code Intelligence - First agent to use Abstract Syntax Trees for understanding code structure (95+ Django/Flask constructs) without sending full files to LLMs
- Built-In Sandbox Security - First desktop agent with military-grade file system isolation and command whitelisting (no Docker/VM required)
- Dual-Agent Self-Remediation - First agent with separate planning (Tars) and execution (Case) agents that collaboratively fix bugs
- 800KB of production-ready code
- 309 unit tests (99.7% pass rate)
- 850KB of technical documentation
- 95+ Django/Flask constructs parsed via AST
- 50+ whitelisted safe commands
- 8 months of development by 2-person team
- $0 spent on APIs (built with free-tier Gemini + OpenRouter)
- 0 security vulnerabilities (sandbox-first design)
- Build Django REST APIs from natural language
- Generate Flask web apps with authentication
- Create React frontends with API integration
- Autonomous bug fixing and test generation
For interviews, demos, or partnership discussions:
- Email: vebgenofficial@gmail.com
- GitHub: @vebgenofficial
- Twitter/X: @Vebgenofficial
Found a bug or have a feature request? We have dedicated templates to help:
- ๐ Report a Bug - Help us fix issues quickly with structured bug reports
- โจ Request a Feature - Suggest new features or improvements
- ๐ฌ Ask a Question - General questions, discussions, and community support
Security vulnerabilities? Please email vebgenofficial@gmail.com instead of filing a public issue. See SECURITY.md for details.
- GitHub Discussions - Ask questions and share projects
- Discord Community - Real-time chat with fellow developers
- Twitter/X - Follow for updates and announcements
- Email: vebgenofficial@gmail.com
- Technical Docs - Complete architecture documentation (850+ KB)
- Contributing Guide - How to contribute to VebGen
- Code of Conduct - Community guidelines
VebGen is hand-engineered by our small team. The AST parsing engine, dual-agent architecture, sandbox security, and all core algorithms were designed and implemented through 8 months of intensive developmentโno code generation, no AI assistance for logic.
AI tools (Claude, Gemini) were used exclusively for:
- Documentation Polish: Refining README files, architecture docs, and user-facing guides for clarity and professionalism
- Code Comments: Adding docstrings and inline comments to improve code readability and maintainability
AI was not used to:
- Design or implement the AST parsing system
- Write the dual-agent TARS/CASE architecture
- Develop the search/replace patching algorithm (70% โ 92% success rate)
- Build the sandbox security implementation
- Create the frontend validation suite
- Implement any business logic, algorithms, or core features
See for yourself: Browse backend/src/core/ to see the hand-crafted AST parsing, dual-agent logic, and security implementations. These are complex, domain-specific patterns that demonstrate deep Python and Django expertise.
VebGen demonstrates that world-class software emerges from technical depth, not team size or budget. Solo developers with domain expertise can build production-grade toolsโno venture capital required, just focused engineering and 8 months of dedication.
VebGen is built and maintained by two developers based in India:
- AST parsing engine design & implementation
- Core backend development & Django/Flask integration
- GitHub: @vebgen
- Dual-agent architecture design & implementation (TARS + CASE)
- Frontend validation suite (WCAG 2.1 + Lighthouse audits)
- Lead on testing and quality assurance (356+ unit tests)
About Us: Two friends who believe world-class software doesn't require venture capitalโjust technical depth and dedication. We prove that focused engineering beats large teams and big budgets.
Timeline: 8 months development โข $0 infrastructure cost โข 900KB code โข 356 tests โข MIT licensed
If VebGen helps your workflow, consider starring the repo! It helps others discover the project.
VebGen is maintained by:
Want to see your face here? Check out CONTRIBUTING.md!
VebGen is 100% free and open source. If it saves you hours of development time, consider:
- โญ Star this repo - Helps others discover it
- ๐ Report bugs - Makes it better for everyone
- ๐ Contribute docs - Share your expertise
- ๐ฐ Sponsor development - Keep innovation alive
Want to sponsor? Email: vebgenofficial@gmail.com
Currently seeking: $0/month (built with free-tier APIs forever!)
VebGen was built entirely from scratch by a duo of developers over 8 months โ without funding, sponsorship, or paid APIs.
Every feature you see โ from military-grade sandbox security to zero-token AST parsing โ was engineered and tested using only free-tier APIs (Gemini 2.0 Flash, OpenRouter). The entire 800KB codebase, 309 unit tests, and 850KB of documentation were written without a single dollar spent.
Why does this matter?
Because world-class software doesn't require venture capital. It requires persistence, precision, and passion.
If a duo of developers in India can build this, imagine what you can build with VebGen.
Built with โค๏ธ in India ๐ฎ๐ณ
P.S. If VebGen helps your workflow, consider โญ starring the repo โ it helps others discover the project and motivates me to keep improving it!
Made with โค๏ธ by Ramesh Ravada and Md Rehan
๐ Home โข ๐ Docs โข ๐ฌ Discord โข ๐ฆ Twitter

