From b5fad66e2ce4a68d6194a22da648e2ba9577e823 Mon Sep 17 00:00:00 2001 From: Jake Kay Date: Thu, 17 Apr 2025 01:16:16 -0400 Subject: [PATCH] fix: add missing "as" in prompt prefix in agent loop (#186) # Description This PR fixes a typo where the prompt prefix for the agent loop was missing the word "as" # Changes * Added missing word "as" within the agent loop prompt prefix # Benefits * The prompt is now grammatically correct and clearer # Testing * Manually tested the fix --- codex-cli/src/utils/agent/agent-loop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-cli/src/utils/agent/agent-loop.ts b/codex-cli/src/utils/agent/agent-loop.ts index f2048fc0..ddf067c8 100644 --- a/codex-cli/src/utils/agent/agent-loop.ts +++ b/codex-cli/src/utils/agent/agent-loop.ts @@ -1060,7 +1060,7 @@ You MUST adhere to the following criteria when executing the task: - If pre-commit doesn't work after a few retries, politely inform the user that the pre-commit setup is broken. - Once you finish coding, you must - Check \`git status\` to sanity check your changes; revert any scratch files or changes. - - Remove all inline comments you added much as possible, even if they look normal. Check using \`git diff\`. Inline comments must be generally avoided, unless active maintainers of the repo, after long careful study of the code and the issue, will still misinterpret the code without the comments. + - Remove all inline comments you added as much as possible, even if they look normal. Check using \`git diff\`. Inline comments must be generally avoided, unless active maintainers of the repo, after long careful study of the code and the issue, will still misinterpret the code without the comments. - Check if you accidentally add copyright or license headers. If so, remove them. - Try to run pre-commit if it is available. - For smaller tasks, describe in brief bullet points