Native Shell
Native Shell:AI 生成的 UI,在你的应用中原生呈现,覆盖每个平台。iOS、Android、macOS、Windows 与 Linux 上的应用、GPUI 应用与网页在运行时加载已签名、沙箱隔离的 TSX 模块并绘制 th
AI 翻译
Local natural-language command router that converts AI intent into whitelisted Git and workflow actions.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Local operator layer for the MQ stack.
mq-hal gives a human-friendly command surface for local repo status, stack
status, release status, runtime health, model-routing evidence, mqobsidian context readiness, and safe
natural-language routing through Ollama.
Live site: https://mcamner.github.io/mq-hal/
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.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
mq-hal route
Optional local model setup:
brew install ollama
brew services start ollama
ollama pull qwen3.5:9b
mq-hal brief # repo operator brief
mq-hal stack --verification --json # cockpit + existing changed-file evidence
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
mq-hal route inspect — read-only routing decision, owned by mq-agent:
$ mq-hal route inspect "Review docs"
Decision: route-c0ba572d8331a155
Task class: docs-review
Risk: low
Route: local-shadow
Reasons: read-only, deterministic-verification-available
Escalate: schema-invalid, verification-failed, confidence-below-threshold, policy-requires-cloud
Rendered from live command output by tools/generate_screenshots.py, never edited by hand.
| Area | Commands |
|---|---|
| Repo brief | mq-hal brief, mq-hal audit --verification, 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 |
| Model routing | mq-hal route, mq-hal route inspect, mq-hal route history, mq-hal route accuracy, mq-hal route readiness, mq-hal route divergence, mq-hal route explain |
| Provenance, compatibility | mq-hal provenance, mq-hal compatibility (each with --json) |
| 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> |
| Planning | mq-hal plan (local), mq-hal code-plan --provider openai (cloud) |
| Router | mq-hal "prompt", --raw-intent, --explain-intent, --confirm |
The canonical command list is docs/COMMAND_SURFACE.md:
it is the single source of truth and release-check.sh fails if it drifts from
bin/mq-hal. docs/hal-command-surface.md is a
longer human reference and is not drift-checked.
prompt -> local model or deterministic parser -> JSON intent -> Python router
Rules:
fix-doctor prints repair plans but executes nothingexecute dry-runs by default and requires --confirmcode-plan reaches an external provider, and only when --provider names one — no configuration moves another command across that linemq-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.route reads decisions and verified aggregate evidence from mq-agent.brain previews mqobsidian and local HAL memory state.dashboard combines stack, brain, release, runtime, routing, timeline, and alerts.The interactive dashboard reports refresh, back, invalid-choice, and exit
status directly. Confirmed open and fix actions report completion or the
underlying non-zero exit status.
The main operator surfaces use the versioned mq.feedback.v1 model. Status is
always one of PASS, WARN, FAIL, SKIPPED, or UNAVAILABLE; actionable
results include an advisory next_action with command and safety metadata.
These views summarize state; they do not publish, tag, review code, write semantic memory, or define new gates.
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.
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-haldocs/COMMAND_SURFACE.mddocs/hal-command-surface.mdDo not put HAL business logic in macos-scripts; expose it through a thin
mqlaunch bridge instead.
Current release is v2.6.1 (Stack Evidence Views): read-only views over the action ledger, changed-file verification, stack compatibility, route readiness and feedback, with routing still local-first. Full release map: ROADMAP.md.
MIT