Skip to content

Maintaining local preferences #72

Open

Description

@adiasg

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.

Activity

  1. aidando73 commented on Feb 7, 2026

    @aidando73

    +1

    Maybe something like a AGENTS.local.md?

    Image
  2. apetta commented on Feb 16, 2026

    @apetta

    +1

    Maybe something like a AGENTS.local.md?

    Image

    Surprised this pattern isn't supported....

  3. Pjrich1313 commented on Feb 16, 2026

    @Pjrich1313
  4. cleacos commented on Feb 26, 2026

    @cleacos

    I dropped this message in the PR:

    What about AGENTS.local.md?

    This way we would have:

    • 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.
  5. samzong commented on May 19, 2026

    @samzong

    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

  6. HaleTom commented on Jun 18, 2026

    @HaleTom

    Cross-referencing #13 — I just posted a formal spec proposal for AGENTS.local.md there.

    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.

  7. BrianWeiHaoMa commented on Oct 5, 2026

    @BrianWeiHaoMa

    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.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions