Ijfw auto memorize

From FerroxLabs/wayland-core · View interactive version

Ijfw auto memorize is an AI agent skill from the GitHub repository FerroxLabs/wayland-core. Session-end auto-extraction of lessons, errors, fixes, and user feedback into structured memory. Fires at session end. Requires consent on first run.

How to use this skill

Skill file

Fires at session end. Reads deterministic signals captured during the session

and synthesizes structured memories. Nothing leaves the machine unless the user

explicitly configured an API model via IJFW_AUTOMEM_MODEL.

Consent gate (first run only)

Before any synthesis, check .ijfw/.automem-consent:

Inputs (all local files)

Synthesis

For each signal cluster:

  1. Redact secrets first. Call redactSecrets() from mcp-server/src/redactor.js on every field that came from transcript or tool output.
  2. Cap sizes. Run applyCaps from mcp-server/src/caps.js. content ≤4KB, why/how ≤1KB, summary ≤120.
  3. Dedupe. Use BM25 search (mcp-server/src/search-bm25.js) against project-journal.md. If score > 6 against an existing entry, skip (duplicate).
  4. Classify into one of:
  1. Emit via ijfw_memory_store MCP tool with fields:

Model routing

IJFW_AUTOMEM_MODEL env var controls synthesis:

Default ship: unset. Deterministic signals still become memories; only the

richer "what did I learn" synthesis is gated on an LLM budget.

Output to user

One-line summary in the terminal:

Stored 3 new memories: pagination-off-by-one fix, user prefers esbuild, stopped repeating rm -rf warnings.

No summary on zero-emit sessions.

Audit trail

Every auto-stored entry carries tags: [..., "auto-memorize"]. The

/ijfw memory audit command lists recent auto-entries for review/removal.

Safety

Resume normal mode after.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.