dsh-sekaisync-connect: Direct Connection to Local SekaiSync Knowledge Bases in DSH

Introduction

When building agents with long-term context in DeepSeek Harness (DSH), models often lack a verifiable, updatable local fact source. Connecting a synced knowledge base like SekaiSync to the runtime typically requires maintaining your own HTTP client, managing configuration paths, and controlling retrieval granularity and token consumption within the conversation. The community plugin dsh-sekaisync-connect (maintainer omoinoki) integrates SekaiSync as a direct-connect module for DSH: the plugin launches or reuses the local sekaisync HTTP service and exposes 10 read-only tools. In the Web profile, you can also select the deployment path via the plugin panel instead of manually editing JSON. The following section describes its positioning, capabilities, and installation/configuration methods.

What is this

dsh-sekaisync-connect is a DeepSeek Harness direct-connect plugin for the SekaiSync knowledge base: it has no third-party npm dependencies, requires no build step, and is designed with a focus on low token usage. It targets environments that already have a store (containing kb/) generated via sekaisync init / sync. It connects to the SekaiSync service on the loopback address within the DSH process, allowing the model to query entities, facts, terminology, and announcements according to tool contracts.

The philosophy of the DSH ecosystem is “everything is a plugin”; SkillHub and similar platforms are independent community directories. You should review the source code and license yourself before installing.

Core Features

Ten Read-Only Tools

The plugin registers 10 compact tools for the model, all of which are read-only regarding the local knowledge base (names and usage are subject to the Chinese README in the repository):

Tool Usage Summary
sekai_probe Determine if the topic belongs to “Project SEKAI” and suggest the next tool
sekai_lookup Multilingual name matching for entities (characters, events, cards, banners, songs, regions, etc.), including cross-server names and event abbreviations
sekai_fact Retrieve compact fact packs by entity id (e.g., character:1)
sekai_resolve Resolve proper nouns into official localized names
sekai_term In-game terminology and cross-language translations, including tags, weight, and evidence
sekai_penetrate Cross-language penetration for specific terminology (takes longer)
sekai_alias Resolution of event abbreviations and official event names
sekai_web Full-text search of crawled story scripts
sekai_news Filtered query of official announcements across five servers
sekai_status Knowledge base readiness, freshness, and coverage per server

HTTP connections are restricted to loopback only, and redirects are refused; successful responses have a byte budget (default 128 MiB, adjustable via SEKAISYNC_MAX_RESPONSE_BYTES or maxResponseBytes in config, max 1 GiB).

Web Plugin Panel (Optional)

In profiles providing a Web client, a Configure page may appear under the sidebar Plugins → Installed → dsh-sekaisync-connect: input the path and use Check to classify the store / repo root / kb/. Save & Apply writes to the profile’s cordis.patch.yml (via the official settings service). Test Connection requests /health for the selected deployment. In pure CLI combinations without the panel, the 10 tools remain available, and file/environment variable configuration methods remain unchanged.

The panel intentionally does not allow editing the python executable path from the interface; no directory browser is provided, so paths must be entered manually.

DSH Runtime Version Gating

The plugin performs explicit allow/deny checks on DSH runtime versions: for example, 0.1.x and unverified 0.3.0 / 0.3.0-rc.1 / 1.0.0 will be DENIED; 0.2.0-rc.1 up to 0.2.x are allowed. If incompatible, the entire package refuses to load (tools disappear, panel does not load) rather than crashing halfway. If you must run on an unverified version, the README mentions that dsh plugin allow-version can be used.

Installation and Enablement

Environment prerequisites (as required by the README):

  • Python ≥ 3.10, and capable of executing python -m sekaisync (SekaiSync side has zero third-party dependencies)
  • A store that has completed synchronization (sekaisync init / sync artifacts)

Install the specified version under the target profile:

# Install this version from Git:
dsh plugin --profile web add github:omoinoki/dsh-sekaisync-connect#v0.3.9-alpha.1

