Six Lines Hexagram Interpretation · dsh-liuyao

Introduction

The DeepSeek Harness (DSH) plugin ecosystem allows mounting external capabilities onto the conversation sidebar or Agent tools, but integrating complex logic requires writing custom frontend panels and API wrappers from scratch. Liu Yao Na Jia (Wen Wang Ke) divination—casting and interpreting hexagrams—is a typical case of combined local logic that demands chart layout, classic text lookup, and strength/decline calculations. Reimplementing this pipeline every time is costly and error-prone. HanQing404’s dsh-liuyao plugin encapsulates the entire workflow into a sidebar panel and three Agent tools, so developers can cast, interpret, and look up classic texts and commentaries directly within a conversation without maintaining their own hexagram engine.

What This Is

dsh-liuyao is a client-side plugin for DeepSeek Harness that provides Liu Yao Na Jia (Wen Wang Ke) casting and interpretation capabilities, developed by HanQing404. It offers a sidebar panel and three Agent tools: liuyao_cast (randomly cast a hexagram and perform full-hexagram analysis), liuyao_analyze (interpret an already cast hexagram), and liuyao_lookup (look up the original classic text and commentaries for the 64 hexagrams, hexagram meanings, and the Eight Palaces table). After installation, a “Liu Yao Interpretation” entry appears in the left sidebar. From the panel you can cast hexagrams yourself, view the chart and conclusions, or call the tools directly in a conversation.

Core Features

  • Sidebar Panel: In the panel, write down your question, select a category (which determines which line serves as the useful god / yòng shén), choose a casting method (copper coins / yarrow stalks), and click “Cast” to first see a one-sentence conclusion, then the chart, interpretation rationale, timing and guidance, and the original classic text and commentaries. History retains the most recent 30 casts, and the “Archive” tab lets you open older sessions.
  • Agent Tools:
  • liuyao_cast: Randomly cast a hexagram and perform full-hexagram analysis. You can also pass in pre-cast six-line values.
  • liuyao_analyze: Interpret an already cast hexagram. Parameters are the six line values (6/7/8/9) from bottom to top.
  • liuyao_lookup: Look up the original classic text and commentaries for the 64 hexagrams, hexagram meanings, and the Eight Palaces table.
  • Output Format: The two casting tools return a compact summary by default (approximately 260 tokens), including the hexagram name, Six Relations Na Jia assignments, strength/decline, useful god, rationale, timing and guidance, hexagram statement, and moving lines. To get per-line Six Spirits, Hidden Spirits, Long Life, and full Tuàn/Xiàng commentary, pass detail="full" (approximately 710 tokens).
  • Interpretation Logic: Select the useful god based on the question category; use the monthly branch as the primary reference and the day stem as secondary to assess strength/decline, considering monthly destruction, ten-day-cycle void, entering tomb, and hidden movement; examine generating and restraining relationships among moving lines and the useful god’s movement and transformation (return generating/restraining, advancing/receding, transforming to void/tomb/extinction, anti-echo/hidden echo), then deliver a verdict of “auspicious / neutral / inauspicious / auspicious then scattered / delayed and unresolved,” along with timing and guidance; cite the hexagram statement, line statements, Tuàn commentary, and Great Image commentary.

Installation & Activation

In DSH, the path Plugins → Add Plugin → Local Directory will not work; use the GitHub source instead:

dsh plugin add github:HanQing404/dsh-liuyao

On the desktop version, you can also paste https://github.com/HanQing404/dsh-liuyao into “Plugins → Add Plugin,” or wait for it to be listed in the community marketplace and install it with one click from “Plugin Marketplace.” After installation, restart (or refresh the page) and “Liu Yao Interpretation” will appear in the left sidebar.

Typical Usage

Casting in the Panel Yourself

  1. Click “Liu Yao Interpretation” in the sidebar;
  2. Write down your question, select a category (determines which line is the useful god), and choose a casting method (copper coins / yarrow stalks);
  3. Click “Cast”: first read the one-sentence conclusion, then view the chart, interpretation rationale, timing and guidance, and the original classic text and commentaries. “History” retains the most recent 30 casts.

Let Me Cast and Interpret

Simply say “Help me cast a hexagram about…” and the relevant tools will be invoked:

Tool Purpose
liuyao_cast Randomly cast a hexagram and perform full-hexagram analysis (you can also pass your pre-cast six line values)
liuyao_analyze Interpret a hexagram you’ve already cast (6/7/8/9, bottom to top)
liuyao_lookup Look up the original classic text and commentaries for the 64 hexagrams, hexagram meanings, and the Eight Palaces table

After casting in the panel, click “Let Agent Interpret in Detail” — the hexagram is sent to a dedicated “Interpretation Zone” session, which runs with no tools attached at the minimum tier. The chart layout is completed locally by the panel and sent along with the summary (approximately 400 tokens). The Agent delivers conclusions directly without reconstructing the chart or carrying any history. One hexagram per session: after each interpretation is sent, the previous hexagram (and any old session you opened from “Archive” and reused) is automatically archived and appears on the panel’s “Archive” tab.

Use Cases & Notes

Suitable for scenarios in conversation where you need to quickly cast, interpret, and look up classic texts and commentaries — for example, wanting Liu Yao as a reference when discussing life decisions, or needing to encapsulate a hexagram engine in agent development. The plugin runs with the current dsh process permissions. Before installing, review the source code and license (MIT). Divination is a reference from traditional culture and does not constitute medical, legal, investment, or other professional advice; for major decisions, rely on facts and professional judgment.

Closing

dsh-liuyao integrates Liu Yao Na Jia casting, chart assembly, interpretation logic, and classic text citations into DSH’s sidebar and Agent tool system, eliminating the need for developers to implement hexagram logic from scratch. If you need to integrate this kind of traditional divination capability into your conversations, refer to the directory page and the GitHub repository.

References

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

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

Xiaoye