-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Common problems and how to fix them.
Run these before anything else:
mq-hal version # confirm the installed version
mq-hal config-check # validate config/repos.json
mq-hal doctor # system health check
mq-hal stack-status # full tool-chain stateCause: bin/mq-hal is not on $PATH.
Fix:
# Add to ~/.zshrc or ~/.bash_profile:
export PATH="$HOME/mq-hal/bin:$PATH"
source ~/.zshrcOr reinstall:
./install.shSee docs/INSTALL.md for full PATH setup steps.
Cause: The config file is missing, empty, or malformed.
Fix:
mq-hal config-check # shows which field is invalid
cat config/repos.json # inspect the fileMinimum valid config:
{
"default_repo": "my-repo",
"repos": {
"my-repo": "~/my-repo"
}
}Cause: Ollama is not installed or the service is not running.
Symptoms: Commands fall back to deterministic output, or print a warning about model unavailability.
Fix:
ollama serve # start the Ollama daemon
mq-hal model-status # check which models are availableAll HAL commands work without Ollama — they use deterministic fallback output.
Pass --no-ai to force the fallback explicitly:
mq-hal doctor --no-ai
mq-hal brief --no-aiCause: The requested Ollama model is not pulled locally, or the profile name is wrong.
Fix:
mq-hal models # list configured profiles
ollama pull qwen3:4b # pull the missing model
mq-hal model-test # verify all configured models respondCause: Local changes conflict with the upstream branch, or the repo has a detached HEAD.
Fix:
git status # check for uncommitted changes
mq-hal update # shows a preview before pulling
mq-hal update --confirm # pull after reviewing the previewFor a clean reinstall:
git fetch origin
git reset --hard origin/main
./install.shCause: release-check.sh found a GitHub release tag for the current
VERSION. This means the version was already released.
Fix: Bump VERSION to the next patch level, update CHANGELOG.md,
README.md, and docs/index.html, then re-run release-check.sh.
Cause: A command was added to bin/mq-hal without a matching entry in
docs/COMMAND_SURFACE.md.
Fix: Add the command to docs/COMMAND_SURFACE.md (and optionally
docs/hal-command-surface.md), then re-run release-check.sh.
Cause: A regression in a script, or a missing dependency in the test environment.
Fix:
./tests/<failing-smoke>.sh # run the specific test for details
python3 -m py_compile scripts/<script>.py # check Python syntax
mq-hal doctor # check runtime dependenciesCause: ~/.mq-hal/ directory is not writable, or --no-memory was
passed.
Fix:
ls -la ~/.mq-hal/ # check the directory exists and is writable
mq-hal memory-path # print the active session file path
mq-hal session # read current session (empty = nothing saved yet)Override the state directory for testing:
MQ_HAL_STATE_DIR=/tmp/hal-test mq-hal brief --sampleCause: The repo has not been indexed yet.
Fix:
mq-hal index <repo-name> # build the local index
mq-hal search "your query" # retry after indexing-
mq-hal --help— command overview -
docs/COMMAND_SURFACE.md— full command registry -
docs/INSTALL.md— installation and PATH setup -
docs/INTENT_CONTRACT.md— intent schema and safety classes - GitHub issues: https://github.com/MCamner/mq-hal/issues