@@ -83,6 +83,7 @@ f codex open "continue the deploy work"
8383f codex open " resume latest"
8484f codex open --path ~ /work/example-project " what was I doing here"
8585f codex resolve " https://linear.app/fl2024008/project/llm-proxy-v1-6cd0a041bd76/overview" --json
86+ f codex doctor --path ~ /work/example-project
8687```
8788
8889Behavior:
@@ -94,6 +95,7 @@ Behavior:
9495- otherwise: start a new session with the raw query and no extra wrapper text
9596
9697This keeps prompt cost flat unless Flow has a strong reason to recover or unroll context.
98+ Use ` f codex doctor ` to confirm whether wrapper transport, runtime skills, and context budgets are actually active for the current repo.
9799
98100### Optional ` flow.toml ` resolver config
99101
@@ -102,11 +104,13 @@ You can teach `f codex open` and `f codex resolve` to unroll repo-specific refer
102104``` toml
103105[codex ]
104106auto_resolve_references = true
107+ prompt_context_budget_chars = 900
108+ max_resolved_references = 1
105109
106110[[codex .reference_resolver ]]
107111name = " linear"
108112match = [" https://linear.app/*/issue/*" , " https://linear.app/*/project/*" ]
109- command = " forge linear inspect {{ref}} --json"
113+ command = " my- linear-tool inspect {{ref}} --json"
110114inject_as = " linear"
111115```
112116
@@ -116,6 +120,100 @@ Notes:
116120- ` {{ref}} ` , ` {{query}} ` , and ` {{cwd}} ` are available in resolver commands
117121- built-in Linear URL parsing works even without a custom resolver
118122- resolver output is compacted before prompt injection
123+ - ` prompt_context_budget_chars ` hard-caps injected context before your request is appended
124+ - ` max_resolved_references ` prevents broad unrolling from bloating one turn
125+
126+ ### Optional runtime skill transport
127+
128+ Flow can also materialize tiny per-launch runtime skills for current upstream Codex without forking Codex.
129+
130+ Enable it with:
131+
132+ ``` toml
133+ [codex ]
134+ runtime_skills = true
135+
136+ [options ]
137+ codex_bin = " ~/code/flow/scripts/codex-flow-wrapper"
138+ ```
139+
140+ Current first-slice behavior:
141+
142+ - ` f codex open "write plan" ` can attach a tiny plan-writing runtime skill
143+ - the runtime skill is exposed only for the launched Codex process
144+ - Flow keeps the generated runtime state under ` ~/.config/flow/codex/runtime `
145+
146+ Inspect or clear runtime state:
147+
148+ ``` bash
149+ f codex runtime show
150+ f codex runtime clear
151+ f codex doctor
152+ ```
153+
154+ Built-in plan writer:
155+
156+ ``` bash
157+ cat << 'EOF ' | f codex runtime write-plan --title "Example Plan"
158+ # Example Plan
159+
160+ - item
161+ EOF
162+ ```
163+
164+ ### Skill eval and background refresh
165+
166+ Flow can learn which runtime skills are actually worth injecting from local
167+ Codex usage history without replaying Codex in the hot path.
168+
169+ Useful commands:
170+
171+ ``` bash
172+ f codex skill-eval show --path ~ /work/example-project
173+ f codex skill-eval run --path ~ /work/example-project
174+ f codex skill-eval cron --limit 400 --max-targets 12 --within-hours 168
175+ f codex skill-source list --path ~ /work/example-project
176+ f codex skill-source sync --path ~ /work/example-project --skill find-skills
177+ ```
178+
179+ What ` cron ` does:
180+
181+ - scans only recent logged Flow Codex events
182+ - skips missing/moved repo paths
183+ - rebuilds scorecards for a bounded number of recent repos
184+ - never launches Codex or replays network work in the background
185+
186+ For your use case, this keeps learning cheap and safe enough to run regularly.
187+
188+ ### macOS launchd schedule for skill-eval
189+
190+ If you want scorecards to stay fresh automatically on macOS:
191+
192+ ``` bash
193+ f codex-skill-eval-launchd-install
194+ f codex-skill-eval-launchd-status
195+ f codex-skill-eval-launchd-logs
196+ ```
197+
198+ Default schedule:
199+
200+ - every 30 minutes
201+ - scan up to 400 recent events
202+ - rebuild up to 12 recent repo scorecards
203+ - ignore repos not seen in the last 168 hours
204+
205+ You can tune install-time bounds:
206+
207+ ``` bash
208+ f codex-skill-eval-launchd-install --minutes 20 --limit 600 --max-targets 16 --within-hours 72
209+ f codex-skill-eval-launchd-install --dry-run
210+ ```
211+
212+ Remove it with:
213+
214+ ``` bash
215+ f codex-skill-eval-launchd-uninstall
216+ ```
119217
120218### Cursor behavior
121219
0 commit comments