$ 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 --lockedGet 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
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.
Sort by a column
Press s on a column, and again to reverse. The order of the note files does not change.
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.
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.
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.
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.
project: "[[Clinic Booking App]]"owner: "[[Sam Ortiz]]"Relations are between notes. CSV tables are not part of this yet.
Linking 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.
AI agent (a made-up screen)
sample-agent v1.0 · ~/notes/ai-human
Fix the broken links on the catalog and close the task
Links fixed and the task set to done. Have a look at the table on the right.
Enter to send · Esc to stop
- 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.
---status: doingproject: "[[Online Ordering]]"owner: "[[Maya Chen]]"due: 2026-10-08priority: 1estimate: 1billable: falsetags: [sales]---Two options: pickup only, or pickup and delivery.| note | status | project | owner | due | priority |
|---|---|---|---|---|---|
| Online Ordering | Maya Chen | 2026-10-08 | 1 | ||
| Bakery Website Redesign | Sam Ortiz | 2026-10-14 | 2 | ||
| Bakery Website Redesign | Priya Nair | 2026-10-09 | 3 | ||
| Clinic Booking App | Priya Nair | 2026-09-18 | 1 | ||
| Clinic Booking App | Maya Chen | 2026-10-02 | 1 |
This is a model in the browser. The real mdgrid shows you this diff on Ctrl+S before it writes.
Try it in a minute
From the sample to your first edit.
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 --lockedGet a binary from Releases · cargo needs Rust 1.90 or newer
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/TasksYou should see this table
It is the task table of "Northwind Studio". j k move Enter edit Ctrl+S review and save q quit
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 ~/tasksBooks, 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 ~/readingA 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 ~/peopleBookmarks 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 ~/bookmarksA 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 journalLooks
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.
Read next
See and choose
Ways to see your notes
Table, groups, tree, relation map, value counts, themes. One screen each.
What mdgrid can do
Tasks, bookmarks, reading, people and meetings, then editing, saving, filtering, linking, creating, exporting. One screen per feature.
Manual
Ways to see your notes, what mdgrid can do, getting started, how-tos, concepts, appearance, troubleshooting, and the key and setting lists.
Look catalog
Try themes and part shapes, then copy the settings into config.toml.
Screen gallery
Real mdgrid screens, scene by scene (the same shots as the manual).
In motion (GIF)
Recordings attached to the latest release.















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