agentleFS
MesteriisMesteriis/Engineering-Bible-AI/skills/session-memory/SKILL.md

session-memory

Skill0 starsChanged 4 months agoMITView on GitHub

Stores verified cross-session facts, decisions, preferences, and open questions without secrets, speculation, or monitoring.

  • Reads credentials

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when continuity between sessions matters: project conventions, decisions, repeated user preferences, unresolved risks, or …

    line 8
  2. Distinctive:

    Prefer existing project docs:

    line 42
  3. Distinctive:

    Only portable project decisions belong there.

    line 48
  4. Very specific:

    When a natural-language query misses relevant documents, the optional offline scripts/memory-retrieval.py helper can plan a content-word …

    line 59
  5. Distinctive:

    If there is no existing convention, output a proposed memory delta instead of writing a new file automatically.

    line 67
  6. Distinctive:

    Read existing durable instructions or memory files.

    line 72
  7. Distinctive:

    Remove secrets and unverified claims.

    line 75
  8. Distinctive:

    Write only if the user asked for persistence or the repository already has an established memory/update rule.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session Memory

Use this skill when continuity between sessions matters: project conventions, decisions, repeated user preferences, unresolved risks, or next-step state.

This is a conservative Codex adaptation of persistent-memory tools. It does not install a background watcher, does not sync to external memory services, and does not write secrets.

Memory Contract

Only persist:

  • verified project facts;
  • explicit user preferences;
  • architectural decisions;
  • commands that passed or failed;
  • unresolved questions;
  • next steps with dates or commit references when useful.

Attach the source revision or file hash and evidence date to claims that can become stale. A passed command records its actual exit code and raw artifact pointer; a summary alone does not establish validation. A configured model is not a verified route: retain requested and observed metadata separately under the subagent-result-merge contract, with unknowns preserved.

Do not persist:

  • credentials, tokens, private keys, .env values;
  • personal data unrelated to the work;
  • guesses presented as facts;
  • transient thoughts that will confuse future sessions;
  • large raw logs when a summary is enough.

Where To Store

Prefer existing project docs:

  • docs/
  • AGENTS.md when the rule should affect future agents;
  • a user-approved memory file if the repository already has one.

Only portable project decisions belong there. Keep machine configuration, model mappings, capability snapshots, installation reports and raw validation artifacts outside tracked files in private local state. Generated project-local capabilities may live in ignored .engineering-bible/; derive them from actual host discovery, not a package catalog.

Beads owns task status, session-memory owns verified durable decisions, and QMD searches existing documents. Store each fact once in its owning system and use references; do not replicate all records across these tools. Do not initialize Beads or new memory stores across other projects automatically.

When a natural-language query misses relevant documents, the optional offline scripts/memory-retrieval.py helper can plan a content-word variant and fuse the ranked lists returned by the existing authorized search capability. Keep the original results, per-query ranks, and source hashes. Verify the captured source files before using the fused result as current evidence; without that check the helper reports SKIP. It does not search, create another index, or authenticate the search service. See docs/memory-retrieval.md for the input contract.

If there is no existing convention, output a proposed memory delta instead of writing a new file automatically.

Workflow

  1. Read existing durable instructions or memory files.
  2. Identify what changed in the current session.
  3. Separate facts, decisions, preferences, and open questions.
  4. Remove secrets and unverified claims.
  5. Write only if the user asked for persistence or the repository already has an established memory/update rule.

Memory Delta Format

Memory delta:
- Fact:
- Decision:
- Preference:
- Open question:
- Validation:

Output

Report:

  • memory read;
  • memory written or proposed;
  • redactions made;
  • facts that remain unconfirmed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.