Built-in memory tool actions: add, replace, remove #717

Closed
opened 2026-10-27 13:37:27 +00:00 by sam · 0 comments
Owner

Implement the three core memory tool actions: add (appends new content to a section), replace (replaces content using substring matching to find the target), remove (deletes content using substring matching). These act on the MEMORY.md/USER.md files.

Acceptance Criteria

Tool exposes three actions: add, replace, remove
add(target_section, content) appends to or creates a named section
replace(target_section, substring, replacement) finds first match of substring in section and replaces it
remove(target_section, substring) removes the matching line/block from the section
Substring matching is exact, case-sensitive by default (configurable)
Actions return clear success/error messages including the affected section and character count
Tool validates section names (alphanumeric + spaces, max 64 chars)
Size bounds are checked before any write (reject if would exceed max file size)


Imported from beads archie-core-1786637494829-192-fa7ea3e2 · GitHub #213 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08

Implement the three core memory tool actions: add (appends new content to a section), replace (replaces content using substring matching to find the target), remove (deletes content using substring matching). These act on the MEMORY.md/USER.md files. ### Acceptance Criteria Tool exposes three actions: add, replace, remove add(target_section, content) appends to or creates a named section replace(target_section, substring, replacement) finds first match of substring in section and replaces it remove(target_section, substring) removes the matching line/block from the section Substring matching is exact, case-sensitive by default (configurable) Actions return clear success/error messages including the affected section and character count Tool validates section names (alphanumeric + spaces, max 64 chars) Size bounds are checked before any write (reject if would exceed max file size) --- _Imported from beads `archie-core-1786637494829-192-fa7ea3e2` · GitHub #213 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumtask labels 2026-10-27 13:37:27 +00:00
sam self-assigned this 2026-10-27 13:37:27 +00:00
sam closed this issue 2026-10-27 13:37:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#717