$ mdgrid ~/notes/Tasks

Markdown and CSV, a database in your terminal.

mdgrid opens a folder of Markdown notes, or a CSV file, like a database in your terminal. Filter, sort, group, and link tables. Only the values you change are written back to the files.

$ cargo install mdgrid --locked

Get a binary from Releases · cargo needs Rust 1.90 or newer

  • v0.8.0
  • Linux, macOS, Windows
  • One binary, runs in the terminal
  • MIT / Apache-2.0
mdgrid ~/notes/Tasks
A folder of Markdown: Notes line up as rows, frontmatter keys as columns.A CSV file: The first line names the columns. .tsv works the same way.Linked tables: Links between notes join the tables. Press R for the relation map.

As a database

Filter, sort, group, and read one note

The files stay as they are; only the table moves. Each of these is a key or two away, and Esc brings the table back.

Filter by what you type

Press \ and type: only the rows containing that text remain. You can also filter by picking values of a column, and keep the conditions in a view.

Filter by what you type

Sort by a column

Press s on a column, and again to reverse. The order of the note files does not change.

Sort by a column

Rows grouped by value

Group rows by status or by project. Headings fold and carry a count.

Rows grouped by value

Name a way of looking and keep it

Save filters, sorting and a set of columns as a view, and switch views with tabs. Views in a .base file open as they are.

Name a way of looking and keep it

Count the values of a column

Press % to see which values a column holds and how many notes have each, including how many are still empty.

Count the values of a column

Read one note without leaving the table

Press K to see every property and the body of the selected note on one screen. Enter edits right there.

Read one note without leaving the table

Also: typed inputs (calendar, tags, checkboxes), bulk edits, parent/child indent and WBS, type and rule checks, English and Japanese screens. What mdgrid can do →

Relations

A link becomes a relation between tables

Write a link to another note in the frontmatter and that column becomes a relation to the table the note lives in. From a cell you can open the target note and follow the rows that point at it. Press R to see the tables and their links in one map.

Tasks/Build the appointment API.mdTwo lines of a task note
project: "[[Clinic Booking App]]"owner: "[[Sam Ortiz]]"

Relations are between notes. CSV tables are not part of this yet.

Linking tables →
A link becomes a relation between tables

In a split terminal

Keep it in the pane next to your AI agent

Split the terminal: ask an AI agent to do the work in one pane and keep mdgrid open in the other. When the agent rewrites a note, the table follows. You check the result in the table and fix it right there if it is off.

~/notes

AI agent (a made-up screen)

sample-agent v1.0 · ~/notes/ai-human

Fix the broken links on the catalog and close the task

▸ Readmdgrid Tasks.base --print --format json└ 9 rows
▸ WriteTasks/Fix broken links on the catalog site.md- status: todo+ status: done
▸ Checkmdgrid Tasks --check└ no problems (exit code 0)

Links fixed and the task set to done. Have a look at the table on the right.

Enter to send · Esc to stop

mdgrid (real screen)

mdgrid (real screen)
Rereads every second
When a note changes outside mdgrid, the table shows it. The interval is the poll_ms setting.
Never overwrites silently
If a note you are editing is rewritten outside, saving stops for that note and you choose which version to keep.
A skill for agents
A skill that teaches agents the mdgrid CLI lives in plugins/mdgrid in the repository.

The left pane is a made-up agent screen, drawn for this page. Any terminal that splits, such as tmux or WezTerm, works the same way.

As a terminal tool

Everything happens in the terminal

mdgrid is a single binary. Nothing runs in the background and there is no database to set up. The data is the note and CSV files themselves, so git shows the diffs and your usual editor can keep the same folder open.

Working with other commands →
# One command per folder
$ alias tasks='mdgrid ~/notes/Tasks'
# Print the table to standard output (csv, tsv, json, md)
$ mdgrid ~/notes/Tasks --print --format json | jq .
# Hand the notes you pick to the next command
$ mdgrid ~/notes/Tasks --pick path | xargs -o vi
# Find values that do not fit the column type or a rule
$ mdgrid ~/notes/Tasks --check
# Open read-only
$ mdgrid ~/notes/Tasks --readonly
tmux
Copying with y reaches your local clipboard from inside tmux too.
WezTerm, Ghostty
Rounded chips and similar marks are drawn where the terminal is known to render them, and fall back to plain shapes elsewhere.
Editors
Press e to open the selected note in your editor: vim, Neovim, Helix, Emacs or whatever $EDITOR holds, and code -w too. Close it and the table rereads the note.
Mouse
Keys come first, and clicking rows and cells and the wheel work as well.

