sunholo/motoko_ext_decision_framework
Prompt-patch extension that injects the four-decision ladder (extension-vs-script, modify-vs-create, publish-where, cascade-aware-self-publish) into motoko's system prompt CONDITIONALLY — only when ctx.task references extension authoring / publishing / motoko self-modification. Pure substring keyword check; no FS, no LLM call, no per-step cost beyond a strcmp. Saves ~700 tokens per step on irrelevant tasks. Canonical example of the context-aware extension pattern (hooks fire every step with full ExtCtx; cheap pure checks gate the patch). Companion to planned motoko-ext-precreate-lint and motoko-ext-publish-guard.
| Field | Value |
|---|---|
| Latest | 0.2.2 |
| Stability | experimental |
| Effects | Pure |
| Exports | 1 modules |
| Last Updated | 2026-05-17T19:59:51Z |
Exported Modules
- sunholo/motoko_ext_decision_framework/register
Dependencies
sunholo/motoko_ext_abiLoading version history from registry...