Writing & Content🌐universal

VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?

Can AI Agents Build Bespoke LLM Serving Systems?

Quick Start

Install this Skill

npx skills add uw-syfi/vibe-serve
# VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?

[![arXiv](https://img.shields.io/badge/arXiv-2605.06068-b31b1b.svg)](https://arxiv.org/abs/2605.06068)

**An agentic loop that synthesizes bespoke LLM serving systems — one per (model, hardware, workload) target — instead of forcing every deployment through a single general-purpose runtime.**

<p align="center">
  <img src="docs/figures/idea.png" width="85%" alt="Generic serving today vs. VibeServe's per-target bespoke systems">
</p>

## Updates

- **2026-05** — Blog post: [Let AI Agents Write Your Serving Stack with VibeServe](https://syfi.cs.washington.edu/blog/2026-05-12-introducing-vibeserve/).
- **2026-05** — Paper released on arXiv: [2605.06068](https://arxiv.org/abs/2605.06068).

## Introduction

VibeServe explores a new approach to LLM serving: instead of relying on one general-purpose runtime to support every model, workload, and hardware target, we use AI agents to generate bespoke serving systems for each deployment scenario. The project asks whether long-horizon coding agents can synthesize complete LLM serving stacks end-to-end, including scheduling, caching, runtime logic, correctness checks, and performance optimizations tailored to a specific target.

The system is organized as a multi-agent optimization loop. An outer loop plans the search over system designs using persistent state such as issues, memory, and git history, while an inner loop implements candidate systems, validates correctness against a reference implementation, and measures performance on the target benchmark. Across standard and non-standard serving scenarios, VibeServe matches highly optimized systems like vLLM in mainstream deployments and achieves substantial gains in specialized settings involving predicted-output decoding, hybrid prompt caching, streaming ASR, constrained JSON decoding, multimodal inference, and Apple Silicon deployment.

## Architecture

<p align="center">
  <img src="docs/figures/architecture.png" width="90%" alt="VibeServe architecture: outer loop dispatches per-round tasks to an inner loop of Implementer / Accuracy Judge / Performance Evaluator agents">
</p>

The framework factors the work along two axes:

- **Outer loop** — a search policy operating over a git-recorded history of validated checkpoints. It picks the next optimization, dispatches one concrete task to the inner loop, and updates persistent planning state (issues, long-term memory file, commit graph). 
- **Inner loop** — three role-specialized coding-agent invocations on a shared workspace:
  - *Implementer* writes/edits the candidate serving system.
  - *Accuracy Judge* runs the user-supplied checker against the reference and inspects diffs/runtime behavior for reward-hacking patterns; only correct candidates exit the inner loop.
  - *Performance Evaluator* profiles the implementation (Nsight Systems, PyTorch profiler) and feeds bottleneck hints back to the policy.
- **Skills library** — Agent Skills entries distilled from existing serving engines and research literature (continuous batching, paged-KV, FlashInfer/FlashAttention, MLX, hybrid-cache management, â€Ļ). New model families, hardware platforms, and optimization techniques are added by writing a skill, not by modifying the framework.
- **Execution environment** — an isolated workspace that mounts the user-provided artifacts read-only (so the Implementer cannot edit the checker or reference) and exposes the target hardware (local CUDA, Modal, Docker, or Apple Silicon) plus profilers.

Each candidate is a git commit; the outer loop only advances on Judge-validated implementations, so incorrect candidates can never derail subsequent rounds.

## Installation

Requires Python 3.11+.

```bash
uv sync
cp .env.example .env       # provider keys (Anthropic / OpenAI / Vertex / â€Ļ)
cp agent.toml.example agent.toml
```

## Quickstart

```bash
# Issue-tracker outer loop, Codex CLI, Docker on local CUDA, 4 rounds
vibe-serve \
  --ref examples/moonshine-streaming/reference \
  --acc-checker examples/moonshine-streaming/accuracy_checker \
  --bench examples/moonshine-streaming/benchmark \
  --exp-name my-experiment \
  --docker \
  --agent-backend cli --cli-provider codex \
  --max-rounds 4 \
  --modality speech_to_text
```

`--outer-loop` defaults to `agent`.  Pass `--outer-loop plain` or `--outer-loop evolve` to switch.  See `vibe-serve --outer-loop <kind> --help` for loop-specific flags.

See `vibe-serve --outer-loop <kind> --help` for loop-specific flags.

A separate entry point exposes the issue MCP server used by the plain loop:

```bash
vibe-serve-issue-mcp                         # serves issues.json over MCP
```

## Domains — pointing vibeserve at your problem space

A **domain** is the bundle of cross-cutting context the agents need for whatever
you're building: the background knowledge the implementer must read, and the
correctness/performance/integrity gates the judge enforces. It answers *"what
kind of system is this, 

... (truncated)
Repository
79stars
16forks
View on GitHub
Details
DiscoveredJul 1, 2026
Last UpdatedJul 1, 2026
Author@uw-syfi
Quality Score
50/100

Related Skills

More writing & content skills you might like

gpt-researcher
Writing & Content
GPT Researcher is an autonomous deep research agent that conducts web and local research, producing detailed reports with citations. Use this skill when helping developers understand, extend, debug, or integrate with GPT Researcher - including adding features, understanding the architecture, working with the API, customizing research workflows, adding new retrievers, integrating MCP data sources, or troubleshooting research pipelines.
✨gemini🤖claudeđŸ’Ŧgpt🌐universal
27.4k
3.7k
View
xiaohu-wechat-format
Writing & Content
Claude Code å…Ŧäŧ—åˇä¸€é”ŽæŽ’į‰ˆ+发布技čƒŊ | Markdown → 垎äŋĄå…ŧ厚 HTML → æŽ¨é€č‰į¨ŋįŽą | 30 åĨ—ä¸ģéĸ˜ + å¯č§†åŒ–į”ģåģŠ
🤖claude🌐universal
351
42
View
twitter-algorithm-optimizer
Writing & Content
Analyze and optimize tweets for maximum reach using Twitter's open-source algorithm insights. Rewrite and edit user tweets to improve engagement and visibility based on how the recommendation system ranks content.
✨gemini🤖claudeđŸ’ŦgptâŒ¨ī¸cursor
77.0k
9.1k
View
yara-rule-authoring
Writing & Content
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
🌐universal
7.5k
643
View