List all OpenClaw agent workspaces with memory and session statistics.
The first argument is the project path. Before doing anything else:
Lists all OpenClaw agent workspaces and shows memory and session statistics for each.
/skill cmd_projects <project-path>
List all workspace directories:
ls -d ~/.openclaw/workspace-*/
If none are found, report: "No OpenClaw workspaces found at ~/.openclaw/workspace-*/" and stop.
For each workspace directory, collect:
a. Name: strip the workspace- prefix from the directory basename
(e.g. workspace-tdd-guide → tdd-guide)
b. MEMORY.md stats: check if <workspace>/MEMORY.md exists.
If yes, count ##-level headings (memory sections).
If no, mark as (no memory).
c. Sessions stats: check if <workspace>/sessions/ exists.
If yes, count *.md files and find the most recently modified:
ls -t <workspace>/sessions/*.md 2>/dev/null | head -1
If no sessions directory, mark as (no sessions).
Display as a table:
============================================================
OPENCLAW WORKSPACES
============================================================
Workspace MEMORY.md Sessions Latest Session
──────────────────────────────────────────────────────────────────
main 12 sections 8 sessions 2026-04-07.md
tdd-guide 3 sections 2 sessions 2026-03-15.md
code-reviewer (no memory) 5 sessions 2026-04-06.md
rust-reviewer (no memory) (no sessions) —
...
Total workspaces: <N>
openclaw memory status