Discover and explore top open-source AI tools and projects—updated daily.
AtomFlow-AILLM-native molecular language for direct chemical reasoning
Top 90.0% on SourcePulse
Summary
MoleCode addresses the challenge of enabling Large Language Models (LLMs) to effectively process and reason about molecular structures. Traditional string-based representations like SMILES require LLMs to expend significant reasoning budget on reconstructing implicit graph structures. MoleCode solves this by presenting molecules as explicit, graph-based code, allowing LLMs to directly read, write, and edit molecular structures within their context window. This approach benefits researchers and developers by unlocking structural intelligence in LLMs, leading to improved generalization, reduced computational costs, and enhanced capabilities for complex chemical tasks.
How It Works
MoleCode serializes molecular structures into a Mermaid graph format, where atoms are typed nodes and bonds are edges, each with persistent identifiers. This explicit graph representation is directly interpretable by LLMs, bypassing the need for complex string parsing. The format is deterministically and losslessly convertible to standard formats like SMILES and MOL using RDKit. This graph-explicit approach allows for local graph operations (e.g., adding a methyl group) rather than whole-string rewrites, and enables more robust reasoning over molecular topology.
Quick Start & Requirements
pip install molecode. Alternatively, clone the repository and install from source: git clone https://github.com/AtomFlow-AI/MoleCode.git && cd MoleCode && pip install -e .molecode.molecule, molecode.polymer, molecode.markush, molecode.prompts, molecode.llm), runnable examples, and API documentation.Highlighted Details
Maintenance & Community
MoleCode is developed and maintained by AtomFlow. While specific community channels like Discord or Slack are not detailed, the project provides links to its official website and GitHub repository for information and collaboration.
Licensing & Compatibility
The project is released under the MIT License, which is permissive and allows for commercial use and integration into closed-source projects without significant restrictions.
Limitations & Caveats
While MoleCode excels at representing and enabling reasoning for small molecules and polymers, its direct task support for Markush structure generation is not explicitly detailed, though understanding is supported. The project appears to be a recent development (paper dated May 2026).
1 month ago
Inactive