Zum Inhalt springen
DeutschlandGPT

Commands

The built-in slash commands, plus your own commands and skills for a project or for every project

Type / in the composer and a list appears. Commands either run entirely in the app, or they expand into a normal request the assistant answers.

Built-in commands

CommandEffect
/helpLists every available command, your own ones included
/clearStarts a new conversation
/modelSwitches the model. Pass part of a name, or nothing to see the current one
/effortSets the reasoning effort: low, medium or high
/planToggles plan mode, optionally with the task right away
/compactSummarises the conversation so far to free up context
/contextShows how full the context is and where it gets compacted
/initAnalyses the workspace and writes a dgpt.md
/code-reviewReviews the uncommitted changes
/commitCommits the changes that belong together
/prCreates or updates a pull request
/gitOpens the Git pane
/terminalOpens the Terminal pane
/integrationsOpens the connected services
/mcpOpens the integrations, filtered to MCP servers
/usageOpens your usage and limits
/rewindRewinds files and conversation to the state before an earlier message
/branchOpens a copy of the conversation as a new conversation

/effort is only listed when the current model supports a reasoning effort. A model that offers at most medium answers at medium even after /effort high.

/model and Auto

/model with a search term switches to the matching model, and reports back if the term matches nothing or several. Without an argument it names the current one.

Auto is a choice like any other model, and it is the default. With Auto, the server picks a model per request based on what the request needs, so a one-line question does not go to the most expensive model available. Pick a model explicitly when you want a specific one for a specific reason, and switch back to Auto when you are done.

/plan

Plan mode reads only. Edits and commands are blocked at the tool level rather than discouraged in the prompt, so plan mode is a real gate and not a request.

/plan refactor the payment module sets the mode and hands over the task in one go.

When the plan is ready, the assistant writes it to .deutschlandgpt/plans/ and asks explicitly whether it should implement it. Approving that is what leaves plan mode, so it never happens as a side effect of your next message.

/code-review

Reviews what is uncommitted: it works out the changed files with Git, reads the diffs and reads as much of the affected files as it needs. It changes nothing.

The result is sorted by severity and grouped into correctness, security and maintainability, with a file:line reference per point. It is also written to .deutschlandgpt/reviews/ as Markdown, so you can read it after the conversation has moved on.

/commit and /pr

/commit looks at what is open and at the style of the project's earlier commit messages, stages only the files that belong to one change, and commits them with a Conventional Commit message. It does not push. If the open changes clearly belong to several topics, it says so and proposes a split. Text after the command is used as guidance for the message.

/pr creates a pull request for the current branch, or updates the title and description of the existing one, through the GitHub CLI gh. A pull request template in .github/ is filled in rather than replaced. It never merges or closes the pull request, and it ends with the URL. Uncommitted changes are reported, not committed. This needs gh installed and signed in.

/compact

A long conversation eventually fills the model's context. /compact replaces the history so far with a summary and keeps working from there.

The transcript shows this as a dedicated card, not as a message from you, so it stays obvious later why the middle of the conversation is missing. While a response is still streaming, the command waits until it has finished. When there is nothing to compact yet, the app says so.

After /compact you can say what the summary should focus on, for example /compact Keep the list of failing tests. The instruction applies to this one summary only.

To summarize only the older part, right-click one of your messages and choose Summarize up to here. Everything before that message is summarized. The message itself and everything after it stay word for word. In the window that opens you can say what the summary should focus on, as with /compact. A message before the latest summary cannot be chosen, because that part is already summarized. This works the same in Code and Cowork.

Code and Cowork compact on their own only shortly before the model's context window is full. Until then you decide when: once the context is 70% full, a notice above the input offers Compact now, which does the same as /compact. A pause or a switch to another model does not trigger compaction. /compact is also for doing it deliberately, before starting a big new step in an already long conversation. If automatic compaction fails three times in a row, or the context fills up again shortly after it three times in a row, the app pauses it for this conversation until the next start and shows a notice. /compact keeps working. If a request still does not fit after compaction, for example because of a single very large message or tool result, the app shortens its middle, or leaves out the oldest images, and marks the spot. This only affects what the model reads. Your conversation itself stays unchanged.

/context

/context shows how full the model's context window is, along with the point where the app compacts on its own and the last request with its share read from the cache. Where a breakdown by area is measured, such as system prompt, tools and history, it is listed too. Nothing is estimated.

How full the context is also shows in the readout at the right of the header.

Your own commands

A Markdown file in .deutschlandgpt/commands/ becomes a slash command named after the file. deploy-check.md becomes /deploy-check, and the body of the file is the prompt that gets sent.

MARKDOWN
---
description: Check whether the branch is ready to deploy
---

Check whether this branch is ready to deploy:

- Do the tests pass?
- Is anything left in the migrations that has not run?
- Are there any TODOs in the changed files?

Report it as a short checklist.

The description from the frontmatter is what shows up in the command list. Without it, the command still works, it just has no description.

Arguments: whatever you type after the command replaces $ARGUMENTS in the template. If the template does not contain $ARGUMENTS, your text is appended at the end. So /deploy-check ignore the E2E tests works either way.

For every project

The same thing in ~/.deutschlandgpt/commands/ is available in all your workspaces. If both hold a command of the same name, the project version wins, so a project can deliberately replace one of your personal commands.

Skills

A skill is a Markdown file in .deutschlandgpt/skills/ (or ~/.deutschlandgpt/skills/ for all projects) describing how something is done here: how a new API endpoint is put together in this codebase, how a release is cut, how the test data is generated.

Unlike a command, you do not invoke a skill. Only its name and description are given to the assistant, and it reads the full file itself when the description matches what it is doing. That way twenty skills cost almost nothing until one of them is actually relevant.

MARKDOWN
---
description: How a new API endpoint is added in this project
---

1. Route in `src/api/routes/`, registered in `index.ts`.
2. Schema in the same folder as `<name>.schema.ts`.
   ...

Write the description so it says when the skill applies, not what it contains. "How a new API endpoint is added" gets read at the right moment. "API notes" does not.

A skill without a description is not left out. The assistant then gets its first heading and the paragraph below it, so a plain Markdown file works too. A description of your own is still the better signal.

Same precedence as commands: project beats personal on a name collision.

Saving a skill from the conversation

Ask the assistant to turn what it just did into a skill, for example "save this as a skill for this project". It proposes a name, a description and the content, and a card shows the complete SKILL.md, as a comparison when a skill of that name exists. Nothing is saved until you agree, in every mode. This card has no "Always allow".

You choose one of three targets:

  • Project: .deutschlandgpt/skills/<name>/SKILL.md in the first shared folder. You can undo the file like any other change.
  • Personal: ~/.deutschlandgpt/skills/<name>/ on this device, for all projects.
  • Account: the skill is created in your DeutschlandGPT account, switched off. It takes effect once you switch it on in the settings under Skills, and then it also works in the web chat.

In plan mode and in sub-agents the assistant saves no skills.

MCP servers and integrations

External tools do not come through a slash command. Add them under Integrations (Cmd/Ctrl+Shift+E), where they become available in Chat, Code and Cowork at once:

Actions of a connected service are approval-gated separately from file changes, and can be waved through with Approve connections automatically.

Was this page helpful?