@akalsey/openclaw-sapience 0.1.0 → 0.1.1
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 +7 -7
- package/dist/src/service.js +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,14 +6,14 @@ The suite has four plugins that each work independently and compose into a whole
|
|
|
6
6
|
|
|
7
7
|
| Plugin | Does |
|
|
8
8
|
|--------|------|
|
|
9
|
-
| `openclaw-
|
|
9
|
+
| `openclaw-thinking` | Periodic thinking passes; generates observations and proposals |
|
|
10
10
|
| `openclaw-sapience` *(this plugin)* | Routes proposals through autonomy tiers; calibrates to your preferences; delivers weekly digest |
|
|
11
11
|
| `openclaw-feedback` | Captures corrections and confirmations from chat; recalibrates autonomy profile |
|
|
12
12
|
| `openclaw-goals` | Accepts fuzzy long-running goals; decomposes them; tracks progress; weekly status |
|
|
13
13
|
|
|
14
14
|
## How it works
|
|
15
15
|
|
|
16
|
-
`openclaw-
|
|
16
|
+
`openclaw-thinking` runs a thinking pass every 15 minutes and writes proposals to `proposals.jsonl`. `openclaw-sapience` reads that sidecar, routes each proposal through an autonomy decision function, and delivers it to your main session at the right level:
|
|
17
17
|
|
|
18
18
|
- **Act** — high-confidence, reversible, low-blast-radius → done immediately, brief notification
|
|
19
19
|
- **Propose** — worth doing, needs your approval → surfaces it for a yes/no
|
|
@@ -27,15 +27,15 @@ The routing decision uses a calibration profile: per-domain, per-action-class en
|
|
|
27
27
|
|
|
28
28
|
### Prerequisites
|
|
29
29
|
|
|
30
|
-
Install `openclaw-
|
|
30
|
+
Install `openclaw-thinking` first. Sapience reads its output.
|
|
31
31
|
|
|
32
32
|
### Install order
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
openclaw plugins install
|
|
36
|
-
openclaw plugins install
|
|
37
|
-
openclaw plugins install
|
|
38
|
-
openclaw plugins install
|
|
35
|
+
openclaw plugins install npm:@akalsey/openclaw-thinking
|
|
36
|
+
openclaw plugins install npm:@akalsey/openclaw-sapience
|
|
37
|
+
openclaw plugins install npm:@akalsey/openclaw-feedback # optional
|
|
38
|
+
openclaw plugins install npm:@akalsey/openclaw-goals # optional
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Configuration (sapience)
|
package/dist/src/service.js
CHANGED
|
@@ -33,13 +33,13 @@ function mergeConfig(raw, workspaceDir) {
|
|
|
33
33
|
export default definePluginEntry({
|
|
34
34
|
id: "sapience",
|
|
35
35
|
name: "Sapience",
|
|
36
|
-
description: "Autonomy layer: routes
|
|
36
|
+
description: "Autonomy layer: routes sapience-thinking proposals through tier function, calibrates to human preferences, delivers weekly digest",
|
|
37
37
|
register(api) {
|
|
38
38
|
const workspaceDir = api.runtime.agent.resolveAgentWorkspaceDir(api.pluginConfig);
|
|
39
39
|
const config = mergeConfig(api.pluginConfig, workspaceDir);
|
|
40
40
|
api.registerTool({
|
|
41
41
|
name: "process_proposals",
|
|
42
|
-
description: "Process new proposals from the
|
|
42
|
+
description: "Process new proposals from the sapience-thinking log and route them through the autonomy tier function. Called by the sapience cron.",
|
|
43
43
|
parameters: {},
|
|
44
44
|
async execute(_id, _params) {
|
|
45
45
|
if (!isWithinActiveHours(config)) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sapience",
|
|
3
3
|
"name": "Sapience",
|
|
4
4
|
"version": "0.1.0",
|
|
5
|
-
"description": "Autonomy layer: routes
|
|
5
|
+
"description": "Autonomy layer: routes sapience-thinking proposals through tier function, calibrates to human preferences, delivers weekly digest",
|
|
6
6
|
"contracts": {
|
|
7
7
|
"tools": ["process_proposals"]
|
|
8
8
|
},
|