Repository navigation
chore(cli): remove the shell hook that never switched stores - #1623
Merged
Merged
Conversation
uteke hook <shell> exported UTEKE_PROJECT_STORE on cd, but no binary reads that variable, so the hook never changed which store was used. A per-project store already works through .uteke/uteke.toml [store].path (read from the current directory), --store or UTEKE_HOME. The hook scripts, docs/shell-hooks.md and the doc references are removed. The command stays hidden and prints a no-op comment plus a note on stderr, so an existing eval "$(uteke hook zsh)" line keeps working.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
uteke hook <shell>scripts (crates/uteke-cli/assets/shell/,scripts/shell/) anddocs/shell-hooks.md, plus the references to them in the docs sidebar, getting-started, index feature card, CLI reference, multi-agent guide, both skill copies, the onboard help and AGENT.md.uteke hookstays as a hidden command that prints a comment (a no-op undereval/| source) and a one-line note on stderr asking the user to remove it. Existing shell configs keep working.docs/configuration.mdanddocs/multi-agent.mdnow point to the way that already works:[store] path = "./.uteke"in the project's.uteke/uteke.toml.Why
The hook exported
UTEKE_PROJECT_STOREoncd, but no uteke binary reads that variable, so it never switched stores while the docs said it did. Making the CLI honour it would let any cloned repo with a.uteke/uteke.dbsilently take over the store (planted memories, writes into the repo), which needs a trust list. That is not worth it, because a per-project store already works through.uteke/uteke.toml,--storeorUTEKE_HOME.hookis not in the CORE contract.Testing
cargo test --workspace: 1364 passed, 0 failed.cargo clippy --workspace --all-targets -D warningsandcargo fmt --checkclean..uteke/uteke.tomlcontaining[store] path = "./.uteke",uteke statscreated.uteke/uteke.db(project store used).eval "$(uteke hook zsh)"exits 0 and prints only the stderr note;uteke --helpno longer listshook.