NanoResearch is an end-to-end autonomous AI research engine. In Codex integration mode, Codex should drive the existing pipeline rather than inventing a second workflow.
Given a research topic, NanoResearch should produce a resumable research workspace containing:
- literature artifacts
- planning artifacts
- runnable experiment code when needed
- execution or literature-analysis evidence
- figures
- a LaTeX paper draft
- review output and final exported assets
NanoResearch uses a 9-stage pipeline:
IDEATION -> PLANNING -> SETUP -> CODING -> EXECUTION -> ANALYSIS -> FIGURE_GEN -> WRITING -> REVIEW
Stage meanings:
ideation: literature search, gap finding, hypothesis or theme extractionplanning: experiment blueprint or survey blueprint generationsetup: environment and resource preparationcoding: runnable experiment generationexecution: local or SLURM-backed experiment executionanalysis: structured evidence extraction from outputsfigure_gen: figure generation for paper assetswriting: LaTeX paper draftingreview: critique, verification, and revision
Workspaces live under ~/.nanoresearch/workspace/research/.
A typical workspace contains:
{session_dir}/
├── manifest.json
├── papers/
├── plans/
├── experiment/
├── drafts/
├── figures/
├── output/
└── logs/
Reuse an existing workspace when the user asks to continue, inspect status, resume, or revise a prior run.
Topic prefixes:
original: Topic->original_researchsurvey:short: Topic->survey_shortsurvey:standard: Topic->survey_standardsurvey:long: Topic->survey_long
Behavior:
- original research follows the full 9-stage pipeline
- survey modes skip experiment-heavy stages and use literature-grounded planning, writing, and review
- the prefix is parsed by the existing CLI and manifest logic; Codex should reuse that behavior
| If the user asks for... | Codex should interpret it as... | Preferred repo entry / behavior |
|---|---|---|
| full research run | topic-to-paper pipeline | nanoresearch run --topic "..." or the equivalent workspace-driven pipeline flow |
| ideation or literature survey | stage 1 ideation | produce papers/ideation_output.json in a workspace |
| planning | stage 2 planning | produce plans/experiment_blueprint.json or plans/survey_blueprint.json |
| experiment execution | setup + coding + execution | use the existing experiment path for original research |
| analysis | stage 6 evidence extraction | produce plans/analysis_output.json |
| writing | figure generation + paper drafting | produce or update paper outputs in the workspace |
| review | review + revision pass | produce or update drafts/review_output.json and revised paper assets |
| status | inspect the active workspace | read and normalize manifest.json |
| resume | continue an interrupted run | restart from the first non-completed stage |
- never fabricate experiment results
- never fabricate citations
- prefer existing CLI / orchestrator behavior over ad hoc scripts
- keep paper claims tied to actual outputs or verified literature
- preserve checkpoint and resume semantics via
manifest.json
- Prefer the existing NanoResearch CLI or Python entrypoints when driving the system.
- Do not introduce a separate Codex-specific pipeline mode.
- Keep outputs compatible with existing workspaces and manifests.
- Never fabricate results or citations.
- When a user asks for pipeline work, operate through the existing workspace artifacts and stage boundaries described above.