openclaw-plugin-edicts 0.1.11 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
OpenClaw plugin for [Edicts](https://github.com/mssteuer/edicts) — ground truth for AI agents.
|
|
4
4
|
|
|
5
|
-
Automatically injects edicts into every agent session and exposes
|
|
5
|
+
Automatically injects edicts into every agent session and exposes tools so agents can read, create, and manage edicts at runtime.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ That's it. The plugin auto-creates `edicts.yaml` in your workspace on first run.
|
|
|
15
15
|
|
|
16
16
|
## What it does
|
|
17
17
|
|
|
18
|
-
- **Context injection** — Before every prompt,
|
|
18
|
+
- **Context injection** — Before every prompt, edicts are injected into the system context as a clearly separated block. Your agent always sees the ground truth.
|
|
19
19
|
- **Agent tools** — Seven tools registered automatically:
|
|
20
20
|
|
|
21
21
|
| Tool | Description |
|
|
@@ -28,6 +28,22 @@ That's it. The plugin auto-creates `edicts.yaml` in your workspace on first run.
|
|
|
28
28
|
| `edicts_stats` | Show store statistics (counts, token usage, budget) |
|
|
29
29
|
| `edicts_review` | Review and clean up stale/expired edicts |
|
|
30
30
|
|
|
31
|
+
## Injected format
|
|
32
|
+
|
|
33
|
+
The plugin renders edicts as compact, binding rules — category prefix and text only, no metadata noise:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
## EDICTS — BINDING STANDING INSTRUCTIONS
|
|
37
|
+
|
|
38
|
+
The following are standing instructions provided by the user for this workspace/session.
|
|
39
|
+
Treat them as binding operational rules unless explicitly overridden by the user.
|
|
40
|
+
|
|
41
|
+
- [product] Product v2.0 launches April 15, NOT before.
|
|
42
|
+
- [rules] NEVER mention Project X publicly.
|
|
43
|
+
|
|
44
|
+
## END EDICTS
|
|
45
|
+
```
|
|
46
|
+
|
|
31
47
|
## Configuration
|
|
32
48
|
|
|
33
49
|
The plugin works with zero configuration. To customize, add options to your `openclaw.json`:
|
|
@@ -36,11 +52,10 @@ The plugin works with zero configuration. To customize, add options to your `ope
|
|
|
36
52
|
{
|
|
37
53
|
"plugins": {
|
|
38
54
|
"entries": {
|
|
39
|
-
"edicts": {
|
|
55
|
+
"openclaw-plugin-edicts": {
|
|
40
56
|
"enabled": true,
|
|
41
57
|
"config": {
|
|
42
58
|
"path": "edicts.yaml",
|
|
43
|
-
"format": "yaml",
|
|
44
59
|
"autoInject": true,
|
|
45
60
|
"tokenBudget": 2000
|
|
46
61
|
}
|
|
@@ -53,34 +68,14 @@ The plugin works with zero configuration. To customize, add options to your `ope
|
|
|
53
68
|
| Option | Default | Description |
|
|
54
69
|
|--------|---------|-------------|
|
|
55
70
|
| `path` | `edicts.yaml` | Path to storage file (relative to workspace) |
|
|
56
|
-
| `format` |
|
|
71
|
+
| `format` | Auto-detected | Storage format (`yaml` or `json`) |
|
|
57
72
|
| `autoInject` | `true` | Inject edicts into system context on every session |
|
|
58
|
-
| `autoInjectFilter` | `all` | Which edicts to inject (v1: only `all`) |
|
|
59
73
|
| `tokenBudget` | `2000` | Max tokens for context injection |
|
|
60
74
|
|
|
61
|
-
## How edicts work
|
|
62
|
-
|
|
63
|
-
Edicts are small, verified facts your agent treats as non-negotiable:
|
|
64
|
-
|
|
65
|
-
```yaml
|
|
66
|
-
version: 1
|
|
67
|
-
edicts:
|
|
68
|
-
- text: "v2.0 launches April 15, 2026"
|
|
69
|
-
category: product
|
|
70
|
-
confidence: verified
|
|
71
|
-
ttl: event
|
|
72
|
-
- text: "Never mention Project X publicly"
|
|
73
|
-
category: compliance
|
|
74
|
-
confidence: verified
|
|
75
|
-
ttl: permanent
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Add them via the CLI, agent tools, or edit the YAML directly.
|
|
79
|
-
|
|
80
75
|
## Links
|
|
81
76
|
|
|
82
77
|
- [Edicts library](https://github.com/mssteuer/edicts) — standalone core (no OpenClaw dependency)
|
|
83
|
-
- [edicts.ai](https://
|
|
78
|
+
- [edicts.ai](https://edicts.ai) — docs and landing page
|
|
84
79
|
- [OpenClaw](https://openclaw.ai) — the agent platform
|
|
85
80
|
|
|
86
81
|
## License
|