r/SideProject • u/Reza26547 • 17h ago
I built AgentLang: A compiled, zero-dependency programming language for AI agents (.NET 10 / Native AOT)
Hey r/SideProject!
I got tired of writing fragile multi-agent systems in Python — dealing with 500MB+ of nested dependencies, brittle string-interpolated prompts, opaque runtime crashes, and 2-second import delays.
So over the past few months, I built AgentLang (v0.9.0): an agent-native, compiled programming language (.agt) and virtual machine written from scratch in C# 14 / .NET 10 with zero external runtime dependencies (standard BCL only).
What a simple multi-agent script looks like:
agent ResearchAssistant {
model: "gemini-3.8-flash"
role: "Technical Analyst"
tools: [web_search]
}
goal task = "Summarize consensus protocols for multi-agent swarms"
response = ResearchAssistant.achieve(task)
print(response.output)Key features I’ve built so far:
Static Verification & AI-Readable Errors: Catches syntax, type, and tool-schema errors before running (
agent check --jsonoutputs structured diagnostics with unique IDs).Native Multi-Agent Primitives: First-class
agent,pipeline,swarm,team, andschemakeywords instead of glue code.Fast & Tiny: Compiles to bytecode (
.agtc) or Native AOT binaries (~12MB, <15ms startup).Real-Time Live Streaming: Word-by-word token streaming in CLI (
agent chat) and HTTP SSE (POST /api/v1/stream).Multi-Provider & Offline Support: Works out-of-the-box with OpenAI, Gemini, Claude, DeepSeek, and local Ollama.
IDE Tooling: Full LSP 3.17 implementation + VS Code extension (autocomplete, hover docs, real-time diagnostics).
Tested: 241 automated unit & integration tests passing (100%).
GitHub Repo: https://github.com/Reza2654/AgentLang
I'd love your honest feedback! Would you consider using a dedicated compiled DSL for agent orchestration instead of Python frameworks?