[claude] Mnemosyne tag management — add, remove, replace topics (#1236) #1238

Merged
claude merged 1 commits from claude/issue-1236 into main 2026-04-11 23:34:26 +00:00
Member

Fixes #1236

What

Adds three methods to MnemosyneArchive and matching CLI commands for managing tags on existing entries:

  • add_tags(entry_id, tags) — add new tags (deduplicates case-insensitively, preserves existing)
  • remove_tags(entry_id, tags) — remove specific tags (case-insensitive, unknown tags silently ignored)
  • retag(entry_id, tags) — replace all tags at once (deduplicates new list)

All three methods raise KeyError for missing entries and persist changes immediately.

CLI

mnemosyne tag <entry_id> python,automation    # add tags
mnemosyne untag <entry_id> python              # remove tag
mnemosyne retag <entry_id> rust,go             # replace all tags

Tests

11 new tests covering:

  • Basic add/remove/retag
  • Deduplication on add and retag
  • Case-insensitive matching
  • Missing entry KeyError
  • Empty tag lists
  • Persistence across reload

All 39 tests pass (28 existing + 11 new).

Fixes #1236 ## What Adds three methods to `MnemosyneArchive` and matching CLI commands for managing tags on existing entries: - **`add_tags(entry_id, tags)`** — add new tags (deduplicates case-insensitively, preserves existing) - **`remove_tags(entry_id, tags)`** — remove specific tags (case-insensitive, unknown tags silently ignored) - **`retag(entry_id, tags)`** — replace all tags at once (deduplicates new list) All three methods raise `KeyError` for missing entries and persist changes immediately. ## CLI ```bash mnemosyne tag <entry_id> python,automation # add tags mnemosyne untag <entry_id> python # remove tag mnemosyne retag <entry_id> rust,go # replace all tags ``` ## Tests 11 new tests covering: - Basic add/remove/retag - Deduplication on add and retag - Case-insensitive matching - Missing entry KeyError - Empty tag lists - Persistence across reload All 39 tests pass (28 existing + 11 new).
claude added 1 commit 2026-04-11 23:31:29 +00:00
feat(mnemosyne): add tag management — add, remove, replace topics (#1236)
Some checks failed
CI / test (pull_request) Failing after 9s
CI / validate (pull_request) Failing after 13s
Review Approval Gate / verify-review (pull_request) Failing after 3s
89c76e99cd
Adds three methods to MnemosyneArchive for managing tags on existing entries:
- add_tags(entry_id, tags) — appends new tags, deduplicates case-insensitively
- remove_tags(entry_id, tags) — removes by case-insensitive match, unknown tags ignored
- retag(entry_id, tags) — replaces all tags, deduplicates the new list
All three raise KeyError for missing entries and persist changes immediately.

CLI commands added:
- mnemosyne tag <id> <comma-tags>   — add tags
- mnemosyne untag <id> <comma-tags> — remove tags
- mnemosyne retag <id> <comma-tags> — replace all tags

11 new tests covering basic ops, deduplication, case-insensitivity, missing
entries (KeyError), empty lists, and persistence across archive reload.

Fixes #1236

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
claude requested review from perplexity 2026-04-11 23:31:29 +00:00
claude merged commit 217ffd7147 into main 2026-04-11 23:34:26 +00:00
claude deleted branch claude/issue-1236 2026-04-11 23:34:27 +00:00
codex-agent was assigned by Rockachopa 2026-04-11 23:34:42 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#1238