DOC: add AGENTS.md and CLAUDE.md for AI coding agents - #717
Conversation
Adds repository guidance for AI coding agents: build/test/docs commands, the big-picture architecture (filestore, dataset containers, mappers, quickflat, the WebGL viewer pipeline), and non-obvious gotchas (silent caching, import side effects, CTM vertex reordering, Three.js r69). Per the discussion in #706, the content lives in AGENTS.md (the cross-tool standard) and CLAUDE.md imports it, so both filenames stay in sync without a symlink (which would break on Windows checkouts). Closes #706 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Overall it looks OK to me. Anything worth adding @kroq-gar78 @alexhuth @marklescroart ? |
Clarify that changes to overlays.svg are due to pretty-printing and should not be committed.
|
It would also be great if we strongly suggest (require?) new Python code to have type annotations. I'm not sure where in the file that would go. |
|
@claude address the comments in this review |
|
Claude finished @mvdoc's task in 2m 40s —— View job Addressing review comments
SummaryPushed be2d191 to this branch. Two review items were already handled by earlier commits on this branch (removing hard-coded Python versions from the CI line, and the
Not verified: I don't have |
Per the review discussion, uv simplifies setup to a single sync command and keeps the environment isolated in the repo; update install, test, and docs commands accordingly. Also note that new Python code should carry type annotations, per feedback on the PR. Co-authored-by: Matteo Visconti di Oleggio Castello <6150554+mvdoc@users.noreply.github.com>
|
@claude uv should now be enabled in your sandbox; verify commands work. |
|
Claude finished @mvdoc's task in 10m 1s —— View job Verifying
|
|
@claude uv should finally be enabled. verify commands work. |
|
Claude finished @mvdoc's task in 13m 46s —— View job Verifying
|
Closes #706.
Adds repository guidance for AI coding agents (Claude Code and any tool that reads the cross-tool
AGENTS.mdstandard).What's in it
--no-build-isolation), theheadlessextra + Playwright setup, running the full suite / a single file / a single test, the per-test timeout, which tools tests self-skip on (Inkscape, Playwright, FreeSurfer), and the docs build.Databaselayout, thedatasetbraindata × Dataview class hierarchy, the mapper families and their caching, quickflat's layer-composition design, the WebGL pipeline (Package → CTM packs → Tornado templates → Three.js r69 app,JSProxy,shaderlib.js), the sharedoverlays.svgROI system, and configuration (options.cfg, filestore/colormaps).recache/db.clear_cache,import cortexside effects, CTM vertex reordering,package_dataenumeration for new webgl resources, CRLF line endings in some JS files.Layout
Per @kroq-gar78's suggestion in #706, the content lives in AGENTS.md and CLAUDE.md imports it with Claude Code's
@AGENTS.mdsyntax. I used an import rather than a symlink so Windows checkouts (recently fixed in #701) don't degrade the link into a plain text file.🤖 Generated with Claude Code