# Gemini Code Assist agent mode doesn’t work in Cursor (works in VS Code / Antigravity)

**URL:** <https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867>\
**Category:** Bug Reports\
**Created:** [December 11, 2025, 1:08am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867 "2025-12-11T01:08:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [December 11, 2025, 1:08am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/1 "2025-12-11T01:08:16Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Hi, I’m having an issue where Gemini Code Assist’s agent mode only fails in Cursor, while it works fine in other VS Code–compatible editors.

### Steps to Reproduce

1. In Cursor, disabled all extensions.

2. Enabled only the official Gemini Code Assist extension.

3. Tried to start agent mode from the extension UI.  
→ Agent mode does not start.

To double-check, I installed the same Gemini Code Assist extension in:

**VS Code**

**Antigravity** (a fork of Windsurf, which itself is a fork of VS Code)

In both of these, agent mode **works normally** with the same settings.

### Expected Behavior

Gemini Code Assist’s Agent Mode works perfectly as same as other IDEs.

### Screenshots / Screen Recordings

 ![スクリーンショット 2025-12-11 095222.png](https://us1.discourse-cdn.com/cursor1/original/3X/1/9/1977f9894c330fa3eef2c79f670d382c02419bc1.png)

 ![スクリーンショット 2025-12-11 100559](https://us1.discourse-cdn.com/cursor1/original/3X/2/2/226cd965ca2419e88607817ffc044fe8afb5a1cb.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.50 (user setup)  
VSCode Version: 1.105.1  
Commit: 56f0a83df8e9eb48585fcc4858a9440db4cc7770  
Date: 2025-12-06T23:39:52.834Z  
Electron: 37.7.0  
Chromium: 138.0.7204.251  
Node.js: 22.20.0  
V8: 13.8.258.32-electron.0  
OS: Windows\_NT x64 10.0.26200

### Additional Information

**Error in Cursor**

On Cursor, when I try to start agent mode, I consistently get this error:

```auto
command 'geminicodeassist.startagent' already exists

```

I do not have Gemini CLI installed on this machine, so (as far as I understand) there shouldn’t be any duplicate command registration coming from a CLI integration.

Also, non-agent features of Gemini Code Assist (normal completions / inline usage) work in Cursor.  
Only agent mode is broken.

**Related report**

I found an existing report that seems to describe the same issue:

> [@Gemini code assist in Cursor doesn't work in agent mode](https://forum.cursor.com/t/gemini-code-assist-in-cursor-doesnt-work-in-agent-mode/125492/4):
>
> Thank you for the clarification. This sounds like an issue with the extension itself. We have so far not received similar reports, but it is possible that others experience the same issue. Do you see any errors at Help \> Toggle Developer Tools \> Console, you can share them here.

From my side, it looks like something specific to Cursor’s extension host or command registration is preventing geminicodeassist.startagent from working, even when Gemini Code Assist is the only enabled extension.

If you need logs or a specific diagnostics command run from Cursor, I’m happy to provide them.

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 11, 2025, 4:54pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/2 "2025-12-11T16:54:51Z")

</div>

Hey, thanks for the report. The command `geminicodeassist.startagent` registers 3 times on extension activation, which causes a conflict.

For final diagnostics, please let me know:

1. Open `CTRL+Shift+P` \> Developer: Show Running Extensions - do you see duplicate Gemini Code Assist entries?
2. Help \> Toggle Developer Tools \> Console - copy all error messages (a screenshot is fine).
3. Output (bottom panel) \> select “Log (Extension Host)” - copy the full log from Cursor startup.
4. Confirm that all other extensions are disabled (except Gemini).

Also try:

- Completely remove the extension
- Restart Cursor
- Reinstall the extension
- Developer: Reload Window

If this doesn’t help, confirm the details above and I’ll pass it to the team.

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [December 11, 2025, 10:05pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/3 "2025-12-11T22:05:36Z")

</div>

1. No
2. [log.zip](https://forum.cursor.com/uploads/short-url/zDwCJv3qeK2LcSkCF8a69dJnDrw.zip) (6.5 KB)
3. see log.zip
4. created new profile which uninstalls all extensions except laungage pack
5. \>Completely remove the extension → see 4., reinstalled gemini code assist, but same “already exists” error
6. \>Restart Cursor → no help
7. \>Reinstall the extension → no help
8. \>Developer: Reload Window → no help

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [December 11, 2025, 10:11pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/4 "2025-12-11T22:11:53Z")

</div>

new profile log (both developer console and extension host)

[new-profile-log.zip](https://forum.cursor.com/uploads/short-url/9AeznSkfCKDqt71KA5dikJjSdAh.zip) (3.5 KB)

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [December 19, 2025, 1:05am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/5 "2025-12-19T01:05:36Z")

</div>

Did you pass this issue to Cursor engineer team? No replys posted here SO I’m confused.

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [December 27, 2025, 8:28pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/6 "2025-12-27T20:28:41Z")

</div>

anything progress?

---

<div class="post-metadata">

**Author:** ![untoldstory](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@untoldstory](https://forum.cursor.com/u/untoldstory)\
**Post date:** [January 7, 2026, 12:02pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/8 "2026-01-07T12:02:20Z")

</div>

I have the same issue, please provide and update

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [January 18, 2026, 6:19pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/10 "2026-01-18T18:19:41Z")

</div>

Dean Rie, can you share the progress with us? Thanks!

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [February 3, 2026, 12:09am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/11 "2026-02-03T00:09:28Z")

</div>

so quiet here. come on.

---

<div class="post-metadata">

**Author:** ![TigerHead](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@TigerHead](https://forum.cursor.com/u/TigerHead)\
**Post date:** [February 9, 2026, 9:45am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/12 "2026-02-09T09:45:01Z")

</div>

It seems that you and I might be the only two people on the entire internet who have encountered this issue. Even AI tools couldn’t resolve it. (Although in my case, it’s VS Code.)

I’m not sure whether this will be helpful to you, but I’ll share my solution anyway.

I ran into this problem after installing a certain version of VS Code. The workaround was to manually execute the command geminicodeassist.startagent, which triggered the error shown in the screenshot.

After investigating, I discovered that in my installation directory, the bin folder was not located inside the hashed subdirectory where it was expected to be, but instead was placed in the program’s root directory. After manually copying the bin folder into the corresponding hashed directory, the issue was resolved and Agent mode started working normally again.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/6/9685808e3a7b7b07eff60d8e25875c021666ed39.png)

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [February 9, 2026, 2:40pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/14 "2026-02-09T14:40:36Z")

</div>

How do I run the command ‘geminicodeassist.startagent’ manually? where is it?

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [February 9, 2026, 2:46pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/15 "2026-02-09T14:46:44Z")

</div>

Oh, it is command palette (Ctrl+Shift+P)

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [February 9, 2026, 2:48pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/16 "2026-02-09T14:48:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JimKarter](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JimKarter](https://forum.cursor.com/u/JimKarter)\
**Post date:** [February 9, 2026, 2:59pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/17 "2026-02-09T14:59:25Z")

</div>

So I copy and pasted `bin` folder from `C:\Users\UserName\AppData\Local\Programs\Microsoft VS Code` to `C:\Program Files\cursor` and then exexuted `restart window` command.  
And Boom! Agent mode works! Thanks!

---

<div class="post-metadata">

**Author:** ![TigerHead](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@TigerHead](https://forum.cursor.com/u/TigerHead)\
**Post date:** [February 9, 2026, 3:05pm UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/19 "2026-02-09T15:05:37Z")

</div>

Haha, I’m glad it helped. There’s another person in this thread, “Garth Cooper,” who seems to be experiencing the same issue as well. I’ll try to @-mention him, though I’m not entirely sure how to do that here.

@untoldstory

---

<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:** [March 4, 2026, 1:37am UTC](https://forum.cursor.com/t/gemini-code-assist-agent-mode-doesn-t-work-in-cursor-works-in-vs-code-antigravity/145867/22 "2026-03-04T01:37:19Z")

</div>

Closed on March 4, 2026, 1:37am UTC

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