Repository navigation
Plugin : 兰台 (dsh-lantai) — skill manager #10391
Erdoschn
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Skills that reach every future session must earn their place.
能进入每一个未来 session 的技能,必须先证明自己配得上。
Every new session starts from zero. You spend half an hour debugging a machine-specific trap — a path that only exists on this box, a tool that silently truncates, a flag whose meaning changed between versions — you solve it, and the next session pays the same cost again. Humans write this into a README; agents don't. 兰台 (dsh-lantai) is a DSH plugin that turns one session's hard-won experience into a skill that later sessions start with — but only if it survives a gate. (兰台 is the Han-dynasty imperial archive: where records were kept, and where they were checked.) It ships five tools, named after archive work:
skill_distill(submit),skill_catalog(index),skill_audit(inspect),skill_attest(seal),skill_retire(retire).每个新 session 都从零开始。你花半小时调一个机器特定的坑——一个只在这台机器上存在的路径、一个会静默截断的工具、一个在版本之间改了含义的 flag——你解决了,下一个 session 再付一遍同样的代价。人类会把它写进 README;agent 不会。兰台 (dsh-lantai) 是一个 DSH 插件,把一次 session 里好不容易得来的经验变成后续 session 开局就带着的技能——但前提是它能过一道门。(兰台是汉代皇家档案馆:档案存放之处,也是档案被核验之处。)它提供五个工具,名字都取自档案工作:
skill_distill(录)、skill_catalog(索)、skill_audit(校)、skill_attest(勘)、skill_retire(削)。The problem. Every new session starts from zero. The cost of a solved trap is paid once by you and again by every session after you, unless something carries it forward.
问题。 每个新 session 都从零开始。一个被解决的坑,你付一次代价,你之后的每一个 session 再付一次——除非有什么东西把它带过去。
Why another "agent memory" thing. Most optimize for remembering more. I went the other way: a skill is injected into every future matching session, so a stale or wrong one isn't just useless — it's a permanent tax. So the interesting part is what gets rejected:
replace: trueand config permission, with the old file backed up as.bak为什么还要再来一个“agent memory”。 大多数同类项目优化的是“记得更多”。我走了反方向:一个技能会被注入到每一个未来匹配的 session,所以一个过时或错误的技能不只是没用,而是一笔永久的税。所以真正有意思的地方是什么会被拒绝:
replace: true且配置允许,旧文件自动备份.bakOne honest caveat. 兰台 is a convenience and quality layer, not a security boundary. It runs inside the harness process, so it cannot stop an agent from writing to
~/.dsh/skillsvia shell. What it does is make the gate the default path, leave a trace on every write, and turn deletion into archiving. Real enforcement lives elsewhere: token scopes, GitHub rulesets, DSH sandbox and approvals.兰台是便捷层和质量管理,不是安全边界。它跑在 harness 进程里,拦不住 agent 用 shell 直接写
~/.dsh/skills。它能做的是让走闸门成为默认路径、让每次写入留痕、让销毁变成归档。真正的强制在别处:token 的 scope、GitHub 的 rulesets、DSH 的沙箱与审批。Removal is an archive, never a delete: it shows a confirmation card first, and only after consent moves the bundle to
skills.retired/and records why inRETIRED.md.移除是归档,从不删除:先出示确认卡片,同意后才把 bundle 移到
skills.retired/,并在RETIRED.md里记录原因。dsh plugin install dsh-lantaiIf you're building something similar — or think the gate is too strict or too loose — I'd like to hear it.
如果你也在做类似的东西,或者觉得这道门太严/太松,欢迎聊聊。
All reactions