research-hub-multi-ai
Skill68 starsChanged 7 months agoMITView on GitHub
Research-domain router that writes `.coord/multi_ai_plan.md` when one round needs two or more bounded delegates and touches `.research/`, `.paper/`, Zotero, Obsidian, or NotebookLM artifacts. Supported leaves are `codex-delegate` and `antigravity-delegate`; long-context, CJK, judgment, and review work stay with the primary model. Use the generic agent-collab task splitter for non-research work.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- research-hubSkill
- gap-to-topicSkill
- literature-triage-matrixSkill
- notebooklm-brief-verifierSkill
- paper-memory-builderSkill
- paper-summarizeSkill
- research-context-compressorSkill
- research-design-helperSkill
- research-hubSkill
- research-project-orienterSkill
- research-workflow-orchestratorSkill
- zotero-library-curatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
Before writing a plan:
- Distinctive: line 47
Verify every named leaf skill and wrapper exists.
- Very specific: line 48
Run the leaf's documented preflight (codex --version or agy --version).
- Very specific: line 49
If the plan calls research-hub, run research-hub doctor.
- Very specific: line 53
If the research-hub CLI is missing, do not emit commands that call it.
- Very specific: line 58
Write .coord/multi_ai_plan.md, or a plan-id suffixed sibling when another plan is active.
- Distinctive: line 75
Wait for dependencies before launching a task.
- Very specific: line 76
Read the exact declared result_artifact:
- Distinctive: line 94
Use only a CLI returned by current detection and compatible with the requested task.
- Distinctive: line 101
No fabricated citations, metadata, tool output, or completion status.
- Distinctive: line 104
No overlapping write ownership.
- Very specific: line 105
Do not overwrite an active plan with a different plan_id.
- Distinctive: line 106
Do not mutate remote libraries, overwrite vault notes, publish, merge, or delete without the workflow's human gate.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
research-hub Multi-AI Router
This is a planning router. It writes a coordination plan and per-leaf briefs; the supported leaves execute. The current leaf set is:
codex-delegate: implementation-heavy or repetitive work with a structuredresult.jsoncontract.antigravity-delegate: narrowly scoped, non-honesty-critical mechanical work with anagy_result_*.mdcontract.
The archived Gemini delegate is not a supported leaf. Long-context reading, CJK drafting, scientific judgment, governance, and final review stay with the primary model unless the operator has separately verified another adapter.
When to invoke
Invoke only when a single round needs two or more delegates and at least one task operates on research-hub artifacts. Examples:
- Codex scaffolds tests while Antigravity applies an already-approved metadata transform to a disjoint fixture subtree.
- Two independent Codex tasks prepare separate adapters, followed by primary model reconciliation.
- Antigravity performs a bounded transcription, then Codex consumes the verified artifact to generate a deterministic report.
For one delegate, use its leaf skill directly. For generic, non-research
multi-agent work, use agent-collab-workspace:agent-task-splitter.
Do not invoke
- One Codex or Antigravity task.
- A single
research-hub auto --llm-cli ...run. - Translation, long-form CJK drafting, literature judgment, security, governance, or final review. Keep those with the primary model.
- Work whose delegates would edit overlapping files in parallel.
Prerequisite and health checks
Before writing a plan:
- Verify every named leaf skill and wrapper exists.
- Run the leaf's documented preflight (
codex --versionoragy --version). - If the plan calls
research-hub, runresearch-hub doctor. - Record an unavailable leaf as a blocker. Never silently substitute an unverified executor.
If the research-hub CLI is missing, do not emit commands that call it. Plans that use only healthy delegate wrappers may proceed.
Output artifact
Write .coord/multi_ai_plan.md, or a plan-id suffixed sibling when another plan
is active. Use references/multi_ai_plan_template.md.
Every task declares:
- a unique id and agent (
codex,antigravity, orprimary); - a brief path;
- dependencies;
- verifiable success criteria;
- its exact
result_artifactpath and explicitresult_contractdiscriminator; - in-scope paths and a stop condition.
The router writes each non-inline brief. Leaves never edit the plan and never commit or push.
Reconciliation
- Wait for dependencies before launching a task.
- Read the exact declared
result_artifact:- Codex: wrapper
.result.jsonplus diff and tests. - Antigravity: bounded
agy_result_*.mdplus independently verified file and sentinel checks.
- Codex: wrapper
- Compare actual files changed and evidence against task and round criteria.
- Reject scope drift or unsupported completion claims.
- Append a new fix-up task rather than mutating completed task history.
- Primary model performs judgment, final review, and any commit/push.
Single-LLM research-hub routing
The --llm-cli option is a research-hub runtime feature, not a router decision:
research-hub auto "TOPIC" --with-crystals --llm-cli codex
python -c "from research_hub.auto import detect_llm_cli; print(detect_llm_cli())"Use only a CLI returned by current detection and compatible with the requested task. Do not preserve a retired model route merely because an old command still appears in history.
Guardrails
- At least two delegate tasks per router plan.
- No fabricated citations, metadata, tool output, or completion status.
- Antigravity receives only bounded mechanical work; it never reviews or makes scientific/governance decisions.
- No overlapping write ownership.
- Do not overwrite an active plan with a different
plan_id. - Do not mutate remote libraries, overwrite vault notes, publish, merge, or delete without the workflow's human gate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

