Skip to content

Fallback to ~/.gemini/system.md when .gemini/system.md is missing and GEMINI_SYSTEM_MD is set to 1 or true. #15549

@facelezzzz

Description

@facelezzzz

What would you like to be added?

When GEMINI_SYSTEM_MD is set to 1 or true, use .gemini/system.md if it exists in the project; otherwise, fall back to $HOME/.gemini/system.md.

Why is this needed?

Although GEMINI_SYSTEM_MD can be used to specify an explicit path, once a path is set, .gemini/system.md inside certain repositories will no longer take effect, which is inconvenient for our team.

This feature allows our team to keep a consistent global setup while still easily enabling repository-specific .gemini/system.md files when needed.
The behavior is intuitive and provides good flexibility.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageIssues that need to be triaged by the triage automation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions