Skip to content

docs: consolidate agent instructions into canonical AGENTS.md#473

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/zealous-gates-l5vxfg
Jun 22, 2026
Merged

docs: consolidate agent instructions into canonical AGENTS.md#473
Jammy2211 merged 1 commit into
mainfrom
claude/zealous-gates-l5vxfg

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Consolidates the two parallel, drifting agent-docs (CLAUDE.md read by Claude Code, AGENTS.md read by Codex) into one canonical, agent-agnostic AGENTS.md. CLAUDE.md becomes a 4-line @AGENTS.md import stub, so every agent reads identical instructions.

Part of a 5-repo sweep (PyAutoConf/Fit/Array/Galaxy/Lens) on branch claude/zealous-gates-l5vxfg; all five AGENTS.md share an identical heading order and skeleton.

Uniform skeleton

What this repo isRelated reposQuick commandsCI / definition of greenConfiguration & defaults* → JAX & xp* → Public APIKey rules / footgunsWorking on issuesDeep dives* → Clean state (*omitted where genuinely N/A, never reordered).

Drift fixed (verified against installed source)

  • JAX pytrees: _register_as_pytree / register_instance_pytree exist — replaced the stale "autoarray types are not pytrees / can't return from jax.jit" claim with the two correct JIT-boundary patterns.
  • OperateDeflections: does not exist — operate/ has only OperateImage (image.py) and LensCalc (lens_calc.py). All references corrected.
  • Decorators: aa.grid_dec is a deprecated alias; shipped profiles use aa.decorators.*.
  • CI: stated the real definition of green — pytest --cov on Python 3.12 and 3.13, black advisory (not gated). requires-python is >=3.9.
  • Cut the /mnt/c/__pycache__ narrative, namespace tables (→ __init__.py), Plot Output Mode, and dependency version-pin lists.

This repo: removed all OperateDeflections drift; science context now points at autolens_assistant/wiki/literature/ (not the personal PyAutoPaper repo); JAX detail links to the PyAutoArray deep dive.

🤖 Generated with Claude Code

Merge the parallel CLAUDE.md/AGENTS.md into one agent-agnostic AGENTS.md
(uniform skeleton) and reduce CLAUDE.md to an @AGENTS.md import stub.

Fix drift: operate/ has only OperateImage (image.py) and LensCalc
(lens_calc.py) — remove all OperateDeflections / operate/deflections.py
references; use aa.decorators.* not grid_dec; point science context at
autolens_assistant/wiki/literature/ (not the personal PyAutoPaper repo); link
the JAX/decorator deep dive in PyAutoArray instead of inlining it. State
import direction (never autolens), CI (3.12 + 3.13), requires-python >=3.9.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit f5c5585 into main Jun 22, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the claude/zealous-gates-l5vxfg branch June 22, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant