ggfgfgf-on/dsh-trajectory-anchor ↗★ 1

@dsh-ext/trajectory-anchor

提供首轮轨迹锚定与每步轨迹评分审计 适合需要限制首轮工具、精简上下文并审计智能体行为的安全任务。

套件
@dsh-ext/trajectory-anchor
相容性
待驗證
Cordis 依賴範圍
*
版本
0.5.2
授權
MIT
最近更新
2026年10月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ggfgfgf-on/dsh-trajectory-anchor

Configuration (21 keys, all optional)

Fresh install needs zero configuration; every key has a default and unknown keys are loudly warned and ignored.

KeyDefaultMeaning
anchorEnabledtrueEnable first-round anchoring
bootstrapTools['bash','str_replace_editor','pwsh']First-round tool allow-list (intersected with what the agent sees)
bootstrapMaxTokensnullOptional first-round maxTokens cap (null = no cap)
bootstrapPersona'You are a helpful software engineer assistant.'First-round persona
gateEnabledtruePromotion gate on (lexical anchor-gate)
maxBootstrapSteps5Step-cap fallback for promotion
suppressContextOnBootstraptrueSuppress runtime context during bootstrap
suppressSkillCatalogtrueSuppress the skill catalog during bootstrap
suppressedSources['skill-catalog']Message-source kinds suppressed during bootstrap
lexiconbuilt-inScoring dictionary (positive/negative/neutral buckets)
lexiconPathnullOptional JSON file to replace the dictionary
pullbackEnabledfalseL1 informational pullback (measure first)
pullbackMaxPerSession3L1 reminders per session
pullbackControlRate0Fraction of triggers deliberately not spoken (control arm)
reanchorOnConfirmfalseL2' confirm-reanchor
reanchorConfirmControlRate0Control arm for L2'
pullbackOutcomePathnullOutcome JSONL path (default: audit dir)
exportTrajectoryLogstrueWrite per-agent trajectory JSONL
logDir.dsh-trajectory-logsAudit directory
auditChunkEvents400Audit buffer threshold (events)
auditChunkBytes262144Audit buffer threshold (bytes)