Master of One — VS Code Extension
AI-powered C# code generation with compiler validation. Built by Daraja AI.
Features
- Generate C# code from natural language descriptions
- Compiler validated — every response passes through the Roslyn C# compiler
- Runtime tested — code that compiles also runs in a sandboxed environment
- Insert at cursor — push generated code directly into your editor
- Open in new file — open generated code as a new C# file
- Workspace context — reads your active file to generate contextually relevant code
Setup
1. Install dependencies
cd moo-vscode
npm install
2. Compile the extension
npm run compile
3. Run in development
Press F5 in VS Code with this folder open. A new Extension Development Host window will launch with the extension loaded.
Open Settings and search for "Master of One":
- API Base URL: The Daraja AI inference endpoint (default:
https://api.daraja.ai)
- API Key: Your enterprise API key (if applicable)
For local development, set the API base URL to your local inference endpoint:
http://localhost:5192
Usage
- Click the Master of One icon in the sidebar (activity bar)
- Type a prompt: "Write a generic repository pattern with CRUD operations"
- Wait for generation, compilation, and validation
- Click Insert to add the code at your cursor, Copy to clipboard, or New File to open in a new tab
Quick prompts
Click any chip on the welcome screen to try common patterns:
- Repository Pattern
- Logging Middleware
- Singleton Pattern
- LRU Cache
Editor context
Select code in your editor, then run the command MoO: Generate C# Code from the command palette (Ctrl+Shift+P). The selected code will be sent as context for the generation.
Architecture
VS Code Extension (TypeScript)
→ Calls /code endpoint on Daraja AI inference
→ Inference generates via Master of One (406M C# specialist)
→ Roslyn compiles the output
→ Sandboxed runner executes it
→ Validated code returned to VS Code
Daraja AI
Built in Mauritius. Shipped for the world.
daraja.ai
MoO-Extension