Memory Update

From opencodos/opencodos · View interactive version

Memory Update is an AI agent skill from the GitHub repository opencodos/opencodos. Update core memory with new facts and learnings from conversations. Use to save information about people or general insights.

How to use this skill

Skill file

Memory Update Skill

Capture learnings from conversations and update CRM profiles

Trigger

/memory or "update memory" or "save this to memory"

What It Does

Scans the current conversation for:

  1. Person facts - Things learned about specific people
  2. General facts - Non-person learnings (optional: save to Core Memory)

Then:

Execution Steps

1. Extract Facts from Conversation

Analyze the recent conversation and extract:

interface ExtractedFacts {
  personFacts: { name: string; fact: string }[];
  generalFacts: string[];
}

Person fact patterns to look for:

General fact patterns:

2. Process Person Facts

For each person fact:

  1. Fuzzy match the name against Vault/4 - CRM/contacts.yaml
  1. Update profile file at Vault/4 - CRM/Profiles/{name}.md:
  1. Update contacts.yaml if new contact created

3. Process General Facts (Optional)

If there are non-person general learnings:

4. Report Results

Output summary:

Memory Updated:
- Alex Chen: Added 2 facts to profile
- [NEW] Sam Lee: Created profile with 1 fact
- Core Memory: Added 1 general learning

Profile File Format

Location: Vault/4 - CRM/Profiles/{name}.md

# {Name}

## Quick Facts
- Company: {company}
- Relationship: {level}
- Last contact: {date}

## Notes
- {fact 1}
- {fact 2}

## Interaction Log
### {date} - {source}
- {details}

Example Usage

Conversation:

User: "Just had a call with Alex. He moved to NewFund from Acme Ventures. He mentioned they just closed a new fund."

Run: /memory

Result:

Memory Updated:
- Alex Chen:
  + Now at NewFund (moved from Acme Ventures)
  + Recently closed a new fund

Profile updated: Vault/4 - CRM/Profiles/Alex Chen.md

Dependencies

Uses functions from 3 - Ingestion/Granola/process-summary-actions.ts:

Action Items (next_step)

Action items are stored in contacts.yaml as the next_step field per contact. The CRM Dashboard is auto-generated from this data.

Source of truth: Vault/4 - CRM/contacts.yaml

Display: Vault/4 - CRM/CRM Dashboard.md (regenerated by Telegram agent)

Setting Action Items

When conversation mentions a future action for a person, set their next_step:

Trigger patterns:

Example:

"Alex needs to join the product call tomorrow"

Action: Set next_step = "Join product call" for Alex in contacts.yaml

Completing Action Items

When conversation indicates an action is completed, clear the next_step:

Completion signals:

Example:

"Just finished the product call with Alex. Went well."

Action: Set next_step = null for Alex in contacts.yaml

Manual Commands

User can explicitly say:

Input Format

interface MemoryInput {
  personFacts: { name: string; fact: string }[];
  generalFacts: string[];
  completedActions?: string[];           // Names to clear next_step
  setNextSteps?: { name: string; action: string }[];  // Names to set next_step
  source?: string;
}

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.