MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / add_to_project

Method add_to_project

core/memory_v2.py:581–583  ·  view source on GitHub ↗

Add a file to project memory (never evicted).

(self, file_path: str, content: str, is_protected: bool = False)

Source from the content-addressed store, hash-verified

579 self.working.add(key, content, tokens)
580
581 def add_to_project(self, file_path: str, content: str, is_protected: bool = False):
582 """Add a file to project memory (never evicted)."""
583 self.project.add(file_path, content, is_protected)
584
585 def store_in_longterm(self, file_path: str, content: str):
586 """Index a file in long-term (embedding) memory."""

Callers 3

__init__Method · 0.80

Calls 1

addMethod · 0.45