Skip to main content

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.

FieldValue
Latest0.2.2
Stabilityexperimental
EffectsPure
Exports1 modules
Last Updated2026-05-17T19:59:51Z
Exported Modules
  • sunholo/motoko_ext_decision_framework/register

Loading version history from registry...