mirage
strukto-ai
The World's First Unified Virtual Filesystem For AI Agents
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:lukethecat/dsh-plugin-warroom-garak
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that adds one model-facing tool, garak_scan — an authorized
garak baseline red-team sweep against a target LLM endpoint,
with a built-in authorization gate, a budget cap, and an auto-written evidence report.
Part of the war-room approach: garak owns the probes (the "weapons"); this plugin is the orchestrator that runs them against an authorized target, keeps the run in the dsh session log (auditable/replayable), and produces a compliance-ready evidence artifact.
v0 / developer preview. Built against
@deepseek-ai/dsh-*0.1.0-rc.xand modeled on the officialdsh-tool-webplugin. Two seams are version-sensitive and may need a small fix on first build in your environment — both are commented in the source:
defineToolparameter/output schema DSL (src/index.ts)- garak report JSONL field names / hit detection (
src/garak.ts)
authorization.authorized === true with a non-empty scope.maxGenerations (budget / circuit-breaker).pipx install garak or pip install garak; verify garak --version).# pin dsh-* deps to your installed dsh version first: npm ls @deepseek-ai/dsh-tools
npm install
npm run build # tsdown -> lib/
Add the plugin as an entry in your dsh profile / cordis config (the composition file that lists plugins), then restart dsh:
# in your dsh profile's cordis config (e.g. cordis.patch.yml / cordis.yml)
- name: 'dsh-plugin-warroom-garak'
config:
garakBin: 'garak' # 'garak' (CLI on PATH), an absolute path to the garak console
# script (pipx/pip install), or 'python' to use `python -m garak`
maxGenerations: 5
reportDir: '.warroom/reports'
Confirm it mounted: dsh --profile <yours> --dump-config should list the entry, and the agent
should now have a garak_scan tool.
{
"target_id": "staging-chatbot",
"authorization": { "authorized": true, "scope": "staging API only, 2026-08", "authorized_by": "jaco" },
"rest_config": {
"rest": {
"RestGenerator": {
"uri": "http://127.0.0.1:8080/v1/chat/completions",
"method": "post",
"headers": { "Authorization": "Bearer $TOKEN", "Content-Type": "application/json" },
"req_template_json_object": { "model": "target", "messages": [{ "role": "user", "content": "$INPUT" }] },
"response_json": true,
"response_json_field": "$.choices[0].message.content"
}
}
},
"probes": ["promptinject", "dan"],
"generations": 3
}
The evidence report lands under reportDir. The raw garak report path is embedded for full reproduction.
MIT. Wraps garak (Apache-2.0); built on DeepSeek Harness / Cordis (MIT).
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: ai-security。