Table of Contents

Class DMBridge

Namespace
GrindFest.GameMaster
Assembly
GrindFest.dll

File-based bridge for LLM communication.

The game writes request files with world context. An external LLM (Claude in VS Code, or any tool) reads the request, writes a response file with tool calls. The game reads the response and executes the tool calls.

Exchange directory: {persistentDataPath}/DMBridge/ request.json — written by game, read by LLM response.json — written by LLM, read by game narrative.md — persistent DM story notes history.json — conversation history (tool calls + results) system.md — system prompt (regenerated each startup)

public class DMBridge : MonoBehaviour
Inheritance
object
DMBridge

Fields

ApiKey
ApiModel
ApiUrl
IsActive
LastRequestTime
LastResponseTime
LastToolResult
MaxHistoryEntries
MaxTokens
Provider
RequestInterval
RequestsSent
ResponsesProcessed
Temperature
WaitingForResponse

Properties

BridgeDirectory

Methods

ClearHistory()
OpenBridgeDirectory()
RegenerateSystemPrompt()
SendRequest()