Skip to content

kit setup/doctor: ensure mise-installed tools are reachable (activate mise in shell profile, consented) #64

Closed

Description

@sandstream

The recurring friction: kit install/kit setup provision tools via mise, but if mise isn't activated in the user's shell, the installed tools aren't on PATH → command not found: infisical / snyk / etc. Users then think the install failed. (kit already resolves tools mise-first internally via resolveToolBin, but the user's own interactive shell still can't reach them.)

Fix (consented, never silent — same pattern as memory-hooks / agent-config permission writes):

  • kit doctor — detect when mise is installed but not activated in the shell profile (no mise activate in .zshrc/.bashrc), and when mise-managed tools therefore aren't on PATH. Report it as a fixable finding.
  • kit setup — at the end, OFFER to append eval "$(mise activate <shell>)" to the shell profile (prompt / --activate-mise), so installed tools are reachable. Idempotent; never clobber.
  • Surface the exact missing-tool→fix command in the readiness output (ties to the scanner-readiness improvement).

This is the actual root cause behind most "I installed it but it says not found" reports. On-brand: kit guides the env into a working state, consented, deterministic. (Observed live while dogfooding kit scan + Infisical CLI.)

Activity

  1. added
    enhancement
    on Jun 23, 2026
  2. sandstream commented on Jun 23, 2026

    @sandstream
    OwnerAuthor

    Dogfooding learning (2026-06-23): eval "$(mise activate zsh)" in the shell profile is fragile — it silently no-ops if mise itself isn't on PATH yet when the profile runs (e.g. no brew shellenv set before it, common on fresh Apple-Silicon setups). The user added the activate line and still hit command not found: infisical in a new window.

    Robust fix kit should write instead: put mise's shims dir directly on PATH —
    export PATH="$HOME/.local/share/mise/shims:$PATH" — which has no dependency on mise resolving or the activate hook firing (the shims are plain executables). So kit setup's consented profile edit should prefer the shims-dir line (and/or ensure brew shellenv/mise-bin is on PATH before any mise activate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions