Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 3.07 KB

AGENTS.md

File metadata and controls

33 lines (25 loc) · 3.07 KB

AGENTS.md — MeshLib

Notes for AI coding agents working in this repository. Human contributor rules (formatting, export macros, generated bindings, tests) are in CONTRIBUTING.md; follow them too.

Topical notes live in .claude/*.md. Read each when its area is in scope; they are plain links, so they don't load into context up front.

Rules that apply everywhere

  • Public repository. Don't put links to private repositories, internal issue numbers or customer data in code, comments, commits, PR text or docs.
  • Local Windows builds don't see everything. The .vcxproj files are hand-maintained, and several failures only show up in the CMake, clang or GCC CI jobs; see CI-only failures.
  • Default behavior doesn't change silently. New options are opt-in. Turning a silent no-op into an error is a breaking change: first grep the callers, including tests, examples and the Python and C bindings.
  • No emojis in commits, comments or PR text unless asked.

Pull requests

  • One logical step per PR. PRs are squash-merged.
  • Force pushes are blocked on every branch. Update a PR branch by merging origin/master into it, and push review fixes as new commits.
  • CI runs on pull_request only for PRs into master, so a PR stacked on another PR's branch gets no CI. After the parent merges, merge master into the child, check that git diff <tested commit> HEAD is empty, and retarget it.
  • A new push cancels the running build of the previous head. Before saying CI passed, check the run for the current head (gh run list --branch <branch> --json headSha,conclusion).
  • PR labels set the CI scope (.github/workflows/config.yml). Add disable-build-<platform> for every platform a change can't affect. Use full-ci only for build-system, third-party, threading or ABI changes. update-doc and update-doc-only publish the dev documentation from the PR branch (update-docs.yml), and update-doc-only also skips all builds; use them only when a Doxygen change should go live.
  • Not your change: prepare-image failing with Docker Hub 429 Too Many Requests (an org-wide rate limit). Re-run the failed jobs later (gh run rerun <id> --failed).
  • Use Closes #N only in the PR that completes an issue of this repository.

Topical knowledge

When working on Read
MeshLib conventions — build files, CI-only failures, API shape, UI, scene graph, parallelism, tests .claude/meshlib-conventions.md
C++ style — minimalism, naming, design-time choices .claude/cpp-style.md
Translations & i18n — _t / _tr / s_tr, history scoping, catalogs, where the code lives .claude/i18n.md
UI widgets and text display the headers: source/MRViewer/MRUIStyle.h, source/MRViewer/ImGuiHelpers.h
MCP tooling — handler pattern, server, LLM-facing output .claude/mcp-tooling.md
Output style — commits, comments, PR descriptions .claude/output-style.md