agenr 0.7.2 → 0.7.5

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.5] - 2026-02-20
4
+
5
+ ### Changed
6
+ - fix(plugin): raise default signalMinImportance from 7 to 8 - default-importance stores (importance 7) no longer trigger mid-session signal interrupts
7
+ - fix(plugin): lower default maxPerSignal from 5 to 3 - smaller batches
8
+ - fix(dedup): lower DEFAULT_DEDUP_THRESHOLD from 0.80 to 0.72 - entries with cosine similarity 0.72-0.80 now reach LLM review instead of being stored as duplicates
9
+ - fix(extractor): increase MAX_PREFETCH_RESULTS from 3 to 5 and lower PREFETCH_SIMILARITY_THRESHOLD from 0.78 to 0.72
10
+ - fix(extractor): increase PREFETCH_CANDIDATE_LIMIT from 10 to 15 for broader elaborative encoding candidates
11
+ - fix(extractor): tighten extractor prompt to suppress near-variant entries already captured in DB
12
+
13
+ ### Added
14
+ - feat(plugin): signalCooldownMs config - minimum ms between signal batches per session (default: 30000)
15
+ - feat(plugin): signalMaxPerSession config - max total signal batches per session lifetime (default: 10)
16
+ - feat(plugin): signalMaxAgeSec config - only surface entries created within last N seconds (default: 300)
17
+ - feat(dedup): dedup.aggressive config in ~/.agenr/config.json - lower thresholds and more candidate lookups for high-noise environments
18
+ - feat(dedup): dedup.threshold config - manual override for LLM dedup similarity threshold
19
+
20
+ ## [0.7.4] - 2026-02-20
21
+
22
+ ### Added
23
+ - feat(plugin): native agenr_recall, agenr_store, agenr_extract, agenr_retire tools registered via api.registerTool() in the OpenClaw plugin - tools now appear in the agent toolset alongside exec, browser, etc.
24
+
25
+ ## [0.7.3] - 2026-02-20
26
+
27
+ ### Added
28
+ - feat(plugin): bundled OpenClaw skill (skills/SKILL.md) - teaches agents when to call agenr_store and agenr_recall as MCP tools; automatically available when plugin is installed
29
+ - feat(plugin): complete configSchema in openclaw.plugin.json (signalMinImportance, signalMaxPerSignal, signalsEnabled, dbPath)
30
+
31
+ ### Changed
32
+ - fix(init): removed AGENTS.md auto-detection heuristic for openclaw platform - openclaw must be specified explicitly via --platform openclaw (AGENTS.md is also used by Codex; the heuristic was unreliable)
33
+ - fix(init): agenr init --platform openclaw no longer writes to AGENTS.md - the OpenClaw plugin handles memory injection via prependContext; AGENTS.md write was redundant
34
+
35
+ ### Internal
36
+ - chore(plugin): bump openclaw.plugin.json version to 0.7.3
37
+
3
38
  ## [0.7.2] - 2026-02-20
4
39
 
5
40
  ### Fixed
package/README.md CHANGED
@@ -23,67 +23,96 @@ export OPENAI_API_KEY=sk-... # for embeddings + extraction
23
23
  ### 1. Install and ingest your history
24
24
 
25
25
  ```bash
26
- # Install
27
26
  npm install -g agenr
28
- # or
29
- pnpm add -g agenr
30
27
 
31
- # Configure (picks your LLM provider, walks you through auth)
32
- agenr setup
33
-
34
- # Ingest all your OpenClaw sessions
35
- agenr ingest ~/.openclaw/agents/main/sessions/ --glob '**/*.jsonl'
36
-
37
- # Query your memory
28
+ agenr setup # configure LLM provider + auth
29
+ agenr ingest ~/.openclaw/agents/main/sessions/ # bootstrap from existing sessions
38
30
  agenr recall "what did we decide about the database schema?"
39
31
  ```
40
32
 
41
33
  ### 2. Keep it fresh
42
34
 
43
- Start the watcher so new conversations get captured automatically:
44
-
45
35
  ```bash
46
- # Watch your current session file
47
- agenr watch ~/.openclaw/agents/main/sessions/current.jsonl --interval 120
36
+ agenr daemon install # runs in background, watches your sessions automatically
37
+ agenr daemon status
38
+ agenr daemon logs
39
+ ```
48
40
 
49
- # Or watch a whole directory
50
- agenr watch --dir ~/.openclaw/agents/main/sessions/
41
+ ### 3. Wire your agent
51
42
 
