deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
A self-contained quant research workspace for DeepSeek Harness. It ships a Python engine inside the package — fetch Yahoo Finance daily data, backtest rule-based strategies, and generate interactive visual reports, all from chat.
⚠️ Not investment advice. The workspace surfaces rule state and evidence; decisions are always yours. It never places orders and never changes positions.
web profile) with pnpm.uv (runs the bundled Python engine; first use syncs python/.venv).Installation status: not yet published to npm. Until then, install from the git spec (
dsh plugin --profile web add github:AllenCX/dsh-quant-workspace) or use the dev overlay below.
dsh plugin --profile web add dsh-quant-workspace
All configuration is optional. Example user patch ($DSH_HOME/profiles/web/cordis.patch.yml):
- id: quant-workspace
config:
ledgerPath: 'C:\path\to\trade_log.csv' # optional: track your real positions
reportsDir: 'C:\path\to\reports' # optional: where visual reports go
| Option | Default | Meaning |
|---|---|---|
ledgerPath |
(none) | Position ledger CSV (date,ticker,action,price; FIFO). Positions are only tracked from this file. |
reportsDir |
$DSH_HOME/dsh-quant-workspace/reports |
Directory for visual report artifacts (HTML charts) and state exports. |
registryPath |
$DSH_HOME/dsh-quant-workspace/strategies.json |
Strategy registry JSON file. |
defaultRule |
(none) | Default rule family used when a call does not specify one. |
timeoutMs |
180000 |
Foreground timeout per tool call. |
pythonCommand |
uv run --project <package>/python dsh-quant |
Override for running the bundled engine CLI (e.g. a pre-built venv). |
pnpm dsh web --patch ./dev.patch.yml
In a Harness session:
single_ticker, mode daily.single_ticker, mode backtest, chart: true.single_ticker, mode review.A call runs exactly one rule: an example rule family, a registered strategy id, or the
configured defaultRule when neither is given. Without any of these, the workspace reports
that no strategy is selected.
single_tickerticker (required) — symbol, e.g. TSLA. Uppercased automatically; only letters, digits, dot and dash.mode (default daily) — daily signal card · backtest with per-trade table · review health check.rule — an example rule family (currently bollinger_mean_reversion).strategy — id of a strategy in the workspace registry.chart (default false) — also write an interactive HTML report and the state CSV under reportsDir;
the artifact paths are included in the output.After research, save a strategy and reuse it by id:
dsh-quant strategy register --id tsla_dip --family bollinger_mean_reversion --bollinger-window 30 --note 'dip strategy after Aug-2026 research'
dsh-quant strategy list
dsh-quant strategy remove --id tsla_dip
The bundled engine ships one example rule so the workspace works out of the box: Bollinger
mean-reversion on daily bars — enter when %B <= 0, exit when %B >= 1 (Bollinger 20, 2σ,
same-bar close fills, no transaction costs in v1). Rule parameters are CLI options, and more
rule families (MA cross, Donchian, RSI, trend filters) are on the roadmap.
dsh-quant single-ticker --ticker <T> --mode <daily|backtest|review> (--rule <family> | --strategy <id>) [--ledger <path>] [--chart <dir>] [--export-state <dir>] [--registry <path>] [--data-file <csv>]
dsh-quant strategy register|list|remove [options]
--data-file reads a local OHLCV CSV instead of the network (used by the tests).pnpm install && pnpm run typecheck && pnpm run test && pnpm run build # TS shell
cd python && uv run --project . pytest tests -q # bundled engine
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。