| description | Enable agent memory on the connected workspace — seeds 3 built-in metrics and activates automatic action capture, pattern detection, and nightly benchmarks. |
|---|---|
| argument-hint | |
| allowed-tools | Bash, mcp__oxagen__workspace_enable_memory |
Run this once per workspace to turn on durable self-improving agent memory.
After enabling, every MCP tool call is automatically captured as a
_mem:action node. The evaluator groups actions into sequences, promotes
recurring patterns, and writes nightly benchmarks you can track over time.
test -f "$HOME/.claude/oxagen.local.json" && cat "$HOME/.claude/oxagen.local.json" || echo "NO_SETTINGS"If NO_SETTINGS or no workspace_id, tell the user:
Not connected. Run
/oxagen:setupfirst to wire this workspace.
Exit.
mcp__oxagen__workspace_enable_memory({})
The server seeds the 3 built-in metrics (task success rate, efficiency delta, pattern utilization) and activates action capture for the workspace.
Print verbatim (substituting the actual workspace_id from settings):
Agent memory enabled for workspace
<workspace_id>.What happens next:
- Every MCP tool call is now captured as a memory action
- The evaluator groups actions into sequences every 5 minutes
- Patterns are detected every 15 minutes once enough data accumulates
- Nightly benchmarks track your agent's improvement over time
3 built-in metrics are seeded:
- Task success rate — % of sequences with outcome = success (7-day window)
- Efficiency delta — average actions per sequence vs. your baseline
- Pattern utilization — % of sequences where a warning was avoided
View your memory timeline and configure custom metrics: https://app.oxagen.ai/workspaces/<workspace_id>/memory/
To define your own success metric:
/oxagen:memory-metricTo view recent agent actions:/oxagen:memory-logs
If the server returns a 409 or "already enabled" response, tell the user:
Agent memory is already enabled for this workspace. Run
/oxagen:memory-logsto see recent actions, or visit https://app.oxagen.ai/workspaces/<workspace_id>/memory/ to review patterns and benchmarks.