Skip to content

Complete Usage Guide

This tutorial walks you through building a single-file todo app with Dline. Along the way you will use Plan and Act modes, approve changes, iterate on the result, and roll back with checkpoints.

Before starting, make sure you have:

Dline creates and edits files inside your workspace. Prepare an empty folder for the todo app:

  1. In VS Code, choose File → Open Folder.

  2. Create a folder, for example todo-app on your Desktop.

  3. Select the folder and choose Open.

The folder now appears in the Explorer. The file list is empty because this is a new project.

Select the Dline icon in the VS Code Activity Bar to open the panel. The panel has three areas: the title bar at the top, the task conversation in the middle, and the input box at the bottom.

The buttons in the panel title bar work whether or not a task is running:

The Dline panel title bar with its numbered buttonsThe Dline panel title bar with its numbered buttons

#ButtonPurpose
1New Task (+)Open a new Dline task in an editor tab beside the current editor; the sidebar and other tabs keep their tasks
2MCP ServersSwitch the sidebar to the MCP servers view
3HistorySwitch the sidebar to task history, where you can reopen, search, and delete tasks
4SettingsSwitch the sidebar to settings, including Profiles, features, and terminal options

While a task is open, the task header sits at the top of the conversation. Select the chevron or the task title to expand or collapse it.

The expanded task header with its numbered controlsThe expanded task header with its numbered controls

#ControlPurpose
1Metrics capsule (In, Out, RPM, TPM, Hit, cost)Token usage, request rate, prompt-cache hit rate, and cost (when the model has pricing); select it to open API Rate History
2Context barContext-window usage for the task; hover to see a summary
3Compact TaskSummarize the conversation to free context; asks for confirmation first
4Copy TextCopy the task prompt
5Refresh Prompt CacheRebuild the task’s system prompt; a warning icon means rules, skills, MCP servers, or other prompt inputs changed since the task started. Refreshing causes one prompt-cache miss
6Delete TaskPermanently delete the task after confirmation
7Close Task (×)Close the current task and return to the start screen

When automatic compaction has failed and Retry cannot recover the task, a More context actions (⋯) button appears next to Compact Task. It offers Force truncate conversation history, which asks you to type TRUNCATE to confirm.

Banners may appear under the header, for example when prompt-cache hit rates stay low, when checkpoints fail (Retry Checkpoints / Disable Checkpoints), or when another window holds the task lock (Unlock).

The Auto-approve bar sits above the input box, and a row of tool buttons sits below it:

The Dline input area: the Auto-approve bar above and the numbered tool buttons belowThe Dline input area: the Auto-approve bar above and the numbered tool buttons below

#ControlPurpose
1@ (Add Context)Insert an @ mention for files, folders, terminal output, Problems, and other context
2+ (Add Files & Images)Attach files or images to the message
3MCP icon (Manage MCP Servers)Open the MCP servers popup to enable or disable servers
4Scales icon (Manage Dline Rules & Workflows)Open the capabilities panel for Rules, Workflows, Skills, Subagents, and Environments
5Model name (Select model)Switch the model in use
6Plan / Act switchSwitch between Plan mode and Act mode
7Send buttonSend the message

Select the input box at the bottom of the panel and paste this prompt:

Build a todo app in a single HTML file. Include:
- Input field to add new tasks
- List that displays all tasks
- Checkbox to mark tasks complete (with strikethrough styling)
- Button to delete individual tasks
- Clean, modern design with CSS
- All JavaScript inline in the same file

Press Enter or select the send button. You can change the send shortcut to Ctrl + Enter or Shift + Enter in Settings → General → Send messages with.

The bottom-right corner of the input area has a Plan / Act switch. Select it to change modes; hover over it to see the toggle shortcut.

  • Plan mode: Dline gathers information and discusses an approach with you. Use it to align on requirements, adjust the approach, and clarify details.
  • Act mode: Dline carries out the task directly, creating files and writing code.

Selecting the Plan / Act switch to change between the two modesSelecting the Plan / Act switch to change between the two modes

When Dline is ready to write a file, the chat shows the target path (for example index.html) and the proposed content, followed by two buttons:

  • Approve: let Dline create or edit the file;
  • Reject: decline this change; you can then give different instructions.

Select Approve. index.html appears in the Explorer on the left.

Dline proposes a file write; after Approve the file is created and the task completesDline proposes a file write; after Approve the file is created and the task completes

Open index.html in a web browser:

Option A: Use the terminal

Open a terminal in your editor (Ctrl+` or Terminal → New Terminal) and run:

Terminal window
open index.html

Option B: Use Finder

Right-click index.html in the Explorer, choose Reveal in Finder, and double-click the file.

If you have the Live Server extension installed, you can also right-click index.html and choose Open with Live Server; the page reloads automatically when files change.

Try adding, checking off, and deleting a few tasks. The app runs entirely in your browser with no backend.

Keep sending messages in the same task. Dline modifies the existing code instead of starting over. Try:

Add local storage so tasks persist when I refresh the page
Switch to a dark theme with purple accent colors
Add a filter to show all, active, or completed tasks

Dline first reads the current index.html, then proposes specific changes and waits for your approval before modifying the file. Select Approve, then refresh the browser to see the result.

After Dline changes the workspace, a Checkpoint marker appears in the chat. Hover over the marker to reveal two buttons:

  • Compare: show which files have changed since that checkpoint;
  • Restore: open the restore menu.

The restore menu offers these options:

OptionEffect
Restore Files & TaskRevert files to the checkpoint and clear messages after that point
Restore Files Only (under More options)Revert only the files to the checkpoint and keep the conversation
Restore Task Only (under More options)Clear only the messages after that point; files stay unchanged

To undo a change but keep discussing a different approach with Dline, use Restore Files Only.

Learn more in Checkpoints.

You have completed the core Dline workflow:

  1. opened a project folder as the workspace;
  2. opened the Dline panel and described a task in the input box;
  3. understood and switched between Plan and Act modes;
  4. approved file changes before they were written;
  5. iterated by sending follow-up messages in the same task;
  6. used checkpoints to undo changes.

The same patterns work for any project, from small scripts to full applications. The more specific the context you give, the better the results.

  • Task management: the patterns you will use with Dline every day;
  • Working with files: reference files, folders, and URLs in prompts with @;
  • Rules: customize how Dline behaves in your projects.
  • Start a new task: type /newtask in the input box and Dline starts a new task with context carried over from the current one;
  • Report a problem: type /reportbug and Dline helps you gather the details and file a GitHub issue;
  • Project issues: visit the Dline issue tracker.