Reusable multi-repo HQ orchestration toolkit for Codex-driven workspaces.
This project extracts the reusable parts of the linoleumHQ orchestration setup into a separate project.
Use it to scaffold a new HQ workspace that can:
- register worker agents for selected repo directories
- run worker Codex sessions in tmux
- route user requests through HQ
- maintain handoff and reply state on disk
- distinguish between in-flight waiting and items that need HQ attention now
From this toolkit directory:
node ./bin/hq-toolkit.mjs init /path/to/my-hqThis will scaffold:
hqpackage.jsonscripts/docs/state/AGENTS.md.gitignore
Then inside the target workspace:
source ~/.zshrc
hq onboard repo-agent /path/to/my-hq/some-repo worker-role --owns "developer experience"
hq run "investigate build failures"
hq wait
hq needs-attention- The generated workspace stores only the HQ coordinator by default.
- Worker repos are added later with
hq onboardorhq register. ownsis free-form human-language routing guidance, not a strict enum.hq waitreports whether HQ is waiting on outstanding handoffs.hq needs-attentionreports replies or blocked handoffs that need review.
- This repository is the toolkit source of truth, not a generated HQ workspace.
- The current template includes the HQ command surface for
run,ask,reply,inbox,trace,wait, andneeds-attention. template/contains the scaffolded workspace layout, scripts, docs, and initial state files used byhq-toolkit init.- The configured git remote for this repository is
https://github.com/ebadac/hq-toolkit.git.