The Open Framework for Building Agents
LLM Council
An eve and Next.js demo that sends one prompt to four models in parallel, streams their answers, and asks a judge model for a concise answer with per-model agreement scores.
The council uses:
- SpaceXAI Grok 4.7
- Anthropic Claude Opus 5
- OpenAI GPT-5.6 Sol
- Moonshot AI Kimi K3
Architecture
The application follows one simple flow:
prompt → four parallel council members → judge answer + agreement scores
The root eve agent delegates the same prompt to four declared subagents. Each subagent has a fixed AI Gateway model and runs in its own durable session. The Next.js client follows those child session streams so every response appears independently as it is generated.
After all four members finish, the root agent returns a concise answer and per-model agreement scores using a structured output schema. useEveAgent() calls the eve service through the shared Vercel deployment.
The main pieces are:
agent/instructions.md— fan-out and judging behavioragent/subagents/— the four fixed council membersagent/lib/schemas.ts— final answer and score schemaapps/web/app/council-app.tsx— submission, child streaming, and rendering
Run locally
pnpm install
pnpm dev
Run the complete Vercel service graph with:
pnpm dev:all
pnpm dev:all starts without a linked Vercel project. To use the AI Gateway models, link a project with pnpm exec eve link; that also pulls the required credentials. Open the local URL printed by Next.js.
Checks
pnpm typecheck
pnpm build