Files
worktrunk/dev
Maximilian Roos f732cbda72 docs: use supported lean Codex commit generation settings (#4261)
The Codex commit-message example passed `-c system_prompt=''`, which
Codex 0.156.1 rejects under `--strict-config` as an unknown setting. It
also implied an empty prompt, though global `AGENTS.md` and Codex's
other context remain.

The single recommended command now uses Luna without reasoning, limits
project instructions and the skills catalog, disables unneeded web,
shell, app, plugin, subagent, and goal capabilities, and replaces
built-in model instructions with a one-character file. It preserves user
provider settings and authentication. Accepting Worktrunk's first-run
Codex setup creates that file and reports its path; the FAQ inventories
it and explains that the saved command requires it. File setup errors
name the path. Config help, the sample config, benchmark command,
generated skill docs, and snapshots use the same command.

For `Reply exactly OK.`, the one-character file reduced a normal-home
Codex query from 27,890 to 24,371 input tokens in one comparison. In a
separate normal-home comparison, `skills.max_context_tokens=1` reduced
input from 24,572 to 18,208 tokens; the four shell/app/plugin disables
reduced that to 16,352, `agents.enabled=false` to 14,339, and disabling
goals to 13,721. `codex debug prompt-input` showed the skills catalog
shrinking from 22,170 to 501 characters. In a controlled fresh home, the
global `AGENTS.md` added 6,504 tokens. We found no supported per-command
flag to omit global `AGENTS.md` while retaining the normal Codex home;
remaining agent context keeps this above a tens-of-tokens prompt.

Validated the exact saved stdin → Codex → `jq` command with strict
config parsing and the user's normal Codex home: `Fix typo in README`,
13,729 input and 8 output tokens. Nine PTY commit prompt cases cover
creation, reuse, preview decline, and setup failure; docs sync, help
snapshots, docs build, and pre-commit passed.

The remaining direct-query work is tracked in
[#4264](https://github.com/max-sixty/worktrunk/issues/4264).

> _This was written by Codex on behalf of max-sixty_
2026-09-24 23:26:13 -07:00
..