research-foundry¶
research-foundry provides Cookiecutter templates for the repositories that support a research project: its code, workspace, paper, and any application it grows into. The templates share a common base and are kept current with cruft.
Install and create a project¶
Run a template directly with uvx:
uvx research-foundry new <template>
Or install the command with pip:
pip install research-foundry
research-foundry new <template>
Use research-foundry templates to list templates,
research-foundry questions <template> to inspect a template's answers,
research-foundry check and research-foundry update to compare a project
with its template and apply updates, and research-foundry layout to check a
workspace's paths.
Model Context Protocol server¶
Run research-foundry mcp to start the Model Context Protocol (MCP) server over
standard input and output. It can list templates, describe questions, plan a
project without persistent output, and create or update a project only after
explicit confirmation. The read-only check_layout tool checks workspace
paths against the shipped contract.
Checking a workspace's layout¶
In a generated workspace, run make layout-check, or
research-foundry layout <workspace-path> from anywhere, to compare its paths
with the template. The check is read-only. A path in backticks in
AGENTS.md's ## Local rules section declares an addition; a required path
that moved or was dropped needs a Moved: or Dropped: rule. The command
exits 0 when the layout matches, 1 when it reports findings, and 2 when the
repository is not recognized as a workspace. See
ADR 0012 for the path contract.
make layout-check needs research-foundry 0.2.0 or later. Until 0.2.0 is
released, uv stops with "no solution" rather than running an older release
that has no layout command.
Citing research-foundry¶
If you build on research-foundry or publish work made with its templates, cite
it using the GitHub Cite this repository button. GitHub reads the
repository's CITATION.cff file and offers APA and BibTeX citations.
The DOI 10.5281/zenodo.23123933 is Zenodo's concept DOI: it names research-foundry as a whole and resolves to the latest archived version.