Expand description
User-level default project binding: a session-independent binding any Claude
Code session inherits when nothing more specific resolves. Set by
tracevault project switch --user (or a no-session project switch); read by
project status as the lowest-precedence tier, and by the capture path:
commands::stream::capture_project reads it as its last tier, so this
store can decide the project an event is attributed to. Since repo-less
ingest landed it can do more than that — for a session with no repo
binding it is the sole reason the event ships at all (see
commands::stream::attribution_for). Lets a container bind its project
before Claude launches — no session id required, which is exactly why it
is the tier that carries pre-clone runs.
Functions§
- clear
- Remove the user-level default binding (ok if already absent).
- default_
project_ path dirs::config_dir()/tracevault/user_project.toml— besidecredentials.json.- load
- Load the user-level default binding;
Noneif unset or malformed. - save
- Persist the user-level default binding, creating the config dir if needed.