Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

[Feature Request] Support global ~/.kimi/AGENTS.md for multi-project shared conventions #2152

Open

Description

@lNeverl

Problem

Currently AGENTS.md is only loaded from the current working directory. This creates significant friction for developers who maintain many projects in parallel.

My Pain Points

  1. Multiple projects with shared rules: I routinely work with 10+ different projects across unrelated directories. Most of them share the same baseline conventions (coding style, commit message format, security guidelines, etc.).

  2. Duplicate-and-sync hell: Every new project needs a manual copy of the same AGENTS.md. When our team updates a convention, I have to remember and sync every single project's file. This is tedious and error-prone — some repos inevitably get outdated rules.

  3. Skills are not a replacement: Skills are loaded on-demand, so they cannot guarantee baseline rules are always followed. I need certain rules (like "always use 4-space indentation" or "never commit secrets") to be injected at session start, not left to the AI's discretion.

Proposed Solution

Load a global AGENTS.md from ~/.kimi/AGENTS.md (or ~/.kimi/agents.md) before the project-level one. The project-level file can then override or extend the global rules.

Example precedence:

  1. ~/.kimi/AGENTS.md — global baseline (optional, opt-in)
  2. <project-root>/AGENTS.md — project-specific overrides

This is the same pattern used by .gitconfig (~/.gitconfig + repo-level overrides) and many other tools.

Why This Matters

In real-world enterprise/team environments, developers often work with many repos that should all follow the same standards. A global config acts as a "default floor" without forcing per-repo duplication.

Opt-in Design

This is purely optional. Users who don't need it simply don't create ~/.kimi/AGENTS.md. Zero impact on existing workflows. Those who need it get a much better multi-project experience.

Related


Please reconsider this feature. The "more compelling reasons" asked for in #439 is right here: multi-project maintenance is a daily pain point that Skills simply cannot solve.

Activity

  1. chengh-git commented on May 6, 2026

    @chengh-git

    Conldn' t agree more, global ~/.kimi/AGENTS.md is realy important and helpful.

  2. DRYN07 commented on May 8, 2026

    @DRYN07

    I've been looking for this for about two days now. Are you saying there is no option to set global rules???? omg.

  3. chengh-git commented on May 8, 2026

    @chengh-git

    I've been looking for this for about two days now. Are you saying there is no option to set global rules???? omg.

    Yes, no global memory like the CLAUDE.md in ~/.claude/, just for project. Hope Kimi team can make it

  4. cezaronx commented on May 16, 2026

    @cezaronx

    also lost hours looking for the global agents.md ! this is really needed.

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