Memory & Fact Commands

The bot has two systems for long-term knowledge: memories (episodic — what happened) and facts (semantic — what is true). Both feed into the AI's context so it can recall information across conversations. See Memories for the full explanation.


Facts (/pin)

Facts are pinned pieces of information about a user. They persist across conversations and help the AI remember things like preferences, relationships, or backstory details.

/pin add

Add a fact about a user.

Option Type Required Description
fact String Yes The fact to remember
user User No Who this fact is about (default: yourself)
visibility String No public or private (default: public in servers, private in DMs)

Adding facts about other users requires admin permissions.

Example:

/pin add fact:Prefers to be called "Commander" user:@alice
/pin add fact:Allergic to cats visibility:private

/pin list

List pinned facts for a user.

Option Type Required Description
user User No Whose facts to list (default: yourself)

/pin delete

Delete a specific fact by ID.

Option Type Required Description
id Integer Yes Fact ID to delete

You can only delete your own facts unless you have admin permissions.

/pin clear

Clear all facts for a user.

Option Type Required Description
user User No Whose facts to clear (default: yourself)

Clearing another user's facts requires admin permissions.

/pin visibility

Change visibility of a fact.

Option Type Required Description
id Integer Yes Fact ID
level String Yes public or private
Visibility Behavior
public Visible to the AI in all conversations
private Only visible to the AI in your own conversations

/pin extract

Not available yet: the command only replies that it isn't implemented. Add facts with /pin add instead.


Memories (/memory)

Memories are episodic records of past conversation events. They're typically created automatically from summaries but can also be added and managed manually.

/memory add

Add a memory manually.

Option Type Required Description
content String Yes The memory content
user User No Who this memory is about (default: yourself)

Adding memories about other users requires admin permissions. Memories added in DMs are automatically marked as private.

/memory list

List memories for a user.

Option Type Required Description
user User No Whose memories to list (default: yourself)

/memory info

Show detailed information about a specific memory, including linked users and facts.

Option Type Required Description
id Integer Yes Memory ID

/memory delete

Delete a specific memory.

Option Type Required Description
id Integer Yes Memory ID to delete

You must be linked to the memory or have admin permissions.

/memory clear

Clear all memories for a user.

Option Type Required Description
user User No Whose memories to clear (default: yourself)

Clearing another user's memories requires admin permissions.

/memory edit

Edit a memory's content or keywords.

Option Type Required Description
id Integer Yes Memory ID
content String No New content
keywords String No New keywords (comma-separated)

At least one of content or keywords must be provided. You must be linked to the memory or have admin permissions.

/memory visibility

Set visibility for a memory.

Option Type Required Description
id Integer Yes Memory ID
level String Yes public or private

Link a fact to a memory. This creates an association so the AI can retrieve related facts when a memory is recalled.

Option Type Required Description
memory_id Integer Yes Memory ID
fact_id Integer Yes Fact ID to link

Remove a fact-to-memory link.

Option Type Required Description
memory_id Integer Yes Memory ID
fact_id Integer Yes Fact ID to unlink

Automatically link facts to a memory based on keyword matching. The bot scans the memory's keywords against available facts and creates links where relevant.

Option Type Required Description
id Integer Yes Memory ID

/memory extract

Extract a memory from messages around a specific message in the channel.

Option Type Required Description
message_id String Yes Discord message ID to start from
direction String Yes before, after, or around
count Integer No Number of messages to fetch (default: 10, max: 100)