The project name Claude Code gives a working directory, and the
project_path ingest stores for it: every character that is not an ASCII
letter or digit becomes -. The MCP server applies the same rule itself,
because it talks to the daemon over HTTP without depending on core.
The project directory of a transcript path: the component after the
last projects component, mirroring adapters::project_slug. The last
one is taken because a home directory may itself contain a projects
segment, while nothing below the project directory is ever named that.