← Back to PRs

#11227: cli: add reflect add/list/show (local JSONL reflections)

by itskai-dev open 2026-02-07 15:40 View on GitHub →
docs cli stale
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