Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Emanuele-web04/dpcode/llms.txt

Use this file to discover all available pages before exploring further.

DP Code ships with a built-in terminal so you can run shell commands without leaving the interface. The terminal opens as a drawer at the bottom of the screen and is scoped to the active thread’s working directory. You can open multiple terminal panes, split them side by side, and switch between them — all while your AI session continues in the same view.

Opening and controlling the terminal

The terminal is hidden by default. Use the keyboard shortcut or the toolbar button to bring it up.

Default keybindings

ShortcutActionContext
mod+jToggle the terminal drawer open/closedAny
mod+dSplit the focused terminal horizontallyTerminal focused
mod+tOpen a new terminal paneTerminal focused
mod+wClose the focused terminal paneTerminal focused
mod is Cmd on macOS and Ctrl on Linux and Windows.
All keybindings can be customized. See Keybindings for the full reference and override syntax.

Terminal operations

DP Code supports the following terminal operations for each pane:
OperationDescription
OpenStart a new terminal session in a given working directory with an optional size (columns × rows) and environment variables.
WriteSend input to the terminal’s stdin — used for automated commands and agent-driven shell interactions.
ResizeAdjust the terminal dimensions. Columns must be between 20 and 400; rows between 5 and 200.
ClearClear the terminal’s visible output and scroll buffer.
RestartKill the current shell process and start a fresh one in the same working directory.
CloseTerminate the terminal session and optionally delete its history.

Terminal session states

Each terminal pane goes through the following states:
StateDescription
startingThe shell process is being launched.
runningThe shell is active and accepting input.
exitedThe shell process exited cleanly.
errorThe terminal encountered an error.

Multiple panes and split support

You can run as many terminal panes as you need alongside an AI session. Each pane is an independent shell process with its own history and state.
1

Open the terminal

Press mod+j or click the terminal button in the toolbar to open the terminal drawer.
2

Split the terminal

Press mod+d while the terminal is focused to split the current pane. The two panes share the drawer space side by side.
3

Open an additional pane

Press mod+t to open a new independent terminal pane. You can cycle between panes by clicking them.
4

Close a pane

Press mod+w to close the focused pane. If it is the last pane, the terminal drawer closes.

Project-scoped sessions

Each terminal session is scoped to a thread and opens in the thread’s working directory — either the project workspace root (local mode) or the thread’s worktree path (worktree mode). When you switch between threads, DP Code shows the terminal sessions associated with the active thread.
Use the terminal alongside a running AI session to verify the agent’s output, run tests, or inspect the filesystem in real time without interrupting the turn.

Build docs developers (and LLMs) love