Dragent docs
Everything you need to use Dragent — the self-healing terminal. Getting started, the terminal and blocks, the AI agent, themes and settings, your account, and a full reference.
What is Dragent?
A modern terminal with a built-in AI agent that fixes failed commands and helps you code — output organized into clean, addressable blocks.
Dragent is a fast, cross-platform desktop terminal for macOS and Windows that combines a block-based terminal emulator with a first-class AI coding agent. Where a traditional terminal is a passive text buffer, Dragent actively understands what you're trying to do.
- Block-based output. Every command and its output is grouped into a distinct, addressable block you can copy, re-run, filter, and share.
- Self-healing. When a command fails, Dragent diagnoses it and offers a one-click fix.
- A real agent. Plan, read and edit files, run commands with your approval, search your codebase, and use packaged skills — right in the terminal.
- Intelligent input. One input bar handles both shell commands and natural language, with ghost-text autosuggestions and rich editing.
Install & first run
Install
- macOS — open the
.dmgand drag Dragent into Applications, then launch it. It's notarized, so it opens without a developer warning. - Windows — run the installer, then launch Dragent from the Start menu.
First-run onboarding
The first launch walks you through four quick steps:
- Welcome.
- A short tour of what Dragent can do.
- Choose a theme (you can change it anytime in Appearance).
- Sign in through your browser — or skip and do it later.
Signing in
Dragent signs you in through your browser— there's no password to type in the app. Start sign-in from onboarding or Settings → Account, complete it in the browser, and Dragent finishes automatically. You can also bring your own model API keys or use a local model instead.
The interface
The window has three areas: a left sidebar, the main terminal in the middle, and a right project panel.
- Left sidebar — your tabs and project intelligence (detected git repo and runnable scripts). The + button opens a new tab and lets you pick a shell.
- Main terminal — the scrolling block history, with the command input pinned at the bottom (its context row shows your directory, git branch, and change counts).
- Right panel — project context: the current branch, working-tree changes, and any errors.
Open Settings with ⌘, (Windows: Ctrl,).
Blocks
Every command and its output become a self-contained block you can scan, copy, filter, and act on.
Instead of an endless wall of text, Dragent groups every command and its output into a block — bundling the command, working directory, status, timing, and output.
Status & the color stripe
A block shows a colored stripe: green for success, a distinct color for signal exits (e.g. Ctrl+C), and red for other failures. A red block is your cue that self-healing can help.
Block actions
Open a block's ⋯ menu (or right-click its output) to copy the command, output, or both; scroll to it; or open its inline output filter (with a regex toggle) to trim long logs without re-running. Click a header to collapse/expand it. A sticky header keeps the current command visible as you scroll long output.
Checkpoints
When you send a message to the agent, Dragent can record an in-memory checkpoint of your files, so you can restore to that point or revert the last agent turn.
Command input
The input bar handles both shell commands and natural-language requests, and decides — per keystroke — which you mean, showing a shell / agent chip. Force a mode by clicking the chip, typing /shell or /agent, or turn autodetection off in Settings.
- Syntax highlighting and multi-line editing (Shift+Enter for a newline; optional Vim keys).
- Ghost-text autosuggestions from history,
cdpaths,package.jsonscripts, Makefile targets, git branches, and a command database — accept with →. - Path completion with Tab, and
@-mentions to point the agent at a file. - History — ↑/↓ open a preview popover (prefix-filtered), and ⌘R opens fuzzy history search.
The "!" scratch shell
While an AI CLI (like Claude Code) owns the terminal, type ! then a command (e.g. !git status) to run it in a persistent, per-pane scratch shell shown as a resizable card — with live output, its own history, and Stop / Reset controls.
Windows, tabs & panes
Organize work across windows, tabs, and split panes.
| Action | Shortcut |
|---|---|
| New tab | ⌘T |
| New window | ⌘N |
| New agent tab | ⌘⇧N |
| Close tab / pane | ⌘W |
| Split right (vertical) | ⌘D |
| Split down (horizontal) | ⌘⇧D |
| Previous / next tab | ⌘⇧[ / ⌘⇧] |
You can drag a sidebar tab onto a pane edge to move that live session into a split without spawning a new shell, and pop a pane back out to its own tab. ⌘ is Ctrl on Windows/Linux.
The AI agent
A first-class coding agent with selectable modes that bound how autonomous it is — and approvals that keep you in control.
The agent can plan, read and edit files, run commands (with your approval), search your codebase, and use skills. It runs in one of five modes, chosen from the input bar or a slash command:
| Mode | What it does |
|---|---|
| Agent | Autonomous multi-step execution (default). |
| Plan | Researches and presents a plan you approve before any changes. |
| Debug | Reproduce → instrument → root-cause → fix → verify. |
| Multitask | Delegates to parallel sub-agents and synthesizes. |
| Ask | Read-only questions and answers; won't modify anything. |
Approvals
Anything that changes your system runs through approval. In Settings → Agent, choose an approval mode — Manual (always ask), Suggest (only destructive actions ask; the default), or Auto(nothing asks, except reading files outside your project). You can also let read-only commands auto-run, and remember "always allow / deny" per tool.
Budgets & models
The input bar shows turn count, token usage, and a context-window meter; Dragent auto-compacts long sessions so you can keep going. Switch models with /model, or add your own provider keys or a local (OpenAI-compatible) endpoint in Settings → Models & Keys.
Self-healing
When a command fails, Dragent attaches a Fix panel to that block. It reads any files referenced in the error, diagnoses the failure, and shows an explanation.
- If there's a simple fix, click Rerun command to run the corrected version.
- For a deeper problem, click Fix automatically — the agent searches, edits, and re-runs the failing command until it passes.
Agent tools
The agent works by calling tools, each shown as a labeled block, with edits rendered as diff cards. Read-only tools generally run without asking; changes and commands follow your approval policy.
- Read & inspect — read files, list directories, show a tree, get file info, list allowed roots.
- Search —
grep,search_codebase(hybrid semantic + exact), and a parallelexploresub-agent. - Edit & write — write, edit, batch-edit, apply patches, create directories, move files (with a guard against blindly overwriting unread files).
- Run & orchestrate —
run_command,spawn_subagent, task management, a coderepl, andskill. - Web —
web_searchandfetch_url(run on the backend). - Ask you —
ask_userpresents interactive multiple-choice questions.
Connected MCP (Model Context Protocol) servers add their own tools dynamically.
Skills
Skills are packaged instructions that teach the agent to do a specific task well — reviewing a PR, writing a tech spec, scaffolding a component, and more. Dragent ships a large catalog and applies a skill automatically when your request matches.
Add your own
- Per project — create
.dragent/skills/<name>/SKILL.mdin the repo (commit it to share with your team). - Everywhere — place it under
~/.dragent/skills/.
A SKILL.md has optional YAML frontmatter (name, description, when-to-use, allowed tools) and a markdown body that acts as a prompt template. Project skills override bundled ones of the same name.
Codebase intelligence
When you open a project, Dragent builds a local semantic index so the agent can find relevant code quickly. Embeddings are computed on your machine by default, and the index is a pure local cache.
- Control it in Settings → Code & Index: enable/disable, auto-index on changes, respect
.gitignore, and ignore patterns (paths that are never indexed or sent to the model). - The
search_codebasetool blends semantic and exact matches, falling back to text search when the index isn't ready. - Git context (branch, changes vs
HEAD) is surfaced in the UI and given to the agent.
Attachments & voice
Attach images and files with the + button or by dragging them in. Images (png/jpg/webp/gif) are sent as multimodal content so the agent can see them; text files are inlined.
Voice input — click the microphone chip and speak. Voice never uses your AI budget: macOS can use a cloud engine on paid tiers and falls back to on-device; Windows uses built-in dictation. Force on-device with DRAGENT_VOICE_ENGINE=os.
Workflows
Workflows are saved, parameterized command templates (commands.dev / Warp-compatible YAML). Open the command palette with ⌘⇧P, search, pick one, and press Tab to fill each {{argument}} before running.
Dragent bundles a large catalog (git, docker, kubernetes, aws, npm, and more). Add your own to ~/.config/dragent/workflows/or a project's ./.dragent/workflows/.
Themes & appearance
Dragent ships a large catalog (~335 themes), including background-image themes. Choose one in Settings → Appearance — search the full catalog, or browse the featured set and image themes, each shown as a live preview card.
- Image themes keep the picture visible everywhere while popovers, menus, and cards stay solid and readable; each theme's designed opacity is respected.
- Custom themes — drop a
.yamlinto~/.config/dragent/themes/(same format as bundled; a matching name overrides a bundled theme). - Fonts — pick a family (bundled Fira Code + system monospace), size, and line height; typography scales across the whole app together.
Settings
Open Settings with ⌘,. Sections:
- Account — sign in, plan, usage, billing.
- Agent — approval mode, auto-run safe commands, max steps, self-healing, context scope; Models & Keys; and MCP servers.
- Workspace— Appearance, Terminal & Input (shell, fonts, cursor, Vim keys, autodetection), Code & Index, Keyboard Shortcuts.
- System — Privacy and About.
Account & billing
Dragent uses a credit model for AI usage (1 credit = 1¢). Everyone gets a monthly free allowance; paid plans add a plan allowance, and you can buy credits (which never expire).
- Funds are spent plan → free → credits. A "Use my credits" setting controls whether credits are billed after allowances run out.
- When your premium funds are exhausted, the model selector locks to the free model until your allowance resets or you enable/buy credits. You can always use your own provider key instead.
- Billing (subscription, payment, buying credits) is managed in the web dashboard.
Privacy & security
Dragent's core principle: your machine executes, the server orchestrates. Commands run locally, the client has final say, and changes require approval.
- Stays local — terminal history, the codebase index and embeddings, credentials, agent memory, and your own provider keys.
- Leaves only when you use AI— self-healing sends the failing command, directory, truncated output, and exit code; agent tasks send your request plus needed context. There's no background telemetry of your commands.
- Never sent — anything matched by
.gitignore, a repo.dragentignore, or your ignore patterns.
For maximum control, use your own provider keys or a local model, and set provider fallback to off so platform keys are never used.
Keyboard shortcuts
⌘ (Cmd) on macOS corresponds to Ctrl on Windows/Linux.
| Action | Shortcut |
|---|---|
| New tab / window / agent tab | ⌘T / ⌘N / ⌘⇧N |
| Close tab / pane | ⌘W |
| Split right / down | ⌘D / ⌘⇧D |
| Previous / next tab | ⌘⇧[ / ⌘⇧] |
| Settings | ⌘, |
| Copy / paste | ⌘C (or Ctrl⇧C) / ⌘V |
| Interrupt (SIGINT) | Ctrl+C |
| Previous / next command | ↑ / ↓ |
| Accept autosuggestion | → |
| Autocomplete path / command | Tab |
| History search | ⌘R |
| Command palette / workflows | ⌘⇧P |
| Cycle input type (shell / agent) | ⌘⇧I |
| Send / newline (agent) | Enter / ⇧Enter |
| Agent input — !cmd history | ⇧↑ / ⇧↓ |
| Agent input — accept suggestion | Tab / → |
| Toggle rich multi-line input | Ctrl+G |
Platform notes
Dragent runs on macOS and Windows. zsh, bash, and Windows PowerShell get full shell integration (blocks, exit codes, directory tracking); other shells run without it. Updates are delivered over HTTPS and applied on the next restart.
- Windows— defaults to PowerShell (with PowerShell 7 and Git Bash in the "+" picker), draws its own titlebar, and settles a block's output a moment after completion (a ConPTY correctness mechanism, not a hang).
- Linux is not an officially supported target in this release.
Troubleshooting
- Commands don't become blocks— use a shell with integration (zsh, bash, PowerShell); set it in Settings → Terminal & Input.
- Ctrl+C doesn't copy — by design; copy is ⌘C / Ctrl⇧C.
- Model selector is locked — your premium funds are exhausted; enable/buy credits, upgrade, wait for reset, or use your own key.
- Agent won't edit / run — check the mode (Ask is read-only, Plan waits for approval) and your approval settings.
- Hard-to-read image theme — pick a theme whose text suits the image, or a solid theme.
- Microphone silent— grant OS microphone permission (macOS: System Settings → Privacy & Security → Microphone).
Frequently asked questions
Which platforms are supported?
macOS and Windows. Linux isn't an official target yet.
Do I need an account to use the AI?
Sign in to use the Dragent platform's models, or bring your own provider key or a local model.
Will the agent change files without asking?
Not unless you allow it — every change and command runs through approval, and Ask mode is read-only.
Where is my code indexed?
Locally — the index and embeddings are computed and stored on your machine.
How much does it cost?
Everyone gets a monthly free allowance; paid plans add more, and credits (1 credit = 1¢) never expire.
Is voice a paid feature?
No — voice never uses your AI budget.
Licenses & attributions
Dragent is proprietary, closed-source commercial software and an original, clean-room implementation. Like most commercial software, it incorporates some third-party open-source components under their own licenses, which it credits and whose notice requirements it honors — including the Apache License 2.0.
| Component | License | Used for |
|---|---|---|
WarpUI (warpui, warpui_core) | MIT | The UI framework Dragent is built on |
| Alacritty terminal library | Apache-2.0 | Portions of the terminal core |
| Warp Themes | Apache-2.0 | Bundled theme catalog |
| Warp Workflows (commands.dev) | Apache-2.0 | Bundled workflow catalog |
| Fira Code | SIL OFL 1.1 | Bundled monospace fonts |
| Lucide | ISC | UI icons |
| Windows Terminal assets | MIT | Windows graphics/shaders |
No copyleft (GPL / LGPL / AGPL / MPL) code is included. These third-party licenses apply only to their respective components, never to Dragent's own proprietary code. Product logos shown in the app are trademarks of their owners, used only to identify those products.
For the complete license notices and attributions, see the Open-Source Licenses & Notices page.
Ready to try it?
Download Dragent and run your first self-healed command in a minute.