Skip to content

AGENTS.md: Add instructions regarding backticks inside commit messages#61305

Draft
DilumAluthge wants to merge 1 commit intomasterfrom
dpa/codex/edit-agents-md-pr
Draft

AGENTS.md: Add instructions regarding backticks inside commit messages#61305
DilumAluthge wants to merge 1 commit intomasterfrom
dpa/codex/edit-agents-md-pr

Conversation

@DilumAluthge
Copy link
Member

@DilumAluthge DilumAluthge commented Mar 13, 2026

I'm not sure if this is Codex-specific or not, but Codex keeps trying to run git commit -m with backticks inside the commit message, and the shell eats up the backticks before it gets to Git. So I thought it might be useful to have something in AGENTS.md to address this.

Alternatively, folks could instead add this content to their global ~/.claude/CLAUDE.md or ~/.codex/AGENTS.md, but I thought it'd be convenient to have it in the repo.

🤖 Co-authored-by: Codex.

Document that inline git commit message arguments should avoid shell-sensitive formatting, especially backticks inside double quotes, and prefer plain text or a message file when exact formatting is required.

Co-authored-by: Codex <codex@openai.com>
@DilumAluthge DilumAluthge marked this pull request as ready for review March 13, 2026 04:41
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think Claude has this bug, so best not to waste tokens on it

@DilumAluthge DilumAluthge marked this pull request as draft March 14, 2026 20:56
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.

2 participants