@fly3366/deepjit
DeepJIT: JIT-compile repeated agent workflows into skills and flow templates for deepseek-harness (dsh)
AI 分析
适合需要将高频重复的 Agent 步骤自动化为技能的进阶用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fly3366/DeepJITドキュメント
README 全文を読む ↗Configuration
Override in cordis.patch.yml or a profile patch. Key options (full list in
src/config.ts):
| Key | Default | Description |
|---|---|---|
enabled | true | master switch |
summarizeIntervalMs | 600000 | JIT cycle (mine + compile) |
minRepeat | 3 | min occurrences for a hot sequence |
argumentAware | false | include sorted arg-key signatures in mined sequences |
compileCandidates | 1 | best-of-N candidates per compile; higher = better quality, more LLM calls |
minFlowSteps | 2 | min tool steps a flow must have to be compiled |
minPatternValue | 6 | min value score (count × steps) to justify a compile |
flushBatchSize | 200 | trace rows per batched SQLite write |
maxPendingCalls | 10000 | cap for in-memory pending/raw maps (bounds memory) |
minerMaxRows | 20000 | max trace rows read per session per mining cycle |
transcriptMaxRows | 2000 | max tool rows read per compile transcript |
gcEnabled / gcStaleMs / gcProtectMs | true / 14d / 1d | GC: disable artifacts unused beyond gcStaleMs after a gcProtectMs grace |
dryRun | false | publish artifacts as disabled; enable manually via deepjit_status |
traceRetentionMs / patternRetentionMs | 7d / 7d | prune trace rows / stale uncompiled patterns older than this |
deoptMinUses / deoptMaxSuccessRate | 5 / 0.5 | disable a flow used ≥N times with success rate ≤ this (deoptimization) |
qualityMinUses / minQuality | 5 / 0 | disable active artifacts used ≥N times whose quality score < minQuality (0 = off) |
promoteMinUses / promoteMinSuccessRate | 5 / 0.8 | recompile a hot, reliable skill's pattern as a flow (promotion) |
llmProvider / llmModel | deepseek-official / (session) | compile model; empty = reuse session model |
locale | auto | en / zh / auto (dsh locale → LANG → English) |
Sensitive: no keys are stored. The compile call uses dsh's credential service
or the launching environment's DEEPSEEK_API_KEY.