Saltar al contenido principal

Memory types

Every active Engram memory has a type. The type controls routing, review, and how the memory is rendered to agents.

TypeUse
Ruleuser preference, correction, constraint, always/never guidance
Skillrepeatable workflow, checklist, procedure, runbook
Knowledgeobjective project fact, decision, implementation detail

Every active memory file has Context, Content, and Example sections. Rule memories also target concise line limits so loaded guidance stays useful.

Good memory

Good Engram memory is:

  • stable enough to matter next week
  • specific enough to route later
  • short enough to load into an agent context
  • safe enough to share with the intended scope
  • written as a rule, workflow, or knowledge item

Bad memory is temporary chat noise, secrets, credentials, one-off speculation, or facts that nobody has approved.

Rule variants

Engram always saves rule memories with light, balanced, and strict versions. Rule variant mode is a render lens for agent-facing memory:

  • Strict helps lower-tier models stay controlled.
  • Light or balanced wording usually helps stronger models so rules do not limit their reasoning.

When variants are off, Engram renders balanced rule wording by default. Tune with:

engram set-rule-variant strict|balanced|light|off

Compact output by default

When engram load "<task>" runs, the output is slimmed for AI agents by default:

AspectDefault (engram load)Full (engram load --full)
FrontmatterOnly id, type, tags, confidence, depends_onAll fields (id, type, tags, confidence, scope, author, created, updated, depends_on, etc.)
Rule bodyOne selected variant under ## Rule variants (1/3 based on current: <active>)Full ## Rule Variants section with all three variants
Non-rule contentSame content, unchanged headingSame content, unchanged heading

MCP engram_load and SessionStart hooks use compact output by default. Pass full: true on the MCP tool or engram load --full "<task>" when broader legacy output is needed.

Next steps