#11227: cli: add reflect add/list/show (local JSONL reflections)
docs
cli
stale
Cluster:
Cron Enhancements and Fixes
Adds commands (add/list/show) with local-first JSONL persistence under the OpenClaw state dir, plus docs and unit tests for the store.\n\nMotivation: lightweight AAR/reflection loop so runs compound learnings over time.\n\nBest-effort contribution; happy to iterate if maintainers prefer different UX/storage.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds two new CLI surfaces:
- `openclaw reflect add/list/show`, backed by a local JSONL store under the OpenClaw state directory.
- A prototype `openclaw schedule` subcommand (add/list/remove/run-now) with a JSON schedule file, JSONL run log, and per-job lock files.
The changes hook `reflect` into the main command registry and register `schedule` as a sub-CLI, and include docs + unit tests for the new persistence helpers.
<h3>Confidence Score: 3/5</h3>
- This PR is close, but has a few inconsistencies that should be resolved before merging.
- Core functionality looks straightforward and is covered by unit tests, but there are concrete mismatches between the reflection modules/docs (two stores, two paths/schemas) and the schedule docs/store loading assumptions that can lead to user confusion and runtime errors with malformed schedule files.
- src/reflections/reflection-store.ts, src/reflections/reflect-store.ts, docs/cli/reflect.md, src/schedule/store.ts, docs/cli/schedule.md
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#11221: cli: add schedule subcommand (local-first command scheduler)
by itskai-dev · 2026-02-07
84.7%
#10367: CLI/Ops: resilient browser fill + failover hardening + operations t...
by cluster2600 · 2026-02-06
73.9%
#18179: CLI: add sessions --json-debug diagnostics
by p6l-richard · 2026-02-16
73.4%
#6730: feat: Make OpenAI Codex CLI models usable - reasoning effort directive
by levineam · 2026-02-02
73.1%
#20561: feat: add Sisyphus-style orchestration features
by dfggggx198601 · 2026-02-19
73.0%
#11980: CLI: add external message lint + warn on tables/mentions
by moestradamos · 2026-02-08
72.4%
#13988: feat(backup): add backup/restore CLI with local + S3 storage
by n24q02m · 2026-02-11
72.1%
#13792: Claude/openclaw token efficiency q ni2s
by imecostalima · 2026-02-11
71.9%
#9490: Add Internationalization (i18n) Support
by luuman · 2026-02-05
71.9%
#10006: feat: add append-only spend ledger for token usage tracking
by oldeucryptoboi · 2026-02-06
71.7%