DP Code surfaces Git operations directly inside every thread, so you can review changes, manage branches, and ship pull requests without switching to a separate terminal or GUI tool. Git actions are available in the thread’s toolbar and context panel and work on the thread’s active working directory — whether that is your main workspace root or a dedicated worktree.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.
Git status
DP Code shows a live Git status for each thread, including:- The active branch name
- Whether the working tree has uncommitted changes, and a file-level breakdown of insertions and deletions
- Whether the branch has an upstream remote, and how many commits it is ahead or behind
- The open pull request associated with the current branch, if any
Branch management
You can perform the following branch operations from inside a thread:| Operation | Description |
|---|---|
| List branches | See all local and remote branches for the project, with a flag indicating which is current and whether any branch has a linked worktree. |
| Create branch | Create a new branch from the current HEAD. Optionally publish it to the remote immediately. |
| Checkout | Switch the working directory to a different branch. |
| Stash and checkout | Stash uncommitted changes and check out a different branch in one step. |
| Pull | Pull the latest changes from the upstream remote for the current branch. |
Worktree management
Worktrees let you check out multiple branches of the same repository simultaneously. DP Code creates and manages worktrees automatically when you use worktree thread mode, and you can also create them manually.| Operation | Description |
|---|---|
| Create worktree | Check out an existing or new branch into a new worktree directory. |
| Create detached worktree | Check out a specific Git ref (commit SHA, tag) into a detached worktree without creating a branch. |
| Remove worktree | Delete a worktree directory and deregister it from Git. Pass force: true to remove even if the worktree has uncommitted changes. |
Diff viewer
DP Code includes a built-in diff viewer that lets you inspect exactly what changed and when.- Working tree diff
- Turn diff
- Full thread diff
Shows all changes currently in the working tree — staged, unstaged, or combined — for the thread’s active directory. Use the scope selector to switch between
workingTree, unstaged, staged, and branch views.Stash operations
| Operation | Description |
|---|---|
| Stash info | Read the current stash entry — branch, stash ref, message, and list of stashed files. |
| Stash and checkout | Stash the working tree and switch branches atomically. |
| Stash drop | Discard the stash entry for the working directory. |
Stacked PR workflow
DP Code can run a multi-step Git action sequence in a single command. ThegitRunStackedAction operation chains any combination of the following phases:
commit
Stages and commits changes with an AI-generated or user-supplied commit message. Skipped automatically if there are no changes.
commit_push runs commit and push together; commit_push_pr runs all three in sequence. Progress events stream in real time as each phase starts and finishes, including any pre-commit or pre-push hook output.
Pull request integration
When a thread has an associated pull request, DP Code surfaces it in the thread header. From the PR panel you can:- Resolve a PR: look up a PR by number or URL and inspect its branch and base information.
- Prepare a PR thread: resolve a PR and configure a new thread that checks out the PR’s branch (local or worktree mode), ready to continue work on it with an AI agent.