52
- # Or install as a background daemon so it runs on its own
53
- agenr daemon install
43
+ Choose your platform:
44
+
45
+ #### OpenClaw (recommended)
46
+
47
+ The agenr OpenClaw plugin handles everything automatically - memory injection at
48
+ session start, mid-session signals when important new entries arrive, and
49
+ native `agenr_recall`, `agenr_store`, `agenr_extract`, and `agenr_retire`
50
+ tools registered directly in the agent toolset.
51
+
52
+ ```bash
53
+ openclaw plugins install agenr
54
54
  ```
55
55
 
56
- ### 3. Give your agent memory
56
+ That's it. Memory injection happens via the plugin's `before_agent_start` hook.
57
+ No AGENTS.md edits needed. The bundled `SKILL.md` loads automatically and
58
+ instructs the agent when to call `agenr_store` proactively.
59
+
60
+ Optional config in `openclaw.json`:
61
+
62
+ ```json
63
+ {
64
+ "plugins": {
65
+ "entries": {
66
+ "agenr": {
67
+ "config": {
68
+ "budget": 2000,
69
+ "signalMinImportance": 8,
70
+ "signalCooldownMs": 30000,
71
+ "signalMaxPerSession": 10
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ ```
57
78
 
58
- **Option A: CLI in AGENTS.md (no MCP needed, works everywhere)**
79
+ Signal config controls how often mid-session notifications fire. See
80
+ [docs/OPENCLAW.md](./docs/OPENCLAW.md) for all available options.
59
81
 
60
- Add this to your OpenClaw `AGENTS.md`:
82
+ #### Claude Code
61
83
 
62
- ```markdown
63
- ## Memory (agenr)
64
- On every session start, run this BEFORE responding to the first message:
65
- agenr recall --context session-start --budget 2000
66
- IMPORTANT: use --budget 2000, not just --limit. Budget triggers balanced output:
67
- - 20% active todos
68
- - 30% preferences and decisions
69
- - 50% recent facts and events
70
- Without --budget, score ranking skews toward old high-importance todos.
84
+ ```bash
85
+ agenr init --platform claude-code
71
86
  ```
72
87
 
73
- Your agent runs the command on startup and gets its memory back. No MCP, no extra config.
88
+ Adds the `agenr_recall`/`agenr_store` instruction block to
89
+ `~/.claude/CLAUDE.md` and wires `~/.mcp.json`. Your agent sees the tools and
90
+ knows when to use them.
91
+
92
+ #### Cursor
74
93
 
75
- **Option B: MCP server (richer integration)**
94
+ ```bash
95
+ agenr init --platform cursor
96
+ ```
76
97
 
77
- If your tool supports MCP (OpenClaw via mcporter, Claude Code, Codex, Cursor):
98
+ Adds instructions to `.cursor/rules/agenr.mdc` and wires `.cursor/mcp.json`.
99
+
100
+ #### Codex
78
101
 
79
102
  ```bash