Safe to edit

Only the value you change is written

Here are five task notes from the sample. Pick a row and its file shows on the left. Then change a status: the one line that would be written lights up, and nothing else moves. CSV files get the same promise.

Tasks/Write the ordering estimate.mdA note (plain Markdown)
---status: doingproject: "[[Online Ordering]]"owner: "[[Maya Chen]]"due: 2026-10-08priority: 1estimate: 1billable: falsetags: [sales]---Two options: pickup only, or pickup and delivery.
~/notes/TasksThe table in mdgrid
notestatusprojectownerduepriority
2026-10-081
2026-10-142
2026-10-093
2026-09-181
2026-10-021
unsaved 0Pick a row, or change a status.

This is a model in the browser. The real mdgrid shows you this diff on Ctrl+S before it writes.

How saving stays safe →

Try it in a minute

From the sample to your first edit.

  1. Install

    The quickest way is to unpack a release archive and put mdgrid on your PATH. With Rust, this one line works too (the build takes a few minutes).

    $ cargo install mdgrid --locked

    Get a binary from Releases · cargo needs Rust 1.90 or newer

  2. Copy the sample and open it

    The samples live in the repository's examples folder. You open a copy in a temporary folder, so saving never changes the original.

    $ git clone https://github.com/S6U5/mdgrid && cd mdgrid
    $ cp -R examples/studio /tmp/mdgrid-sample
    $ mdgrid /tmp/mdgrid-sample/Tasks
  3. You should see this table

    You should see this table

    It is the task table of "Northwind Studio". j k move Enter edit Ctrl+S review and save q quit

    Other ways to install, and how to read the screen

For your own notes

Start from an empty folder, already shaped as a table.

Five starters are built in, and you can make your own. Each writes a marker, a note template and a few samples, so the first note already shows up in a table. If you have notes, just pass their folder.

One note per task

Tabs for open, doing, waiting and done, with due date, priority and tags. Marking a task done is Enter on its status cell and one pick.

$ mdgrid ~/tasks --init-workspace --starter tasks --with-samples
$ mdgrid ~/tasks
One note per task

Books, articles, films, talks

Tabs for the queue, what you are on now and what is done, with columns for kind, author and rating. Notes with no rating stand out as empty cells.

$ mdgrid ~/reading --init-workspace --starter reading --with-samples
$ mdgrid ~/reading
Books, articles, films, talks

A people table and a meetings table

The attendees of a meeting note link to people notes. Press R to see the two tables and the links between them.

$ mdgrid ~/people --init-workspace --starter people --with-samples
$ mdgrid ~/people
A people table and a meetings table

Bookmarks you browse by folder

The folder column becomes a tree. Press T for the tree, with the rows of the selected folder on the right. Enter opens the URL.

$ mdgrid ~/bookmarks --init-workspace --starter bookmarks --with-samples
$ mdgrid ~/bookmarks
Bookmarks you browse by folder

A ledger you shaped, as the template for the next one

Copy the .mdgrid/ of a ledger you like into starters/<name>/ledger/ in the config folder, and it is offered next to the built-in ones. Only the marker and the templates go in, never your notes. Keep it in your dotfiles and every machine starts from the same ledger.

$ mkdir -p ~/.config/mdgrid/starters/journal/ledger
$ cp -R ~/notes/journal/.mdgrid ~/.config/mdgrid/starters/journal/ledger/
$ mdgrid ~/notes/journal-2027 --init-workspace --starter journal
A ledger you shaped, as the template for the next one

Looks

Colors are one line of config.

Press a name to see the real screen in that theme. Only the colors change; marks such as * and > stay. To choose borders and marks too, try them in the catalog.

In motion (GIF)

Recordings attached to the latest release.

Typed inputs and saving
Typed inputs and saving
New note form
New note form
Export to CSV and --print
Export to CSV and --print
Switching registered tables
Switching registered tables
Relations
Relations
Relation map
Relation map
Workspaces
Workspaces
Arranging view tabs
Arranging view tabs
Picking and saving a look
Picking and saving a look
Parent/child indent
Parent/child indent
Gantt
Gantt
Kanban
Kanban
Chart
Chart
WBS
WBS
Color themes
Color themes

Open the folder you already have.

Once installed, pass your notes folder. There is nothing to set up.

$ cargo install mdgrid --locked
$ mdgrid ~/notes/Tasks