Vertical agent runtime for machine-learning-potential workflows
MLP Copilot is a vertical agent runtime for machine-learning-potential training. It
originated from the general-purpose
HKUDS/nanobot agent runtime and is now
narrowed toward local and remote scientific workflows where artifacts, human
approvals, and traceable decisions matter.
It also builds on lessons from our earlier
flarecentury/Auto-MLP research
framework for AI-assisted machine-learning-potential development, active
learning supervision, and aluminum nanoparticle oxidation analysis. MLP Copilot
extracts that workflow experience into a more general runtime-plus-plugin
architecture for broader MLP operations.
The current product focus is DeepMD-kit / DP-GEN active-learning operations: workspace initialization, configuration checks, run-state projection, artifact tracking, log inspection, and human-approved control actions.
| Area | Capability |
|---|---|
| Runtime host | Agent loop, sessions, memory, TUI, Telegram/API gateways, MCP client, workspace, approvals, artifact index |
| MLP plugins | Initial dataset preparation, DP-GEN control, dataset validation, model evaluation, reporting, local document search |
| Traceability | Run manifests, artifact hashes, approval decisions, tool logs, status projections |
| Human control | Blocking approvals for high-cost or destructive actions |
The data/ directory has been migrated from the earlier
flarecentury/Auto-MLP project.
It contains aluminum nanoparticle combustion molecular-dynamics trajectories in
data/MDtrajs/ and corresponding visualization videos in
data/videos/, covering bare-metal and core-shell systems at
multiple temperatures.
The AI agent, trained machine learning potential (MLP) models, and the comprehensive dataset (containing ~90,000 atomic configurations with DFT energies/forces) are all hosted on the Digital Automation for Scientific Discovery platform (DigAuto): https://www.digauto.org.
- Git.
- Python 3.11 or newer.
uvfor dependency management.
Install uv if needed:
python -m pip install --user uvClone the repository:
git clone https://github.com/flarecentury/mlpcopilot.git
cd mlpcopilotIf you prefer SSH:
git clone git@github.com:flarecentury/mlpcopilot.git
cd mlpcopilotInstall runtime and development dependencies:
uv sync --extra devVerify the CLI:
uv run mlpcopilot --help
uv run mlpcopilot mlp capabilitiesThe bundled agentic-file-search MCP package has its own environment file. Use
mlpcopilot/mcps/agentic-file-search/.env.example
as the template, or run its initializer:
cd mlpcopilot/mcps/agentic-file-search
scripts/init-skill.shConfigure FS_EXPLORER_MCP_ROOT, FS_EXPLORER_DB_PATH, and the optional
OpenAI-compatible endpoint there. These settings are separate from the main
~/.mlpcopilot/config.json.
Create or update the local config and default workspace:
uv run mlpcopilot onboardRecommended model setup: log in to the OpenAI Codex provider and use the latest Codex GPT model available to your account.
uv run mlpcopilot provider login openai-codexAfter login, set the model during onboarding or switch from the TUI with
/model openai-codex/gpt-5.3-codex.
The default workspace is:
~/.mlpcopilot/workspace
You can also initialize a workspace directly:
uv run mlpcopilot mlp init --workspace ~/.mlpcopilot/workspaceOpen the local terminal workbench:
uv run mlpcopilot tuiRender a one-shot TUI snapshot:
uv run mlpcopilot tui --onceUse an explicit config and workspace:
uv run mlpcopilot tui \
--config ~/.mlpcopilot/config.json \
--workspace ~/.mlpcopilot/workspaceUse the mlp-initial-dataset-preparation skill to help plan an initial dataset
generation strategy before DP-GEN or active learning. It guides structure
selection, AIMD/static DFT labeling plans, conversion targets, validation
checks, and handoff paths such as DP-GEN init_data_sys.
Before running training or labeling jobs, configure DeepMD-kit/DP, VASP, CP2K,
and related executables for your own HPC environment. For portable and
reproducible runtime environments, Apptainer is recommended:
apptainer/apptainer.
Runtime status and workspace commands:
uv run mlpcopilot mlp status
uv run mlpcopilot mlp capabilities
uv run mlpcopilot mlp approvals
uv run mlpcopilot mlp runs list
uv run mlpcopilot mlp runs show <run_id>TUI entrypoints:
uv run mlpcopilot tui
uv run mlpcopilot tui --onceOpenAI-compatible API:
uv run mlpcopilot serveTelegram gateway:
uv run mlpcopilot gatewayUpdate an existing checkout:
git pull --ff-only
uv sync --extra devBefore changing product behavior or implementation, start with:
AGENTS.mdPROJECT.mdprd/MLPCOPILOT_RUNTIME_PRD.mdprd/MLPCOPILOT_MCP_SKILL_PRD.mdprd/MLPCOPILOT_TUI_CODEX_INTERACTION_PRD.md
Operational and implementation docs live under docs/.
Documentation update and review rules live in
docs/MAINTENANCE.md.
uv run --extra dev ruff check mlpcopilot tests
uv run --extra dev pytest -qThe codebase may still contain inherited general-purpose capabilities. For MLP Copilot work, the current PRDs describe the active product scope.
MLP Copilot is released under the MIT License. See LICENSE.
Third-party component notices are listed in
THIRD_PARTY_NOTICES.md. Security guidance is in
SECURITY.md.
MLP Copilot builds on and adapts work from the following projects and products:
HKUDS/nanobot, the MIT-licensed general-purpose agent runtime that provided the original runtime foundation.flarecentury/Auto-MLP, the earlier AI-assisted MLP development framework whose active-learning and scientific-workflow experience informed this project direction.PromtEngineer/agentic-file-search, the MIT-licensed document-search project adapted as the bundledagentic-file-searchMCP package.- OpenAI Codex, whose developer-workflow interaction design influenced MLP Copilot's TUI, command entrypoints, tool-call visibility, and human approval experience.