Skip to main content

Configuration reference

Core plugin configuration​

These values configure the plugin for the whole DSH profile. Session settings belong to one story instead.

FieldDefaultPurpose
rootPath~/dsh-roleplayFolder for worlds, avatars, sessions and media
sessionStorePath~/.dsh/sessionsDSH session store used for the chats attached to roleplay sessions
authoringToolsnoneTools from other plugins that each authoring assistant may use. Groups are worldAuthoring, presetAuthoring, lorebookAuthoring and worldAuthor. An unlisted tool is unavailable. The session doctor never receives these tools
cataloguesnoneWorld catalogues to browse. Each entry has name, API baseUrl, and optionally an apiKeyRef for DSH's credential store (the key itself is kept there, never in the configuration; an apiKey text written by an earlier version is no longer read)
sync.remoteemptyrclone remote and folder, such as mydrive:dsh-roleplay; empty disables sync
sync.rcloneemptyrclone executable; empty finds rclone on PATH
sync.configFileemptyAbsolute path to the rclone configuration file, which must be outside rootPath
sync.passwordRefemptyDSH credential-store reference for an encrypted rclone configuration; empty uses ROLEPLAY_SYNC_RCLONE_CONFIG_PASS
sync.intervalMinutes0Automatic-sync interval; 0 permits manual runs only
offloadnoneModels that cannot be loaded together, as groups (lists of the roles main, embedding, reranker, decision, image, speech) and models (the route and model name of each role except main, which is the chat's own model). Before a model of one role is used, the server unloads those of the roles it shares a group with. Empty never unloads anything
catalogueMaxBytes256 MiBMaximum downloaded-world size, checked both compressed and unpacked
catalogueTrashDays30Days to keep files replaced by a catalogue update in .trash/worlds/; 0 keeps them indefinitely
autonomyTickSeconds30Seconds between looks at the stories that switched on going on while you are away (at least 5); 0 never looks
importMaxUploadBytes100 MiBMaximum character-card upload size
importConcurrency4Import and authoring helper calls that may run at once
importReasoningemptyReasoning level for import and authoring helpers and authoring chats; empty uses childReasoning, then the chat setting
childReasoningemptyFallback reasoning level for roleplay helpers; empty follows the game master
importModelemptyModel for import and authoring helpers as provider/model; empty uses the chat model
importStructuredOutputschemaHow import and authoring helpers return structured results. schema asks a compatible endpoint to constrain a JSON reply with response_format; LocalAI, vLLM and OpenAI support this form. If an endpoint rejects the schema, that model uses a tool call from then on. tool uses tool calls for every model
importMaxTokens0Ceiling on output tokens for one import or authoring-helper request; 0 is a tenth of the model's context window (at least 16000); each job may use a smaller limit
importVariablesPerRequest25How many tracked values one import request is asked to declare; a card that tracks more is asked again for the rest
importTemperature0.2Import and authoring-helper temperature
importTimeoutMinutes15Minutes before an import or authoring helper is stopped without a result; 0 disables the timeout
importDecisionsllmdecision lets the configured decision service preclassify card pieces it can settle confidently; llm sends every piece to the language model
importConfidence0.7Confidence required to accept a decision-model classification
authoringApprovalaskask requests approval for every world-authoring-chat change; auto writes immediately while retaining replaced or deleted files in the world's .trash folder; the preset and lorebook assistants follow it too, except for prompts that hold rules of the game, which are always asked

All fields except the restart-time sessionStorePath are editable under Settings, Role Play and take effect without restarting. See Sync between devices before pointing more than one installation at the same remote.

State plugin configuration​

The state package can be installed on its own. These values configure its database and model-facing tools.

FieldDefaultPurpose
journalModedeleteSQLite journal mode. delete keeps a session easy to copy as one file; wal permits readers during a write
writeToolsfalseRegister model tools that change records. Reading tools are always registered
diceToolsfalseRegister dice tools for every roleplay agent. The full bundle instead grants them by agent kind

Session defaults​

These defaults are copied into a new story's settings.json. A world or preset may suggest different starting values, and the player can change them for that story.

Turn, memory and context​

SettingDefaultMeaning
maxRounds / maxCharacters3 / 4Character rounds per player message, and characters activated per round
memory.flakytrueApply imperfect perception and story-time fading
memory.recall / memory.lookupCalls12 / 5Memories supplied per activation, and maximum lookups in one character decision
memory.lookup / memory.verifytrue / trueLet characters query memory, and have the keeper read edits back
memory.backlogRounds6Unrecorded rounds that force the keeper to catch up
memory.overRetrieve / memory.associate4 / 2Candidate multiplier before selection, and related memories allowed with a strong match
memory.diversity0.3Penalty, from 0 to 1, for recalling near-duplicates together
memory.foldedFade0.5Retention multiplier after a belief incorporates a perception; 1 leaves it unchanged
context.limitTokens / context.limitRatio0 / 0.6Explicit folding limit, or share of the model context used to derive it
context.workingTokens / context.retainRatio0 / 0.5Optional cap on the derived limit, and its verbatim share
context.shortTermTokens / context.longTermTokens1500 / 2500Short-term and long-term summary targets
context.accounteventswritten: a helper writes the digests and chapters. events: they are the recorded events themselves

World activity and time​

SettingDefaultMeaning
authoring.enabledtrueLet the game master ask the world author for missing entities
authoring.perTurn / authoring.thingsPerTurn2 / 4Authored characters and places, and ordinary things the GM may introduce, per turn
authoring.consolidateAfter3Pending authored entities that trigger consolidation
clock.mode / clock.timeZonesimulated / emptyStory-time mode (simulated or real) and its IANA time zone. At session start, an empty zone uses the host zone for real time, or the world's zone and then UTC for simulated time
clock.roundSeconds / clock.maxSkipDays30 / 30Default simulated round duration and maximum days in one clock advance
background.concurrentfalseLet background work overlap the next turn instead of completing first
offstage.perTurn / offstage.perCharacter2 / 1Due off-stage characters per turn, and actions allowed for each
offstage.joint / offstage.summarytrue / trueProcess overlapping situations together, and produce the Meanwhile summary
autonomy.enabled / autonomy.messagesfalse / trueThe story goes on while you are away (real clock only), and characters may write to you
autonomy.maxUnanswered3Things the characters do on their own in a row with no message from you before nothing more runs
autonomy.idleMinutes / autonomy.messageGapMinutes15 / 180Minutes you must be away before characters act, and the least time between two messages from one character
autonomy.awayHours12Hours away after which nothing more happens until you write
autonomy.chance / autonomy.decay0.05 / 0.5The chance at each look that someone writes once the idle time has passed, and what each message sent with no reply multiplies it by
autonomy.transitionChance0.4The chance that a character whose day just changed writes at that look
schedule.enabledtrueWhether the characters keep to their days (routines and sleep)
decisions.errandsonA decision model looks after each turn at the awake characters it named and says whether any is waiting for the player (sent on an errand, told to stay or watch); such a character is kept off its day until you are with it again. Decision-service-only: off or on; without a service nothing is held by this site
decisions.messagesoffA decision model says whether a character picked by chance has a reason to write; without one chance alone decides
factions.perTurn / factions.everyDays1 / 3Due factions advanced per turn, and their default story-time interval
plan.autofalseWhether the story's private plan of what lies ahead is made and revised by itself in the background; a look can always be asked for by hand, and the game master reads whatever plan exists
plan.minTurns / plan.everyTurns / plan.perPass1 / 8 / 2Turns before the first automatic plan, the most turns without a look at it, and the most triggers one look may set
triggers.enabled / triggers.maxFirestrue / 3Whether triggers run, and how many may fire per turn
triggers.beatTurns / triggers.cueTurns3 / 2Turns a game-master beat or character cue waits to be used
triggers.judgedPerTurn2Trigger conditions that may require model judgement per turn

Reflection and decision checks​

SettingDefaultMeaning
reflection.auto / reflection.everyTurnstrue / 20Reflect automatically after this many turns; 0 disables the schedule
reflection.onSceneChange / reflection.sceneDaystrue / 1Also reflect after a place change or this many story days; 0 disables the time condition
reflection.minTurns / reflection.perRun5 / 3Minimum gap between passes and characters processed per automatic pass
reflection.minNew4New perceptions needed for an automatic pass; a manual pass needs one
decisions.triggers / decisions.reflectionhybrid / llmJudge trigger statements and belief evidence with llm, decision, hybrid or shadow. hybrid accepts confident decision-model answers and sends the rest to the language model. Without a configured decision model, it quietly uses the language model alone
decisions.agency / decisions.refusaloff / offOptional output checks, using the same four modes plus off
decisions.situationhybridCheck of the situation the game master gives the characters, for the player's private thoughts and what they cannot know, using the same four modes plus off. In hybrid nothing is asked while no decision model is selected
decisions.situationThreshold0.3The probability from which a decision model's answer that the situation carries a private thought counts as a yes (0.1 to 0.95); its own cut because the model rates this fault low
decisions.repeatsoffSentences the narration already told in one of the last decisions.repeatTurns turns (6, from 1 to 30; sentences of at least decisions.repeatChars characters, 12, from 6 to 60). The same modes plus strict, which sends back every repeat with no model
decisions.reuseoffBefore a scene picture is made on its own after a turn, asks the decision model whether each close stored picture's description shows the moment, and shows the first that does instead of making a new one. Decision-service-only: off or on
decisions.variablesllmAfter each turn, looks at every tracked value (world variables, and character variables for the people in the scene): one question for each value, whether what happened changed it, put to the language model, the decision model or both; the language model then gives the new value of those that did. Fill in each value's When and how it changes field. Same four modes plus off
decisions.rules / decisions.secretsoff / offDecision-service-only checks of allowed actions against rules, and outputs against hidden lore
decisions.hooksoffThe decision model checks the hook of a plot the plot author wrote against the recorded events, once; a hook that contradicts them or states as past what they do not record has the plot written again once, and a second such hook is not shipped. Nothing is checked without a decision model
decisions.repeatThreshold0.7Probability at which a decision answer counts as a repeated sentence being stale filler (0.1 to 0.95). Measured on 72 labelled repeats: 0.7 refused no meant repeat and missed no stale one; 0.5 refused 15 of 36 meant repeats
decisions.reuseThreshold0.85Probability at which a decision answer counts as a stored picture that shows the moment (0.1 to 0.95)
decisions.gateThreshold0.5Probability at which a decision answer counts as a fault; the 0.15 below it is uncertain
decisions.confidence0.7Confidence required before a decision answer is accepted instead of handed to the language model

The modes and fallback rules are explained in Optional capability integration.

Models, prompts and sampling​

SettingDefaultMeaning
models.characters, models.records, models.suggestions, models.authoringemptyModel for that helper as provider/model; empty uses the chat model
models.backgroundemptyBackground-character model; empty falls back to models.characters
sampling.master / sampling.characters0.7 / 0.8Game-master and character temperatures
sampling.suggestions / sampling.authoring / sampling.records0.2 / 0.4 / 0.1Temperatures for suggestions, authoring and records
sampling.topP / sampling.topK / sampling.minP1 / 0 / 0Additional sampling controls; defaults are not sent
sampling.frequencyPenalty / sampling.presencePenalty / sampling.repetitionPenalty0 / 0 / 1Penalty controls; defaults are not sent
sampling.toolsrequiredTool-choice mode for helpers that must submit a result
sampling.masterMaxTokens12000Maximum output tokens for one game-master request, including reasoning
sampling.maxTokens / sampling.shortMaxTokens8000 / 2000Output ceilings for general and short helper requests
sampling.headroom2Multiplier applied to a helper's estimated answer size before its ceiling
prompts.languageenLanguage of a story's prompts. en and zh have prompts of their own; any other language uses the English ones and tells the models to write in it
reasoning.childrenemptyHelper-agent reasoning level; empty uses the plugin fallback

Interface, rules and media​

SettingDefaultMeaning
interface.packemptyEmpty uses the world's first pack, none disables packs, and a name selects one
rewind.keepSnapshots30Recent state snapshots retained for taking the story back
rules.ownemptyAdditional rules supplied by the player for this story
pins.ownemptyFacts the player fixes for this story, one per line; the game master and record keeper keep to them and cannot change them
preview.enabledtrueShow an early scene preview while the full turn runs
suggestions.count3Suggested next actions shown after a turn
dice.visibilitycardcard shows rolls in a collapsed card; hidden shows no roll card
toolsnone chosenOptional tools by agent kind (gameMaster, characters, records) and name; unknown names are retained and ignored
images.modemanualoff, manual, important or every-turn
images.referencesprefer-referenceprefer-reference, require-reference or text-only
images.reuse / images.highRestrue / falseReuse existing pictures, and optionally render a larger second result
images.interprettrueDescribe uploaded pictures for the story
images.interpreterModel / images.captionerempty / emptyModels for uploaded-image interpretation and generated-image captions; empty uses the chat model
diagnostics.keepRunsfalseKeep the latest 60 helper traces, including private character context, in the session folder

The UI shows current numeric bounds. Unknown fields are rejected. Provider-specific embedding request options are stored under embedding.options.