Skip to content

[FEATURE] Add a way to update frontmatter fields via edit_note #1011

Description

@phernandez

Context

While building a help-desk workflow demo in Basic Memory, I needed to add closed_at to a ticket's frontmatter when resolving it. edit_note exposes append, prepend, find_replace, replace_section, insert_before_section, and insert_after_section — none of which directly target the YAML frontmatter.

What I did

edit_note(
  identifier="tickets/2026-06-18-printer-offline-at-downtown-location",
  operation="find_replace",
  find_text="opened_at: '2026-06-18T09:14:00Z'",
  content="opened_at: '2026-06-18T09:14:00Z'\nclosed_at: '2026-06-18T10:42:00Z'",
)

find_replace works, but it requires the agent to read the note first to grab the exact line, and it's fragile — a stale value in find_text silently makes no changes.

What I'd expect

A first-class operation for frontmatter updates — e.g. set_frontmatter / update_frontmatter taking a dict of fields to merge into the YAML:

edit_note(
  identifier="...",
  operation="set_frontmatter",
  content={"closed_at": "2026-06-18T10:42:00Z", "status": "resolved"},
)

Or a metadata parameter on edit_note that always merges (like write_note already accepts), independent of the operation.

Why it matters

Agents updating structured notes (tickets, tasks, projects) need to touch frontmatter routinely. The current find_replace workaround is the kind of papercut that adds up across a long agent session.

Discovered while

Building a help-desk MSP playbook demo for basicmemory.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions