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

Method read_inbox

s16_team_protocols/code.py:356–363  ·  view source on GitHub ↗
(self, agent: str)

Source from the content-addressed store, hash-verified

354 f"({msg_type}) {content[:50]}\033[0m")
355
356 def read_inbox(self, agent: str) -> list[dict]:
357 inbox = MAILBOX_DIR / f"{agent}.jsonl"
358 if not inbox.exists():
359 return []
360 msgs = [json.loads(line) for line in inbox.read_text().splitlines()
361 if line.strip()]
362 inbox.unlink() # consume: read + delete
363 return msgs
364
365
366BUS = MessageBus()

Callers 2

consume_lead_inboxFunction · 0.45
runFunction · 0.45

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected