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

Method touch

core/memory_v2.py:119–125  ·  view source on GitHub ↗

Mark file as recently used without returning content.

(self, file_path: str)

Source from the content-addressed store, hash-verified

117 return None
118
119 def touch(self, file_path: str):
120 """Mark file as recently used without returning content."""
121 item = self._files.get(file_path)
122 if item:
123 item.last_used_at = int(time.time())
124 item.last_used_turn = self._turn
125 item.access_count += 1
126
127 def remove(self, file_path: str):
128 """Remove a file from working memory."""

Calls 1

getMethod · 0.45