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 3ffdb73
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,13 +124,14 @@ Provider state file note:
124
124
-`State::save()` writes to `~/.config/git-sc/.providers-state.tmp` first and then `rename(2)`s it onto the final path so concurrent `git-sc` invocations never read a half-written TOML file. On rename failure the temporary file is deleted before the error is returned.
125
125
- The temporary file suffix combines PID, monotonic nanosecond timestamp, and a process-local `AtomicU64` counter, so multiple threads (or rapid consecutive saves) that happen to observe the same wall-clock nanosecond never share a tmp path. Without the counter, two concurrent threads could write to the same `*.tmp.PID.NANOS` file and the slower thread's `rename(2)` would fail with `ENOENT` after the faster thread already moved it.
126
126
-`provider_cooldown_minutes` is converted to seconds with saturating arithmetic, so extremely large user-provided values do not panic in debug builds or wrap in release builds; they are treated as effectively indefinite cooldowns.
127
+
- Cooldown reordering canonicalizes provider aliases before comparing state keys with configured providers, so `gemini`/`agy` remain tied to `antigravity` and legacy `apple-ai`/`apple_intelligence` keys remain tied to `apple-intelligence`.
127
128
128
129
### Agent Context
129
130
130
131
When invoked from a coding agent, `App::run()` reads the `CLAW_HOOKS_AGENT_MESSAGE` environment variable and passes it to `AiService::build_prompt()` as `agent_context`. This context is injected into the AI prompt before the diff section, guiding the AI to reflect the developer's high-level intent in the commit message. The context is applied across standard generation and `--amend` / `--reword` / `--squash` / `--generate-for` workflows.
131
132
132
133
Default Codex model note:
133
-
- As of May 30, 2026 (JST), the default Codex model is `gpt-5.3-codex-spark` after re-running `codex debug models` and `echo "Hello" | codex exec -c model_reasoning_effort='medium' -m <model>` for each listed Codex model. Single-run token consumption (cold start): `gpt-5.3-codex-spark` (`8,737`), `gpt-5.5` (`11,798`), `codex-auto-review` (`11,942`), `gpt-5.3-codex` (`12,021`), `gpt-5.4-mini` (`12,136`), `gpt-5.4` (`15,533`), and `gpt-5.2` (`16,828`). `gpt-5.3-codex-spark` was selected because it had the lowest measured consumption among the currently available Codex models.
134
+
- As of May 31, 2026 (JST), the default Codex model is `gpt-5.2` after re-running `codex debug models` and `echo "Hello" | codex exec -c model_reasoning_effort='medium' -m <model>` for each listed Codex model. Single-run token consumption: `gpt-5.2` (`11,668`), `gpt-5.5` (`11,799`), `gpt-5.4` (`11,950`), `codex-auto-review` (`11,950`), `gpt-5.3-codex` (`12,023`), `gpt-5.3-codex-spark` (`12,083`), and `gpt-5.4-mini` (`15,214`). `gpt-5.2` was selected because it had the lowest measured consumption among the currently available Codex models.
# Note: Antigravity CLI (`agy`) does not accept a model flag, so no `gemini` line is needed here.
267
267
# A legacy `gemini = "..."` value is parsed for backward compatibility but ignored at runtime.
268
268
[models]
269
-
codex = "gpt-5.3-codex-spark"
269
+
codex = "gpt-5.2"
270
270
claude = "haiku"
271
271
opencode = ""
272
272
@@ -292,7 +292,9 @@ provider_timeout_seconds = 60
292
292
|`prefix_rules`| URL-based prefix format |`[]`|
293
293
|`prefix_scripts`| External prefix scripts |`[]`|
294
294
295
-
Existing global config files are not rewritten automatically. The current Codex default is `gpt-5.3-codex-spark`; to use it in an existing setup, update `models.codex` in `~/.config/git-sc/config.toml`. This default was revalidated against the available Codex model list on May 30, 2026 (JST).
295
+
Existing global config files are not rewritten automatically. The current Codex default is `gpt-5.2`; to use it in an existing setup, update `models.codex` in `~/.config/git-sc/config.toml`. This default was revalidated against the available Codex model list on May 31, 2026 (JST).
296
+
297
+
Provider cooldown state normalizes legacy aliases before reordering providers, so `gemini`/`agy` cooldown entries still apply to `antigravity`, and legacy `apple-ai` / `apple_intelligence` entries still apply to `apple-intelligence`.
0 commit comments