Skip to content
Agent Memory
Skill

/memory-agents

Create, run, and check Basic Memory Cloud agents: notes with type agent whose text is instructions. Use when asked to automate work on notes, run an agent, or see how a run went.

BOOST
From plugin
basic-memory
4.3k30 skills5 commands1 MCP
Install
$ npx -y skills add basicmachines-co/basic-memory --skill memory-agents --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/memory-agents

Context preview

The summary Claude sees to decide when to auto-load this skill.

Create, run, and check Basic Memory Cloud agents: notes with type agent whose text is instructions. Use when asked to automate work on notes, run an agent, or see how a run went.

SKILL.md

memory-agents.SKILL.md
name: memory-agents
description: "Create, run, and check Basic Memory Cloud agents: notes with type agent whose text is instructions. Use when asked to automate work on notes, run an agent, or see how a run went."

Memory Agents

A Basic Memory Cloud agent is a note. Its frontmatter says `type: agent`, and its body is the instructions. Running it on another note (the target) starts a short-lived agent in Cloud that reads the target, works through the Basic Memory tools, and changes notes as its instructions say.

Agents run in Basic Memory Cloud only, on plans that include them. A local Basic Memory has no agent tools.

When to Use

  • The user wants recurring work on their notes done for them: follow up on

meetings, link new notes, tidy a folder, write a weekly digest

  • Asked to create, change, run, or turn off an agent
  • Asked how an agent run went, what it changed, or why it did not run

Tools

| Tool | Does | |---|---| | `list_agents` | The project's agents and how their recent runs went | | `run_agent` | Starts an agent on a note; returns the run id | | `get_agent_run` | One run: status, notes changed, and the agent's last reply | | `list_agent_runs` | Recent runs, newest first, optionally for one agent |

Create and edit agents with `write_note` and `edit_note`. There is no separate agent tool for that.

Write an Agent

---
title: Meeting follow-up
type: agent
enabled: true
watch:
  paths:
    - meetings/
---

Load the memory-ingest and memory-tasks skills before you start.

Read the meeting note you run on.

- For each action item, create a task note in `tasks/` with its owner and a
  relation back to the meeting note. Check `tasks/` first and link an existing
  task instead of making a duplicate.
- Add a `## Summary` section to the meeting note. If it has one, leave it.

Reply with the tasks you created or linked.

Frontmatter:

| Field | Required | Meaning | |---|---|---| | `type` | yes | `agent` | | `title` | yes | The agent's name | | `enabled` | yes | `false` keeps it from running, by hand or by watch | | `watch` | no | Starts the agent when a person creates a note under these paths | | `description` | no | One line shown with the agent |

`watch.paths` takes folders (`meetings/`) or globs over the file path (`meetings/*.md`), at most 20, all inside the project. `watch.events` defaults to `[create]`, the only event so far. Do not write `on:` for events: YAML reads that key as `true`.

Agents always write: their output is notes, and every change they make is a note version you can revert. An agent changes notes only in its own project, and it runs only if both the person who last edited the agent note and the person the run is for can edit that project. An agent note last edited by another agent cannot run. An old `access` key in an agent note is ignored.

Instructions that work

  • **Scope to the target note.** The agent starts from the note it runs on. Say

what that note is (a meeting note, a hub note, any note) and how far to look from it.

  • **Name the skills to load.** Agents can load the Basic Memory skills, for

example `Load the memory-curate skill before you start.`

  • **Say where new notes go** and how to avoid duplicates: check the folder first,

link what exists.

  • **Keep existing content.** Ask the agent to read each note before changing it.

Cloud already refuses an edit that does not name the revision it read.

  • **Ask for a reply.** The last reply is the run's summary: what it created,

linked, or left alone, and anything it was unsure about.

  • **Keep each run small.** A run has about seven minutes, including startup.

Split large jobs across several agents or several target notes.

  • Instructions are limited to 30,000 characters, frontmatter included.

Ready-made Agents

The Agents page in the Basic Memory web app adds these, each editable after it is added:

| Agent | Run it on | |---|---| | Cleanup | A hub or project index note; merges duplicates, archives finished work | | Curator | A hub or folder note; links the notes around it with named relations | | Schema keeper | Any note; checks notes against the project's schemas, writes a drift report | | Meeting follow-up | Watches `meetings/`; makes task notes for action items | | Weekly reflection | Any note; writes a digest of the week and folds lasting facts into their notes |

Point the user to these before writing an agent from scratch.

Run an Agent

list_agents(project="work")
run_agent(agent="Curator", note="projects/Launch", project="work")
# -> run id. Runs usually take one to a few minutes.
get_agent_run(run_id="<run id>", project="work")

An agent changes the user's notes. Ask before running one, unless the user has just asked for that run.

A `watch` agent also starts on its own when a person creates a note under its paths. It waits until the note has had no saves for about a minute, then runs on the version the person ended with. Notes written by agents, imports, or `bm cloud push` do not start agents.

Check a Run

`get_agent_run` shows the status, the notes the run created, edited, moved, or deleted, and the agent's last reply. Every reply is also kept in a run log note, `agents/runs/<agent> run <id>`. Read it for the whole conversation; do not edit it.

A queued run may be waiting: for the target note to settle, for a free slot (a workspace runs a few agents at once), or for another run on the same note.

When a run is skipped, its reason says why:

| Reason | Fix | |---|---| | `agent_invalid` | Fix the frontmatter; the detail names the field | | `agent_disabled` | Set `enabled: true` | | `agent_changed` | The agent note changed after the run was queued; run it again | | `agent_not_by_a_person` | A person, or an assistant acting for one, saves the agent note again | | `agent_removed`, `trigger_changed` | The agent note or the target note was deleted | | `instruction_author_has_no_access`, `requester_has_no_access` | That person n

Read more
Ships withbasic-memory

AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN

Get the whole plugin

Other skills on basic-memory.