Skip to content

MCamner/mq-hal

Repository files navigation

mq-hal

Local operator layer for the MQ stack.

License: MIT Version

mq-hal gives a human-friendly command surface for local repo status, stack status, release status, runtime health, mqobsidian context readiness, and safe natural-language routing through Ollama.

Live site: https://mcamner.github.io/mq-hal/

Operator Role

mqlaunch -> mq-hal -> mq-agent / mq-mcp / repo-signal / mqobsidian

mq-hal shows and routes. It does not own stack gates, release decisions, review logic, semantic memory, or durable truth.

Source-of-truth split:

  • mq-agent owns orchestration, stack gates, release checks, and context export.
  • mq-mcp owns bounded tool runtime, review contracts, and learning tools.
  • repo-signal owns repo health, readiness, README, and docs scoring.
  • mqobsidian owns durable memory, truth exports, and context compression.
  • mqlaunch owns terminal menus and workflow entrypoints.

Quick Start

git clone https://github.com/MCamner/mq-hal.git ~/mq-hal
cd ~/mq-hal
./install.sh

mq-hal version
mq-hal config-check
mq-hal brief
mq-hal stack
mq-hal dashboard

Optional local model setup:

brew install ollama
brew services start ollama
ollama pull qwen3:4b-instruct

30 Second Demo

mq-hal brief                       # repo operator brief
mq-hal stack --json                # stack cockpit summary from mq-agent
mq-hal context                     # mqobsidian context-pack readiness
mq-hal runtime                     # local service health
mq-hal --explain-intent "kör tester i mq-hal"
mq-hal --confirm "kör doctor"      # confirmation-gated routing

Through mqlaunch:

mqlaunch hal
mqlaunch hal brief
mqlaunch hal release-brief
mqlaunch hal audit
mqlaunch hal repo-status
mqlaunch hal timeline

Main Command Groups

Area Commands
Repo brief mq-hal brief, mq-hal audit, mq-hal repo-status, mq-hal ci
Stack mq-hal stack, mq-hal stack-status, mq-hal status
Release mq-hal release, mq-hal release-brief
Brain/context mq-hal brain, mq-hal context
Runtime mq-hal runtime, mq-hal models, mq-hal model-status
Dashboard mq-hal, mq-hal dashboard
Session memory mq-hal session, mq-hal last, mq-hal timeline
Operator action mq-hal next, mq-hal fix, mq-hal open <file>
Router mq-hal "prompt", --raw-intent, --explain-intent, --confirm

Full command truth lives in docs/COMMAND_SURFACE.md and docs/hal-command-surface.md.

Safety Boundary

prompt -> local model or deterministic parser -> JSON intent -> Python router

Rules:

  • the model never runs shell directly
  • unknown commands are refused
  • unsafe shell operators are rejected
  • write or destructive actions require explicit confirmation
  • fix-doctor prints repair plans but executes nothing
  • execute dry-runs by default and requires --confirm
  • session memory is local and can be disabled

See docs/INTENT_CONTRACT.md.

Operator Views

mq-hal is intentionally read-heavy:

  • stack reads mq-agent stack cockpit --json when available.
  • release reads mq-agent stack release-check --json.
  • context reads the local mqobsidian context-pack scaffold.
  • runtime checks local service health for Ollama, mq-mcp, GitHub, and brain.
  • brain previews mqobsidian and local HAL memory state.
  • dashboard combines stack, brain, release, runtime, timeline, and alerts.

These views summarize state; they do not publish, tag, review code, write semantic memory, or define new gates.

Natural-Language Routing

Examples:

mq-hal "visa git status i repo-signal"
mq-hal --raw-intent "kör doctor"
mq-hal --explain-intent "kör tester i mq-hal"
mq-hal --confirm "skapa branch för release"
mq-hal --no-ai "visa git status i mq-agent"

Configured repos live in config/repos.json. The router resolves names to known repo paths and only runs allowlisted actions.

Development

Keep mq-hal small and predictable. Before opening a PR, run:

./release-check.sh
mq-hal config-check

When adding a command, update:

  • bin/mq-hal
  • docs/COMMAND_SURFACE.md
  • docs/hal-command-surface.md
  • smoke tests
  • release notes and version files when releasing

Do not put HAL business logic in macos-scripts; expose it through a thin mqlaunch bridge instead.

Docs

License

MIT

About

Local natural-language command router that converts AI intent into whitelisted Git and workflow actions.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors