AutoBe: How Weak Local LLMs Fixed an AI Backend Generator's Architecture

✍️ OpenClawRadar📅 Published: February 27, 2026🔗 Source
AutoBe: How Weak Local LLMs Fixed an AI Backend Generator's Architecture
Ad

What Happened

AutoBe is an open-source AI agent that generates complete backend applications using TypeScript, NestJS, and Prisma. Initially, it achieved 100% compilation success, but the code was unmaintainable—there was no code reuse, so every small change required regenerating everything. The team rebuilt the system around modular code generation, which immediately crashed the success rate to 40%.

The Debugging Breakthrough

When the new architecture introduced dependencies between modules, the team used intentionally weak local LLMs to find bugs they didn't know existed. The qwen3-30b-a3b-thinking model had about a 10% success rate and exposed AST schema ambiguities and malformed structures. The qwen3-next-80b-a3b-instruct model had about a 20% success rate and revealed type mismatches and edge cases in nested relationships.

That low success rate was valuable: each fix tightened the entire system. When a schema is precise enough that a 30B model can't misinterpret it, stronger models won't get it wrong either. This approach also highlights the cost advantage of local LLMs—discovering edge cases requires hundreds of generation-compile-diagnose cycles, which would be prohibitively expensive at cloud API prices.

Ad

Architectural Shift

The team moved from prompt engineering to schema design with validation feedback. They stripped system prompts to almost nothing and moved all constraints into function calling schemas, letting validation feedback do the teaching. AutoBe uses three AST types that are particularly challenging for LLMs to generate: AutoBeDatabase (Prisma models, relations, indexes), AutoBeOpenApi (OpenAPI schemas, endpoints, DTOs), and AutoBeTest (30+ expression types).

These structures are difficult because they involve unlimited union types, unlimited depth, and recursive references. For example, the compiler AST includes types like IArrayLiteralExpression and IObjectLiteralExpression that contain recursive references to IExpression[].

Results

Through validation feedback alone, the team improved from 6.75% raw function calling success to 100%. They're now back to 100% success with GLM v5, and other local models are climbing in performance.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Delimit Governance Layer for Multi-Agent AI Development
Tools

Delimit Governance Layer for Multi-Agent AI Development

Delimit is an open-source governance layer that coordinates multiple AI coding agents to prevent conflicts. It provides shared memory, collision detection, and audit tracking for agents like Claude Code, Codex, and Gemini.

OpenClawRadar
Storybloq: A Project Tracker Living in Your Repo's .story/ Directory Now Has a Mac App
Tools

Storybloq: A Project Tracker Living in Your Repo's .story/ Directory Now Has a Mac App

Storybloq, a project tracker that stores tickets, issues, roadmap phases, and session handovers as JSON/markdown inside .story/ in your repo, now has a free Mac app on the App Store. It integrates with Claude Code via CLI and MCP server, and was built entirely using Claude Code.

OpenClawRadar
Orkestra: Cost-Aware LLM Routing Layer for OpenClaw Reduces API Costs by 60-80%
Tools

Orkestra: Cost-Aware LLM Routing Layer for OpenClaw Reduces API Costs by 60-80%

Orkestra is a modular routing layer that sits in front of LLM calls in OpenClaw, using semantic classification to route prompts to budget, balanced, or premium model tiers. The approach reduced API costs by 60-80% without prompt rewriting or complex rules.

OpenClawRadar
BracketMadness.ai: March Madness Bracket Challenge for AI Agents
Tools

BracketMadness.ai: March Madness Bracket Challenge for AI Agents

BracketMadness.ai is a March Madness bracket challenge designed specifically for AI agents, where agents autonomously read API docs, register themselves, pick all 63 games, and submit brackets. The site serves plain-text API instructions to agents while showing a normal visual interface to humans.

OpenClawRadar