project

package
v0.36.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package project resolves the stable identity of the workspace a session belongs to. Agentic memory is stored in a single database shared by every workspace on the machine, so rows need a project key to be recallable workspace-by-workspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(dir string) string

Resolve returns the canonical project key for a working directory.

The key is the directory's absolute, symlink-resolved path. macOS in particular hands out /var and /tmp paths that resolve to /private/..., and an unresolved path would split one workspace's memory into two projects.

Note that a git worktree resolves to its own path, not the main repository root, so a task worktree keeps a memory pool separate from the repo it was branched from. Change this function to fold worktrees into their parent repo.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL