Skip to content

feat: plain writing for every employee and low Codex verbosity - #43

Merged
lucasnevespereira merged 3 commits into
mainfrom
feat/plain-writing
Nov 11, 2026
Merged

lucasnevespereira merged 3 commits into
mainfrom
feat/plain-writing

Conversation

@lucasnevespereira

@lucasnevespereira lucasnevespereira commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Codex replies ran long, with clauses chained by ; and dashes. That's tokens spent on text nobody wants to read. Two changes, both at the source, so nothing rewrites text afterwards:

 codex exec --json ... --ignore-user-config
+  -c model_verbosity="low"          # shorter replies, fewer output tokens

 HOW_WE_WORK (in every prompt: tickets, plans, wiki, lead consults, chat)
+  How we write: plain words, short sentences, say it once, no filler or recap,
+  no headings for a few lines, full stops instead of ; and dashes, code in backticks.

The rule is about 70 tokens per prompt and says it comes before personality: a personality sets tone, not length. The personality line says the same from its side. It also fixes the one semicolon HOW_WE_WORK had itself.

A prompt rule alone can't promise "never", so runtime::plain() enforces the punctuation part in code:

plain(agent prose)
  " — ", "—", " -- "  → ", "
  "; " or ";" at end  → ". " and the next letter capitalized
  untouched: `inline code`, ``` fenced blocks ```, indented lines, & entities, "x;y", "3–5"
applied to: run summaries and reports (drive), chat replies, every MCP text field (ask_human, post_message, propose_wiki, create_ticket…) except ask_to_run's command

A hook that cleans text afterwards was the other option. It would run for Claude only (Codex has no hooks), cost a step per run, and could break code or Markdown.

Evidence

  • Codex reads the key: codex exec -c 'model_verbosity="bogus"' fails at config load with unknown variant `bogus`, expected one of `low`, `medium`, `high` in `model_verbosity` (codex-cli 0.167). Models without the setting ignore it.
  • runtime::tests::plain_drops_the_tells_but_never_touches_code: prose cleaned. Inline code, fenced shell, indented code and & are kept byte for byte.
  • cargo test and clippy -D warnings pass.

Merge Danger

Door: two-way

Blast Radius: small

Prompt text, one Codex flag, and a text pass on agent prose that skips code. Overlaps #41 and #42 in CHANGELOG.md only.

@lucasnevespereira lucasnevespereira changed the title feat: plain writing rule and low Codex verbosity feat: plain writing for every employee and low Codex verbosity Nov 11, 2026
@lucasnevespereira
lucasnevespereira merged commit 1f526b3 into main Nov 11, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant