rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:explorrrr/dsh-ollama-web
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Ollama Cloud web search and optional web fetch provider for DeepSeek Harness (DSH), with a Web UI settings card. One npm package provides both the host backend and the browser card. Search uses Ollama; web_fetch stays on DSH's built-in HTTP provider unless you explicitly enable the optional Ollama fetch provider.
https://ollama.com/api/web_searchhttps://ollama.com/api/web_fetch; off by defaultOLLAMA_API_KEYweb_fetch remains the credential-free DSH HTTP provider>=0.2.1-rc.1 <0.3.0), tested on this versionOne package provides the web_search backend, the optional fetch provider and the settings card. Install it once.
Add the package.
dsh plugin --profile desktop add dsh-ollama-web@2.5.2
Replace desktop with your profile name if needed. You can also use Plugins -> Add plugin in the Web UI. npm: dsh-ollama-web
Activate the provider in the settings card (recommended), or pin it manually.
Open Plugins -> dsh-ollama-web -> ollama-web -> Configure and turn on
Use Ollama for web search. The card writes web.searchProvider for you;
no profile patch is needed.
For a manual pin, add both fields to
~/.dsh/profiles/<profile>/cordis.patch.yml:
- id: web
config:
searchProvider: ollama
fetchProvider: http
# Only if the built-in DeepSeek search provider is mounted.
- id: web-search-deepseek
disabled: true
fetchProvider: http keeps web_fetch on DSH's built-in HTTP provider. A
web entry replaces the whole row config, so keep both fields when you edit
it. The card shows which provider is currently effective even when Ollama is
not selected.
To use Ollama for web_fetch, turn on Use Ollama for web fetch in the card.
The card writes enableFetchProvider: true and web.fetchProvider: ollama
together, so the provider is registered and pinned in one save.
For a manual pin, both entries are required:
- id: web
config:
searchProvider: ollama
fetchProvider: ollama
- id: ollama-web
config:
enableFetchProvider: true
web replaces its whole config, so keep searchProvider: ollama when you
change fetchProvider. With only enableFetchProvider: true, web_fetch
reports WEB_PROVIDER_AMBIGUOUS when both the HTTP and Ollama fetch providers
are usable. With only fetchProvider: ollama, it reports
WEB_PROVIDER_CONFIGURED_UNAVAILABLE because the Ollama provider is disabled.
The settings card handles both fields together; these warnings apply when you
edit the profile patch by hand.
Ollama does not expose the target page's HTTP status or final redirect URL. A successful Ollama fetch is reported to DSH as HTTP 200 for the requested URL; title, main content and links are folded into the text result. Keep fetchProvider: http when target status fidelity or DSH's local SSRF boundary matters.
web settings namespace, not cordis.patch.yml. The
profile patch remains the deployment default; remove an - id: web entry if
you want the card to own the selection.searchProvider: ollama, the card shows the search
switch as pinned and disabled. Remove that patch line to manage it from the
card. The fetch switch can still override a pinned fetch provider with the
built-in HTTP provider.web selection. Use one
surface at a time; a conflicting save is refused and the card keeps your
draft.DSH_WEB_SEARCH_PROVIDER / DSH_WEB_FETCH_PROVIDER environment variables
override the saved selection at runtime. The card cannot see those
environment variables, so its status reflects the saved web config.2.0.0 merges the former dsh-ollama-web-client package into dsh-ollama-web. Remove the old package before installing 2.5.2:
dsh plugin --profile <profile> remove dsh-ollama-web-client
dsh plugin --profile <profile> add dsh-ollama-web@2.5.2
The 1.x updater checks both old packages and only auto-installs the current major. Because 2.0.0 is not published as a new dsh-ollama-web-client, it will not move you to 2.0.0; the upgrade is manual. In the desktop app, remove the dsh-ollama-web-client bundle in Plugins, then install dsh-ollama-web@2.5.2. Leaving the old client installed can register the settings card twice and is not supported.
Enter it in the settings card (Plugins -> dsh-ollama-web -> ollama-web -> Configure), or set OLLAMA_API_KEY in the environment that launches DSH. The card is write-only: leaving the key blank keeps the current key, and a saved key is never shown again.
| Field | Default | Constraint |
|---|---|---|
baseURL |
https://ollama.com |
HTTPS only; no userinfo/query/fragment |
apiKeyEnv |
OLLAMA_API_KEY |
^OLLAMA_[A-Za-z0-9_]+$ |
searchPath |
/api/web_search |
Absolute path under the baseURL path, same origin |
maxResults |
5 |
1-10 |
snippetMax |
2000 |
1-10000 characters |
maxQueryChars |
2048 |
1-8192 characters |
searchTimeoutMs |
30000 |
1000-120000 ms |
maxResponseBytes |
2097152 |
65536-10485760 bytes |
fetchPath |
/api/web_fetch |
Absolute path under the baseURL path, same origin |
fetchTimeoutMs |
30000 |
1000-120000 ms |
fetchMaxChars |
100000 |
1-200000 characters |
enableFetchProvider |
false |
Live boolean; the card writes it together with web.fetchProvider |
apiKey |
unset | Secret; prefer the card or OLLAMA_API_KEY |
apiKeyEnv accepts only OLLAMA_* names. Other environment variables and credential references are rejected before a request is made.
Ask the model to search, then check that results come from Ollama. The search request body contains only the query and max_results; the API key is sent in the Authorization: Bearer header. The default endpoint is https://ollama.com/api/web_search.
When the optional fetch provider is enabled and pinned, web_fetch sends only { "url": "..." } to https://ollama.com/api/web_fetch with the same Bearer key. Ollama returns title, main-content content and links; this plugin folds them into a text result and caps it at fetchMaxChars. The request URL is returned as the result URL and the status is always 200 on success, because Ollama does not expose the target status or final redirect URL.
dsh-ollama-web is installed and its bundle is enabled.dsh-ollama-web and the row is ollama-web (the card key is dsh-ollama-web#ollama-web).Plugins -> dsh-ollama-web -> Configure (or the bundle detail page) shows an Updates section. As of 2.2.0, the bundle detail page also shows the support card. Opening this screen performs a fresh check when the last successful check is older than five minutes; Check for updates always checks immediately. Use Check for updates / Install update, then restart DSH (quit and reopen the desktop app) to load the new version.
minimumReleaseAge only when it is explicitly set. Unset, unreadable, invalid or 0 means no age wait. A release newer than a configured age is shown as waiting instead of being installed.engines.dsh with the running DSH version (DSH_CLIENT_VERSION or DSH_APP_VERSION). A known-incompatible release is blocked; if compatibility cannot be verified, auto-update pauses while the manual Install button remains available.package.json pin to the new version.pnpm-lock.yaml. If the lockfile still records the old version, the card and the host log report it. Run pnpm install --lockfile-only in the profile (or reinstall through Plugins) to refresh it. Until then a normal pnpm install resolves the new version, and --frozen-lockfile fails instead of silently installing the old one.link: or external-directory development install is never modified. DSH 0.2.1 has no third-party update API, so the updater replaces installed files directly.See docs/UPDATES.md for details.
http(s) result URLs.ollama.com by default. Updates contact the npm registry (fallback: npmmirror) only on explicit action, while auto-update is enabled, or when the update screen opens after five minutes without a successful check, and send only the package name. Changing baseURL changes where the key, queries and fetch URLs go.dsh-ollama-web dependency value in the profile package.json. It does not run npm/pnpm and does not rewrite pnpm-lock.yaml.innerHTML / dangerouslySetInnerHTML.If dsh-ollama-web saves you time, you can support its development with a coffee at Buy Me a Coffee. You can also use the GitHub Sponsor button. Donations are optional and do not unlock features or change the license.
The support links in the settings card and on the bundle detail page make no request to Buy Me a Coffee until you click them. The plugin does not read or store donation information.
pnpm install
pnpm verify
pnpm verify runs typecheck, build, test and check. To run them individually, use pnpm typecheck, pnpm build, pnpm test and pnpm check.
The host tests use mocked fetch; search and fetch e2e tests are opt-in with OLLAMA_API_KEY. The client tests load the browser bundle in a VM with fake React/primitives.
MIT. See LICENSE. Not affiliated with Ollama or DeepSeek. Ollama is a trademark of its owner.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ollama、deepseek-harness。