Three weeks after pacod-broker, the platform has an eighth project, and the gateway does more than models. This post starts with the new project, pacod-aggregator, goes on to the gateway's tools and agents and what the others did with them, and ends with a rename: the repository that runs everything together is now called pacod-stack.
pacod-aggregator: model data from the source
A gateway has to know which models a vendor offers, what they can do, which parameters they take and what they cost. It charges by those prices and retires models by that list. Vendors publish all of it on web pages, each in its own form, and change them without notice.
pacod-aggregator reads those pages and publishes one catalogue. Every day it renders the pricing and model pages of LLM vendors (OpenAI, Anthropic, Google, DeepSeek, Z.ai, xAI, Moonshot and others) in a headless browser. A page that reads as before costs nothing: no model is called and its prices count as confirmed. Only a page that changed goes to an extraction model, which answers to a fixed schema. What the pages say is then settled into the catalogue by rules, not by the model: prices become new versions, and every change is recorded with the run that made it.

The catalogue, pacod.catalog/v1, holds the vendors, their models with ids, aliases, status and
successors, each model's properties (context window, output limit, modalities, tools, structured
output, reasoning, prompt cache), which request parameters it accepts, rejects or only takes at
their default, and its prices: per million tokens and per unit, with batch, priority, flex and
off-peak variants, long-context tiers and off-peak hours, each with the page it was read from and
when it was last confirmed.
Nothing is read until a person says so. A weekly scan follows each vendor's sitemap and links, scores what it finds by prices, known models and keywords, and proposes pages; an administrator confirms the ones to read on the console. An administrator also marks a vendor complete once its pages list all its models, since a gateway retires models on that flag alone.
The browser is the part most exposed to the web, so it has the least to reach. It sits on a network of its own and goes out only through the scraper's egress proxy, which refuses private, loopback and other internal addresses, for the page and every request its scripts make. The scraper holds no database and no key. A page cannot instruct the model either: the model gets the page's text, has no tools, and an answer that cannot be a price is left out.
The extraction model is reached in one of two modes, switched on the console without a restart: straight at a provider's endpoint, or through a pacod-gw, which accounts each call. In gateway mode the model is chosen from what the gateway offers, and each call names its task and its run.
pacod-gw takes its model data from it by default. The gateway's own price scraper moved out to become the aggregator, and the gateway now syncs the whole catalogue once a day. Every valid price applies unless a model's price is pinned, and a change of ten times or more raises an alert. A model the gateway lacks becomes a proposal in its review queue. A gateway can take the same data from OpenRouter or LiteLLM instead, or from a file where it has no way out; the minimal gateway takes models, parameters and prices from a file.

pacod-gw: tools and agents, governed
Agents call tools as well as models, and the full gateway now governs both, with nothing granted by default:
- Tool servers. An organisation registers an MCP server, with a credential the gateway seals like a provider key. An administrator approves each tool's definition, and callers only ever see the approved one. The gateway asks the server again every six hours, and a tool whose definition changed is held until it is approved again.
- One MCP endpoint.
/mcpserves a gateway key the approved tools its bundles grant, as<server>__<tool>, beside pacod-broker's discovery tools. A bundle allows or denies a server's tools, and a deny wins. - Limits and records. A limit can count tool calls, per key or per agent. Every tool call is recorded with its verdict and a keyed hash of its arguments, never the arguments themselves.
- Registered agents. A registered agent is spoken for only by its own keys, narrows what they may use, and is written into every record. Switched off, it is refused on every path within a second.
- Remote agents. An A2A agent registered by its card is reached at
/a2a/{name}, with each workspace's tasks sealed from the others'.
The credentials are static for now: per-user credentials and OAuth are not built. The console also
gained Platform → System, which shows the installation's addresses and settings, and the
deployment's up targets end by printing them.
pacod-ap: agents of the gateway
In pacod-ap, every agent is now a registered agent of the gateway, and every call names its agent, so the gateway's usage, limits and kill switch apply per agent. An agent switched off in the gateway's console gets a clear refusal, never a retry as someone else.
An agent can also call the tools the gateway grants it: a new node in the agent editor binds tools
from the gateway's /mcp, and the gateway serves that agent only its own. A release pins each
tool's definition, so a tool that changed is not called until the agent is released again. In the
full stack, pacod-ap's own MCP tools are registered at the gateway the same way, as
pacod-ap__list_agents and its siblings.
The console's Broker page now edits the connection to pacod-broker, with a connection test, and lists the models and templates the broker shows and whether the gateway offers them.
pacod-benchmark: measuring the new paths
pacod-benchmark has two new kinds of cell, mcp and a2a, which measure
the gateway's governed MCP server and its A2A proxy against a baseline straight to the mock's own
tool server and agent, like every other cell. A run registers the mock's tool server and agent,
approves them and grants them through a bundle, all in its own scratch organisation.
A run, a cell or a comparison now downloads as a PDF, and a gateway on another machine can name the mock its baselines call, so that the network between the machines is not counted as the gateway's overhead.
pacod-kb and pacod-cms
pacod-kb offers the gateway's templates in its model pickers, picks its converter
and security models from a drop-down, and reads pacod-broker for the models it lists. In the
studio of pacod-cms, the installation screen sets how often the websites'
announcements on pacod-broker are rebuilt, and rebuilds them on request. Both can name the gateway
agent their key speaks for. And make seed-articles adds a seed's new articles to a live website,
and nothing else: the way new posts reach this website.
pacod-demo is now pacod-stack
The repository that runs every project together was called pacod-demo, after the place it runs in
public. It is the whole stack, and demo.pacod.io is one copy of it, so on 22 November it became
pacod-stack. Its configuration file is stack.env and its variables STACK_*, and
make migrate carries over a checkout that ran under the old name. The live demo keeps its
address, demo.pacod.io, and the CMS's demo websites keep theirs.
pacod-stack runs all eight projects, pacod-aggregator included: the gateway reads
its catalogue, and make verify runs a real sync. It also learned to run fewer:
STACK_PRODUCTS=gw,cms runs only the gateway and the CMS, and each product brings what it needs.
On a server in your network without DNS names, it can be reached through an SSH tunnel or under
wildcard names such as 192.168.1.50.nip.io. make start starts a stopped stack quickly, and
make redeploy S=… rebuilds only the services named.
Each project's changes are in its repository's history, on GitHub.