Repository navigation
feat: project-aware memory tagging for noise-free recall - #616
Merged
Merged
Conversation
Add automatic project detection and tag-based scoping to all memory
operations. This prevents noise when recalling — agents only see memories
relevant to the current project.
Changes:
- SKILL.md: Add 'Project-Aware Memory (MANDATORY)' section with rules,
examples, and rationale for project:{name} tagging
- pi-memory-provider extension: Auto-detect project from cwd and user
prompt text, filter recall by --tags project:<name>, auto-tag remember
commands with project:<name>
- Hermes hook extract (external): Auto-detect project from session
messages file paths, add project:<name> tag on auto-extract
- Hermes hook recall (external): Auto-detect project from user_message,
filter recall by --tags project:<name>
Detection strategies:
1. File paths: /repos/<project>/ pattern matching
2. CWD: walk up from current directory to known project roots
3. Majority vote when multiple projects mentioned in session
No Uteke binary changes required — all implemented via existing --tags
flag support.
🔍 Cora AI Code Review🟡 Warning (1)
Review powered by cora-cli · BYOK · MIT |
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
…gging feat: project-aware memory tagging for noise-free recall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When agents work across multiple projects (Bond, Corin, Uteke, etc.), all memories are stored in a single namespace without project-level scoping. This causes noise during recall — querying "fix auth bug" while working on project Bond returns results from project Corin's auth system, wasting context tokens and creating confusion.
Solution
Tag-based project scoping using existing
--tagsflag support. No Uteke binary changes required.Changes
1. SKILL.md — Project-Aware Memory (MANDATORY) section
project:<name>2. pi-memory-provider extension — auto project detection
cwd(walks up to known project root directories)--tags project:<name>/uteke-savecommand auto-tags withproject:<name>3. Hermes hooks (external, applied separately)
uteke-extract: Scans session messages for/repos/<project>/paths, auto-tags extracted factsuteke-recall: Detects project from user_message, filters recall by--tags project:<name>Detection Strategy
/repos/<project>/pattern in text/opt/data/repos/,~/repos/)Example Flow
What's NOT changed