Zum Inhalt springen
DeutschlandGPT

DeutschlandGPT Code for VS Code

The DeutschlandGPT coding agent as an extension in Visual Studio Code, with sign-in, approvals and your organization's settings

DeutschlandGPT Code for VS Code brings the coding agent of the desktop app into the Visual Studio Code sidebar. It reads, edits and runs code in the folders open in VS Code, and asks before it changes a file or runs a command.

The extension needs VS Code 1.95 or newer and also runs in VSCodium. It is called DeutschlandGPT Code and is listed in the Visual Studio Marketplace and, for VSCodium, on Open VSX.

Install and sign in

  1. In VS Code, open the Extensions view on the left, search for DeutschlandGPT Code and click Install. If you received the extension as a file (.vsix), choose Extensions: Install from VSIX… in the command palette instead.
  2. Trust the folder you want to work in when VS Code asks. In a folder that is not trusted, VS Code keeps the extension switched off and shows no DeutschlandGPT icon.
  3. If your organization uses its own address or a test system, enter it under Settings → DeutschlandGPT: Server Url, for example dialog.example.de. The sidebar shows which server you sign in to; click that line to change it.
  4. Click the DeutschlandGPT icon in the activity bar on the left, then Sign in. VS Code asks whether to open the website: Open. With Configure Trusted Domains and your organization's address, VS Code stops asking.
  5. Your browser opens. Sign in there as usual, single sign-on included. The browser then asks whether DeutschlandGPT Code für VS Code may use your account and names the account it is signed in with; to use another one, click Switch account on that page, or choose Switch account in the extension.
  6. Allow it. The browser shows Connected and asks whether it may open VS Code: allow it (with Always allow it stops asking), and confirm in VS Code that the extension may open the link. If nothing happens, click Return to the app on that page. You are then signed in, and you can close the browser tab.

In VS Code that runs in the browser (code-server, openvscode-server), the extension signs in with a code instead: a notice shows the code, and Copy code and open page opens the sign-in page in your browser. Enter the code there, sign in as usual and allow it; the extension is signed in a few seconds later.

The account menu at the top right of the sidebar shows who is signed in and has Switch account (the browser asks for the sign-in again) and Sign out. Signing out also ends the sign-in on the server. The extension appears under Settings → Connected apps as DeutschlandGPT Code für VS Code; removing it there ends every sign-in of the extension for your account. The sign-in stays valid while you use it; after 90 days without use you sign in again.

Working

Describe the task in the input field. The agent searches and reads what it needs on its own. Its file tools work only in the open workspace folders and cannot reach paths outside them, not through symbolic links either.

Commands are different: a command runs with your rights, like one you type in a terminal. The approval card therefore warns when a command's arguments point outside the workspace, symbolic links included, and such a command always asks.

  • Approvals: before a file is written, edited, moved or deleted, or a command runs, a card appears above the input field and shows the command exactly as it will run. View diff opens the proposed change in VS Code's own diff editor. Always allow covers file changes or one command family such as pnpm test or python3 -m pytest, for this workspace, and it stays after VS Code restarts. To take it back, run DeutschlandGPT: Reset "Always allow" for this workspace from the Command Palette. Risky commands, such as a force push or rm -rf, always ask. Files inside .git are never changed by the agent, and a change to .vscode/, a hook folder, .mcp.json or an agent settings file always asks, also with Always allow and in the mode that accepts file edits.
  • History: the clock icon lists your earlier conversations, the same ones Code in the desktop app shows. After a reload or a restart of VS Code, the last conversation opens again; if a task was cut off, Continue picks it up.
  • Plus (+): attaches the current file, the selection in the editor, or a file from the workspace.
  • Tools: picks the mode. Ask before changes is the default. Accept changes automatically lets file changes through without a card; commands still ask. Plan has the agent only read and write a plan, which you can open from the card and then approve. Plans are kept in the folder .deutschlandgpt/, which Git ignores. This is also where you show or hide the task list.
  • Model: picks the language model, if your role allows switching. The choice stays until you change it, for new conversations too.
  • Ring: shows how much of your monthly allowance is used. Usage counts against your licence, as with Code in the desktop app.

For administrators

The extension has a role permission of its own, DeutschlandGPT Code for VS Code under Roles. Administrators always have it, and so does every personal account; members get it from an administrator in a role. It does not depend on the desktop app's permissions. In addition, App access has a VS Code extension switch that turns the extension off for the whole organization. It is on by default and independent of the desktop app switch. When it is off, the extension refuses every request at once and says that your organization switched it off.

Was this page helpful?