Skip to content

CSPilot Documentation

Computational chemistry agentic workflow package.

Created by Sandip Giri.

CSPilot is a command-line package for reproducible molecular structure workflows. It combines deterministic local tools, AGAPI/OpenAI-compatible planning, LangGraph orchestration, JSON verification, and polished terminal reports.

Quick Install

python -m pip install -e .

For documentation builds:

python -m pip install -e ".[docs]"
mkdocs build --strict

For stk support:

python -m pip install -e ".[stk]"

First Command

cspilot inspect tests/examples/input.xyz

This reads an XYZ file with ASE and writes a timestamped result.json.

Agentic Start

Single-agent graph:

cspilot graph-run "inspect tests/examples/input.xyz" \
  --workdir runs/water --profile chem --agent-mode single

Routed multi-agent graph:

cspilot graph-run "Find all Al2O3 materials" \
  --profile auto --agent-mode multi --html --workdir runs/al2o3

Documentation Map

Current Status

Implemented:

  • ASE inspection.
  • xTB optimization.
  • ORCA calcultions.
  • xTB to ORCA workflows.
  • MACE to ORCA workflow.
  • stk build/edit/export and stk to xTB.
  • NWPESSe fragment-cluster search.
  • AGAPI direct agent and JSON planner/executor.
  • LangGraph single mode and routed multi mode.
  • Rich terminal reports and Markdown/HTML final reports.

Planned:

  • LangGraph repair/retry node integration.
  • Multiwfn post-processing.
  • Expanded stk topology presets.
  • torch-sim MLIP molecular dynamics.
  • MongoDB job database.
  • MCP server.
  • Streamlit UI.

Build Notes

The documentation site uses MkDocs and mkdocstrings. Reference pages document the real import package, cspilot, not chemagent.