MCPcopy Create free account
hub / github.com/anthropics/claude-code / _record

Function _record

plugins/security-guidance/hooks/diffstate.py:65–70  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

63 stale paths so over-retention is harmless, just wasteful.
64 """
65 def _record(state):
66 paths = state.setdefault("touched_paths", [])
67 if file_path not in paths:
68 paths.append(file_path)
69 if len(paths) > 200:
70 del paths[:len(paths) - 200]
71 with_locked_state(session_id, _record)
72
73

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected