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
{{ message }}
Repository navigation
Commit 4c0837c
Browse filesBrowse the repository at this point in the historyBrowse files
-`morph run record-session --prompt "..." --response "..."` — record a session manually.
194
+
-`morph session record --prompt "..." --response "..."` — record a session manually (v0.46+; was `morph run record-session`).
192
195
193
-
The older `morph trace` / `morph tap` / `morph traces` spellings still work in v0.45 and v0.46 with a deprecation notice; they're removed in v0.47.
196
+
The older `morph trace` / `morph tap` / `morph traces` spellings still work in v0.45 and v0.46 with a deprecation notice; they're removed in v0.47. Likewise `morph run` / `morph eval add-case` / `morph eval suite-show` / `morph eval suite-from-specs` work in v0.46 and v0.47 and are removed in v0.48; new code should use `morph session` and the flat `morph eval add` / `show` / `rebuild`.
194
197
195
198
See [docs/SESSION-TRACKING.md](docs/SESSION-TRACKING.md).
For commits that genuinely have no test results (rebases, content-only changes), pass `--allow-empty-metrics` (or `morph_commit { allow_empty_metrics: true }`). The flag is audited in the trace.
153
153
154
-
`--pipeline` and `--eval-suite` remain optional. When no eval suite is supplied, Morph picks up `policy.default_eval_suite` so the suite registered by `morph eval add-case` flows into every commit automatically.
154
+
`--pipeline` and `--eval-suite` remain optional. When no eval suite is supplied, Morph picks up `policy.default_eval_suite` so the suite registered by `morph eval add` (was `morph eval add-case` pre-v0.46) flows into every commit automatically.
Copy file name to clipboardExpand all lines: docs/OPENCODE-SETUP.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ To reference it from `opencode.json`, ensure the instructions array includes it:
76
76
OpenCode supports [plugins](https://open-code.ai/docs/en/plugins) that hook into session lifecycle events. `morph setup opencode` installs a plugin at `.opencode/plugins/morph-record.ts` that:
77
77
78
78
- Tracks prompts and responses via `message.updated` events
79
-
- On `session.idle`, calls `morph run record-session` to persist the turn as a Morph Run + Trace
79
+
- On `session.idle`, calls `morph session record` to persist the turn as a Morph Run + Trace (was `morph run record-session` pre-v0.46)
80
80
81
81
This is **best-effort** supplementary recording. The primary recording path is agent-driven (the agent calls `morph_record_session` via MCP as instructed in `AGENTS.md`). The plugin catches turns where the agent doesn't call the tool.
82
82
@@ -143,7 +143,7 @@ If OpenCode detects the MCP server but `.morph/runs/` stays empty after a prompt
143
143
144
144
2.**Test recording manually from the project root:**
145
145
```bash
146
-
morph run record-session --prompt "test" --response "test"
146
+
morph session record --prompt "test" --response "test"
147
147
```
148
148
This should print a 64-character hash. If it errors, fix the reported issue first (usually a missing `.morph/` directory or `morph` not on PATH).
0 commit comments