Currently, most AI coding systems like GitHub Copilot, Cursor, and Buddy work through existing human-oriented IDEs:
- They interact with text-based code representations
- They generate code that fits into file structures designed for humans
- They're constrained by interfaces optimized for human cognition and interaction
Human-oriented IDEs aren't necessarily ideal for AI because:
- AIs don't benefit from many IDE features designed for human limitations (syntax highlighting, visual organization)
- AIs can process abstract code representations that might be more efficient than text
- The file-based organization of code is an artifact of human cognitive constraints
Several alternative paradigms could better leverage AI's capabilities:
AI could work directly with structured code representations rather than generating text that must be parsed.
# Instead of text files like this
def calculate_total(items):
return sum(item.price for item in items)
AI could interact with semantic models representing the same functionality as relationships, constraints, and behaviors.
Rather than writing code, developers could express intentions, and AI could:
- Understand the high-level goal
- Generate implementation automatically
- Reason about correctness without the text-based intermediate step
AI systems could interact directly with compilers, build systems, and deployment pipelines through purpose-built APIs rather than simulating human interaction patterns.
AI-specific environments could integrate formal verification methods that continuously validate that generated code meets specifications.
Traditional IDEs are designed for human developers with features like syntax highlighting, visual organization, and file-based structure. However, AI systems don't have the same cognitive constraints and can work with more abstract representations of code.
This project explores a new paradigm with:
- Intent-based Development: Express what you want to build in natural language, and the AI interprets and implements it
- Abstract Syntax Tree (AST) Manipulation: Direct work with code structure rather than text files
- Semantic Code Models: Understanding code as relationships, constraints, and behaviors
- API-Native Development: Direct interaction with compilers and build systems
The system consists of:
- Intent Processor: Interprets natural language development requests
- AST Processor: Works with abstract code representations
- Semantic Model: Maintains relationships between code entities
- HTTP API Server: Provides endpoints for client interaction
- Web UI: A simple interface to interact with the system
- LLM Integration: Uses OpenRouter API to connect to various AI models
The system includes a model selection UI that allows you to:
- View and select from all available models in OpenRouter (no API key required)
- See model information including context length and pricing
- Save your preferred model for future sessions
Model data is cached in your browser for 12 hours to improve performance.
- Intent Parsing: Natural language intents are sent to the selected LLM, which parses them into structured representations
- Code Generation: The LLM generates code based on the intent, along with AST and semantic representations
- Response Processing: The system processes the LLM's response, extracting code, AST, and semantic information
- Integration with real LLM services for more sophisticated intent parsing
- Live code generation and compilation
- Support for multiple programming languages
- Collaborative development features
- Integration with version control systems