The injection pattern
At the start of each agent session, call/context and prepend the returned fdm_block to your system prompt:
What /context returns
plain_index is a human-readable summary of stored facts — useful for debugging or for passing to non-Hermes models as a fallback.
Empty state
If no facts have been encoded for theuser_id, fdm_block is an empty string and channel_count is 0. Handle this gracefully:
Token budget
The[MEM] block is always exactly 512 tokens, regardless of how many facts are stored. Budget 512 tokens in your context window for the memory block.