Context
This is step 1 of neomjs/neo-agent-skills#335 (comment 6801123360). neo-agent-skills 1.4.0 ships the AGENTS.md pointer and its git filter beside the generator, as neo-agent-skills-agents-md --pointer; neomjs/neo-agent-skills#347 merged on 2026-11-11. The Engine still carries its own copy, from #20749 and #20777. neomjs/devindex#135 adopts the package's version too. Two copies of one required filter drift: #20777's smudge fix had to land in the Engine alone.
The Problem
Read at dev 5012129e70 and neo-agent-skills b3a73a9:
buildScripts/util/agentsMdPointer.mjs holds the pointer text, the filter name and the clean command (node buildScripts/util/agentsMdPointer.mjs). test/playwright/unit/buildScripts/util/agentsMdPointer.spec.mjs covers it.
buildScripts/util/prepare.mjs registers that filter (ensureAgentsMdFilter, :121) before it runs the generate-agents-md script. Afterwards it lets the index re-read the file (refreshAgentsMd, :160). test/playwright/unit/buildScripts/prepare.spec.mjs covers both (:170, :195, :272, :282).
- The package's
scripts/agents-md-pointer.mjs does the same with ensureFilter, refresh, pointerFor and cleanCommand. --pointer runs them around the write.
- The committed pointer stays byte-identical: the Engine's
AGENTS_MD_POINTER equals 1.4.0's pointerFor('neo').
The Architectural Reality
- In
package.json, generate-agents-md is neo-agent-skills-agents-md --repo neo,neo-agent-brain --out AGENTS.md, and neo-agent-skills is pinned at 1.3.7.
.gitattributes:1-2 routes /AGENTS.md through filter=neo-agents-md, the same filter name 1.4.0 registers. Its comment cites agentsMdPointer.mjs.
- 1.4.0's
ensureFilter rewrites any filter.neo-agents-md.* value that differs from its own. A checkout that still names the Engine's clean command therefore moves to node node_modules/neo-agent-skills/scripts/agents-md-pointer.mjs --repo neo on its next npm install.
- Git keeps filter settings per clone, and every worktree of the clone reads them. (Added 18:45Z, from the probe in the pull request.) An
npm install in a worktree of a commit before this change registers the old command again, for every worktree. The filter is required, so a checkout of this change then fails git status with fatal: AGENTS.md: clean filter 'neo-agents-md' failed once AGENTS.md changes on disk, unless the old command still runs there.
The Fix
- Pin
neo-agent-skills to 1.4.0 and add --pointer to generate-agents-md.
prepare.mjs drops ensureAgentsMdFilter and refreshAgentsMd; its AGENTS.md stage runs the script, which now does both. buildScripts/util/agentsMdPointer.mjs becomes a delegate to the package's pointer, so a checkout of this change still answers the old command. #20790 retires it.
- The
.gitattributes comment names the package instead of the module.
Acceptance Criteria
Out of Scope
- neomjs/devindex#135.
- The Brain's import of
POINTER_MARKER (neomjs/neo-agent-skills#335, step 4).
- The
.claude/CLAUDE.md symlink (#335, step 3).
- The reverse direction. A worktree of an older commit, after a checkout of this change registers the package's command, fails the same way, because its
node_modules lacks the package's script. No new commit can change an old one; npm install in that worktree re-registers its own command and recovers it.
Avoided Traps
- Keeping the Engine copy beside the package's. Two copies of a required filter drift, and a fix like #20777's would have to land twice.
- Deleting the old clean path outright. (Corrected 18:45Z: this item first rejected a shim at the old path, on the reasoning that the next
npm install closes the window. The probe showed that the window reopens whenever a worktree of an older commit installs, so the path stays as a delegate until #20790.)
Related
neomjs/neo-agent-skills#335 (parent, step 1) · neomjs/neo-agent-skills#346 and #347 · #20748 and #20749 · #20776 and #20777 · #20790 · neomjs/devindex#135
Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 of 34 open issues (orange band), plus a closed search (AGENTS.md pointer filter; #20776 and #20748 read), at 2026-11-11T17:35Z. No equivalent found. An org search for agentsMdPointer finds only neomjs/devindex#135 and neomjs/neo-agent-skills#335, this work's siblings. A2A in-flight claim sweep: the latest 30 messages, all read states, at 17:35Z; no claim on this surface. MC sweep: "Engine keeps its own AGENTS.md pointer and git filter copy while neo-agent-skills ships the same mechanism", 5 results, all from this trail's own plan. Own-assignment sweep: #20778 only, no overlap.
handoff: @neo-opus-grace, the owner of #335, self-assigns. Target 2026-11-16. Work starts once 1.4.0 is on npm.
Origin Session ID: 837de252-c321-4f14-a6ef-3d9b24b20537
Retrieval Hint: "Engine adopts neo-agent-skills AGENTS.md pointer --pointer, drops agentsMdPointer.mjs and the prepare filter hooks"
Context
This is step 1 of neomjs/neo-agent-skills#335 (comment 6801123360).
neo-agent-skills1.4.0 ships theAGENTS.mdpointer and its git filter beside the generator, asneo-agent-skills-agents-md --pointer; neomjs/neo-agent-skills#347 merged on 2026-11-11. The Engine still carries its own copy, from #20749 and #20777. neomjs/devindex#135 adopts the package's version too. Two copies of one required filter drift: #20777's smudge fix had to land in the Engine alone.The Problem
Read at
dev5012129e70andneo-agent-skillsb3a73a9:buildScripts/util/agentsMdPointer.mjsholds the pointer text, the filter name and the clean command (node buildScripts/util/agentsMdPointer.mjs).test/playwright/unit/buildScripts/util/agentsMdPointer.spec.mjscovers it.buildScripts/util/prepare.mjsregisters that filter (ensureAgentsMdFilter,:121) before it runs thegenerate-agents-mdscript. Afterwards it lets the index re-read the file (refreshAgentsMd,:160).test/playwright/unit/buildScripts/prepare.spec.mjscovers both (:170,:195,:272,:282).scripts/agents-md-pointer.mjsdoes the same withensureFilter,refresh,pointerForandcleanCommand.--pointerruns them around the write.AGENTS_MD_POINTERequals 1.4.0'spointerFor('neo').The Architectural Reality
package.json,generate-agents-mdisneo-agent-skills-agents-md --repo neo,neo-agent-brain --out AGENTS.md, andneo-agent-skillsis pinned at1.3.7..gitattributes:1-2routes/AGENTS.mdthroughfilter=neo-agents-md, the same filter name 1.4.0 registers. Its comment citesagentsMdPointer.mjs.ensureFilterrewrites anyfilter.neo-agents-md.*value that differs from its own. A checkout that still names the Engine's clean command therefore moves tonode node_modules/neo-agent-skills/scripts/agents-md-pointer.mjs --repo neoon its nextnpm install.npm installin a worktree of a commit before this change registers the old command again, for every worktree. The filter isrequired, so a checkout of this change then failsgit statuswithfatal: AGENTS.md: clean filter 'neo-agents-md' failedonceAGENTS.mdchanges on disk, unless the old command still runs there.The Fix
neo-agent-skillsto1.4.0and add--pointertogenerate-agents-md.prepare.mjsdropsensureAgentsMdFilterandrefreshAgentsMd; itsAGENTS.mdstage runs the script, which now does both.buildScripts/util/agentsMdPointer.mjsbecomes a delegate to the package's pointer, so a checkout of this change still answers the old command. #20790 retires it..gitattributescomment names the package instead of the module.Acceptance Criteria
filter.neo-agents-md.cleanstill namesnode buildScripts/util/agentsMdPointer.mjsrunsnpm installand ends with the 1.4.0 filter registered, the rules in the working copy andgit statusclean. The PR shows this in a real git checkout: the checkout direction is what #20776 missed.git worktree addfollowed bynpm installends the same way.AGENTS.mdis unchanged.agentsMdPointer.mjs; it runs only as git's clean command.prepare.spec.mjskeeps arms only for whatprepare.mjsstill does.npm install,git statusin a checkout of this change still works onceAGENTS.mdchanges on disk.Out of Scope
POINTER_MARKER(neomjs/neo-agent-skills#335, step 4)..claude/CLAUDE.mdsymlink (#335, step 3).node_moduleslacks the package's script. No new commit can change an old one;npm installin that worktree re-registers its own command and recovers it.Avoided Traps
npm installcloses the window. The probe showed that the window reopens whenever a worktree of an older commit installs, so the path stays as a delegate until #20790.)Related
neomjs/neo-agent-skills#335 (parent, step 1) · neomjs/neo-agent-skills#346 and #347 · #20748 and #20749 · #20776 and #20777 · #20790 · neomjs/devindex#135
Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 of 34 open issues (orange band), plus a closed search (
AGENTS.md pointer filter; #20776 and #20748 read), at 2026-11-11T17:35Z. No equivalent found. An org search foragentsMdPointerfinds only neomjs/devindex#135 and neomjs/neo-agent-skills#335, this work's siblings. A2A in-flight claim sweep: the latest 30 messages, all read states, at 17:35Z; no claim on this surface. MC sweep: "Engine keeps its own AGENTS.md pointer and git filter copy while neo-agent-skills ships the same mechanism", 5 results, all from this trail's own plan. Own-assignment sweep: #20778 only, no overlap.handoff: @neo-opus-grace, the owner of #335, self-assigns. Target 2026-11-16. Work starts once 1.4.0 is on npm.
Origin Session ID: 837de252-c321-4f14-a6ef-3d9b24b20537
Retrieval Hint: "Engine adopts neo-agent-skills AGENTS.md pointer --pointer, drops agentsMdPointer.mjs and the prepare filter hooks"