Skip to content

Repository files navigation

cMeta AOps: reusable automations for cMeta (cmeta-aops)

Test cMeta core AOps Test cMeta core AOps via cTuning

cmeta-aops is the reference content repository of the cMeta framework: ready-to-run recipes that install and run tools, build and benchmark programs, fetch models and datasets, and drive coding agents in a portable way across operating systems and hardware (Linux, Windows, macOS, Android; CPU, CUDA and more). Every recipe is a small, self-describing artifact — a folder with a metadata file — that you drive through one command:

cx <category> <command> [args] [--flags]

cMeta is a small, open-source framework that turns the pieces of research and engineering work into reusable, interconnected artifacts behind one interface, so that R&D becomes collaborative, reproducible, reusable, scalable, portable and sustainable. It was created by Grigori Fursin at cTuning Labs as the next generation of his community projects on reusable and reproducible research since 2008 (the cTuning framework, Collective Knowledge, MLCommons Collective Mind), and this repository is where we collect the automations built with it.

New to cMeta? The course from 0 to 1 explains the idea step by step, the interactive installer gets cx onto your machine, and the catalogues on cTuning.ai list the tools, tasks and programs this repository can run today.

Try it

uv tool install "cmeta[server]"                 # the engine (or: pip install cmeta); see the installer for your OS
cx repo get ctuninglabs@cmeta-aops              # this repository, from GitHub
cx tool setup git                               # detect or install a tool into the cache
cx tool run git -- status                       # run it (arguments go after --)
cx task list                                    # browse the reusable workflow steps
cx program run test-nmm-c-cpu cpu               # compile and run a matmul benchmark on CPU
cx program run test-nmm-nvcc-cuda cuda          # ... or on CUDA, if you have it
cx task run test-python -j                      # a task with the full trace: every tool and step it reused

Working from a clone instead? Run cx repo plug . in the repository root, then cx --reindex. Handy flags: -j/--verbose (full step-by-step trace), --con, --quiet, --version=X (pin a tool version), --update/--clean/--new (cache control). To hand this repository to a coding agent (Claude Code, Codex, OpenCode) as part of its context, see agent tasks.

Project status

An experimental plugin repository and prototyping playground for reusable cMeta automations and artifacts — supporting open science, collaborative research, experimentation and portable AI-agent workflows.

This repository is where we encode our R&D as executable, composable workflows rather than as prose, scripts and half-remembered command lines. Each artifact is a small piece of accumulated practice — how to detect and install a toolchain, how to build and benchmark a program on a given target, how to fetch a model — written once in a portable form and then reused, composed and driven by humans or AI agents through the same cx / access() interface.

The longer-term intent is deliberately ambitious: to grow this into the substrate for an AI-driven research assistant — an "open scientist" in a modest, literal sense. Not a system that invents science, but a growing body of machine-readable, self-describing automations that an agent can discover, compose and extend on its own, so that experiments, builds and benchmarks can be set up, varied and repeated without re-deriving the same work each time. The artifacts are the memory; the agent is the operator.

The framework's history page tells the story from Collective Knowledge to cMeta and lists the publications (see also How to cite).

What that means in practice — please read before relying on anything here:

  • Maturity varies a lot. A few paths have CI coverage across {Linux, Windows, macOS} × Python {3.9, 3.14} — the core, and a handful of clang/C++, NumPy and PyTorch task recipes. Note these workflows are manually triggered (workflow_dispatch), not run on every push, so a green badge reflects the last deliberate run rather than the current commit. Everything outside .github/workflows/ is unverified by CI, and some artifacts are exploratory probes kept because they encode something worth not losing.
  • Expect to adapt things. Recipes reach out to real toolchains, package managers, compilers and hardware. A recipe that works on one machine may need a version pin, a flag or a path adjusted on another. That is the normal case, not a defect.
  • Interfaces here are less stable than the engine's. The cMeta framework aims for a small, stable core; this repository is deliberately freer to move.
  • Contributions and issue reports are welcome — see Contributing — but this is a research and prototyping project, not a supported product.

Goals

  • One interface for everything — set up a compiler, build PyTorch, run a matmul on CPU or CUDA, or fetch a model — all through the same cx surface.
  • Portable by construction — the same artifact adapts to the host OS, package manager and compute target, so a recipe written once runs in many places.
  • Reusable and composable — tools, libraries, builds and downloads are cached and shared across runs and across artifacts, so work isn't repeated.
  • Scalable sideways — more capability means more artifacts, not a bigger engine. A new domain is a new category; the core stays the size it is.
  • Sustainable — work outlives the people who did it. What was run, what it depended on and where a number came from are recorded beside the result, so whoever picks it up next resumes instead of reconstructing.
  • Abstractions you can operate — every tool, library, program, model, dataset and workflow here is one artifact: simple (a folder and a metadata file), reusable (it states what it is, not where it fits), live (you run it, rather than read about running it) and interconnected by alias,UID. Each stays inspectable down to its inputs, versions and provenance, so a result can be taken back to first principles — and the content is FAIR (findable, accessible, interoperable, reusable) by construction rather than by extra effort.
  • Automation- and agent-friendly — artifacts are plain metadata + small hooks that humans and AI agents can read, extend and compose (see the skills). This is where the effort repays itself fastest: an agent is only as useful as the context it can assemble, and here that context is already recorded and already machine-readable, so it never has to be reconstructed first.

