You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the python3 runtime dependency and tighten fork cleanup so the wrapper can safely discover and delete only new maintenance forks without risking the active session in degraded environments.
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,30 @@ Claude Code writes memory → OpenCode reads it. OpenCode writes memory → Clau
29
29
30
30
## 🚀 Quick Start
31
31
32
+
### Prerequisites
33
+
34
+
-`opencode`
35
+
-`python3` available in `PATH`
36
+
37
+
`python3` is a runtime dependency for the wrapper's scoped session detection and fork cleanup logic.
38
+
If it is missing or not executable, post-session maintenance becomes less reliable: session targeting can fall back to less precise heuristics, and fork cleanup is skipped for safety.
- The `opencode-memory`**CLI** — wraps opencode with automatic memory extraction + auto-dream consolidation
42
66
- A **shell hook** — defines an `opencode()` function in your `.zshrc`/`.bashrc` that delegates to `opencode-memory`
43
67
68
+
If `python3` is not installed yet, install it first using the commands above before enabling the shell hook.
69
+
44
70
### 2. Configure
45
71
46
72
```jsonc
@@ -118,6 +144,18 @@ The shell hook defines an `opencode()` function that delegates to `opencode-memo
118
144
8. Maintenance runs **in the background** unless `OPENCODE_MEMORY_FOREGROUND=1`
119
145
9. Terminal maintenance logs are shown in foreground mode by default, or can be forced on/off with `OPENCODE_MEMORY_TERMINAL_LOG=1|0`
120
146
147
+
### Runtime dependencies
148
+
149
+
The wrapper expects `python3` to be available at runtime.
150
+
151
+
It is used for:
152
+
153
+
- scoped session selection from `opencode session list`
154
+
- parsing `opencode export` output to resolve session directories
155
+
- safely identifying and cleaning up forked extraction / auto-dream sessions
156
+
157
+
Without `python3`, the plugin tools still load, but wrapper maintenance is degraded and fork cleanup is intentionally skipped to avoid deleting the wrong session.
158
+
121
159
### Compatibility details
122
160
123
161
The implementation ports core logic from Claude Code for path hashing, git-root/worktree handling, memory format, and memory prompting behavior, so both tools can operate on the same files safely.
0 commit comments