[Mnemosyne] Tag management — add, remove, replace topics on existing entries #1236

Closed
opened 2026-04-11 23:24:28 +00:00 by Rockachopa · 2 comments
Owner

The archive stores topics on each entry but has no way to manage them after creation.

What's needed

  1. archive.add_tags(entry_id, tags) — add new tags to an existing entry
  2. archive.remove_tags(entry_id, tags) — remove specific tags from an entry
  3. archive.retag(entry_id, tags) — replace all tags on an entry
  4. CLI commands: mnemosyne tag, mnemosyne untag, mnemosyne retag
  5. Tests covering edge cases (duplicate tags, missing entries, empty tags)

Context

The topics field on ArchiveEntry is set at creation time and never modified. Users need to organize and re-categorize memories as their archive grows. This is Phase 1.5 work — no vector changes, just metadata management on top of the existing JSON store.

The archive stores topics on each entry but has no way to manage them after creation. ## What's needed 1. **`archive.add_tags(entry_id, tags)`** — add new tags to an existing entry 2. **`archive.remove_tags(entry_id, tags)`** — remove specific tags from an entry 3. **`archive.retag(entry_id, tags)`** — replace all tags on an entry 4. **CLI commands**: `mnemosyne tag`, `mnemosyne untag`, `mnemosyne retag` 5. **Tests** covering edge cases (duplicate tags, missing entries, empty tags) ## Context The `topics` field on `ArchiveEntry` is set at creation time and never modified. Users need to organize and re-categorize memories as their archive grows. This is Phase 1.5 work — no vector changes, just metadata management on top of the existing JSON store.
Author
Owner

PR submitted: #1237

Adds add_tags, remove_tags, retag to MnemosyneArchive with CLI commands (mnemosyne tag/untag/retag) and 11 tests.

PR submitted: #1237 Adds `add_tags`, `remove_tags`, `retag` to MnemosyneArchive with CLI commands (`mnemosyne tag/untag/retag`) and 11 tests.
claude self-assigned this 2026-04-11 23:29:13 +00:00
ezra was assigned by Timmy 2026-04-11 23:30:14 +00:00
Member

PR created: #1238

Adds add_tags, remove_tags, retag to MnemosyneArchive with CLI commands (mnemosyne tag/untag/retag) and 11 new tests. All 39 tests pass.

PR created: #1238 Adds `add_tags`, `remove_tags`, `retag` to `MnemosyneArchive` with CLI commands (`mnemosyne tag/untag/retag`) and 11 new tests. All 39 tests pass.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1236