MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / compact

Method compact

claw-code/src/transcript.py:15–17  ·  view source on GitHub ↗
(self, keep_last: int = 10)

Source from the content-addressed store, hash-verified

13 self.flushed = False
14
15 def compact(self, keep_last: int = 10) -> None:
16 if len(self.entries) > keep_last:
17 self.entries[:] = self.entries[-keep_last:]
18
19 def replay(self) -> tuple[str, ...]:
20 return tuple(self.entries)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected