MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _transcripts_root

Function _transcripts_root

src/agent/transcript.py:62–72  ·  view source on GitHub ↗

Return ``~/.clawcodex/transcripts/`` (created if absent). Mirrors the directory convention that ``typescript/src/utils/sessionStorage.ts`` uses for sidechain transcripts; the Python repo's home-relative ``~/.clawcodex`` matches the bash background dir at `` /clawcodex-bg`` philo

()

Source from the content-addressed store, hash-verified

60
61
62def _transcripts_root() -> Path:
63 """Return ``~/.clawcodex/transcripts/`` (created if absent).
64
65 Mirrors the directory convention that ``typescript/src/utils/sessionStorage.ts``
66 uses for sidechain transcripts; the Python repo's home-relative
67 ``~/.clawcodex`` matches the bash background dir at
68 ``<tmp>/clawcodex-bg`` philosophically (per-user, not per-workspace).
69 """
70 root = Path.home() / ".clawcodex" / "transcripts"
71 root.mkdir(parents=True, exist_ok=True)
72 return root
73
74
75def get_agent_transcript_path(agent_id: str) -> str:

Callers 3

get_workflow_run_pathFunction · 0.85
ensure_transcript_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected