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

Method tick

core/memory_v2.py:559–567  ·  view source on GitHub ↗

Advance the turn counter, run LRU eviction, and tick working memory. Call once at the start of each agent turn.

(self)

Source from the content-addressed store, hash-verified

557 # ── Turn management ──────────────────────────────────────────────────────
558
559 def tick(self):
560 """
561 Advance the turn counter, run LRU eviction, and tick working memory.
562 Call once at the start of each agent turn.
563 """
564 self._turn += 1
565 self.working.tick()
566 self.working.evict_stale()
567 self.episodic.log("tick", f"Turn {self._turn}")
568
569 def clear(self):
570 """Clear all working memory and reset the rolling summary."""

Callers 8

run_agentFunction · 0.45
test_tick_logs_actionMethod · 0.45
setUpMethod · 0.45

Calls 2

logMethod · 0.80
evict_staleMethod · 0.45

Tested by 7

test_tick_logs_actionMethod · 0.36
setUpMethod · 0.36