@agenr/openclaw-plugin 0.13.0 → 0.13.2
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/CHANGELOG.md +56 -0
- package/README.md +10 -10
- package/dist/index.js +23436 -21526
- package/package.json +4 -5
- package/skills/skills/SKILL.md +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.13.2] - 2026-03-23
|
|
4
|
+
|
|
5
|
+
### Surgeon
|
|
6
|
+
|
|
7
|
+
- **Continuation loop prevents early exit.** If the surgeon model stops without calling `complete_pass` and has >10% budget remaining, a continuation prompt is injected to push it back to work. Up to 3 nudges before allowing exit. Eliminates the "surgeon quits at 1% budget" problem.
|
|
8
|
+
- **Lowered default dedup similarity threshold from 0.82 to 0.60.** The threshold controls candidate surfacing, not merge execution — the surgeon agent still makes every merge decision. Lower threshold surfaces more candidates for review on large corpora.
|
|
9
|
+
- **`reset` parameter for `query_dedup_clusters` and `query_contradiction_candidates`.** Query parameters are no longer permanently frozen after the first call. Pass `reset: true` to clear cached clusters and rebuild at a new threshold. Lets the surgeon start wide and narrow if noisy.
|
|
10
|
+
- **Strengthened auto sweep prompts.** Contradictions phase always runs proactive scan (no more skipping when pending conflicts = 0). Budget discipline section added — surgeon must keep working while budget remains. Retirement throughput expectations: 500+ candidates on a 3K corpus, not 100.
|
|
11
|
+
- **Dedup threshold guidance in prompts.** Surgeon is told the default is deliberately low, and can raise it via reset if too noisy.
|
|
12
|
+
|
|
13
|
+
## [0.13.1] - 2026-03-23
|
|
14
|
+
|
|
15
|
+
### MCP Server
|
|
16
|
+
|
|
17
|
+
- **`agenr_store` tool added to MCP surface.** MCP consumers (Claude Desktop/Cowork, Claude Code, etc.) can now make structured memory writes with explicit type, subject, importance, expiry, tags, project, and scope — matching the fidelity of OpenClaw's store tool.
|
|
18
|
+
- **Enriched tool descriptions with embedded doctrine.** All 5 MCP tool descriptions (`agenr_recall`, `agenr_store`, `agenr_extract`, `agenr_retire`, `agenr_update`) now carry usage guidance directly in their metadata — when to recall, query tips, importance calibration, lifetime selection, what to store vs. not store. MCP consumers no longer need external instruction files to use memory well.
|
|
19
|
+
- **Fixed `scope` persistence bug.** Manual store writes were not persisting the `scope` field due to a missing column in the insert path. Fixed in the shared store persistence layer.
|
|
20
|
+
|
|
21
|
+
### Surgeon
|
|
22
|
+
|
|
23
|
+
- **Proactive contradiction discovery.** Surgeon can now discover contradictions proactively during sweeps, rather than only resolving pre-flagged conflicts.
|
|
24
|
+
- **Supersession scan.** New surgeon pass identifies entries that have been superseded by newer, more complete information.
|
|
25
|
+
- **Contradictions pass and auto sweep.** Combined contradictions + auto multi-pass mode where a single agent loop has all tools from all passes registered simultaneously.
|
|
26
|
+
- **Dedup pass.** Dedicated surgeon dedup pass for identifying and merging near-duplicate entries.
|
|
27
|
+
- **Graceful abort.** Surgeon now handles abort signals gracefully and removes artificial loop caps.
|
|
28
|
+
- **Paginated retirement.** Retirement pass now paginates to handle large corpora without memory pressure.
|
|
29
|
+
- **Inspect provenance.** New surgeon tool for inspecting entry provenance chains.
|
|
30
|
+
- **Prompt loading fix.** Fixed surgeon prompt loading for bundled distribution.
|
|
31
|
+
|
|
32
|
+
### Infrastructure
|
|
33
|
+
|
|
34
|
+
- **Removed `agenr maintain` and `agenr consolidate` commands.** Surgeon is now the sole corpus-health entry point. Replace any cron jobs or scripts with `agenr surgeon run`.
|
|
35
|
+
- **Watcher interval floor.** Enforced minimum watcher polling interval to prevent excessive resource usage.
|
|
36
|
+
- **Default model migration.** Migrated defaults to gpt-5.4 models.
|
|
37
|
+
- **Surgeon workflow limits and budget defaults.** Increased defaults for production workloads.
|
|
38
|
+
|
|
39
|
+
## [0.13.0] - 2026-03-22
|
|
40
|
+
|
|
41
|
+
### Architecture
|
|
42
|
+
|
|
43
|
+
- **Hexagonal architecture restructure.** Complete reorganization of the codebase into a modular monolith with hexagonal (ports & adapters) architecture. `src/` now has four top-level directories: `modules/`, `shared/`, `edge/`, and `runtime/`.
|
|
44
|
+
- **Five bounded context modules.** `recall`, `store`, `ingestion`, `surgeon`, and `eval` — each with `domain/`, `application/`, `ports/`, and `adapters/` layers.
|
|
45
|
+
- **OpenClaw plugin as edge adapter.** Moved to `src/edge/openclaw/` with internal hex layering (`domain/`, `application/`, `adapters/`), alongside CLI, MCP, and watch edge adapters.
|
|
46
|
+
- **Eliminated `src/memory/`.** The awkward middle layer between app and db is gone. Recall orchestration moved to the recall module; store pipeline moved to the store module.
|
|
47
|
+
- **Eliminated `src/domain/`, `src/app/`, `src/prompts/`, `src/adapters/`.** Each module now owns its own domain logic, application workflows, and prompt templates.
|
|
48
|
+
- **Runtime consolidation.** Collapsed 31 `*-defaults.ts` wiring files into 8 focused composition roots — one per module plus shared infrastructure.
|
|
49
|
+
- **Module boundary tests.** New architecture boundary tests enforce: domain purity, no cross-module internal imports, ports-only cross-module communication.
|
|
50
|
+
- **Operations owner matrix.** DB utility workflows assigned to owning modules or shared operations (`context/` → recall, `classify-entries/` → store, `clusters/` → surgeon, `watcher-report/` and `session-store-metrics/` → `src/shared/operations/`). Only genuinely cross-module admin tooling remains in `src/shared/operations/`.
|
|
51
|
+
- **App-boundary allowlist dropped to zero.** All previously allowlisted cross-layer imports are now legitimate within-module imports or port-mediated cross-module calls.
|
|
52
|
+
|
|
53
|
+
### Corpus Health
|
|
54
|
+
|
|
55
|
+
- **Surgeon is now the sole corpus-health entry point.** Removed `agenr maintain` and standalone `agenr consolidate`. `agenr surgeon run` now owns deterministic cleanup, quality evolution, vector integrity checks, retirement, dedup/merge, and contradiction resolution.
|
|
56
|
+
- **Maintenance and consolidation internals absorbed into surgeon.** Deterministic pre/post steps now run inside surgeon workflows, and clustering/merge infrastructure moved under `src/modules/surgeon/application/clustering/`.
|
|
57
|
+
- **Migration note.** Replace any cron jobs or scripts invoking `agenr maintain` or `agenr consolidate` with `agenr surgeon run`.
|
|
58
|
+
|
|
3
59
|
## [0.12.3] - 2026-03-22
|
|
4
60
|
|
|
5
61
|
### Fixed
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ That's it. The interactive wizard handles everything: auth setup, platform detec
|
|
|
34
34
|
- **Extract** - An LLM reads your transcripts and pulls out structured entries. Smart filtering removes noise (tool calls, file contents, boilerplate - about 80% of a typical session) before the LLM sees it. Hedged or unverified agent claims are capped at importance 5 with an `unverified` tag.
|
|
35
35
|
- **Store** - Entries get embedded and compared against existing knowledge. Near-duplicates reinforce existing entries. New information gets inserted. Online dedup catches copies in real-time.
|
|
36
36
|
- **Recall** - Semantic search plus memory-aware ranking. Entries you recall often score higher. Stale entries decay. Contradicted entries get penalized.
|
|
37
|
-
- **
|
|
37
|
+
- **Surgeon** - Corpus health maintenance: deterministic cleanup, quality evolution, vector integrity checks, and LLM-assisted retirement, dedup, and contradiction resolution.
|
|
38
38
|
|
|
39
39
|
```text
|
|
40
40
|
Transcript -> Filter -> Extract -> Store -> Recall
|
|
@@ -48,7 +48,7 @@ Transcript -> Filter -> Extract -> Store -> Recall
|
|
|
48
48
|
An **OpenAI API key** for embeddings (`text-embedding-3-small`). Embeddings cost fractions of a penny per operation - a full ingestion of 100+ session transcripts runs about $0.10 total.
|
|
49
49
|
|
|
50
50
|
For the LLM extraction step, AGENR supports:
|
|
51
|
-
- **OpenAI API key** (recommended) - `gpt-4
|
|
51
|
+
- **OpenAI API key** (recommended) - `gpt-5.4-mini` is the default baseline and recommended balance of quality and cost; `gpt-5.4` is the higher-quality option and the default surgeon model; `gpt-4.1-mini` remains available as a lower-cost fallback
|
|
52
52
|
- **OpenAI Pro subscription** - no API key needed
|
|
53
53
|
- **Anthropic Claude subscription** - no API key needed
|
|
54
54
|
|
|
@@ -133,7 +133,7 @@ Adds instructions to `~/.codeium/windsurf/memories/global_rules.md` and wires `.
|
|
|
133
133
|
agenr init # auto-detects platform, falls back to generic AGENTS.md
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
Or start `agenr mcp` as a stdio MCP server and configure it in your tool's MCP settings manually. Your agent gets `agenr_recall`, `agenr_extract`, `agenr_retire`, and `agenr_update` as tools.
|
|
136
|
+
Or start `agenr mcp` as a stdio MCP server and configure it in your tool's MCP settings manually. Your agent gets `agenr_recall`, `agenr_store`, `agenr_extract`, `agenr_retire`, and `agenr_update` as tools.
|
|
137
137
|
|
|
138
138
|
## How Memory Works
|
|
139
139
|
|
|
@@ -179,12 +179,12 @@ When a session ends, the plugin writes a handoff using a fallback-first strategy
|
|
|
179
179
|
|
|
180
180
|
See [docs/OPENCLAW.md](./docs/OPENCLAW.md) for the current startup flow and [docs/OPENCLAW_HANDOFFS.md](./docs/OPENCLAW_HANDOFFS.md) for the detailed handoff lifecycle.
|
|
181
181
|
|
|
182
|
-
###
|
|
182
|
+
### Corpus Health
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
The surgeon is the single corpus-health entry point. It runs deterministic pre-steps first, then performs the selected semantic pass. A bare run defaults to a full `auto` sweep:
|
|
185
185
|
|
|
186
186
|
```bash
|
|
187
|
-
agenr
|
|
187
|
+
agenr surgeon run --apply
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
## Advanced
|
|
@@ -242,7 +242,7 @@ If you prefer manual MCP setup over `agenr init`, start the stdio server:
|
|
|
242
242
|
agenr mcp
|
|
243
243
|
```
|
|
244
244
|
|
|
245
|
-
This exposes
|
|
245
|
+
This exposes five MCP tools: `agenr_recall`, `agenr_store`, `agenr_extract`, `agenr_retire`, and `agenr_update`. Use `agenr_store` for precise structured writes. Watcher ingestion and platform integrations still remain useful for transcript-scale capture.
|
|
246
246
|
|
|
247
247
|
## Commands
|
|
248
248
|
|
|
@@ -262,7 +262,7 @@ This exposes four MCP tools: `agenr_recall`, `agenr_extract`, `agenr_retire`, an
|
|
|
262
262
|
| `agenr watcher install` | Install background watch daemon (macOS launchd) |
|
|
263
263
|
| `agenr watcher status` | Show daemon status (running/stopped, pid, watched file, recent logs) |
|
|
264
264
|
| `agenr watcher logs` | Stream or show recent daemon logs |
|
|
265
|
-
| `agenr
|
|
265
|
+
| `agenr surgeon run` | Run corpus-health maintenance: cleanup, quality evolution, vector checks, and retirement/dedup/contradictions |
|
|
266
266
|
| `agenr benchmark` | Run extraction against benchmark fixtures and score results |
|
|
267
267
|
| `agenr context` | Generate context file for AI tool integration |
|
|
268
268
|
| `agenr health` | Show database health and forgetting candidates |
|
|
@@ -286,7 +286,7 @@ Deep dive: [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md)
|
|
|
286
286
|
|
|
287
287
|
The core pipeline is stable and tested. We use it daily managing thousands of knowledge entries across OpenClaw sessions.
|
|
288
288
|
|
|
289
|
-
**Shipped:** extraction, storage, recall (semantic + browse), MCP integration, online dedup,
|
|
289
|
+
**Shipped:** extraction, storage, recall (semantic + browse), MCP integration, online dedup, surgeon corpus health passes, smart filtering, live watching, daemon mode, cross-session handoff (LLM-summarized), three-phase context injection, interactive init wizard, cost estimation, DB isolation, benchmarking.
|
|
290
290
|
|
|
291
291
|
**Next:** GUI Management Console (browse, search, and curate your knowledge database visually), Cursor live signals, Claude Code UserPromptSubmit adapter, transitive project dependencies.
|
|
292
292
|
|
|
@@ -305,7 +305,7 @@ For the product thesis, see [docs/vision.md](./docs/vision.md).
|
|
|
305
305
|
| `agenr init` wizard fails to detect platform | Pass `--platform openclaw` (or `codex`, `claude-code`, etc.) explicitly |
|
|
306
306
|
| Plugin install fails during wizard | Run `openclaw plugins install agenr` manually, then `openclaw gateway restart` |
|
|
307
307
|
| Embeddings fail | Set `OPENAI_API_KEY` env var or `agenr config set-key openai <key>` |
|
|
308
|
-
| Database locked | Wait for
|
|
308
|
+
| Database locked | Wait for the active write-heavy command to finish (`agenr ingest --bulk`, `agenr surgeon run --apply`, etc.) and retry |
|
|
309
309
|
| Recall returns nothing after force-kill | `agenr db rebuild-index` (vector index corruption) |
|
|
310
310
|
| Extraction fails mid-file | Retry - dedup skips already-stored entries |
|
|
311
311
|
| Stale handoff entries persist | Run `agenr recall --browse --since 1d` to check, then `agenr retire --id <id>` |
|