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
{{ message }}
Repository navigation
Commit 527049f
Browse filesBrowse the repository at this point in the historyBrowse files
Update commit documentation to reflect default behavior of fast commit with deferred Codex review; clarify options for blocking review and configuration defaults.
Copy file name to clipboardExpand all lines: docs/commands/commit.md
+27-16Lines changed: 27 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
# f commit
2
2
3
-
AI-powered commit with code review and GitEdit sync.
3
+
AI-powered commit with deferred Codex review and GitEdit sync.
4
4
5
5
## Overview
6
6
7
-
Stages all changes, runs AI code review for bugs and security issues, generates a commit message, commits, pushes, and syncs AI sessions to gitedit.dev.
7
+
Stages all changes, commits quickly by default, runs Codex deep review asynchronously in the background, pushes, and syncs AI sessions to gitedit.dev.
8
8
9
9
## Quick Start
10
10
11
11
```bash
12
-
#Standard commit with review
12
+
#Default flow: commit now, Codex review runs in background
13
13
f commit
14
14
15
-
#Fast commit (no AI review), then Codex reviews async in background
16
-
f commit --quick
15
+
#Blocking pre-commit review (legacy behavior)
16
+
f commit --slow
17
17
18
18
# Fast commit with custom message (no AI review, no Codex follow-up)
19
19
f commit --fast "fix typo"
@@ -42,7 +42,8 @@ f commit -m "Fixes #123"
42
42
|`--sync`|| Run synchronously (don't delegate to hub) |
43
43
|`--context`|| Include AI session context in code review |
44
44
|`--dry`|| Dry run: show context without committing |
45
-
|`--quick`|| Commit now, run Codex review async in background |
45
+
|`--quick`|| Explicitly use fast commit + async Codex review (compat alias) |
46
+
|`--slow`|| Run blocking pre-commit review before commit |
46
47
|`--fast [MSG]`|| Fast commit with no AI review (defaults to ".") |
47
48
|`--codex`|| Use Codex instead of Claude for review |
48
49
|`--review-model <MODEL>`|| Choose specific review model |
@@ -69,15 +70,15 @@ f commit --review-model codex-high
69
70
70
71
## Fast Commit + Deferred Codex Review
71
72
72
-
Two flags for skipping the synchronous AI review when you want to commit quickly:
Commits immediately (generates an AI commit message but skips the blocking code review), then spawns a background Codex review for that commit. The review result is queued and visible via `f commit-queue list`.
77
78
78
79
```bash
80
+
f commit
79
81
f commit --quick
80
-
f commit --quick -m "wip: rough draft"
81
82
```
82
83
83
84
What happens:
@@ -86,6 +87,15 @@ What happens:
86
87
3. Spawns a background Codex process that reviews the diff
87
88
4. You keep working — check results later with `f commit-queue list`
88
89
90
+
### `--slow` — run blocking review before commit
91
+
92
+
Runs the pre-commit AI review before creating the commit.
93
+
94
+
```bash
95
+
f commit --slow
96
+
f commit --slow --review-model codex-high
97
+
```
98
+
89
99
### `--fast` — instant commit, no review at all
90
100
91
101
Commits with a provided message (or `"."` if omitted). No AI review, no async follow-up. Useful for trivial changes.
@@ -99,20 +109,21 @@ f commit --fast # message defaults to "."
99
109
100
110
| Flag | AI message | Code review | Async review | Best for |
Copy file name to clipboardExpand all lines: docs/fast-commit-deep-review-loop.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ This guide configures a speed-first commit workflow with deferred deep review:
9
9
10
10
```toml
11
11
[commit]
12
-
quick-default = true
13
12
queue = false
14
13
queue_on_issues = false
15
14
@@ -66,6 +65,6 @@ This replaces manual “copy `f commit` output into Codex and ask to address all
66
65
67
66
## Notes
68
67
69
-
-`quick-default = true` applies to plain `f commit`(not `f commit-with-check`) and uses the fast lane (`--quick`) unless you explicitly request blocking review options.
68
+
-Plain `f commit`already uses the fast lane (`--quick`) by default. Set `quick-default = false` only if you want blocking review as the default.
70
69
- Async queued Codex reviews now emit `commit_queue_review` mirror sync events to myflow/gitedit when the reviewed commit is current `HEAD` (the default `f commit --quick` flow).
71
70
-`f reviews-todo codex --all` is a workflow alias over commit queue deep review.
-`[skills]`: optional skill enforcement; `sync_tasks` generates `.ai/skills` from tasks and `install` ensures registry skills are present (skills are gitignored by default).
101
108
-`[skills.codex]`: optional Codex tuning; task skill `agents/openai.yaml` generation, post-sync force reload, and implicit invocation policy defaults.
-`[commit]`: optional commit workflow defaults; `quick-default = true` makes plain `f commit` use fast commit + deferred Codex deep review.
110
+
-`[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.
111
+
-`[task_resolution]`: optional policy for nested task discovery (`f <scope>:<task>`, preferred scopes, and per-task routes when plain names collide).
104
112
-`[options]`: optional integration/runtime toggles; use `myflow_mirror` for mirror sync and `codex_bin` to route review calls through a wrapper transport.
105
113
-`[commit.testing]`: optional local testing gate evaluated during `f commit`; supports Bun-first strict mode plus optional AI scratch-test fallback (`.ai/test` by default).
106
114
-`[commit.skill_gate]`: optional required-skill policy for `f commit`; can enforce presence and minimum skill versions.
Copy file name to clipboardExpand all lines: src/cli.rs
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ pub enum Commands {
223
223
Branches(BranchesCommand),
224
224
#[command(
225
225
about = "AI-powered commit with code review and optional GitEdit sync.",
226
-
long_about = "Stages all changes (or only paths passed via --path), runs code review for bugs/security, generates commit message, commits, pushes (unless commit queue is enabled), and syncs AI sessions to gitedit.dev when enabled in global config.",
226
+
long_about = "Stages all changes (or only paths passed via --path), commits quickly by default, starts deferred Codex deep review in the background, and syncs AI sessions to gitedit.dev when enabled in global config. Use --slow to run blocking review before commit.",
227
227
alias = "c"
228
228
)]
229
229
Commit(CommitOpts),
@@ -792,13 +792,25 @@ pub struct TasksCommand {
792
792
pubenumTasksAction{
793
793
/// List tasks from the current project flow.toml.
794
794
List(TasksListOpts),
795
+
/// Show duplicate task names discovered across nested flow.toml files.
796
+
Dupes(TasksDupesOpts),
795
797
}
796
798
797
799
#[derive(Args,Debug,Clone)]
798
800
pubstructTasksListOpts{
799
801
/// Path to the project flow config (flow.toml).
800
802
#[arg(long, default_value = "flow.toml")]
801
803
pubconfig:PathBuf,
804
+
/// Show only duplicate task names and their scopes.
805
+
#[arg(long)]
806
+
pubdupes:bool,
807
+
}
808
+
809
+
#[derive(Args,Debug,Clone)]
810
+
pubstructTasksDupesOpts{
811
+
/// Path to the project flow config (flow.toml).
812
+
#[arg(long, default_value = "flow.toml")]
813
+
pubconfig:PathBuf,
802
814
}
803
815
804
816
#[derive(Args,Debug,Clone)]
@@ -1450,6 +1462,9 @@ pub struct CommitOpts {
1450
1462
/// Commit immediately and run Codex review asynchronously in the background.
1451
1463
#[arg(long, conflicts_with = "dry")]
1452
1464
pubquick:bool,
1465
+
/// Run blocking review before committing (legacy commitWithCheck behavior).
1466
+
#[arg(long, conflicts_with = "quick")]
1467
+
pubslow:bool,
1453
1468
/// Use Codex instead of Claude for code review (default: Claude).
0 commit comments