Authoring assistant
Select Author world from the world editor. DSH opens a chat named after the world under the World Authoring project and supplies a dedicated agent rather than the general-purpose or roleplay preset.
The assistant can list and read world elements, inspect links and relationships, and propose creating, updating or deleting authored data. Mutation tools write the same files used by the manual editor.
A small change does not need the whole document. update_world_element (characters, places, things, factions and lore), update_world_plot, update_world_trigger and update_world_file (one tracked value, dice check, command or holiday) take only the fields that change and merge them into what is stored: an object is merged field by field, null removes a field, and a list or a text replaces what was there, so a changed list is sent complete. The result is checked exactly as a full write is, and a key that names nothing is answered with the keys there are. edit_world_relationship changes the label, summary or numbers of a relationship in place; its two ends cannot change, so pointing it elsewhere means removing it and creating the new one. The replace and write tools stay for writing a whole document anew.
It also reads and changes what the world says about itself in world.json: get_world_info reads it and edit_world_info changes the description, tags, rules, the opening, the other openings, the starting time and time zone, the version and the author. The world's name, its suggested preset and lorebooks, its sampling and its tool switches are yours and the assistant cannot change them. Like every other edit, a change shows each field with its old and new value for approval.
It also reads and writes the world's triggers (what the world does by itself): list_world_triggers and get_world_trigger read them, and write_world_trigger and delete_world_trigger create, replace and remove one by its key. A trigger is read as a story start reads it and refused, with every problem at once, when it is malformed or names a character, place, item, variable or trigger the world does not have; a removed trigger's document is kept in the world's .trash/triggers, and one that other triggers wait for cannot be removed.
The whole-world files, the tracked values (variables.json), the dice checks (dice.json), the world's own slash commands (commands.json) and the holidays (calendar.json), are read with get_world_file and replaced with write_world_file, which takes the complete document, checks it against the rest of the world as the editor's panels do and refuses it with every problem; an empty document removes the file. A tracked number or choice without an update sentence (when and how it changes) is refused, because a value with no rule moves for nothing. A script can write into a world's authoring chat as the person would with POST /roleplay-api/worlds/authoring/message?id=<world id> and { "text": "..." }; it opens the chat when needed and answers 202 once the message is sent. DELETE /roleplay-api/worlds/authoring/chat?id=<world id> deletes that chat and everything it started for good; the world stays. The start questions are the startQuestions field of edit_world_info. Which optional tools a world's agents have, and whether its stories go on while the player is away, stay the person's choice and are not changed by the assistant.
Use it for changes that benefit from synthesis across several parts of a world: adding a person who fits an existing faction, finding incomplete connections, turning a premise into a small set of optional beats, or checking whether private knowledge has been placed on the right characters. For precise field edits, the visual editor is usually faster.
Asking about the original card
A world made by importing a character card keeps that card in its .import folder, and the assistant can read it. Ask where something came from ("Where did Ilsa come from? Was she Bram's sister in the card?") and it looks the card up instead of guessing: card_overview lists everything the card holds and what the import made of each piece, card_search finds a name or phrase, card_read returns a piece word for word (a long one in turns), and card_origin names the pieces a character, place or thing was made from.
The world's own files remain the canon: the card is evidence of where they came from. When the two differ the assistant says so and does not change the world unless you ask. What the import's records say it did is its own judgement and can be wrong, so the assistant is told to check it against the card's text.
Open Source card from the right sidebar's new-tab menu to read the card beside the world and the chat. This page is offered only in the authoring chat of a world that has a source card. It lists every field, greeting and lorebook entry with the id the assistant uses (field:description, entry:23), whether the import read it, the roles assigned by the import, and the full text on demand. When the assistant mentions "entry 23", you can find it there.
The tools exist while the card does. card_diff and card_update_finish serve updating a world from a newer version of its card; while an update is waiting, card_read and card_search also take version: new to read the newer card. Delete the world's .import folder and they report that the world has no source card. The card is licensed content: it stays in the world folder and travels with it when you sync your devices, but nothing the plugin exports or translates carries it.
Format guides
The assistant writes documents in the world file format. Before it writes a kind of document, it loads a guide for that kind through DSH's skill tool: world-characters, world-places, world-items, world-factions, world-lore, world-triggers, world-plots, world-variables, world-dice, world-commands, world-calendar and world-info (what world.json says about the world: description, tags, rules, openings, start questions, time). Each lists the fields with their types and allowed values, what the part is for, what belongs in it and what does not, and an example the file parser accepts. A further guide, world-where-things-go, helps it decide whether something is a personality trait, a secret, a rule, a style instruction or guidance for one situation.
The guides ship with the plugin and are offered only to the world assistant. The world-authoring preset mounts DSH's skill tool for this, and the registry that holds the guides comes with the standard dsh-base bundle. Without the registry the assistant works from its tool descriptions and from the error messages a refused write returns, which list every problem in the document.
Research tools
The world, preset and lorebook assistants can use tools other plugins registered for everyone, such as a web search or an MCP server, so that "use the Honkai Star Rail setting" can be looked up instead of guessed. They have none by default. Tick the tools each assistant may use under Settings > Role Play > Tools for the authoring assistants; a change applies at the assistant's next step, also in a chat that is already open. An assistant sees only the tools ticked for it, so a tool you configured for something else never reaches it. Whether a call to a ticked tool asks you first is decided the way DSH decides it for any tool, by DSH and the plugins that set its approval policy: this plugin adds no approval of its own, so what asks you is whatever your DSH setup asks for. The tool acts with the permissions its plugin has, so tick only what you are comfortable letting the assistant use. The same list has a fourth entry, the world author during play: the helper that invents a place, a person or a thing a story needs, which can then look something up first (a real place a story visits, a creature from a franchise). It gets a few more calls to use what you ticked. The session doctor never receives any. The other helpers the program starts during play (the import steps, the helpers of the record keeper and the suggestions) have only their own tools, and the game master, the characters and the record keeper take theirs from the story's own Tools switches.
A tool can also be given to one assistant alone by loading the MCP server inside that assistant's preset in the profile's configuration; it is then invisible to everything else.
Approval
By default every mutation requires approval through DSH's approval flow, and the prompt says what changes: for a replacement, each changed field with its old and new value (for example name “Mara” → “Mara Quill”); for a new document, its name and the fields it fills. A refusal leaves files unchanged. After approval, the tool validates the proposed document and writes it atomically; errors are returned to the chat for correction.
DSH's own approval offers only "allow once" and "reject", with no "always allow". For a large change, such as a rename that touches twenty files, set Changes by the world authoring chat to Make changes automatically under Settings → Role Play → Imports and authoring assistants. The assistant then edits directly, and anything it replaces or deletes is kept in the world's .trash folder. The setting covers every world authoring chat and applies at once; the preset, lorebook and session doctor chats still ask for each change. An import never asks.
Ask for outcomes rather than file operations, for example:
- “Add a locked archive below the town hall and connect it to the records room.”
- “Give Mara a distrustful relationship toward Elias, but leave his view of her unchanged.”
- “Review the first plot and reduce the pressure to advance it.”
Use the shared World tab to inspect the result. The chat and editor operate on the same workspace folder.
Tools left out of requests
Every tool the assistant is offered is described in every request it sends, so a long tool list makes each request slower to start. The Chat settings tab of an authoring chat chooses how many tools are left out while they cannot be used:
- Leave out the card tools of a world with no card (the default): a world made from scratch is not offered the tools for importing and reading a card. If a card is imported into the world, they appear from the next step.
- Also follow the import: while a card is imported the world is empty, so the writing tools wait until it is written; the import tools go once it is finished and reviewed; the update tools are offered only while a newer card waits.
- Offer every tool: the list never changes.
A change to the tool list makes the model server read the whole conversation again once, so a server that caches the conversation is slowest right after one. Keep the list steady (the default, or Offer every tool) for a long working session, and leave more tools out when you come back after a long break, because the cache has expired by then anyway. The setting belongs to the world and applies from the assistant's next step.
Keeping long conversations short
The results of the assistant's tool calls, such as a character sheet it read or a document it wrote back, are sent again with every request, so a long working session grows quickly and the first request after a break (when the model server's cache has expired) can take minutes. From the start of each turn the results of older turns are replaced by a one-line note ("the result of get_character was left out"), and the assistant calls the tool again if it needs one. Its calls, its messages and yours stay, and the full results stay in the chat's log. The Chat settings tab sets how many turns keep their results, counting the one being played: 2 by default (this turn and the one before), 0 keeps every result.
The arguments of a call, for example the whole document of a replaced character, cannot be shortened this way, so a request that replaces many large documents stays large until those turns are no longer in the conversation. Ask for one change per turn when a document is large, and start a new conversation (delete the old one in the chat list) when a session has grown too big.
Checkpoints
Before the assistant's first edit in each turn, the plugin copies the world's files into .checkpoints inside the world folder. These copies are neither synced nor published. You can also create a checkpoint yourself. Pictures are excluded, and stories that have already started keep their own world copies.
The world editor lists checkpoints from newest to oldest. You can compare each one with the current world to see changed, added and removed files, or restore it. Before a restore, the plugin saves the current files as another checkpoint, so the restore can be undone. It refuses to restore while the assistant is working on that world. On its next turn, the assistant is told about the restore and reads the world again before editing.
The assistant can inspect checkpoints with list_world_checkpoints, diff_world_checkpoint and read_world_checkpoint_file. This supports a request such as "undo what you did to Mara but keep the rest": the assistant reads Mara's old file and writes only that content back with its editing tools. Restoring a whole checkpoint remains a user action.
Settings > Role Play > Imports and authoring assistants > Checkpoints kept per world controls how many of the newest checkpoints are retained. The default is 30. If a world's text and interface packs exceed 64 MB, no checkpoint is made and the assistant's edit continues.
A productive workflow
- State the desired outcome and any facts that must remain unchanged.
- Ask the assistant to inspect the relevant world elements before proposing edits.
- Review each approval request, especially IDs, relationships, placement and private knowledge.
- Open the World tab and verify the result in context.
- Run a short session before asking for more breadth.
Good requests provide constraints without dictating the storage format:
- “Add two ways into the archive. One should require the brass key; the other should be risky but possible without it.”
- “Give the trust a concrete goal for tonight and a reason not to involve the police.”
- “Check which characters know about the 1891 incident. Do not reveal it to anyone new.”
Avoid asking for a whole setting in one mutation. Smaller approved steps are easier to inspect, produce clearer validation errors and let you correct the direction before the world becomes crowded.
Concurrent editing
To have the assistant check a world, type /check (or /check-world, /check-card, /check-quality) in its chat; see Checking a world.
The authoring chat and visual editor address the same files, but neither is a collaborative document editor. Finish and review an approved assistant change before making overlapping manual edits. If files were changed outside DSH, refresh the editor before continuing.
The assistant changes authored worlds, not active session databases. Use the session's World tab for deliberate changes to a story already in progress.