You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add tag management CLI commands and trait extensions for user-defined and auto-generated entry tags. Enables filtered queries, organized context retrieval, and integration with importance detection category labels.
Note: Tag tables (tags, entry_tags, indexes) are created in #12 (Schema v2 migration). This issue covers the CLI surface, trait extensions, and auto-tagging logic only.
Motivation
Entries currently have kind (Manual, PreCompact, Auto) but no user-defined categorization. As the store grows, users need to:
Filter context by project, language, or topic
Preserve important entries from eviction
Scope SessionStart injection to relevant domains
Importance detection (#49) will auto-generate category tags (corrective, reinforcing, stateful, decisive) — this issue's tag infrastructure supports that.
Scope
In Scope
CLI Surface:
cf save --kind auto --tags "rust,security"# manual tags at save time
cf query --tags "rust" --format text # filter to tagged entries
cf query --tags "rust,auth" --tag-match all # AND logic (default)
cf query --tags "rust,auth" --tag-match any # OR logic
cf tags list # all tags with entry counts
cf tags rename <old><new># rename a tag
cf tags delete <tag># remove tag (entries kept)
cf tags merge <tag1><tag2># combine into one
Summary
Add tag management CLI commands and trait extensions for user-defined and auto-generated entry tags. Enables filtered queries, organized context retrieval, and integration with importance detection category labels.
Note: Tag tables (
tags,entry_tags, indexes) are created in #12 (Schema v2 migration). This issue covers the CLI surface, trait extensions, and auto-tagging logic only.Motivation
Entries currently have
kind(Manual, PreCompact, Auto) but no user-defined categorization. As the store grows, users need to:Importance detection (#49) will auto-generate category tags (corrective, reinforcing, stateful, decisive) — this issue's tag infrastructure supports that.
Scope
In Scope
CLI Surface:
Trait Extensions:
Auto-Tagging (Phased):
largefor entries >8,000 tokensAssembly Integration:
LruPreserveTagged— evict oldest untagged firstContextEntry Extension:
Out of Scope
Acceptance Criteria
cf save --tagspersists tags on new entriescf query --tagsfilters results by tag (AND and OR modes)cf tags list/rename/delete/mergesubcommands work correctlyDependencies
Complexity: Medium
Trait extensions, CLI plumbing, auto-tagging logic. No schema work needed.