# Or install from a local checkout directory:
dsh plugin --profile web add ./dsh-sekaisync-connect

Replace --profile web with the profile name you are actually using. After installation, follow the next section to resolve the store / root directory; if the runtime version is not within the allowed range, you need to upgrade DSH or use the allow-version process documented.

Configuration Essentials

Configuration priority (high to low): Environment Variables > Profile Line Config > SEKAISYNC_CONFIG File > Plugin Directory config.local.json > config.json > Auto-discovery.

Common items:

Config Item Description
SEKAISYNC_STORE Store directory containing kb/
SEKAISYNC_ROOT SekaiSync repo root (working directory for python -m sekaisync)
SEKAISYNC_PYTHON Python executable, default python
SEKAISYNC_PORT Port to probe for existing service, default 8787; 0 means skip external probe and start managed service directly
SEKAISYNC_MAX_RESPONSE_BYTES Byte limit for a single successful HTTP response, default 134217728

Override example in the profile patch (note that the line id must be sekaisync-connect, consistent with the key written by the panel):

- id: sekaisync-connect
  name: 'dsh-sekaisync-connect'
  config:
    store: 'D:\\sekaisync\\store'
    python: 'py'

If a ready SekaiSync instance already exists on port 8787, the plugin will reuse it; /health does not carry store identification, so you need to confirm yourself that the port corresponds to the target knowledge base.

Typical Usage

The Usage Suggestions (Token Discipline) in the README can be used as a reference for conversation strategy, summarized as follows:

  1. Use sekai_resolve before generating localized text; use sekai_fact for precise facts to avoid the model answering from memory.
  2. Use sekai_probe first when unsure if it relates to Project SEKAI, then continue based on the returned next_tool.
  3. For time-sensitive issues (events, banners, maintenance), check freshness and coverage with sekai_status first.
  4. Verify translation context: confirm terminology with sekai_term → use sekai_penetrate if necessary (slower).
  5. Use sekai_web only when quoting original story text; prioritize sekai_lookup / sekai_term normally.
  6. Event abbreviations or unit names can be asked directly in natural language; sekai_lookup / sekai_alias handle resolution.

Example of server-specific facts (sekai_fact accepts optional region):

{"entity_id":"character_profile:18","language":"en","region":"jp"}

The result will disclose the actual server region and body language; if an old backend ignores region, it will prompt for an upgrade rather than silently returning unfiltered data.

Applicable Scenarios and Notes

Who it is for: Developers who already maintain a SekaiSync store locally and want to stably invoke the same knowledge base within DSH conversations; categorization-wise, the community directory labels it as a “Memory” type plugin, suitable for integrating structured game/project facts into an agent toolchain.

Notes before use:

  • The plugin runs under the current DSH process permissions and will start or connect to a local Python service according to configuration; before installation, you should read the repository source code and MIT license, and ensure the store path and port do not point to unintended instances.
  • Relies on both Python and Node runtimes; SekaiSync backend upgrades will not automatically fill in missing fields in old libraries, so you need to sync or rebuild according to upstream instructions before verifying the body text.
  • The community directory page shows the repository has approximately 2 stars (subject to site/GitHub data at the time), belonging to early-stage community components; the version is alpha, please verify tool latency and data freshness yourself in production environments.

The README has a dedicated section for common failures: such as store not found, unable to start python -m sekaisync, server cooldown, panel forbidden, and other issues related to Host/Origin/cookie barriers. You can check them item by item according to the documentation.

Conclusion

dsh-sekaisync-connect bridges SekaiSync’s HTTP capabilities with the DSH tool surface: 10 read-only tools cover probing, retrieval, facts, terminology, and status. In the Web profile, you can also graphically save the store/root. If you are already using SekaiSync for a local knowledge base, you can connect it according to the installation commands and configuration priorities above; details are subject to the repository README and CHANGELOG.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye