Installation
Requirements
Section titled “Requirements”- Node.js ≥ 20
- TypeScript (recommended, but not required)
Install
Section titled “Install”npm install edictsyarn add edictspnpm add edictsGlobal install (recommended for CLI usage)
Section titled “Global install (recommended for CLI usage)”Install globally so edicts is available as a command everywhere:
npm install -g edictsOr if you’re developing locally:
npm linkCreate your first edicts file
Section titled “Create your first edicts file”The fastest way is with edicts init:
edicts init# Created ./edicts.yamlThis creates a starter edicts.yaml in the current directory. You can also specify a custom path:
edicts init --path ./config/edicts.yamlThe generated file looks like this:
version: 1config: maxEdicts: 200 tokenBudget: 4000 categories: []edicts: - id: e_001 text: "Replace this with your first edict" category: general confidence: verified source: manual ttl: durablehistory: []Edit the placeholder edict with your own ground truth, or add new ones with the CLI:
edicts add --text "v2.0 launches April 15" --category product --confidence verifiedVerify
Section titled “Verify”edicts listYou should see your edicts listed.
Using with OpenClaw
Section titled “Using with OpenClaw”If you’re using OpenClaw, it’s two commands:
openclaw plugins install openclaw-plugin-edictsopenclaw gateway restartThat’s it. The plugin auto-creates edicts.yaml in your workspace on first run — no manual setup needed. Start adding edicts right away:
edicts add --text "v2.0 launches April 15" --category product --confidence verifiedEvery agent session will automatically receive your edicts as ground truth.
Next steps
Section titled “Next steps”Head to the Quick Start to add edicts programmatically and render them into your agent’s prompt.