Skip to content
Agent Memory
Skill

/memory-tasks

Task management via Basic Memory schemas: create, track, and resume structured tasks that survive context compaction. Uses BM's schema system for uniform notes queryable through the knowledge graph.

From plugin
basic-memory
4.6k32 skills5 commands1 MCP

Claude Code

$ npx -y skills add basicmachines-co/basic-memory --skill memory-tasks --agent claude-code

SKILL.md

memory-tasks.SKILL.md
name: memory-tasks
description: "Task management via Basic Memory schemas: create, track, and resume structured tasks that survive context compaction. Uses BM's schema system for uniform notes queryable through the knowledge graph."

Memory Tasks

Manage work-in-progress using Basic Memory's schema system. Tasks are just notes with `type: Task` — they live in the knowledge graph, validate against a schema, and survive context compaction.

Project scope

If the project is unknown, discover it with `bm_project_list()`. Pass a nonempty `project` on every note, folder, context and schema call, even with one project or a qualified `memory://` URL. Use the chosen project's name, `workspace/project`, or external ID; `<project>` below is a placeholder for it. Recent activity also requires `project`. Search accepts `project` for one project, `projects` for selected projects, or `all_projects=True` explicitly. Discovery and bundled manuals need no project. Keep the same scope when following returned paths, paginating, or recovering from a refusal.

When to Use

  • **Starting multi-step work** (3+ steps, or anything that might outlast the context window)
  • **After compaction/restart** — search for active tasks to resume
  • **Pre-compaction flush** — update all active tasks with current state
  • **On demand** — user asks to create, check, or manage tasks

Task Schema

Tasks use the BM schema system. The schema note lives at `schema/Task.md`:

---
title: Task
type: schema
entity: Task
version: 1
schema:
  description: string, what needs to be done
  status?(enum, current state): [active, blocked, done, abandoned]
  assigned_to?: string, who is working on this
  steps?(array): string, ordered steps to complete
  current_step?: integer, which step number we're on (1-indexed)
  context?: string, key context needed to resume after memory loss
  started?: string, when work began
  completed?: string, when work finished
  blockers?(array): string, what's preventing progress
  parent_task?: Task, parent task if this is a subtask
settings:
  validation: warn
---

Creating a Task

When work qualifies, create a task note. Use `bm_write` with `note_type="Task"` and put queryable fields in `metadata`:

bm_write(
  title="Descriptive task name",
  directory="tasks",
  note_type="Task",
  metadata={
    "status": "active",
    "priority": "high",
    "assigned_to": "claude",
    "current_step": 1,
    "steps": ["First step", "Second step", "Third step"]
  },
  tags=["task"],
  content="""# Descriptive task name

## Observations
- [description] What needs to be done, concisely
- [status] active
- [assigned_to] claude
- [current_step] 1

## Steps
1. [ ] First concrete step
2. [ ] Second concrete step
3. [ ] Third concrete step

## Context
What future-you needs to pick up this work. Include:
- Key file paths and repos involved
- Decisions already made and why
- What was tried and what worked/didn't
- Where to look for related context""",
  project="<project>",
)

**Why both frontmatter and observations?** Fields in `metadata` (stored as frontmatter) power `bm_search` with `filters`. Fields as observations (`- [status] active`) power `bm_schema_validate`. Include queryable fields in both places for full coverage.

Key Principles

  • **Steps are concrete and checkable** — "Implement X in file Y", not "figure out stuff"
  • **Context is for post-amnesia resumption** — Write it as if explaining to a smart person who knows nothing about what you've been doing
  • **Relations link to other entities** — `parent_task [[Other Task]]`, `related_to [[Some Note]]`
  • **Note types are normalized to snake_case** — `bm_write(note_type="Task", project="<project>")` stores `type: task`, and `note_types=["Task"]` or `note_types=["task"]` both match it.

Resuming After Compaction

On session start or after compaction:

1. **Search for active tasks:**

   bm_search(note_types=["task"], filters={"status": "active"}, project="<project>")

2. **Read the task note** to get full context

3. **Resume from `current_step`** using the `context` field

4. **Update as you progress** — increment `current_step`, update context, check off steps

Updating Tasks

As work progresses, update the task note:

## Steps
1. [x] First step — done, resulted in X
2. [x] Second step — done, changed approach because Y
3. [ ] Third step — next up

## Context
Updated context reflecting current state...

Read the task as JSON first and pass its checksum as `expected_checksum` on each edit. Two sessions often update the same task, for example in a pre-compaction flush; a revision conflict means the other one wrote first, so re-read before writing.

Update frontmatter too, with `command="set_metadata"` and the `metadata` parameter (the body stays unchanged):

task = bm_read(identifier="tasks/descriptive-task-name", output_format="json", project="<project>")
bm_edit(
  identifier="tasks/descriptive-task-name",
  command="set_metadata",
  metadata={"current_step": 3},
  expected_checksum=task["checksum"],
  project="<project>",
)

Completing Tasks

When done:

status: done
completed: YYYY-MM-DD

Add a brief summary of what was accomplished and any follow-up needed.

Pre-Compaction Flush

When a compaction event is imminent:

1. Find all active tasks: `bm_search(note_types=["task"], filters={"status": "active"}, project="<project>")` 2. For each, update:

  • `current_step` to reflect actual progress
  • `context` with everything needed to resume
  • Step checkboxes to show what's done

3. Context that isn't written down is lost at compaction

Querying Tasks

With BM's schema system, tasks are fully queryable:

| Query | What it finds | |-------|--------------| | `bm_search(note_types=["task"], project="<project>")` | All tasks | | `bm_search(note_types=["task"], filters={"status": "active"}, project="<project>")` | Active tasks | | `bm_search(note_types=[

Read more
@basicmachines-co
Ships withbasic-memory

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

4.6k32 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.6k
Star history of basicmachines-co/basic-memory on GitHub, a chart by star-history.com

Other skills on basic-memory.

bm-decide

bm-decide

Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem11d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

hindsight11d60k
@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about memory-tasks.

Which coding agents can use memory-tasks?
memory-tasks installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.