Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Codex の「自走力」を高める
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yorifuji
March 05, 2026
Programming
1.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Codex の「自走力」を高める
yorifuji
March 05, 2026
More Decks by yorifuji
See All by yorifuji
GitHub Actionsのカスタムアクションを公開する
yorifuji
0
350
GitHub Actionsのカスタムアクションを作成してMarketplaceで公開した話
yorifuji
0
250
Flutter開発とGitHub Actions
yorifuji
0
380
iOSアプリ開発でGitHub Actionsのself-hosted runnerを使う
yorifuji
1
1.9k
Other Decks in Programming
See All in Programming
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.5k
Event is what happens
moro
2
850
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
970
AmebaブログはKMPから卒業します
kmars0605
0
200
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.3k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Navigating Team Friction
lara
192
16k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
Are puppies a ranking factor?
jonoalderson
2
4.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
730
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Transcript
Codex の「自走力」を高める 1
自己紹介 依藤 充範 (@yorifuji) 金融系スタートアップの iOS エンジニア Codex CLI は
2025 年9 月 から利用 普段は Codex CLI をメインで、Claude Code も併用しています 2
今日の内容 Codex CLI の機能キャッチアップと活用方法 Plan モード、exec_policy (Rules ) Codex CLI
v0.110.0 @ macOS で確認した内容となります Windows/Linux, Codex app では挙動が異なる可能性があります 3
直近の Codex に関連するトピック 日付 トピック 内容 2 月3 日 Codex
app リリース レートリミット上限が2 倍に引き上げ(4 月2 日まで) Free / Go プランに開放(Codex CLI も含む) 2 月4 日 GPT-5.2 / GPT-5.2-Codex 従来比で 40% 高速化 2 月6 日 GPT-5.3-Codex リリース 半分の token でタスク実行が可能 課金ユーザーのみ利用可能 全ユーザーが利用可能 2 月13 日 GPT-5.3-Codex-Spark リリー ス 高速モデル Context Window は 128k (無印の半分) Pro プランユーザーのみ利用可能 3 月6 日 GPT-5.4 リリース /fast モードに対応 Context Window は最大1M 4
Plan モード 5
Plan モード Codex には Plan モードが存在しなかった 計画のつもりで質問すると Codex が勝手にコーディングを始めてしまうこと があった
設計用の skill を用意したり、readonly に切り替えて使う工夫をしていた v0.94.0 で Plan モードがリリース Shift + Tab 、 /plan でモード切り替え 選択肢提示/一問一答形式 の質問機能も用意されている Codex 側からの質問で不明点を潰しながら計画を立てることができる 6
選択肢提示/一問一答形式の質問機能 プラン完了時 7
Plan モードを使ってみた感想 プランの内容をファイルへ保存する機能はない 解決策 developer_instructions オプションを利用して、ファイルの書き出しを指示するプ ロンプトを injection する developer_instructions
Custom Instruction を設定するオプション、Codex に対してシステムプロンプトを 追加することができる Codex の挙動をカスタマイズすることができる 8
developer_instructions の設定例( ~/.codex/config.toml ) developer_instructions = """ 実装を開始する場合、Plan モードで提示した計画内容を .md
ファイルへ書き出すこと。 計画が存在しない場合はこの指示は無視して良いこと。 """ 9
しばらく使ってみた感想 概ね期待通りに動いているが、 developer_instructions も所詮はプロンプトな ので 100% 指示通りに動く保証はない 冗長な内容を記述するとコンテキストを消費してしまう 何故か gpt-5.3-codex-spark
を使うと developer_instructions の内容が無視 されがちな印象... Codex 側でファイル出力機能をサポートすることを期待したいところ 10
参考資料 developer_instructions https://developers.openai.com/codex/config-reference Plan モードで使用されているシステムプロンプト https://github.com/openai/codex/blob/main/codex- rs/core/templates/collaboration_mode/plan.md 11
exec_policy (Rules )と writable_roots 12
exec_policy (Rules ) Sandbox 外でのコマンド実行を制御する仕組み 作業ディレクトリ(cwd )以外のファイルの書き込み、ネットワークアクセス の許可、など exec_policy をカスタマイズするとコマンドの
許可/ 拒否/ 承認要求 のルールを事 前定義できる 自走力を高めるために、よく使うコマンドは承認なしで実行できるようにしてお くのがおすすめ 13
Rule ファイル コマンドの実行ポリシーを定義するファイル (https://developers.openai.com/codex/rules ) 標準では ~/.codex/rules/default.rules ファイルで管理されている Codex 上の承認プロンプトで永続許可したコマンドはここに追記される
ルールをカスタマイズする場合は別のファイル( custom.rules など)を作成し て管理するのがおすすめ 14
Rule のフォーマット ルールを適用したいコマンド単位で prefix_rule() を定義する prefix_rule( # 前方一致でマッチするコマンドのパターンを指定(required ) pattern
= ["gh", "pr", "list"], # `allow` は承認なしで実行(デフォルト)`forbidden` であれば常に拒否(deny ) 、`prompt` で承認要求 decision = "prompt", # (オプション) justification = "Viewing PR list", match = [ "gh pr list", "gh pr list @me", ], not_match = [ "gh pr --repo openai/codex list", ], ) 15
writable_roots exec_policy はコマンド実行の許可を制御するのに対し、 writable_roots は Codex CLI が書き込み可能なディレクトリを追加するオプション ( config.toml
) Sandbox 外のファイルの編集を許可させることができる 設定例 ホームディレクトリ直下の .plans ディレクトリを書き込み可能にする例: [sandbox_workspace_write] writable_roots = ["/Users/yorifuji/.plans/"] 16
参考資料 Rules https://developers.openai.com/codex/rules writable_roots https://developers.openai.com/codex/config-reference Codex の Execution policy rules
を理解して安全・快適に利用する https://zenn.dev/yorifuji/articles/3d44ca14ad6b3e 17
まとめ 直近のニュース 高速化、Codex app Rate Limit 2 倍(4/2 まで) 、無料ユーザーに解放
GPT-5.3-Codex (有料プラン) 、GPT-5.3-Codex-Spark (Pro プラン) 機能 Plan モード exec_policy (Rules )と writable_roots 18
情報源 Documentation https://developers.openai.com/codex ソースコード https://github.com/openai/codex Changelog https://github.com/openai/codex/releases 19