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

Function read_codeymd

core/codeymd.py:16–29  ·  view source on GitHub ↗
(start: str = None)

Source from the content-addressed store, hash-verified

14 return None
15
16def read_codeymd(start: str = None) -> str:
17 path = find_codeymd(start)
18 if not path:
19 return ""
20 try:
21 content = path.read_text(encoding="utf-8", errors="replace").strip()
22 if "Write a concise CODEY.md" in content or "Analyze this project" in content:
23 return ""
24 if str(path) not in _codeymd_cache:
25 success(f"Loaded CODEY.md from {path}")
26 _codeymd_cache[str(path)] = True
27 return content
28 except Exception:
29 return ""
30
31def write_codeymd(content: str, directory: str = None) -> str:
32 directory = Path(directory or os.getcwd())

Callers 4

handle_commandFunction · 0.90
__init__Method · 0.90
run_agentFunction · 0.90
_get_project_blockFunction · 0.90

Calls 2

successFunction · 0.90
find_codeymdFunction · 0.85

Tested by

no test coverage detected