A 5e storytelling engine with an LLM DM

Fix /context to show all sections and use a 40x5 grid master

The /context bar was only showing a handful of hardcoded sections (Character, Log, Session, Location, entities) and skipping Style, Transcript, PlayerKnowledge, and Initiative entirely. Also the single-row bar crammed everything into 30 chars where every section got min-width 1, making the proportions meaningless. Now it loops over all context_parts, so nothing gets silently dropped. The bar is a 40x5 grid where each cell is 1k tokens — 200 cells for the 200k window. Token estimates are prefixed with ~ since they're len//4 heuristics, and the header shows real API token counts from the last turn when available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>


+68 -35
1 changed file