# Background agent function is not available in Linux

**URL:** <https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766>\
**Category:** Bug Reports\
**Created:** [May 14, 2025, 12:02pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766 "2025-05-14T12:02:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliceaierlanta](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aliceaierlanta](https://forum.cursor.com/u/aliceaierlanta)\
**Post date:** [May 14, 2025, 12:02pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/1 "2025-05-14T12:02:02Z")

</div>

My operation is as follows:

1. Use mkdir to create a new directory “test”

2. Initialize .git using git init

3. Select background agent mode

4. Enter any content (I entered “test”)

Then an error will be reported:

```auto
Git Not Initialized
The background agent requires a Git repository. Please initialize Git in this repository

```

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/0/5060300c6cef38fe135e2d3897ccfdfbae76ba3a.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/c/c/cc4d8a85634863ad21af0030000d56aa71412faf.png)

My WSL system version:

```auto
alice@DESKTOP-APT2VU4:~/test$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

```

My cursor version:

```auto
Version: 0.50.3 (user setup)
Commit: 1.96.2
Date: 7ae22cf8cd5af9e08b62585dd03d10f5f610acf0
Electron: 2025-05-13T02:23:34.020Z
ElectronBuildId: 34.3.4
Chromium: undefined
Node.js: 132.0.6834.210
V8: 20.18.3
OS: 13.2.152.41-electron.0

```

---

<div class="post-metadata">

**Author:** ![jponline77](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jponline77/32/57424_2.png) [@jponline77](https://forum.cursor.com/u/jponline77)\
**Post date:** [May 22, 2025, 9:38pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/2 "2025-05-22T21:38:30Z")

</div>

I have the same issue. I have an initialized git repository and get the error: The background agent requires a Git repository. Please initialize Git in this repository.  
I am using remote ssh… Probably an issue with remote SSH/WSL

---

<div class="post-metadata">

**Author:** ![liquefy](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@liquefy](https://forum.cursor.com/u/liquefy)\
**Post date:** [May 22, 2025, 10:33pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/4 "2025-05-22T22:33:53Z")

</div>

It literally says what it needs - a git repository. It also requires the code to be on github, unless that changed from yesterday.

---

<div class="post-metadata">

**Author:** ![maor-outrival](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/maor-outrival/32/61294_2.png) [@maor-outrival](https://forum.cursor.com/u/maor-outrival)\
**Post date:** [June 5, 2025, 2:20pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/5 "2025-06-05T14:20:15Z")

</div>

I am getting the same thing while trying to run from an initialized GitHub repo (My code is running on an Amazon Linux instance) but the OS shouldnt matter because it needs a github repo. Hopefully the team can provide a solution soon.

---

<div class="post-metadata">

**Author:** ![NFNChris](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/nfnchris/32/61586_2.png) [@NFNChris](https://forum.cursor.com/u/NFNChris)\
**Post date:** [June 6, 2025, 11:51am UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/6 "2025-06-06T11:51:17Z")

</div>

Also have this problem. I SSH to a remote AWS instance where my code resides. Git is initialized and the agent is able to make commits / cursor settings confirms git is connected / authorized. And yet the background agent says I don’t have git initialized. It doesn’t make much sense that it should be a problem that my environment is remote given that the background agent runs from my git repo.

---

<div class="post-metadata">

**Author:** ![joeo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/joeo/32/61673_2.png) [@joeo](https://forum.cursor.com/u/joeo)\
**Post date:** [June 9, 2025, 5:12pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/8 "2025-06-09T17:12:13Z")

</div>

This issue started to happen with us on Windows today. We were previously able to run Background Agents just fine.

Interestingly, we also get a “No environment.json” warning as well too–even though we indeed have a environment.json file at .cursor/environment.json. This is the first time we are seeing this warning as well.

---

<div class="post-metadata">

**Author:** ![alexbleakley](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@alexbleakley](https://forum.cursor.com/u/alexbleakley)\
**Post date:** [June 9, 2025, 5:12pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/9 "2025-06-09T17:12:34Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/e/9/e9ffc56b37e5b5bc7f155c3ed2a2069cc11a9280.png)  
I also get the “Git Not Initialized” error. The git repository is initialized, the regular Cursor/ VS Code git features are working, and I’ve provided Cursor with GitHub access. I get this whether or not I’m using a devcontainer. Running WSL/Ubuntu.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 9, 2025, 5:12pm UTC](https://forum.cursor.com/t/background-agent-function-is-not-available-in-linux/91766/11 "2025-07-09T17:12:45Z")

</div>

Closed on July 9, 2025, 5:12pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
