Skip to content

Commit 34d36fe

Browse files
committed
docs: add updating section with upgrade, stop, and cache-clear instructions
1 parent 1d0c706 commit 34d36fe

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,32 @@ OpenCode loads `.ts` files from `.opencode/plugins/` automatically at startup.
5959

6060
This launcher starts the agentmemory backend. To use agentmemory with OpenCode, also install the agentmemory plugin and refer to the [OpenCode agentmemory plugin usage guide](https://github.com/rohitg00/agentmemory/blob/main/plugin/opencode/README.md) for setup instructions, available tools, and configuration options.
6161

62+
## Updating
63+
64+
To update agentmemory to the latest version:
65+
66+
```bash
67+
npx @agentmemory/agentmemory upgrade
68+
```
69+
70+
After updating, stop the running agentmemory process and clear the npx cache:
71+
72+
**Windows (PowerShell):**
73+
74+
```powershell
75+
# Stop the agentmemory process
76+
Get-Process -Name "node" | Where-Object {
77+
(Get-CimInstance Win32_Process -Filter "ProcessId = $($_.Id)").CommandLine -match 'agentmemory'
78+
} | Stop-Process -Force
79+
80+
# Clear the npx cache
81+
Get-ChildItem "$env:LOCALAPPDATA\npm-cache\_npx" -Directory | Where-Object {
82+
Test-Path "$($_.FullName)\node_modules\@agentmemory"
83+
} | Remove-Item -Recurse -Force
84+
```
85+
86+
Restart OpenCode to relaunch agentmemory with the updated version.
87+
6288
## How It Works
6389

6490
1. **On first config load**: The plugin starts a health-check interval (60s)

0 commit comments

Comments
 (0)