In DeepSeek Harness (DSH) development, enabling agents with structured knowledge retrieval capabilities is key to improving answer accuracy. The DSH plugin system allows developers to expand the boundary of a model’s capabilities. The xby-ancient-poetry-kg plugin is specifically for the domain of classical Chinese poetry, using knowledge graph technology to address the model’s difficulty in handling complex entity relationships.
This is a DSH plugin maintained by xby-skill, belonging to the “Memory” category. It builds a knowledge graph centered on classical Chinese poetry, covering data such as poem titles, authors, dynasties, and iconic lines.
The plugin provides the following core capabilities:
set_xby_apikey: Sets an API key in the chat. This operation supports automatic persistence, so the key remains valid after restarting DSH.get_schema: Retrieves Schema information for the graph database, including node types, attribute definitions, and relationships between nodes.execute_read_cypher: Provides an MCP Tool interface, allowing read-only Cypher queries to be executed on the graph database.
Installing the plugin requires using DSH’s plugin management command. The GitHub installation method is recommended.
dsh plugin --profile web add github:xby_skill/xby-ancient-poetry-kg
Before use, you need to register on the Xiaobenyang official website and obtain an API key. The plugin is licensed under MIT. The main source entry point is ./dist/index.js, and it includes cordis.patch.yml for development and debugging.
After configuring the API key, you can perform the following steps:
- Use the
set_xby_apikeytool to pass in the key. - Use
get_schemato view the underlying structure of the knowledge graph. - Use
execute_read_cypherto execute specific Cypher statements to query poetry data.
The plugin runs with the permissions of the current dsh process. Before installation, inspect its source code and license. For more details, refer to the GitHub repository or the plugin directory.