Documentation Index
Fetch the complete documentation index at: https://hubify.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Papers API
Papers are the long-form research artifacts your lab produces. The Papers API surfaces the lab’s paper roster and exposes the 5-round publish loop that walks a draft from rough text to arXiv-ready submission. Paper content (sections, figures, citations, draft history) lives in Convex and is read directly by the web app. The HTTP surface today covers two operations: listing papers for a lab, and triggering the publish loop on a paper that already exists.List Papers
Returns every paper in a lab.Convex ID of the lab.
Array of paper documents (Convex shape from
papers.listByLab).Number of papers returned.
Auth and rate limiting
Requires an API key with read access to the lab. Subject to the read rate limit. Returns400 if labId is missing, 403 if the key cannot access the lab.
Run the Publish Loop
Runs the 5-round publish pipeline against an existing paper. The loop fans out reviews (one Claude review per round, plus a multi-model fan-out in round 2) and persists each review to the paper. Failures inside a round are recorded and the loop continues.Convex ID of the paper to run the loop against.
Abstract text passed to each reviewer. If omitted, reviewers see an empty abstract (only useful for very early drafts).
Number of rounds to run. Capped at 5. Use a smaller number to run an early stage in isolation (for example,
rounds: 2 to stop after the cross-model review).Round map
| # | Name | What runs |
|---|---|---|
| 1 | Mechanical QA | Single Claude review checking structure, citations, figure references |
| 2 | Cross-Model Review | Multi-model fan-out (Claude + GPT + Gemini + Grok); each model files an independent review |
| 3 | Houston Method | Single Claude review applying the Houston Method critique pass |
| 4 | Format Check | Single Claude review for journal formatting and section ordering |
| 5 | arXiv Prep | Single Claude review for arXiv submission readiness |
The paper the loop ran against.
Per-round results, in execution order.
Auth and rate limiting
Requires an API key with write access. Subject to the write rate limit. The loop runs synchronously: round 2 (multi-model fan-out) is the slowest stage. Expect total request time on the order of minutes, not seconds.Reading the reviews
The loop persists reviews to Convex; this endpoint returns counts, not review bodies. Read the actual review text from the paper detail view in the web app, or via the lab’spaperReviews Convex query.