Skip to content

OpenClaw Integration

Edicts has a standalone OpenClaw plugin (openclaw-plugin-edicts) that automatically injects edicts into every prompt and exposes management tools for agents.

Terminal window
openclaw plugins install openclaw-plugin-edicts
openclaw gateway restart

The plugin auto-creates an edicts.yaml file in your workspace if one doesn’t exist.

The plugin hooks into two OpenClaw extension points:

Before every LLM call — main chat, cron agents, sub-agents, all session types — the plugin injects your edicts into the system prompt as a clearly separated block:

## EDICTS — BINDING STANDING INSTRUCTIONS
The following are standing instructions provided by the user for this workspace/session.
Treat them as binding operational rules unless explicitly overridden by the user.
These edicts complement the system and developer instructions. If there is a conflict,
follow higher-priority instructions first, then these edicts.
- [product] Product v2.0 launches April 15, NOT before.
- [rules] NEVER mention Project X publicly.
## END EDICTS

Only the category prefix and rule text are injected — no tags, confidence levels, or metadata. This keeps the prompt compact and high-salience.

The plugin registers 7 tools that let agents manage edicts at runtime:

ToolDescription
edicts_listList all active edicts with optional category/tag/confidence filters
edicts_getGet a single edict by ID
edicts_addAdd a new edict (with text, category, confidence, TTL, etc.)
edicts_updateUpdate an existing edict by ID
edicts_removeRemove an edict by ID
edicts_searchSearch edicts by text query
edicts_statsGet store statistics (counts, token usage, breakdowns)

The plugin works with zero configuration. To customize, add config in your openclaw.json:

{
"plugins": {
"entries": {
"openclaw-plugin-edicts": {
"enabled": true,
"config": {
"path": "edicts.yaml",
"autoInject": true,
"tokenBudget": 2000
}
}
}
}
}
PropertyTypeDefaultDescription
pathstring'edicts.yaml'Path to edicts file (relative to workspace)
format'yaml' | 'json'Auto-detectedStorage format
autoInjectbooleantrueInject edicts into every prompt
tokenBudgetnumber2000Max tokens for injected edicts