AI NPCs that can't eavesdrop.
Switch is an open-source platform that puts people and AI agents in the same chat rooms. In Tablefolk each character is its own agent, and Switch only sends it the rooms it sits in. So when the rogue sells the duke's ring in the back alley, the duke never hears a word.
A real recorded gameRefusals straight from a Switch server0 leaks, checked by the testsCheck it yourself: npm run verify, no key needed
Loading the recorded game…
A secret stays in the room it was told in.
Most AI game masters run every character through one model. Tablefolk gives each character its own Switch agent, so what it can know is set by the rooms it's in, not by a prompt asking it to forget.
Mira sells the ring to Fen. The duke is not in this alley, so Switch never sends him a word of it.
One model plays every NPC.
The model voicing the duke has already read the rogue's whisper. All that stops it from using it is an instruction, and models slip.
One Switch agent per NPC.
Each NPC has its own key and its own connection. Switch delivers it the rooms it belongs to and nothing else. Its prompt is built only from what it was sent.
Who sits in a room decides who knows.
The table, the duke's study, the rogue's private line to the GM and the back alley are four Switch rooms on Mattermost. Players, the GM and each NPC agent are seated where the story puts them.

GM
GMMiraTomas
GMMiraAsk for the alley. Get a 403.
When an NPC starts, it asks Switch for the history of every room it isn't in. Switch refuses, and the refusal is recorded. The replay above shows the real answers, and the tests check them on every run.
Dice are rules, so they live in code.
The Keeper is a Switch agent with no model at all. It rolls dice, tracks hit points and keeps a party sheet as a room document. Type aside fen @rowan and it has Switch open a private room on the spot.
One call sets the table.
The whole table is a Switch room template. Running it creates the four rooms as one linked group, seats the existing NPC agents and adds the people you name.
Built to be checked.
In 130 evaluation trials the alley line was in the baseline duke's input every time and never once reached the Tablefolk duke's agent. Messages reach an agent's stream in 22 ms at the median on a local server.
Plays in Mattermost
Players chat as themselves. Switch bridges each room to a channel, private ones included.
One agent per character
Duke Aldric, Captain Voss and Fen each register with their own key and open one stream per room.
Every delivery recorded
The replay is built from what each agent's own streams received, so a view is exactly what that NPC was sent.
Tested on a real server
An end-to-end test plays a scene on a live Switch server and checks every refusal and reply.
Unit tests without a server
The protocol client is tested against a fake Switch bridge: split frames, resumes, heartbeats and retries.
Local or hosted voices
NPC lines come from a local Ollama model for free, or a hosted model when you add a key.
Four steps to game night.
Start Switch Console
Pick the local server with the bundled Mattermost. It needs Docker.
Add two lines to .env
The bridge address and a registration key. Add a model key, or leave it out to use Ollama.
Set the table
One command registers the agents, runs the room template and starts every NPC.
Play
Talk to a character by name. Roll, track hit points, or step aside with an NPC.
Questions.
Is the replay a real game?
Yes, with one caveat. It was recorded on a Switch server with the real NPC agents. The player and GM lines were scripted so the scene could be re-recorded, and every NPC line was written by that NPC's agent during the run.
Couldn't a prompt keep the secret just as well?
A prompt asks a model that has read the secret not to use it. Here the duke's agent was never sent the alley, so there's nothing for it to slip. When it asks Switch for the alley anyway, it gets a 403.
Where do players type?
In Mattermost, through Switch's bridge. Each room is a channel, and the private rooms are private channels only the right people can see.
Which model writes the NPC lines?
Any of three: a hosted model if you add an API key, a local Ollama model for free, or a command-line model tool. The recorded replay used a hosted model.
What does it need to run?
Switch Console with its local server and Mattermost (which uses Docker), Node 20 or newer, and a model. Without players you can still run the scripted scene.
What's missing?
There's one campaign so far, and NPCs answer when someone names them. They don't speak up on their own or banter with each other yet.
Tablefolk