Add dike-dify-tools plugin - #3065
Merged
Merged
Conversation
crazywoola
approved these changes
Sep 13, 2026
crazywoola
left a comment
Member
There was a problem hiding this comment.
CI is green: Pre Check Plugin and PR Risk Label passed.
14 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin Submission
Plugin information
Submission type
What changed
Adds Dike Legal Search, a Dify tool plugin wrapping four grounded MENA legal research capabilities as native Dify tools:
dike_search(hybrid semantic + lexical search over verified Saudi, Egyptian, and Emirati legislation, court rulings, and fatawa),dike_reason(grounded Q&A where every citation in the answer is verified against the retrieved source set before being returned, unverifiable claims dropped rather than fabricated),dike_cite(parses and resolves an Arabic legal citation string to its canonical source document), anddike_graph_traverse(finds documents that cite, amend, repeal, implement, or interpret a given document). These mirror the same four capabilities already exposed by Dike's own MCP server, packaged here as native Dify tools for chatflow/agent/workflow use without an MCP hop.Risk level
The plugin only calls fixed, documented Dike API HTTPS endpoints (
api.dike.it.comby default, or a self-hosted instance if the user configures a different base URL) with a user-supplied API key. It does not execute code/SQL, does not use SSH/filesystem/browser automation, does not process uploaded files, and does not fetch arbitrary user-controlled URLs.Required checks
.envfiles,.gitdirectories, virtual environments, caches, logs, or IDE files.PRIVACY.md, andmanifest.yamlreferences it.Security and privacy notes
The plugin sends whatever query/question/citation/canonical-ID the calling Dify app supplies to the configured Dike API and returns Dike's response. It does not persist the API key or any query/answer content beyond the single request being handled, and does not log API key values. No other sensitive capabilities. Documented in
PRIVACY.md.Local validation
Packaged with the official Dify plugin CLI (
dify-plugin):dify-plugin plugin package ./dike-dify-tools -o ./dike-dify-tools-0.0.1.difypkgVerified the resulting archive contains only the 20 runtime files (no
.git, caches, or secrets), and thatmanifest.yaml/provider/dike.yaml/eachtools/*.yamlschema validates against the CLI's own packaging checks.Reviewer notes
Not yet tested end-to-end against a live Dify instance Cloud -- only exercised locally against the Dike API directly and the plugin's own request/response mapping. Flagging this per the "Required checks" box above.