Skip to content

Codex Desktop Creates Empty .git Directories, Then Repeatedly Scans Them and Triggers Windows Defender High CPU #29911

Description

@Snowsword168

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingperformancewindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions