Skip to content

chore(cli): remove the shell hook that never switched stores - #1623

Merged
ajianaz merged 1 commit into
developfrom
chore/remove-shell-hook
Nov 1, 2026
Merged

ajianaz merged 1 commit into
developfrom
chore/remove-shell-hook

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

What

  • Removes the uteke hook <shell> scripts (crates/uteke-cli/assets/shell/, scripts/shell/) and docs/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 hook stays as a hidden command that prints a comment (a no-op under eval / | source) and a one-line note on stderr asking the user to remove it. Existing shell configs keep working.
  • docs/configuration.md and docs/multi-agent.md now point to the way that already works: [store] path = "./.uteke" in the project's .uteke/uteke.toml.
  • The skill coverage test skips hidden commands.

Why

The hook exported UTEKE_PROJECT_STORE on cd, 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.db silently 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, --store or UTEKE_HOME. hook is not in the CORE contract.

Testing

  • cargo test --workspace: 1364 passed, 0 failed. cargo clippy --workspace --all-targets -D warnings and cargo fmt --check clean.
  • Manual: in a temp dir with .uteke/uteke.toml containing [store] path = "./.uteke", uteke stats created .uteke/uteke.db (project store used). eval "$(uteke hook zsh)" exits 0 and prints only the stderr note; uteke --help no longer lists hook.

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.
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

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