Skip to content

Move the session's corpus with /cd, so /reindex follows it - #31

Merged
daniel-rossier merged 1 commit into
mainfrom
session-cd
Nov 23, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
session-cd

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

Launched in opencn-ng, indexing linux/linux meant quitting and relaunching
there. /cd

now rebinds the corpus -- index, history, memories, prompt
and rules -- to the one a launch in would pick, and /reindex right after
rebuilds that tree. A directory its corpus excludes is not part of it, so
/cd linux federates the corpora below linux/ instead of landing back on
opencn-ng.

The tools stay in the launch directory: its sandbox already holds every tree
/cd may enter, and a target outside it is refused. The corpus's own chunks are
prefixed with its path from there, as a federated corpus's are.

Launched in opencn-ng, indexing linux/linux meant quitting and relaunching
there. /cd <dir> now rebinds the corpus -- index, history, memories, prompt
and rules -- to the one a launch in <dir> would pick, and /reindex right after
rebuilds that tree. A directory its corpus excludes is not part of it, so
/cd linux federates the corpora below linux/ instead of landing back on
opencn-ng.

The tools stay in the launch directory: its sandbox already holds every tree
/cd may enter, and a target outside it is refused. The corpus's own chunks are
prefixed with its path from there, as a federated corpus's are.
@daniel-rossier
daniel-rossier merged commit d9ef105 into main Nov 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant