You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like a way to define my own local preferences & instructions.
For example, for NextJS projects I never want my agents to run npm run dev, but some other developer might want that. Those kinds of preferences should live locally, not in the repo's AGENTS.md.
Reacted by Justin Ko, Michael, Aidan Do, apetta, Jan Jakeš, Jakub Stasiak, Robert Dailey, Taylor Buchanan, Stephen Liu, Brian Ma and 2 more
Reacted by apetta, Clemen, Taylor Buchanan, Robert Dailey, Stephen Liu, Lucas Laurindo dos Santos, Justin Toniazzo, Ilkka Kuusisto, Brice Dutheil, Supakorn Netsuwan and 3 more
I tried that pull someone purposely put a block on my work. If it’s wrong then why would they prevent my process. I have all my work and been working on it since 2021. Sent from my iPhoneOn Feb 16, 2026, at 9:30 AM, apetta ***@***.***> wrote:apetta left a comment (agentsmd/agents.md#72)
+1
Maybe something like a AGENTS.local.md?
Surprised this pattern isn't supported....
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
AGENTS.override.md To fully override the default AGENTS.md
AGENTS.local.md A custom local instructions as an addition to the default AGENTS.md or AGENTS.override.md. To be merged after the default instructions.
Summary: additive .local.md variants loaded alongside their base files, with *.local.md gitignored. This matches what Claude Code, Roo Code, MUI X, and others are already doing independently. Would unify the ecosystem under one convention.
Not a spec answer, but one practical piece a local-instructions convention leaves open is persistence: if the file is intentionally untracked, it normally has no history and doesn't follow you to a fresh clone or another machine.
Using the .agents.md proposed in #73 as an example:
git dupe init
git dupe add .agents.md # use -f if the project already ignores it
git dupe commit -m "my agent preferences"
git dupe remote add origin <private-url>
git dupe push -u origin HEAD
# In a fresh clone on another machine:
git dupe clone <private-url>
git-dupe maintains .git/info/exclude for the private paths, so normal project git status and git add -A don't pick them up.
It does not make an agent read .agents.md, or decide what the local filename should be. That still needs to be defined by the spec and implemented by the tools. It just handles history and syncing once there is a local file to keep.
Activity
aidando73 commentedon Feb 7, 2026
+1
Maybe something like a AGENTS.local.md?
apetta commentedon Feb 16, 2026
Surprised this pattern isn't supported....
Pjrich1313 commentedon Feb 16, 2026
cleacos commentedon Feb 26, 2026
I dropped this message in the PR:
samzong commentedon May 19, 2026
just a tip! no ads.
I also had this probelm. so I build a tool for this, hope to help you.
https://github.com/samzong/codex-agents-local
HaleTom commentedon Jun 18, 2026
Cross-referencing #13 — I just posted a formal spec proposal for
AGENTS.local.mdthere.Summary: additive
.local.mdvariants loaded alongside their base files, with*.local.mdgitignored. This matches what Claude Code, Roo Code, MUI X, and others are already doing independently. Would unify the ecosystem under one convention.BrianWeiHaoMa commentedon Oct 5, 2026
Not a spec answer, but one practical piece a local-instructions convention leaves open is persistence: if the file is intentionally untracked, it normally has no history and doesn't follow you to a fresh clone or another machine.
I packaged
git dupe(https://github.com/BrianWeiHaoMa/git-dupe, Linux only for now) for that part (disclosure: I'm the author). It keeps selected personal files in the working tree while versioning them in a second, private Git repository inside.git.Using the
.agents.mdproposed in #73 as an example:git-dupe maintains
.git/info/excludefor the private paths, so normal projectgit statusandgit add -Adon't pick them up.It does not make an agent read
.agents.md, or decide what the local filename should be. That still needs to be defined by the spec and implemented by the tools. It just handles history and syncing once there is a local file to keep.