Neuro uses AI in 3 ways:
- Understanding Intent - AI parses natural language goals
- Generating Code - AI writes the implementation
- Learning - AI improves based on results
You write: Neuro does:
┌───────────────┐ ┌──────────────┐
│ pipeline { } │──regex──→│ Pattern │
│ goal: "..." │ │ Matching │
└───────────────┘ └──────┬───────┘
↓
┌──────────────┐
│ Pre-written │
│ Python Code │
└──────┬───────┘
↓
Results
Good: Works without API keys, fast, free
Limitation: Requires structured syntax
You write: Neuro does:
┌───────────────┐ ┌──────────────┐
│ "find me │──LLM────→│ GPT-4 Parse │
│ a job" │ │ (understands │
└───────────────┘ │ natural lang)│
└──────┬───────┘
↓
┌──────────────┐
│ AI Infers │
│ Missing Info │
└──────┬───────┘
↓
┌──────────────┐
│ Generates │
│ Code (AI) │
└──────┬───────┘
↓
Results
Good: Natural language, smart inference, adaptive
Requirement: OpenAI API key (~$0.01 per run)
How it works:
if "job" in goal and "search" in goal:
execute_job_search()Pros:
- ✅ Free
- ✅ Fast
- ✅ No API needed
- ✅ Privacy (no data sent externally)
Cons:
- ❌ Requires structured syntax
- ❌ Can't handle informal language
- ❌ Limited to pre-built features
How it works:
# Send to GPT-4
intent = openai.parse("""
Parse: "find me a remote ai job"
Extract: action, parameters, implied needs
""")
# AI understands informal language
# Returns structured intent
# Execute with pre-built modulesPros:
- ✅ Natural language works
- ✅ Smart inference
- ✅ Helpful clarifications
- ✅ Pre-built execution (fast)
Cons:
- ❌ Requires API key
- ❌ Small cost (~$0.01/run)
- ❌ Internet connection needed
How it works:
# AI generates entire implementation
code = openai.generate("""
Build: customer support chatbot
Requirements: <2s response, >90% accuracy
""")
# AI writes:
# - Database schema
# - API endpoints
# - Frontend UI
# - Testing code
# - Documentation
# Executes generated codePros:
- ✅ Unlimited flexibility
- ✅ Custom solutions
- ✅ Production-ready code
- ✅ Optimized automatically
Cons:
- ⏳ Not implemented yet
- ⏳ Higher API costs
- ⏳ Slower execution
goal: "find remote ai engineer jobs, i have python and pytorch experience"
❌ Error: Invalid syntax
Expected: pipeline Name { goal: "..." }
✓ Understood!
Intent: job_search
Role: ai engineer
Location: remote
Skills: python, pytorch
Searching...
✓ Found 10 jobs matching your profile
Pattern Matching:
- Expects exact syntax
- Fails on natural language
- No inference
AI-Powered:
- Understands natural language
- Infers missing details (skills from experience mention)
- Extracts all relevant info
- Helpful and flexible
┌─────────────────────────────────────────┐
│ NEURO ARCHITECTURE │
├─────────────────────────────────────────┤
│ │
│ Input (.neuro file) │
│ ↓ │
│ ┌──────────────────┐ │
│ │ AI LAYER 1 │ │
│ │ Natural Language │ ← OpenAI/Claude │
│ │ Understanding │ │
│ └────────┬─────────┘ │
│ ↓ │
│ ┌──────────────────┐ │
│ │ AI LAYER 2 │ │
│ │ Intent Inference │ ← GPT-4 │
│ │ & Clarification │ │
│ └────────┬─────────┘ │
│ ↓ │
│ ┌──────────────────┐ │
│ │ AI LAYER 3 │ │
│ │ Code Generation │ ← Codex/Claude │
│ │ & Optimization │ │
│ └────────┬─────────┘ │
│ ↓ │
│ ┌──────────────────┐ │
│ │ Execution │ ← Python │
│ └────────┬─────────┘ │
│ ↓ │
│ Results │
│ │
└─────────────────────────────────────────┘
Each layer uses AI to make Neuro smarter.
Cost per run: $0.00
Runs per day: Unlimited
Monthly cost: $0.00
Cost per run: ~$0.001 (parsing only)
Runs per day: 100
Monthly cost: ~$3.00
Cost per run: ~$0.01-0.05 (parsing + generation)
Runs per day: 20
Monthly cost: ~$20-30
Most users: Free tier is enough!
Without API Key:
- Rule-based pattern matching
- Structured syntax required
- Fast, free, works offline
With OpenAI API Key:
- AI-powered natural language parsing
- Intent inference
- Smart clarifications
- Full code generation (AI writes implementation)
- Learning system (improves over time)
- Conversational interface (multi-turn dialog)
- Automatic optimization
3 Steps:
- Get OpenAI API key: https://platform.openai.com
- Set:
export OPENAI_API_KEY=sk-... - Run:
neuro my_task.neuro
See: ENABLE_AI.md for details
Neuro doesn't just use AI as a feature.
Neuro IS an AI that understands programming intent.
The language itself is the interface.
The AI is the compiler.
Your intent is the code.
That's what makes Neuro revolutionary. 🚀