Briefing for AI coding agents that read this repository. Claude Code loads it
through CLAUDE.md (a symlink to this file). Codex, Cursor, Copilot and other
agents read it directly.
A read-only copy of the comet_ml Python package (the Comet Experiment
Management SDK) as published on PyPI, plus agent skills for using it.
comet_ml/is generated. Each PyPI release replaces it in a single commit tagged with the version (3.59.0, ...). Never edit it: the next sync overwrites it. The sync makes one change to the wheel's files: it removes the built-in Sentry DSN (comet.internal.sentry_dsndefaults toNone).skills/holds the agent skills (see below)..claude/skillsand.agents/skillsare symlinks to it.examples/holds runnable best-practice scripts, one practice each. They are also the skills' tests:python examples/run_examples.pyruns them all against a Comet server (--offlinefor the parts that need none).update_repo.pyand.github/workflows/sync.ymldo the sync.scripts/check_skills.pychecks that the skills only cite APIs that exist in the syncedcomet_ml/.
Install the SDK with pip install comet-ml (this repo is not an installable
package). Docs: https://www.comet.com/docs/v2/.
| Job | Skill | Main API |
|---|---|---|
| Run and log ML experiments | comet-experiments |
comet_ml.start(), Experiment.log_* |
| Build dashboard views and panels in code | comet-views |
comet_ml.views, API.create_view |
| Answer questions from a Comet server | comet-query |
Comet MCP server, else comet_ml.API |
| Register, promote and load models | comet-registry |
APIExperiment.register_model, Model |
comet-ml is the shared reference the others
lean on: credentials, configuration, and how to find answers in the source here.
The skills are written for agents working in users' repositories, so they are installable from here (see README) as well as loaded when an agent works in this repository.
The docstrings in this tree are the reference for the exact installed version. Check the source before guessing a signature.
| Looking for | File |
|---|---|
comet_ml.start() |
comet_ml/comet_start/comet_start.py |
ExperimentConfig options |
comet_ml/comet_start/experiment_config.py |
Experiment.log_*, end(), register_model() |
comet_ml/experiment.py (CometExperiment) |
API, APIExperiment (read/query/manage) |
comet_ml/api.py |
API.query() DSL (Metric, Parameter, Tag, ...) |
comet_ml/query.py |
| View and panel builders | comet_ml/views.py (module docstring explains the schema) |
View object |
comet_ml/api_objects/view.py |
| Model registry objects | comet_ml/api_objects/model/ |
| Artifacts | comet_ml/artifacts/ |
| Framework autologging | comet_ml/loggers/, comet_ml/integration/ |
Settings and COMET_* env vars |
comet_ml/config/ |
| Optimizer (sweeps) | comet_ml/optimizer.py |
Useful searches: grep -n "def log_" comet_ml/experiment.py,
grep -n " def " comet_ml/api.py. To check what changed between releases:
git diff 3.58.0 3.59.0 -- comet_ml/views.py.
- Never hardcode, print or commit
COMET_API_KEY. The SDK reads it from the environment, from~/.comet.config, or fromcomet_ml.login(). - Check that a key exists without showing it:
[ -n "$COMET_API_KEY" ] || grep -q api_key ~/.comet.config 2>/dev/null && echo set || echo missing. - Self-hosted Comet servers also need
COMET_URL_OVERRIDE.
.mcp.json registers comet-mcp,
which reads experiments, projects, metrics and views, and creates JavaScript
panels. It reads COMET_API_KEY and COMET_WORKSPACE from the shell that
launched the agent. Prefer it for read-only questions; use the SDK when a
tool is missing or the job writes data (see comet-query).
- Every API a skill recommends should appear in an example, and every
example should check its own result and print a
summary:line. - Link documentation wherever it exists (
https://www.comet.com/docs/v2/...);check_skills.py --check-urlsverifies the links. - Skills: edit
skills/, then runpython scripts/check_skills.pyfrom the repository root (it imports the syncedcomet_ml/; install its dependencies withpip install comet-ml==<synced version>). The sync workflow runs the same check after every release, so a skill that cites an API removed upstream fails the workflow. - Every skill cites the SDK version it was checked against in its front
matter (
metadata.sdk_version); update it when you re-verify a skill. - Never edit
comet_ml/: it is regenerated from each PyPI release. - Issues are disabled and pull requests are not accepted from outside Comet.