Skip to content

๐Ÿค– World's first AST-powered AI development agent | Autonomous Django/Flask builder | Zero-token intelligence | Military-grade sandbox | Made in India ๐Ÿ‡ฎ๐Ÿ‡ณ

License

Notifications You must be signed in to change notification settings

vebgenofficial/vebgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
VebGen - The World's First AST-Powered AI Development Agent

VebGen Logo VebGen

๐Ÿ† The World's First AST-Powered AI Development Agent

Your AI Development Team That Never Sleeps

Zero-token code intelligence โ€ข Military-grade sandbox โ€ข Dual-agent self-remediation

Python Version License Tests Version WCAG Code Quality Built with Free APIs Contributions Welcome GitHub Stars GitHub Forks Twitter Follow Discord

๐ŸŒ Website: vebgen.dev (coming soon)

โœจ Features โ€ข ๐Ÿ†š Why Different? โ€ข ๐Ÿš€ Quick Start โ€ข ๐Ÿ“š Docs Hub โ€ข Discord โ€ข ๐Ÿ—บ๏ธ Roadmap โ€ข ๐Ÿค Contributing

๐Ÿ“Š Quick Stats

๐Ÿ“ฆ 900KB Code โ€ข โœ… 356 Tests โ€ข ๐Ÿ“š 1,000KB Docs โ€ข ๐ŸŽจ WCAG 2.1 Built-In โ€ข ๐Ÿ’ฐ $0 Spent โ€ข โฑ๏ธ 8 Months โ€ข ๐Ÿ‘ฅ 2-Person Team โ€ข Made in India ๐Ÿ‡ฎ๐Ÿ‡ณ


๐ŸŽฏ What is VebGen?

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

Major Additions

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


๐Ÿ† World Firsts

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

๐Ÿ’Ž How is VebGen Different from Copilot or Cursor?

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.

๐Ÿ“Š VebGen vs. The Competition

Feature VebGen Cursor GitHub Copilot Devin AgentScript
Code Intelligence โœ… AST-based (zero-token) โŒ Full-file context โŒ Full-file context โš ๏ธ Cloud-based โš ๏ธ Limited
Frontend Validation โœ… WCAG 2.1 + Lighthouse (built-in) โŒ None โŒ None โš ๏ธ Manual audits โŒ None
Sandbox Security โœ… Built-in (no Docker) โŒ None โŒ None โœ… Cloud sandbox โš ๏ธ AST interpreter only
Self-Remediation โœ… Dual-agent (Tars+Case) โš ๏ธ Retry only โŒ None โœ… Single-agent โŒ None
Full-App Generation โœ… Django, Flask, React โŒ Code completion โŒ Code completion โœ… Full-stack โš ๏ธ Limited
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. ๐Ÿš€

The Game-Changing Differences

๐Ÿงฌ Zero-Token AST Parsing

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.

๐Ÿ›ก๏ธ Military-Grade Command Security

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.

๐Ÿ’พ Never Lose Progressโ€”Ever

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.

๐Ÿ”„ Intelligent Error Recovery (Self-Healing)

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 CASE introduces 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:

  1. First attempt fails โ†’ TARS reviews the work, identifies mistakes
  2. Second attempt with correction instructions from TARS
  3. Third attempt with stricter guidance if still failing
  4. 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:

  1. Searches the entire file for 80%+ similar context using fuzzy matching
  2. Applies the patch to the best matching location
  3. Validates syntax post-patch
  4. 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.

๐Ÿ”ง Smart Code Patching (v0.3.0 Enhancement)

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%)

What Makes VebGen Truly Unique

๐Ÿง  True Adaptive Thinking (Dual-Agent Architecture)

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

๐ŸŒณ Understands Code Structure (AST Intelligence)

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)

๐Ÿ”’ Works in a Safe Sandbox

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.


โœ… What This Means in Practice

Scenario Other Tools VebGen
โšก Power loss mid-development โŒ Lose all progress โœ… Resume from last saved state (auto-backup)
๐Ÿ’ฅ File corruption (disk error) โš ๏ธ Manual file recovery required โœ… 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 โš ๏ธ Partial write = corrupted state โœ… Atomic writes ensure old file stays intact
๐Ÿ› LLM introduces syntax error โš ๏ธ Broken code committed โœ… Auto-rollback + retry with correction
๐Ÿ“ Patch fails (line mismatch) โŒ Manual fix required โœ… Fuzzy matching fallback (80%+ similarity)
๐Ÿ” Agent stuck in loop โš ๏ธ Burns tokens indefinitely โœ… Circuit breaker aborts after 3 cycles
โš ๏ธ 3 consecutive failures ๐Ÿ”„ Keeps retrying blindly โœ… Escalates with failure analysis report

๐Ÿ”ง The Technical Reality

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: .bak snapshot โ†’ 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.Lock prevents 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.


๐Ÿ“Š The Bottom Line (By the Numbers)

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) โš ๏ธ Generic code knowledge โš ๏ธ Generic code knowledge
Patch Success Rate โœ… 92% (fuzzy fallback) โš ๏ธ Variable โš ๏ธ Variable

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.


โœจ Key Features

๐Ÿค– Complete Autonomous Pipeline

User Request โ†’ Feature Planning (TARS) โ†’ Implementation (CASE) โ†’ Verification (TARS) โ†’ Quality Checks โ†’ Production Code

โš™๏ธ 9 Available Actions for CASE

  • WRITE_FILE - Create new files with complete content
  • PATCH_FILE - Surgical edits using unified diffs (92% success rate)
  • GET_FULL_FILE_CONTENT - Load complete source with line numbers for precise modifications
  • RUN_COMMAND - Execute shell commands with security validation
  • REQUEST_USER_INPUT - Ask for clarification when context is insufficient
  • TARS_CHECKPOINT - Request architectural guidance mid-development
  • ROLLBACK - Revert to last known good state with snapshot restoration
  • FINISH_FEATURE - Mark feature complete and move to next
  • ABORT - Stop execution with detailed error reporting

๐Ÿ“Š Content Management System

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)

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.10+ installed
  • An API key from an LLM provider (e.g., OpenRouter, OpenAI, Google).
  • Git (optional, for version control)

Installation

  1. Clone the repository:

    git clone https://github.com/vebgenofficial/vebgen.git
    cd vebgen
  2. 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
  3. Install the project and its core dependencies: The recommended way to install the project is using pip in 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 .

First Project (5 Minutes)

  1. Launch VebGen: Once installed, run the vebgen command in your terminal. The GUI will open.
    vebgen
  2. Configure API: On first run, you'll be prompted for an API key. You can also manage keys from the sidebar.
  3. Create Project: From the sidebar, click "Select Project Directory..." and choose an empty folder.
  4. Describe your app:

    Build a blog with user authentication, posts with comments, an admin dashboard, and a REST API. Use Django REST Framework.

  5. Hit "Start": Watch TARS plan features and CASE implement them in the "Updates / Logs" tab.
  6. 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

๐ŸŽฌ See VebGen in Action

VebGen Building a Django Application
Watch TARS plan features and CASE implement them in real-time


๐Ÿง  How It Works

Dual-Agent Workflow

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]
Loading

Error Recovery Flow

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]
Loading

๐Ÿ“‚ Architecture & Project Structure

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 .md file in docs/ with architecture diagrams, code examples, and API documentation.


๐Ÿ”ง Configuration

API Keys Setup

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-..."

Framework Selection

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.


๐Ÿงช Testing

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=html

Comprehensive Coverage (310 Tests)

Core 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

๐Ÿ› ๏ธ Troubleshooting

Common Issues

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


๐Ÿ“– Documentation

Advanced Usage

Custom Framework Rules

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.
"""

Command Blocklist

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."
    }
  ]
}

๐Ÿ“š Technical Documentation

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)

Core Components

  • 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

Configuration & Storage

LLM Integration

  • 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 Intelligence

Frontend Validation (v0.3.0 ๐Ÿ†•)

UI Components

  • 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.


๐Ÿ—บ๏ธ Roadmap

Version 0.3.0 (โœ… Released - October 2024)

  • 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

Version 0.4.0 (Next Release - Q1 2025)

  • 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)

Long-term Vision

  • 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)

๐Ÿค Contributing

We welcome contributions from the community! Here's how to get started:

Development Setup

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]

Contribution Guidelines

  1. Code Style: Follow PEP 8 with a 100-character line limit.
  2. Tests Required: Add tests for new features (maintain 90%+ coverage).
  3. Documentation: Update README and docstrings for public APIs.
  4. Commits: Use conventional commits (feat:, fix:, docs:, test:).
  5. Pull Requests:
    • Reference related issues.
    • Include before/after examples for UI changes.
    • Ensure all tests pass and there are no linting errors.

Areas Needing Help

  • ๐Ÿงช 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.


๐Ÿ“– How to Cite

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}
}

๐Ÿ“œ License

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]


๐Ÿ™ Acknowledgments

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

๐Ÿ† Press Kit / Media Mentions

VebGen introduces three world-first innovations in AI-powered development:

๐Ÿฅ‡ Innovations

  1. 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
  2. Built-In Sandbox Security - First desktop agent with military-grade file system isolation and command whitelisting (no Docker/VM required)
  3. Dual-Agent Self-Remediation - First agent with separate planning (Tars) and execution (Case) agents that collaboratively fix bugs

๐Ÿ“Š By The Numbers

  • 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)

๐ŸŽฏ Use Cases

  • 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

๐Ÿ“ง Media Inquiries

For interviews, demos, or partnership discussions:


๐Ÿ› Report Issues

Found a bug or have a feature request? We have dedicated templates to help:

Security vulnerabilities? Please email vebgenofficial@gmail.com instead of filing a public issue. See SECURITY.md for details.

๐ŸŒ Connect With Us

๐Ÿ“– Documentation


๐Ÿค– Development Transparency

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 Usage Disclosure

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

What AI Did NOT Do

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.


๐Ÿ‘ฅ The Team

VebGen is built and maintained by two developers based in India:

Ramesh Ravada - Lead Architect & Developer

  • AST parsing engine design & implementation
  • Core backend development & Django/Flask integration
  • GitHub: @vebgen

Md Rehan - Co-Developer

  • 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


๐ŸŒŸ Star History

If VebGen helps your workflow, consider starring the repo! It helps others discover the project.

Star History Chart


๐Ÿ‘ฅ Other Contributors

VebGen is maintained by:

Want to see your face here? Check out CONTRIBUTING.md!


๐Ÿ’ Support VebGen

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!)


๐Ÿ‘จโ€๐Ÿ’ป Creator's Note

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

About

๐Ÿค– World's first AST-powered AI development agent | Autonomous Django/Flask builder | Zero-token intelligence | Military-grade sandbox | Made in India ๐Ÿ‡ฎ๐Ÿ‡ณ

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages