melchizedek

status: active · source

Melchizedek is a headless Node.js CLI for running hierarchical agent graphs, called Syndicates, built on the Google Agent Development Kit. It’s the reference implementation for many of the orchestration ideas discussed in the posts: delegation, critic loops, hierarchical task decomposition, and long-term memory.

what it does

why it matters for this curriculum

Most agent frameworks hide the orchestration inside code. Melchizedek makes the shape of a multi-agent system a readable artifact: you can diff two syndicates the way you diff two configs. For teaching, that’s the point: the architecture of delegation is on the page, not buried in a call stack.

Posts that use melchizedek as their worked example will link here, and this page will grow into the framework’s public home, with walkthroughs, example syndicates, and eventually live demos served from its A2A mode.

example syndicates

SyndicatePattern it demonstrates
Global Synthesis Councilparallel research + synthesis
Delegation routerrouting work to specialist subagents
Critic workflowstructured review loops
The Scriptoriumagents tending a knowledge bundle through a validated gate
Hierarchical decompositionbreaking goals into subtasks
Financial Councilmulti-analyst report generation
Style Councilvoice as engineered communication laws
Image Productionspec-first generation + blind inventory / spec audit
Augustinmulti-agent, multi-modal fact-checking: X sweep + web verification under a tool-free arbiter

Each pattern above is taught hands-on in the curriculum, with the syndicate’s verbatim YAML as a download.

bring your own keys

Melchizedek runs on whichever provider accounts you already have. Every key is optional; each one unlocks exactly the model ids that belong to it, and nothing else asks for it. A syndicate whose every agent is an ollama/* model needs no key at all, because the framework checks the loaded graph and demands only what it declares. What each key costs, honestly:

KeyUnlocksCost
none (local Ollama)every ollama/* agent — open-weight models like Qwen 3, running on your machine, nothing leaving itfree — install Ollama and pull a model
GOOGLE_GENAI_API_KEYgemini-* agents, Gemini search grounding, image generation, and the embedding model behind long-term memoryfree at aistudio.google.com; the free tier covers every Gemini text syndicate AND the memory embeddings. The image-generation model alone is paid-tier only, and heavy search grounding draws paid quota
ANTHROPIC_API_KEYclaude-* agentspaid — usage-billed, no free tier
OPENAI_API_KEYgpt-* agents (GPT-5 family, o-series)paid — usage-billed at platform.openai.com
XAI_API_KEYgrok-* agentspaid — usage-billed at console.x.ai
Supabase URL + service_role keyoptional — persistent sessions and long-term memory (Knowledge Keeper, Patient Advocate)free — the free project tier is plenty; run the schema + hardening SQL from the repo docs
A2A_SERVER_SECRETserving any syndicate as an authenticated A2A endpointfree — not a vendor key; you generate it yourself (openssl rand -hex 32)

To see the whole surface at once, run npm run demo:models in the repo: it sends one prompt to a lightweight agent of every provider you have a key for (plus the local model), prints each model’s answer and its thinking where the model exposes one, and traces the tokens and latency of every request. Providers you haven’t configured are skipped with the reason, so the demo runs on any machine, keys or none.

The private financial syndicates (the Financial Council pattern) add market-data keys on top: price and fundamentals data comes from Yahoo Finance without a key, but technical indicators come from TAAPI, a paid subscription: without it the indicator tool falls back to slower, manually computed values from Yahoo history and labels them as such. Running the financial stack fully means paying for TAAPI; everything the public repo and the curriculum teach runs without it.

Set it up with your coding agent: melchizedek-agent-setup.md is a paste-ready prompt that has your coding agent do the machine steps, the steps that stay yours (keys, database), how to begin testing the agents, and the follow-up prompts for wiring a syndicate into your own app. The same file ships in the repo as AGENT_SETUP.md.

Source code and full documentation live in the public repository: github.com/jhwadman/melchizedek-agents, which holds every syndicate the curriculum teaches, the structured-memory pipeline, the A2A server, and the database schema, with quickstart and deployment docs. (The Financial Council pattern remains private; the repository ships the teaching syndicates.)