This repository is content, not the engine: everything here runs on the cMeta framework (Apache-2.0), whose README and documentation explain the engine itself. Homepage: cTuning.ai.

Core concepts

Four ideas cover almost everything here. Top-level folders are categories; each subfolder is an artifact described by _cmeta.* (identity) + _desc.yaml (automation) + optional api_v1.py (hooks).

  • task — the workflow engine. A task is one reusable, composable, cacheable step. Tasks call other tasks in uses: pipelines and share a context, so complex workflows are just small steps wired together. Everything else is built on tasks. → cx task run <name>

  • tool — external programs, made portable. A tool artifact knows how to detect, install, build and run one CLI (git, cmake, clang, cuda, python, node-js, …) across OSes, and how to list its available versions. Set one up once and reuse it everywhere. → cx tool setup <name> · cx tool run <name> -- <args> · cx tool setup <name> --versions

  • program — build & run benchmarks and apps. A program is a compilable/runnable artifact (matmul micro-benchmarks, PyTorch/llama.cpp builds, image classification, …). You pick a compute target (cpu, cuda, android-cpu, …) and the program automatically selects the right compiler, libraries and run wrapping for that target. → cx program run <name> <compute> · cx program compile <name> <compute>

  • cache — reuse across runs. Installs, downloads and builds are stored as cache entries matched semantically by tags and parameters, so multiple versions coexist and are reused across runs and artifacts instead of being rebuilt. Control it with --update (rebuild), --clean (wipe), --new (force a fresh entry). → cx cache show | clean | delete

Putting it together: cx program run uses tasks to set up the tools and libraries a program needs for the chosen compute target, and stores everything in the cache so the next run is fast.

Documentation

In-depth developer/agent documentation lives in docs/cmeta-aops/:

See also AGENTS.md (canonical brief for AI agents), CLAUDE.md, and the authoring skills (add-tool, add-task, add-program).

Useful configurations

cx config set task --meta.file_cache=x:\cmeta-file-cache-windows
cx config set task --meta.check_versions
cx config set default --meta.default_git=git@github.com:

Contributing

Contributions are welcome — new tools, tasks and programs, portability fixes, and documentation. See CONTRIBUTING.md for the workflow.

This project uses the Developer Certificate of Origin (DCO) rather than a CLA: sign your commits with git commit -s. Please read the third-party section of CONTRIBUTING.md before vendoring any source you did not write.

See also CODE_OF_CONDUCT.md and MAINTAINERS.md.

Copyright and license

Copyright (C) 2025-2026 Grigori Fursin and cTuning Labs.

Licensed under the Apache License, Version 2.0 — see LICENSE, COPYRIGHT and NOTICE. This is the same license as the cMeta framework.

Attribution when you reuse this. Apache-2.0 §4 requires anyone redistributing this work, or a derivative of it, to retain its attribution notices and reproduce the contents of NOTICE. That covers metadata (_cmeta.*), automation pipelines (_desc.yaml) and scripts as much as code, and it applies whether the copying was done by a person or generated, adapted or incorporated by an AI agent or LLM — generation by a model does not waive the obligation. AI agents working in this repository should also read llms.txt and AGENTS.md §8.1.

Using the ideas rather than the code? Concepts aren't covered by copyright, so this is an invitation rather than a requirement: if this project's approach is useful to yours, a citation is very welcome — and we would rather collaborate than be copied quietly. Get in touch: cTuning.ai/@gfursin.

Third-party components. Parts of this repository are third-party works that are not covered by the Apache-2.0 license and are redistributed under their own terms — some of which are more restrictive (research-use-only, or GPL). See THIRD-PARTY.md for the full list of affected paths, their copyright holders and their licenses, and review it before redistributing this repository or building a product on it.

How to cite

If you use cMeta AOps in your research, see CITATION.cff (GitHub renders it as "Cite this repository"). Please also consider citing the cMeta framework and the author's earlier work on Collective Knowledge and Collective Mind that this project builds upon.

About

Portable, reusable AI operations powered by cMeta (cX), for collaborative and reproducible R&D: tasks, tools, programs, models and datasets that automatically detect toolchains, build, run and benchmark workloads across Linux, Windows, macOS and Android, on CPU, CUDA, ROCm and more - all behind one cx command.

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages