Tablekeeper
PLUGINTabletop RPG campaigns for Ulpi group chats.
by kaverimeshram · v0.4.0
What it does
Tabletop RPG campaigns for Ulpi group chats. Code rolls the dice and owns hit points, positions, initiative and turn order, each player controls only their own character, and the model narrates the results.
SRD 5.1 monsters, characters and spells, including a young red dragon with a fire breath cone. Disclosure — Disclosure: Storage.
The Desktop pane and dashboard route open it read-only; Prompt. The guard lets a reply quote any hit point or AC figure the state block listed or a tool returned, flags invented damage, rolls and hit points, and appends one compact correction line.
Other sessions and chats without a campaign are untouched; Network and processes. The plugin opens no connection of its own, starts no subprocess and reads no credentials.
Platform, chat id and sender id from the turn context, used as the campaign and owner keys.
Tools it adds
The tools an agent gets once this plugin is installed.
- tk_state
- tk_new_campaign
- tk_claim_character
- tk_roll
- tk_check
- tk_save
- tk_attack
- tk_cast
- tk_move
- tk_next_turn
- tk_death_save
- tk_rest
- tk_start_combat
- tk_damage
- tk_heal
- tk_condition
- tk_recap
How to set it up
With, each player throws their own d20 from a Telegram button; code still rolls the number.
/table dice phoneIn a chat that has a campaign, and in a local CLI or Desktop session once it has used or a tool, a compact state summary of at most about 600 tokens is added to each turn and the reply passes through the narration guard.
/tabletk_A campaign with no table activity for 24 hours adds no prompt tokens until the next call or command wakes it.
tk_/tableWith on a Telegram session it registers one callback handler scoped to and sends one button message per pending throw through the gateway's own bot; a tap is accepted only from the character's owner id; each throw result, including an automatic throw when the owner does not tap within the timeout (15-600 s, default 120), is queued into that chat as a message from the owner and starts an agent turn without anyone typing; Identity.
/table dice phone^tk:throw:<id>
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve