ProjectPathEncoder

works.iterative.claude.core.log.ProjectPathEncoder

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def encode(path: Path): String

Encodes an absolute filesystem path to Claude's project directory name format.

Encodes an absolute filesystem path to Claude's project directory name format.

Claude stores conversation logs in a projects directory, using a path-encoded name for each project subdirectory. The encoding replaces every / separator with -, so /home/user/project becomes -home-user-project.

Note: this encoding is lossy when original path segments contain - characters. The symmetric decoder (ProjectPathDecoder.decode) cannot unambiguously recover those paths.

Examples:

  • os.Path("/home/mph/ops/kanon")"-home-mph-ops-kanon"
  • os.Path("/")"-"
  • os.Path("/a-b/c")"-a-b-c"

Value parameters

path

the absolute filesystem path to encode

Attributes