@@ -21,6 +21,8 @@ f ai cursor list
2121f codex resolve " latest"
2222f codex resolve " https://linear.app/.../project/.../overview" --json
2323f codex open " continue the deploy work"
24+ f codex agent list
25+ f codex agent show commit
2426f ai claude resume < session-id-or-name>
2527f ai codex resume < session-id-or-name>
2628f ai codex resume --path ~ /work/example-project
@@ -132,6 +134,7 @@ You can teach `f codex open` and `f codex resolve` to unroll repo-specific refer
132134auto_resolve_references = true
133135prompt_context_budget_chars = 900
134136max_resolved_references = 1
137+ sync_workflow_command = " ./scripts/sync-safe"
135138
136139[[codex .reference_resolver ]]
137140name = " linear"
@@ -148,6 +151,7 @@ Notes:
148151- resolver output is compacted before prompt injection
149152- ` prompt_context_budget_chars ` hard-caps injected context before your request is appended
150153- ` max_resolved_references ` prevents broad unrolling from bloating one turn
154+ - ` sync_workflow_command ` lets plain ` sync branch ` route into a repo-specific safe sync command instead of improvised Git/JJ steps
151155
152156### Optional runtime skill transport
153157
@@ -170,6 +174,26 @@ runtime_skills = true
170174codex_bin = " ~/code/flow/scripts/codex-flow-wrapper"
171175```
172176
177+ For the ` ~/code/flow ` repo specifically, the intended in-repo shape is:
178+
179+ ``` toml
180+ [options ]
181+ codex_bin = " ~/code/flow/scripts/codex-flow-wrapper"
182+
183+ [codex ]
184+ runtime_skills = true
185+ auto_resolve_references = true
186+ prompt_context_budget_chars = 1200
187+ max_resolved_references = 2
188+
189+ [[codex .skill_source ]]
190+ name = " run-control-plane"
191+ path = " ~/run"
192+ enabled = true
193+ ```
194+
195+ That keeps a fresh checkout Codex-first even before machine-local setup is remembered.
196+
173197Current first-slice behavior:
174198
175199- ` f codex open "write plan" ` can attach a tiny plan-writing runtime skill
@@ -210,6 +234,41 @@ cat <<'EOF' | f codex runtime write-plan --title "Example Plan"
210234EOF
211235```
212236
237+ By default this writes to today's ` ~/plan/<day-of-month>/ ` bucket, for example
238+ ` ~/plan/23/ ` on the 23rd day of the month.
239+
240+ ### Run-owned agent bridge
241+
242+ Flow can execute run-owned Codex agents directly without copying their specs or
243+ prompts into ` ~/code/flow ` .
244+
245+ Useful commands:
246+
247+ ``` bash
248+ f codex agent list
249+ f codex agent list --json
250+ f codex agent show commit
251+ f codex agent run planner --path ~ /code/flow " make a 3 phase rollout plan"
252+ f codex agent run commit --path ~ /repos/openai/codex " review the current diff and draft a safe commit"
253+ f codex agent run planner --json --path ~ /code/flow " reply with exactly: ok"
254+ ```
255+
256+ Behavior:
257+
258+ - Flow bridges into ` ~/run/scripts/agent-router.sh `
259+ - the run-owned agent still executes through its own spec/runtime path in ` ~/run `
260+ - ` --path ` controls the repo/worktree cwd used for the agent run
261+ - ` run ` returns the agent's final output plus any durable artifact/trace paths
262+ - ` f codex doctor --path <repo> ` reports whether the run-agent bridge is ready
263+
264+ Repo-local readiness check:
265+
266+ ``` bash
267+ f codex doctor --path ~ /code/flow --assert-runtime --assert-schedule
268+ f codex skill-source list --path ~ /code/flow
269+ f codex agent list
270+ ```
271+
213272### Skill eval and background refresh
214273
215274Flow can learn which runtime skills are actually worth injecting from local
@@ -229,8 +288,12 @@ f codex telemetry flush --limit 200
229288f codex trace status
230289f codex trace current-session --json
231290f codex trace inspect < trace-id> --json
291+ f codex project-ai show --path ~ /work/example-project --json
292+ f codex project-ai recent --limit 12 --json
232293f codex skill-source list --path ~ /work/example-project
233294f codex skill-source sync --path ~ /work/example-project --skill find-skills
295+ f codex agent list
296+ f codex agent run planner --path ~ /work/example-project " summarize the next rollout slice"
234297```
235298
236299The Codex memory mirror:
@@ -243,6 +306,13 @@ The Codex memory mirror:
243306- adds tiny symbol snippets for the top code hits, so coding prompts can carry actual struct/function shape without inlining whole files
244307- biases retrieval by intent: implementation/file-edit prompts prefer symbols, snippets, and ` src/... ` paths; summary/docs prompts prefer doc headings and docs paths
245308- stays best-effort so failed memory writes do not block normal Codex coding turns
309+
310+ The project-ai manifest:
311+
312+ - gives ` codexd ` a bounded metadata view of repo-local ` .ai/ ` scaffolding
313+ - records counts and latest paths for skills, docs, reviews, tasks, and todos
314+ - keeps default context fill minimal by exposing only compact hints, not raw content
315+ - tracks query counts and recent repo usage so you can see whether the feature is actually being used
246316- is refreshed again by ` f codex skill-eval cron ` , so the mirror heals even if a hot-path write is skipped
247317- is queried automatically for explicit repo references during ` f codex open ` / ` f codex resolve `
248318
0 commit comments