Codex CLI Tips
既定の workspace-write サンドボックスはネット接続オフ。npm install や curl が失敗する原因に
常に許可(~/.codex/config.toml)
[sandbox_workspace_write]
network_access = true
今回だけ
codex -c 'sandbox_workspace_write.network_access=true'
11/16 公式docsで確認
1
28
出典:公式ドキュメント(Agent approvals & security の Network access、Configuration Reference)
learn.chatgpt.com/docs/agent…
developers.openai.com/codex/…
14
Codex CLI tip: by default every session transcript is saved to ~/.codex/history.jsonl, with no size cap unless you set one.
~/.codex/config.toml:
[history]
max_bytes = 104857600 # 100 MiB, drops oldest
or persistence = "none" to stop saving.
Keep it, cap it, or turn it off?
1
15
Source: Codex docs, Advanced Configuration > History persistence (default "save-all"), checked Nov 15, 2026 with npm @openai/codex 0.169.0
developers.openai.com/codex/…
9
【速報】Codex CLI 0.169.0 の要点
①codex exec は未信頼ディレクトリだと --sandbox workspace-write でもプロジェクト設定と MCP が無効のまま。信頼保存は --trust
②カスタムモデルプロバイダーをターミナルで追加・編集
③レポート画面の Ctrl+S で診断 ZIP を保存
11/15 公式で確認 #CodexCLI
1
60
出典:公式リリースノート(rust-v0.169.0、11/13 公開)
github.com/openai/codex/rele…
19
Gemini CLI tip: checkpointing is off by default, so /restore can't undo an agent's file edits.
Turn it on in .gemini/settings.json:
"general": { "checkpointing": { "enabled": true } }
Snapshots go to a shadow git repo under ~/.gemini/history, not your repo.
Do you keep it on?
1
10
Source: Gemini CLI docs, "Checkpointing" (checked Nov 14 against v0.68.0, current npm latest). The --checkpointing flag was removed in 0.11.0, so settings.json is the only switch.
github.com/google-gemini/gem…
7
【速報】Claude Code 2.1.325 の要点3つ
①zstd 応答デコードのセキュリティ修正
②claude.ai ログインのバックグラウンド実行がシェルの API キーで課金される不具合を修正
③opusplan/haiku 設定でサブエージェントのモデルが変わる不具合を修正
11/14 公式で確認 #ClaudeCode
1
2
87
出典:公式 CHANGELOG(2.1.325)
github.com/anthropics/claude…
11
Claude Code tip: transcripts older than 30 days are deleted silently by default. Those sessions vanish from /resume.
Keep them longer in ~/.claude/settings.json:
"cleanupPeriodDays": 365
0 fails validation; min is 1.
Docs checked Nov 13, v2.1.323.
How long do you keep them?
1
43
Source: Claude Code settings reference (cleanupPeriodDays) and "Cleaned up automatically" in the .claude directory docs
code.claude.com/docs/en/sett…
26
【速報】Claude Code 2.1.323(11/13公開)
①Code Mode(実験的・オプトイン):ClaudeがJSを書いてツールを呼ぶ
②plugin.json に engines["claude-code"]:対応版外のプラグインは読み込まれない
③Bash(PORT=* npm run dev) のように変数内に * がある allow ルールは起動時に警告
#ClaudeCode
出典:公式CHANGELOG(11/13確認、npm latest 2.1.323)
github.com/anthropics/claude…
ほかに /compact の取りこぼしや resume 時の不具合などの修正も多数入っています。
9
Codex CLI tip: in the default workspace-write sandbox, network access is off, so npm install or curl inside a run can fail.
To allow it, add to ~/.codex/config.toml:
[sandbox_workspace_write]
network_access = true
Do you keep network off by default, or turn it on?
1
9
Source: OpenAI Codex docs, Agent approvals & security (checked 2026-11-12; @openai/codex 0.167.2 on npm)
learn.chatgpt.com/docs/agent…
8
【Tips】Gemini CLI は既定で GEMINI.md しか読みません。Codex などと共用の AGENTS.md があるなら、.gemini/settings.json にこう書けば両方読み込みます:
"context": { "fileName": ["AGENTS.md", "GEMINI.md"] }
読み込まれた中身は /memory show で確認できます。
#GeminiCLI
1
10
11/12 に公式の設定ドキュメント(context.fileName / Context files)で確認、npm の Gemini CLI は 0.68.0。読み込み先はホーム(~/.gemini/)→ プロジェクトのルートまでの親ディレクトリ → サブディレクトリの順で、中身は連結されます。
github.com/google-gemini/gem…
7
Gemini CLI tip: no need for a separate GEMINI.md. In .gemini/settings.json:
"context": { "fileName": ["AGENTS.md", "GEMINI.md"] }
Both load (global, project, subdirs). /memory show prints the merged context.
Docs checked Nov 11, v0.68.0.
One file, or one per tool?
1
14
Source: Gemini CLI configuration docs (context.fileName / Context files)
github.com/google-gemini/gem…
New to Gemini CLI? Install and auth walkthrough:
agentkoji.com/en/articles/ge…
10
