IsaacTeleop / codegen
AGENTS.md438 starsChanged 31 days agoApache-2.0View on GitHub
CRITICAL (non-optional): Before editing this package, complete the mandatory AGENTS.md preflight in ../../../AGENTS.md (read every applicable AGENTS.md on your paths, not just this file). This package generates the schema-based tracker stack from ../deviceio_trackers/trackers.toml + ../deviceio_trackers/defaults.toml. manifest.py resolves %placeholder% values, templates.py derives per-entry type/file names, template_renderer.py loads templates/ bodies with @KEY@ substitution, and generate_trackers.py renders the sources and the .inc fragments. - Stdlib only, and this one is load-bearing. The generator runs at CMake configure time from whatever interpreter Python3_EXECUTABLE points…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- NVIDIA/IsaacCaptureword for word, first seen Oct 14, 2026
Other versions1 project uses a version of this.
Word for word · 1
- NVIDIA/IsaacCapture★ 438100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- deps/cloudxr/webxr_client/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/camera_streamer/AGENTS.mdAGENTS.md
- examples/egocap/AGENTS.mdAGENTS.md
- examples/teleop_ros2/AGENTS.mdAGENTS.md
- src/core/AGENTS.mdAGENTS.md
- src/core/deviceio_base/AGENTS.mdAGENTS.md
- src/core/deviceio_session/AGENTS.mdAGENTS.md
- src/core/deviceio_trackers/AGENTS.mdAGENTS.md
- src/core/live_trackers/AGENTS.mdAGENTS.md
- src/core/log_bridge/AGENTS.mdAGENTS.md
- src/core/replay_trackers/AGENTS.mdAGENTS.md
- src/core/schema/AGENTS.mdAGENTS.md
- src/plugins/sensing/AGENTS.mdAGENTS.md
- src/plugins/sharpa_avatar/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/common/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/full_body/checker/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/full_body/oracle/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/hand/AGENTS.mdAGENTS.md
- src/python/isaaccapture/cts/hand/checker/AGENTS.mdAGENTS.md
- src/python/isaaccapture/logging_config/AGENTS.mdAGENTS.md
- src/viz/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- .cursor/rules/cmake-structure.mdcCursor rule
- cmake-structureSkill
- rebot-orin-setupSkill
- rebot-orin-setupSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
CRITICAL (non-optional): Before editing this package, complete the mandatory AGENTS.md preflight in ../../../AGENTS.md (read every …
- Very specific: line 37
Prefer a manifest key over a template branch: If one tracker differs, give it an override key.
- Very specific: line 76
Run python test_manifest.py after touching resolution rules, and generate_trackers.py --print-resolved to see the fully expanded manifest …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->Agent notes — codegen
CRITICAL (non-optional): Before editing this package, complete the mandatory AGENTS.md preflight in ../../../AGENTS.md (read every applicable AGENTS.md on your paths, not just this file).
This package generates the schema-based tracker stack from
../deviceio_trackers/trackers.toml +
../deviceio_trackers/defaults.toml. manifest.py resolves
%placeholder% values, templates.py derives per-entry type/file names, template_renderer.py loads
templates/ bodies with @KEY@ substitution, and generate_trackers.py renders the sources
and the .inc fragments.
Boundaries
- Stdlib only, and this one is load-bearing. The generator runs at CMake configure time from
whatever interpreter
Python3_EXECUTABLEpoints at — a bare uv-managed CPython with no project venv and no site-packages. A third-party import here is not a dependency, it is a configure-time crash. That is why the manifests are TOML (tomllibis stdlib on 3.11+, the supported floor) and why there is no Jinja2. - Generation happens at configure time, not build time, because CMake needs the source list up
front. Anything that changes the output (both TOMLs, every
.pyhere, and every template undertemplates/) must stay listed inCMAKE_CONFIGURE_DEPENDSin../../../cmake/GenerateTrackers.cmake, or incremental builds will silently use stale output. - Emitted files use compare-before-write. Content is rewritten only when it differs from the
on-disk copy, so no-op configure runs keep mtimes stable and avoid needless rebuilds. Output
lands under
${CMAKE_BINARY_DIR}/generated/trackers/(explicit cmake source lists — not a filesystem glob of that tree). - Optional
--prune-staledeletes previously generated files this run did not emit (suffix +AUTO-GENERATEDbanner; requires.isaac_teleop_tracker_codegen). CMake configure passes this flag so renamed or removed trackers cannot leave an old header satisfying a stale#includeon the generated include path. Omit the flag for manual/dry runs that should only rewrite. - Prefer a manifest key over a template branch. If one tracker differs, give it an override key;
add a new manifest
shapeonly when the control flow genuinely differs. A shape that makes the templates hard to follow is a signal to leave that tracker hand-written and say so in../deviceio_trackers/AGENTS.md. Optionalheaderoverrides the derived file stem (and thus*_base/live_*_impl/replay_*_impl) whennamealone would invent a different public#includepath. directionmust bepullorpush— validated before defaults merge so a typo cannot silently pick up the wrong overlay.shape=single_collectionrequiresrecord=truefordirection=pull: those templates always emit MCAP channel/viewer constructors, while the factory only omits them whenrecord=false. Non-recording multi-sample readers (e.g.HapticCommandReaderTracker) stay hand-written — there is no generatedmulti_endpointshape.- Emit code that already satisfies the layering rules of the package it lands in — generated
deviceio_trackersfacades must not include OpenXR headers, generated live impls own theSchemaTracker, and so on. The generator is not exempt from a package'sAGENTS.md.
Working on the templates
- Per-tracker C++ bodies live under
templates/as*.hpp.template/*.cpp.template(pull/andpush/) plus*.templatefragments underfragments/for factory/pybind/traits. Direction-specific fragments use_pull/_pushsuffixes (e.g.pybind_pull.template,live_factory_push.template,recording_traits_pull.template); shared pieces arelive_try_create.templateandreplay_try_create.template. Edit those for structure and includes; use@KEY@placeholders filled bytemplate_renderer.template_values().templates/.clang-formatsetsDisableFormat: trueso editors that map*.cpp.templateto C++ for highlighting cannot mangle@KEY@on save. Conditionals stay in Python (pick which template to load) or as#if @FLAG@for optional fragments within one shape (e.g.@HAS_TENSOR_IDENTIFIER@). Do not mergepush/withpull/via shared#if/#else— those control flows are different enough that separate templates stay clearer.*.hpp.template/*.cpp.templatecarry SPDX headers for REUSE;template_rendererstrips them before prepending the emit-time COPYRIGHT / AUTO-GENERATED banner. - One-line aggregators (includes, dispatch rows, factory decls, cmake source lists, Python
__all__) remainyieldloops ingenerate_trackers.pyjoined with"\n". - Generated C++ is not covered by the format gate (
cmake/ClangFormat.cmakeglobs onlysrc/andexamples/and excludesbuild/), so it does not need to be clang-format clean — but it must compile. Read the emitted file under${CMAKE_BINARY_DIR}/generated/trackers/when a template change fails to build; the compiler error points at generated text, not at the f-string. - Generated
#includes must be written as the consumer sees them (<deviceio_base/...>,<live_trackers/schema_tracker.hpp>), not as the in-tree relative paths the hand-written files use, because generated sources sit in a different directory. - Run
python test_manifest.pyafter touching resolution rules, andgenerate_trackers.py --print-resolvedto see the fully expanded manifest before blaming a template. - A full build is the only real test of a template change: it is what proves the emitted
facade, impls, and every
.incfragment still agree with the hand-written files including them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

