agentleFS
joshuaswarrenjoshuaswarren/openclaw-engram/src/AGENTS.md

openclaw-engram / src

AGENTS.md231 starsChanged 8 months agoMITView on GitHub

This directory contains the TypeScript source for the openclaw-engram plugin. Active sequencing and contributor priority live in the GitHub Project: Use the project for current order/blockers, then read the relevant historical design doc before changing these surfaces: See AGENTS.md (root) for the full list. Key reminders: After any change to this directory:

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the project for current order/blockers, then read the relevant historical design doc before changing these surfaces:

    line 11
  2. Distinctive:

    After any change to this directory:

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md

Source Directory — Agent Guide

This directory contains the TypeScript source for the openclaw-engram plugin.

Active Development References

Active sequencing and contributor priority live in the GitHub Project:

Use the project for current order/blockers, then read the relevant historical design doc before changing these surfaces:

  • orchestrator.ts — see docs/plans/README.md and the relevant v8 design docs under docs/plans/
  • graph.ts — see docs/plans/2026-02-22-v8.2-pr18-graph.md
  • tmt.ts — see docs/plans/2026-02-22-v8.2-tree-graph-design.md

Critical Invariants (enforce in all changes)

See AGENTS.md (root) for the full list. Key reminders:

  1. Recall pipeline order is a contract — retrieve → filter → rerank → cap → format. Never cap before filter.
  2. Artifact isolation — artifacts/ paths must never appear in generic QMD recall.
  3. no_recall gates everything — when planner returns no_recall, skip all retrieval paths.
  4. Config 0 means 0 — never coerce zero limits to non-zero values.
  5. OpenAI Responses API only — never use Chat Completions anywhere in this directory.
  6. Procedural memory (issue #519) — Shipped off until procedural.enabled is true in plugin config. See docs/procedural-memory.md before changing procedure extraction, recall injection, or mining.

File Ownership

FilePurposeStability
index.tsPlugin entry point; hook registrationStable
config.tsConfig parsing with defaultsStable
types.tsShared TypeScript interfacesStable (add, don't remove)
logger.tsLogging wrapperStable
storage.tsFile I/O for memories (markdown + YAML)Stable
buffer.tsSmart turn accumulationStable
extraction.tsGPT extraction engineStable
retrieval.tsRecall pipeline implementationStable
qmd.tsQMD search clientStable
intent.tsIntent heuristics (morphology-aware)Stable
signal.tsSignal-based flush triggersStable
importance.tsZero-LLM importance scoringStable
himem.tsEpisode/Note classification (v8.0)Active development
boxes.tsMemory Box builder + Trace Weaver (v8.0)Active development
orchestrator.tsCore coordinationActive development (v8.2)
tools.tsAgent-callable tool implementationsStable
cli.tsCLI command implementationsStable
extraction-judge.tsLLM-as-judge fact-worthiness gate (#376)Stable
semantic-chunking.tsTopic-boundary chunking (#368)Stable
page-versioning.tsSnapshot-based version history (#371)Stable
source-attribution.tsCitation/attribution helpers (#379)Stable
enrichment/External enrichment pipeline (#365)Stable
binary-lifecycle/Binary file management (#367)Stable
taxonomy/MECE taxonomy resolver (#366)Stable
memory-extension/Extension publisher contract (#381, #382)Stable
memory-extension-host/Extension host discovery (#381)Stable
recall-mmr.tsMaximal marginal relevance rerankingStable
recall-qos.tsRecall quality-of-serviceStable
recall-audit.tsRecall audit trailStable
session-integrity.tsSession integrity checksStable
session-toggles.tsPer-session feature togglesStable
compat/Provider compatibility checksStable
dedup/Deduplication engineStable
curation/Memory curation pipelineStable

Testing

After any change to this directory:

npm run check-types           # TypeScript strict check
npm run check-config-contract # Config schema alignment
npm run preflight:quick       # Fast test gate
npm run test:entity-hardening # Required for orchestrator/storage/intent/cache/retrieval/config edits
npm test                      # Full suite

New logic in any file above requires corresponding tests in tests/.

Download now (ZIP)

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. joshuaswarren/remnic★ 231100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

Does it work?

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

Reviews can't be read right now.

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.