Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

dstask

> 开发工具
Open source

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!

1.2K stars0 likes0 views
WebsiteGitHub

About

Git powered terminal-based todo/note manager -- markdown note page per task. Single binary!

dstask

Single binary terminal-based TODO manager with git-based sync + markdown notes per task

Dstask is a personal task tracker designed to help you focus. It is similar to Taskwarrior but uses git to synchronise instead of a special protocol.

If you're at home in the terminal, and with solving the occasional merge conflict, then dstask is for you!

https://github.com/user-attachments/assets/589d06fd-7486-46e4-b838-ce85af12f0fc

Video courtesy of xGoivo -- thanks!

Features:

  • Powerful context system (automatically applies filter/tags to queries and new tasks)
  • Git powered sync/undo/resolve (passwordstore.org style) which means no need to set up a sync server, and syncing between devices is easy!
  • Task listing won't break with long task text
  • note command -- edit a full markdown note for each task. Checklists are useful here.
  • open command -- open URLs found in specified task (including notes) in the browser
  • zsh/bash completion (including tags and projects in current context) for speed; PowerShell completion on Windows
  • A single statically-linked binary
  • import tool which can import GitHub issues or taskwarrior tasks.

Non-features:

  • Collaboration. This is a personal task tracker. Use another system for projects that involve multiple people. Note that it can still be beneficial to use dstask to track what you are working on in the context of a multi-person project tracked elsewhere.

Requirements:

  • Git
  • A 256-color capable terminal

Screenshots

                Next command (default when no command is specified)
            

        
        
            

                
                Show-resolved command to review completed tasks by week. Useful for meetings.
            

        
        
            

                
                Editing a task with $EDITOR (which happens to be vim)
            

        
    

    

        
            

                
                Adding a task
            

        
        
            

                
                Sync command (which uses git)
            

        
        &nbsp;

Installation

  1. Copy the executable (from the [releases page][releases]) to somewhere in your PATH.
    • Linux/macOS: name it dstask and mark it executable (e.g. /usr/local/bin/).
    • Windows: use dstask.exe and place it in a directory on PATH (e.g. %USERPROFILE%\bin).
  2. Enable shell completions:
    • Bash: add source /usr/local/share/zsh/site-functions/_dstask or source completions/zsh.sh in your ~/.zshrc.
    • Nushell: run dstask nushell-completion | save -f ~/.config/nushell/completions/dstask.nu then add source ~/.config/nushell/completions/dstask.nu to your config.nu.
    • PowerShell (Windows): see section "PowerShell completion" below.
  3. Set up an alias in your .bashrc: alias task=dstask or alias t=dstask to make task management slightly faster.
  4. Create or clone a ~/.dstask git repository for the data, if you haven't already:
    • Linux/macOS: mkdir ~/.dstask && git -C ~/.dstask init
    • Windows: mkdir %USERPROFILE%\.dstask then git -C %USERPROFILE%\.dstask init

Windows notes

  • Default data location: %USERPROFILE%\.dstask (can be overridden via DSTASK_GIT_REPO).
  • On first run, dstask may prompt to create the repository if it doesn't exist; answer y/yes to proceed.
  • Terminal: use Windows Terminal or PowerShell with a 256-color capable profile for best results.
  • Shell completions: PowerShell completion is supported; see next section.

PowerShell completion

To enable PowerShell tab completion for dstask on Windows, use the embedded script in completions/powershell.ps1.

One-off for the current session:

powershell
. ./completions/powershell.ps1

Enable permanently by dot-sourcing from your PowerShell profile:

