You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands/ai.md
+42-1Lines changed: 42 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,14 @@ Notes:
127
127
128
128
Flow can also materialize tiny per-launch runtime skills for current upstream Codex without forking Codex.
129
129
130
-
Enable it with:
130
+
Enable it globally with:
131
+
132
+
```bash
133
+
f codex enable-global --full
134
+
f codex doctor --path ~/docs --assert-runtime --assert-schedule
135
+
```
136
+
137
+
Or configure it manually with:
131
138
132
139
```toml
133
140
[codex]
@@ -148,9 +155,25 @@ Inspect or clear runtime state:
148
155
```bash
149
156
f codex runtime show
150
157
f codex runtime clear
158
+
f codex memory status
159
+
f codex memory query --path ~/code/flow "codex control plane runtime skills"
160
+
f codex memory recent --path ~/docs
151
161
f codex doctor
152
162
```
153
163
164
+
Assertive health checks:
165
+
166
+
```bash
167
+
f codex doctor --path ~/docs --assert-runtime
168
+
f codex doctor --path ~/docs --assert-schedule
169
+
f codex doctor --path ~/docs --assert-learning
170
+
f codex doctor --path ~/docs --assert-autonomous
171
+
```
172
+
173
+
`--assert-learning` is intentionally strict: it fails until Flow has real
174
+
logged events, grounded outcome samples, and a non-empty scorecard for that
175
+
target.
176
+
154
177
Built-in plan writer:
155
178
156
179
```bash
@@ -169,16 +192,32 @@ Codex usage history without replaying Codex in the hot path.
169
192
Useful commands:
170
193
171
194
```bash
195
+
f codex memory sync --limit 400
196
+
f codex memory recent --path ~/work/example-project --limit 12
172
197
f codex skill-eval show --path ~/work/example-project
173
198
f codex skill-eval run --path ~/work/example-project
174
199
f codex skill-eval cron --limit 400 --max-targets 12 --within-hours 168
175
200
f codex skill-source list --path ~/work/example-project
176
201
f codex skill-source sync --path ~/work/example-project --skill find-skills
177
202
```
178
203
204
+
The Codex memory mirror:
205
+
206
+
- stores durable indexed memory under the Jazz2 root (`~/.jazz2/...` or `~/repos/garden-co/jazz2/.jazz2/...`)
207
+
- mirrors Flow’s route/outcome history into SQLite with WAL enabled
208
+
- extracts compact repo/code facts from repo capsules (summary, commands, important paths, docs hints)
209
+
- adds bounded live code-path retrieval for explicit repo references, so prompts like `see ~/code/flow ...` can inject likely files such as `src/ai.rs` or `docs/...` without dumping raw source
210
+
- indexes durable repo entrypoints and extracted symbols under the same Jazz2-rooted memory store, then supplements them with live symbol extraction from the top-ranked code files during `memory query` / `codex resolve`
211
+
- adds tiny symbol snippets for the top code hits, so coding prompts can carry actual struct/function shape without inlining whole files
212
+
- biases retrieval by intent: implementation/file-edit prompts prefer symbols, snippets, and `src/...` paths; summary/docs prompts prefer doc headings and docs paths
213
+
- stays best-effort so failed memory writes do not block normal Codex coding turns
214
+
- is refreshed again by `f codex skill-eval cron`, so the mirror heals even if a hot-path write is skipped
215
+
- is queried automatically for explicit repo references during `f codex open` / `f codex resolve`
216
+
179
217
What `cron` does:
180
218
181
219
- scans only recent logged Flow Codex events
220
+
- syncs recent skill-eval logs into the Jazz2-backed memory mirror
182
221
- skips missing/moved repo paths
183
222
- rebuilds scorecards for a bounded number of recent repos
184
223
- never launches Codex or replays network work in the background
@@ -195,6 +234,8 @@ f codex-skill-eval-launchd-status
195
234
f codex-skill-eval-launchd-logs
196
235
```
197
236
237
+
`f codex enable-global --full` installs this schedule for you.
-`[commit]`: optional commit workflow defaults; plain `f commit` uses fast commit + deferred Codex deep review by default. Set `quick-default = false` to make plain `f commit` run blocking review instead.
151
152
-`[task_resolution]`: optional policy for nested task discovery (`f <scope>:<task>`, preferred scopes, and per-task routes when plain names collide).
0 commit comments