dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
A DeepSeek Harness (DSH) community agent preset for institutional multi-factor stock selection (A-share oriented). It turns the broker/hedge-fund multi-factor pipeline into a discipline-aware researcher: a methodology knowledge base covering the full pipeline, plus a zero-dependency factor-statistics module.
Community project — NOT an official DeepSeek preset and not endorsed by DeepSeek. See Relationship with DeepSeek.
dsh-factor-investing (the directory name; must match [a-z0-9][a-z0-9-]*)A generic chat model reduces "multi-factor" to "sum a few factors" and treats "good backtest = valid factor". Institutional multi-factor is an industrial pipeline, and its real edge over retail practice is statistical discipline:
This preset writes that discipline into the system prompt via the persona, ships the methodology as a skill for on-demand loading, and makes the model interrogate methodology before concluding.
Three parts, all shipped with the repo:
agent.cordis.yml injects a quant-researcher identity through @deepseek-ai/dsh-persona, embedding the pipeline and core discipline.skills/factor-investing-pipeline/ is registered through @deepseek-ai/dsh-skill-filesystem's customSkillDirs; the model loads the relevant chapter with the skill tool.lib/factor-stats.mjs provides winsorization (MAD/3σ/percentile), standardization, neutralization, IC/ICIR, two-stage Fama-MacBeth, Gram-Schmidt orthogonalization; npm test covers it.The toolset keeps the full standard coding capability; only the identity and knowledge change, so the tool catalog — and thus the request-prefix cache — stays stable.
dsh-factor-investing/
├── preset.yml # display metadata (name + description)
├── agent.cordis.yml # Cordis composition: persona + tools + skill
├── skills/factor-investing-pipeline/
│ ├── SKILL.md # core framework + chapter/topic index
│ ├── chapters/ch00…ch09.md # ten pipeline stages
│ ├── glossary.md / patterns.md / cheatsheet.md
├── lib/factor-stats.mjs # zero-dependency factor statistics
├── test/factor-stats.test.mjs # node:test unit tests
├── package.json # npm test, type: module, zero runtime deps
├── README.md / README.zh-CN.md
├── LICENSE (MIT) / NOTICE
├── .gitignore
└── .github/workflows/test.yml # CI
DSH discovers local presets under <dshHome>/.agent-presets/ (dshHome defaults to ~/.dsh; %USERPROFILE%\.dsh on Windows). The preset id is the directory name, so clone the repo as that directory.
Linux / macOS:
mkdir -p ~/.dsh/.agent-presets
git clone https://github.com/Nzssm1/dsh-factor-investing.git \
~/.dsh/.agent-presets/dsh-factor-investing
Windows (PowerShell):
New-Item -ItemType Directory -Force "$env:USERPROFILE\.dsh\.agent-presets"
git clone https://github.com/Nzssm1/dsh-factor-investing.git `
"$env:USERPROFILE\.dsh\.agent-presets\dsh-factor-investing"
Restart DSH and pick 「多因子选股量化研究员」 for a new session. If your deployment configures custom preset roots, place the repo under that root instead (dsh-agent-presets roots).
factor-investing-pipeline should appear, or ask it to "load chapter ch04 of factor-investing-pipeline".npm test; all 15 cases should pass.standard's tools and only replaces the persona and registers the skill, so there is no bootstrap/full switching and the prefix cache stays stable.lib/factor-stats.mjs is a reference implementation for teaching, testing, and light recomputation; production backtests should use pandas/numpy or a proper quant framework, always with out-of-sample validation.preset.yml (display metadata) + agent.cordis.yml (Cordis composition) + @deepseek-ai/dsh-persona (persona) + @deepseek-ai/dsh-skill-filesystem customSkillDirs (preset-local skill).system-prompt/assemble listener. In the current version the system prompt comes from @deepseek-ai/dsh-persona, and "the catalog changes once" is satisfied by not changing it at all.LICENSE (currently Nzssm1); ③ whether your deployment sets custom preset roots (default ~/.dsh/.agent-presets/); ④ on a non-rc.6 deployment, field names for customSkillDirs / dsh-persona may differ — check that version's dsh-agent-presets / dsh-persona README.Nzssm1;agent.cordis.yml is adapted from the standard preset shipped with DeepSeek Harness (Copyright (c) 2026 DeepSeek, MIT) and the MIT notice is retained (see NOTICE); the methodology knowledge base is adapted from the author's own research report, whose cited broker research and 《因子投资:方法与实践》 remain the property of their respective authors/publishers.Zero dependencies, Node's built-in node:test:
npm test
Nzssm1/dsh-factor-investing on GitHub;main (commands below);dsh-plugin under Settings → Topics (this is how community directories and the topic page discover it);test.yml workflow passes in Actions;git init
git add .
git commit -m "feat: dsh-factor-investing preset"
git branch -M main
git remote add origin https://github.com/Nzssm1/dsh-factor-investing.git
git push -u origin main
Adding topics: repo page → right-side About gear → Topics → dsh-plugin (suggest also deepseek-harness, dsh, factor-investing, quant).
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。