powershell
# Create a profile if it doesn't exist
if (!(Test-Path -LiteralPath $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force | Out-Null }

# Open your profile for editing
notepad $PROFILE

# Add the following line (adjust path if needed):
. "$PSScriptRoot/completions/powershell.ps1"

Alternatively, hardcode the absolute path to the repository if PSScriptRoot is not suitable for your setup, e.g.:

powershell
. "C:\\Users\\\\source\\repos\\dstask-win-port\\completions\\powershell.ps1"

There are also unofficial packages for:

  • Nix
  • Arch (AUR)
  • FreeBSD
  • Homebrew

Moving from Taskwarrior

We have a migration guide to make the transition from taskwarrior to dstask a simple process.

Usage

…

Syntax

Priority

Symbol Name Note
P0 Critical Must be resolved immediately. May appear in all contexts in future.
P1 High Need to be resolved in near future, display in highlighted
P2 Normal Default priority
P3 Low Shown at bottom and faded.

Operators

Symbol Syntax Description Example
+ + Include tag. Filter/context, or when adding task. dstask add fix server +work
- - Exclude tag. Filter/context only. dstask next -feature
-- -- Ignore context. When listing or adding tasks. dstask --, task add -- +home do guttering
/ / When adding a task, everything after will be a note. dstask add check out ipfs / https://ipfs.io
project: project: Set project. Filter/context, or when adding task. dstask context project:dstask
-project: -project: Exclude project, filter/context only. dstask next -project:dstask -work
template: template: Base new task on a template. dstask add template:24
due: due: Set or filter by due date. dstask add task due:friday
due.[filter] due.[filter]: Filter tasks based on due date filter (before, after, in/on). dstask next due.before:tomorrow

State

State Description
Pending Tasks that have never been started
Active Tasks that have been started
Paused Tasks that have been started but then stopped
Resolved Tasks that have been done/close/completed

Due Dates

Due dates can be specified when adding tasks or filtering existing tasks.

Date Formats

Format Description Examples
Relative dates yesterday, today, tomorrow due:tomorrow
Weekdays Full names or 3-letter abbreviations due:monday, due:wed, due:this-fri, due:next-tuesday
Full dates YYYY-MM-DD format due:2024-12-25
Month-day MM-DD format (sets current year automatically) due:12-25
Day of month DD format (sets current month and year automatically) due:15

Adding Tasks with Due Dates

bash
dstask add task with due date due:next-monday
dstask add finish report due:friday
dstask add pay bills due:15  # 15th of current month
dstask add halloween party due:2025-10-31

Filtering Tasks by Due Date

bash
dstask next due.before:friday        # Tasks due before Friday
dstask next due.after:tomorrow       # Tasks due after tomorrow  
dstask next due.on:tue               # Tasks due on Tuesday
dstask next due:overdue              # Overdue tasks
dstask next due.before:2025-12-31    # Tasks due before end of year

Contexts

When dstask runs, a context can be set to filter the task output. Run dstask help context for more examples. There are two ways to set a context.

  1. The context command, which sets a global context on disk.
  2. The DSTASK_CONTEXT environment variable. Contexts set by this environment variable override the global context on disk.

Use the context to set a context that will apply by default, no matter what terminal window you're using.

Use the DSTASK_CONTEXT environment variable to override context in specific uses. For instance, a direnv config can set a context for particular directories.

Context is not synchronised between machines.

Dealing with merge conflicts

Dstask is written in such a way that merge conflicts should not happen, unless a task is edited independently on 2 or more machines without synchronising. In practice this happens rarely; however when it does happen dstask will fail to commit and warn you. You'll then need to go to the underlying ~/.dstask git repository and resolve manually before committing and running dstask sync. In some rare cases the ID can conflict. This is something dstask will soon be equipped to handle automatically when the sync command runs.

Performance

See etc/PERFORMANCE.md

General tips

  • Overwhelmed by tasks? Try focussing by prioritising (set priorities) or narrowing the context. The show-tags and show-projects commands are useful for creating a context.
  • Use dstask to track things you might forget, rather than everything. SNR is important. Don't track tasks for the sake of it, and don't track ideas. Track ideas separately.
  • Spend regular time reviewing tasks. You'll probably find some you've already resolved, and many you've forgotten. The show-unorganised command is good for this.
  • Try to work through tasks from the top of the list. Dstask sorts by priority then creation date -- the most important tasks are at the top.
  • Use start/stop to mark what you're genuinely working on right now; it makes resuming work faster. Paused tasks will be slightly highlighted, so you won't lose track of them. show-paused helps if they start to pile up.
  • Keep a github-style check list in the markdown note of complex or procedural tasks
  • Failing to get started working?

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gobashclicommand-linegit

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具