Dsh Plugin Hooks Ordering
xinyuehtx/dsh-plugin-hooks-ordering · skills
Deterministic before/after ordering for Cordis hooks whose participants are contributed by independent, mutually-unaware plugins — for both waterfall and serial dispatch, with an optional DeepSeek-Harness layer that controls real dsh hooks out of the box.
★ 2GitHub stars
0Forks
2026-08-25Last updated
TypeScriptLanguage
MITLicense
Key features
- Playground (live)— interactive, and runs a real Cordis context in your browser (real dispatch, real services), not a simulation.
- There is no before/after/stage declaration on ctx.on — only a boolean prepend, and prepend is last-prepender-wins, so it is not a stable "always first" either.
- Waterfall (HookOrdering) brackets the hook with a single prepended listener and exploits the onion model
- The plugin brackets each controlled hook with a single prepended listener
- The only robust ordering primitive Cordis offers is inject: if plugin B injects a service plugin A provides, B activates after A.
Install command
dsh plugin --profile web add github:xinyuehtx/dsh-plugin-hooks-ordering