ggfgfgf-on/dsh-trajectory-anchor ↗★ 1
@dsh-ext/trajectory-anchor
提供首轮轨迹锚定与每步轨迹评分审计 适合需要限制首轮工具、精简上下文并审计智能体行为的安全任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ggfgfgf-on/dsh-trajectory-anchor说明文档
阅读完整 README ↗Configuration (21 keys, all optional)
Fresh install needs zero configuration; every key has a default and unknown keys are loudly warned and ignored.
| Key | Default | Meaning |
|---|---|---|
anchorEnabled | true | Enable first-round anchoring |
bootstrapTools | ['bash','str_replace_editor','pwsh'] | First-round tool allow-list (intersected with what the agent sees) |
bootstrapMaxTokens | null | Optional first-round maxTokens cap (null = no cap) |
bootstrapPersona | 'You are a helpful software engineer assistant.' | First-round persona |
gateEnabled | true | Promotion gate on (lexical anchor-gate) |
maxBootstrapSteps | 5 | Step-cap fallback for promotion |
suppressContextOnBootstrap | true | Suppress runtime context during bootstrap |
suppressSkillCatalog | true | Suppress the skill catalog during bootstrap |
suppressedSources | ['skill-catalog'] | Message-source kinds suppressed during bootstrap |
lexicon | built-in | Scoring dictionary (positive/negative/neutral buckets) |
lexiconPath | null | Optional JSON file to replace the dictionary |
pullbackEnabled | false | L1 informational pullback (measure first) |
pullbackMaxPerSession | 3 | L1 reminders per session |
pullbackControlRate | 0 | Fraction of triggers deliberately not spoken (control arm) |
reanchorOnConfirm | false | L2' confirm-reanchor |
reanchorConfirmControlRate | 0 | Control arm for L2' |
pullbackOutcomePath | null | Outcome JSONL path (default: audit dir) |
exportTrajectoryLogs | true | Write per-agent trajectory JSONL |
logDir | .dsh-trajectory-logs | Audit directory |
auditChunkEvents | 400 | Audit buffer threshold (events) |
auditChunkBytes | 262144 | Audit buffer threshold (bytes) |