3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Claude Codeを使うことが多いので、Gemini CLIが出てきてもCLAUDE.mdを使いたいなぁって感じのメモです。

こちらで設定をしてたsettings.jsonの指定です。

settings.jsonのcontextFileNameで設定できます。

~/.gemini/settings.jsonに作成しているsettings.jsonが基本的に読み込まれる模様です。

{
  "theme": "Xcode",
  "selectedAuthType": "oauth-personal",
  "contextFileName": "GEMINI.md"
}

↑だと"contextFileName"を"GEMINI.md"と設定してますが、"GEMINI.md"はデフォらしいので設定しなくて大丈夫です。

プロジェクト内のルートに.gemini/settings.jsonを作成すると優先される模様です。

CLAUDE.mdがいるプロジェクトでCLAUDE.mdを指定

プロジェクトフォルダ/.gemini/settings.jsonを作成して、

{
  "theme": "Xcode",
  "selectedAuthType": "oauth-personal",
  "contextFileName": "CLAUDE.md"
}

と書けばおKです。GEMINI.mdも使いたい場合は配列指定もいけます。

{
  "contextFileName": ["CLAUDE.md","GEMINI.md"]
}
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?