Introduction¶
When building agents with knowledge bases in DeepSeek Harness (DSH), the common approach is to integrate a RAG (Retrieval-Augmented Generation) system: allowing the model to search documents and answer questions. The difficulty often lies not in “whether it can search,” but in “whether the retrieved content is consistent with what the current user is authorized to see.” Many systems implement coarse-grained permissions by space; within the same space, two people asking the same question might see paragraphs they shouldn’t, or the result list might mix in unauthorized documents that are filtered out after the fact.
quberi/dsh-quberi connects the Quberi knowledge base to DSH: supporting search, browsing, note saving, and file uploads via OAuth login. Permissions are enforced at the document level and filtered during the retrieval phase, rather than applying a blanket cut by space.
What is this¶
dsh-quberi is published by the maintainer quberi and categorized as a Web Tool in the DSH community directory. The plugin runs locally with the permissions of your current DSH process and connects to your Quberi account via OAuth (or a self-hosted Quberi service; see Configuration in the README).
In short: you ask questions in natural language within the Harness, and the model can invoke Quberi-related tools to return only the document fragments you are authorized to read; you can also write conversation conclusions into notes or upload workspace files after your confirmation.
Permissions and Retrieval: Differences from “Space-based Authorization”¶
The README emphasizes that the interesting part is not “being able to search,” but what the search is allowed to return:
- Permissions are configured by document, not by space; two people in the same space asking the same question may get different answers because retrieval filters within the vector index exclude unauthorized documents first. Denied documents never enter the candidate set from the start.
- Deny overrides: When a document is explicitly hidden via denial, a grant cannot override that decision.
- Filtered at retrieval time: This yields a complete result set, rather than pulling a long list first and digging holes later.
- Image preview links return 404 if requested again after permissions have been revoked.
- Writes can only go to spaces where you have edit permissions; uploads require your confirmation every time.
Single documents shared with you remain searchable even if you cannot read the space they reside in; documents hidden from you will not appear in results even if you can read the space.
Core Features¶
The capabilities verified via the README and package.json (current version 0.6.0, MIT License) are as follows.
Model Tools¶
| Tool | Function |
|---|---|
quberi_search |
Retrieve document paragraphs you are authorized to read within your selected organization; can specify a space name to search only that space |
quberi_save |
Write titles and Markdown notes to the knowledge base; writes to the Personal Space if no space is specified (requires login containing knowledge:write since 0.3.0) |
quberi_upload_file |
Upload files from the workspace (requires login containing knowledge:upload since 0.4.0; requires your approval for every upload) |
quberi_list_spaces / quberi_list_documents |
Browse spaces and document lists |
quberi_search_images |
Find images by description and display them in the conversation |
Each scope is authorized independently: search requires knowledge:read, save requires knowledge:write, and upload requires knowledge:upload. If you logged in with an older version, you need to re-run the login to grant new scopes to support saving or uploading.
Slash Commands¶
| Command | Function |
|---|---|
/quberi login |
Open Quberi login in the browser; select organization and authorize. The first search will also trigger this; if you logged in with an old version and want to save/upload, you need to run it again |
/quberi status |
Display connection status (does not print the token) |
/quberi logout |
Revoke in Quberi and clear local login |
/quberi mode [text\|image\|both] |
View or set the search scope: document text only, images only, or both (default is both) |
Search Scope (text / image / both)¶
By default, quberi_search queries both text and relevant images: pure text retrieval cannot see images, so it includes potentially relevant images (as possible matches only, not as the sole answer). You can say “only look at documents” or “only look at images,” or fix it via /quberi mode; in text mode, the image tool will refuse. both relies on Quberi server-side support; outdated servers only search text, and the plugin side will not return images. This selection is valid until the Harness restarts; the default mode can be set via the searchMode configuration (see README Configuration).
Browsing and image search are available with existing search permissions; saving and uploading require a new login with the corresponding scopes.
Installation and Activation¶
An ai.quberi.com account or a self-hosted Quberi is required. The runtime environment requires Node >= 22 (see engines in package.json).
In the Harness, open Plugins → Add plugin and enter:
dsh-quberi
Or run in the terminal (replace desktop with your profile name):
dsh plugin --profile desktop add dsh-quberi
Then restart the Harness. To upgrade, remove the old version first and then add it:
dsh plugin --profile desktop remove dsh-quberi
dsh plugin --profile desktop add dsh-quberi
The plugin is relatively small. The README lists the main source files: oauth.ts, browser.ts, controller.ts, upload.ts, index.ts; it only depends on @deepseek-ai/schemastery at runtime. It is recommended to read the source code and license before installation; the plugin executes locally with your permissions.
Before Use: Organization-side Switches and Data Destination¶
The selected organization must allow external tools; this is disabled by default. Owners or administrators enable it in Admin console → Integrations → Outside tools; on the approval page, owners/admins can also click “Turn on”.
Paragraphs returned by search enter the Harness and the model used by the Harness; this path does not go through Quberi’s “pre-send check.” Every search is recorded in the organization audit log (tool name and returned documents, excluding the question and body text). Saving notes is also recorded in the audit (tool name and new document, excluding body text). When saving to a shared space, anyone who can read that space can search for the note, so the space must be chosen intentionally.
On remote shells without a graphical interface, the browser will not open automatically. The plugin will provide a link, which needs to be opened on another device to complete authorization.
Typical Usage¶
- After installing and restarting DSH, ask the Harness questions related to Quberi documents in the conversation; the first time will open the browser to complete OAuth, and subsequently, the model can invoke
quberi_search. - To fix the search to only documents or only images, run
/quberi mode textor/quberi mode image; to restore the default, use/quberi mode both. - To write conclusions into the knowledge base, agree in the conversation for the model to invoke
quberi_save(the README requires the model to propose first and wait for your agreement, but ultimately it depends on your approval and observation). - When uploading workspace files, after the model invokes
quberi_upload_file, you must approve the file according to the plugin flow before it is actually uploaded (see README “Uploading files”).
To disconnect, use /quberi logout in the Harness, or disconnect in Quberi Account → Connected tools.
Use Cases and Notes¶
Suitable for teams that have already deposited documents in Quberi and wish to perform person-based, document-based filtered retrieval in DSH conversations; it can also be used when needing to write conversation summaries back to the knowledge base or upload attachments with confirmation.
Notes:
- The DSH ecosystem is “everything is a plugin”; the community directory is an independent site (e.g., Plugin Directory Page) and has no official affiliation with DeepSeek / High-Flyer.
- The plugin runs locally and holds your OAuth permissions; please review the source code of the GitHub Repository before installing.
- When self-hosting Quberi, you need to configure server addresses and other items according to the README’s Configuration.
Conclusion¶
dsh-quberi connects Quberi’s document-level permissions and retrieval-time filtering to DSH, completing search, browsing, note-taking, and controlled uploads within conversations, rather than just doing “full-space RAG”. For installation details and configuration, see the repository README; for community entries, see the SkillHub Directory Page, and for source code and issue tracking, see https://github.com/quberi/dsh-quberi.