SuperAPI AI Directory

aideml

AIDE ML is an open-source machine learning engineering agent (LLM agent) from WecoAI, based on the reference implementation of the AIDE algorithm. It uses tree search to automatically write, debug, evaluate, and iteratively improve machine learning code based on a dataset, goal, and evaluation metric described by the user in natural language, until the metric reaches its optimum. The project is cited by OpenAI MLE-bench and provides tools such as a CLI, HTML visualization, and Streamlit UI, supporting OpenAI, Anthropic, Gemini, and local models compatible with the OpenAI API, making it suitable for agent architecture researchers and machine learning practitioners.

Open website

About this tool

AIDE ML is the open-source "reference build" of the AIDE algorithm, an LLM-driven agent for machine learning engineering (MLE). It autonomously drafts, debugs, and benchmarks code through tree search until a user-defined metric is maximized (or minimized). The project is released as a research-friendly Python package with built-in utilities such as a CLI, visualization, and configuration presets, making it easy for academics and engineering researchers to reproduce papers, test new ideas, or rapidly prototype ML pipelines.

Purpose AIDE ML is mainly used to automate machine learning engineering tasks: given a dataset, describe the goal and evaluation metric in natural language, and the agent can generate and iteratively improve ML code. It can serve both as an experimental platform for researching agent architectures and for quickly building high-performance ML pipelines.

Main capabilities

  • Natural language task description: just specify the data directory, goal, and evaluation metric, with no need for YAML grids or custom wrappers.
  • Iterative agent tree search: each Python script becomes a node in a solution tree, LLM-generated patches produce child nodes, and metric feedback is used to prune and guide the search. According to OpenAI MLE-Bench (75 Kaggle competitions) results, AIDE's tree search won 4 times as many medals as the best linear agent (OpenHands).
  • HTML visualizer: view the complete solution tree and the code attached to each node.
  • Streamlit UI: for prototyping ML solutions.
  • Model-neutral: supports OpenAI, Anthropic, Gemini, or any local LLM compatible with the OpenAI API.

Usage After a run finishes, it generates: logs/<id>/best_solution.py (the best code found) and logs/<id>/tree_plot.html (clickable view of the solution tree). To use the Web UI, clone the repository locally and run it via streamlit, paste the API key in the sidebar, upload data, set the goal and metric, then click Run AIDE; the interface will display live logs, the solution tree, and the best code.

Advanced CLI options Supports OpenAI and Anthropic configurations. Model IDs are passed directly to the provider; there is no list of supported models, and you can choose any model in your account that supports requests for that stage. When the model ID does not follow conventional naming, the provider must be set explicitly. provider, temp, reasonThe ing_effort and max_tokens options also apply to the agent.feedback and report stages, and each stage retains its original default model. Sampling temperature and reasoning effort default to null, leaving the decision to the provider. Reasoning may consume part of the output budget; when Anthropic has no budget set, it defaults to 4096 tokens, and the report stage also keeps the 4096 default; OpenAI uses its API defaults.

Provider contract (based on official documentation dated October 12, 2026): OpenAI Responses handles official OpenAI requests, including tool results, and AIDE converts max_tokens and reasoning_effort into Responses options; non-strict tools retain optional FunctionSpec fields, and returned parameters are validated locally; existing custom endpoints configured via OPENAI_BASE_URL use Chat Completions for non-standard model IDs. Anthropic Messages uses automatic tool selection and instructs exactly one call to the required tool; AIDE reads text and tool blocks by type and skips thinking blocks; automatic selection is best-effort, and missing, incorrect, multiple, or invalid tool results raise errors; explicit sampling settings use the SDK's extra_body option, because Anthropic SDK v1 removed named sampling parameters. The SDK requires openai>=1.69.0 (Responses support) and anthropic>=0.86.0 (Messages tools and output_config.effort). Transient failures are retried up to five backend attempts, then a provider error is raised. Structured requests raise an error when a tool call is missing, rather than silently falling back to text; incomplete Responses and Anthropic truncation or refusal also raise errors. The startup metric selector retains the existing fallback when inference fails. Regression tests use the real SDK and simulated HTTP to check serialization, output parsing, tool schemas, custom model IDs, stage forwarding, and bounded retries; live API checks run separately before merging.

Using AIDE ML in Python Support for calling in Python. Advanced features include local LLMs (using Ollama as an example), note evaluationThe estimator uses gpt-4o by default; it can also run fully locally (code + evaluator, no external calls), but fully local models are expected to have performance degradation. Development installation and live end-to-end testing: the optional house-price test runs five optimization steps on the bundled Ames data, using the real API, including one drafting step followed by an improvement or debugging step, execution review, and a final report. It checks the saved out-of-fold predictions against logged metrics, validates the submission of each successful step, and checks the selected best solution. Passing requires at least two valid solutions and one improvement attempt; a score lower than the first solution is not guaranteed. Run from the repository root, with provider credentials already configured in the environment. Choose a model ID available to the account; either OpenAI or Anthropic can be used for either stage, and a coding model is used for the report. Optional AIDE_E2E_CODE_EFFORT and AIDE_E2E_FEEDBACK_EFFORT set the reasoning effort. A normal test run skips this test. A live run allows at most 24 API calls, uses one provider attempt per call, and limits each generated training program to 120 seconds. Artifacts include logs, code, per-step predictions, the report, and a receipt containing the actual model IDs and token usage. The Live house-price E2E GitHub Actions workflow supports manual runs and automatic runs after related changes reach main. Configure the repository secrets OPENAI_API_KEY and/or ANTHROPIC_API_KEY, as well as the four AIDE_E2E_PROVIDER / AIDE_E2E_MODEL repository variables. Set the repository variable AIDE_RUN_LIVE_E2E=1 to enable automatic runs; the effort variables are optional. The workflow saves artifacts for 14 days, with a 25-minute timeout. Credentials are provided only to the live test step, and provider API keys are removed from the training subprocess environment.

Applicable scenarios

  • Agent architecture researchers: replace with new search heuristics, evaluators, or LLM backends.
  • ML practitioners: quickly build high-performance ML pipelines for a given dataset.

Limitations The materials do not provide specific information such as fees, prices, or the scope of platform support. Performance may degrade when running fully local models. Model access and provider-side limitations still apply.