dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xingyanghaifu/dsh-reqtrace
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Requirement-to-evidence audit for a DSH session: check what the agent claims against what it actually did, turn gaps into an explicit follow-up, and keep the evidence with the task.
Open the panel from the small document icon next to the permission dropdown, or
run /reqtrace in a session.
todo_write list every 2 seconds
and shows pending / in-progress / completed steps without a model call. The
list collapses when everything is done.npm test; it runs
through DSH's ops_bash tool and the result is stored with the ledger and
shown as ✓ / ×. Nothing runs automatically.Fix with evidence). The follow-up includes the original
task and the exact gaps.Continue this task is a separate, explicit action.spawn, isolated but slower and more expensive).The plugin does not edit files, approve tools, or change the session on its own. The only state it writes is its local ledger and the explicit follow-up/verify actions you trigger.
From GitHub:
dsh plugin --profile desktop add github:xingyanghaifu/dsh-reqtrace
From a local checkout:
dsh plugin --profile web add E:\dshwork\dsh-reqtrace
Requires DSH >=0.2.1-rc.1 <0.3.0 and Node.js ^22.19 or >=24.
需求对账 / Requirement Trace in the right sidebar.The panel is the primary UI; commands are optional:
/reqtrace audit the current session
/reqtrace history print recent task ledgers
/reqtrace resume list resumable tasks
/reqtrace resume <n> hand a historical checklist to the current agent
/reqtrace clear clear the current session ledger
/reqtrace clear all clear all saved ledgers
Settings → 需求对账:
| Setting | Default | Meaning |
|---|---|---|
| Auto-audit on turn end | off | Run an audit automatically after a task. Costs tokens. |
| Extract checklist at task start | off | Turn the user message into acceptance items. Costs tokens. |
| Strict mode | off | Steer the agent when a clear requirement is missing. |
| Minimum tool calls | 2 | Shorter tasks do not trigger the reminder. |
| Audit mode | direct | direct or subagent independent review. |
$DSH_HOME/reqtrace/ledgers.json.agentDefaultModel; token usage is
shown when the provider reports it.node --test test/*.test.mjs
33 tests cover evidence collection, prompt construction, JSON repair (including truncated reports and unescaped Windows paths), todo reading, subagent audit mode, config sanitization, command registration, strict steering, verification execution, and UI registration.
Clean-room checklist for DSH 0.2.1-rc.5:
dsh-reqtrace;/api/reqtrace.audit?sessionId=missing returns 404 session-not-found.spawn provider; if it is unavailable the
plugin falls back to a direct call.MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: audit。