MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / update_context

Function update_context

s19_mcp_plugin/code.py:953–957  ·  view source on GitHub ↗
(context: dict, messages: list)

Source from the content-addressed store, hash-verified

951
952
953def update_context(context: dict, messages: list) -> dict:
954 memories = ""
955 if MEMORY_INDEX.exists():
956 memories = MEMORY_INDEX.read_text()[:2000]
957 return {"memories": memories}
958
959
960# ── Agent Loop (s19: dynamic tool pool, no prompt cache) ──

Callers 2

agent_loopFunction · 0.70
code.pyFile · 0.70

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected