This round shifted from bug-fixing (five prior passes largely exhausted the safe findings) to a genuine capability the request emphasized — personalization, memory, and loop intelligence — and I built it after confirming it wasn't duplicating anything that already exists. Pushed to PR #7.
The gap I filled: per-project continual learning. I had an exploration map the whole memory surface, and it confirmed a real hole: in normal agent mode nothing captured the gotchas the agent discovers while working and fed them back next session. The existing layers each cover something else — preferences are cross-project personal traits, the interaction ledger is a shallow "last touched" note, MemPalace is a global transcript, AGENTS.md/.cursorrules are static and human-authored, and the autoresearch ledger is ProMode-only. So the agent kept relearning the same project facts every session.
Project lessons (personal/project-lessons.ts) closes that:
- A per-workspace store (
~/.nxlite/projects/<hash>.lessons.json), newest-first, deduped case/whitespace/punctuation-insensitively, capped at 20, mtime-cached like the other hot-path stores.
- Injected as a compact
## Project lessons block right after session continuity, with a fingerprint in the system-prompt cache key so a new lesson takes effect on the very next turn.
- Two capture paths: the
remember_lesson tool (always available, no MemPalace required, read-only-mode safe since it doesn't touch the repo) for explicit "this project does X" facts, and auto-capture — when the harness auto-verification runs a project's test/build command and it passes, that command is saved as "Verify with: bun test packages/", so future turns know the real command without rediscovering it.
This directly serves the personalization/memory/premium-feel and intelligence/loop goals: the agent gets measurably smarter about a specific codebase over time, and picking work back up feels continuous rather than cold-start. It's the normal-mode counterpart to ProMode's autoresearch ledger, and it reuses the helpers I extracted in earlier rounds (writeJsonFile, userDataDir) rather than adding new duplication.
Verification: 1501 tests pass (new suites for the lessons store and the remember_lesson tool), typecheck clean on core and app, exec smoke 10/10, and I confirmed end-to-end that recorded lessons actually appear in the next turn's assembled system prompt. Docs and AGENTS.md updated.
On the "do way more / bug hunt" front: I want to be straight with you rather than pad the changelog. Five consecutive quality passes have worked through essentially all the SAFE bug/DRY/latency findings across the codebase, so this round I invested the effort into a real feature instead of manufacturing marginal churn that could risk regressions. The one substantial item still on the table is the file/web-tool sandboxing (workspace-path confinement + SSRF blocking) that I flagged last round — it's a deliberate behavior change I don't want to slip in silently, so it's waiting on your call. If you'd like, I can take that on next behind a config flag with full tests, or keep building capability (e.g., surfacing project lessons in a /lessons command and richer session continuity).