80
- # Add to OpenClaw (via mcporter)
81
- mcporter config add agenr --stdio agenr --arg mcp --env OPENAI_API_KEY=your-key-here
103
+ agenr init --platform codex
82
104
  ```
83
105
 
84
- This gives your agent `agenr_recall`, `agenr_store`, and `agenr_extract` as tools it can call anytime - not just on startup.
106
+ Adds instructions to `~/.codex/AGENTS.md` and wires `.mcp.json`.
85
107
 
86
- Done. Your agent now has persistent memory that survives compaction, session restarts, and everything in between.
108
+ #### Any MCP-compatible tool
109
+
110
+ ```bash
111
+ agenr init # auto-detects platform, falls back to generic AGENTS.md
112
+ ```
113
+
114
+ Or configure manually: start `agenr mcp` as a stdio MCP server. Your agent gets
115
+ `agenr_recall`, `agenr_store`, `agenr_extract`, and `agenr_retire` as tools.
87
116
 
88
117
  ## What happens when you ingest
89
118
 
@@ -118,9 +147,6 @@ The watcher keeps your memory current as you work. It tails your session files,
118
147
  # Watch your OpenClaw sessions directory (auto-resolves the default path)
119
148
  agenr watch --platform openclaw
120
149
 
121
- # Deprecated: --auto still works (defaults to OpenClaw) but will be removed in a future version
122
- agenr watch --auto
123
-
124
150
  # Install as a background daemon (macOS launchd)
125
151
  agenr daemon install
126
152
  agenr daemon status
@@ -152,32 +178,41 @@ Transcript -> Filter -> Extract -> Store -> Recall
152
178
 
153
179
  ## MCP integration
154
180
 
155
- AGENR exposes three MCP tools: `agenr_recall`, `agenr_store`, `agenr_extract`. Any tool that speaks MCP can use your memory.
181
+ agenr exposes four MCP tools: `agenr_recall`, `agenr_store`, `agenr_extract`,
182
+ `agenr_retire`.
156
183
 
157
- **OpenClaw** (via [mcporter](https://mcporter.dev)):
158
- ```bash
159
- mcporter config add agenr --stdio agenr --arg mcp --env OPENAI_API_KEY=your-key-here
160
- ```
184
+ **OpenClaw** - `openclaw plugins install agenr` (plugin registers tools
185
+ natively; no MCP config needed)
186
+
187
+ **Claude Code / Cursor / Codex** - `agenr init --platform <name>` (wires MCP
188
+ config and instructions)
161
189
 
162
- Verify with `mcporter list agenr`. See [docs/OPENCLAW.md](./docs/OPENCLAW.md) for the full guide.
190
+ **Manual** - start `agenr mcp` as a stdio server and configure in your tool's
191
+ MCP settings.
163
192
 
164
193
  ## Commands
165
194
 
166
195
  | Command | What it does |
167
196
  | --- | --- |
168
- | `agenr setup` | Interactive configuration |
197
+ | `agenr setup` | Interactive configuration (LLM provider, auth, model defaults) |
198
+ | `agenr init [options]` | Wire a project: instructions file + MCP config + project scope. Use `--platform openclaw\|claude-code\|cursor\|codex\|generic` |
169
199
  | `agenr config` | Show and update agenr configuration |
170
200
  | `agenr auth` | Authentication status and diagnostics |
171
201
  | `agenr ingest <paths...>` | Bulk-ingest files and directories |
172
- | `agenr extract <files...>` | Extract knowledge from text |
202
+ | `agenr extract <files...>` | Extract knowledge entries from text files |
173
203
  | `agenr store [files...]` | Store entries with semantic dedup |
174
204
  | `agenr recall [query]` | Semantic + memory-aware recall |
175
- | `agenr watch [file]` | Live-watch files, directories, or auto-detect |
176
- | `agenr daemon install` | Install background watch daemon |
205
+ | `agenr retire <subject>` | Retire a stale entry (hidden, not deleted) |
206
+ | `agenr watch [file]` | Live-watch files/directories, auto-extract knowledge |
207
+ | `agenr daemon install` | Install background watch daemon (macOS launchd) |
208
+ | `agenr daemon status` | Show daemon status (running/stopped, pid, watched file, recent logs) |
209
+ | `agenr daemon logs [--lines <n>] [--follow]` | Stream or show recent daemon logs for troubleshooting |
177
210
  | `agenr consolidate` | Clean up and merge near-duplicates |
178
211
  | `agenr context` | Generate context file for AI tool integration |
212
+ | `agenr health` | Show database health and forgetting candidates |
179
213
  | `agenr mcp` | Start MCP server (stdio) |
180
- | `agenr db <cmd>` | Database management (stats, version, export, reset, path, check, rebuild-index). Run `agenr db --help` for all subcommands. |
214
+ | `agenr todo <subcommand> <subject>` | Manage todos in the knowledge base |
215
+ | `agenr db <cmd>` | Database management (stats, version, export, reset, path, check, rebuild-index) |
181
216
 
182
217
  Full reference: [docs/CLI.md](./docs/CLI.md) | [docs/CONFIGURATION.md](./docs/CONFIGURATION.md)
183
218
 
@@ -192,11 +227,13 @@ Deep dive: [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md)
192
227
 
193
228
  ## Status
194
229
 
195
- Alpha. The core pipeline is stable and tested (445 tests). We use it daily managing thousands of knowledge entries across OpenClaw sessions.
230
+ The core pipeline is stable and tested (782 tests). We use it daily managing
231
+ thousands of knowledge entries across OpenClaw sessions.
196
232
 
197
233
  What works: extraction, storage, recall, MCP integration, online dedup, consolidation, smart filtering, live watching, daemon mode.
198
234
 
199
- What's next: local embeddings support, entity resolution, auto-scheduled consolidation.
235
+ What's next: Cursor live signals, Claude Code UserPromptSubmit adapter,
236
+ transitive project dependencies.
200
237
 
201
238
  ## Philosophy
202
239