What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.616.81150
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 10
What issue are you seeing?
Codex Desktop on Windows appears to create empty folders named .agents, .codex, and .git inside project directories. The empty .git directories are then picked up by Codex Desktop's own background Git origin scanner, which repeatedly launches Git for Windows to run git config --get remote.origin.url. This causes a continuous git.exe / conhost.exe process loop and triggers Microsoft Defender real-time scanning, resulting in sustained high CPU and high power usage.
Deleting the empty .git directories immediately stops the git.exe loop and reduces Defender CPU usage back to low levels without restarting Codex.
What steps can reproduce the bug?
Once empty .git directories exist, Codex Desktop's background git-origins scanner repeatedly launches Git for Windows.
- Microsoft Defender process
Antimalware Service Executable rises to around 20% CPU.
- Windows Task Manager shows high or very high power usage.
Git for Windows and Console Window Host repeatedly appear and disappear.
- Codex may be idle, but the process churn continues.
- Removing the empty hidden directories causes Defender CPU to drop below 2% and stops the
git.exe loop.
Evidence from Codex Logs
Codex logs repeatedly show Git origin scanning:
requestKind=git-origins
source=sidebar_workspace_task_groups_task_dirs
What is the expected behavior?
Codex Desktop should not create an empty .git directory unless it is initializing a real Git repository.
If Codex creates placeholder directories, its own Git scanner should ignore empty .git directories that are not valid Git repositories.
Codex should not repeatedly launch Git in the background for directories that have no remote origin and no real Git metadata.
Additional information
The Project feature is a helpful way to separate different topics and workflows. However, Codex should not automatically create empty .git, .agents, or .codex directories as placeholders, especially for projects used in “for everyday work” mode.
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.616.81150
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 10
What issue are you seeing?
Codex Desktop on Windows appears to create empty folders named
.agents,.codex, and.gitinside project directories. The empty.gitdirectories are then picked up by Codex Desktop's own background Git origin scanner, which repeatedly launches Git for Windows to rungit config --get remote.origin.url. This causes a continuousgit.exe/conhost.exeprocess loop and triggers Microsoft Defender real-time scanning, resulting in sustained high CPU and high power usage.Deleting the empty
.gitdirectories immediately stops thegit.exeloop and reduces Defender CPU usage back to low levels without restarting Codex.What steps can reproduce the bug?
Once empty
.gitdirectories exist, Codex Desktop's backgroundgit-originsscanner repeatedly launches Git for Windows.Antimalware Service Executablerises to around 20% CPU.Git for WindowsandConsole Window Hostrepeatedly appear and disappear.git.exeloop.Evidence from Codex Logs
Codex logs repeatedly show Git origin scanning:
What is the expected behavior?
Codex Desktop should not create an empty
.gitdirectory unless it is initializing a real Git repository.If Codex creates placeholder directories, its own Git scanner should ignore empty
.gitdirectories that are not valid Git repositories.Codex should not repeatedly launch Git in the background for directories that have no remote origin and no real Git metadata.
Additional information
The Project feature is a helpful way to separate different topics and workflows. However, Codex should not automatically create empty
.git,.agents, or.codexdirectories as placeholders, especially for projects used in “for everyday work” mode.