Seven deterministic divination tools (Plum Blossom, Tarot, Bone Weight, Zhuge Oracle, Xiao Liu Ren, Guan Di Lottery, Coin Hexagram) with optional AI interpretation via reverse-invoked workspace LLM.
Seven Chinese divination methods as a Dify tool plugin. Casting is fully
deterministic local computation — it works with no model configured at all.
AI interpretation is an optional enhancement that reverse-invokes the LLM already
set up in your Dify workspace; the plugin never stores an API key.
For entertainment only. Divination results are not factual predictions and
should not be used to make decisions.
Chinese documentation: readme/README_zh_Hans.md
Then add a tool node in a Workflow, choose a method, fill in the parameters,
and pick a model if you want interpretation.
To package:
Drop in a tool node, pick the tool:
The tool returns three things:
Three parameters are shared by all seven tools:
Method-specific parameters:
Every tool returns four variables, declared in so workflows can
reference them:
Plus a full JSON message and a human-readable text message. If interpretation
fails, the casting result is still returned and the failure reason is noted in
.
Time-based methods (Plum Blossom, Xiao Liu Ren) are sensitive to timezone —
eight hours of offset is a different hexagram. The plugin resolves the
timezone in this order:
For a self-hosted Dify, setting on the plugin container is the simplest
option. For cloud deployments, fill in your local timezone in the provider
credentials.
When only is given without , the current hour is used; pass
explicitly for historical lookups.
Casting runs entirely locally — no network, no upload. When AI interpretation is
enabled, the hexagram and your question are sent to the model you configured in
your own workspace; that model provider is the only recipient. See
for details.
The algorithms and oracle texts come from the
Cyber Oracle CLI project. Data
provenance and licensing are documented in .
The modern-language readings for the Zhuge Oracle are generated by the scripts in
from public-domain source poems and classical
commentary; no third-party compiled text is used.
Network access: none. The plugin makes no outbound requests; interpretation
travels through Dify's own reverse invocation channel.
For entertainment only. Divination output is generated by probabilistic models and
must not be treated as factual prediction, professional advice, or a basis for
decisions with financial or personal consequence.
Last checked 10/23/2026 06:39 AM · version 0.0.1